@adaptavant/eds-core@1.12.0

✨⚙️ Introducing version 1.12.0. Enjoy! ✨⚙️

🛠️ Enhancements

  1. Dropdowns:
    1. Added the ability to mark MenuItem as disabled.
    2. Updated keyboard navigation logic to gracefully skip disabled menu items.
    3. onClick is now added only for non-disabled MenuItem.
    4. Improved the dropdown reducer with early returns to prevent "maximum depth reached" issues when multiple actions are triggered simultaneously.
  2. <FilterMenuItem />:
    1. Consumers can now return a boolean from the onClick callback.
    2. Updated logic to keep the FilterMenuPopover open when false is returned.
  3. Checkbox:
    1. Added a new indeterminate state to visually represent when only part of a group is selected.
    2. Designed for use cases like header groups where some, but not all, options are selected.

📄 Icons & Symbols

New Icons

ApplyAllIcon, BreakIcon

New Symbols

JcbColorIcon, DiscoverColorIcon, DinersIcon

Minor Changes

  • c60544d: Dropdowns:
    • Enhanced keyboard navigation to skip disabled MenuItems.
    • Updated MenuItem styles for active, highlighted, hover states and visually differentiate "disabled" item.
    • onClick selection listener only be applied for non-disabled menu items.
    • Optimized reducer logic with early state returns to handle scenarios involving maximum depth and simultaneous action triggers.

Patch Changes

  • 6511c97: FilterMenu: Updated onclick logic to keep the Popover open if "false" is returned
  • b1c0122: Icon :
    • Added ApplyAllIcon, BreakIcon
  • Symbol:
    • Added JcbColorIcon, DiscoverColorIcon, DinersIcon
  • befcdaa: Checkbox: Added new prop "indeterminate" to visually represent checkbox in indeterminate state.