@serendie/ui 3.2.0 → 3.2.1-dev.202604251106
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/BottomNavigation.js +12 -11
- 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/BodyCell.js +3 -2
- package/dist/components/DataTable/table/HeaderCell.js +16 -15
- package/dist/components/DataTable/table/Root.js +7 -6
- 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 +16 -15
- 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,19 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { weekStartData as
|
|
3
|
-
function
|
|
4
|
-
return a =
|
|
1
|
+
import { toCalendarDate as D, toCalendar as $, fromAbsolute as h } from "./conversion.js";
|
|
2
|
+
import { weekStartData as v } from "./weekStartData.js";
|
|
3
|
+
function p(e, a) {
|
|
4
|
+
return a = $(a, e.calendar), e.era === a.era && e.year === a.year && e.month === a.month && e.day === a.day;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function g(e, a) {
|
|
7
|
+
return a = $(a, e.calendar), e = c(e), a = c(a), e.era === a.era && e.year === a.year && e.month === a.month;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
return (r = (f = (t = e.isEqual) === null || t === void 0 ? void 0 : t.call(e, a)) !== null && f !== void 0 ? f : (n = a.isEqual) === null || n === void 0 ? void 0 : n.call(a, e)) !== null && r !== void 0 ? r : e.identifier === a.identifier;
|
|
9
|
+
function I(e, a) {
|
|
10
|
+
return a = $(a, e.calendar), e = d(e), a = d(a), e.era === a.era && e.year === a.year;
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
function Y(e, a) {
|
|
13
|
+
return s(e.calendar, a.calendar) && p(e, a);
|
|
15
14
|
}
|
|
16
|
-
|
|
15
|
+
function _(e, a) {
|
|
16
|
+
return s(e.calendar, a.calendar) && g(e, a);
|
|
17
|
+
}
|
|
18
|
+
function L(e, a) {
|
|
19
|
+
return s(e.calendar, a.calendar) && I(e, a);
|
|
20
|
+
}
|
|
21
|
+
function s(e, a) {
|
|
22
|
+
var n, t, r, f;
|
|
23
|
+
return (f = (r = (n = e.isEqual) === null || n === void 0 ? void 0 : n.call(e, a)) !== null && r !== void 0 ? r : (t = a.isEqual) === null || t === void 0 ? void 0 : t.call(a, e)) !== null && f !== void 0 ? f : e.identifier === a.identifier;
|
|
24
|
+
}
|
|
25
|
+
function b(e, a) {
|
|
26
|
+
return p(e, k(a));
|
|
27
|
+
}
|
|
28
|
+
const M = {
|
|
17
29
|
sun: 0,
|
|
18
30
|
mon: 1,
|
|
19
31
|
tue: 2,
|
|
@@ -22,84 +34,118 @@ const h = {
|
|
|
22
34
|
fri: 5,
|
|
23
35
|
sat: 6
|
|
24
36
|
};
|
|
25
|
-
function
|
|
26
|
-
let
|
|
27
|
-
return
|
|
37
|
+
function y(e, a, n) {
|
|
38
|
+
let t = e.calendar.toJulianDay(e), r = n ? M[n] : q(a), f = Math.ceil(t + 1 - r) % 7;
|
|
39
|
+
return f < 0 && (f += 7), f;
|
|
28
40
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
41
|
+
function E(e) {
|
|
42
|
+
return h(Date.now(), e);
|
|
31
43
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
44
|
+
function k(e) {
|
|
45
|
+
return D(E(e));
|
|
34
46
|
}
|
|
35
|
-
function
|
|
47
|
+
function Z(e, a) {
|
|
36
48
|
return e.calendar.toJulianDay(e) - a.calendar.toJulianDay(a);
|
|
37
49
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
50
|
+
function J(e, a) {
|
|
51
|
+
return u(e) - u(a);
|
|
40
52
|
}
|
|
41
|
-
function
|
|
53
|
+
function u(e) {
|
|
42
54
|
return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
|
|
43
55
|
}
|
|
44
|
-
let
|
|
45
|
-
function
|
|
46
|
-
return
|
|
56
|
+
let i = null, w = !1;
|
|
57
|
+
function C() {
|
|
58
|
+
return i == null && (i = new Intl.DateTimeFormat().resolvedOptions().timeZone), i;
|
|
47
59
|
}
|
|
48
|
-
function
|
|
60
|
+
function R() {
|
|
61
|
+
return w;
|
|
62
|
+
}
|
|
63
|
+
function c(e) {
|
|
49
64
|
return e.subtract({
|
|
50
65
|
days: e.day - 1
|
|
51
66
|
});
|
|
52
67
|
}
|
|
53
|
-
function
|
|
68
|
+
function O(e) {
|
|
54
69
|
return e.add({
|
|
55
70
|
days: e.calendar.getDaysInMonth(e) - e.day
|
|
56
71
|
});
|
|
57
72
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
73
|
+
function d(e) {
|
|
74
|
+
return c(e.subtract({
|
|
60
75
|
months: e.month - 1
|
|
61
76
|
}));
|
|
62
77
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
78
|
+
function j(e) {
|
|
79
|
+
return O(e.add({
|
|
65
80
|
months: e.calendar.getMonthsInYear(e) - e.month
|
|
66
81
|
}));
|
|
67
82
|
}
|
|
68
|
-
function
|
|
69
|
-
let
|
|
83
|
+
function W(e, a, n) {
|
|
84
|
+
let t = y(e, a, n);
|
|
70
85
|
return e.subtract({
|
|
71
|
-
days:
|
|
86
|
+
days: t
|
|
72
87
|
});
|
|
73
88
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
89
|
+
function F(e, a, n) {
|
|
90
|
+
return W(e, a, n).add({
|
|
76
91
|
days: 6
|
|
77
92
|
});
|
|
78
93
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
94
|
+
const l = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
95
|
+
function m(e) {
|
|
81
96
|
if (Intl.Locale) {
|
|
82
|
-
let
|
|
83
|
-
return
|
|
97
|
+
let n = l.get(e);
|
|
98
|
+
return n || (n = new Intl.Locale(e).maximize().region, n && l.set(e, n)), n;
|
|
84
99
|
}
|
|
85
100
|
let a = e.split("-")[1];
|
|
86
101
|
return a === "u" ? void 0 : a;
|
|
87
102
|
}
|
|
88
|
-
function
|
|
89
|
-
let a =
|
|
90
|
-
|
|
103
|
+
function q(e) {
|
|
104
|
+
let a = o.get(e);
|
|
105
|
+
if (!a) {
|
|
106
|
+
if (Intl.Locale) {
|
|
107
|
+
let t = new Intl.Locale(e);
|
|
108
|
+
if ("getWeekInfo" in t && (a = t.getWeekInfo(), a))
|
|
109
|
+
return o.set(e, a), a.firstDay;
|
|
110
|
+
}
|
|
111
|
+
let n = m(e);
|
|
112
|
+
if (e.includes("-fw-")) {
|
|
113
|
+
let t = e.split("-fw-")[1].split("-")[0];
|
|
114
|
+
t === "mon" ? a = {
|
|
115
|
+
firstDay: 1
|
|
116
|
+
} : t === "tue" ? a = {
|
|
117
|
+
firstDay: 2
|
|
118
|
+
} : t === "wed" ? a = {
|
|
119
|
+
firstDay: 3
|
|
120
|
+
} : t === "thu" ? a = {
|
|
121
|
+
firstDay: 4
|
|
122
|
+
} : t === "fri" ? a = {
|
|
123
|
+
firstDay: 5
|
|
124
|
+
} : t === "sat" ? a = {
|
|
125
|
+
firstDay: 6
|
|
126
|
+
} : a = {
|
|
127
|
+
firstDay: 0
|
|
128
|
+
};
|
|
129
|
+
} else e.includes("-ca-iso8601") ? a = {
|
|
130
|
+
firstDay: 1
|
|
131
|
+
} : a = {
|
|
132
|
+
firstDay: n && v[n] || 0
|
|
133
|
+
};
|
|
134
|
+
o.set(e, a);
|
|
135
|
+
}
|
|
136
|
+
return a.firstDay;
|
|
91
137
|
}
|
|
92
|
-
function
|
|
93
|
-
let
|
|
94
|
-
return Math.ceil((
|
|
138
|
+
function K(e, a, n) {
|
|
139
|
+
let t = e.calendar.getDaysInMonth(e);
|
|
140
|
+
return Math.ceil((y(c(e), a, n) + t) / 7);
|
|
95
141
|
}
|
|
96
|
-
function
|
|
142
|
+
function Q(e, a) {
|
|
97
143
|
return e && a ? e.compare(a) <= 0 ? e : a : e || a;
|
|
98
144
|
}
|
|
99
|
-
function
|
|
145
|
+
function z(e, a) {
|
|
100
146
|
return e && a ? e.compare(a) >= 0 ? e : a : e || a;
|
|
101
147
|
}
|
|
102
|
-
const
|
|
148
|
+
const A = {
|
|
103
149
|
AF: [
|
|
104
150
|
4,
|
|
105
151
|
5
|
|
@@ -169,34 +215,39 @@ const O = {
|
|
|
169
215
|
6
|
|
170
216
|
]
|
|
171
217
|
};
|
|
172
|
-
function
|
|
173
|
-
let
|
|
174
|
-
|
|
175
|
-
let
|
|
218
|
+
function B(e, a) {
|
|
219
|
+
let n = e.calendar.toJulianDay(e), t = Math.ceil(n + 1) % 7;
|
|
220
|
+
t < 0 && (t += 7);
|
|
221
|
+
let r = m(a), [f, x] = A[r] || [
|
|
176
222
|
6,
|
|
177
223
|
0
|
|
178
224
|
];
|
|
179
|
-
return
|
|
225
|
+
return t === f || t === x;
|
|
180
226
|
}
|
|
181
227
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
228
|
+
Z as compareDate,
|
|
229
|
+
J as compareTime,
|
|
230
|
+
O as endOfMonth,
|
|
231
|
+
F as endOfWeek,
|
|
232
|
+
j as endOfYear,
|
|
233
|
+
y as getDayOfWeek,
|
|
234
|
+
C as getLocalTimeZone,
|
|
235
|
+
K as getWeeksInMonth,
|
|
236
|
+
s as isEqualCalendar,
|
|
237
|
+
Y as isEqualDay,
|
|
238
|
+
_ as isEqualMonth,
|
|
239
|
+
L as isEqualYear,
|
|
240
|
+
R as isLocalTimeZoneOverridden,
|
|
241
|
+
p as isSameDay,
|
|
242
|
+
g as isSameMonth,
|
|
243
|
+
I as isSameYear,
|
|
244
|
+
b as isToday,
|
|
245
|
+
B as isWeekend,
|
|
246
|
+
z as maxDate,
|
|
247
|
+
Q as minDate,
|
|
248
|
+
E as now,
|
|
249
|
+
c as startOfMonth,
|
|
250
|
+
W as startOfWeek,
|
|
251
|
+
d as startOfYear,
|
|
252
|
+
k as today
|
|
202
253
|
};
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { CalendarDate as
|
|
2
|
-
import { toCalendar as
|
|
3
|
-
import { GregorianCalendar as
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
if (!
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { CalendarDate as c } from "./CalendarDate.js";
|
|
2
|
+
import { toCalendar as f } from "./conversion.js";
|
|
3
|
+
import { GregorianCalendar as d } from "./GregorianCalendar.js";
|
|
4
|
+
const i = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, s = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
|
|
5
|
+
function m(a) {
|
|
6
|
+
let t = a.match(i);
|
|
7
|
+
if (!t)
|
|
8
|
+
throw s.test(a) ? new Error(`Invalid ISO 8601 date string: ${a}. Use parseAbsolute() instead.`) : new Error("Invalid ISO 8601 date string: " + a);
|
|
9
|
+
let r = new c(n(t[1], 0, 9999), n(t[2], 1, 12), 1);
|
|
10
|
+
return r.day = n(t[3], 1, r.calendar.getDaysInMonth(r)), r;
|
|
10
11
|
}
|
|
11
|
-
function n(a,
|
|
12
|
+
function n(a, t, r) {
|
|
12
13
|
let e = Number(a);
|
|
13
|
-
if (e <
|
|
14
|
+
if (e < t || e > r) throw new RangeError(`Value out of range: ${t} <= ${e} <= ${r}`);
|
|
14
15
|
return e;
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function S(a) {
|
|
17
18
|
return `${String(a.hour).padStart(2, "0")}:${String(a.minute).padStart(2, "0")}:${String(a.second).padStart(2, "0")}${a.millisecond ? String(a.millisecond / 1e3).slice(1) : ""}`;
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
let
|
|
21
|
-
return
|
|
20
|
+
function g(a) {
|
|
21
|
+
let t = f(a, new d()), r;
|
|
22
|
+
return t.era === "BC" ? r = t.year === 1 ? "0000" : "-" + String(Math.abs(1 - t.year)).padStart(6, "00") : r = String(t.year).padStart(4, "0"), `${r}-${String(t.month).padStart(2, "0")}-${String(t.day).padStart(2, "0")}`;
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
return `${
|
|
24
|
+
function l(a) {
|
|
25
|
+
return `${g(a)}T${S(a)}`;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
-
let
|
|
27
|
+
function p(a) {
|
|
28
|
+
let t = Math.sign(a) < 0 ? "-" : "+";
|
|
28
29
|
a = Math.abs(a);
|
|
29
|
-
let
|
|
30
|
-
return
|
|
30
|
+
let r = Math.floor(a / 36e5), e = Math.floor(a % 36e5 / 6e4), $ = Math.floor(a % 36e5 % 6e4 / 1e3), o = `${t}${String(r).padStart(2, "0")}:${String(e).padStart(2, "0")}`;
|
|
31
|
+
return $ !== 0 && (o += `:${String($).padStart(2, "0")}`), o;
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
return `${
|
|
33
|
+
function T(a) {
|
|
34
|
+
return `${l(a)}${p(a.offset)}[${a.timeZone}]`;
|
|
34
35
|
}
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
l as dateTimeToString,
|
|
38
|
+
g as dateToString,
|
|
39
|
+
m as parseDate,
|
|
40
|
+
S as timeToString,
|
|
41
|
+
T as zonedDateTimeToString
|
|
41
42
|
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { getEventKey as G } from "../../dom-query/dist/event.js";
|
|
2
|
+
import { isSafari as E } from "../../dom-query/dist/platform.js";
|
|
3
|
+
import { dataAttr as r } from "../../dom-query/dist/shared.js";
|
|
4
|
+
import { parts as u } from "./accordion.anatomy.js";
|
|
5
|
+
import { getRootId as I, getItemContentId as f, getItemTriggerId as v, getItemId as S } from "./accordion.dom.js";
|
|
6
|
+
function H(T, s) {
|
|
7
|
+
const { send: d, context: p, prop: a, scope: i, computed: c } = T, m = p.get("focusedValue"), g = p.get("value"), y = a("multiple");
|
|
8
|
+
function O(t) {
|
|
9
|
+
let e = t;
|
|
10
|
+
!y && e.length > 1 && (e = [e[0]]), d({ type: "VALUE.SET", value: e });
|
|
11
|
+
}
|
|
12
|
+
function l(t) {
|
|
13
|
+
return {
|
|
14
|
+
expanded: g.includes(t.value),
|
|
15
|
+
focused: m === t.value,
|
|
16
|
+
disabled: !!(t.disabled ?? a("disabled"))
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
focusedValue: m,
|
|
21
|
+
value: g,
|
|
22
|
+
setValue: O,
|
|
23
|
+
getItemState: l,
|
|
24
|
+
getRootProps() {
|
|
25
|
+
return s.element({
|
|
26
|
+
...u.root.attrs,
|
|
27
|
+
dir: a("dir"),
|
|
28
|
+
id: I(i),
|
|
29
|
+
"data-orientation": a("orientation")
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
getItemProps(t) {
|
|
33
|
+
const e = l(t);
|
|
34
|
+
return s.element({
|
|
35
|
+
...u.item.attrs,
|
|
36
|
+
dir: a("dir"),
|
|
37
|
+
id: S(i, t.value),
|
|
38
|
+
"data-state": e.expanded ? "open" : "closed",
|
|
39
|
+
"data-focus": r(e.focused),
|
|
40
|
+
"data-disabled": r(e.disabled),
|
|
41
|
+
"data-orientation": a("orientation")
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
getItemContentProps(t) {
|
|
45
|
+
const e = l(t);
|
|
46
|
+
return s.element({
|
|
47
|
+
...u.itemContent.attrs,
|
|
48
|
+
dir: a("dir"),
|
|
49
|
+
role: "region",
|
|
50
|
+
id: f(i, t.value),
|
|
51
|
+
"aria-labelledby": v(i, t.value),
|
|
52
|
+
hidden: !e.expanded,
|
|
53
|
+
"data-state": e.expanded ? "open" : "closed",
|
|
54
|
+
"data-disabled": r(e.disabled),
|
|
55
|
+
"data-focus": r(e.focused),
|
|
56
|
+
"data-orientation": a("orientation")
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
getItemIndicatorProps(t) {
|
|
60
|
+
const e = l(t);
|
|
61
|
+
return s.element({
|
|
62
|
+
...u.itemIndicator.attrs,
|
|
63
|
+
dir: a("dir"),
|
|
64
|
+
"aria-hidden": !0,
|
|
65
|
+
"data-state": e.expanded ? "open" : "closed",
|
|
66
|
+
"data-disabled": r(e.disabled),
|
|
67
|
+
"data-focus": r(e.focused),
|
|
68
|
+
"data-orientation": a("orientation")
|
|
69
|
+
});
|
|
70
|
+
},
|
|
71
|
+
getItemTriggerProps(t) {
|
|
72
|
+
const { value: e } = t, o = l(t);
|
|
73
|
+
return s.button({
|
|
74
|
+
...u.itemTrigger.attrs,
|
|
75
|
+
type: "button",
|
|
76
|
+
dir: a("dir"),
|
|
77
|
+
id: v(i, e),
|
|
78
|
+
"aria-controls": f(i, e),
|
|
79
|
+
"data-controls": f(i, e),
|
|
80
|
+
"aria-expanded": o.expanded,
|
|
81
|
+
disabled: o.disabled,
|
|
82
|
+
"data-orientation": a("orientation"),
|
|
83
|
+
"aria-disabled": o.disabled,
|
|
84
|
+
"data-state": o.expanded ? "open" : "closed",
|
|
85
|
+
"data-focus": r(o.focused),
|
|
86
|
+
"data-ownedby": I(i),
|
|
87
|
+
onFocus() {
|
|
88
|
+
o.disabled || d({ type: "TRIGGER.FOCUS", value: e });
|
|
89
|
+
},
|
|
90
|
+
onBlur() {
|
|
91
|
+
o.disabled || d({ type: "TRIGGER.BLUR" });
|
|
92
|
+
},
|
|
93
|
+
onClick(n) {
|
|
94
|
+
o.disabled || (E() && n.currentTarget.focus(), d({ type: "TRIGGER.CLICK", value: e }));
|
|
95
|
+
},
|
|
96
|
+
onKeyDown(n) {
|
|
97
|
+
if (n.defaultPrevented || o.disabled) return;
|
|
98
|
+
const R = {
|
|
99
|
+
ArrowDown() {
|
|
100
|
+
c("isHorizontal") || d({ type: "GOTO.NEXT", value: e });
|
|
101
|
+
},
|
|
102
|
+
ArrowUp() {
|
|
103
|
+
c("isHorizontal") || d({ type: "GOTO.PREV", value: e });
|
|
104
|
+
},
|
|
105
|
+
ArrowRight() {
|
|
106
|
+
c("isHorizontal") && d({ type: "GOTO.NEXT", value: e });
|
|
107
|
+
},
|
|
108
|
+
ArrowLeft() {
|
|
109
|
+
c("isHorizontal") && d({ type: "GOTO.PREV", value: e });
|
|
110
|
+
},
|
|
111
|
+
Home() {
|
|
112
|
+
d({ type: "GOTO.FIRST", value: e });
|
|
113
|
+
},
|
|
114
|
+
End() {
|
|
115
|
+
d({ type: "GOTO.LAST", value: e });
|
|
116
|
+
}
|
|
117
|
+
}, x = G(n, {
|
|
118
|
+
dir: a("dir"),
|
|
119
|
+
orientation: a("orientation")
|
|
120
|
+
}), b = R[x];
|
|
121
|
+
b && (b(n), n.preventDefault());
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
H as connect
|
|
129
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { prevById as a, nextById as n, queryAll as s } from "../../dom-query/dist/query.js";
|
|
2
|
+
import { last as I, first as m } from "../../utils/dist/array.js";
|
|
3
|
+
var g = (r) => {
|
|
4
|
+
var e;
|
|
5
|
+
return ((e = r.ids) == null ? void 0 : e.root) ?? `accordion:${r.id}`;
|
|
6
|
+
}, T = (r, e) => {
|
|
7
|
+
var t, o;
|
|
8
|
+
return ((o = (t = r.ids) == null ? void 0 : t.item) == null ? void 0 : o.call(t, e)) ?? `accordion:${r.id}:item:${e}`;
|
|
9
|
+
}, c = (r, e) => {
|
|
10
|
+
var t, o;
|
|
11
|
+
return ((o = (t = r.ids) == null ? void 0 : t.itemContent) == null ? void 0 : o.call(t, e)) ?? `accordion:${r.id}:content:${e}`;
|
|
12
|
+
}, d = (r, e) => {
|
|
13
|
+
var t, o;
|
|
14
|
+
return ((o = (t = r.ids) == null ? void 0 : t.itemTrigger) == null ? void 0 : o.call(t, e)) ?? `accordion:${r.id}:trigger:${e}`;
|
|
15
|
+
}, l = (r) => r.getById(g(r)), i = (r) => {
|
|
16
|
+
const t = `[data-controls][data-ownedby='${CSS.escape(g(r))}']:not([disabled])`;
|
|
17
|
+
return s(l(r), t);
|
|
18
|
+
}, E = (r) => m(i(r)), p = (r) => I(i(r)), y = (r, e) => n(i(r), d(r, e)), f = (r, e) => a(i(r), d(r, e));
|
|
19
|
+
export {
|
|
20
|
+
E as getFirstTriggerEl,
|
|
21
|
+
c as getItemContentId,
|
|
22
|
+
T as getItemId,
|
|
23
|
+
d as getItemTriggerId,
|
|
24
|
+
p as getLastTriggerEl,
|
|
25
|
+
y as getNextTriggerEl,
|
|
26
|
+
f as getPrevTriggerEl,
|
|
27
|
+
l as getRootEl,
|
|
28
|
+
g as getRootId,
|
|
29
|
+
i as getTriggerEls
|
|
30
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { getPrevTriggerEl as t, getNextTriggerEl as s, getLastTriggerEl as o, getFirstTriggerEl as r } from "./accordion.dom.js";
|
|
2
|
+
import { createMachine as i, createGuards as c } from "../../core/dist/create-machine.js";
|
|
3
|
+
import { warn as n } from "../../utils/dist/warning.js";
|
|
4
|
+
import { add as g, remove as d } from "../../utils/dist/array.js";
|
|
5
|
+
var { and: f, not: v } = c(), E = i({
|
|
6
|
+
props({ props: e }) {
|
|
7
|
+
return {
|
|
8
|
+
collapsible: !1,
|
|
9
|
+
multiple: !1,
|
|
10
|
+
orientation: "vertical",
|
|
11
|
+
defaultValue: [],
|
|
12
|
+
...e
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
initialState() {
|
|
16
|
+
return "idle";
|
|
17
|
+
},
|
|
18
|
+
context({ prop: e, bindable: a }) {
|
|
19
|
+
return {
|
|
20
|
+
focusedValue: a(() => ({
|
|
21
|
+
defaultValue: null,
|
|
22
|
+
sync: !0,
|
|
23
|
+
onChange(l) {
|
|
24
|
+
var u;
|
|
25
|
+
(u = e("onFocusChange")) == null || u({ value: l });
|
|
26
|
+
}
|
|
27
|
+
})),
|
|
28
|
+
value: a(() => ({
|
|
29
|
+
defaultValue: e("defaultValue"),
|
|
30
|
+
value: e("value"),
|
|
31
|
+
onChange(l) {
|
|
32
|
+
var u;
|
|
33
|
+
(u = e("onValueChange")) == null || u({ value: l });
|
|
34
|
+
}
|
|
35
|
+
}))
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
isHorizontal: ({ prop: e }) => e("orientation") === "horizontal"
|
|
40
|
+
},
|
|
41
|
+
on: {
|
|
42
|
+
"VALUE.SET": {
|
|
43
|
+
actions: ["setValue"]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
states: {
|
|
47
|
+
idle: {
|
|
48
|
+
on: {
|
|
49
|
+
"TRIGGER.FOCUS": {
|
|
50
|
+
target: "focused",
|
|
51
|
+
actions: ["setFocusedValue"]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
focused: {
|
|
56
|
+
on: {
|
|
57
|
+
"GOTO.NEXT": {
|
|
58
|
+
actions: ["focusNextTrigger"]
|
|
59
|
+
},
|
|
60
|
+
"GOTO.PREV": {
|
|
61
|
+
actions: ["focusPrevTrigger"]
|
|
62
|
+
},
|
|
63
|
+
"TRIGGER.CLICK": [
|
|
64
|
+
{
|
|
65
|
+
guard: f("isExpanded", "canToggle"),
|
|
66
|
+
actions: ["collapse"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
guard: v("isExpanded"),
|
|
70
|
+
actions: ["expand"]
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"GOTO.FIRST": {
|
|
74
|
+
actions: ["focusFirstTrigger"]
|
|
75
|
+
},
|
|
76
|
+
"GOTO.LAST": {
|
|
77
|
+
actions: ["focusLastTrigger"]
|
|
78
|
+
},
|
|
79
|
+
"TRIGGER.BLUR": {
|
|
80
|
+
target: "idle",
|
|
81
|
+
actions: ["clearFocusedValue"]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
implementations: {
|
|
87
|
+
guards: {
|
|
88
|
+
canToggle: ({ prop: e }) => !!e("collapsible") || !!e("multiple"),
|
|
89
|
+
isExpanded: ({ context: e, event: a }) => e.get("value").includes(a.value)
|
|
90
|
+
},
|
|
91
|
+
actions: {
|
|
92
|
+
collapse({ context: e, prop: a, event: l }) {
|
|
93
|
+
const u = a("multiple") ? d(e.get("value"), l.value) : [];
|
|
94
|
+
e.set("value", u);
|
|
95
|
+
},
|
|
96
|
+
expand({ context: e, prop: a, event: l }) {
|
|
97
|
+
const u = a("multiple") ? g(e.get("value"), l.value) : [l.value];
|
|
98
|
+
e.set("value", u);
|
|
99
|
+
},
|
|
100
|
+
focusFirstTrigger({ scope: e }) {
|
|
101
|
+
var a;
|
|
102
|
+
(a = r(e)) == null || a.focus();
|
|
103
|
+
},
|
|
104
|
+
focusLastTrigger({ scope: e }) {
|
|
105
|
+
var a;
|
|
106
|
+
(a = o(e)) == null || a.focus();
|
|
107
|
+
},
|
|
108
|
+
focusNextTrigger({ context: e, scope: a }) {
|
|
109
|
+
const l = e.get("focusedValue");
|
|
110
|
+
if (!l) return;
|
|
111
|
+
const u = s(a, l);
|
|
112
|
+
u == null || u.focus();
|
|
113
|
+
},
|
|
114
|
+
focusPrevTrigger({ context: e, scope: a }) {
|
|
115
|
+
const l = e.get("focusedValue");
|
|
116
|
+
if (!l) return;
|
|
117
|
+
const u = t(a, l);
|
|
118
|
+
u == null || u.focus();
|
|
119
|
+
},
|
|
120
|
+
setFocusedValue({ context: e, event: a }) {
|
|
121
|
+
e.set("focusedValue", a.value);
|
|
122
|
+
},
|
|
123
|
+
clearFocusedValue({ context: e }) {
|
|
124
|
+
e.set("focusedValue", null);
|
|
125
|
+
},
|
|
126
|
+
setValue({ context: e, event: a }) {
|
|
127
|
+
e.set("value", a.value);
|
|
128
|
+
},
|
|
129
|
+
coarseValue({ context: e, prop: a }) {
|
|
130
|
+
!a("multiple") && e.get("value").length > 1 && (n("The value of accordion should be a single value when multiple is false."), e.set("value", [e.get("value")[0]]));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export {
|
|
136
|
+
E as machine
|
|
137
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { walkTreeOutside as u } from "./walk-tree-outside.js";
|
|
2
|
+
var d = (r) => (Array.isArray(r) ? r[0] : r).ownerDocument.body, n = (r, e = d(r), t = "data-aria-hidden", a = !0) => {
|
|
3
|
+
if (e)
|
|
4
|
+
return u(r, {
|
|
5
|
+
parentNode: e,
|
|
6
|
+
markerName: t,
|
|
7
|
+
controlAttribute: "aria-hidden",
|
|
8
|
+
explicitBooleanValue: !0,
|
|
9
|
+
followControlledElements: a
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
n as hideOthers
|
|
14
|
+
};
|