@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,12 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as t } from "../factory.js";
|
|
2
|
+
import { usePresenceContext as m } from "../presence/use-presence-context.js";
|
|
3
|
+
import { useSelectContext as i } from "./use-select-context.js";
|
|
2
4
|
import { forwardRef as n } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
import { mergeProps as p } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
7
|
+
var f = n((r, e) => {
|
|
8
|
+
const o = p(i().getPositionerProps(), r);
|
|
9
|
+
return m().unmounted ? null : /* @__PURE__ */ s(t.div, {
|
|
10
|
+
...o,
|
|
11
|
+
ref: e
|
|
12
|
+
});
|
|
10
13
|
});
|
|
11
14
|
f.displayName = "SelectPositioner";
|
|
12
15
|
export {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createSplitProps as n } from "../../utils/create-split-props.js";
|
|
2
|
+
import { ark as P } from "../factory.js";
|
|
3
|
+
import { splitPresenceProps as f } from "../presence/split-presence-props.js";
|
|
4
|
+
import { usePresence as a } from "../presence/use-presence.js";
|
|
5
|
+
import { PresenceProvider as v } from "../presence/use-presence-context.js";
|
|
6
|
+
import { SelectProvider as d } from "./use-select-context.js";
|
|
7
|
+
import { forwardRef as u } from "react";
|
|
8
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
9
|
+
import { mergeProps as o } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
10
|
+
var S = (t, p) => {
|
|
11
|
+
const [s, m] = f(t), [{ value: r }, c] = n()(m, ["value"]), i = a(o({ present: r.open }, s)), l = o(r.getRootProps(), c);
|
|
12
|
+
return /* @__PURE__ */ e(d, {
|
|
13
|
+
value: r,
|
|
14
|
+
children: /* @__PURE__ */ e(v, {
|
|
15
|
+
value: i,
|
|
16
|
+
children: /* @__PURE__ */ e(P.div, {
|
|
17
|
+
...l,
|
|
18
|
+
ref: p
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}, q = u(S);
|
|
23
|
+
export {
|
|
24
|
+
q as SelectRootProvider
|
|
25
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { PresenceProvider as g } from "../presence/use-presence-context.js";
|
|
1
|
+
import { createSplitProps as m } from "../../utils/create-split-props.js";
|
|
2
|
+
import { ark as d } from "../factory.js";
|
|
3
|
+
import { splitPresenceProps as u } from "../presence/split-presence-props.js";
|
|
4
|
+
import { usePresence as f } from "../presence/use-presence.js";
|
|
5
|
+
import { PresenceProvider as P } from "../presence/use-presence-context.js";
|
|
6
|
+
import { SelectProvider as g } from "./use-select-context.js";
|
|
8
7
|
import { useSelect as h } from "./use-select.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { forwardRef as v } from "react";
|
|
9
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
10
|
+
import { mergeProps as r } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
11
|
+
var S = (t, l) => {
|
|
12
|
+
const [n, s] = u(t), [i, p] = m()(s, [
|
|
13
13
|
"closeOnSelect",
|
|
14
14
|
"collection",
|
|
15
15
|
"composite",
|
|
@@ -38,10 +38,21 @@ const v = (t, l) => {
|
|
|
38
38
|
"readOnly",
|
|
39
39
|
"required",
|
|
40
40
|
"scrollToIndexFn",
|
|
41
|
+
"translations",
|
|
42
|
+
"autoComplete",
|
|
41
43
|
"value"
|
|
42
|
-
]), e = h(i),
|
|
43
|
-
return /* @__PURE__ */ o(
|
|
44
|
-
|
|
44
|
+
]), e = h(i), c = f(r({ present: e.open }, n)), a = r(e.getRootProps(), p);
|
|
45
|
+
return /* @__PURE__ */ o(g, {
|
|
46
|
+
value: e,
|
|
47
|
+
children: /* @__PURE__ */ o(P, {
|
|
48
|
+
value: c,
|
|
49
|
+
children: /* @__PURE__ */ o(d.div, {
|
|
50
|
+
...a,
|
|
51
|
+
ref: l
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
}, j = v(S);
|
|
45
56
|
export {
|
|
46
57
|
j as SelectRoot
|
|
47
58
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as t } from "../factory.js";
|
|
2
|
+
import { useSelectContext as m } from "./use-select-context.js";
|
|
2
3
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as i } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var f = p((r, e) => {
|
|
7
|
+
const o = i(m().getTriggerProps(), r);
|
|
8
|
+
return /* @__PURE__ */ g(t.button, {
|
|
9
|
+
...o,
|
|
10
|
+
ref: e
|
|
11
|
+
});
|
|
9
12
|
});
|
|
10
|
-
|
|
13
|
+
f.displayName = "SelectTrigger";
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
f as SelectTrigger
|
|
13
16
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as s } from "../factory.js";
|
|
2
|
+
import { useSelectContext as a } from "./use-select-context.js";
|
|
2
3
|
import { forwardRef as c } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as n } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var f = c((r, o) => {
|
|
7
|
+
const { children: t, placeholder: l, ...p } = r, e = a(), m = n(e.getValueTextProps(), p);
|
|
8
|
+
return /* @__PURE__ */ i(s.span, {
|
|
9
|
+
...m,
|
|
10
|
+
ref: o,
|
|
11
|
+
children: t || e.valueAsString || l
|
|
12
|
+
});
|
|
9
13
|
});
|
|
10
14
|
f.displayName = "SelectValueText";
|
|
11
15
|
export {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { SelectClearTrigger as t } from "./select-clear-trigger.js";
|
|
3
|
+
import { SelectContent as o } from "./select-content.js";
|
|
4
|
+
import { SelectContext as r } from "./select-context.js";
|
|
5
|
+
import { SelectControl as m } from "./select-control.js";
|
|
6
|
+
import { SelectHiddenSelect as i } from "./select-hidden-select.js";
|
|
7
|
+
import { SelectIndicator as l } from "./select-indicator.js";
|
|
8
|
+
import { SelectItem as p } from "./select-item.js";
|
|
9
|
+
import { SelectItemContext as c } from "./select-item-context.js";
|
|
10
|
+
import { SelectItemGroup as S } from "./select-item-group.js";
|
|
11
|
+
import { SelectItemGroupLabel as f } from "./select-item-group-label.js";
|
|
12
|
+
import { SelectItemIndicator as n } from "./select-item-indicator.js";
|
|
13
|
+
import { SelectItemText as I } from "./select-item-text.js";
|
|
14
|
+
import { SelectLabel as a } from "./select-label.js";
|
|
15
|
+
import { SelectList as x } from "./select-list.js";
|
|
16
|
+
import { SelectPositioner as d } from "./select-positioner.js";
|
|
17
|
+
import { SelectRoot as C } from "./select-root.js";
|
|
18
|
+
import { SelectRootProvider as g } from "./select-root-provider.js";
|
|
19
|
+
import { SelectTrigger as T } from "./select-trigger.js";
|
|
20
|
+
import { SelectValueText as s } from "./select-value-text.js";
|
|
21
|
+
var E = /* @__PURE__ */ e({
|
|
22
|
+
ClearTrigger: () => t,
|
|
23
|
+
Content: () => o,
|
|
24
|
+
Context: () => r,
|
|
25
|
+
Control: () => m,
|
|
26
|
+
HiddenSelect: () => i,
|
|
27
|
+
Indicator: () => l,
|
|
28
|
+
Item: () => p,
|
|
29
|
+
ItemContext: () => c,
|
|
30
|
+
ItemGroup: () => S,
|
|
31
|
+
ItemGroupLabel: () => f,
|
|
32
|
+
ItemIndicator: () => n,
|
|
33
|
+
ItemText: () => I,
|
|
34
|
+
Label: () => a,
|
|
35
|
+
List: () => x,
|
|
36
|
+
Positioner: () => d,
|
|
37
|
+
Root: () => C,
|
|
38
|
+
RootProvider: () => g,
|
|
39
|
+
Trigger: () => T,
|
|
40
|
+
ValueText: () => s
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
E as select_exports
|
|
44
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createContext as e } from "../../utils/create-context.js";
|
|
2
|
-
|
|
2
|
+
var [o, r] = e({
|
|
3
3
|
name: "SelectItemContext",
|
|
4
4
|
hookName: "useSelectItemContext",
|
|
5
5
|
providerName: "<SelectItemProvider />"
|
|
6
6
|
});
|
|
7
7
|
export {
|
|
8
8
|
o as SelectItemProvider,
|
|
9
|
-
|
|
9
|
+
r as useSelectItemContext
|
|
10
10
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createContext as e } from "../../utils/create-context.js";
|
|
2
|
+
var [o, r] = e({
|
|
3
|
+
name: "SelectItemGroupPropsContext",
|
|
4
|
+
hookName: "useSelectItemGroupPropsContext",
|
|
5
|
+
providerName: "<SelectItemGroupPropsProvider />"
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
o as SelectItemGroupPropsProvider,
|
|
9
|
+
r as useSelectItemGroupPropsContext
|
|
10
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useEnvironmentContext as i } from "../../providers/environment/use-environment-context.js";
|
|
2
|
+
import { useLocaleContext as c } from "../../providers/locale/use-locale-context.js";
|
|
3
|
+
import { useFieldContext as a } from "../field/use-field-context.js";
|
|
3
4
|
import { useId as p } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { useMachine as d } from "../../../../../@zag-js/react/dist/machine.js";
|
|
6
|
+
import { normalizeProps as u } from "../../../../../@zag-js/react/dist/normalize-props.js";
|
|
7
|
+
import { machine as l } from "../../../../../@zag-js/select/dist/select.machine.js";
|
|
8
|
+
import { connect as v } from "../../../../../@zag-js/select/dist/select.connect.js";
|
|
9
|
+
var S = (r) => {
|
|
10
|
+
const t = p(), { dir: e } = c(), { getRootNode: n } = i(), o = a(), m = {
|
|
9
11
|
id: t,
|
|
10
12
|
ids: {
|
|
11
13
|
label: o == null ? void 0 : o.ids.label,
|
|
@@ -18,9 +20,9 @@ const O = (r) => {
|
|
|
18
20
|
dir: e,
|
|
19
21
|
getRootNode: n,
|
|
20
22
|
...r
|
|
21
|
-
},
|
|
22
|
-
return
|
|
23
|
+
}, s = d(l, m);
|
|
24
|
+
return v(s, u);
|
|
23
25
|
};
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
S as useSelect
|
|
26
28
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as m } from "../factory.js";
|
|
2
|
+
import { useSwitchContext as e } from "./use-switch-context.js";
|
|
2
3
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as s } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var f = p((r, o) => {
|
|
7
|
+
const t = s(e().getControlProps(), r);
|
|
8
|
+
return /* @__PURE__ */ i(m.span, {
|
|
9
|
+
...t,
|
|
10
|
+
ref: o
|
|
11
|
+
});
|
|
9
12
|
});
|
|
10
|
-
|
|
13
|
+
f.displayName = "SwitchControl";
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
f as SwitchControl
|
|
13
16
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { mergeProps as
|
|
7
|
-
|
|
8
|
-
const e =
|
|
9
|
-
return /* @__PURE__ */
|
|
1
|
+
import { ark as i } from "../factory.js";
|
|
2
|
+
import { useFieldContext as m } from "../field/use-field-context.js";
|
|
3
|
+
import { useSwitchContext as p } from "./use-switch-context.js";
|
|
4
|
+
import { forwardRef as d } from "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
import { mergeProps as s } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
7
|
+
var a = d((t, o) => {
|
|
8
|
+
const e = s(p().getHiddenInputProps(), t), r = m();
|
|
9
|
+
return /* @__PURE__ */ n(i.input, {
|
|
10
|
+
"aria-describedby": r == null ? void 0 : r.ariaDescribedby,
|
|
11
|
+
...e,
|
|
12
|
+
ref: o
|
|
13
|
+
});
|
|
10
14
|
});
|
|
11
15
|
a.displayName = "SwitchHiddenInput";
|
|
12
16
|
export {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as t } from "../factory.js";
|
|
2
|
+
import { useSwitchContext as m } from "./use-switch-context.js";
|
|
2
3
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as i } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var s = p((r, o) => {
|
|
7
|
+
const e = i(m().getLabelProps(), r);
|
|
8
|
+
return /* @__PURE__ */ a(t.span, {
|
|
9
|
+
...e,
|
|
10
|
+
ref: o
|
|
11
|
+
});
|
|
9
12
|
});
|
|
10
|
-
|
|
13
|
+
s.displayName = "SwitchLabel";
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
s as SwitchLabel
|
|
13
16
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createSplitProps as m } from "../../utils/create-split-props.js";
|
|
2
|
+
import { ark as a } from "../factory.js";
|
|
3
|
+
import { SwitchProvider as l } from "./use-switch-context.js";
|
|
4
|
+
import { forwardRef as s } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import { mergeProps as P } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
7
|
+
var v = m(), c = s((t, e) => {
|
|
8
|
+
const [{ value: r }, i] = v(t, ["value"]), p = P(r.getRootProps(), i);
|
|
9
|
+
return /* @__PURE__ */ o(l, {
|
|
10
|
+
value: r,
|
|
11
|
+
children: /* @__PURE__ */ o(a.label, {
|
|
12
|
+
...p,
|
|
13
|
+
ref: e
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
c.displayName = "SwitchRootProvider";
|
|
18
|
+
export {
|
|
19
|
+
c as SwitchRootProvider
|
|
20
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { createSplitProps as p } from "../../utils/create-split-props.js";
|
|
2
|
+
import { ark as s } from "../factory.js";
|
|
3
|
+
import { SwitchProvider as c } from "./use-switch-context.js";
|
|
4
|
+
import { useSwitch as d } from "./use-switch.js";
|
|
5
|
+
import { forwardRef as l } from "react";
|
|
1
6
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { useSwitch as p } from "./use-switch.js";
|
|
6
|
-
import { SwitchProvider as l } from "./use-switch-context.js";
|
|
7
|
-
import { mergeProps as n } from "../../../../../@zag-js/core/dist/index.js";
|
|
8
|
-
const f = s((e, t) => {
|
|
9
|
-
const [i, m] = a()(e, [
|
|
7
|
+
import { mergeProps as f } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
8
|
+
var h = p(), n = l((e, t) => {
|
|
9
|
+
const [i, m] = h(e, [
|
|
10
10
|
"checked",
|
|
11
11
|
"defaultChecked",
|
|
12
12
|
"disabled",
|
|
@@ -20,10 +20,16 @@ const f = s((e, t) => {
|
|
|
20
20
|
"readOnly",
|
|
21
21
|
"required",
|
|
22
22
|
"value"
|
|
23
|
-
]), o =
|
|
24
|
-
return /* @__PURE__ */ r(
|
|
23
|
+
]), o = d(i), a = f(o.getRootProps(), m);
|
|
24
|
+
return /* @__PURE__ */ r(c, {
|
|
25
|
+
value: o,
|
|
26
|
+
children: /* @__PURE__ */ r(s.label, {
|
|
27
|
+
...a,
|
|
28
|
+
ref: t
|
|
29
|
+
})
|
|
30
|
+
});
|
|
25
31
|
});
|
|
26
|
-
|
|
32
|
+
n.displayName = "SwitchRoot";
|
|
27
33
|
export {
|
|
28
|
-
|
|
34
|
+
n as SwitchRoot
|
|
29
35
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ark as t } from "../factory.js";
|
|
2
|
+
import { useSwitchContext as e } from "./use-switch-context.js";
|
|
2
3
|
import { forwardRef as p } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as s } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var f = p((r, o) => {
|
|
7
|
+
const m = s(e().getThumbProps(), r);
|
|
8
|
+
return /* @__PURE__ */ i(t.span, {
|
|
9
|
+
...m,
|
|
10
|
+
ref: o
|
|
11
|
+
});
|
|
9
12
|
});
|
|
10
13
|
f.displayName = "SwitchThumb";
|
|
11
14
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __exportAll as o } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { SwitchContext as t } from "./switch-context.js";
|
|
3
|
+
import { SwitchControl as r } from "./switch-control.js";
|
|
4
|
+
import { SwitchHiddenInput as i } from "./switch-hidden-input.js";
|
|
5
|
+
import { SwitchLabel as m } from "./switch-label.js";
|
|
6
|
+
import { SwitchRoot as p } from "./switch-root.js";
|
|
7
|
+
import { SwitchRootProvider as e } from "./switch-root-provider.js";
|
|
8
|
+
import { SwitchThumb as h } from "./switch-thumb.js";
|
|
9
|
+
var b = /* @__PURE__ */ o({
|
|
10
|
+
Context: () => t,
|
|
11
|
+
Control: () => r,
|
|
12
|
+
HiddenInput: () => i,
|
|
13
|
+
Label: () => m,
|
|
14
|
+
Root: () => p,
|
|
15
|
+
RootProvider: () => e,
|
|
16
|
+
Thumb: () => h
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
b as switch_exports
|
|
20
|
+
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { useEnvironmentContext as i } from "../../providers/environment/use-environment-context.js";
|
|
2
|
+
import { useLocaleContext as c } from "../../providers/locale/use-locale-context.js";
|
|
3
|
+
import { useFieldContext as a } from "../field/use-field-context.js";
|
|
4
|
+
import { useId as p } from "react";
|
|
5
|
+
import { useMachine as u } from "../../../../../@zag-js/react/dist/machine.js";
|
|
6
|
+
import { normalizeProps as d } from "../../../../../@zag-js/react/dist/normalize-props.js";
|
|
7
|
+
import { machine as h } from "../../../../../@zag-js/switch/dist/switch.machine.js";
|
|
8
|
+
import { connect as v } from "../../../../../@zag-js/switch/dist/switch.connect.js";
|
|
9
|
+
var P = (r) => {
|
|
10
|
+
const t = p(), { getRootNode: n } = i(), { dir: e } = c(), o = a(), m = {
|
|
9
11
|
id: t,
|
|
10
12
|
ids: {
|
|
11
13
|
label: o == null ? void 0 : o.ids.label,
|
|
@@ -18,9 +20,9 @@ const I = (r) => {
|
|
|
18
20
|
required: o == null ? void 0 : o.required,
|
|
19
21
|
getRootNode: n,
|
|
20
22
|
...r
|
|
21
|
-
},
|
|
22
|
-
return
|
|
23
|
+
}, s = u(h, m);
|
|
24
|
+
return v(s, d);
|
|
23
25
|
};
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
P as useSwitch
|
|
26
28
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createSplitProps as a } from "../../utils/create-split-props.js";
|
|
2
|
+
import { useRenderStrategyPropsContext as i } from "../../utils/render-strategy.js";
|
|
3
|
+
import { composeRefs as f } from "../../utils/compose-refs.js";
|
|
4
|
+
import { ark as c } from "../factory.js";
|
|
5
|
+
import { usePresence as P } from "../presence/use-presence.js";
|
|
6
|
+
import { PresenceProvider as l } from "../presence/use-presence-context.js";
|
|
7
|
+
import { useTabsContext as u } from "./use-tabs-context.js";
|
|
8
|
+
import { forwardRef as d } from "react";
|
|
9
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
10
|
+
import { mergeProps as v } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
11
|
+
var C = a(), g = d((r, m) => {
|
|
12
|
+
const [n, s] = C(r, ["value"]), o = u(), e = P({
|
|
13
|
+
...i(),
|
|
14
|
+
present: o.value === r.value,
|
|
15
|
+
immediate: !0
|
|
16
|
+
}), p = v(o.getContentProps(n), e.getPresenceProps(), s);
|
|
17
|
+
return /* @__PURE__ */ t(l, {
|
|
18
|
+
value: e,
|
|
19
|
+
children: e.unmounted ? null : /* @__PURE__ */ t(c.div, {
|
|
20
|
+
...p,
|
|
21
|
+
ref: f(e.ref, m)
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
g.displayName = "TabContent";
|
|
26
|
+
export {
|
|
27
|
+
g as TabContent
|
|
28
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ark as m } from "../factory.js";
|
|
2
|
+
import { useTabsContext as a } from "./use-tabs-context.js";
|
|
3
|
+
import { forwardRef as e } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as p } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var s = e((r, o) => {
|
|
7
|
+
const t = p(a().getIndicatorProps(), r);
|
|
8
|
+
return /* @__PURE__ */ i(m.div, {
|
|
9
|
+
...t,
|
|
10
|
+
ref: o
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
s.displayName = "TabIndicator";
|
|
14
|
+
export {
|
|
15
|
+
s as TabIndicator
|
|
16
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { mergeProps as
|
|
6
|
-
|
|
7
|
-
const t = p()
|
|
8
|
-
return /* @__PURE__ */ m
|
|
1
|
+
import { ark as m } from "../factory.js";
|
|
2
|
+
import { useTabsContext as e } from "./use-tabs-context.js";
|
|
3
|
+
import { forwardRef as s } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { mergeProps as p } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
6
|
+
var a = s((r, o) => {
|
|
7
|
+
const t = p(e().getListProps(), r);
|
|
8
|
+
return /* @__PURE__ */ i(m.div, {
|
|
9
|
+
...t,
|
|
10
|
+
ref: o
|
|
11
|
+
});
|
|
9
12
|
});
|
|
10
|
-
|
|
13
|
+
a.displayName = "TabList";
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
a as TabList
|
|
13
16
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { mergeProps as
|
|
7
|
-
|
|
8
|
-
const [
|
|
9
|
-
return /* @__PURE__ */
|
|
1
|
+
import { createSplitProps as m } from "../../utils/create-split-props.js";
|
|
2
|
+
import { ark as s } from "../factory.js";
|
|
3
|
+
import { useTabsContext as a } from "./use-tabs-context.js";
|
|
4
|
+
import { forwardRef as i } from "react";
|
|
5
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
6
|
+
import { mergeProps as f } from "../../../../../@zag-js/core/dist/merge-props.js";
|
|
7
|
+
var l = m(), P = i((r, o) => {
|
|
8
|
+
const [e, t] = l(r, ["disabled", "value"]), p = f(a().getTriggerProps(e), t);
|
|
9
|
+
return /* @__PURE__ */ g(s.button, {
|
|
10
|
+
...p,
|
|
11
|
+
ref: o
|
|
12
|
+
});
|
|
10
13
|
});
|
|
11
|
-
|
|
14
|
+
P.displayName = "TabTrigger";
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
P as TabTrigger
|
|
14
17
|
};
|