@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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { getRootNode as g } from "./node.js";
|
|
2
|
+
var E = /* @__PURE__ */ new Set(["menu", "listbox", "dialog", "grid", "tree", "region"]), C = (t) => E.has(t), A = (t) => {
|
|
3
|
+
var o;
|
|
4
|
+
return ((o = t.getAttribute("aria-controls")) == null ? void 0 : o.split(" ")) || [];
|
|
5
|
+
};
|
|
6
|
+
function S(t, o) {
|
|
7
|
+
const r = /* @__PURE__ */ new Set(), i = g(t), l = (c) => {
|
|
8
|
+
const d = c.querySelectorAll("[aria-controls]");
|
|
9
|
+
for (const a of d) {
|
|
10
|
+
if (a.getAttribute("aria-expanded") !== "true") continue;
|
|
11
|
+
const u = A(a);
|
|
12
|
+
for (const n of u) {
|
|
13
|
+
if (!n || r.has(n)) continue;
|
|
14
|
+
r.add(n);
|
|
15
|
+
const e = i.getElementById(n);
|
|
16
|
+
if (e) {
|
|
17
|
+
const s = e.getAttribute("role"), f = e.getAttribute("aria-modal") === "true";
|
|
18
|
+
if (s && C(s) && !f && (e === o || e.contains(o) || l(e)))
|
|
19
|
+
return !0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return !1;
|
|
24
|
+
};
|
|
25
|
+
return l(t);
|
|
26
|
+
}
|
|
27
|
+
function p(t, o) {
|
|
28
|
+
const r = g(t), i = /* @__PURE__ */ new Set(), l = (c) => {
|
|
29
|
+
const d = c.querySelectorAll("[aria-controls]");
|
|
30
|
+
for (const a of d) {
|
|
31
|
+
if (a.getAttribute("aria-expanded") !== "true") continue;
|
|
32
|
+
const u = A(a);
|
|
33
|
+
for (const n of u) {
|
|
34
|
+
if (!n || i.has(n)) continue;
|
|
35
|
+
i.add(n);
|
|
36
|
+
const e = r.getElementById(n);
|
|
37
|
+
if (e) {
|
|
38
|
+
const s = e.getAttribute("role"), f = e.getAttribute("aria-modal") === "true";
|
|
39
|
+
s && E.has(s) && !f && (o(e), l(e));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
l(t);
|
|
45
|
+
}
|
|
46
|
+
function x(t) {
|
|
47
|
+
const o = /* @__PURE__ */ new Set();
|
|
48
|
+
return p(t, (r) => {
|
|
49
|
+
t.contains(r) || o.add(r);
|
|
50
|
+
}), Array.from(o);
|
|
51
|
+
}
|
|
52
|
+
function I(t) {
|
|
53
|
+
const o = t.getAttribute("role");
|
|
54
|
+
return !!(o && E.has(o));
|
|
55
|
+
}
|
|
56
|
+
function b(t) {
|
|
57
|
+
return t.hasAttribute("aria-controls") && t.getAttribute("aria-expanded") === "true";
|
|
58
|
+
}
|
|
59
|
+
function v(t) {
|
|
60
|
+
var o;
|
|
61
|
+
return b(t) ? !0 : !!((o = t.querySelector) != null && o.call(t, '[aria-controls][aria-expanded="true"]'));
|
|
62
|
+
}
|
|
63
|
+
function y(t) {
|
|
64
|
+
if (!t.id) return !1;
|
|
65
|
+
const o = g(t), r = CSS.escape(t.id), i = `[aria-controls~="${r}"][aria-expanded="true"], [aria-controls="${r}"][aria-expanded="true"]`;
|
|
66
|
+
return !!(o.querySelector(i) && I(t));
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
p as findControlledElements,
|
|
70
|
+
x as getControlledElements,
|
|
71
|
+
v as hasControllerElements,
|
|
72
|
+
y as isControlledByExpandedController,
|
|
73
|
+
S as isControlledElement,
|
|
74
|
+
b as isControllerElement,
|
|
75
|
+
I as isInteractiveContainerElement
|
|
76
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { isAndroid as s, isMac as u } from "./platform.js";
|
|
2
|
+
function c(t) {
|
|
3
|
+
var r, n, i;
|
|
4
|
+
return ((r = t.composedPath) == null ? void 0 : r.call(t)) ?? ((i = (n = t.nativeEvent) == null ? void 0 : n.composedPath) == null ? void 0 : i.call(n));
|
|
5
|
+
}
|
|
6
|
+
function g(t) {
|
|
7
|
+
const r = c(t);
|
|
8
|
+
return (r == null ? void 0 : r[0]) ?? t.target;
|
|
9
|
+
}
|
|
10
|
+
function h(t) {
|
|
11
|
+
const r = t.currentTarget;
|
|
12
|
+
if (!r || !r.matches("a[href], button[type='submit'], input[type='submit']")) return !1;
|
|
13
|
+
const i = t.button === 1, e = a(t);
|
|
14
|
+
return i || e;
|
|
15
|
+
}
|
|
16
|
+
function E(t) {
|
|
17
|
+
const r = t.currentTarget;
|
|
18
|
+
if (!r) return !1;
|
|
19
|
+
const n = r.localName;
|
|
20
|
+
return t.altKey ? n === "a" || n === "button" && r.type === "submit" || n === "input" && r.type === "submit" : !1;
|
|
21
|
+
}
|
|
22
|
+
function d(t) {
|
|
23
|
+
return y(t).isComposing || t.keyCode === 229;
|
|
24
|
+
}
|
|
25
|
+
function a(t) {
|
|
26
|
+
return u() ? t.metaKey : t.ctrlKey;
|
|
27
|
+
}
|
|
28
|
+
function K(t) {
|
|
29
|
+
return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
30
|
+
}
|
|
31
|
+
function b(t) {
|
|
32
|
+
return t.pointerType === "" && t.isTrusted ? !0 : s() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
33
|
+
}
|
|
34
|
+
var w = (t) => t.button === 0, C = (t) => t.button === 2 || u() && t.ctrlKey && t.button === 0, k = (t) => t.ctrlKey || t.altKey || t.metaKey, l = (t) => "touches" in t && t.touches.length > 0, f = {
|
|
35
|
+
Up: "ArrowUp",
|
|
36
|
+
Down: "ArrowDown",
|
|
37
|
+
Esc: "Escape",
|
|
38
|
+
" ": "Space",
|
|
39
|
+
",": "Comma",
|
|
40
|
+
Left: "ArrowLeft",
|
|
41
|
+
Right: "ArrowRight"
|
|
42
|
+
}, o = {
|
|
43
|
+
ArrowLeft: "ArrowRight",
|
|
44
|
+
ArrowRight: "ArrowLeft"
|
|
45
|
+
};
|
|
46
|
+
function v(t, r = {}) {
|
|
47
|
+
const { dir: n = "ltr", orientation: i = "horizontal" } = r;
|
|
48
|
+
let e = t.key;
|
|
49
|
+
return e = f[e] ?? e, n === "rtl" && i === "horizontal" && e in o && (e = o[e]), e;
|
|
50
|
+
}
|
|
51
|
+
function y(t) {
|
|
52
|
+
return t.nativeEvent ?? t;
|
|
53
|
+
}
|
|
54
|
+
function T(t, r = "client") {
|
|
55
|
+
const n = l(t) ? t.touches[0] || t.changedTouches[0] : t;
|
|
56
|
+
return { x: n[`${r}X`], y: n[`${r}Y`] };
|
|
57
|
+
}
|
|
58
|
+
var A = (t, r, n, i) => {
|
|
59
|
+
const e = typeof t == "function" ? t() : t;
|
|
60
|
+
return e == null || e.addEventListener(r, n, i), () => {
|
|
61
|
+
e == null || e.removeEventListener(r, n, i);
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
A as addDomEvent,
|
|
66
|
+
v as getEventKey,
|
|
67
|
+
T as getEventPoint,
|
|
68
|
+
g as getEventTarget,
|
|
69
|
+
y as getNativeEvent,
|
|
70
|
+
d as isComposingEvent,
|
|
71
|
+
C as isContextMenuEvent,
|
|
72
|
+
a as isCtrlOrMetaKey,
|
|
73
|
+
E as isDownloadingEvent,
|
|
74
|
+
w as isLeftClick,
|
|
75
|
+
k as isModifierKey,
|
|
76
|
+
h as isOpeningInNewTab,
|
|
77
|
+
K as isPrintableKey,
|
|
78
|
+
l as isTouchEvent,
|
|
79
|
+
b as isVirtualClick
|
|
80
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { getWindow as i } from "./node.js";
|
|
2
|
+
function c(t, n) {
|
|
3
|
+
const { type: e = "HTMLInputElement", property: r = "value" } = n, o = i(t)[e].prototype;
|
|
4
|
+
return Object.getOwnPropertyDescriptor(o, r) ?? {};
|
|
5
|
+
}
|
|
6
|
+
function a(t) {
|
|
7
|
+
if (t.localName === "input") return "HTMLInputElement";
|
|
8
|
+
if (t.localName === "textarea") return "HTMLTextAreaElement";
|
|
9
|
+
if (t.localName === "select") return "HTMLSelectElement";
|
|
10
|
+
}
|
|
11
|
+
function v(t, n, e = "value") {
|
|
12
|
+
var o;
|
|
13
|
+
if (!t) return;
|
|
14
|
+
const r = a(t);
|
|
15
|
+
r && ((o = c(t, { type: r, property: e }).set) == null || o.call(t, n)), t.setAttribute(e, n);
|
|
16
|
+
}
|
|
17
|
+
function f(t, n) {
|
|
18
|
+
var r;
|
|
19
|
+
if (!t) return;
|
|
20
|
+
(r = c(t, { type: "HTMLInputElement", property: "checked" }).set) == null || r.call(t, n), n ? t.setAttribute("checked", "") : t.removeAttribute("checked");
|
|
21
|
+
}
|
|
22
|
+
function h(t, n) {
|
|
23
|
+
const { checked: e, bubbles: r = !0 } = n;
|
|
24
|
+
if (!t) return;
|
|
25
|
+
const o = i(t);
|
|
26
|
+
if (!(t instanceof o.HTMLInputElement)) return;
|
|
27
|
+
f(t, e);
|
|
28
|
+
const s = new o.Event("click", { bubbles: r });
|
|
29
|
+
t.dispatchEvent(b(s));
|
|
30
|
+
}
|
|
31
|
+
function d(t) {
|
|
32
|
+
return t.matches("textarea, input, select, button");
|
|
33
|
+
}
|
|
34
|
+
function p(t, n) {
|
|
35
|
+
if (!t) return;
|
|
36
|
+
const e = d(t) ? t.form : t.closest("form"), r = (o) => {
|
|
37
|
+
o.defaultPrevented || n();
|
|
38
|
+
};
|
|
39
|
+
return e == null || e.addEventListener("reset", r, { passive: !0 }), () => e == null ? void 0 : e.removeEventListener("reset", r);
|
|
40
|
+
}
|
|
41
|
+
function m(t, n) {
|
|
42
|
+
const e = t == null ? void 0 : t.closest("fieldset");
|
|
43
|
+
if (!e) return;
|
|
44
|
+
n(e.disabled);
|
|
45
|
+
const r = i(e), o = new r.MutationObserver(() => n(e.disabled));
|
|
46
|
+
return o.observe(e, {
|
|
47
|
+
attributes: !0,
|
|
48
|
+
attributeFilter: ["disabled"]
|
|
49
|
+
}), () => o.disconnect();
|
|
50
|
+
}
|
|
51
|
+
function y(t, n) {
|
|
52
|
+
if (!t) return;
|
|
53
|
+
const { onFieldsetDisabledChange: e, onFormReset: r } = n, o = [p(t, r), m(t, e)];
|
|
54
|
+
return () => o.forEach((s) => s == null ? void 0 : s());
|
|
55
|
+
}
|
|
56
|
+
var u = /* @__PURE__ */ Symbol.for("zag.changeEvent");
|
|
57
|
+
function E(t) {
|
|
58
|
+
return Object.prototype.hasOwnProperty.call(t, u);
|
|
59
|
+
}
|
|
60
|
+
function b(t) {
|
|
61
|
+
return E(t) || Object.defineProperty(t, u, { value: !0 }), t;
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
h as dispatchInputCheckedEvent,
|
|
65
|
+
E as isInternalChangeEvent,
|
|
66
|
+
b as markAsInternalChangeEvent,
|
|
67
|
+
f as setElementChecked,
|
|
68
|
+
v as setElementValue,
|
|
69
|
+
y as trackFormControl
|
|
70
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isActiveElement as f } from "./node.js";
|
|
2
|
+
import { getTabbables as o, getTabbableEdges as s } from "./tabbable.js";
|
|
3
|
+
function c(a) {
|
|
4
|
+
const { root: t, getInitialEl: r, filter: i, enabled: l = !0 } = a;
|
|
5
|
+
if (!l) return;
|
|
6
|
+
let e = null;
|
|
7
|
+
if (e || (e = typeof r == "function" ? r() : r), e || (e = t == null ? void 0 : t.querySelector("[data-autofocus],[autofocus]")), !e) {
|
|
8
|
+
const n = o(t);
|
|
9
|
+
e = i ? n.filter(i)[0] : n[0];
|
|
10
|
+
}
|
|
11
|
+
return e || t || void 0;
|
|
12
|
+
}
|
|
13
|
+
function d(a) {
|
|
14
|
+
const t = a.currentTarget;
|
|
15
|
+
if (!t) return !1;
|
|
16
|
+
const [r, i] = s(t);
|
|
17
|
+
return !(f(r) && a.shiftKey || f(i) && !a.shiftKey || !r && !i);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
c as getInitialFocus,
|
|
21
|
+
d as isValidTabEvent
|
|
22
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { raf as o } from "./raf.js";
|
|
2
|
+
function a(e, c) {
|
|
3
|
+
if (!e) return;
|
|
4
|
+
const { attributes: n, callback: s } = c, r = e.ownerDocument.defaultView || window, t = new r.MutationObserver((i) => {
|
|
5
|
+
for (const u of i)
|
|
6
|
+
u.type === "attributes" && u.attributeName && n.includes(u.attributeName) && s(u);
|
|
7
|
+
});
|
|
8
|
+
return t.observe(e, { attributes: !0, attributeFilter: n }), () => t.disconnect();
|
|
9
|
+
}
|
|
10
|
+
function l(e, c) {
|
|
11
|
+
const { defer: n } = c, s = n ? o : (t) => t(), r = [];
|
|
12
|
+
return r.push(
|
|
13
|
+
s(() => {
|
|
14
|
+
const t = typeof e == "function" ? e() : e;
|
|
15
|
+
r.push(a(t, c));
|
|
16
|
+
})
|
|
17
|
+
), () => {
|
|
18
|
+
r.forEach((t) => t == null ? void 0 : t());
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function b(e, c) {
|
|
22
|
+
const { callback: n } = c;
|
|
23
|
+
if (!e) return;
|
|
24
|
+
const s = e.ownerDocument.defaultView || window, r = new s.MutationObserver(n);
|
|
25
|
+
return r.observe(e, { childList: !0, subtree: !0 }), () => r.disconnect();
|
|
26
|
+
}
|
|
27
|
+
function w(e, c) {
|
|
28
|
+
const { defer: n } = c, s = n ? o : (t) => t(), r = [];
|
|
29
|
+
return r.push(
|
|
30
|
+
s(() => {
|
|
31
|
+
const t = typeof e == "function" ? e() : e;
|
|
32
|
+
r.push(b(t, c));
|
|
33
|
+
})
|
|
34
|
+
), () => {
|
|
35
|
+
r.forEach((t) => t == null ? void 0 : t());
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
l as observeAttributes,
|
|
40
|
+
w as observeChildren
|
|
41
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getWindow as t } from "./node.js";
|
|
2
|
+
import { isFirefox as c } from "./platform.js";
|
|
3
|
+
import { queueBeforeEvent as n } from "./raf.js";
|
|
4
|
+
function u(e) {
|
|
5
|
+
const i = () => {
|
|
6
|
+
const o = t(e);
|
|
7
|
+
e.dispatchEvent(new o.MouseEvent("click"));
|
|
8
|
+
};
|
|
9
|
+
c() ? n(e, "keyup", i) : queueMicrotask(i);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
u as clickIfLink
|
|
13
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { isObject as i } from "./shared.js";
|
|
2
|
+
var m = 1, E = 9, d = 11, n = (t) => i(t) && t.nodeType === m && typeof t.nodeName == "string", s = (t) => i(t) && t.nodeType === E, N = (t) => i(t) && t === t.window, f = (t) => n(t) ? t.localName || "" : "#document";
|
|
3
|
+
function h(t) {
|
|
4
|
+
return ["html", "body", "#document"].includes(f(t));
|
|
5
|
+
}
|
|
6
|
+
var c = (t) => i(t) && t.nodeType !== void 0, u = (t) => c(t) && t.nodeType === d && "host" in t, w = (t) => n(t) && t.localName === "input", p = (t) => !!(t != null && t.matches("a[href]")), y = (t) => n(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1;
|
|
7
|
+
function A(t) {
|
|
8
|
+
if (!t) return !1;
|
|
9
|
+
const e = t.getRootNode();
|
|
10
|
+
return D(e) === t;
|
|
11
|
+
}
|
|
12
|
+
var g = /(textarea|select)/;
|
|
13
|
+
function O(t) {
|
|
14
|
+
if (t == null || !n(t)) return !1;
|
|
15
|
+
try {
|
|
16
|
+
return w(t) && t.selectionStart != null || g.test(t.localName) || t.isContentEditable || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "";
|
|
17
|
+
} catch {
|
|
18
|
+
return !1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _(t, e) {
|
|
22
|
+
var a;
|
|
23
|
+
if (!t || !e || !n(t) || !c(e)) return !1;
|
|
24
|
+
if (n(e) && t === e || t.contains(e)) return !0;
|
|
25
|
+
const r = (a = e.getRootNode) == null ? void 0 : a.call(e);
|
|
26
|
+
if (r && u(r)) {
|
|
27
|
+
let o = e;
|
|
28
|
+
for (; o; ) {
|
|
29
|
+
if (t === o) return !0;
|
|
30
|
+
o = o.parentNode || o.host;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
function v(t) {
|
|
36
|
+
return s(t) ? t : N(t) ? t.document : (t == null ? void 0 : t.ownerDocument) ?? document;
|
|
37
|
+
}
|
|
38
|
+
function R(t) {
|
|
39
|
+
return v(t).documentElement;
|
|
40
|
+
}
|
|
41
|
+
function T(t) {
|
|
42
|
+
var e;
|
|
43
|
+
return u(t) ? T(t.host) : s(t) ? t.defaultView ?? window : n(t) ? ((e = t.ownerDocument) == null ? void 0 : e.defaultView) ?? window : window;
|
|
44
|
+
}
|
|
45
|
+
function D(t) {
|
|
46
|
+
let e = t.activeElement;
|
|
47
|
+
for (; e != null && e.shadowRoot; ) {
|
|
48
|
+
const r = e.shadowRoot.activeElement;
|
|
49
|
+
if (!r || r === e) break;
|
|
50
|
+
e = r;
|
|
51
|
+
}
|
|
52
|
+
return e;
|
|
53
|
+
}
|
|
54
|
+
function C(t) {
|
|
55
|
+
if (f(t) === "html") return t;
|
|
56
|
+
const e = t.assignedSlot || t.parentNode || u(t) && t.host || R(t);
|
|
57
|
+
return u(e) ? e.host : e;
|
|
58
|
+
}
|
|
59
|
+
function M(t) {
|
|
60
|
+
let e;
|
|
61
|
+
try {
|
|
62
|
+
if (e = t.getRootNode({ composed: !0 }), s(e) || u(e)) return e;
|
|
63
|
+
} catch {
|
|
64
|
+
}
|
|
65
|
+
return t.ownerDocument ?? document;
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
_ as contains,
|
|
69
|
+
D as getActiveElement,
|
|
70
|
+
v as getDocument,
|
|
71
|
+
R as getDocumentElement,
|
|
72
|
+
f as getNodeName,
|
|
73
|
+
C as getParentNode,
|
|
74
|
+
M as getRootNode,
|
|
75
|
+
T as getWindow,
|
|
76
|
+
A as isActiveElement,
|
|
77
|
+
p as isAnchorElement,
|
|
78
|
+
s as isDocument,
|
|
79
|
+
O as isEditableElement,
|
|
80
|
+
y as isElementVisible,
|
|
81
|
+
n as isHTMLElement,
|
|
82
|
+
w as isInputElement,
|
|
83
|
+
c as isNode,
|
|
84
|
+
h as isRootElement,
|
|
85
|
+
u as isShadowRoot,
|
|
86
|
+
N as isWindow
|
|
87
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getWindow as c, getParentNode as u, isRootElement as f, getDocument as a, isHTMLElement as w } from "./node.js";
|
|
2
|
+
function l(t) {
|
|
3
|
+
const o = u(t);
|
|
4
|
+
return f(o) ? a(o).body : w(o) && i(o) ? o : l(o);
|
|
5
|
+
}
|
|
6
|
+
function d(t, o = []) {
|
|
7
|
+
const n = l(t), e = n === t.ownerDocument.body, r = c(n);
|
|
8
|
+
return e ? o.concat(r, r.visualViewport || [], i(n) ? n : []) : o.concat(n, d(n, []));
|
|
9
|
+
}
|
|
10
|
+
var v = /auto|scroll|overlay|hidden|clip/, g = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
11
|
+
function i(t) {
|
|
12
|
+
const o = c(t), { overflow: n, overflowX: e, overflowY: r, display: s } = o.getComputedStyle(t);
|
|
13
|
+
return v.test(n + r + e) && !g.has(s);
|
|
14
|
+
}
|
|
15
|
+
function m(t) {
|
|
16
|
+
return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth;
|
|
17
|
+
}
|
|
18
|
+
function O(t, o) {
|
|
19
|
+
const { rootEl: n, ...e } = o || {};
|
|
20
|
+
!t || !n || !i(n) || !m(n) || t.scrollIntoView(e);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as getNearestOverflowAncestor,
|
|
24
|
+
d as getOverflowAncestors,
|
|
25
|
+
i as isOverflowElement,
|
|
26
|
+
O as scrollIntoView
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var r = () => typeof document < "u";
|
|
2
|
+
function s() {
|
|
3
|
+
const a = navigator.userAgentData;
|
|
4
|
+
return (a == null ? void 0 : a.platform) ?? navigator.platform;
|
|
5
|
+
}
|
|
6
|
+
function v() {
|
|
7
|
+
const a = navigator.userAgentData;
|
|
8
|
+
return a && Array.isArray(a.brands) ? a.brands.map(({ brand: o, version: e }) => `${o}/${e}`).join(" ") : navigator.userAgent;
|
|
9
|
+
}
|
|
10
|
+
var i = (a) => r() && a.test(s()), t = (a) => r() && a.test(v()), u = (a) => r() && a.test(navigator.vendor), p = () => r() && !!navigator.maxTouchPoints, d = () => i(/^iPhone/i), g = () => i(/^iPad/i) || n() && navigator.maxTouchPoints > 1, c = () => d() || g(), f = () => n() || c(), n = () => i(/^Mac/i), A = () => f() && u(/apple/i), m = () => t(/Firefox/i), P = () => t(/Android/i);
|
|
11
|
+
export {
|
|
12
|
+
s as getPlatform,
|
|
13
|
+
v as getUserAgent,
|
|
14
|
+
P as isAndroid,
|
|
15
|
+
f as isApple,
|
|
16
|
+
r as isDom,
|
|
17
|
+
m as isFirefox,
|
|
18
|
+
g as isIPad,
|
|
19
|
+
d as isIPhone,
|
|
20
|
+
c as isIos,
|
|
21
|
+
n as isMac,
|
|
22
|
+
A as isSafari,
|
|
23
|
+
p as isTouchDevice
|
|
24
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { addDomEvent as r, getEventTarget as x, getEventPoint as C } from "./event.js";
|
|
2
|
+
import { getWindow as F, isActiveElement as I, contains as U } from "./node.js";
|
|
3
|
+
import { noop as l, pipe as d } from "./shared.js";
|
|
4
|
+
function z(K) {
|
|
5
|
+
const {
|
|
6
|
+
pointerNode: i,
|
|
7
|
+
keyboardNode: s = i,
|
|
8
|
+
onPress: n,
|
|
9
|
+
onPressStart: a,
|
|
10
|
+
onPressEnd: t,
|
|
11
|
+
isValidKey: w = (e) => e.key === "Enter"
|
|
12
|
+
} = K;
|
|
13
|
+
if (!i) return l;
|
|
14
|
+
const c = F(i);
|
|
15
|
+
let P = l, p = l, y = l;
|
|
16
|
+
const u = (e) => ({
|
|
17
|
+
point: C(e),
|
|
18
|
+
event: e
|
|
19
|
+
});
|
|
20
|
+
function L(e) {
|
|
21
|
+
a == null || a(u(e));
|
|
22
|
+
}
|
|
23
|
+
function g(e) {
|
|
24
|
+
t == null || t(u(e));
|
|
25
|
+
}
|
|
26
|
+
const h = r(i, "pointerdown", (e) => {
|
|
27
|
+
p();
|
|
28
|
+
const m = r(c, "pointerup", (o) => {
|
|
29
|
+
const f = x(o);
|
|
30
|
+
U(i, f) ? n == null || n(u(o)) : t == null || t(u(o));
|
|
31
|
+
}, { passive: !n, once: !0 }), v = r(c, "pointercancel", g, {
|
|
32
|
+
passive: !t,
|
|
33
|
+
once: !0
|
|
34
|
+
});
|
|
35
|
+
p = d(m, v), I(s) && e.pointerType === "mouse" && e.preventDefault(), L(e);
|
|
36
|
+
}, { passive: !a }), A = r(s, "focus", B);
|
|
37
|
+
P = d(h, A);
|
|
38
|
+
function B() {
|
|
39
|
+
const e = (o) => {
|
|
40
|
+
if (!w(o)) return;
|
|
41
|
+
const f = (N) => {
|
|
42
|
+
if (!w(N)) return;
|
|
43
|
+
const T = new c.PointerEvent("pointerup"), b = u(T);
|
|
44
|
+
n == null || n(b), t == null || t(b);
|
|
45
|
+
};
|
|
46
|
+
p(), p = r(s, "keyup", f);
|
|
47
|
+
const D = new c.PointerEvent("pointerdown");
|
|
48
|
+
L(D);
|
|
49
|
+
}, k = () => {
|
|
50
|
+
const o = new c.PointerEvent("pointercancel");
|
|
51
|
+
g(o);
|
|
52
|
+
}, m = r(s, "keydown", e), v = r(s, "blur", k);
|
|
53
|
+
y = d(m, v);
|
|
54
|
+
}
|
|
55
|
+
return () => {
|
|
56
|
+
P(), p(), y();
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
z as trackPress
|
|
61
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function d(e, t) {
|
|
2
|
+
return Array.from((e == null ? void 0 : e.querySelectorAll(t)) ?? []);
|
|
3
|
+
}
|
|
4
|
+
function f(e, t) {
|
|
5
|
+
return (e == null ? void 0 : e.querySelector(t)) ?? null;
|
|
6
|
+
}
|
|
7
|
+
var r = (e) => e.id;
|
|
8
|
+
function i(e, t, u = r) {
|
|
9
|
+
return e.find((n) => u(n) === t);
|
|
10
|
+
}
|
|
11
|
+
function l(e, t, u = r) {
|
|
12
|
+
const n = i(e, t, u);
|
|
13
|
+
return n ? e.indexOf(n) : -1;
|
|
14
|
+
}
|
|
15
|
+
function c(e, t, u = !0) {
|
|
16
|
+
let n = l(e, t);
|
|
17
|
+
return n = u ? (n + 1) % e.length : Math.min(n + 1, e.length - 1), e[n];
|
|
18
|
+
}
|
|
19
|
+
function y(e, t, u = !0) {
|
|
20
|
+
let n = l(e, t);
|
|
21
|
+
return n === -1 ? u ? e[e.length - 1] : null : (n = u ? (n - 1 + e.length) % e.length : Math.max(0, n - 1), e[n]);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
r as defaultItemToId,
|
|
25
|
+
l as indexOfId,
|
|
26
|
+
i as itemById,
|
|
27
|
+
c as nextById,
|
|
28
|
+
y as prevById,
|
|
29
|
+
f as query,
|
|
30
|
+
d as queryAll
|
|
31
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __publicField as c } from "./chunk-QZ7TP4HQ.js";
|
|
2
|
+
var s = class r {
|
|
3
|
+
constructor() {
|
|
4
|
+
c(this, "id", null), c(this, "fn_cleanup"), c(this, "cleanup", () => {
|
|
5
|
+
this.cancel();
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
static create() {
|
|
9
|
+
return new r();
|
|
10
|
+
}
|
|
11
|
+
request(e) {
|
|
12
|
+
this.cancel(), this.id = globalThis.requestAnimationFrame(() => {
|
|
13
|
+
this.id = null, this.fn_cleanup = e == null ? void 0 : e();
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
cancel() {
|
|
17
|
+
var e;
|
|
18
|
+
this.id !== null && (globalThis.cancelAnimationFrame(this.id), this.id = null), (e = this.fn_cleanup) == null || e.call(this), this.fn_cleanup = void 0;
|
|
19
|
+
}
|
|
20
|
+
isActive() {
|
|
21
|
+
return this.id !== null;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function u(n) {
|
|
25
|
+
const e = s.create();
|
|
26
|
+
return e.request(n), e.cleanup;
|
|
27
|
+
}
|
|
28
|
+
function o(n) {
|
|
29
|
+
const e = /* @__PURE__ */ new Set();
|
|
30
|
+
function i(a) {
|
|
31
|
+
const t = globalThis.requestAnimationFrame(a);
|
|
32
|
+
e.add(() => globalThis.cancelAnimationFrame(t));
|
|
33
|
+
}
|
|
34
|
+
return i(() => i(n)), function() {
|
|
35
|
+
e.forEach((t) => t());
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function h(n, e, i) {
|
|
39
|
+
const a = u(() => {
|
|
40
|
+
n.removeEventListener(e, t, !0), i();
|
|
41
|
+
}), t = () => {
|
|
42
|
+
a(), i();
|
|
43
|
+
};
|
|
44
|
+
return n.addEventListener(e, t, { once: !0, capture: !0 }), a;
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
s as AnimationFrame,
|
|
48
|
+
o as nextTick,
|
|
49
|
+
h as queueBeforeEvent,
|
|
50
|
+
u as raf
|
|
51
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getWindow as a } from "./node.js";
|
|
2
|
+
function f(c) {
|
|
3
|
+
const s = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
let r;
|
|
5
|
+
const v = /* @__PURE__ */ new WeakMap(), b = (e) => r || (r = new e.ResizeObserver((i) => {
|
|
6
|
+
for (const t of i) {
|
|
7
|
+
v.set(t.target, t);
|
|
8
|
+
const o = s.get(t.target);
|
|
9
|
+
if (o)
|
|
10
|
+
for (const n of o)
|
|
11
|
+
n(t);
|
|
12
|
+
}
|
|
13
|
+
}), r);
|
|
14
|
+
return {
|
|
15
|
+
observe: (e, i) => {
|
|
16
|
+
let t = s.get(e) || /* @__PURE__ */ new Set();
|
|
17
|
+
t.add(i), s.set(e, t);
|
|
18
|
+
const o = a(e);
|
|
19
|
+
return b(o).observe(e, c), () => {
|
|
20
|
+
const n = s.get(e);
|
|
21
|
+
n && (n.delete(i), n.size === 0 && (s.delete(e), b(o).unobserve(e)));
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
unobserve: (e) => {
|
|
25
|
+
s.delete(e), r == null || r.unobserve(e);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var w = /* @__PURE__ */ f({
|
|
30
|
+
box: "border-box"
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
w as resizeObserverBorderBox
|
|
34
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defaultItemToId as s, indexOfId as f } from "./query.js";
|
|
2
|
+
import { wrap as l } from "./shared.js";
|
|
3
|
+
var m = (t) => t.split("").map((e) => {
|
|
4
|
+
const r = e.charCodeAt(0);
|
|
5
|
+
return r > 0 && r < 128 ? e : r >= 128 && r <= 255 ? `/x${r.toString(16)}`.replace("/", "\\") : "";
|
|
6
|
+
}).join("").trim(), p = (t) => {
|
|
7
|
+
var e;
|
|
8
|
+
return m(((e = t.dataset) == null ? void 0 : e.valuetext) ?? t.textContent ?? "");
|
|
9
|
+
}, u = (t, e) => t.trim().toLowerCase().startsWith(e.toLowerCase());
|
|
10
|
+
function c(t, e, r, o = s) {
|
|
11
|
+
const a = r ? f(t, r, o) : -1;
|
|
12
|
+
let i = r ? l(t, a) : t;
|
|
13
|
+
return e.length === 1 && (i = i.filter((n) => o(n) !== r)), i.find((n) => u(p(n), e));
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
c as getByText
|
|
17
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { noop as n } from "./shared.js";
|
|
2
|
+
function y(t, e, r) {
|
|
3
|
+
const s = t.getAttribute(e), u = s != null;
|
|
4
|
+
return s === r ? n : (t.setAttribute(e, r), () => {
|
|
5
|
+
u ? t.setAttribute(e, s) : t.removeAttribute(e);
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function f(t, e) {
|
|
9
|
+
if (!t) return n;
|
|
10
|
+
const r = Object.keys(e).reduce((s, u) => (s[u] = t.style.getPropertyValue(u), s), {});
|
|
11
|
+
return i(r, e) ? n : (Object.assign(t.style, e), () => {
|
|
12
|
+
Object.assign(t.style, r), t.style.length === 0 && t.removeAttribute("style");
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function b(t, e, r) {
|
|
16
|
+
if (!t) return n;
|
|
17
|
+
const s = t.style.getPropertyValue(e);
|
|
18
|
+
return s === r ? n : (t.style.setProperty(e, r), () => {
|
|
19
|
+
t.style.setProperty(e, s), t.style.length === 0 && t.removeAttribute("style");
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function i(t, e) {
|
|
23
|
+
return Object.keys(t).every((r) => t[r] === e[r]);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
y as setAttribute,
|
|
27
|
+
f as setStyle,
|
|
28
|
+
b as setStyleProperty
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var o = (r, a) => r.map((e, t) => r[(Math.max(a, 0) + t) % r.length]), p = (...r) => (a) => r.reduce((e, t) => t(e), a), v = () => {
|
|
2
|
+
}, i = (r) => typeof r == "object" && r !== null, d = 2147483647, n = (r) => r ? "" : void 0, u = (r) => r ? "true" : void 0;
|
|
3
|
+
export {
|
|
4
|
+
d as MAX_Z_INDEX,
|
|
5
|
+
u as ariaAttr,
|
|
6
|
+
n as dataAttr,
|
|
7
|
+
i as isObject,
|
|
8
|
+
v as noop,
|
|
9
|
+
p as pipe,
|
|
10
|
+
o as wrap
|
|
11
|
+
};
|