Skip to content

Releases: infinum/eightshift-ui-components

1.7.0

09 Oct 08:56
cfa2a4f
Compare
Choose a tag to compare

Changes:

  • Updated dependencies.
  • Repeater, Draggable, DraggableList and ItemCollection will now behave better when undefined is passed as value.
  • Fixed overlap issues with Select components.
  • Improved ColorPicker grouping logic and made grouped menu more compact.
  • Added MiniResponsive for cases you need to use a Responsive in a limited space. Works best with OptionSelect or other Button-like components!
  • Fixed Spacer not applying className in some cases.
  • Tweaked MediaPlaceholder colors a bit.
  • MediaPlaceholder can now have any child items passed. They are rendered below the label and icon.

1.6.1

01 Oct 06:41
a3944bc
Compare
Choose a tag to compare

Changes:

  • Fixed clearable not working in Select components.
  • Fixed Tabs tab alignment when in horizontal mode.
  • OptionsPanel, OptionsPanelSection, and OptionsPanelHeader now support the hidden prop.
  • Tweaked OptionsPanelHeader title font.
  • Tweaked some default Gutenberg overrides to do WP 6.6 changes.
  • Reverted position: relative overlap tweak by @piqusy, as it caused layout issues in some cases. z-index: 50 should still make it OK.

1.6.0

27 Sep 07:16
dc9819e
Compare
Choose a tag to compare

Breaking changes:

  • DraggableItem no longer exists, you can replace with a div or any other element of your choosing
  • DraggableItemHandle has been renamed to DraggableHandle

Changes:

  • Updated dependencies.
  • ColorPicker now has better UX when set to clearable.
  • Made clearable variant of ColorPicker less confusing.
  • Reworked Draggable, DraggableList, and Repeater to improve user experience.
  • Draggable is now much easier to use.
  • Repeater now supports "drag outside to delete item", custom menu items for each item, a settable max number of items, and there's a Duplicate option now on items.
  • Fixed Draggable not working.
  • Removed swapy dependency.
  • Made OptionsPanel a bit wider.
  • Added OptionsPanelHeader.

1.5.1

18 Sep 11:03
69949d4
Compare
Choose a tag to compare

Changes:

  • Fixed select components overlaps in some cases (by @piqusy ).
  • Added noExpandButton, noLabel, noUseToggle, and hideUseToggleOnExpand to ComponentToggle.

1.5.0

12 Sep 12:14
d72420a
Compare
Choose a tag to compare

Changes:

  • Updated dependencies.
  • (breaking-ish) Tweaked CSS reset to ignore whole WP admin by default. You'll need to add es-uic-has-css-reset to enable it where needed.
  • Reworked DraggableList, now using a new animation library for a more fluid experience.
  • There's now also a DraggableListItemHandle that can be placed anywhere within DraggableListItem to mark the drag area.
  • DraggableListItem will now hide the label properly if title, icon and subtitle are not sent
  • DraggableList now supports a labelAsHandle prop to constrain dragging just to the label, instead of the whole item (not compatible with a custom handle!)
  • Made Switch transforms harder to override by accident from an external source.
  • Slightly tweaked Repeater styling.
  • LinkInput should work properly now if fetchSuggestions is not passed.
  • LinkInput will not show suggestions when the field is empty. You can opt out into that with showSuggestionsWhenEmpty (could be useful if you have a default list of suggestions).
  • Added Draggable component for more random layouts.
  • Added ItemCollection component to get rid of those pesky .maps in the editor.

1.4.7

11 Sep 12:34
10feeda
Compare
Choose a tag to compare

Changes:

  • Disabled focus handling in Expandable due to Gutenberg conflicts.
  • Fixed LinkInput external value not previewing.
  • Added truncateEnd text helper.
  • Fixed drag markers not disappearing in Repeater when an item is expanded.
  • Tweaked NumberPicker to make sure it always looks OK (thanks WPML).

1.4.6

16 Aug 16:40
Compare
Choose a tag to compare

Changes:

  • Fixed an issue with item saving within some variants of Select components.
  • Slightly tweaked menu and popover entry animations.
  • Removed erroneous outline when Menu is open.
  • Fixed aria-label passthrough in OptionSelect when variant is set to menu.
  • Updated dependencies.

1.4.5

29 Jul 23:43
Compare
Choose a tag to compare

Changes:

  • Added a couple of WP6.6-specific Gutenberg overrides.
  • Improved Repeater add button reliability.
  • Added boolean tooltip value to Button and OptionSelect that will match aria-label if set.
  • InputField can have classes passed to the component wrapper with wrapperClassName.

1.4.4

26 Jul 18:07
Compare
Choose a tag to compare

Changes:

  • Reduced update rate in Repeater to reduce re-renders

1.4.3

26 Jul 17:55
Compare
Choose a tag to compare

Changes:

  • Fixed updateData in Repeater that gets passed to child items.
  • Tailwind's CSS reset will now be ignored with in containers that have a es-uic-no-css-reset class applied. Also, the reset is disabled for WP admin tables (.wp-list-table). If you need to include a reset "island" within a container that had es-uic-no-css-reset applied, you can add a es-uic-has-css-reset to re-enable it for that container.