@serendie/ui 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +6 -6
- package/dist/components/Accordion/Accordion.js +18 -21
- package/dist/components/Accordion/AccordionGroup.js +4 -4
- package/dist/components/Avatar/Avatar.js +19 -21
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.js +4 -4
- package/dist/components/BottomNavigation/BottomNavigationItem.js +4 -4
- package/dist/components/Button/Button.js +6 -6
- package/dist/components/CheckBox/CheckBox.js +28 -32
- package/dist/components/ChoiceBox/ChoiceBox.js +46 -52
- package/dist/components/DashboardWidget/DashboardWidget.js +4 -4
- package/dist/components/DataTable/DataTableComponent.js +16 -17
- package/dist/components/DataTable/table/HeaderCell.js +4 -4
- package/dist/components/DataTable/table/Root.js +4 -4
- package/dist/components/DatePicker/DatePicker.js +107 -127
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Drawer/Drawer.js +22 -26
- package/dist/components/DropdownMenu/DropdownMenu.js +36 -41
- package/dist/components/IconButton/IconButton.js +4 -4
- package/dist/components/List/ListItem.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +27 -33
- package/dist/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/components/Pagination/Pagination.js +54 -59
- package/dist/components/RadioButton/RadioButton.js +32 -36
- package/dist/components/RadioButton/RadioGroup.js +4 -4
- package/dist/components/Search/Search.js +67 -74
- package/dist/components/Select/Select.js +53 -60
- package/dist/components/Switch/Switch.js +18 -22
- package/dist/components/Tabs/TabItem.js +6 -6
- package/dist/components/Tabs/Tabs.js +9 -10
- package/dist/components/TextArea/TextArea.js +4 -4
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/Toast/Toast.js +16 -17
- package/dist/components/Tooltip/Tooltip.js +30 -35
- package/dist/components/TopAppBar/TopAppBar.js +4 -4
- package/dist/index.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +25 -22
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +21 -11
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group-provider.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group.js +32 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group.js +43 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +15 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/split-collapsible-props.js +5 -3
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +17 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-empty.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +19 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +24 -14
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.js +42 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-group-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +14 -7
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-preset-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-range-text.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root-provider.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +32 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +16 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +18 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +22 -12
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-value-text.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-header-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.js +64 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +17 -7
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +21 -22
- package/dist/node_modules/@ark-ui/react/dist/components/field/use-field-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js +35 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +25 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js +39 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js +31 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +32 -19
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-separator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +18 -17
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu.js +48 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +19 -14
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-first-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-last-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +20 -12
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +16 -20
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +13 -12
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +26 -13
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +18 -10
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +20 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-hidden-select.js +23 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +22 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +25 -14
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +11 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select.js +44 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-group-props.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +12 -10
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +18 -12
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +10 -7
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-content.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-action-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-close-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-description.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast.js +18 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +37 -22
- package/dist/node_modules/@ark-ui/react/dist/components/toast/use-toast-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +12 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/providers/locale/use-locale-context.js +5 -2
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +7 -10
- package/dist/node_modules/@ark-ui/react/dist/utils/create-context.js +17 -20
- package/dist/node_modules/@ark-ui/react/dist/utils/create-split-props.js +4 -7
- package/dist/node_modules/@ark-ui/react/dist/utils/render-strategy.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/utils/use-controllable-state.js +8 -0
- package/dist/node_modules/@ark-ui/react/dist/utils/use-effect-once.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +7 -10
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +294 -289
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +195 -194
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +18 -12
- package/dist/node_modules/@internationalized/date/dist/conversion.js +35 -35
- package/dist/node_modules/@internationalized/date/dist/queries.js +126 -75
- package/dist/node_modules/@internationalized/date/dist/string.js +29 -28
- package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.connect.js +129 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.dom.js +30 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.machine.js +137 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js +14 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +12 -49
- package/dist/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js +41 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.connect.js +52 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.dom.js +17 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.machine.js +93 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +108 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.dom.js +21 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.machine.js +141 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.connect.js +80 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.dom.js +16 -0
- package/dist/node_modules/@zag-js/collapsible/dist/{index.js → collapsible.machine.js} +58 -115
- package/dist/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/collection/dist/{index.js → list-collection.js} +58 -56
- package/dist/node_modules/@zag-js/collection/dist/selection-map.js +58 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.collection.js +6 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.connect.js +341 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.dom.js +68 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.machine.js +936 -0
- package/dist/node_modules/@zag-js/core/dist/create-machine.js +32 -0
- package/dist/node_modules/@zag-js/core/dist/memo.js +11 -0
- package/dist/node_modules/@zag-js/core/dist/merge-props.js +48 -0
- package/dist/node_modules/@zag-js/core/dist/scope.js +19 -0
- package/dist/node_modules/@zag-js/core/dist/state.js +143 -0
- package/dist/node_modules/@zag-js/core/dist/types.js +5 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +31 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +742 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.dom.js +73 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +1042 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.parse.js +8 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.utils.js +155 -0
- package/dist/node_modules/@zag-js/date-utils/dist/align.js +15 -0
- package/dist/node_modules/@zag-js/date-utils/dist/assertion.js +26 -0
- package/dist/node_modules/@zag-js/date-utils/dist/constrain.js +40 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-month.js +74 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-year.js +37 -0
- package/dist/node_modules/@zag-js/date-utils/dist/duration.js +13 -0
- package/dist/node_modules/@zag-js/date-utils/dist/format.js +25 -0
- package/dist/node_modules/@zag-js/date-utils/dist/formatter.js +30 -0
- package/dist/node_modules/@zag-js/date-utils/dist/get-era-format.js +8 -0
- package/dist/node_modules/@zag-js/date-utils/dist/mutation.js +9 -0
- package/dist/node_modules/@zag-js/date-utils/dist/pagination.js +95 -0
- package/dist/node_modules/@zag-js/date-utils/dist/parse-date.js +34 -0
- package/dist/node_modules/@zag-js/date-utils/dist/preset.js +41 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.connect.js +104 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.dom.js +42 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.machine.js +220 -0
- package/dist/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +80 -0
- package/dist/node_modules/@zag-js/dismissable/dist/escape-keydown.js +11 -0
- package/dist/node_modules/@zag-js/dismissable/dist/layer-stack.js +103 -0
- package/dist/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js +37 -0
- package/dist/node_modules/@zag-js/dom-query/dist/caret.js +12 -0
- package/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
- package/dist/node_modules/@zag-js/dom-query/dist/controller.js +76 -0
- package/dist/node_modules/@zag-js/dom-query/dist/event.js +80 -0
- package/dist/node_modules/@zag-js/dom-query/dist/form.js +70 -0
- package/dist/node_modules/@zag-js/dom-query/dist/initial-focus.js +22 -0
- package/dist/node_modules/@zag-js/dom-query/dist/mutation-observer.js +41 -0
- package/dist/node_modules/@zag-js/dom-query/dist/navigate.js +13 -0
- package/dist/node_modules/@zag-js/dom-query/dist/node.js +87 -0
- package/dist/node_modules/@zag-js/dom-query/dist/overflow.js +27 -0
- package/dist/node_modules/@zag-js/dom-query/dist/platform.js +24 -0
- package/dist/node_modules/@zag-js/dom-query/dist/press.js +61 -0
- package/dist/node_modules/@zag-js/dom-query/dist/query.js +31 -0
- package/dist/node_modules/@zag-js/dom-query/dist/raf.js +51 -0
- package/dist/node_modules/@zag-js/dom-query/dist/resize-observer.js +34 -0
- package/dist/node_modules/@zag-js/dom-query/dist/searchable.js +17 -0
- package/dist/node_modules/@zag-js/dom-query/dist/set.js +29 -0
- package/dist/node_modules/@zag-js/dom-query/dist/shared.js +11 -0
- package/dist/node_modules/@zag-js/dom-query/dist/tabbable.js +110 -0
- package/dist/node_modules/@zag-js/dom-query/dist/text-selection.js +36 -0
- package/dist/node_modules/@zag-js/dom-query/dist/typeahead.js +25 -0
- package/dist/node_modules/@zag-js/dom-query/dist/visually-hidden.js +15 -0
- package/dist/node_modules/@zag-js/dom-query/dist/wait-for.js +42 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/focus-trap.js +335 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +24 -299
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +63 -39
- package/dist/node_modules/@zag-js/interact-outside/dist/frame-utils.js +60 -0
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +97 -131
- package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.connect.js +385 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.dom.js +93 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.machine.js +855 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.utils.js +51 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.connect.js +145 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.dom.js +31 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.machine.js +132 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.utils.js +39 -0
- package/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
- package/dist/node_modules/@zag-js/popper/dist/get-placement.js +190 -0
- package/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
- package/dist/node_modules/@zag-js/popper/dist/middleware.js +57 -0
- package/dist/node_modules/@zag-js/popper/dist/placement.js +11 -0
- package/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
- package/dist/node_modules/@zag-js/presence/dist/{index.js → presence.machine.js} +39 -47
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +197 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.dom.js +57 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.machine.js +179 -0
- package/dist/node_modules/@zag-js/react/dist/bindable.js +52 -0
- package/dist/node_modules/@zag-js/react/dist/machine.js +208 -0
- package/dist/node_modules/@zag-js/react/dist/normalize-props.js +5 -0
- package/dist/node_modules/@zag-js/react/dist/refs.js +15 -0
- package/dist/node_modules/@zag-js/react/dist/track.js +13 -0
- package/dist/node_modules/@zag-js/react/dist/use-layout-effect.js +5 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/polygon.js +23 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/rect.js +26 -0
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +32 -23
- package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +22 -0
- package/dist/node_modules/@zag-js/select/dist/select.collection.js +6 -0
- package/dist/node_modules/@zag-js/select/dist/select.connect.js +372 -0
- package/dist/node_modules/@zag-js/select/dist/select.dom.js +53 -0
- package/dist/node_modules/@zag-js/select/dist/select.machine.js +690 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.connect.js +110 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.dom.js +25 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.machine.js +143 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.connect.js +176 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.dom.js +47 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.machine.js +268 -0
- package/dist/node_modules/@zag-js/toast/dist/index.js +6 -798
- package/dist/node_modules/@zag-js/toast/dist/toast-group.connect.js +54 -0
- package/dist/node_modules/@zag-js/toast/dist/toast-group.machine.js +236 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.connect.js +102 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.dom.js +10 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.machine.js +234 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.store.js +134 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.utils.js +122 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +120 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +25 -0
- package/dist/node_modules/@zag-js/tooltip/dist/{index.js → tooltip.machine.js} +109 -188
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
- package/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
- package/dist/node_modules/@zag-js/utils/dist/array.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js +8 -0
- package/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
- package/dist/node_modules/@zag-js/utils/dist/functions.js +28 -0
- package/dist/node_modules/@zag-js/utils/dist/guard.js +19 -0
- package/dist/node_modules/@zag-js/utils/dist/number.js +11 -0
- package/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
- package/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
- package/dist/node_modules/@zag-js/utils/dist/timers.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
- package/dist/styled-system/css/css.js +1 -1
- package/dist/styled-system/helpers.js +85 -83
- package/dist/styled-system/jsx/is-valid-prop.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -21
- package/styled-system/css/css.js +1 -1
- package/styled-system/helpers.js +3 -0
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-konjo-dark.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/tokens.d.ts +1 -1
- package/styled-system/types/conditions.d.ts +11 -11
- package/styled-system/types/prop-type.d.ts +2 -0
- package/styled-system/types/style-props.d.ts +3 -4
- package/dist/node_modules/@zag-js/accordion/dist/index.js +0 -290
- package/dist/node_modules/@zag-js/avatar/dist/index.js +0 -154
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +0 -270
- package/dist/node_modules/@zag-js/combobox/dist/index.js +0 -1415
- package/dist/node_modules/@zag-js/core/dist/index.js +0 -92
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1826
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
- package/dist/node_modules/@zag-js/dialog/dist/index.js +0 -324
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +0 -188
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +0 -633
- package/dist/node_modules/@zag-js/menu/dist/index.js +0 -1235
- package/dist/node_modules/@zag-js/pagination/dist/index.js +0 -273
- package/dist/node_modules/@zag-js/popper/dist/index.js +0 -260
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +0 -407
- package/dist/node_modules/@zag-js/react/dist/index.js +0 -269
- package/dist/node_modules/@zag-js/rect-utils/dist/index.js +0 -46
- package/dist/node_modules/@zag-js/select/dist/index.js +0 -1088
- package/dist/node_modules/@zag-js/switch/dist/index.js +0 -275
- package/dist/node_modules/@zag-js/tabs/dist/index.js +0 -475
- package/dist/node_modules/@zag-js/types/dist/index.js +0 -12
- package/dist/node_modules/@zag-js/utils/dist/index.js +0 -173
- /package/dist/node_modules/@zag-js/anatomy/dist/{index.js → create-anatomy.js} +0 -0
|
@@ -1,633 +0,0 @@
|
|
|
1
|
-
function ue(t) {
|
|
2
|
-
if (!t) return;
|
|
3
|
-
const e = t.selectionStart ?? 0, n = t.selectionEnd ?? 0;
|
|
4
|
-
Math.abs(n - e) === 0 && e === 0 && t.setSelectionRange(t.value.length, t.value.length);
|
|
5
|
-
}
|
|
6
|
-
var st = (t, e) => t.map((n, r) => t[(Math.max(e, 0) + r) % t.length]), P = (...t) => (e) => t.reduce((n, r) => r(n), e), h = () => {
|
|
7
|
-
}, x = (t) => typeof t == "object" && t !== null, le = 2147483647, fe = (t) => t ? "" : void 0, de = (t) => t ? "true" : void 0, ct = 1, at = 9, ut = 11, d = (t) => x(t) && t.nodeType === ct && typeof t.nodeName == "string", $ = (t) => x(t) && t.nodeType === at, lt = (t) => x(t) && t === t.window, X = (t) => d(t) ? t.localName || "" : "#document";
|
|
8
|
-
function ft(t) {
|
|
9
|
-
return ["html", "body", "#document"].includes(X(t));
|
|
10
|
-
}
|
|
11
|
-
var dt = (t) => x(t) && t.nodeType !== void 0, A = (t) => dt(t) && t.nodeType === ut && "host" in t, mt = (t) => d(t) && t.localName === "input", me = (t) => !!(t != null && t.matches("a[href]")), bt = (t) => d(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, pt = /(textarea|select)/;
|
|
12
|
-
function yt(t) {
|
|
13
|
-
if (t == null || !d(t)) return !1;
|
|
14
|
-
try {
|
|
15
|
-
return mt(t) && t.selectionStart != null || pt.test(t.localName) || t.isContentEditable || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "";
|
|
16
|
-
} catch {
|
|
17
|
-
return !1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function z(t, e) {
|
|
21
|
-
var r;
|
|
22
|
-
if (!t || !e || !d(t) || !d(e)) return !1;
|
|
23
|
-
const n = (r = e.getRootNode) == null ? void 0 : r.call(e);
|
|
24
|
-
if (t === e || t.contains(e)) return !0;
|
|
25
|
-
if (n && A(n)) {
|
|
26
|
-
let o = e;
|
|
27
|
-
for (; o; ) {
|
|
28
|
-
if (t === o) return !0;
|
|
29
|
-
o = o.parentNode || o.host;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return !1;
|
|
33
|
-
}
|
|
34
|
-
function k(t) {
|
|
35
|
-
return $(t) ? t : lt(t) ? t.document : (t == null ? void 0 : t.ownerDocument) ?? document;
|
|
36
|
-
}
|
|
37
|
-
function vt(t) {
|
|
38
|
-
return k(t).documentElement;
|
|
39
|
-
}
|
|
40
|
-
function m(t) {
|
|
41
|
-
var e;
|
|
42
|
-
return A(t) ? m(t.host) : $(t) ? t.defaultView ?? window : d(t) ? ((e = t.ownerDocument) == null ? void 0 : e.defaultView) ?? window : window;
|
|
43
|
-
}
|
|
44
|
-
function be(t) {
|
|
45
|
-
let e = t.activeElement;
|
|
46
|
-
for (; e != null && e.shadowRoot; ) {
|
|
47
|
-
const n = e.shadowRoot.activeElement;
|
|
48
|
-
if (n === e) break;
|
|
49
|
-
e = n;
|
|
50
|
-
}
|
|
51
|
-
return e;
|
|
52
|
-
}
|
|
53
|
-
function gt(t) {
|
|
54
|
-
if (X(t) === "html") return t;
|
|
55
|
-
const e = t.assignedSlot || t.parentNode || A(t) && t.host || vt(t);
|
|
56
|
-
return A(e) ? e.host : e;
|
|
57
|
-
}
|
|
58
|
-
var D = /* @__PURE__ */ new WeakMap();
|
|
59
|
-
function pe(t) {
|
|
60
|
-
return D.has(t) || D.set(t, m(t).getComputedStyle(t)), D.get(t);
|
|
61
|
-
}
|
|
62
|
-
var S = () => typeof document < "u";
|
|
63
|
-
function ht() {
|
|
64
|
-
const t = navigator.userAgentData;
|
|
65
|
-
return (t == null ? void 0 : t.platform) ?? navigator.platform;
|
|
66
|
-
}
|
|
67
|
-
function wt() {
|
|
68
|
-
const t = navigator.userAgentData;
|
|
69
|
-
return t && Array.isArray(t.brands) ? t.brands.map(({ brand: e, version: n }) => `${e}/${n}`).join(" ") : navigator.userAgent;
|
|
70
|
-
}
|
|
71
|
-
var F = (t) => S() && t.test(ht()), G = (t) => S() && t.test(wt()), Et = (t) => S() && t.test(navigator.vendor), ye = () => S() && !!navigator.maxTouchPoints, Tt = () => F(/^iPhone/i), At = () => F(/^iPad/i) || N() && navigator.maxTouchPoints > 1, K = () => Tt() || At(), xt = () => N() || K(), N = () => F(/^Mac/i), ve = () => xt() && Et(/apple/i), kt = () => G(/Firefox/i), St = () => G(/Android/i);
|
|
72
|
-
function Nt(t) {
|
|
73
|
-
var e, n, r;
|
|
74
|
-
return ((e = t.composedPath) == null ? void 0 : e.call(t)) ?? ((r = (n = t.nativeEvent) == null ? void 0 : n.composedPath) == null ? void 0 : r.call(n));
|
|
75
|
-
}
|
|
76
|
-
function Y(t) {
|
|
77
|
-
const e = Nt(t);
|
|
78
|
-
return (e == null ? void 0 : e[0]) ?? t.target;
|
|
79
|
-
}
|
|
80
|
-
var ge = (t) => z(t.currentTarget, Y(t));
|
|
81
|
-
function he(t) {
|
|
82
|
-
const e = t.currentTarget;
|
|
83
|
-
if (!e || !e.matches("a[href], button[type='submit'], input[type='submit']")) return !1;
|
|
84
|
-
const r = t.button === 1, o = Lt(t);
|
|
85
|
-
return r || o;
|
|
86
|
-
}
|
|
87
|
-
function we(t) {
|
|
88
|
-
const e = t.currentTarget;
|
|
89
|
-
if (!e) return !1;
|
|
90
|
-
const n = e.localName;
|
|
91
|
-
return t.altKey ? n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit" : !1;
|
|
92
|
-
}
|
|
93
|
-
function Ee(t) {
|
|
94
|
-
return Ct(t).isComposing || t.keyCode === 229;
|
|
95
|
-
}
|
|
96
|
-
function Lt(t) {
|
|
97
|
-
return N() ? t.metaKey : t.ctrlKey;
|
|
98
|
-
}
|
|
99
|
-
function Te(t) {
|
|
100
|
-
return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
101
|
-
}
|
|
102
|
-
function Ae(t) {
|
|
103
|
-
return t.pointerType === "" && t.isTrusted ? !0 : St() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
104
|
-
}
|
|
105
|
-
var xe = (t) => t.button === 0, ke = (t) => t.button === 2 || N() && t.ctrlKey && t.button === 0, Se = (t) => t.ctrlKey || t.altKey || t.metaKey, It = (t) => "touches" in t && t.touches.length > 0, Mt = {
|
|
106
|
-
Up: "ArrowUp",
|
|
107
|
-
Down: "ArrowDown",
|
|
108
|
-
Esc: "Escape",
|
|
109
|
-
" ": "Space",
|
|
110
|
-
",": "Comma",
|
|
111
|
-
Left: "ArrowLeft",
|
|
112
|
-
Right: "ArrowRight"
|
|
113
|
-
}, j = {
|
|
114
|
-
ArrowLeft: "ArrowRight",
|
|
115
|
-
ArrowRight: "ArrowLeft"
|
|
116
|
-
};
|
|
117
|
-
function Ne(t, e = {}) {
|
|
118
|
-
const { dir: n = "ltr", orientation: r = "horizontal" } = e;
|
|
119
|
-
let o = t.key;
|
|
120
|
-
return o = Mt[o] ?? o, n === "rtl" && r === "horizontal" && o in j && (o = j[o]), o;
|
|
121
|
-
}
|
|
122
|
-
function Ct(t) {
|
|
123
|
-
return t.nativeEvent ?? t;
|
|
124
|
-
}
|
|
125
|
-
function Pt(t, e = "client") {
|
|
126
|
-
const n = It(t) ? t.touches[0] || t.changedTouches[0] : t;
|
|
127
|
-
return { x: n[`${e}X`], y: n[`${e}Y`] };
|
|
128
|
-
}
|
|
129
|
-
var v = (t, e, n, r) => {
|
|
130
|
-
const o = typeof t == "function" ? t() : t;
|
|
131
|
-
return o == null || o.addEventListener(e, n, r), () => {
|
|
132
|
-
o == null || o.removeEventListener(e, n, r);
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
function Z(t, e) {
|
|
136
|
-
const { type: n = "HTMLInputElement", property: r = "value" } = e, o = m(t)[n].prototype;
|
|
137
|
-
return Object.getOwnPropertyDescriptor(o, r) ?? {};
|
|
138
|
-
}
|
|
139
|
-
function Dt(t) {
|
|
140
|
-
if (t.localName === "input") return "HTMLInputElement";
|
|
141
|
-
if (t.localName === "textarea") return "HTMLTextAreaElement";
|
|
142
|
-
if (t.localName === "select") return "HTMLSelectElement";
|
|
143
|
-
}
|
|
144
|
-
function Le(t, e, n = "value") {
|
|
145
|
-
var o;
|
|
146
|
-
if (!t) return;
|
|
147
|
-
const r = Dt(t);
|
|
148
|
-
r && ((o = Z(t, { type: r, property: n }).set) == null || o.call(t, e)), t.setAttribute(n, e);
|
|
149
|
-
}
|
|
150
|
-
function Ot(t, e) {
|
|
151
|
-
var r;
|
|
152
|
-
if (!t) return;
|
|
153
|
-
(r = Z(t, { type: "HTMLInputElement", property: "checked" }).set) == null || r.call(t, e), e ? t.setAttribute("checked", "") : t.removeAttribute("checked");
|
|
154
|
-
}
|
|
155
|
-
function Ie(t, e) {
|
|
156
|
-
const { checked: n, bubbles: r = !0 } = e;
|
|
157
|
-
if (!t) return;
|
|
158
|
-
const o = m(t);
|
|
159
|
-
t instanceof o.HTMLInputElement && (Ot(t, n), t.dispatchEvent(new o.Event("click", { bubbles: r })));
|
|
160
|
-
}
|
|
161
|
-
function Rt(t) {
|
|
162
|
-
return Ft(t) ? t.form : t.closest("form");
|
|
163
|
-
}
|
|
164
|
-
function Ft(t) {
|
|
165
|
-
return t.matches("textarea, input, select, button");
|
|
166
|
-
}
|
|
167
|
-
function Kt(t, e) {
|
|
168
|
-
if (!t) return;
|
|
169
|
-
const n = Rt(t), r = (o) => {
|
|
170
|
-
o.defaultPrevented || e();
|
|
171
|
-
};
|
|
172
|
-
return n == null || n.addEventListener("reset", r, { passive: !0 }), () => n == null ? void 0 : n.removeEventListener("reset", r);
|
|
173
|
-
}
|
|
174
|
-
function Vt(t, e) {
|
|
175
|
-
const n = t == null ? void 0 : t.closest("fieldset");
|
|
176
|
-
if (!n) return;
|
|
177
|
-
e(n.disabled);
|
|
178
|
-
const r = m(n), o = new r.MutationObserver(() => e(n.disabled));
|
|
179
|
-
return o.observe(n, {
|
|
180
|
-
attributes: !0,
|
|
181
|
-
attributeFilter: ["disabled"]
|
|
182
|
-
}), () => o.disconnect();
|
|
183
|
-
}
|
|
184
|
-
function Me(t, e) {
|
|
185
|
-
if (!t) return;
|
|
186
|
-
const { onFieldsetDisabledChange: n, onFormReset: r } = e, o = [Kt(t, r), Vt(t, n)];
|
|
187
|
-
return () => o.forEach((i) => i == null ? void 0 : i());
|
|
188
|
-
}
|
|
189
|
-
var J = (t) => d(t) && t.tagName === "IFRAME", qt = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), Bt = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, V = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", Ht = (t, e = !1) => {
|
|
190
|
-
if (!t) return [];
|
|
191
|
-
const n = Array.from(t.querySelectorAll(V));
|
|
192
|
-
(e == !0 || e == "if-empty" && n.length === 0) && d(t) && O(t) && n.unshift(t);
|
|
193
|
-
const o = n.filter(O);
|
|
194
|
-
return o.forEach((i, c) => {
|
|
195
|
-
if (J(i) && i.contentDocument) {
|
|
196
|
-
const s = i.contentDocument.body;
|
|
197
|
-
o.splice(c, 1, ...Ht(s));
|
|
198
|
-
}
|
|
199
|
-
}), o;
|
|
200
|
-
};
|
|
201
|
-
function O(t) {
|
|
202
|
-
return !t || t.closest("[inert]") ? !1 : t.matches(V) && bt(t);
|
|
203
|
-
}
|
|
204
|
-
function q(t, e) {
|
|
205
|
-
if (!t) return [];
|
|
206
|
-
const r = Array.from(t.querySelectorAll(V)).filter(Ut);
|
|
207
|
-
return r.forEach((o, i) => {
|
|
208
|
-
if (J(o) && o.contentDocument) {
|
|
209
|
-
const c = o.contentDocument.body, s = q(c);
|
|
210
|
-
r.splice(i, 1, ...s);
|
|
211
|
-
}
|
|
212
|
-
}), r.length, r;
|
|
213
|
-
}
|
|
214
|
-
function Ut(t) {
|
|
215
|
-
return t != null && t.tabIndex > 0 ? !0 : O(t) && !Bt(t);
|
|
216
|
-
}
|
|
217
|
-
function Wt(t, e) {
|
|
218
|
-
const n = q(t, e), r = n[0] || null, o = n[n.length - 1] || null;
|
|
219
|
-
return [r, o];
|
|
220
|
-
}
|
|
221
|
-
function Ce(t) {
|
|
222
|
-
return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) || yt(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
223
|
-
}
|
|
224
|
-
function Pe(t) {
|
|
225
|
-
const { root: e, getInitialEl: n, filter: r, enabled: o = !0 } = t;
|
|
226
|
-
if (!o) return;
|
|
227
|
-
let i = null;
|
|
228
|
-
if (i || (i = typeof n == "function" ? n() : n), i || (i = e == null ? void 0 : e.querySelector("[data-autofocus],[autofocus]")), !i) {
|
|
229
|
-
const c = q(e);
|
|
230
|
-
i = r ? c.filter(r)[0] : c[0];
|
|
231
|
-
}
|
|
232
|
-
return i || e || void 0;
|
|
233
|
-
}
|
|
234
|
-
function De(t) {
|
|
235
|
-
const e = t.currentTarget;
|
|
236
|
-
if (!e) return !1;
|
|
237
|
-
const [n, r] = Wt(e), o = e.ownerDocument || document;
|
|
238
|
-
return !(o.activeElement === n && t.shiftKey || o.activeElement === r && !t.shiftKey || !n && !r);
|
|
239
|
-
}
|
|
240
|
-
function _t(t) {
|
|
241
|
-
const e = /* @__PURE__ */ new Set();
|
|
242
|
-
function n(r) {
|
|
243
|
-
const o = globalThis.requestAnimationFrame(r);
|
|
244
|
-
e.add(() => globalThis.cancelAnimationFrame(o));
|
|
245
|
-
}
|
|
246
|
-
return n(() => n(t)), function() {
|
|
247
|
-
e.forEach((o) => o());
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function L(t) {
|
|
251
|
-
let e;
|
|
252
|
-
const n = globalThis.requestAnimationFrame(() => {
|
|
253
|
-
e = t();
|
|
254
|
-
});
|
|
255
|
-
return () => {
|
|
256
|
-
globalThis.cancelAnimationFrame(n), e == null || e();
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function jt(t, e, n) {
|
|
260
|
-
const r = L(() => {
|
|
261
|
-
t.removeEventListener(e, o, !0), n();
|
|
262
|
-
}), o = () => {
|
|
263
|
-
r(), n();
|
|
264
|
-
};
|
|
265
|
-
return t.addEventListener(e, o, { once: !0, capture: !0 }), r;
|
|
266
|
-
}
|
|
267
|
-
function $t(t, e) {
|
|
268
|
-
if (!t) return;
|
|
269
|
-
const { attributes: n, callback: r } = e, o = t.ownerDocument.defaultView || window, i = new o.MutationObserver((c) => {
|
|
270
|
-
for (const s of c)
|
|
271
|
-
s.type === "attributes" && s.attributeName && n.includes(s.attributeName) && r(s);
|
|
272
|
-
});
|
|
273
|
-
return i.observe(t, { attributes: !0, attributeFilter: n }), () => i.disconnect();
|
|
274
|
-
}
|
|
275
|
-
function Oe(t, e) {
|
|
276
|
-
const { defer: n } = e, r = n ? L : (i) => i(), o = [];
|
|
277
|
-
return o.push(
|
|
278
|
-
r(() => {
|
|
279
|
-
const i = typeof t == "function" ? t() : t;
|
|
280
|
-
o.push($t(i, e));
|
|
281
|
-
})
|
|
282
|
-
), () => {
|
|
283
|
-
o.forEach((i) => i == null ? void 0 : i());
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
function Xt(t, e) {
|
|
287
|
-
const { callback: n } = e;
|
|
288
|
-
if (!t) return;
|
|
289
|
-
const r = t.ownerDocument.defaultView || window, o = new r.MutationObserver(n);
|
|
290
|
-
return o.observe(t, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
291
|
-
}
|
|
292
|
-
function Re(t, e) {
|
|
293
|
-
const { defer: n } = e, r = n ? L : (i) => i(), o = [];
|
|
294
|
-
return o.push(
|
|
295
|
-
r(() => {
|
|
296
|
-
const i = typeof t == "function" ? t() : t;
|
|
297
|
-
o.push(Xt(i, e));
|
|
298
|
-
})
|
|
299
|
-
), () => {
|
|
300
|
-
o.forEach((i) => i == null ? void 0 : i());
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
function Fe(t) {
|
|
304
|
-
const e = () => {
|
|
305
|
-
const n = m(t);
|
|
306
|
-
t.dispatchEvent(new n.MouseEvent("click"));
|
|
307
|
-
};
|
|
308
|
-
kt() ? jt(t, "keyup", e) : queueMicrotask(e);
|
|
309
|
-
}
|
|
310
|
-
function Q(t) {
|
|
311
|
-
const e = gt(t);
|
|
312
|
-
return ft(e) ? k(e).body : d(e) && B(e) ? e : Q(e);
|
|
313
|
-
}
|
|
314
|
-
function zt(t, e = []) {
|
|
315
|
-
const n = Q(t), r = n === t.ownerDocument.body, o = m(n);
|
|
316
|
-
return r ? e.concat(o, o.visualViewport || [], B(n) ? n : []) : e.concat(n, zt(n, []));
|
|
317
|
-
}
|
|
318
|
-
var Gt = /auto|scroll|overlay|hidden|clip/, Yt = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
319
|
-
function B(t) {
|
|
320
|
-
const e = m(t), { overflow: n, overflowX: r, overflowY: o, display: i } = e.getComputedStyle(t);
|
|
321
|
-
return Gt.test(n + o + r) && !Yt.has(i);
|
|
322
|
-
}
|
|
323
|
-
function Zt(t) {
|
|
324
|
-
return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth;
|
|
325
|
-
}
|
|
326
|
-
function Ke(t, e) {
|
|
327
|
-
const { rootEl: n, ...r } = e || {};
|
|
328
|
-
!t || !n || !B(n) || !Zt(n) || t.scrollIntoView(r);
|
|
329
|
-
}
|
|
330
|
-
var w = "default", R = "", T = /* @__PURE__ */ new WeakMap();
|
|
331
|
-
function Jt(t = {}) {
|
|
332
|
-
const { target: e, doc: n } = t, r = n ?? document, o = r.documentElement;
|
|
333
|
-
return K() ? (w === "default" && (R = o.style.webkitUserSelect, o.style.webkitUserSelect = "none"), w = "disabled") : e && (T.set(e, e.style.userSelect), e.style.userSelect = "none"), () => Qt({ target: e, doc: r });
|
|
334
|
-
}
|
|
335
|
-
function Qt(t = {}) {
|
|
336
|
-
const { target: e, doc: n } = t, o = (n ?? document).documentElement;
|
|
337
|
-
if (K()) {
|
|
338
|
-
if (w !== "disabled") return;
|
|
339
|
-
w = "restoring", setTimeout(() => {
|
|
340
|
-
_t(() => {
|
|
341
|
-
w === "restoring" && (o.style.webkitUserSelect === "none" && (o.style.webkitUserSelect = R || ""), R = "", w = "default");
|
|
342
|
-
});
|
|
343
|
-
}, 300);
|
|
344
|
-
} else if (e && T.has(e)) {
|
|
345
|
-
const i = T.get(e);
|
|
346
|
-
e.style.userSelect === "none" && (e.style.userSelect = i ?? ""), e.getAttribute("style") === "" && e.removeAttribute("style"), T.delete(e);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function Ve(t = {}) {
|
|
350
|
-
const { defer: e, target: n, ...r } = t, o = e ? L : (c) => c(), i = [];
|
|
351
|
-
return i.push(
|
|
352
|
-
o(() => {
|
|
353
|
-
const c = typeof n == "function" ? n() : n;
|
|
354
|
-
i.push(Jt({ ...r, target: c }));
|
|
355
|
-
})
|
|
356
|
-
), () => {
|
|
357
|
-
i.forEach((c) => c == null ? void 0 : c());
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
function qe(t) {
|
|
361
|
-
const {
|
|
362
|
-
pointerNode: e,
|
|
363
|
-
keyboardNode: n = e,
|
|
364
|
-
onPress: r,
|
|
365
|
-
onPressStart: o,
|
|
366
|
-
onPressEnd: i,
|
|
367
|
-
isValidKey: c = (u) => u.key === "Enter"
|
|
368
|
-
} = t;
|
|
369
|
-
if (!e) return h;
|
|
370
|
-
const s = m(e), f = k(e);
|
|
371
|
-
let a = h, l = h, g = h;
|
|
372
|
-
const b = (u) => ({
|
|
373
|
-
point: Pt(u),
|
|
374
|
-
event: u
|
|
375
|
-
});
|
|
376
|
-
function E(u) {
|
|
377
|
-
o == null || o(b(u));
|
|
378
|
-
}
|
|
379
|
-
function p(u) {
|
|
380
|
-
i == null || i(b(u));
|
|
381
|
-
}
|
|
382
|
-
const tt = v(e, "pointerdown", (u) => {
|
|
383
|
-
l();
|
|
384
|
-
const I = v(s, "pointerup", (y) => {
|
|
385
|
-
const C = Y(y);
|
|
386
|
-
z(e, C) ? r == null || r(b(y)) : i == null || i(b(y));
|
|
387
|
-
}, { passive: !r, once: !0 }), M = v(s, "pointercancel", p, {
|
|
388
|
-
passive: !i,
|
|
389
|
-
once: !0
|
|
390
|
-
});
|
|
391
|
-
l = P(I, M), f.activeElement === n && u.pointerType === "mouse" && u.preventDefault(), E(u);
|
|
392
|
-
}, { passive: !o }), et = v(n, "focus", nt);
|
|
393
|
-
a = P(tt, et);
|
|
394
|
-
function nt() {
|
|
395
|
-
const u = (y) => {
|
|
396
|
-
if (!c(y)) return;
|
|
397
|
-
const C = (ot) => {
|
|
398
|
-
if (!c(ot)) return;
|
|
399
|
-
const it = new s.PointerEvent("pointerup"), _ = b(it);
|
|
400
|
-
r == null || r(_), i == null || i(_);
|
|
401
|
-
};
|
|
402
|
-
l(), l = v(n, "keyup", C);
|
|
403
|
-
const rt = new s.PointerEvent("pointerdown");
|
|
404
|
-
E(rt);
|
|
405
|
-
}, W = () => {
|
|
406
|
-
const y = new s.PointerEvent("pointercancel");
|
|
407
|
-
p(y);
|
|
408
|
-
}, I = v(n, "keydown", u), M = v(n, "blur", W);
|
|
409
|
-
g = P(I, M);
|
|
410
|
-
}
|
|
411
|
-
return () => {
|
|
412
|
-
a(), l(), g();
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
function Be(t, e) {
|
|
416
|
-
return Array.from((t == null ? void 0 : t.querySelectorAll(e)) ?? []);
|
|
417
|
-
}
|
|
418
|
-
function He(t, e) {
|
|
419
|
-
return (t == null ? void 0 : t.querySelector(e)) ?? null;
|
|
420
|
-
}
|
|
421
|
-
var H = (t) => t.id;
|
|
422
|
-
function te(t, e, n = H) {
|
|
423
|
-
return t.find((r) => n(r) === e);
|
|
424
|
-
}
|
|
425
|
-
function U(t, e, n = H) {
|
|
426
|
-
const r = te(t, e, n);
|
|
427
|
-
return r ? t.indexOf(r) : -1;
|
|
428
|
-
}
|
|
429
|
-
function Ue(t, e, n = !0) {
|
|
430
|
-
let r = U(t, e);
|
|
431
|
-
return r = n ? (r + 1) % t.length : Math.min(r + 1, t.length - 1), t[r];
|
|
432
|
-
}
|
|
433
|
-
function We(t, e, n = !0) {
|
|
434
|
-
let r = U(t, e);
|
|
435
|
-
return r === -1 ? n ? t[t.length - 1] : null : (r = n ? (r - 1 + t.length) % t.length : Math.max(0, r - 1), t[r]);
|
|
436
|
-
}
|
|
437
|
-
function _e(t, e) {
|
|
438
|
-
const { onEntry: n, measure: r, box: o = "border-box" } = e, i = (Array.isArray(t) ? t : [t]).filter(d), c = m(i[0]), s = (a) => {
|
|
439
|
-
const l = i.map((g) => r(g));
|
|
440
|
-
n({ rects: l, entries: a });
|
|
441
|
-
};
|
|
442
|
-
s([]);
|
|
443
|
-
const f = new c.ResizeObserver(s);
|
|
444
|
-
return i.forEach((a) => f.observe(a, { box: o })), () => f.disconnect();
|
|
445
|
-
}
|
|
446
|
-
var ee = (t) => t.split("").map((e) => {
|
|
447
|
-
const n = e.charCodeAt(0);
|
|
448
|
-
return n > 0 && n < 128 ? e : n >= 128 && n <= 255 ? `/x${n.toString(16)}`.replace("/", "\\") : "";
|
|
449
|
-
}).join("").trim(), ne = (t) => {
|
|
450
|
-
var e;
|
|
451
|
-
return ee(((e = t.dataset) == null ? void 0 : e.valuetext) ?? t.textContent ?? "");
|
|
452
|
-
}, re = (t, e) => t.trim().toLowerCase().startsWith(e.toLowerCase());
|
|
453
|
-
function oe(t, e, n, r = H) {
|
|
454
|
-
const o = n ? U(t, n, r) : -1;
|
|
455
|
-
let i = n ? st(t, o) : t;
|
|
456
|
-
return e.length === 1 && (i = i.filter((s) => r(s) !== n)), i.find((s) => re(ne(s), e));
|
|
457
|
-
}
|
|
458
|
-
function je(t, e) {
|
|
459
|
-
if (!t) return h;
|
|
460
|
-
const n = Object.keys(e).reduce((r, o) => (r[o] = t.style.getPropertyValue(o), r), {});
|
|
461
|
-
return Object.assign(t.style, e), () => {
|
|
462
|
-
Object.assign(t.style, n), t.style.length === 0 && t.removeAttribute("style");
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
function $e(t, e, n) {
|
|
466
|
-
if (!t) return h;
|
|
467
|
-
const r = t.style.getPropertyValue(e);
|
|
468
|
-
return t.style.setProperty(e, n), () => {
|
|
469
|
-
t.style.setProperty(e, r), t.style.length === 0 && t.removeAttribute("style");
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
function ie(t, e) {
|
|
473
|
-
const { state: n, activeId: r, key: o, timeout: i = 350, itemToId: c } = e, s = n.keysSoFar + o, a = s.length > 1 && Array.from(s).every((p) => p === s[0]) ? s[0] : s;
|
|
474
|
-
let l = t.slice();
|
|
475
|
-
const g = oe(l, a, r, c);
|
|
476
|
-
function b() {
|
|
477
|
-
clearTimeout(n.timer), n.timer = -1;
|
|
478
|
-
}
|
|
479
|
-
function E(p) {
|
|
480
|
-
n.keysSoFar = p, b(), p !== "" && (n.timer = +setTimeout(() => {
|
|
481
|
-
E(""), b();
|
|
482
|
-
}, i));
|
|
483
|
-
}
|
|
484
|
-
return E(s), g;
|
|
485
|
-
}
|
|
486
|
-
var Xe = /* @__PURE__ */ Object.assign(ie, {
|
|
487
|
-
defaultOptions: { keysSoFar: "", timer: -1 },
|
|
488
|
-
isValidEvent: se
|
|
489
|
-
});
|
|
490
|
-
function se(t) {
|
|
491
|
-
return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
492
|
-
}
|
|
493
|
-
var ze = {
|
|
494
|
-
border: "0",
|
|
495
|
-
clip: "rect(0 0 0 0)",
|
|
496
|
-
height: "1px",
|
|
497
|
-
margin: "-1px",
|
|
498
|
-
overflow: "hidden",
|
|
499
|
-
padding: "0",
|
|
500
|
-
position: "absolute",
|
|
501
|
-
width: "1px",
|
|
502
|
-
whiteSpace: "nowrap",
|
|
503
|
-
wordWrap: "normal"
|
|
504
|
-
};
|
|
505
|
-
function ce(t, e, n) {
|
|
506
|
-
const { signal: r } = e;
|
|
507
|
-
return [new Promise((c, s) => {
|
|
508
|
-
const f = setTimeout(() => {
|
|
509
|
-
s(new Error(`Timeout of ${n}ms exceeded`));
|
|
510
|
-
}, n);
|
|
511
|
-
r.addEventListener("abort", () => {
|
|
512
|
-
clearTimeout(f), s(new Error("Promise aborted"));
|
|
513
|
-
}), t.then((a) => {
|
|
514
|
-
r.aborted || (clearTimeout(f), c(a));
|
|
515
|
-
}).catch((a) => {
|
|
516
|
-
r.aborted || (clearTimeout(f), s(a));
|
|
517
|
-
});
|
|
518
|
-
}), () => e.abort()];
|
|
519
|
-
}
|
|
520
|
-
function Ge(t, e) {
|
|
521
|
-
const { timeout: n, rootNode: r } = e, o = m(r), i = k(r), c = new o.AbortController();
|
|
522
|
-
return ce(
|
|
523
|
-
new Promise((s) => {
|
|
524
|
-
const f = t();
|
|
525
|
-
if (f) {
|
|
526
|
-
s(f);
|
|
527
|
-
return;
|
|
528
|
-
}
|
|
529
|
-
const a = new o.MutationObserver(() => {
|
|
530
|
-
const l = t();
|
|
531
|
-
l && l.isConnected && (a.disconnect(), s(l));
|
|
532
|
-
});
|
|
533
|
-
a.observe(i.body, {
|
|
534
|
-
childList: !0,
|
|
535
|
-
subtree: !0
|
|
536
|
-
});
|
|
537
|
-
}),
|
|
538
|
-
c,
|
|
539
|
-
n
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
export {
|
|
543
|
-
le as MAX_Z_INDEX,
|
|
544
|
-
v as addDomEvent,
|
|
545
|
-
de as ariaAttr,
|
|
546
|
-
Fe as clickIfLink,
|
|
547
|
-
z as contains,
|
|
548
|
-
fe as dataAttr,
|
|
549
|
-
H as defaultItemToId,
|
|
550
|
-
Ve as disableTextSelection,
|
|
551
|
-
Ie as dispatchInputCheckedEvent,
|
|
552
|
-
be as getActiveElement,
|
|
553
|
-
oe as getByText,
|
|
554
|
-
Xe as getByTypeahead,
|
|
555
|
-
pe as getComputedStyle,
|
|
556
|
-
k as getDocument,
|
|
557
|
-
vt as getDocumentElement,
|
|
558
|
-
Ne as getEventKey,
|
|
559
|
-
Pt as getEventPoint,
|
|
560
|
-
Y as getEventTarget,
|
|
561
|
-
Ht as getFocusables,
|
|
562
|
-
Pe as getInitialFocus,
|
|
563
|
-
Ct as getNativeEvent,
|
|
564
|
-
Q as getNearestOverflowAncestor,
|
|
565
|
-
X as getNodeName,
|
|
566
|
-
zt as getOverflowAncestors,
|
|
567
|
-
gt as getParentNode,
|
|
568
|
-
ht as getPlatform,
|
|
569
|
-
Ce as getTabIndex,
|
|
570
|
-
Wt as getTabbableEdges,
|
|
571
|
-
q as getTabbables,
|
|
572
|
-
wt as getUserAgent,
|
|
573
|
-
m as getWindow,
|
|
574
|
-
U as indexOfId,
|
|
575
|
-
me as isAnchorElement,
|
|
576
|
-
St as isAndroid,
|
|
577
|
-
xt as isApple,
|
|
578
|
-
Ee as isComposingEvent,
|
|
579
|
-
ke as isContextMenuEvent,
|
|
580
|
-
Lt as isCtrlOrMetaKey,
|
|
581
|
-
$ as isDocument,
|
|
582
|
-
S as isDom,
|
|
583
|
-
we as isDownloadingEvent,
|
|
584
|
-
yt as isEditableElement,
|
|
585
|
-
bt as isElementVisible,
|
|
586
|
-
kt as isFirefox,
|
|
587
|
-
O as isFocusable,
|
|
588
|
-
d as isHTMLElement,
|
|
589
|
-
At as isIPad,
|
|
590
|
-
Tt as isIPhone,
|
|
591
|
-
mt as isInputElement,
|
|
592
|
-
K as isIos,
|
|
593
|
-
xe as isLeftClick,
|
|
594
|
-
N as isMac,
|
|
595
|
-
Se as isModifierKey,
|
|
596
|
-
dt as isNode,
|
|
597
|
-
he as isOpeningInNewTab,
|
|
598
|
-
B as isOverflowElement,
|
|
599
|
-
Te as isPrintableKey,
|
|
600
|
-
ft as isRootElement,
|
|
601
|
-
ve as isSafari,
|
|
602
|
-
ge as isSelfTarget,
|
|
603
|
-
A as isShadowRoot,
|
|
604
|
-
Ut as isTabbable,
|
|
605
|
-
ye as isTouchDevice,
|
|
606
|
-
It as isTouchEvent,
|
|
607
|
-
De as isValidTabEvent,
|
|
608
|
-
Ae as isVirtualClick,
|
|
609
|
-
lt as isWindow,
|
|
610
|
-
te as itemById,
|
|
611
|
-
Ue as nextById,
|
|
612
|
-
_t as nextTick,
|
|
613
|
-
Oe as observeAttributes,
|
|
614
|
-
Re as observeChildren,
|
|
615
|
-
We as prevById,
|
|
616
|
-
He as query,
|
|
617
|
-
Be as queryAll,
|
|
618
|
-
jt as queueBeforeEvent,
|
|
619
|
-
L as raf,
|
|
620
|
-
Qt as restoreTextSelection,
|
|
621
|
-
Ke as scrollIntoView,
|
|
622
|
-
ue as setCaretToEnd,
|
|
623
|
-
Ot as setElementChecked,
|
|
624
|
-
Le as setElementValue,
|
|
625
|
-
je as setStyle,
|
|
626
|
-
$e as setStyleProperty,
|
|
627
|
-
_e as trackElementRect,
|
|
628
|
-
Me as trackFormControl,
|
|
629
|
-
qe as trackPress,
|
|
630
|
-
ze as visuallyHiddenStyle,
|
|
631
|
-
Ge as waitForElement,
|
|
632
|
-
ce as waitForPromise
|
|
633
|
-
};
|