@serendie/ui 3.2.0-dev.202603311432 → 3.2.0-dev.202604210458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +6 -6
- package/dist/components/Accordion/Accordion.js +18 -21
- package/dist/components/Accordion/AccordionGroup.js +4 -4
- package/dist/components/Avatar/Avatar.js +19 -21
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.js +4 -4
- package/dist/components/BottomNavigation/BottomNavigationItem.js +4 -4
- package/dist/components/Button/Button.js +6 -6
- package/dist/components/CheckBox/CheckBox.js +28 -32
- package/dist/components/ChoiceBox/ChoiceBox.js +46 -52
- package/dist/components/DashboardWidget/DashboardWidget.js +4 -4
- package/dist/components/DataTable/DataTableComponent.js +16 -17
- package/dist/components/DataTable/table/HeaderCell.js +4 -4
- package/dist/components/DataTable/table/Root.js +4 -4
- package/dist/components/DatePicker/DatePicker.js +107 -127
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Drawer/Drawer.js +22 -26
- package/dist/components/DropdownMenu/DropdownMenu.js +36 -41
- package/dist/components/IconButton/IconButton.js +4 -4
- package/dist/components/List/ListItem.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +27 -33
- package/dist/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/components/Pagination/Pagination.js +54 -59
- package/dist/components/RadioButton/RadioButton.js +32 -36
- package/dist/components/RadioButton/RadioGroup.js +4 -4
- package/dist/components/Search/Search.js +67 -74
- package/dist/components/Select/Select.js +53 -60
- package/dist/components/Switch/Switch.js +18 -22
- package/dist/components/Tabs/TabItem.js +6 -6
- package/dist/components/Tabs/Tabs.js +9 -10
- package/dist/components/TextArea/TextArea.js +4 -4
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/Toast/Toast.js +16 -17
- package/dist/components/Tooltip/Tooltip.js +30 -35
- package/dist/components/TopAppBar/TopAppBar.js +4 -4
- package/dist/index.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +25 -22
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +21 -11
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group-provider.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group.js +32 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group.js +43 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +15 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/split-collapsible-props.js +5 -3
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +17 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-empty.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +19 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +24 -14
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.js +42 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-group-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +14 -7
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-preset-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-range-text.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root-provider.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +32 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +16 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +18 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +22 -12
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-value-text.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-header-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.js +64 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +17 -7
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +21 -22
- package/dist/node_modules/@ark-ui/react/dist/components/field/use-field-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js +35 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +25 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js +39 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js +31 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +32 -19
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-separator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +18 -17
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu.js +48 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +19 -14
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-first-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-last-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +20 -12
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +16 -20
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +13 -12
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +26 -13
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +18 -10
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +20 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-hidden-select.js +23 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +22 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +25 -14
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +11 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select.js +44 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-group-props.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +12 -10
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +18 -12
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +10 -7
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-content.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-action-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-close-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-description.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast.js +18 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +37 -22
- package/dist/node_modules/@ark-ui/react/dist/components/toast/use-toast-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +12 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/providers/locale/use-locale-context.js +5 -2
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +7 -10
- package/dist/node_modules/@ark-ui/react/dist/utils/create-context.js +17 -20
- package/dist/node_modules/@ark-ui/react/dist/utils/create-split-props.js +4 -7
- package/dist/node_modules/@ark-ui/react/dist/utils/render-strategy.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/utils/use-controllable-state.js +8 -0
- package/dist/node_modules/@ark-ui/react/dist/utils/use-effect-once.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +7 -10
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +294 -289
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +195 -194
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +18 -12
- package/dist/node_modules/@internationalized/date/dist/conversion.js +35 -35
- package/dist/node_modules/@internationalized/date/dist/queries.js +126 -75
- package/dist/node_modules/@internationalized/date/dist/string.js +29 -28
- package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.connect.js +129 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.dom.js +30 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.machine.js +137 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js +14 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +12 -49
- package/dist/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js +41 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.connect.js +52 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.dom.js +17 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.machine.js +93 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +108 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.dom.js +21 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.machine.js +141 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.connect.js +80 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.dom.js +16 -0
- package/dist/node_modules/@zag-js/collapsible/dist/{index.js → collapsible.machine.js} +58 -115
- package/dist/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/collection/dist/{index.js → list-collection.js} +58 -56
- package/dist/node_modules/@zag-js/collection/dist/selection-map.js +58 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.collection.js +6 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.connect.js +341 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.dom.js +68 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.machine.js +936 -0
- package/dist/node_modules/@zag-js/core/dist/create-machine.js +32 -0
- package/dist/node_modules/@zag-js/core/dist/memo.js +11 -0
- package/dist/node_modules/@zag-js/core/dist/merge-props.js +48 -0
- package/dist/node_modules/@zag-js/core/dist/scope.js +19 -0
- package/dist/node_modules/@zag-js/core/dist/state.js +143 -0
- package/dist/node_modules/@zag-js/core/dist/types.js +5 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +31 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +742 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.dom.js +73 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +1042 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.parse.js +8 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.utils.js +155 -0
- package/dist/node_modules/@zag-js/date-utils/dist/align.js +15 -0
- package/dist/node_modules/@zag-js/date-utils/dist/assertion.js +26 -0
- package/dist/node_modules/@zag-js/date-utils/dist/constrain.js +40 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-month.js +74 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-year.js +37 -0
- package/dist/node_modules/@zag-js/date-utils/dist/duration.js +13 -0
- package/dist/node_modules/@zag-js/date-utils/dist/format.js +25 -0
- package/dist/node_modules/@zag-js/date-utils/dist/formatter.js +30 -0
- package/dist/node_modules/@zag-js/date-utils/dist/get-era-format.js +8 -0
- package/dist/node_modules/@zag-js/date-utils/dist/mutation.js +9 -0
- package/dist/node_modules/@zag-js/date-utils/dist/pagination.js +95 -0
- package/dist/node_modules/@zag-js/date-utils/dist/parse-date.js +34 -0
- package/dist/node_modules/@zag-js/date-utils/dist/preset.js +41 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.connect.js +104 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.dom.js +42 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.machine.js +220 -0
- package/dist/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +80 -0
- package/dist/node_modules/@zag-js/dismissable/dist/escape-keydown.js +11 -0
- package/dist/node_modules/@zag-js/dismissable/dist/layer-stack.js +103 -0
- package/dist/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js +37 -0
- package/dist/node_modules/@zag-js/dom-query/dist/caret.js +12 -0
- package/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
- package/dist/node_modules/@zag-js/dom-query/dist/controller.js +76 -0
- package/dist/node_modules/@zag-js/dom-query/dist/event.js +80 -0
- package/dist/node_modules/@zag-js/dom-query/dist/form.js +70 -0
- package/dist/node_modules/@zag-js/dom-query/dist/initial-focus.js +22 -0
- package/dist/node_modules/@zag-js/dom-query/dist/mutation-observer.js +41 -0
- package/dist/node_modules/@zag-js/dom-query/dist/navigate.js +13 -0
- package/dist/node_modules/@zag-js/dom-query/dist/node.js +87 -0
- package/dist/node_modules/@zag-js/dom-query/dist/overflow.js +27 -0
- package/dist/node_modules/@zag-js/dom-query/dist/platform.js +24 -0
- package/dist/node_modules/@zag-js/dom-query/dist/press.js +61 -0
- package/dist/node_modules/@zag-js/dom-query/dist/query.js +31 -0
- package/dist/node_modules/@zag-js/dom-query/dist/raf.js +51 -0
- package/dist/node_modules/@zag-js/dom-query/dist/resize-observer.js +34 -0
- package/dist/node_modules/@zag-js/dom-query/dist/searchable.js +17 -0
- package/dist/node_modules/@zag-js/dom-query/dist/set.js +29 -0
- package/dist/node_modules/@zag-js/dom-query/dist/shared.js +11 -0
- package/dist/node_modules/@zag-js/dom-query/dist/tabbable.js +110 -0
- package/dist/node_modules/@zag-js/dom-query/dist/text-selection.js +36 -0
- package/dist/node_modules/@zag-js/dom-query/dist/typeahead.js +25 -0
- package/dist/node_modules/@zag-js/dom-query/dist/visually-hidden.js +15 -0
- package/dist/node_modules/@zag-js/dom-query/dist/wait-for.js +42 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/focus-trap.js +335 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +24 -299
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +63 -39
- package/dist/node_modules/@zag-js/interact-outside/dist/frame-utils.js +60 -0
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +97 -131
- package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.connect.js +385 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.dom.js +93 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.machine.js +855 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.utils.js +51 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.connect.js +145 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.dom.js +31 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.machine.js +132 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.utils.js +39 -0
- package/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
- package/dist/node_modules/@zag-js/popper/dist/get-placement.js +190 -0
- package/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
- package/dist/node_modules/@zag-js/popper/dist/middleware.js +57 -0
- package/dist/node_modules/@zag-js/popper/dist/placement.js +11 -0
- package/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
- package/dist/node_modules/@zag-js/presence/dist/{index.js → presence.machine.js} +39 -47
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +197 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.dom.js +57 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.machine.js +179 -0
- package/dist/node_modules/@zag-js/react/dist/bindable.js +52 -0
- package/dist/node_modules/@zag-js/react/dist/machine.js +208 -0
- package/dist/node_modules/@zag-js/react/dist/normalize-props.js +5 -0
- package/dist/node_modules/@zag-js/react/dist/refs.js +15 -0
- package/dist/node_modules/@zag-js/react/dist/track.js +13 -0
- package/dist/node_modules/@zag-js/react/dist/use-layout-effect.js +5 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/polygon.js +23 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/rect.js +26 -0
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +32 -23
- package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +22 -0
- package/dist/node_modules/@zag-js/select/dist/select.collection.js +6 -0
- package/dist/node_modules/@zag-js/select/dist/select.connect.js +372 -0
- package/dist/node_modules/@zag-js/select/dist/select.dom.js +53 -0
- package/dist/node_modules/@zag-js/select/dist/select.machine.js +690 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.connect.js +110 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.dom.js +25 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.machine.js +143 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.connect.js +176 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.dom.js +47 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.machine.js +268 -0
- package/dist/node_modules/@zag-js/toast/dist/index.js +6 -798
- package/dist/node_modules/@zag-js/toast/dist/toast-group.connect.js +54 -0
- package/dist/node_modules/@zag-js/toast/dist/toast-group.machine.js +236 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.connect.js +102 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.dom.js +10 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.machine.js +234 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.store.js +134 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.utils.js +122 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +120 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +25 -0
- package/dist/node_modules/@zag-js/tooltip/dist/{index.js → tooltip.machine.js} +109 -188
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
- package/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
- package/dist/node_modules/@zag-js/utils/dist/array.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js +8 -0
- package/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
- package/dist/node_modules/@zag-js/utils/dist/functions.js +28 -0
- package/dist/node_modules/@zag-js/utils/dist/guard.js +19 -0
- package/dist/node_modules/@zag-js/utils/dist/number.js +11 -0
- package/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
- package/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
- package/dist/node_modules/@zag-js/utils/dist/timers.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
- package/dist/styled-system/css/css.js +1 -1
- package/dist/styled-system/helpers.js +85 -83
- package/dist/styled-system/jsx/is-valid-prop.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -21
- package/styled-system/css/css.js +1 -1
- package/styled-system/helpers.js +3 -0
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-konjo-dark.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/tokens.d.ts +1 -1
- package/styled-system/types/conditions.d.ts +11 -11
- package/styled-system/types/prop-type.d.ts +2 -0
- package/styled-system/types/style-props.d.ts +3 -4
- package/dist/node_modules/@zag-js/accordion/dist/index.js +0 -290
- package/dist/node_modules/@zag-js/avatar/dist/index.js +0 -154
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +0 -270
- package/dist/node_modules/@zag-js/combobox/dist/index.js +0 -1415
- package/dist/node_modules/@zag-js/core/dist/index.js +0 -92
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1826
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
- package/dist/node_modules/@zag-js/dialog/dist/index.js +0 -324
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +0 -188
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +0 -633
- package/dist/node_modules/@zag-js/menu/dist/index.js +0 -1235
- package/dist/node_modules/@zag-js/pagination/dist/index.js +0 -273
- package/dist/node_modules/@zag-js/popper/dist/index.js +0 -260
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +0 -407
- package/dist/node_modules/@zag-js/react/dist/index.js +0 -269
- package/dist/node_modules/@zag-js/rect-utils/dist/index.js +0 -46
- package/dist/node_modules/@zag-js/select/dist/index.js +0 -1088
- package/dist/node_modules/@zag-js/switch/dist/index.js +0 -275
- package/dist/node_modules/@zag-js/tabs/dist/index.js +0 -475
- package/dist/node_modules/@zag-js/types/dist/index.js +0 -12
- package/dist/node_modules/@zag-js/utils/dist/index.js +0 -173
- /package/dist/node_modules/@zag-js/anatomy/dist/{index.js → create-anatomy.js} +0 -0
|
@@ -1,77 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return ((t = e.ids) == null ? void 0 : t.content) ?? `collapsible:${e.id}:content`;
|
|
11
|
-
}, A = (e) => {
|
|
12
|
-
var t;
|
|
13
|
-
return ((t = e.ids) == null ? void 0 : t.trigger) ?? `collapsible:${e.id}:trigger`;
|
|
14
|
-
}, g = (e) => e.getById(C(e));
|
|
15
|
-
function T(e, t) {
|
|
16
|
-
const { state: n, send: s, context: o, scope: i, prop: l } = e, a = n.matches("open") || n.matches("closing"), r = n.matches("open"), { width: c, height: u } = o.get("size"), d = !!l("disabled"), E = !o.get("initial") && r, f = "ltr";
|
|
17
|
-
return {
|
|
18
|
-
disabled: d,
|
|
19
|
-
visible: a,
|
|
20
|
-
open: r,
|
|
21
|
-
measureSize() {
|
|
22
|
-
s({ type: "size.measure" });
|
|
23
|
-
},
|
|
24
|
-
setOpen(p) {
|
|
25
|
-
n.matches("open") !== p && s({ type: p ? "open" : "close" });
|
|
26
|
-
},
|
|
27
|
-
getRootProps() {
|
|
28
|
-
return t.element({
|
|
29
|
-
...m.root.attrs,
|
|
30
|
-
"data-state": r ? "open" : "closed",
|
|
31
|
-
dir: f,
|
|
32
|
-
id: x(i)
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
getContentProps() {
|
|
36
|
-
return t.element({
|
|
37
|
-
...m.content.attrs,
|
|
38
|
-
"data-collapsible": "",
|
|
39
|
-
"data-state": E ? void 0 : r ? "open" : "closed",
|
|
40
|
-
id: C(i),
|
|
41
|
-
"data-disabled": v(d),
|
|
42
|
-
hidden: !a,
|
|
43
|
-
style: {
|
|
44
|
-
"--height": u != null ? `${u}px` : void 0,
|
|
45
|
-
"--width": c != null ? `${c}px` : void 0
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
getTriggerProps() {
|
|
50
|
-
return t.element({
|
|
51
|
-
...m.trigger.attrs,
|
|
52
|
-
id: A(i),
|
|
53
|
-
dir: f,
|
|
54
|
-
type: "button",
|
|
55
|
-
"data-state": r ? "open" : "closed",
|
|
56
|
-
"data-disabled": v(d),
|
|
57
|
-
"aria-controls": C(i),
|
|
58
|
-
"aria-expanded": a || !1,
|
|
59
|
-
onClick(p) {
|
|
60
|
-
p.defaultPrevented || d || s({ type: r ? "close" : "open" });
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
getIndicatorProps() {
|
|
65
|
-
return t.element({
|
|
66
|
-
...m.indicator.attrs,
|
|
67
|
-
dir: f,
|
|
68
|
-
"data-state": r ? "open" : "closed",
|
|
69
|
-
"data-disabled": v(d)
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
var V = N({
|
|
1
|
+
import { getContentEl as l } from "./collapsible.dom.js";
|
|
2
|
+
import { createMachine as g } from "../../core/dist/create-machine.js";
|
|
3
|
+
import { raf as m, nextTick as f } from "../../dom-query/dist/raf.js";
|
|
4
|
+
import { observeChildren as h } from "../../dom-query/dist/mutation-observer.js";
|
|
5
|
+
import { getComputedStyle as d } from "../../dom-query/dist/computed-style.js";
|
|
6
|
+
import { setStyle as v, setAttribute as E } from "../../dom-query/dist/set.js";
|
|
7
|
+
import { getEventTarget as u } from "../../dom-query/dist/event.js";
|
|
8
|
+
import { getTabbables as O } from "../../dom-query/dist/tabbable.js";
|
|
9
|
+
var A = g({
|
|
75
10
|
initialState({ prop: e }) {
|
|
76
11
|
return e("open") || e("defaultOpen") ? "open" : "closed";
|
|
77
12
|
},
|
|
@@ -97,9 +32,10 @@ var V = N({
|
|
|
97
32
|
n(["setInitial", "computeSize", "toggleVisibility"]);
|
|
98
33
|
});
|
|
99
34
|
},
|
|
100
|
-
exit: ["
|
|
35
|
+
exit: ["cleanupNode"],
|
|
101
36
|
states: {
|
|
102
37
|
closed: {
|
|
38
|
+
effects: ["trackTabbableElements"],
|
|
103
39
|
on: {
|
|
104
40
|
"controlled.open": {
|
|
105
41
|
target: "open"
|
|
@@ -183,48 +119,68 @@ var V = N({
|
|
|
183
119
|
effects: {
|
|
184
120
|
trackEnterAnimation: ({ send: e, scope: t }) => {
|
|
185
121
|
let n;
|
|
186
|
-
const
|
|
187
|
-
const o =
|
|
122
|
+
const a = m(() => {
|
|
123
|
+
const o = l(t);
|
|
188
124
|
if (!o) return;
|
|
189
|
-
const i =
|
|
125
|
+
const i = d(o).animationName;
|
|
190
126
|
if (!i || i === "none") {
|
|
191
127
|
e({ type: "animation.end" });
|
|
192
128
|
return;
|
|
193
129
|
}
|
|
194
|
-
const
|
|
195
|
-
|
|
130
|
+
const r = (s) => {
|
|
131
|
+
u(s) === o && e({ type: "animation.end" });
|
|
196
132
|
};
|
|
197
|
-
o.addEventListener("animationend",
|
|
198
|
-
o.removeEventListener("animationend",
|
|
133
|
+
o.addEventListener("animationend", r), n = () => {
|
|
134
|
+
o.removeEventListener("animationend", r);
|
|
199
135
|
};
|
|
200
136
|
});
|
|
201
137
|
return () => {
|
|
202
|
-
|
|
138
|
+
a(), n == null || n();
|
|
203
139
|
};
|
|
204
140
|
},
|
|
205
141
|
trackExitAnimation: ({ send: e, scope: t }) => {
|
|
206
142
|
let n;
|
|
207
|
-
const
|
|
208
|
-
const o =
|
|
143
|
+
const a = m(() => {
|
|
144
|
+
const o = l(t);
|
|
209
145
|
if (!o) return;
|
|
210
|
-
const i =
|
|
146
|
+
const i = d(o).animationName;
|
|
211
147
|
if (!i || i === "none") {
|
|
212
148
|
e({ type: "animation.end" });
|
|
213
149
|
return;
|
|
214
150
|
}
|
|
215
|
-
const
|
|
216
|
-
|
|
151
|
+
const r = (p) => {
|
|
152
|
+
u(p) === o && e({ type: "animation.end" });
|
|
217
153
|
};
|
|
218
|
-
o.addEventListener("animationend",
|
|
219
|
-
const
|
|
154
|
+
o.addEventListener("animationend", r);
|
|
155
|
+
const s = v(o, {
|
|
220
156
|
animationFillMode: "forwards"
|
|
221
157
|
});
|
|
222
158
|
n = () => {
|
|
223
|
-
o.removeEventListener("animationend",
|
|
159
|
+
o.removeEventListener("animationend", r), f(() => s());
|
|
224
160
|
};
|
|
225
161
|
});
|
|
226
162
|
return () => {
|
|
227
|
-
|
|
163
|
+
a(), n == null || n();
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
trackTabbableElements: ({ scope: e, prop: t }) => {
|
|
167
|
+
if (!t("collapsedHeight") && !t("collapsedWidth")) return;
|
|
168
|
+
const n = l(e);
|
|
169
|
+
if (!n) return;
|
|
170
|
+
const a = () => {
|
|
171
|
+
const r = O(n).map((s) => E(s, "inert", ""));
|
|
172
|
+
return () => {
|
|
173
|
+
r.forEach((s) => s());
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
let o = a();
|
|
177
|
+
const i = h(n, {
|
|
178
|
+
callback() {
|
|
179
|
+
o(), o = a();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return () => {
|
|
183
|
+
o(), i();
|
|
228
184
|
};
|
|
229
185
|
}
|
|
230
186
|
},
|
|
@@ -241,23 +197,23 @@ var V = N({
|
|
|
241
197
|
e.set("stylesRef", null);
|
|
242
198
|
},
|
|
243
199
|
measureSize: ({ context: e, scope: t }) => {
|
|
244
|
-
const n =
|
|
200
|
+
const n = l(t);
|
|
245
201
|
if (!n) return;
|
|
246
|
-
const { height:
|
|
247
|
-
e.set("size", { height:
|
|
202
|
+
const { height: a, width: o } = n.getBoundingClientRect();
|
|
203
|
+
e.set("size", { height: a, width: o });
|
|
248
204
|
},
|
|
249
205
|
computeSize: ({ refs: e, scope: t, context: n }) => {
|
|
250
206
|
var o;
|
|
251
207
|
(o = e.get("cleanup")) == null || o();
|
|
252
|
-
const
|
|
253
|
-
const i =
|
|
208
|
+
const a = m(() => {
|
|
209
|
+
const i = l(t);
|
|
254
210
|
if (!i) return;
|
|
255
|
-
const
|
|
211
|
+
const c = i.hidden;
|
|
256
212
|
i.style.animationName = "none", i.style.animationDuration = "0s", i.hidden = !1;
|
|
257
|
-
const
|
|
258
|
-
n.set("size", { height:
|
|
213
|
+
const r = i.getBoundingClientRect();
|
|
214
|
+
n.set("size", { height: r.height, width: r.width }), n.get("initial") && (i.style.animationName = "", i.style.animationDuration = ""), i.hidden = c;
|
|
259
215
|
});
|
|
260
|
-
e.set("cleanup",
|
|
216
|
+
e.set("cleanup", a);
|
|
261
217
|
},
|
|
262
218
|
invokeOnOpen: ({ prop: e }) => {
|
|
263
219
|
var t;
|
|
@@ -277,19 +233,6 @@ var V = N({
|
|
|
277
233
|
}
|
|
278
234
|
}
|
|
279
235
|
});
|
|
280
|
-
S()([
|
|
281
|
-
"dir",
|
|
282
|
-
"disabled",
|
|
283
|
-
"getRootNode",
|
|
284
|
-
"id",
|
|
285
|
-
"ids",
|
|
286
|
-
"onExitComplete",
|
|
287
|
-
"onOpenChange",
|
|
288
|
-
"defaultOpen",
|
|
289
|
-
"open"
|
|
290
|
-
]);
|
|
291
236
|
export {
|
|
292
|
-
|
|
293
|
-
T as connect,
|
|
294
|
-
V as machine
|
|
237
|
+
A as machine
|
|
295
238
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __publicField as r } from "./chunk-QZ7TP4HQ.js";
|
|
2
|
+
import { isEqual as v } from "../../utils/dist/equal.js";
|
|
3
|
+
import { isObject as g, hasProp as p } from "../../utils/dist/guard.js";
|
|
4
|
+
var d = {
|
|
5
|
+
itemToValue(u) {
|
|
6
|
+
return typeof u == "string" ? u : g(u) && p(u, "value") ? u.value : "";
|
|
5
7
|
},
|
|
6
|
-
itemToString(
|
|
7
|
-
return typeof
|
|
8
|
+
itemToString(u) {
|
|
9
|
+
return typeof u == "string" ? u : g(u) && p(u, "label") ? u.label : d.itemToValue(u);
|
|
8
10
|
},
|
|
9
|
-
isItemDisabled(
|
|
10
|
-
return
|
|
11
|
+
isItemDisabled(u) {
|
|
12
|
+
return g(u) && p(u, "disabled") ? !!u.disabled : !1;
|
|
11
13
|
}
|
|
12
|
-
},
|
|
13
|
-
constructor(
|
|
14
|
-
this
|
|
14
|
+
}, B = class I {
|
|
15
|
+
constructor(o) {
|
|
16
|
+
r(this, "options", o), r(this, "items"), r(this, "indexMap", null), r(this, "copy", (t) => new I({ ...this.options, items: t ?? [...this.items] })), r(this, "isEqual", (t) => v(this.items, t.items)), r(this, "setItems", (t) => this.copy(t)), r(this, "getValues", (t = this.items) => {
|
|
15
17
|
const e = [];
|
|
16
18
|
for (const i of t) {
|
|
17
19
|
const s = this.getItemValue(i);
|
|
@@ -35,8 +37,8 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
35
37
|
let e = 0;
|
|
36
38
|
const i = this.group();
|
|
37
39
|
for (const [, s] of i)
|
|
38
|
-
for (const
|
|
39
|
-
if (e === t) return
|
|
40
|
+
for (const n of s) {
|
|
41
|
+
if (e === t) return n;
|
|
40
42
|
e++;
|
|
41
43
|
}
|
|
42
44
|
return null;
|
|
@@ -55,26 +57,26 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
55
57
|
}), r(this, "stringify", (t) => t == null ? null : this.stringifyItem(this.find(t))), r(this, "stringifyItems", (t, e = ", ") => {
|
|
56
58
|
const i = [];
|
|
57
59
|
for (const s of t) {
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
+
const n = this.stringifyItem(s);
|
|
61
|
+
n != null && i.push(n);
|
|
60
62
|
}
|
|
61
63
|
return i.join(e);
|
|
62
64
|
}), r(this, "stringifyMany", (t, e) => this.stringifyItems(this.findMany(t), e)), r(this, "has", (t) => this.indexOf(t) !== -1), r(this, "hasItem", (t) => t == null ? !1 : this.has(this.getItemValue(t))), r(this, "group", () => {
|
|
63
65
|
const { groupBy: t, groupSort: e } = this.options;
|
|
64
66
|
if (!t) return [["", [...this.items]]];
|
|
65
67
|
const i = /* @__PURE__ */ new Map();
|
|
66
|
-
this.items.forEach((
|
|
67
|
-
const
|
|
68
|
-
i.has(
|
|
68
|
+
this.items.forEach((n, h) => {
|
|
69
|
+
const l = t(n, h);
|
|
70
|
+
i.has(l) || i.set(l, []), i.get(l).push(n);
|
|
69
71
|
});
|
|
70
72
|
let s = Array.from(i.entries());
|
|
71
|
-
return e && s.sort(([
|
|
72
|
-
if (typeof e == "function") return e(
|
|
73
|
+
return e && s.sort(([n], [h]) => {
|
|
74
|
+
if (typeof e == "function") return e(n, h);
|
|
73
75
|
if (Array.isArray(e)) {
|
|
74
|
-
const
|
|
75
|
-
return
|
|
76
|
+
const l = e.indexOf(n), a = e.indexOf(h);
|
|
77
|
+
return l === -1 ? 1 : a === -1 ? -1 : l - a;
|
|
76
78
|
}
|
|
77
|
-
return e === "asc" ?
|
|
79
|
+
return e === "asc" ? n.localeCompare(h) : e === "desc" ? h.localeCompare(n) : 0;
|
|
78
80
|
}), s;
|
|
79
81
|
}), r(this, "getNextValue", (t, e = 1, i = !1) => {
|
|
80
82
|
let s = this.indexOf(t);
|
|
@@ -95,30 +97,30 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
95
97
|
let e = 0;
|
|
96
98
|
const i = this.group();
|
|
97
99
|
for (const [, s] of i)
|
|
98
|
-
for (const
|
|
99
|
-
const
|
|
100
|
-
|
|
100
|
+
for (const n of s) {
|
|
101
|
+
const h = this.getItemValue(n);
|
|
102
|
+
h != null && this.indexMap.set(h, e), e++;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
return this.indexMap.get(t) ?? -1;
|
|
104
106
|
}), r(this, "getByText", (t, e) => {
|
|
105
107
|
const i = e != null ? this.indexOf(e) : -1, s = t.length === 1;
|
|
106
|
-
for (let
|
|
107
|
-
const
|
|
108
|
-
if (!(s && this.getItemValue(
|
|
109
|
-
return
|
|
108
|
+
for (let n = 0; n < this.items.length; n++) {
|
|
109
|
+
const h = this.items[(i + n + 1) % this.items.length];
|
|
110
|
+
if (!(s && this.getItemValue(h) === e) && !this.getItemDisabled(h) && b(this.stringifyItem(h), t))
|
|
111
|
+
return h;
|
|
110
112
|
}
|
|
111
113
|
}), r(this, "search", (t, e) => {
|
|
112
|
-
const { state: i, currentValue: s, timeout:
|
|
114
|
+
const { state: i, currentValue: s, timeout: n = 350 } = e, h = i.keysSoFar + t, a = h.length > 1 && Array.from(h).every((m) => m === h[0]) ? h[0] : h, V = this.getByText(a, s), O = this.getItemValue(V);
|
|
113
115
|
function y() {
|
|
114
116
|
clearTimeout(i.timer), i.timer = -1;
|
|
115
117
|
}
|
|
116
118
|
function x(m) {
|
|
117
119
|
i.keysSoFar = m, y(), m !== "" && (i.timer = +setTimeout(() => {
|
|
118
120
|
x(""), y();
|
|
119
|
-
},
|
|
121
|
+
}, n));
|
|
120
122
|
}
|
|
121
|
-
return x(
|
|
123
|
+
return x(h), O;
|
|
122
124
|
}), r(this, "update", (t, e) => {
|
|
123
125
|
let i = this.indexOf(t);
|
|
124
126
|
return i === -1 ? this : this.copy([...this.items.slice(0, i), e, ...this.items.slice(i + 1)]);
|
|
@@ -154,14 +156,14 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
154
156
|
const i = this.indexOf(t);
|
|
155
157
|
return i === -1 ? this : this.copy(c(this.items, [i], e));
|
|
156
158
|
}), r(this, "moveBefore", (t, ...e) => {
|
|
157
|
-
let i = this.items.findIndex((
|
|
159
|
+
let i = this.items.findIndex((n) => this.getItemValue(n) === t);
|
|
158
160
|
if (i === -1) return this;
|
|
159
|
-
let s = e.map((
|
|
161
|
+
let s = e.map((n) => this.items.findIndex((h) => this.getItemValue(h) === n)).sort((n, h) => n - h);
|
|
160
162
|
return this.copy(c(this.items, s, i));
|
|
161
163
|
}), r(this, "moveAfter", (t, ...e) => {
|
|
162
|
-
let i = this.items.findIndex((
|
|
164
|
+
let i = this.items.findIndex((n) => this.getItemValue(n) === t);
|
|
163
165
|
if (i === -1) return this;
|
|
164
|
-
let s = e.map((
|
|
166
|
+
let s = e.map((n) => this.items.findIndex((h) => this.getItemValue(h) === n)).sort((n, h) => n - h);
|
|
165
167
|
return this.copy(c(this.items, s, i + 1));
|
|
166
168
|
}), r(this, "reorder", (t, e) => this.copy(c(this.items, [t], e))), r(this, "compareValue", (t, e) => {
|
|
167
169
|
const i = this.indexOf(t), s = this.indexOf(e);
|
|
@@ -176,15 +178,15 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
176
178
|
}), r(this, "getValueRange", (t, e) => t && e ? this.compareValue(t, e) <= 0 ? this.range(t, e) : this.range(e, t) : []), r(this, "toString", () => {
|
|
177
179
|
let t = "";
|
|
178
180
|
for (const e of this.items) {
|
|
179
|
-
const i = this.getItemValue(e), s = this.stringifyItem(e),
|
|
180
|
-
t +=
|
|
181
|
+
const i = this.getItemValue(e), s = this.stringifyItem(e), n = this.getItemDisabled(e), h = [i, s, n].filter(Boolean).join(":");
|
|
182
|
+
t += h + ",";
|
|
181
183
|
}
|
|
182
184
|
return t;
|
|
183
185
|
}), r(this, "toJSON", () => ({
|
|
184
186
|
size: this.size,
|
|
185
187
|
first: this.firstValue,
|
|
186
188
|
last: this.lastValue
|
|
187
|
-
})), this.items = [...
|
|
189
|
+
})), this.items = [...o.items];
|
|
188
190
|
}
|
|
189
191
|
/**
|
|
190
192
|
* Returns the number of items in the collection
|
|
@@ -196,32 +198,32 @@ var b = Object.defineProperty, M = (n, u, t) => u in n ? b(n, u, { enumerable: !
|
|
|
196
198
|
* Returns the first value in the collection
|
|
197
199
|
*/
|
|
198
200
|
get firstValue() {
|
|
199
|
-
let
|
|
200
|
-
for (; this.getItemDisabled(this.at(
|
|
201
|
-
return this.getItemValue(this.at(
|
|
201
|
+
let o = 0;
|
|
202
|
+
for (; this.getItemDisabled(this.at(o)); ) o++;
|
|
203
|
+
return this.getItemValue(this.at(o));
|
|
202
204
|
}
|
|
203
205
|
/**
|
|
204
206
|
* Returns the last value in the collection
|
|
205
207
|
*/
|
|
206
208
|
get lastValue() {
|
|
207
|
-
let
|
|
208
|
-
for (; this.getItemDisabled(this.at(
|
|
209
|
-
return this.getItemValue(this.at(
|
|
209
|
+
let o = this.size - 1;
|
|
210
|
+
for (; this.getItemDisabled(this.at(o)); ) o--;
|
|
211
|
+
return this.getItemValue(this.at(o));
|
|
210
212
|
}
|
|
211
213
|
*[Symbol.iterator]() {
|
|
212
214
|
yield* this.items;
|
|
213
215
|
}
|
|
214
|
-
},
|
|
215
|
-
function f(
|
|
216
|
-
return [...
|
|
216
|
+
}, b = (u, o) => !!(u != null && u.toLowerCase().startsWith(o.toLowerCase()));
|
|
217
|
+
function f(u, o, ...t) {
|
|
218
|
+
return [...u.slice(0, o), ...t, ...u.slice(o)];
|
|
217
219
|
}
|
|
218
|
-
function c(
|
|
219
|
-
|
|
220
|
-
const e =
|
|
221
|
-
for (let i =
|
|
222
|
-
|
|
223
|
-
return t = Math.max(0, t -
|
|
220
|
+
function c(u, o, t) {
|
|
221
|
+
o = [...o].sort((i, s) => i - s);
|
|
222
|
+
const e = o.map((i) => u[i]);
|
|
223
|
+
for (let i = o.length - 1; i >= 0; i--)
|
|
224
|
+
u = [...u.slice(0, o[i]), ...u.slice(o[i] + 1)];
|
|
225
|
+
return t = Math.max(0, t - o.filter((i) => i < t).length), [...u.slice(0, t), ...e, ...u.slice(t)];
|
|
224
226
|
}
|
|
225
227
|
export {
|
|
226
|
-
|
|
228
|
+
B as ListCollection
|
|
227
229
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function c({
|
|
2
|
+
values: e,
|
|
3
|
+
collection: t,
|
|
4
|
+
selectedItemMap: o
|
|
5
|
+
}) {
|
|
6
|
+
const a = [];
|
|
7
|
+
for (const n of e) {
|
|
8
|
+
const l = t.find(n) ?? o.get(n);
|
|
9
|
+
l != null && a.push(l);
|
|
10
|
+
}
|
|
11
|
+
return a;
|
|
12
|
+
}
|
|
13
|
+
function r({
|
|
14
|
+
selectedItemMap: e,
|
|
15
|
+
values: t,
|
|
16
|
+
selectedItems: o,
|
|
17
|
+
collection: a
|
|
18
|
+
}) {
|
|
19
|
+
const n = new Map(e);
|
|
20
|
+
for (const u of o) {
|
|
21
|
+
const s = a.getItemValue(u);
|
|
22
|
+
s != null && n.set(s, u);
|
|
23
|
+
}
|
|
24
|
+
const l = new Set(t);
|
|
25
|
+
for (const u of n.keys())
|
|
26
|
+
l.has(u) || n.delete(u);
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
function f({
|
|
30
|
+
values: e,
|
|
31
|
+
collection: t,
|
|
32
|
+
selectedItemMap: o
|
|
33
|
+
}) {
|
|
34
|
+
const a = c({ values: e, collection: t, selectedItemMap: o }), n = r({
|
|
35
|
+
selectedItemMap: o,
|
|
36
|
+
values: e,
|
|
37
|
+
selectedItems: a,
|
|
38
|
+
collection: t
|
|
39
|
+
});
|
|
40
|
+
return { selectedItems: a, nextSelectedItemMap: n };
|
|
41
|
+
}
|
|
42
|
+
function i({
|
|
43
|
+
selectedItems: e,
|
|
44
|
+
collection: t
|
|
45
|
+
}) {
|
|
46
|
+
return r({
|
|
47
|
+
selectedItemMap: /* @__PURE__ */ new Map(),
|
|
48
|
+
values: e.map((o) => t.getItemValue(o)).filter(Boolean),
|
|
49
|
+
selectedItems: e,
|
|
50
|
+
collection: t
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
i as createSelectedItemMap,
|
|
55
|
+
f as deriveSelectionState,
|
|
56
|
+
c as resolveSelectedItems,
|
|
57
|
+
r as updateSelectedItemMap
|
|
58
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createAnatomy as t } from "../../anatomy/dist/create-anatomy.js";
|
|
2
|
+
var r = t("combobox").parts(
|
|
3
|
+
"root",
|
|
4
|
+
"clearTrigger",
|
|
5
|
+
"content",
|
|
6
|
+
"control",
|
|
7
|
+
"input",
|
|
8
|
+
"item",
|
|
9
|
+
"itemGroup",
|
|
10
|
+
"itemGroupLabel",
|
|
11
|
+
"itemIndicator",
|
|
12
|
+
"itemText",
|
|
13
|
+
"label",
|
|
14
|
+
"list",
|
|
15
|
+
"positioner",
|
|
16
|
+
"trigger"
|
|
17
|
+
), e = r.build();
|
|
18
|
+
export {
|
|
19
|
+
r as anatomy,
|
|
20
|
+
e as parts
|
|
21
|
+
};
|