Releases: infinum/eightshift-ui-components
Releases · infinum/eightshift-ui-components
6.0.4
Changes:
- Fixed
MultiSelectreordering whensimpleValueis used. - Fixed
NumberPickerwidth calculation whenplaceholderis used and some edge cases. - Fixed
ColumnConfigSliderhandle alignment when min/max values are reached. - Added white background color to
#wpwrapin admin styles whenes:css-resetis used. - Added text selection styles to
es:css-reset. - Added a
randomIdhelper function for generating variable-length (unsecure) random IDs for things like element keys and IDs. - As previously,
clsxexport exports theclsx/liteversion. If needed, the full version ofclsxcan now be imported from theutilitiesexport asclsxFull. LinkInputcan now also be madeinline.
6.0.2
Changes:
Containerupdates- Added
centeredprop to vertically center content (you might need to make inner content flex grow or fill width). - Added
lessSpaceStartandlessSpaceEndprops for more control over horizontal padding. - Tweaked accent shade.
- Added
ContainerGroupnow supports alabelprop to label the group.- Fixed
DraggableListitem z-index while dragging. Menunow supports thehiddenprop to programmatically hide the component.OptionsPanelHeaderhas set title margins to prevent overrides.RichLabeldoesn't have thenoColorprop anymore - it's now the default behavior.- Improved
SmartImageanalysis reliability. - Updated dependencies.
6.0.1
Changes:
- Updated dependencies.
- Reworked visuals of most controls.
- (BREAKING) Removed legacy
react-select-basedSelect,AsyncSelect,MultiSelect, andAsyncMultiSelectcomponents.SelectNext/AsyncSelectNext/MultiSelectNext/AsyncMultiSelectNextare dropping theNextsuffix and becoming the main select components. Please check all usages and update accordingly. OptionSelectnow supportssectionIcon,sectionSubtitle, andsectionEndIconin themenu,submenu, andstandaloneMenuItemsvariants to expand options for section headers.- Added 3
Buttontypes:simple,selectedSimple, anddangerSimple - Added
simplestyle toToggleButton - Added new
AnimatedVisibilityanimation:scaleSlideFadeSlight - Added
flatprop to most components, to allow disabling shadow when e.g. nesting components. - (Semi-breaking) changed
NumberPickersizes to matchInputFieldsizes.'compact' | 'small' | 'default'->'small' | 'medium' | 'default' | 'large' Buttonwill now horizontally center its content, regardless of whether an icon is set- Added 5 UI icons, updated 1.
- Deprecated
ComponentTogglecomponent. Use an alternate toggle + layout solution instead. Expandablewill now adapt its border radius to surrounding components. You can disable this with thestandaloneprop.SmartImagewill now fallback to synchronous analysis if async (web worker-based) analysis fails.SmartImagenow has averboseprop to optionally log extra debug info in case of errors.- Removed
borderprop fromOptionsPanelIntro. - Added
noBackdropprop toModal. Sliderupdates (besides new design)trackBgGradientSupportprop to enable gradient backgrounds support for tracks.trackContainerStyleprop to pass custom styles to the track container.- Improved marker generation for negative values.
- Added tooltip while dragging slider handles (customizable with the
tooltipContentprop).
Switchnow supportssmallandmediumsizes.- Added
ContainerandContainerGroupcomponents for visually grouping controls. Tabsupdates- Added
underlineSecondary,chips, andbubblelayouts. - Removed
pillInverse,pillCompactInverse,pillOutline, andpillCompactOutlinelayouts.
- Added
ContainerPanelupdates:-
- no border by default, can be re-enabled with the
topBorderprop.
- no border by default, can be re-enabled with the
accentLabelandaccentIconprops to optionally tint title and icon.noLabelInsetprop to not inset the label slightly, for better alignment with rounded containers.
-
- (BREAKING) Gutenberg override styles are now modular - you can import only what you need:
@eightshift/ui-components/dist/assets/wp-font-enhancements.css->@eightshift/ui-components/dist/assets/wp-overrides/replace-fonts.css@eightshift/ui-components/dist/assets/wp-ui-enhancements.css->@eightshift/ui-components/dist/assets/wp-overrides/fix-label-text-case.css@eightshift/ui-components/dist/assets/wp-overrides/increase-sidebar-width.css@eightshift/ui-components/dist/assets/wp-overrides/make-block-messages-nicer.css@eightshift/ui-components/dist/assets/wp-overrides/restyle-tooltips.css@eightshift/ui-components/dist/assets/wp-overrides/round-corners.css@eightshift/ui-components/dist/assets/wp-overrides/unify-button-sizes.css@eightshift/ui-components/dist/assets/wp-overrides/allow-full-width-blocks.css
5.6.1
Changes:
- Removed
sha256andsha224fromutilitiesexport due to compatibility issues. - Added
simpleHashandcyrb64Hashhash functions. - Replaced
sha256withcyrb64Hashfor image analysis caching.
5.6.0
Changes:
- Updated dependencies.
- Added new helpers for checking transparency/image dominant colors that run on separate threads using web workers.
- Image analysis will now cache results in LocalStorage for faster subsequent loads.
- Changed
SmartImageanalysis to use new async helpers for better performance. SmartImagecan now have the analysis results provided externally via the newanalysisDataprop, if data is available externally.- Tweaked
FilePickerShellfile style. - Added
Spinnercomponent (from theiconsimport). - Tweaked library production build minification options.
sha256andsha224are now available in theutilitiesexport.
5.5.0
Changes:
- Added
SmartImage - Updated
FilePickerShellto useSmartImage FilePickerShellno longer uses thefileNameprop, useurlinstead (full URL or filename with extension can be provided)- Added 4 new general helpers (available in the
utilitiesexport):analyzeImage- analyzes an image and returns its dominant colors and whether it has transparencycheckTransparency- checks if an image has transparencygetFileExtension- extracts the file extension from a URL or filenameisColorDark- checks if a color is dark or light
- Added 2 new UI icons
5.4.0
Changes:
- Added
FilePickerShellcomponent - Added 4 new
Buttontypes:glass,glassDark,dangerGlass, andselectedGlass - Added
flatprop toButton - Updated dependencies
5.3.3
Changes:
- Added
event.stopPropagationby default onMenuItems. This can be overridden with the newonClickNativeprop, which receives the native click event. - Fixed
ToggleButtonstyles. - Added 9 UI icons.
- Tweaked
pendingbehavior inButtonto prevent layout shifts.
5.3.2
Changes:
- Updated dependencies.
- Fixed some JSDoc typedef imports not being preserved in production bundles.