Releases: fictoan/fictoan-react
Releases · fictoan/fictoan-react
v1.11.1
⚠️ BREAKING CHANGES ⚠️
- Overhaul all form components to follow a state-led
onChange
handling, instead of mucking around with direct DOM
events, meaning instead ofonChange={e => doSomething(e.target.value)}
you can now just doonChange={value => setValue(value)}
and do whatever you want using theuseState
hook.
GENERIC CHANGES
- Add
CheckboxGroup
andSwitchGroup
components, that work in the same way asRadioGroup
- Add
FileUpload
component with drag-and-drop support - Revamp
FileUpload
with drag-and-drop support and multiple file upload support Textarea
now has acharLimit
andwordLimit
props, along with warning and error messages
v1.10.5
v1.10.4
v1.9.3
v1.8.4
v1.6.0
⚠️ BREAKING CHANGES ⚠️
- Colours now support opacity values
-
Old New --slate-dark-40
--slate-dark40
--red-light-20
--red-light20
— --red-light20-opacity90
— --amber-dark20-opacity20
— --pistacho-opacity40
-
Basically you just have to remove the hyphen after the
light
anddark
string for the new format, and it works on all props:bgColour
,textColour
,var()
etc -
This colour generation is now more robust, as its generated with TS, instead of SCSS.
-
- Removed CJS support, ESM only, because it’s 2024
- Remove Storybook, because we have configurators for each component that does the same job, but better
GENERIC CHANGES
- Add
Skeleton
component for loading states