@serendie/ui 3.2.0 → 3.2.1-dev.202604251106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +6 -6
- package/dist/components/Accordion/Accordion.js +18 -21
- package/dist/components/Accordion/AccordionGroup.js +4 -4
- package/dist/components/Avatar/Avatar.js +19 -21
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.js +4 -4
- package/dist/components/BottomNavigation/BottomNavigation.js +12 -11
- package/dist/components/BottomNavigation/BottomNavigationItem.js +4 -4
- package/dist/components/Button/Button.js +6 -6
- package/dist/components/CheckBox/CheckBox.js +28 -32
- package/dist/components/ChoiceBox/ChoiceBox.js +46 -52
- package/dist/components/DashboardWidget/DashboardWidget.js +4 -4
- package/dist/components/DataTable/DataTableComponent.js +16 -17
- package/dist/components/DataTable/table/BodyCell.js +3 -2
- package/dist/components/DataTable/table/HeaderCell.js +16 -15
- package/dist/components/DataTable/table/Root.js +7 -6
- package/dist/components/DatePicker/DatePicker.js +107 -127
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Divider/Divider.js +4 -4
- package/dist/components/Drawer/Drawer.js +22 -26
- package/dist/components/DropdownMenu/DropdownMenu.js +36 -41
- package/dist/components/IconButton/IconButton.js +4 -4
- package/dist/components/List/ListItem.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +27 -33
- package/dist/components/NotificationBadge/NotificationBadge.js +1 -1
- package/dist/components/Pagination/Pagination.js +54 -59
- package/dist/components/RadioButton/RadioButton.js +32 -36
- package/dist/components/RadioButton/RadioGroup.js +4 -4
- package/dist/components/Search/Search.js +67 -74
- package/dist/components/Select/Select.js +53 -60
- package/dist/components/Switch/Switch.js +18 -22
- package/dist/components/Tabs/TabItem.js +16 -15
- package/dist/components/Tabs/Tabs.js +9 -10
- package/dist/components/TextArea/TextArea.js +4 -4
- package/dist/components/TextField/TextField.js +1 -1
- package/dist/components/Toast/Toast.js +16 -17
- package/dist/components/Tooltip/Tooltip.js +30 -35
- package/dist/components/TopAppBar/TopAppBar.js +4 -4
- package/dist/index.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-indicator.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item-trigger.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-item.js +25 -22
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion-root.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/accordion.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/accordion/use-accordion.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-fallback.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-image.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar-root.js +21 -11
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/avatar.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/avatar/use-avatar.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group-provider.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-group.js +32 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox-root.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox-group.js +43 -0
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/use-checkbox.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-content.js +14 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/collapsible-root.js +15 -9
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/split-collapsible-props.js +5 -3
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/collapsible/use-collapsible.js +17 -12
- package/dist/node_modules/@ark-ui/react/dist/components/collection/list-collection.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-empty.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-input.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-group.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item-text.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-item.js +19 -10
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-root.js +24 -14
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.js +42 -0
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-group-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/use-combobox.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +14 -7
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-preset-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-range-text.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root-provider.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +32 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +16 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +18 -13
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +22 -12
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-value-text.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-trigger.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +16 -16
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-week-number-header-cell.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.js +64 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +16 -14
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js +19 -13
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js +15 -12
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js +17 -7
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/dialog.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +21 -22
- package/dist/node_modules/@ark-ui/react/dist/components/field/use-field-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js +11 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow-tip.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-arrow.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-checkbox-item.js +35 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-group.js +21 -12
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-item.js +25 -13
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-positioner.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item-group.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-radio-item.js +39 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root-provider.js +31 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +32 -19
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-separator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger-item.js +21 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-trigger.js +18 -17
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu.js +48 -0
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-item-group-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-machine-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-option-item-props-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu-trigger-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/menu/use-menu.js +19 -14
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-ellipsis.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-first-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-item.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-last-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-next-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-prev-trigger.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination-root.js +20 -12
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/pagination.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/pagination/use-pagination.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/portal/portal.js +16 -20
- package/dist/node_modules/@ark-ui/react/dist/components/presence/split-presence-props.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/presence/use-presence.js +13 -12
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-hidden-input.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item-text.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-item.js +26 -13
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-label.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group-root.js +18 -10
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/radio-group.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/radio-group/use-radio-group.js +20 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-clear-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-hidden-select.js +23 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group-label.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-group.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-indicator.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item-text.js +17 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-item.js +22 -13
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-label.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-list.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-positioner.js +11 -8
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root-provider.js +25 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-root.js +25 -14
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-trigger.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/select/select-value-text.js +11 -7
- package/dist/node_modules/@ark-ui/react/dist/components/select/select.js +44 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-context.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-group-props.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select-item-props-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/select/use-select.js +12 -10
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-control.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-hidden-input.js +13 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-label.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-root.js +18 -12
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch-thumb.js +10 -7
- package/dist/node_modules/@ark-ui/react/dist/components/switch/switch.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/switch/use-switch.js +13 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-content.js +28 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-indicator.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-list.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tab-trigger.js +14 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root-provider.js +24 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs-root.js +20 -11
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/tabs.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs-context.js +3 -3
- package/dist/node_modules/@ark-ui/react/dist/components/tabs/use-tabs.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/components/toast/create-toaster.js +2 -2
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-action-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-close-trigger.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-description.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-root.js +14 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast-title.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toast.js +18 -0
- package/dist/node_modules/@ark-ui/react/dist/components/toast/toaster.js +37 -22
- package/dist/node_modules/@ark-ui/react/dist/components/toast/use-toast-context.js +4 -4
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow-tip.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-arrow.js +12 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-content.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-positioner.js +13 -10
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root-provider.js +20 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-root.js +16 -9
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip-trigger.js +12 -8
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/tooltip.js +22 -0
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/components/tooltip/use-tooltip.js +15 -13
- package/dist/node_modules/@ark-ui/react/dist/providers/environment/use-environment-context.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/providers/locale/use-locale-context.js +5 -2
- package/dist/node_modules/@ark-ui/react/dist/utils/compose-refs.js +7 -10
- package/dist/node_modules/@ark-ui/react/dist/utils/create-context.js +17 -20
- package/dist/node_modules/@ark-ui/react/dist/utils/create-split-props.js +4 -7
- package/dist/node_modules/@ark-ui/react/dist/utils/render-strategy.js +6 -6
- package/dist/node_modules/@ark-ui/react/dist/utils/use-controllable-state.js +8 -0
- package/dist/node_modules/@ark-ui/react/dist/utils/use-effect-once.js +1 -1
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +7 -10
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +294 -289
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +195 -194
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +18 -12
- package/dist/node_modules/@internationalized/date/dist/conversion.js +35 -35
- package/dist/node_modules/@internationalized/date/dist/queries.js +126 -75
- package/dist/node_modules/@internationalized/date/dist/string.js +29 -28
- package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.connect.js +129 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.dom.js +30 -0
- package/dist/node_modules/@zag-js/accordion/dist/accordion.machine.js +137 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/aria-hidden.js +14 -0
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +12 -49
- package/dist/node_modules/@zag-js/aria-hidden/dist/walk-tree-outside.js +41 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.connect.js +52 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.dom.js +17 -0
- package/dist/node_modules/@zag-js/avatar/dist/avatar.machine.js +93 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.connect.js +108 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.dom.js +21 -0
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.machine.js +141 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.connect.js +80 -0
- package/dist/node_modules/@zag-js/collapsible/dist/collapsible.dom.js +16 -0
- package/dist/node_modules/@zag-js/collapsible/dist/{index.js → collapsible.machine.js} +58 -115
- package/dist/node_modules/@zag-js/collection/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/collection/dist/{index.js → list-collection.js} +58 -56
- package/dist/node_modules/@zag-js/collection/dist/selection-map.js +58 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.collection.js +6 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.connect.js +341 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.dom.js +68 -0
- package/dist/node_modules/@zag-js/combobox/dist/combobox.machine.js +936 -0
- package/dist/node_modules/@zag-js/core/dist/create-machine.js +32 -0
- package/dist/node_modules/@zag-js/core/dist/memo.js +11 -0
- package/dist/node_modules/@zag-js/core/dist/merge-props.js +48 -0
- package/dist/node_modules/@zag-js/core/dist/scope.js +19 -0
- package/dist/node_modules/@zag-js/core/dist/state.js +143 -0
- package/dist/node_modules/@zag-js/core/dist/types.js +5 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +31 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.connect.js +742 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.dom.js +73 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.machine.js +1042 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.parse.js +8 -0
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.utils.js +155 -0
- package/dist/node_modules/@zag-js/date-utils/dist/align.js +15 -0
- package/dist/node_modules/@zag-js/date-utils/dist/assertion.js +26 -0
- package/dist/node_modules/@zag-js/date-utils/dist/constrain.js +40 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-month.js +74 -0
- package/dist/node_modules/@zag-js/date-utils/dist/date-year.js +37 -0
- package/dist/node_modules/@zag-js/date-utils/dist/duration.js +13 -0
- package/dist/node_modules/@zag-js/date-utils/dist/format.js +25 -0
- package/dist/node_modules/@zag-js/date-utils/dist/formatter.js +30 -0
- package/dist/node_modules/@zag-js/date-utils/dist/get-era-format.js +8 -0
- package/dist/node_modules/@zag-js/date-utils/dist/mutation.js +9 -0
- package/dist/node_modules/@zag-js/date-utils/dist/pagination.js +95 -0
- package/dist/node_modules/@zag-js/date-utils/dist/parse-date.js +34 -0
- package/dist/node_modules/@zag-js/date-utils/dist/preset.js +41 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.connect.js +104 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.dom.js +42 -0
- package/dist/node_modules/@zag-js/dialog/dist/dialog.machine.js +220 -0
- package/dist/node_modules/@zag-js/dismissable/dist/dismissable-layer.js +80 -0
- package/dist/node_modules/@zag-js/dismissable/dist/escape-keydown.js +11 -0
- package/dist/node_modules/@zag-js/dismissable/dist/layer-stack.js +103 -0
- package/dist/node_modules/@zag-js/dismissable/dist/pointer-event-outside.js +37 -0
- package/dist/node_modules/@zag-js/dom-query/dist/caret.js +12 -0
- package/dist/node_modules/@zag-js/dom-query/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/dom-query/dist/computed-style.js +8 -0
- package/dist/node_modules/@zag-js/dom-query/dist/controller.js +76 -0
- package/dist/node_modules/@zag-js/dom-query/dist/event.js +80 -0
- package/dist/node_modules/@zag-js/dom-query/dist/form.js +70 -0
- package/dist/node_modules/@zag-js/dom-query/dist/initial-focus.js +22 -0
- package/dist/node_modules/@zag-js/dom-query/dist/mutation-observer.js +41 -0
- package/dist/node_modules/@zag-js/dom-query/dist/navigate.js +13 -0
- package/dist/node_modules/@zag-js/dom-query/dist/node.js +87 -0
- package/dist/node_modules/@zag-js/dom-query/dist/overflow.js +27 -0
- package/dist/node_modules/@zag-js/dom-query/dist/platform.js +24 -0
- package/dist/node_modules/@zag-js/dom-query/dist/press.js +61 -0
- package/dist/node_modules/@zag-js/dom-query/dist/query.js +31 -0
- package/dist/node_modules/@zag-js/dom-query/dist/raf.js +51 -0
- package/dist/node_modules/@zag-js/dom-query/dist/resize-observer.js +34 -0
- package/dist/node_modules/@zag-js/dom-query/dist/searchable.js +17 -0
- package/dist/node_modules/@zag-js/dom-query/dist/set.js +29 -0
- package/dist/node_modules/@zag-js/dom-query/dist/shared.js +11 -0
- package/dist/node_modules/@zag-js/dom-query/dist/tabbable.js +110 -0
- package/dist/node_modules/@zag-js/dom-query/dist/text-selection.js +36 -0
- package/dist/node_modules/@zag-js/dom-query/dist/typeahead.js +25 -0
- package/dist/node_modules/@zag-js/dom-query/dist/visually-hidden.js +15 -0
- package/dist/node_modules/@zag-js/dom-query/dist/wait-for.js +42 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/chunk-QZ7TP4HQ.js +4 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/focus-trap.js +335 -0
- package/dist/node_modules/@zag-js/focus-trap/dist/index.js +24 -299
- package/dist/node_modules/@zag-js/focus-visible/dist/index.js +63 -39
- package/dist/node_modules/@zag-js/interact-outside/dist/frame-utils.js +60 -0
- package/dist/node_modules/@zag-js/interact-outside/dist/index.js +97 -131
- package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +21 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.connect.js +385 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.dom.js +93 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.machine.js +855 -0
- package/dist/node_modules/@zag-js/menu/dist/menu.utils.js +51 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.anatomy.js +14 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.connect.js +145 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.dom.js +31 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.machine.js +132 -0
- package/dist/node_modules/@zag-js/pagination/dist/pagination.utils.js +39 -0
- package/dist/node_modules/@zag-js/popper/dist/get-anchor.js +34 -0
- package/dist/node_modules/@zag-js/popper/dist/get-placement.js +190 -0
- package/dist/node_modules/@zag-js/popper/dist/get-styles.js +47 -0
- package/dist/node_modules/@zag-js/popper/dist/middleware.js +57 -0
- package/dist/node_modules/@zag-js/popper/dist/placement.js +11 -0
- package/dist/node_modules/@zag-js/presence/dist/presence.connect.js +16 -0
- package/dist/node_modules/@zag-js/presence/dist/{index.js → presence.machine.js} +39 -47
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.connect.js +197 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.dom.js +57 -0
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.machine.js +179 -0
- package/dist/node_modules/@zag-js/react/dist/bindable.js +52 -0
- package/dist/node_modules/@zag-js/react/dist/machine.js +208 -0
- package/dist/node_modules/@zag-js/react/dist/normalize-props.js +5 -0
- package/dist/node_modules/@zag-js/react/dist/refs.js +15 -0
- package/dist/node_modules/@zag-js/react/dist/track.js +13 -0
- package/dist/node_modules/@zag-js/react/dist/use-layout-effect.js +5 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/polygon.js +23 -0
- package/dist/node_modules/@zag-js/rect-utils/dist/rect.js +26 -0
- package/dist/node_modules/@zag-js/remove-scroll/dist/index.js +32 -23
- package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +22 -0
- package/dist/node_modules/@zag-js/select/dist/select.collection.js +6 -0
- package/dist/node_modules/@zag-js/select/dist/select.connect.js +372 -0
- package/dist/node_modules/@zag-js/select/dist/select.dom.js +53 -0
- package/dist/node_modules/@zag-js/select/dist/select.machine.js +690 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.connect.js +110 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.dom.js +25 -0
- package/dist/node_modules/@zag-js/switch/dist/switch.machine.js +143 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.connect.js +176 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.dom.js +47 -0
- package/dist/node_modules/@zag-js/tabs/dist/tabs.machine.js +268 -0
- package/dist/node_modules/@zag-js/toast/dist/index.js +6 -798
- package/dist/node_modules/@zag-js/toast/dist/toast-group.connect.js +54 -0
- package/dist/node_modules/@zag-js/toast/dist/toast-group.machine.js +236 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.anatomy.js +13 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.connect.js +102 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.dom.js +10 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.machine.js +234 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.store.js +134 -0
- package/dist/node_modules/@zag-js/toast/dist/toast.utils.js +122 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.anatomy.js +6 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.connect.js +120 -0
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.dom.js +25 -0
- package/dist/node_modules/@zag-js/tooltip/dist/{index.js → tooltip.machine.js} +109 -188
- package/dist/node_modules/@zag-js/tooltip/dist/tooltip.store.js +9 -0
- package/dist/node_modules/@zag-js/types/dist/prop-types.js +10 -0
- package/dist/node_modules/@zag-js/utils/dist/array.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/chunk-MXGZDBDQ.js +8 -0
- package/dist/node_modules/@zag-js/utils/dist/equal.js +27 -0
- package/dist/node_modules/@zag-js/utils/dist/functions.js +28 -0
- package/dist/node_modules/@zag-js/utils/dist/guard.js +19 -0
- package/dist/node_modules/@zag-js/utils/dist/number.js +11 -0
- package/dist/node_modules/@zag-js/utils/dist/object.js +13 -0
- package/dist/node_modules/@zag-js/utils/dist/store.js +25 -0
- package/dist/node_modules/@zag-js/utils/dist/timers.js +39 -0
- package/dist/node_modules/@zag-js/utils/dist/warning.js +25 -0
- package/dist/styled-system/css/css.js +1 -1
- package/dist/styled-system/helpers.js +85 -83
- package/dist/styled-system/jsx/is-valid-prop.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +18 -21
- package/styled-system/css/css.js +1 -1
- package/styled-system/helpers.js +3 -0
- package/styled-system/jsx/is-valid-prop.js +1 -1
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/themes/theme-asagi.json +1 -1
- package/styled-system/themes/theme-konjo-dark.json +1 -1
- package/styled-system/themes/theme-kurikawa.json +1 -1
- package/styled-system/themes/theme-sumire.json +1 -1
- package/styled-system/themes/theme-tsutsuji.json +1 -1
- package/styled-system/tokens/tokens.d.ts +1 -1
- package/styled-system/types/conditions.d.ts +11 -11
- package/styled-system/types/prop-type.d.ts +2 -0
- package/styled-system/types/style-props.d.ts +3 -4
- package/dist/node_modules/@zag-js/accordion/dist/index.js +0 -290
- package/dist/node_modules/@zag-js/avatar/dist/index.js +0 -154
- package/dist/node_modules/@zag-js/checkbox/dist/index.js +0 -270
- package/dist/node_modules/@zag-js/combobox/dist/index.js +0 -1415
- package/dist/node_modules/@zag-js/core/dist/index.js +0 -92
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +0 -1826
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +0 -366
- package/dist/node_modules/@zag-js/dialog/dist/index.js +0 -324
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +0 -188
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +0 -633
- package/dist/node_modules/@zag-js/menu/dist/index.js +0 -1235
- package/dist/node_modules/@zag-js/pagination/dist/index.js +0 -273
- package/dist/node_modules/@zag-js/popper/dist/index.js +0 -260
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +0 -407
- package/dist/node_modules/@zag-js/react/dist/index.js +0 -269
- package/dist/node_modules/@zag-js/rect-utils/dist/index.js +0 -46
- package/dist/node_modules/@zag-js/select/dist/index.js +0 -1088
- package/dist/node_modules/@zag-js/switch/dist/index.js +0 -275
- package/dist/node_modules/@zag-js/tabs/dist/index.js +0 -475
- package/dist/node_modules/@zag-js/types/dist/index.js +0 -12
- package/dist/node_modules/@zag-js/utils/dist/index.js +0 -173
- /package/dist/node_modules/@zag-js/anatomy/dist/{index.js → create-anatomy.js} +0 -0
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
import { createAnatomy as L } from "../../anatomy/dist/index.js";
|
|
2
|
-
import { dataAttr as d, isOpeningInNewTab as N, isSafari as P, isSelfTarget as S, isComposingEvent as U, getEventKey as $, isAnchorElement as D, trackElementRect as k, nextTick as W, raf as v, getFocusables as x, prevById as M, nextById as X, clickIfLink as H, itemById as K, queryAll as Y } from "../../dom-query/dist/index.js";
|
|
3
|
-
import { last as q, first as j } from "../../utils/dist/index.js";
|
|
4
|
-
import { setup as G } from "../../core/dist/index.js";
|
|
5
|
-
import { createProps as F } from "../../types/dist/index.js";
|
|
6
|
-
var J = L("tabs").parts("root", "list", "trigger", "content", "indicator"), b = J.build(), Q = (e) => {
|
|
7
|
-
var t;
|
|
8
|
-
return ((t = e.ids) == null ? void 0 : t.root) ?? `tabs:${e.id}`;
|
|
9
|
-
}, y = (e) => {
|
|
10
|
-
var t;
|
|
11
|
-
return ((t = e.ids) == null ? void 0 : t.list) ?? `tabs:${e.id}:list`;
|
|
12
|
-
}, E = (e, t) => {
|
|
13
|
-
var o;
|
|
14
|
-
return ((o = e.ids) == null ? void 0 : o.content) ?? `tabs:${e.id}:content-${t}`;
|
|
15
|
-
}, f = (e, t) => {
|
|
16
|
-
var o;
|
|
17
|
-
return ((o = e.ids) == null ? void 0 : o.trigger) ?? `tabs:${e.id}:trigger-${t}`;
|
|
18
|
-
}, w = (e) => {
|
|
19
|
-
var t;
|
|
20
|
-
return ((t = e.ids) == null ? void 0 : t.indicator) ?? `tabs:${e.id}:indicator`;
|
|
21
|
-
}, Z = (e) => e.getById(y(e)), z = (e, t) => e.getById(E(e, t)), h = (e, t) => e.getById(f(e, t)), _ = (e) => e.getById(w(e)), V = (e) => {
|
|
22
|
-
const o = `[role=tab][data-ownedby='${CSS.escape(y(e))}']:not([disabled])`;
|
|
23
|
-
return Y(Z(e), o);
|
|
24
|
-
}, ee = (e) => j(V(e)), te = (e) => q(V(e)), ae = (e, t) => X(V(e), f(e, t.value), t.loopFocus), oe = (e, t) => M(V(e), f(e, t.value), t.loopFocus), O = (e) => ({
|
|
25
|
-
left: (e == null ? void 0 : e.offsetLeft) ?? 0,
|
|
26
|
-
top: (e == null ? void 0 : e.offsetTop) ?? 0,
|
|
27
|
-
width: (e == null ? void 0 : e.offsetWidth) ?? 0,
|
|
28
|
-
height: (e == null ? void 0 : e.offsetHeight) ?? 0
|
|
29
|
-
}), re = (e, t) => {
|
|
30
|
-
const o = K(V(e), f(e, t));
|
|
31
|
-
return B(O(o));
|
|
32
|
-
}, B = (e) => ({
|
|
33
|
-
width: `${e.width}px`,
|
|
34
|
-
height: `${e.height}px`,
|
|
35
|
-
left: `${e.left}px`,
|
|
36
|
-
top: `${e.top}px`
|
|
37
|
-
});
|
|
38
|
-
function de(e, t) {
|
|
39
|
-
const { state: o, send: a, context: n, prop: r, scope: u } = e, p = r("translations"), g = o.matches("focused"), R = r("orientation") === "vertical", I = r("orientation") === "horizontal", m = r("composite");
|
|
40
|
-
function C(i) {
|
|
41
|
-
return {
|
|
42
|
-
selected: n.get("value") === i.value,
|
|
43
|
-
focused: n.get("focusedValue") === i.value,
|
|
44
|
-
disabled: !!i.disabled
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
value: n.get("value"),
|
|
49
|
-
focusedValue: n.get("focusedValue"),
|
|
50
|
-
setValue(i) {
|
|
51
|
-
a({ type: "SET_VALUE", value: i });
|
|
52
|
-
},
|
|
53
|
-
clearValue() {
|
|
54
|
-
a({ type: "CLEAR_VALUE" });
|
|
55
|
-
},
|
|
56
|
-
setIndicatorRect(i) {
|
|
57
|
-
const s = f(u, i);
|
|
58
|
-
a({ type: "SET_INDICATOR_RECT", id: s });
|
|
59
|
-
},
|
|
60
|
-
syncTabIndex() {
|
|
61
|
-
a({ type: "SYNC_TAB_INDEX" });
|
|
62
|
-
},
|
|
63
|
-
selectNext(i) {
|
|
64
|
-
a({ type: "TAB_FOCUS", value: i, src: "selectNext" }), a({ type: "ARROW_NEXT", src: "selectNext" });
|
|
65
|
-
},
|
|
66
|
-
selectPrev(i) {
|
|
67
|
-
a({ type: "TAB_FOCUS", value: i, src: "selectPrev" }), a({ type: "ARROW_PREV", src: "selectPrev" });
|
|
68
|
-
},
|
|
69
|
-
focus() {
|
|
70
|
-
var s;
|
|
71
|
-
const i = n.get("value");
|
|
72
|
-
i && ((s = h(u, i)) == null || s.focus());
|
|
73
|
-
},
|
|
74
|
-
getRootProps() {
|
|
75
|
-
return t.element({
|
|
76
|
-
...b.root.attrs,
|
|
77
|
-
id: Q(u),
|
|
78
|
-
"data-orientation": r("orientation"),
|
|
79
|
-
"data-focus": d(g),
|
|
80
|
-
dir: r("dir")
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
getListProps() {
|
|
84
|
-
return t.element({
|
|
85
|
-
...b.list.attrs,
|
|
86
|
-
id: y(u),
|
|
87
|
-
role: "tablist",
|
|
88
|
-
dir: r("dir"),
|
|
89
|
-
"data-focus": d(g),
|
|
90
|
-
"aria-orientation": r("orientation"),
|
|
91
|
-
"data-orientation": r("orientation"),
|
|
92
|
-
"aria-label": p == null ? void 0 : p.listLabel,
|
|
93
|
-
onKeyDown(i) {
|
|
94
|
-
if (i.defaultPrevented || !S(i) || U(i)) return;
|
|
95
|
-
const s = {
|
|
96
|
-
ArrowDown() {
|
|
97
|
-
I || a({ type: "ARROW_NEXT", key: "ArrowDown" });
|
|
98
|
-
},
|
|
99
|
-
ArrowUp() {
|
|
100
|
-
I || a({ type: "ARROW_PREV", key: "ArrowUp" });
|
|
101
|
-
},
|
|
102
|
-
ArrowLeft() {
|
|
103
|
-
R || a({ type: "ARROW_PREV", key: "ArrowLeft" });
|
|
104
|
-
},
|
|
105
|
-
ArrowRight() {
|
|
106
|
-
R || a({ type: "ARROW_NEXT", key: "ArrowRight" });
|
|
107
|
-
},
|
|
108
|
-
Home() {
|
|
109
|
-
a({ type: "HOME" });
|
|
110
|
-
},
|
|
111
|
-
End() {
|
|
112
|
-
a({ type: "END" });
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
let c = $(i, {
|
|
116
|
-
dir: r("dir"),
|
|
117
|
-
orientation: r("orientation")
|
|
118
|
-
});
|
|
119
|
-
const l = s[c];
|
|
120
|
-
if (l) {
|
|
121
|
-
i.preventDefault(), l(i);
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
},
|
|
127
|
-
getTriggerState: C,
|
|
128
|
-
getTriggerProps(i) {
|
|
129
|
-
const { value: s, disabled: c } = i, l = C(i);
|
|
130
|
-
return t.button({
|
|
131
|
-
...b.trigger.attrs,
|
|
132
|
-
role: "tab",
|
|
133
|
-
type: "button",
|
|
134
|
-
disabled: c,
|
|
135
|
-
dir: r("dir"),
|
|
136
|
-
"data-orientation": r("orientation"),
|
|
137
|
-
"data-disabled": d(c),
|
|
138
|
-
"aria-disabled": c,
|
|
139
|
-
"data-value": s,
|
|
140
|
-
"aria-selected": l.selected,
|
|
141
|
-
"data-selected": d(l.selected),
|
|
142
|
-
"data-focus": d(l.focused),
|
|
143
|
-
"aria-controls": l.selected ? E(u, s) : void 0,
|
|
144
|
-
"data-ownedby": y(u),
|
|
145
|
-
"data-ssr": d(n.get("ssr")),
|
|
146
|
-
id: f(u, s),
|
|
147
|
-
tabIndex: l.selected && m ? 0 : -1,
|
|
148
|
-
onFocus() {
|
|
149
|
-
a({ type: "TAB_FOCUS", value: s });
|
|
150
|
-
},
|
|
151
|
-
onBlur(T) {
|
|
152
|
-
const A = T.relatedTarget;
|
|
153
|
-
(A == null ? void 0 : A.getAttribute("role")) !== "tab" && a({ type: "TAB_BLUR" });
|
|
154
|
-
},
|
|
155
|
-
onClick(T) {
|
|
156
|
-
T.defaultPrevented || N(T) || c || (P() && T.currentTarget.focus(), a({ type: "TAB_CLICK", value: s }));
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
},
|
|
160
|
-
getContentProps(i) {
|
|
161
|
-
const { value: s } = i, c = n.get("value") === s;
|
|
162
|
-
return t.element({
|
|
163
|
-
...b.content.attrs,
|
|
164
|
-
dir: r("dir"),
|
|
165
|
-
id: E(u, s),
|
|
166
|
-
tabIndex: m ? 0 : -1,
|
|
167
|
-
"aria-labelledby": f(u, s),
|
|
168
|
-
role: "tabpanel",
|
|
169
|
-
"data-ownedby": y(u),
|
|
170
|
-
"data-selected": d(c),
|
|
171
|
-
"data-orientation": r("orientation"),
|
|
172
|
-
hidden: !c
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
getIndicatorProps() {
|
|
176
|
-
const i = n.get("indicatorRect"), s = n.get("indicatorTransition");
|
|
177
|
-
return t.element({
|
|
178
|
-
id: w(u),
|
|
179
|
-
...b.indicator.attrs,
|
|
180
|
-
dir: r("dir"),
|
|
181
|
-
"data-orientation": r("orientation"),
|
|
182
|
-
style: {
|
|
183
|
-
"--transition-property": "left, right, top, bottom, width, height",
|
|
184
|
-
"--left": i.left,
|
|
185
|
-
"--top": i.top,
|
|
186
|
-
"--width": i.width,
|
|
187
|
-
"--height": i.height,
|
|
188
|
-
position: "absolute",
|
|
189
|
-
willChange: "var(--transition-property)",
|
|
190
|
-
transitionProperty: "var(--transition-property)",
|
|
191
|
-
transitionDuration: s ? "var(--transition-duration, 150ms)" : "0ms",
|
|
192
|
-
transitionTimingFunction: "var(--transition-timing-function)",
|
|
193
|
-
[I ? "left" : "top"]: I ? "var(--left)" : "var(--top)"
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
var { createMachine: ie } = G(), fe = ie({
|
|
200
|
-
props({ props: e }) {
|
|
201
|
-
return {
|
|
202
|
-
dir: "ltr",
|
|
203
|
-
orientation: "horizontal",
|
|
204
|
-
activationMode: "automatic",
|
|
205
|
-
loopFocus: !0,
|
|
206
|
-
composite: !0,
|
|
207
|
-
navigate(t) {
|
|
208
|
-
H(t.node);
|
|
209
|
-
},
|
|
210
|
-
defaultValue: null,
|
|
211
|
-
...e
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
initialState() {
|
|
215
|
-
return "idle";
|
|
216
|
-
},
|
|
217
|
-
context({ prop: e, bindable: t }) {
|
|
218
|
-
return {
|
|
219
|
-
value: t(() => ({
|
|
220
|
-
defaultValue: e("defaultValue"),
|
|
221
|
-
value: e("value"),
|
|
222
|
-
onChange(o) {
|
|
223
|
-
var a;
|
|
224
|
-
(a = e("onValueChange")) == null || a({ value: o });
|
|
225
|
-
}
|
|
226
|
-
})),
|
|
227
|
-
focusedValue: t(() => ({
|
|
228
|
-
defaultValue: e("value") || e("defaultValue"),
|
|
229
|
-
sync: !0,
|
|
230
|
-
onChange(o) {
|
|
231
|
-
var a;
|
|
232
|
-
(a = e("onFocusChange")) == null || a({ focusedValue: o });
|
|
233
|
-
}
|
|
234
|
-
})),
|
|
235
|
-
ssr: t(() => ({ defaultValue: !0 })),
|
|
236
|
-
indicatorTransition: t(() => ({ defaultValue: !1 })),
|
|
237
|
-
indicatorRect: t(() => ({
|
|
238
|
-
defaultValue: { left: "0px", top: "0px", width: "0px", height: "0px" }
|
|
239
|
-
}))
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
watch({ context: e, prop: t, track: o, action: a }) {
|
|
243
|
-
o([() => e.get("value")], () => {
|
|
244
|
-
a(["allowIndicatorTransition", "syncIndicatorRect", "syncTabIndex", "navigateIfNeeded"]);
|
|
245
|
-
}), o([() => t("dir"), () => t("orientation")], () => {
|
|
246
|
-
a(["syncIndicatorRect"]);
|
|
247
|
-
});
|
|
248
|
-
},
|
|
249
|
-
on: {
|
|
250
|
-
SET_VALUE: {
|
|
251
|
-
actions: ["setValue"]
|
|
252
|
-
},
|
|
253
|
-
CLEAR_VALUE: {
|
|
254
|
-
actions: ["clearValue"]
|
|
255
|
-
},
|
|
256
|
-
SET_INDICATOR_RECT: {
|
|
257
|
-
actions: ["setIndicatorRect"]
|
|
258
|
-
},
|
|
259
|
-
SYNC_TAB_INDEX: {
|
|
260
|
-
actions: ["syncTabIndex"]
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
entry: ["syncIndicatorRect", "syncTabIndex", "syncSsr"],
|
|
264
|
-
exit: ["cleanupObserver"],
|
|
265
|
-
states: {
|
|
266
|
-
idle: {
|
|
267
|
-
on: {
|
|
268
|
-
TAB_FOCUS: {
|
|
269
|
-
target: "focused",
|
|
270
|
-
actions: ["setFocusedValue"]
|
|
271
|
-
},
|
|
272
|
-
TAB_CLICK: {
|
|
273
|
-
target: "focused",
|
|
274
|
-
actions: ["setFocusedValue", "setValue"]
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
focused: {
|
|
279
|
-
on: {
|
|
280
|
-
TAB_CLICK: {
|
|
281
|
-
actions: ["setFocusedValue", "setValue"]
|
|
282
|
-
},
|
|
283
|
-
ARROW_PREV: [
|
|
284
|
-
{
|
|
285
|
-
guard: "selectOnFocus",
|
|
286
|
-
actions: ["focusPrevTab", "selectFocusedTab"]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
actions: ["focusPrevTab"]
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
ARROW_NEXT: [
|
|
293
|
-
{
|
|
294
|
-
guard: "selectOnFocus",
|
|
295
|
-
actions: ["focusNextTab", "selectFocusedTab"]
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
actions: ["focusNextTab"]
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
HOME: [
|
|
302
|
-
{
|
|
303
|
-
guard: "selectOnFocus",
|
|
304
|
-
actions: ["focusFirstTab", "selectFocusedTab"]
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
actions: ["focusFirstTab"]
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
END: [
|
|
311
|
-
{
|
|
312
|
-
guard: "selectOnFocus",
|
|
313
|
-
actions: ["focusLastTab", "selectFocusedTab"]
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
actions: ["focusLastTab"]
|
|
317
|
-
}
|
|
318
|
-
],
|
|
319
|
-
TAB_FOCUS: {
|
|
320
|
-
actions: ["setFocusedValue"]
|
|
321
|
-
},
|
|
322
|
-
TAB_BLUR: {
|
|
323
|
-
target: "idle",
|
|
324
|
-
actions: ["clearFocusedValue"]
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
implementations: {
|
|
330
|
-
guards: {
|
|
331
|
-
selectOnFocus: ({ prop: e }) => e("activationMode") === "automatic"
|
|
332
|
-
},
|
|
333
|
-
actions: {
|
|
334
|
-
selectFocusedTab({ context: e, prop: t }) {
|
|
335
|
-
v(() => {
|
|
336
|
-
const o = e.get("focusedValue");
|
|
337
|
-
if (!o) return;
|
|
338
|
-
const n = t("deselectable") && e.get("value") === o ? null : o;
|
|
339
|
-
e.set("value", n);
|
|
340
|
-
});
|
|
341
|
-
},
|
|
342
|
-
setFocusedValue({ context: e, event: t, flush: o }) {
|
|
343
|
-
t.value != null && o(() => {
|
|
344
|
-
e.set("focusedValue", t.value);
|
|
345
|
-
});
|
|
346
|
-
},
|
|
347
|
-
clearFocusedValue({ context: e }) {
|
|
348
|
-
e.set("focusedValue", null);
|
|
349
|
-
},
|
|
350
|
-
setValue({ context: e, event: t, prop: o }) {
|
|
351
|
-
const a = o("deselectable") && e.get("value") === e.get("focusedValue");
|
|
352
|
-
e.set("value", a ? null : t.value);
|
|
353
|
-
},
|
|
354
|
-
clearValue({ context: e }) {
|
|
355
|
-
e.set("value", null);
|
|
356
|
-
},
|
|
357
|
-
focusFirstTab({ scope: e }) {
|
|
358
|
-
v(() => {
|
|
359
|
-
var t;
|
|
360
|
-
(t = ee(e)) == null || t.focus();
|
|
361
|
-
});
|
|
362
|
-
},
|
|
363
|
-
focusLastTab({ scope: e }) {
|
|
364
|
-
v(() => {
|
|
365
|
-
var t;
|
|
366
|
-
(t = te(e)) == null || t.focus();
|
|
367
|
-
});
|
|
368
|
-
},
|
|
369
|
-
focusNextTab({ context: e, prop: t, scope: o, event: a }) {
|
|
370
|
-
const n = a.value ?? e.get("focusedValue");
|
|
371
|
-
if (!n) return;
|
|
372
|
-
const r = ae(o, {
|
|
373
|
-
value: n,
|
|
374
|
-
loopFocus: t("loopFocus")
|
|
375
|
-
});
|
|
376
|
-
v(() => {
|
|
377
|
-
t("composite") ? r == null || r.focus() : (r == null ? void 0 : r.dataset.value) != null && e.set("focusedValue", r.dataset.value);
|
|
378
|
-
});
|
|
379
|
-
},
|
|
380
|
-
focusPrevTab({ context: e, prop: t, scope: o, event: a }) {
|
|
381
|
-
const n = a.value ?? e.get("focusedValue");
|
|
382
|
-
if (!n) return;
|
|
383
|
-
const r = oe(o, {
|
|
384
|
-
value: n,
|
|
385
|
-
loopFocus: t("loopFocus")
|
|
386
|
-
});
|
|
387
|
-
v(() => {
|
|
388
|
-
t("composite") ? r == null || r.focus() : (r == null ? void 0 : r.dataset.value) != null && e.set("focusedValue", r.dataset.value);
|
|
389
|
-
});
|
|
390
|
-
},
|
|
391
|
-
syncTabIndex({ context: e, scope: t }) {
|
|
392
|
-
v(() => {
|
|
393
|
-
const o = e.get("value");
|
|
394
|
-
if (!o) return;
|
|
395
|
-
const a = z(t, o);
|
|
396
|
-
if (!a) return;
|
|
397
|
-
x(a).length > 0 ? a.removeAttribute("tabindex") : a.setAttribute("tabindex", "0");
|
|
398
|
-
});
|
|
399
|
-
},
|
|
400
|
-
cleanupObserver({ refs: e }) {
|
|
401
|
-
const t = e.get("indicatorCleanup");
|
|
402
|
-
t && t();
|
|
403
|
-
},
|
|
404
|
-
allowIndicatorTransition({ context: e }) {
|
|
405
|
-
e.set("indicatorTransition", !0);
|
|
406
|
-
},
|
|
407
|
-
setIndicatorRect({ context: e, event: t, scope: o }) {
|
|
408
|
-
const a = t.id ?? e.get("value");
|
|
409
|
-
if (!_(o)) return;
|
|
410
|
-
if (!a) {
|
|
411
|
-
e.set("indicatorTransition", !1);
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
h(o, a) && (e.set("indicatorRect", re(o, a)), W(() => {
|
|
415
|
-
e.set("indicatorTransition", !1);
|
|
416
|
-
}));
|
|
417
|
-
},
|
|
418
|
-
syncSsr({ context: e }) {
|
|
419
|
-
e.set("ssr", !1);
|
|
420
|
-
},
|
|
421
|
-
syncIndicatorRect({ context: e, refs: t, scope: o }) {
|
|
422
|
-
const a = t.get("indicatorCleanup");
|
|
423
|
-
a && a();
|
|
424
|
-
const n = e.get("value");
|
|
425
|
-
if (!n) {
|
|
426
|
-
e.set("indicatorTransition", !1);
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
const r = h(o, n), u = _(o);
|
|
430
|
-
if (!r || !u) return;
|
|
431
|
-
const p = k([r], {
|
|
432
|
-
measure(g) {
|
|
433
|
-
return O(g);
|
|
434
|
-
},
|
|
435
|
-
onEntry({ rects: g }) {
|
|
436
|
-
const [R] = g;
|
|
437
|
-
e.set("indicatorRect", B(R));
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
t.set("indicatorCleanup", p);
|
|
441
|
-
},
|
|
442
|
-
navigateIfNeeded({ context: e, prop: t, scope: o }) {
|
|
443
|
-
var r;
|
|
444
|
-
const a = e.get("value");
|
|
445
|
-
if (!a) return;
|
|
446
|
-
const n = h(o, a);
|
|
447
|
-
D(n) && ((r = t("navigate")) == null || r({ value: a, node: n, href: n.href }));
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
F()([
|
|
453
|
-
"activationMode",
|
|
454
|
-
"composite",
|
|
455
|
-
"deselectable",
|
|
456
|
-
"dir",
|
|
457
|
-
"getRootNode",
|
|
458
|
-
"id",
|
|
459
|
-
"ids",
|
|
460
|
-
"loopFocus",
|
|
461
|
-
"navigate",
|
|
462
|
-
"onFocusChange",
|
|
463
|
-
"onValueChange",
|
|
464
|
-
"orientation",
|
|
465
|
-
"translations",
|
|
466
|
-
"value",
|
|
467
|
-
"defaultValue"
|
|
468
|
-
]);
|
|
469
|
-
F()(["disabled", "value"]);
|
|
470
|
-
F()(["value"]);
|
|
471
|
-
export {
|
|
472
|
-
J as anatomy,
|
|
473
|
-
de as connect,
|
|
474
|
-
fe as machine
|
|
475
|
-
};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
function L(t) {
|
|
2
|
-
return t == null ? [] : Array.isArray(t) ? t : [t];
|
|
3
|
-
}
|
|
4
|
-
var z = (t) => t[0], d = (t) => t[t.length - 1], O = (t, r) => t.indexOf(r) !== -1, j = (t, ...r) => t.concat(r), E = (t, ...r) => t.filter((n) => !r.includes(n)), B = (t, r) => O(t, r) ? E(t, r) : j(t, r);
|
|
5
|
-
function y(t, r, n = {}) {
|
|
6
|
-
const { step: e = 1, loop: o = !0 } = n, i = r + e, c = t.length, a = c - 1;
|
|
7
|
-
return r === -1 ? e > 0 ? 0 : a : i < 0 ? o ? a : 0 : i >= c ? o ? 0 : r > c ? c : r : i;
|
|
8
|
-
}
|
|
9
|
-
function D(t, r, n = {}) {
|
|
10
|
-
return t[y(t, r, n)];
|
|
11
|
-
}
|
|
12
|
-
function A(t, r, n = {}) {
|
|
13
|
-
const { step: e = 1, loop: o = !0 } = n;
|
|
14
|
-
return y(t, r, { step: -e, loop: o });
|
|
15
|
-
}
|
|
16
|
-
function G(t, r, n = {}) {
|
|
17
|
-
return t[A(t, r, n)];
|
|
18
|
-
}
|
|
19
|
-
function M(t, r) {
|
|
20
|
-
return t.reduce((n, e, o) => {
|
|
21
|
-
var i;
|
|
22
|
-
return o % r === 0 ? n.push([e]) : (i = d(n)) == null || i.push(e), n;
|
|
23
|
-
}, []);
|
|
24
|
-
}
|
|
25
|
-
var p = (t) => (t == null ? void 0 : t.constructor.name) === "Array", k = (t, r) => {
|
|
26
|
-
if (t.length !== r.length) return !1;
|
|
27
|
-
for (let n = 0; n < t.length; n++)
|
|
28
|
-
if (!h(t[n], r[n])) return !1;
|
|
29
|
-
return !0;
|
|
30
|
-
}, h = (t, r) => {
|
|
31
|
-
if (Object.is(t, r)) return !0;
|
|
32
|
-
if (t == null && r != null || t != null && r == null) return !1;
|
|
33
|
-
if (typeof (t == null ? void 0 : t.isEqual) == "function" && typeof (r == null ? void 0 : r.isEqual) == "function")
|
|
34
|
-
return t.isEqual(r);
|
|
35
|
-
if (typeof t == "function" && typeof r == "function")
|
|
36
|
-
return t.toString() === r.toString();
|
|
37
|
-
if (p(t) && p(r))
|
|
38
|
-
return k(Array.from(t), Array.from(r));
|
|
39
|
-
if (typeof t != "object" || typeof r != "object") return !1;
|
|
40
|
-
const n = Object.keys(r ?? /* @__PURE__ */ Object.create(null)), e = n.length;
|
|
41
|
-
for (let o = 0; o < e; o++)
|
|
42
|
-
if (!Reflect.has(t, n[o])) return !1;
|
|
43
|
-
for (let o = 0; o < e; o++) {
|
|
44
|
-
const i = n[o];
|
|
45
|
-
if (!h(t[i], r[i])) return !1;
|
|
46
|
-
}
|
|
47
|
-
return !0;
|
|
48
|
-
}, S = (t) => Array.isArray(t), W = (t) => t === !0 || t === !1, g = (t) => t != null && typeof t == "object", H = (t) => g(t) && !S(t), Q = (t) => typeof t == "string", N = (t) => typeof t == "function", U = (t) => t == null, w = (t, r) => Object.prototype.hasOwnProperty.call(t, r), q = (t) => Object.prototype.toString.call(t), m = Function.prototype.toString, F = m.call(Object), $ = (t) => {
|
|
49
|
-
if (!g(t) || q(t) != "[object Object]" || C(t)) return !1;
|
|
50
|
-
const r = Object.getPrototypeOf(t);
|
|
51
|
-
if (r === null) return !0;
|
|
52
|
-
const n = w(r, "constructor") && r.constructor;
|
|
53
|
-
return typeof n == "function" && n instanceof n && m.call(n) == F;
|
|
54
|
-
}, R = (t) => typeof t == "object" && t !== null && "$$typeof" in t && "props" in t, b = (t) => typeof t == "object" && t !== null && "__v_isVNode" in t, C = (t) => R(t) || b(t), X = (t, ...r) => (typeof t == "function" ? t(...r) : t) ?? void 0, Y = (t) => t, Z = (t) => t(), x = () => {
|
|
55
|
-
}, tt = (...t) => (...r) => {
|
|
56
|
-
t.forEach(function(n) {
|
|
57
|
-
n == null || n(...r);
|
|
58
|
-
});
|
|
59
|
-
}, rt = /* @__PURE__ */ (() => {
|
|
60
|
-
let t = 0;
|
|
61
|
-
return () => (t++, t.toString(36));
|
|
62
|
-
})();
|
|
63
|
-
function P(t, r, ...n) {
|
|
64
|
-
var o;
|
|
65
|
-
if (t in r) {
|
|
66
|
-
const i = r[t];
|
|
67
|
-
return N(i) ? i(...n) : i;
|
|
68
|
-
}
|
|
69
|
-
const e = new Error(`No matching key: ${JSON.stringify(t)} in ${JSON.stringify(Object.keys(r))}`);
|
|
70
|
-
throw (o = Error.captureStackTrace) == null || o.call(Error, e, P), e;
|
|
71
|
-
}
|
|
72
|
-
var { min: V, max: K } = Math, T = (t) => Number.isNaN(t), v = (t) => T(t) ? 0 : t, nt = (t, r, n) => {
|
|
73
|
-
const e = v(t), o = r == null || e >= r, i = n == null || e <= n;
|
|
74
|
-
return o && i;
|
|
75
|
-
}, et = (t, r, n) => V(K(v(t), r), n);
|
|
76
|
-
function _(t) {
|
|
77
|
-
if (!$(t) || t === void 0) return t;
|
|
78
|
-
const r = Reflect.ownKeys(t).filter((e) => typeof e == "string"), n = {};
|
|
79
|
-
for (const e of r) {
|
|
80
|
-
const o = t[e];
|
|
81
|
-
o !== void 0 && (n[e] = _(o));
|
|
82
|
-
}
|
|
83
|
-
return n;
|
|
84
|
-
}
|
|
85
|
-
function ot(t, r = Object.is) {
|
|
86
|
-
let n = { ...t };
|
|
87
|
-
const e = /* @__PURE__ */ new Set(), o = (s) => (e.add(s), () => e.delete(s)), i = () => {
|
|
88
|
-
e.forEach((s) => s());
|
|
89
|
-
};
|
|
90
|
-
return {
|
|
91
|
-
subscribe: o,
|
|
92
|
-
get: (s) => n[s],
|
|
93
|
-
set: (s, u) => {
|
|
94
|
-
r(n[s], u) || (n[s] = u, i());
|
|
95
|
-
},
|
|
96
|
-
update: (s) => {
|
|
97
|
-
let u = !1;
|
|
98
|
-
for (const l in s) {
|
|
99
|
-
const f = s[l];
|
|
100
|
-
f !== void 0 && !r(n[l], f) && (n[l] = f, u = !0);
|
|
101
|
-
}
|
|
102
|
-
u && i();
|
|
103
|
-
},
|
|
104
|
-
snapshot: () => ({ ...n })
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function it(t, r) {
|
|
108
|
-
const n = performance.now();
|
|
109
|
-
let e;
|
|
110
|
-
function o(i) {
|
|
111
|
-
if (i - n >= r) {
|
|
112
|
-
t();
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
e = requestAnimationFrame(o);
|
|
116
|
-
}
|
|
117
|
-
return e = requestAnimationFrame(o), () => cancelAnimationFrame(e);
|
|
118
|
-
}
|
|
119
|
-
function st(...t) {
|
|
120
|
-
const r = t.length === 1 ? t[0] : t[1];
|
|
121
|
-
(t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(r);
|
|
122
|
-
}
|
|
123
|
-
function ct(t, r) {
|
|
124
|
-
if (t == null) throw new Error(r());
|
|
125
|
-
}
|
|
126
|
-
function ut(t, r, n) {
|
|
127
|
-
let e = [];
|
|
128
|
-
for (const o of r)
|
|
129
|
-
t[o] == null && e.push(o);
|
|
130
|
-
if (e.length > 0)
|
|
131
|
-
throw new Error(`[zag-js${` > ${n}`}] missing required props: ${e.join(", ")}`);
|
|
132
|
-
}
|
|
133
|
-
export {
|
|
134
|
-
j as add,
|
|
135
|
-
B as addOrRemove,
|
|
136
|
-
tt as callAll,
|
|
137
|
-
Y as cast,
|
|
138
|
-
M as chunk,
|
|
139
|
-
et as clampValue,
|
|
140
|
-
_ as compact,
|
|
141
|
-
ot as createStore,
|
|
142
|
-
ct as ensure,
|
|
143
|
-
ut as ensureProps,
|
|
144
|
-
z as first,
|
|
145
|
-
O as has,
|
|
146
|
-
w as hasProp,
|
|
147
|
-
Z as identity,
|
|
148
|
-
S as isArray,
|
|
149
|
-
W as isBoolean,
|
|
150
|
-
h as isEqual,
|
|
151
|
-
N as isFunction,
|
|
152
|
-
T as isNaN,
|
|
153
|
-
U as isNull,
|
|
154
|
-
H as isObject,
|
|
155
|
-
g as isObjectLike,
|
|
156
|
-
$ as isPlainObject,
|
|
157
|
-
Q as isString,
|
|
158
|
-
nt as isValueWithinRange,
|
|
159
|
-
d as last,
|
|
160
|
-
P as match,
|
|
161
|
-
v as nan,
|
|
162
|
-
D as next,
|
|
163
|
-
y as nextIndex,
|
|
164
|
-
x as noop,
|
|
165
|
-
G as prev,
|
|
166
|
-
A as prevIndex,
|
|
167
|
-
E as remove,
|
|
168
|
-
X as runIfFn,
|
|
169
|
-
it as setRafTimeout,
|
|
170
|
-
L as toArray,
|
|
171
|
-
rt as uuid,
|
|
172
|
-
st as warn
|
|
173
|
-
};
|
|
File without changes
|