@ark-ui/react 1.3.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -0
- package/README.md +1 -0
- package/accordion/accordion-item-content.cjs +1 -2
- package/accordion/accordion-item-content.mjs +1 -2
- package/accordion/accordion-item-trigger.cjs +1 -2
- package/accordion/accordion-item-trigger.mjs +1 -2
- package/accordion/accordion-item.cjs +3 -4
- package/accordion/accordion-item.mjs +3 -4
- package/accordion/accordion-root.cjs +38 -0
- package/accordion/accordion-root.d.ts +9 -0
- package/accordion/accordion-root.mjs +34 -0
- package/accordion/accordion.cjs +11 -33
- package/accordion/accordion.d.ts +6 -9
- package/accordion/accordion.mjs +5 -35
- package/accordion/index.cjs +5 -10
- package/accordion/index.d.ts +4 -12
- package/accordion/index.mjs +7 -16
- package/accordion/use-accordion.cjs +1 -2
- package/accordion/use-accordion.mjs +1 -2
- package/avatar/avatar-root.cjs +27 -0
- package/avatar/avatar-root.d.ts +8 -0
- package/avatar/avatar-root.mjs +23 -0
- package/avatar/avatar.cjs +7 -21
- package/avatar/avatar.d.ts +4 -8
- package/avatar/avatar.mjs +3 -23
- package/avatar/index.cjs +5 -8
- package/avatar/index.d.ts +4 -10
- package/avatar/index.mjs +5 -12
- package/avatar/use-avatar.cjs +1 -2
- package/avatar/use-avatar.mjs +1 -2
- package/carousel/carousel-root.cjs +40 -0
- package/carousel/carousel-root.d.ts +9 -0
- package/carousel/carousel-root.mjs +36 -0
- package/carousel/carousel.cjs +19 -34
- package/carousel/carousel.d.ts +10 -9
- package/carousel/carousel.mjs +9 -36
- package/carousel/index.cjs +5 -14
- package/carousel/index.d.ts +4 -16
- package/carousel/index.mjs +11 -24
- package/carousel/use-carousel.cjs +1 -2
- package/carousel/use-carousel.mjs +1 -2
- package/checkbox/checkbox-root.cjs +41 -0
- package/checkbox/checkbox-root.d.ts +9 -0
- package/checkbox/checkbox-root.mjs +37 -0
- package/checkbox/checkbox.cjs +9 -35
- package/checkbox/checkbox.d.ts +5 -9
- package/checkbox/checkbox.mjs +4 -37
- package/checkbox/index.cjs +5 -9
- package/checkbox/index.d.ts +5 -12
- package/checkbox/index.mjs +6 -14
- package/checkbox/use-checkbox.cjs +1 -2
- package/checkbox/use-checkbox.mjs +1 -2
- package/color-picker/color-picker-content.cjs +1 -2
- package/color-picker/color-picker-content.mjs +1 -2
- package/color-picker/color-picker-positioner.cjs +1 -2
- package/color-picker/color-picker-positioner.mjs +1 -2
- package/color-picker/color-picker-root.cjs +55 -0
- package/color-picker/color-picker-root.d.ts +10 -0
- package/color-picker/color-picker-root.mjs +51 -0
- package/color-picker/color-picker.cjs +47 -50
- package/color-picker/color-picker.d.ts +24 -10
- package/color-picker/color-picker.mjs +23 -52
- package/color-picker/index.cjs +5 -28
- package/color-picker/index.d.ts +4 -30
- package/color-picker/index.mjs +25 -52
- package/color-picker/use-color-picker.cjs +1 -2
- package/color-picker/use-color-picker.mjs +1 -2
- package/combobox/combobox-content.cjs +1 -2
- package/combobox/combobox-content.mjs +1 -2
- package/combobox/combobox-positioner.cjs +1 -2
- package/combobox/combobox-positioner.mjs +1 -2
- package/combobox/combobox-root.cjs +70 -0
- package/combobox/combobox-root.d.ts +13 -0
- package/combobox/combobox-root.mjs +66 -0
- package/combobox/combobox.cjs +27 -65
- package/combobox/combobox.d.ts +14 -13
- package/combobox/combobox.mjs +13 -67
- package/combobox/index.cjs +5 -18
- package/combobox/index.d.ts +4 -20
- package/combobox/index.mjs +15 -32
- package/combobox/use-combobox.cjs +1 -2
- package/combobox/use-combobox.mjs +1 -2
- package/date-picker/date-picker-content.cjs +1 -2
- package/date-picker/date-picker-content.mjs +1 -2
- package/date-picker/date-picker-positioner.cjs +1 -2
- package/date-picker/date-picker-positioner.mjs +1 -2
- package/date-picker/date-picker-root.cjs +65 -0
- package/date-picker/date-picker-root.d.ts +10 -0
- package/date-picker/date-picker-root.mjs +61 -0
- package/date-picker/date-picker.cjs +47 -60
- package/date-picker/date-picker.d.ts +24 -10
- package/date-picker/date-picker.mjs +23 -62
- package/date-picker/index.cjs +5 -28
- package/date-picker/index.d.ts +4 -30
- package/date-picker/index.mjs +25 -52
- package/date-picker/use-date-picker.cjs +1 -2
- package/date-picker/use-date-picker.mjs +1 -2
- package/dialog/dialog-backdrop.cjs +1 -2
- package/dialog/dialog-backdrop.mjs +1 -2
- package/dialog/dialog-content.cjs +1 -2
- package/dialog/dialog-content.mjs +1 -2
- package/dialog/dialog-positioner.cjs +1 -2
- package/dialog/dialog-positioner.mjs +1 -2
- package/dialog/dialog-root.cjs +25 -0
- package/dialog/dialog-root.d.ts +8 -0
- package/dialog/dialog-root.mjs +21 -0
- package/dialog/dialog-trigger.cjs +1 -2
- package/dialog/dialog-trigger.mjs +1 -2
- package/dialog/dialog.cjs +17 -20
- package/dialog/dialog.d.ts +9 -8
- package/dialog/dialog.mjs +8 -22
- package/dialog/index.cjs +5 -13
- package/dialog/index.d.ts +4 -16
- package/dialog/index.mjs +10 -22
- package/dialog/use-dialog.cjs +1 -2
- package/dialog/use-dialog.mjs +1 -2
- package/editable/editable-root.cjs +55 -0
- package/editable/editable-root.d.ts +9 -0
- package/editable/editable-root.mjs +51 -0
- package/editable/editable.cjs +19 -49
- package/editable/editable.d.ts +10 -9
- package/editable/editable.mjs +9 -51
- package/editable/index.cjs +5 -14
- package/editable/index.d.ts +4 -16
- package/editable/index.mjs +11 -24
- package/editable/use-editable.cjs +1 -2
- package/editable/use-editable.mjs +1 -2
- package/environment/index.cjs +2 -5
- package/environment/index.d.ts +1 -5
- package/environment/index.mjs +1 -8
- package/file-upload/file-upload-root.cjs +46 -0
- package/file-upload/file-upload-root.d.ts +9 -0
- package/file-upload/file-upload-root.mjs +42 -0
- package/file-upload/file-upload.cjs +23 -40
- package/file-upload/file-upload.d.ts +12 -9
- package/file-upload/file-upload.mjs +11 -42
- package/file-upload/index.cjs +6 -16
- package/file-upload/index.d.ts +5 -19
- package/file-upload/index.mjs +13 -28
- package/file-upload/use-file-upload.cjs +1 -2
- package/file-upload/use-file-upload.mjs +1 -2
- package/hover-card/hover-card-content.cjs +1 -2
- package/hover-card/hover-card-content.mjs +1 -2
- package/hover-card/hover-card-positioner.cjs +1 -2
- package/hover-card/hover-card-positioner.mjs +1 -2
- package/hover-card/hover-card-root.cjs +24 -0
- package/hover-card/hover-card-root.d.ts +8 -0
- package/hover-card/hover-card-root.mjs +20 -0
- package/hover-card/hover-card.cjs +13 -19
- package/hover-card/hover-card.d.ts +7 -8
- package/hover-card/hover-card.mjs +6 -21
- package/hover-card/index.cjs +5 -11
- package/hover-card/index.d.ts +5 -15
- package/hover-card/index.mjs +8 -18
- package/hover-card/use-hover-card.cjs +1 -2
- package/hover-card/use-hover-card.mjs +1 -2
- package/index.cjs +238 -148
- package/index.d.ts +1 -0
- package/index.mjs +148 -73
- package/menu/index.cjs +5 -18
- package/menu/index.d.ts +4 -21
- package/menu/index.mjs +15 -32
- package/menu/menu-content.cjs +1 -2
- package/menu/menu-content.mjs +1 -2
- package/menu/menu-positioner.cjs +1 -2
- package/menu/menu-positioner.mjs +1 -2
- package/menu/menu-root.cjs +58 -0
- package/menu/menu-root.d.ts +8 -0
- package/menu/menu-root.mjs +54 -0
- package/menu/menu-trigger.cjs +1 -2
- package/menu/menu-trigger.mjs +1 -2
- package/menu/menu.cjs +27 -53
- package/menu/menu.d.ts +14 -8
- package/menu/menu.mjs +13 -55
- package/menu/use-menu.cjs +1 -2
- package/menu/use-menu.mjs +1 -2
- package/number-input/index.cjs +5 -12
- package/number-input/index.d.ts +4 -14
- package/number-input/index.mjs +9 -20
- package/number-input/number-input-root.cjs +52 -0
- package/number-input/number-input-root.d.ts +9 -0
- package/number-input/number-input-root.mjs +48 -0
- package/number-input/number-input.cjs +15 -46
- package/number-input/number-input.d.ts +8 -9
- package/number-input/number-input.mjs +7 -48
- package/number-input/use-number-input.cjs +1 -2
- package/number-input/use-number-input.mjs +1 -2
- package/package.json +60 -54
- package/pagination/index.cjs +5 -10
- package/pagination/index.d.ts +4 -12
- package/pagination/index.mjs +7 -16
- package/pagination/pagination-root.cjs +40 -0
- package/pagination/pagination-root.d.ts +9 -0
- package/pagination/pagination-root.mjs +36 -0
- package/pagination/pagination.cjs +11 -34
- package/pagination/pagination.d.ts +6 -9
- package/pagination/pagination.mjs +5 -36
- package/pagination/use-pagination.cjs +1 -2
- package/pagination/use-pagination.mjs +1 -2
- package/pin-input/index.cjs +5 -9
- package/pin-input/index.d.ts +4 -11
- package/pin-input/index.mjs +6 -14
- package/pin-input/pin-input-root.cjs +48 -0
- package/pin-input/pin-input-root.d.ts +8 -0
- package/pin-input/pin-input-root.mjs +44 -0
- package/pin-input/pin-input.cjs +9 -42
- package/pin-input/pin-input.d.ts +5 -8
- package/pin-input/pin-input.mjs +4 -44
- package/pin-input/use-pin-input.cjs +1 -2
- package/pin-input/use-pin-input.mjs +1 -2
- package/popover/index.cjs +5 -16
- package/popover/index.d.ts +4 -19
- package/popover/index.mjs +13 -28
- package/popover/popover-content.cjs +1 -2
- package/popover/popover-content.mjs +1 -2
- package/popover/popover-positioner.cjs +1 -2
- package/popover/popover-positioner.mjs +1 -2
- package/popover/popover-root.cjs +24 -0
- package/popover/popover-root.d.ts +8 -0
- package/popover/popover-root.mjs +20 -0
- package/popover/popover-trigger.cjs +1 -2
- package/popover/popover-trigger.mjs +1 -2
- package/popover/popover.cjs +23 -19
- package/popover/popover.d.ts +12 -8
- package/popover/popover.mjs +11 -21
- package/popover/use-popover.cjs +1 -2
- package/popover/use-popover.mjs +1 -2
- package/portal.cjs +1 -2
- package/portal.mjs +1 -2
- package/presence/index.cjs +2 -5
- package/presence/index.d.ts +1 -6
- package/presence/index.mjs +1 -8
- package/progress/index.cjs +7 -16
- package/progress/index.d.ts +5 -27
- package/progress/index.mjs +11 -24
- package/progress/progress-root.cjs +34 -0
- package/progress/progress-root.d.ts +9 -0
- package/progress/progress-root.mjs +30 -0
- package/progress/progress-view.cjs +20 -0
- package/progress/progress-view.d.ts +8 -0
- package/progress/progress-view.mjs +16 -0
- package/progress/progress.cjs +19 -28
- package/progress/progress.d.ts +10 -9
- package/progress/progress.mjs +9 -30
- package/progress/use-progress.cjs +0 -1
- package/progress/use-progress.mjs +0 -1
- package/radio-group/index.cjs +6 -11
- package/radio-group/index.d.ts +5 -14
- package/radio-group/index.mjs +8 -18
- package/radio-group/radio-group-root.cjs +34 -0
- package/radio-group/radio-group-root.d.ts +8 -0
- package/radio-group/radio-group-root.mjs +30 -0
- package/radio-group/radio-group.cjs +13 -28
- package/radio-group/radio-group.d.ts +7 -8
- package/radio-group/radio-group.mjs +6 -30
- package/radio-group/use-radio-group.cjs +1 -2
- package/radio-group/use-radio-group.mjs +1 -2
- package/rating-group/index.cjs +5 -9
- package/rating-group/index.d.ts +4 -11
- package/rating-group/index.mjs +6 -14
- package/rating-group/rating-group-root.cjs +39 -0
- package/rating-group/rating-group-root.d.ts +8 -0
- package/rating-group/rating-group-root.mjs +35 -0
- package/rating-group/rating-group.cjs +9 -33
- package/rating-group/rating-group.d.ts +5 -8
- package/rating-group/rating-group.mjs +4 -35
- package/rating-group/use-rating-group.cjs +1 -2
- package/rating-group/use-rating-group.mjs +1 -2
- package/segment-group/index.cjs +5 -11
- package/segment-group/index.d.ts +4 -13
- package/segment-group/index.mjs +8 -18
- package/segment-group/segment-group-root.cjs +39 -0
- package/segment-group/segment-group-root.d.ts +8 -0
- package/segment-group/segment-group-root.mjs +35 -0
- package/segment-group/segment-group.cjs +13 -33
- package/segment-group/segment-group.d.ts +7 -8
- package/segment-group/segment-group.mjs +6 -35
- package/segment-group/use-segment-group.cjs +1 -2
- package/segment-group/use-segment-group.mjs +1 -2
- package/select/index.cjs +5 -19
- package/select/index.d.ts +4 -21
- package/select/index.mjs +16 -34
- package/select/select-content.cjs +1 -2
- package/select/select-content.mjs +1 -2
- package/select/select-positioner.cjs +1 -2
- package/select/select-positioner.mjs +1 -2
- package/select/select-root.cjs +61 -0
- package/select/select-root.d.ts +13 -0
- package/select/select-root.mjs +57 -0
- package/select/select.cjs +29 -56
- package/select/select.d.ts +15 -13
- package/select/select.mjs +14 -58
- package/select/use-select.cjs +1 -2
- package/select/use-select.mjs +1 -2
- package/slider/index.cjs +5 -14
- package/slider/index.d.ts +4 -16
- package/slider/index.mjs +11 -24
- package/slider/slider-root.cjs +51 -0
- package/slider/slider-root.d.ts +9 -0
- package/slider/slider-root.mjs +47 -0
- package/slider/slider.cjs +19 -45
- package/slider/slider.d.ts +10 -9
- package/slider/slider.mjs +9 -47
- package/slider/use-slider.cjs +1 -2
- package/slider/use-slider.mjs +1 -2
- package/splitter/index.cjs +5 -8
- package/splitter/index.d.ts +4 -10
- package/splitter/index.mjs +5 -12
- package/splitter/splitter-root.cjs +38 -0
- package/splitter/splitter-root.d.ts +9 -0
- package/splitter/splitter-root.mjs +34 -0
- package/splitter/splitter.cjs +7 -32
- package/splitter/splitter.d.ts +4 -9
- package/splitter/splitter.mjs +3 -34
- package/splitter/use-splitter.cjs +1 -2
- package/splitter/use-splitter.mjs +1 -2
- package/switch/index.cjs +5 -9
- package/switch/index.d.ts +4 -11
- package/switch/index.mjs +6 -14
- package/switch/switch-root.cjs +39 -0
- package/switch/switch-root.d.ts +9 -0
- package/switch/switch-root.mjs +35 -0
- package/switch/switch.cjs +9 -33
- package/switch/switch.d.ts +5 -9
- package/switch/switch.mjs +4 -35
- package/switch/use-switch.cjs +1 -2
- package/switch/use-switch.mjs +1 -2
- package/tabs/index.cjs +5 -10
- package/tabs/index.d.ts +4 -12
- package/tabs/index.mjs +7 -16
- package/tabs/tab-content.cjs +2 -3
- package/tabs/tab-content.mjs +2 -3
- package/tabs/tabs-root.cjs +38 -0
- package/tabs/tabs-root.d.ts +9 -0
- package/tabs/tabs-root.mjs +34 -0
- package/tabs/tabs.cjs +11 -33
- package/tabs/tabs.d.ts +6 -9
- package/tabs/tabs.mjs +5 -35
- package/tabs/use-tabs.cjs +1 -2
- package/tabs/use-tabs.mjs +1 -2
- package/tags-input/index.cjs +7 -14
- package/tags-input/index.d.ts +5 -16
- package/tags-input/index.mjs +12 -24
- package/tags-input/tags-input-item-preview.cjs +23 -0
- package/tags-input/tags-input-item-preview.d.ts +6 -0
- package/tags-input/tags-input-item-preview.mjs +19 -0
- package/tags-input/tags-input-root.cjs +59 -0
- package/tags-input/tags-input-root.d.ts +9 -0
- package/tags-input/tags-input-root.mjs +55 -0
- package/tags-input/tags-input.cjs +21 -53
- package/tags-input/tags-input.d.ts +11 -9
- package/tags-input/tags-input.mjs +10 -55
- package/tags-input/use-tags-input.cjs +1 -2
- package/tags-input/use-tags-input.mjs +1 -2
- package/toast/create-toaster.cjs +1 -2
- package/toast/create-toaster.mjs +1 -2
- package/toast/index.cjs +5 -10
- package/toast/index.d.ts +4 -12
- package/toast/index.mjs +7 -16
- package/toast/toast-root.cjs +19 -0
- package/toast/toast-root.d.ts +6 -0
- package/toast/toast-root.mjs +15 -0
- package/toast/toast.cjs +11 -13
- package/toast/toast.d.ts +6 -6
- package/toast/toast.mjs +5 -15
- package/toggle-group/index.cjs +5 -7
- package/toggle-group/index.d.ts +4 -9
- package/toggle-group/index.mjs +4 -10
- package/toggle-group/toggle-group-root.cjs +35 -0
- package/toggle-group/toggle-group-root.d.ts +8 -0
- package/toggle-group/toggle-group-root.mjs +31 -0
- package/toggle-group/toggle-group.cjs +5 -29
- package/toggle-group/toggle-group.d.ts +3 -8
- package/toggle-group/toggle-group.mjs +2 -31
- package/toggle-group/use-toggle-group.cjs +1 -2
- package/toggle-group/use-toggle-group.mjs +1 -2
- package/tooltip/index.cjs +5 -11
- package/tooltip/index.d.ts +4 -14
- package/tooltip/index.mjs +8 -18
- package/tooltip/tooltip-content.cjs +1 -2
- package/tooltip/tooltip-content.mjs +1 -2
- package/tooltip/tooltip-positioner.cjs +1 -2
- package/tooltip/tooltip-positioner.mjs +1 -2
- package/tooltip/tooltip-root.cjs +24 -0
- package/tooltip/tooltip-root.d.ts +8 -0
- package/tooltip/tooltip-root.mjs +20 -0
- package/tooltip/tooltip.cjs +13 -19
- package/tooltip/tooltip.d.ts +7 -8
- package/tooltip/tooltip.mjs +6 -21
- package/tooltip/use-tooltip.cjs +1 -2
- package/tooltip/use-tooltip.mjs +1 -2
- package/tree-view/index.cjs +33 -0
- package/tree-view/index.d.ts +16 -0
- package/tree-view/index.mjs +14 -0
- package/tree-view/tree-view-branch-content.cjs +27 -0
- package/tree-view/tree-view-branch-content.d.ts +8 -0
- package/tree-view/tree-view-branch-content.mjs +23 -0
- package/tree-view/tree-view-branch-control.cjs +27 -0
- package/tree-view/tree-view-branch-control.d.ts +8 -0
- package/tree-view/tree-view-branch-control.mjs +23 -0
- package/tree-view/tree-view-branch-indicator.cjs +32 -0
- package/tree-view/tree-view-branch-indicator.d.ts +8 -0
- package/tree-view/tree-view-branch-indicator.mjs +28 -0
- package/tree-view/tree-view-branch-text.cjs +27 -0
- package/tree-view/tree-view-branch-text.d.ts +8 -0
- package/tree-view/tree-view-branch-text.mjs +23 -0
- package/tree-view/tree-view-branch-trigger.cjs +27 -0
- package/tree-view/tree-view-branch-trigger.d.ts +8 -0
- package/tree-view/tree-view-branch-trigger.mjs +23 -0
- package/tree-view/tree-view-branch.cjs +28 -0
- package/tree-view/tree-view-branch.d.ts +9 -0
- package/tree-view/tree-view-branch.mjs +24 -0
- package/tree-view/tree-view-context.cjs +15 -0
- package/tree-view/tree-view-context.d.ts +22 -0
- package/tree-view/tree-view-context.mjs +10 -0
- package/tree-view/tree-view-item-text.cjs +30 -0
- package/tree-view/tree-view-item-text.d.ts +8 -0
- package/tree-view/tree-view-item-text.mjs +26 -0
- package/tree-view/tree-view-item.cjs +28 -0
- package/tree-view/tree-view-item.d.ts +9 -0
- package/tree-view/tree-view-item.mjs +24 -0
- package/tree-view/tree-view-label.cjs +19 -0
- package/tree-view/tree-view-label.d.ts +6 -0
- package/tree-view/tree-view-label.mjs +15 -0
- package/tree-view/tree-view-root.cjs +40 -0
- package/tree-view/tree-view-root.d.ts +9 -0
- package/tree-view/tree-view-root.mjs +36 -0
- package/tree-view/tree-view-tree.cjs +19 -0
- package/tree-view/tree-view-tree.d.ts +6 -0
- package/tree-view/tree-view-tree.mjs +15 -0
- package/tree-view/tree-view.cjs +29 -0
- package/tree-view/tree-view.d.ts +12 -0
- package/tree-view/tree-view.mjs +11 -0
- package/tree-view/use-tree-view.cjs +49 -0
- package/tree-view/use-tree-view.d.ts +12 -0
- package/tree-view/use-tree-view.mjs +26 -0
- package/accordion/accordion.test.d.ts +0 -1
- package/accordion/stories/accordion.stories.d.ts +0 -13
- package/avatar/avatar.test.d.ts +0 -1
- package/avatar/stories/avatar.stories.d.ts +0 -8
- package/carousel/carousel.test.d.ts +0 -1
- package/carousel/stories/carousel.stories.d.ts +0 -9
- package/checkbox/checkbox.test.d.ts +0 -1
- package/checkbox/stories/checkbox.stories.d.ts +0 -10
- package/color-picker/color-picker.test.d.ts +0 -1
- package/color-picker/stories/color-picker.stories.d.ts +0 -8
- package/combobox/combobox.test.d.ts +0 -1
- package/combobox/stories/combobox.stories.d.ts +0 -8
- package/date-picker/date-picker.test.d.ts +0 -1
- package/date-picker/stories/date-picker.stories.d.ts +0 -8
- package/date-picker/stories/date-range-picker.stories.d.ts +0 -8
- package/dialog/dialog.test.d.ts +0 -1
- package/dialog/stories/dialog.stories.d.ts +0 -10
- package/editable/editable.test.d.ts +0 -1
- package/editable/stories/editable.stories.d.ts +0 -8
- package/environment/environment.test.d.ts +0 -1
- package/environment/stories/environment.stories.d.ts +0 -7
- package/factory.test.d.ts +0 -1
- package/file-upload/file-upload.test.d.ts +0 -1
- package/file-upload/stories/file-upload.stories.d.ts +0 -7
- package/hover-card/hover-card.test.d.ts +0 -1
- package/hover-card/stories/hover-card.stories.d.ts +0 -10
- package/menu/menu.test.d.ts +0 -1
- package/menu/stories/context-menu.stories.d.ts +0 -7
- package/menu/stories/menu.stories.d.ts +0 -11
- package/menu/stories/nested-menu.stories.d.ts +0 -8
- package/number-input/number-input.test.d.ts +0 -1
- package/number-input/stories/number-input.stories.d.ts +0 -15
- package/pagination/pagination.test.d.ts +0 -1
- package/pagination/stories/pagination.stories.d.ts +0 -9
- package/pin-input/pin-input.test.d.ts +0 -1
- package/pin-input/stories/pin-input.stories.d.ts +0 -12
- package/popover/popover.test.d.ts +0 -1
- package/popover/stories/popover.stories.d.ts +0 -15
- package/presence/presence.test.d.ts +0 -1
- package/presence/stories/presence.stories.d.ts +0 -10
- package/progress/progress-indicator.cjs +0 -22
- package/progress/progress-indicator.d.ts +0 -8
- package/progress/progress-indicator.mjs +0 -18
- package/progress/progress.test.d.ts +0 -1
- package/progress/stories/circular-progress.stories.d.ts +0 -11
- package/progress/stories/linear-progress.stories.d.ts +0 -12
- package/radio-group/radio-group.test.d.ts +0 -1
- package/radio-group/stories/radio-group.stories.d.ts +0 -10
- package/rating-group/rating-group.test.d.ts +0 -1
- package/rating-group/stories/rating-group.stories.d.ts +0 -13
- package/segment-group/segment-group.test.d.ts +0 -1
- package/segment-group/stories/segment-group.stories.d.ts +0 -10
- package/select/select.test.d.ts +0 -1
- package/select/stories/select.stories.d.ts +0 -11
- package/setup-test.d.ts +0 -3
- package/slider/slider.test.d.ts +0 -1
- package/slider/stories/range-slider.stories.d.ts +0 -14
- package/slider/stories/slider.stories.d.ts +0 -14
- package/splitter/splitter.test.d.ts +0 -1
- package/splitter/stories/splitter.stories.d.ts +0 -10
- package/switch/stories/switch.stories.d.ts +0 -11
- package/switch/switch.test.d.ts +0 -1
- package/tabs/stories/tabs.stories.d.ts +0 -14
- package/tabs/tabs.test.d.ts +0 -1
- package/tags-input/stories/tags-input.stories.d.ts +0 -14
- package/tags-input/tags-input.test.d.ts +0 -1
- package/toast/stories/toast.stories.d.ts +0 -9
- package/toast/toast.test.d.ts +0 -2
- package/toggle-group/stories/toggle-group.stories.d.ts +0 -9
- package/toggle-group/toggle-group.test.d.ts +0 -1
- package/tooltip/stories/tooltip.stories.d.ts +0 -12
- package/tooltip/tooltip.test.d.ts +0 -1
package/color-picker/index.mjs
CHANGED
|
@@ -1,55 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { ColorPickerArea } from './color-picker-area.mjs';
|
|
4
|
-
import { ColorPickerAreaBackground } from './color-picker-area-background.mjs';
|
|
1
|
+
export { ColorPickerArea } from './color-picker-area.mjs';
|
|
2
|
+
export { ColorPickerAreaBackground } from './color-picker-area-background.mjs';
|
|
5
3
|
export { useColorPickerAreaContext } from './color-picker-area-context.mjs';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export { ColorPickerAreaThumb } from './color-picker-area-thumb.mjs';
|
|
5
|
+
export { ColorPickerChannelInput } from './color-picker-channel-input.mjs';
|
|
6
|
+
export { ColorPickerChannelSlider } from './color-picker-channel-slider.mjs';
|
|
9
7
|
export { useColorPickerChannelSliderContext } from './color-picker-channel-slider-context.mjs';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
export { ColorPickerChannelSliderThumb } from './color-picker-channel-slider-thumb.mjs';
|
|
9
|
+
export { ColorPickerChannelSliderTrack } from './color-picker-channel-slider-track.mjs';
|
|
10
|
+
export { ColorPickerContent } from './color-picker-content.mjs';
|
|
13
11
|
export { useColorPickerContext } from './color-picker-context.mjs';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Area: ColorPickerArea,
|
|
32
|
-
AreaBackground: ColorPickerAreaBackground,
|
|
33
|
-
AreaThumb: ColorPickerAreaThumb,
|
|
34
|
-
ChannelInput: ColorPickerChannelInput,
|
|
35
|
-
ChannelSlider: ColorPickerChannelSlider,
|
|
36
|
-
ChannelSliderThumb: ColorPickerChannelSliderThumb,
|
|
37
|
-
ChannelSliderTrack: ColorPickerChannelSliderTrack,
|
|
38
|
-
Content: ColorPickerContent,
|
|
39
|
-
Control: ColorPickerControl,
|
|
40
|
-
EyeDropperTrigger: ColorPickerEyeDropperTrigger,
|
|
41
|
-
FormatTrigger: ColorPickerFormatTrigger,
|
|
42
|
-
FormatSelect: ColorPickerFormatSelect,
|
|
43
|
-
Label: ColorPickerLabel,
|
|
44
|
-
Positioner: ColorPickerPositioner,
|
|
45
|
-
Swatch: ColorPickerSwatch,
|
|
46
|
-
SwatchGroup: ColorPickerSwatchGroup,
|
|
47
|
-
SwatchIndicator: ColorPickerSwatchIndicator,
|
|
48
|
-
SwatchTrigger: ColorPickerSwatchTrigger,
|
|
49
|
-
TransparencyGrid: ColorPickerTransparencyGrid,
|
|
50
|
-
Trigger: ColorPickerTrigger,
|
|
51
|
-
ValueText: ColorPickerValueText,
|
|
52
|
-
View: ColorPickerView
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { ColorPicker, ColorPickerArea, ColorPickerAreaBackground, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSlider, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerControl, ColorPickerEyeDropperTrigger, ColorPickerFormatSelect, ColorPickerFormatTrigger, ColorPickerLabel, ColorPickerPositioner, ColorPickerSwatch, ColorPickerSwatchGroup, ColorPickerSwatchIndicator, ColorPickerSwatchTrigger, ColorPickerTransparencyGrid, ColorPickerTrigger, ColorPickerValueText, ColorPickerView };
|
|
12
|
+
export { ColorPickerControl } from './color-picker-control.mjs';
|
|
13
|
+
export { ColorPickerEyeDropperTrigger } from './color-picker-eye-dropper-trigger.mjs';
|
|
14
|
+
export { ColorPickerFormatSelect } from './color-picker-format-select.mjs';
|
|
15
|
+
export { ColorPickerFormatTrigger } from './color-picker-format-trigger.mjs';
|
|
16
|
+
export { ColorPickerLabel } from './color-picker-label.mjs';
|
|
17
|
+
export { ColorPickerPositioner } from './color-picker-positioner.mjs';
|
|
18
|
+
export { ColorPickerRoot } from './color-picker-root.mjs';
|
|
19
|
+
export { ColorPickerSwatch } from './color-picker-swatch.mjs';
|
|
20
|
+
export { ColorPickerSwatchGroup } from './color-picker-swatch-group.mjs';
|
|
21
|
+
export { ColorPickerSwatchIndicator } from './color-picker-swatch-indicator.mjs';
|
|
22
|
+
export { ColorPickerSwatchTrigger } from './color-picker-swatch-trigger.mjs';
|
|
23
|
+
export { ColorPickerTransparencyGrid } from './color-picker-transparency-grid.mjs';
|
|
24
|
+
export { ColorPickerTrigger } from './color-picker-trigger.mjs';
|
|
25
|
+
export { ColorPickerValueText } from './color-picker-value-text.mjs';
|
|
26
|
+
export { ColorPickerView } from './color-picker-view.mjs';
|
|
27
|
+
import * as colorPicker from './color-picker.mjs';
|
|
28
|
+
export { colorPicker as ColorPicker };
|
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const colorPicker = require('@zag-js/color-picker');
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
|
-
require('../environment/index.cjs');
|
|
10
|
-
const useEvent = require('../use-event.cjs');
|
|
11
9
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
10
|
+
const useEvent = require('../use-event.cjs');
|
|
12
11
|
|
|
13
12
|
function _interopNamespaceDefault(e) {
|
|
14
13
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import * as colorPicker from '@zag-js/color-picker';
|
|
3
3
|
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
4
4
|
import { useId } from 'react';
|
|
5
|
-
import '../environment/index.mjs';
|
|
6
|
-
import { useEvent } from '../use-event.mjs';
|
|
7
5
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
6
|
+
import { useEvent } from '../use-event.mjs';
|
|
8
7
|
|
|
9
8
|
const useColorPicker = (props) => {
|
|
10
9
|
const initialContext = {
|
|
@@ -7,9 +7,8 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
|
-
require('../presence/index.cjs');
|
|
11
|
-
const comboboxContext = require('./combobox-context.cjs');
|
|
12
10
|
const presenceContext = require('../presence/presence-context.cjs');
|
|
11
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
13
12
|
|
|
14
13
|
const ComboboxContent = react.forwardRef((props, ref) => {
|
|
15
14
|
const api = comboboxContext.useComboboxContext();
|
|
@@ -3,9 +3,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
6
|
-
import '../presence/index.mjs';
|
|
7
|
-
import { useComboboxContext } from './combobox-context.mjs';
|
|
8
6
|
import { usePresenceContext } from '../presence/presence-context.mjs';
|
|
7
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
9
8
|
|
|
10
9
|
const ComboboxContent = forwardRef((props, ref) => {
|
|
11
10
|
const api = useComboboxContext();
|
|
@@ -7,9 +7,8 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
|
-
require('../presence/index.cjs');
|
|
11
|
-
const comboboxContext = require('./combobox-context.cjs');
|
|
12
10
|
const presenceContext = require('../presence/presence-context.cjs');
|
|
11
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
13
12
|
|
|
14
13
|
const ComboboxPositioner = react.forwardRef(
|
|
15
14
|
(props, ref) => {
|
|
@@ -3,9 +3,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
6
|
-
import '../presence/index.mjs';
|
|
7
|
-
import { useComboboxContext } from './combobox-context.mjs';
|
|
8
6
|
import { usePresenceContext } from '../presence/presence-context.mjs';
|
|
7
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
9
8
|
|
|
10
9
|
const ComboboxPositioner = forwardRef(
|
|
11
10
|
(props, ref) => {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const presenceContext = require('../presence/presence-context.cjs');
|
|
12
|
+
const splitPresenceProps = require('../presence/split-presence-props.cjs');
|
|
13
|
+
const usePresence = require('../presence/use-presence.cjs');
|
|
14
|
+
const runIfFn = require('../run-if-fn.cjs');
|
|
15
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
16
|
+
const useCombobox = require('./use-combobox.cjs');
|
|
17
|
+
|
|
18
|
+
const ComboboxImpl = (props, ref) => {
|
|
19
|
+
const [presenceProps, comboboxProps] = splitPresenceProps.splitPresenceProps(props);
|
|
20
|
+
const [useComboboxProps, { children, ...localProps }] = createSplitProps.createSplitProps()(
|
|
21
|
+
comboboxProps,
|
|
22
|
+
[
|
|
23
|
+
"allowCustomValue",
|
|
24
|
+
"autoFocus",
|
|
25
|
+
"closeOnSelect",
|
|
26
|
+
"defaultValue",
|
|
27
|
+
"dir",
|
|
28
|
+
"disabled",
|
|
29
|
+
"form",
|
|
30
|
+
"getRootNode",
|
|
31
|
+
"highlightedValue",
|
|
32
|
+
"id",
|
|
33
|
+
"ids",
|
|
34
|
+
"inputBehavior",
|
|
35
|
+
"inputValue",
|
|
36
|
+
"invalid",
|
|
37
|
+
"isItemDisabled",
|
|
38
|
+
"items",
|
|
39
|
+
"itemToString",
|
|
40
|
+
"itemToValue",
|
|
41
|
+
"loop",
|
|
42
|
+
"multiple",
|
|
43
|
+
"name",
|
|
44
|
+
"onFocusOutside",
|
|
45
|
+
"onHighlightChange",
|
|
46
|
+
"onInputValueChange",
|
|
47
|
+
"onInteractOutside",
|
|
48
|
+
"onOpenChange",
|
|
49
|
+
"onOpenChange",
|
|
50
|
+
"onPointerDownOutside",
|
|
51
|
+
"onValueChange",
|
|
52
|
+
"openOnClick",
|
|
53
|
+
"placeholder",
|
|
54
|
+
"positioning",
|
|
55
|
+
"readOnly",
|
|
56
|
+
"selectionBehavior",
|
|
57
|
+
"selectOnBlur",
|
|
58
|
+
"translations",
|
|
59
|
+
"value"
|
|
60
|
+
]
|
|
61
|
+
);
|
|
62
|
+
const api = useCombobox.useCombobox(useComboboxProps);
|
|
63
|
+
const presenceApi = usePresence.usePresence(react$1.mergeProps({ present: api.isOpen }, presenceProps));
|
|
64
|
+
const view = runIfFn.runIfFn(children, api);
|
|
65
|
+
const mergedProps = react$1.mergeProps(api.rootProps, localProps);
|
|
66
|
+
return /* @__PURE__ */ jsxRuntime.jsx(comboboxContext.ComboboxProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(presenceContext.PresenceProvider, { value: presenceApi, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) }) });
|
|
67
|
+
};
|
|
68
|
+
const ComboboxRoot = react.forwardRef(ComboboxImpl);
|
|
69
|
+
|
|
70
|
+
exports.ComboboxRoot = ComboboxRoot;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from 'react';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
|
+
import { type UsePresenceProps } from '../presence';
|
|
4
|
+
import { type Assign, type CollectionItem } from '../types';
|
|
5
|
+
import { type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
6
|
+
export interface ComboboxRootProps<T extends CollectionItem> extends Assign<Assign<HTMLArkProps<'div'>, {
|
|
7
|
+
children?: ReactNode | ((api: UseComboboxReturn<T>) => ReactNode);
|
|
8
|
+
}>, UseComboboxProps<T>>, UsePresenceProps {
|
|
9
|
+
}
|
|
10
|
+
export interface ComboboxComponent {
|
|
11
|
+
<T extends CollectionItem>(props: ComboboxRootProps<T> & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export declare const ComboboxRoot: ComboboxComponent;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
6
|
+
import { ark } from '../factory.mjs';
|
|
7
|
+
import { PresenceProvider } from '../presence/presence-context.mjs';
|
|
8
|
+
import { splitPresenceProps } from '../presence/split-presence-props.mjs';
|
|
9
|
+
import { usePresence } from '../presence/use-presence.mjs';
|
|
10
|
+
import { runIfFn } from '../run-if-fn.mjs';
|
|
11
|
+
import { ComboboxProvider } from './combobox-context.mjs';
|
|
12
|
+
import { useCombobox } from './use-combobox.mjs';
|
|
13
|
+
|
|
14
|
+
const ComboboxImpl = (props, ref) => {
|
|
15
|
+
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
16
|
+
const [useComboboxProps, { children, ...localProps }] = createSplitProps()(
|
|
17
|
+
comboboxProps,
|
|
18
|
+
[
|
|
19
|
+
"allowCustomValue",
|
|
20
|
+
"autoFocus",
|
|
21
|
+
"closeOnSelect",
|
|
22
|
+
"defaultValue",
|
|
23
|
+
"dir",
|
|
24
|
+
"disabled",
|
|
25
|
+
"form",
|
|
26
|
+
"getRootNode",
|
|
27
|
+
"highlightedValue",
|
|
28
|
+
"id",
|
|
29
|
+
"ids",
|
|
30
|
+
"inputBehavior",
|
|
31
|
+
"inputValue",
|
|
32
|
+
"invalid",
|
|
33
|
+
"isItemDisabled",
|
|
34
|
+
"items",
|
|
35
|
+
"itemToString",
|
|
36
|
+
"itemToValue",
|
|
37
|
+
"loop",
|
|
38
|
+
"multiple",
|
|
39
|
+
"name",
|
|
40
|
+
"onFocusOutside",
|
|
41
|
+
"onHighlightChange",
|
|
42
|
+
"onInputValueChange",
|
|
43
|
+
"onInteractOutside",
|
|
44
|
+
"onOpenChange",
|
|
45
|
+
"onOpenChange",
|
|
46
|
+
"onPointerDownOutside",
|
|
47
|
+
"onValueChange",
|
|
48
|
+
"openOnClick",
|
|
49
|
+
"placeholder",
|
|
50
|
+
"positioning",
|
|
51
|
+
"readOnly",
|
|
52
|
+
"selectionBehavior",
|
|
53
|
+
"selectOnBlur",
|
|
54
|
+
"translations",
|
|
55
|
+
"value"
|
|
56
|
+
]
|
|
57
|
+
);
|
|
58
|
+
const api = useCombobox(useComboboxProps);
|
|
59
|
+
const presenceApi = usePresence(mergeProps({ present: api.isOpen }, presenceProps));
|
|
60
|
+
const view = runIfFn(children, api);
|
|
61
|
+
const mergedProps = mergeProps(api.rootProps, localProps);
|
|
62
|
+
return /* @__PURE__ */ jsx(ComboboxProvider, { value: api, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presenceApi, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) }) });
|
|
63
|
+
};
|
|
64
|
+
const ComboboxRoot = forwardRef(ComboboxImpl);
|
|
65
|
+
|
|
66
|
+
export { ComboboxRoot };
|
package/combobox/combobox.cjs
CHANGED
|
@@ -1,71 +1,33 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
4
|
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
require('
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
5
|
+
const comboboxClearTrigger = require('./combobox-clear-trigger.cjs');
|
|
6
|
+
const comboboxContent = require('./combobox-content.cjs');
|
|
7
|
+
const comboboxControl = require('./combobox-control.cjs');
|
|
8
|
+
const comboboxInput = require('./combobox-input.cjs');
|
|
9
|
+
const comboboxItem = require('./combobox-item.cjs');
|
|
10
|
+
const comboboxItemGroup = require('./combobox-item-group.cjs');
|
|
11
|
+
const comboboxItemGroupLabel = require('./combobox-item-group-label.cjs');
|
|
12
|
+
const comboboxItemIndicator = require('./combobox-item-indicator.cjs');
|
|
13
|
+
const comboboxItemText = require('./combobox-item-text.cjs');
|
|
14
|
+
const comboboxLabel = require('./combobox-label.cjs');
|
|
15
|
+
const comboboxPositioner = require('./combobox-positioner.cjs');
|
|
16
|
+
const comboboxRoot = require('./combobox-root.cjs');
|
|
17
|
+
const comboboxTrigger = require('./combobox-trigger.cjs');
|
|
18
18
|
|
|
19
|
-
const ComboboxImpl = (props, ref) => {
|
|
20
|
-
const [presenceProps, comboboxProps] = splitPresenceProps.splitPresenceProps(props);
|
|
21
|
-
const [useComboboxProps, { children, ...localProps }] = createSplitProps.createSplitProps()(
|
|
22
|
-
comboboxProps,
|
|
23
|
-
[
|
|
24
|
-
"allowCustomValue",
|
|
25
|
-
"autoFocus",
|
|
26
|
-
"closeOnSelect",
|
|
27
|
-
"defaultValue",
|
|
28
|
-
"dir",
|
|
29
|
-
"disabled",
|
|
30
|
-
"form",
|
|
31
|
-
"getRootNode",
|
|
32
|
-
"highlightedValue",
|
|
33
|
-
"id",
|
|
34
|
-
"ids",
|
|
35
|
-
"inputBehavior",
|
|
36
|
-
"inputValue",
|
|
37
|
-
"invalid",
|
|
38
|
-
"isItemDisabled",
|
|
39
|
-
"items",
|
|
40
|
-
"itemToString",
|
|
41
|
-
"itemToValue",
|
|
42
|
-
"loop",
|
|
43
|
-
"multiple",
|
|
44
|
-
"name",
|
|
45
|
-
"onFocusOutside",
|
|
46
|
-
"onHighlightChange",
|
|
47
|
-
"onInputValueChange",
|
|
48
|
-
"onInteractOutside",
|
|
49
|
-
"onOpenChange",
|
|
50
|
-
"onOpenChange",
|
|
51
|
-
"onPointerDownOutside",
|
|
52
|
-
"onValueChange",
|
|
53
|
-
"openOnClick",
|
|
54
|
-
"placeholder",
|
|
55
|
-
"positioning",
|
|
56
|
-
"readOnly",
|
|
57
|
-
"selectionBehavior",
|
|
58
|
-
"selectOnBlur",
|
|
59
|
-
"translations",
|
|
60
|
-
"value"
|
|
61
|
-
]
|
|
62
|
-
);
|
|
63
|
-
const api = useCombobox.useCombobox(useComboboxProps);
|
|
64
|
-
const presenceApi = usePresence.usePresence(react$1.mergeProps({ present: api.isOpen }, presenceProps));
|
|
65
|
-
const view = runIfFn.runIfFn(children, api);
|
|
66
|
-
const mergedProps = react$1.mergeProps(api.rootProps, localProps);
|
|
67
|
-
return /* @__PURE__ */ jsxRuntime.jsx(comboboxContext.ComboboxProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(presenceContext.PresenceProvider, { value: presenceApi, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) }) });
|
|
68
|
-
};
|
|
69
|
-
const Combobox = react.forwardRef(ComboboxImpl);
|
|
70
19
|
|
|
71
|
-
|
|
20
|
+
|
|
21
|
+
exports.ClearTrigger = comboboxClearTrigger.ComboboxClearTrigger;
|
|
22
|
+
exports.Content = comboboxContent.ComboboxContent;
|
|
23
|
+
exports.Control = comboboxControl.ComboboxControl;
|
|
24
|
+
exports.Input = comboboxInput.ComboboxInput;
|
|
25
|
+
exports.Item = comboboxItem.ComboboxItem;
|
|
26
|
+
exports.ItemGroup = comboboxItemGroup.ComboboxItemGroup;
|
|
27
|
+
exports.ItemGroupLabel = comboboxItemGroupLabel.ComboboxItemGroupLabel;
|
|
28
|
+
exports.ItemIndicator = comboboxItemIndicator.ComboboxItemIndicator;
|
|
29
|
+
exports.ItemText = comboboxItemText.ComboboxItemText;
|
|
30
|
+
exports.Label = comboboxLabel.ComboboxLabel;
|
|
31
|
+
exports.Positioner = comboboxPositioner.ComboboxPositioner;
|
|
32
|
+
exports.Root = comboboxRoot.ComboboxRoot;
|
|
33
|
+
exports.Trigger = comboboxTrigger.ComboboxTrigger;
|
package/combobox/combobox.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
1
|
+
import { ComboboxClearTrigger as ClearTrigger } from './combobox-clear-trigger';
|
|
2
|
+
import { ComboboxContent as Content } from './combobox-content';
|
|
3
|
+
import { ComboboxControl as Control } from './combobox-control';
|
|
4
|
+
import { ComboboxInput as Input } from './combobox-input';
|
|
5
|
+
import { ComboboxItem as Item } from './combobox-item';
|
|
6
|
+
import { ComboboxItemGroup as ItemGroup } from './combobox-item-group';
|
|
7
|
+
import { ComboboxItemGroupLabel as ItemGroupLabel } from './combobox-item-group-label';
|
|
8
|
+
import { ComboboxItemIndicator as ItemIndicator } from './combobox-item-indicator';
|
|
9
|
+
import { ComboboxItemText as ItemText } from './combobox-item-text';
|
|
10
|
+
import { ComboboxLabel as Label } from './combobox-label';
|
|
11
|
+
import { ComboboxPositioner as Positioner } from './combobox-positioner';
|
|
12
|
+
import { ComboboxRoot as Root } from './combobox-root';
|
|
13
|
+
import { ComboboxTrigger as Trigger } from './combobox-trigger';
|
|
14
|
+
export { ClearTrigger, Content, Control, Input, Item, ItemGroup, ItemGroupLabel, ItemIndicator, ItemText, Label, Positioner, Root, Trigger, };
|
package/combobox/combobox.mjs
CHANGED
|
@@ -1,67 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const ComboboxImpl = (props, ref) => {
|
|
16
|
-
const [presenceProps, comboboxProps] = splitPresenceProps(props);
|
|
17
|
-
const [useComboboxProps, { children, ...localProps }] = createSplitProps()(
|
|
18
|
-
comboboxProps,
|
|
19
|
-
[
|
|
20
|
-
"allowCustomValue",
|
|
21
|
-
"autoFocus",
|
|
22
|
-
"closeOnSelect",
|
|
23
|
-
"defaultValue",
|
|
24
|
-
"dir",
|
|
25
|
-
"disabled",
|
|
26
|
-
"form",
|
|
27
|
-
"getRootNode",
|
|
28
|
-
"highlightedValue",
|
|
29
|
-
"id",
|
|
30
|
-
"ids",
|
|
31
|
-
"inputBehavior",
|
|
32
|
-
"inputValue",
|
|
33
|
-
"invalid",
|
|
34
|
-
"isItemDisabled",
|
|
35
|
-
"items",
|
|
36
|
-
"itemToString",
|
|
37
|
-
"itemToValue",
|
|
38
|
-
"loop",
|
|
39
|
-
"multiple",
|
|
40
|
-
"name",
|
|
41
|
-
"onFocusOutside",
|
|
42
|
-
"onHighlightChange",
|
|
43
|
-
"onInputValueChange",
|
|
44
|
-
"onInteractOutside",
|
|
45
|
-
"onOpenChange",
|
|
46
|
-
"onOpenChange",
|
|
47
|
-
"onPointerDownOutside",
|
|
48
|
-
"onValueChange",
|
|
49
|
-
"openOnClick",
|
|
50
|
-
"placeholder",
|
|
51
|
-
"positioning",
|
|
52
|
-
"readOnly",
|
|
53
|
-
"selectionBehavior",
|
|
54
|
-
"selectOnBlur",
|
|
55
|
-
"translations",
|
|
56
|
-
"value"
|
|
57
|
-
]
|
|
58
|
-
);
|
|
59
|
-
const api = useCombobox(useComboboxProps);
|
|
60
|
-
const presenceApi = usePresence(mergeProps({ present: api.isOpen }, presenceProps));
|
|
61
|
-
const view = runIfFn(children, api);
|
|
62
|
-
const mergedProps = mergeProps(api.rootProps, localProps);
|
|
63
|
-
return /* @__PURE__ */ jsx(ComboboxProvider, { value: api, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presenceApi, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) }) });
|
|
64
|
-
};
|
|
65
|
-
const Combobox = forwardRef(ComboboxImpl);
|
|
66
|
-
|
|
67
|
-
export { Combobox };
|
|
1
|
+
export { ComboboxClearTrigger as ClearTrigger } from './combobox-clear-trigger.mjs';
|
|
2
|
+
export { ComboboxContent as Content } from './combobox-content.mjs';
|
|
3
|
+
export { ComboboxControl as Control } from './combobox-control.mjs';
|
|
4
|
+
export { ComboboxInput as Input } from './combobox-input.mjs';
|
|
5
|
+
export { ComboboxItem as Item } from './combobox-item.mjs';
|
|
6
|
+
export { ComboboxItemGroup as ItemGroup } from './combobox-item-group.mjs';
|
|
7
|
+
export { ComboboxItemGroupLabel as ItemGroupLabel } from './combobox-item-group-label.mjs';
|
|
8
|
+
export { ComboboxItemIndicator as ItemIndicator } from './combobox-item-indicator.mjs';
|
|
9
|
+
export { ComboboxItemText as ItemText } from './combobox-item-text.mjs';
|
|
10
|
+
export { ComboboxLabel as Label } from './combobox-label.mjs';
|
|
11
|
+
export { ComboboxPositioner as Positioner } from './combobox-positioner.mjs';
|
|
12
|
+
export { ComboboxRoot as Root } from './combobox-root.mjs';
|
|
13
|
+
export { ComboboxTrigger as Trigger } from './combobox-trigger.mjs';
|
package/combobox/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
'use strict';
|
|
3
2
|
|
|
4
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
4
|
|
|
6
|
-
const combobox = require('./combobox.cjs');
|
|
7
5
|
const comboboxClearTrigger = require('./combobox-clear-trigger.cjs');
|
|
8
6
|
const comboboxContent = require('./combobox-content.cjs');
|
|
9
7
|
const comboboxContext = require('./combobox-context.cjs');
|
|
@@ -16,23 +14,11 @@ const comboboxItemIndicator = require('./combobox-item-indicator.cjs');
|
|
|
16
14
|
const comboboxItemText = require('./combobox-item-text.cjs');
|
|
17
15
|
const comboboxLabel = require('./combobox-label.cjs');
|
|
18
16
|
const comboboxPositioner = require('./combobox-positioner.cjs');
|
|
17
|
+
const comboboxRoot = require('./combobox-root.cjs');
|
|
19
18
|
const comboboxTrigger = require('./combobox-trigger.cjs');
|
|
19
|
+
const combobox = require('./combobox.cjs');
|
|
20
|
+
|
|
20
21
|
|
|
21
|
-
const Combobox = Object.assign(combobox.Combobox, {
|
|
22
|
-
Root: combobox.Combobox,
|
|
23
|
-
ClearTrigger: comboboxClearTrigger.ComboboxClearTrigger,
|
|
24
|
-
Content: comboboxContent.ComboboxContent,
|
|
25
|
-
Control: comboboxControl.ComboboxControl,
|
|
26
|
-
Input: comboboxInput.ComboboxInput,
|
|
27
|
-
Item: comboboxItem.ComboboxItem,
|
|
28
|
-
ItemGroup: comboboxItemGroup.ComboboxItemGroup,
|
|
29
|
-
ItemGroupLabel: comboboxItemGroupLabel.ComboboxItemGroupLabel,
|
|
30
|
-
ItemIndicator: comboboxItemIndicator.ComboboxItemIndicator,
|
|
31
|
-
ItemText: comboboxItemText.ComboboxItemText,
|
|
32
|
-
Label: comboboxLabel.ComboboxLabel,
|
|
33
|
-
Positioner: comboboxPositioner.ComboboxPositioner,
|
|
34
|
-
Trigger: comboboxTrigger.ComboboxTrigger
|
|
35
|
-
});
|
|
36
22
|
|
|
37
23
|
exports.ComboboxClearTrigger = comboboxClearTrigger.ComboboxClearTrigger;
|
|
38
24
|
exports.ComboboxContent = comboboxContent.ComboboxContent;
|
|
@@ -46,5 +32,6 @@ exports.ComboboxItemIndicator = comboboxItemIndicator.ComboboxItemIndicator;
|
|
|
46
32
|
exports.ComboboxItemText = comboboxItemText.ComboboxItemText;
|
|
47
33
|
exports.ComboboxLabel = comboboxLabel.ComboboxLabel;
|
|
48
34
|
exports.ComboboxPositioner = comboboxPositioner.ComboboxPositioner;
|
|
35
|
+
exports.ComboboxRoot = comboboxRoot.ComboboxRoot;
|
|
49
36
|
exports.ComboboxTrigger = comboboxTrigger.ComboboxTrigger;
|
|
50
|
-
exports.Combobox =
|
|
37
|
+
exports.Combobox = combobox;
|
package/combobox/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputValueChangeDetails as ComboboxInputValueChangeDetails, OpenChangeDetails as ComboboxOpenChangeDetails, ValueChangeDetails as ComboboxValueChangeDetails } from '@zag-js/combobox';
|
|
4
2
|
import type { CollectionItem } from '../types';
|
|
5
|
-
import { ComboboxComponent, type ComboboxProps } from './combobox';
|
|
6
3
|
import { ComboboxClearTrigger, type ComboboxClearTriggerProps } from './combobox-clear-trigger';
|
|
7
4
|
import { ComboboxContent, type ComboboxContentProps } from './combobox-content';
|
|
8
5
|
import { useComboboxContext, type ComboboxContext } from './combobox-context';
|
|
@@ -15,21 +12,8 @@ import { ComboboxItemIndicator, type ComboboxItemIndicatorProps } from './combob
|
|
|
15
12
|
import { ComboboxItemText, type ComboboxItemTextProps } from './combobox-item-text';
|
|
16
13
|
import { ComboboxLabel, type ComboboxLabelProps } from './combobox-label';
|
|
17
14
|
import { ComboboxPositioner, type ComboboxPositionerProps } from './combobox-positioner';
|
|
15
|
+
import { ComboboxRoot, type ComboboxRootProps } from './combobox-root';
|
|
18
16
|
import { ComboboxTrigger, type ComboboxTriggerProps } from './combobox-trigger';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Content: ForwardRefExoticComponent<ComboboxContentProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
-
Control: ForwardRefExoticComponent<ComboboxControlProps & RefAttributes<HTMLDivElement>>;
|
|
24
|
-
Input: ForwardRefExoticComponent<ComboboxInputProps & RefAttributes<HTMLInputElement>>;
|
|
25
|
-
Item: ForwardRefExoticComponent<ComboboxItemProps & RefAttributes<HTMLDivElement>>;
|
|
26
|
-
ItemGroup: ForwardRefExoticComponent<ComboboxItemGroupProps & RefAttributes<HTMLDivElement>>;
|
|
27
|
-
ItemGroupLabel: ForwardRefExoticComponent<ComboboxItemGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
28
|
-
ItemIndicator: ForwardRefExoticComponent<ComboboxItemIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
29
|
-
ItemText: ForwardRefExoticComponent<ComboboxItemTextProps & RefAttributes<HTMLDivElement>>;
|
|
30
|
-
Label: ForwardRefExoticComponent<ComboboxLabelProps & RefAttributes<HTMLLabelElement>>;
|
|
31
|
-
Positioner: ForwardRefExoticComponent<ComboboxPositionerProps & RefAttributes<HTMLDivElement>>;
|
|
32
|
-
Trigger: ForwardRefExoticComponent<ComboboxTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
};
|
|
34
|
-
export { Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, useComboboxContext, };
|
|
35
|
-
export type { CollectionItem, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxContext, ComboboxControlProps, ComboboxHighlightChangeDetails, ComboboxInputProps, ComboboxInputValueChangeDetails, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxOpenChangeDetails, ComboboxPositionerProps, ComboboxProps, ComboboxTriggerProps, ComboboxValueChangeDetails, };
|
|
17
|
+
export * as Combobox from './combobox';
|
|
18
|
+
export { ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxItemGroup, ComboboxItemGroupLabel, ComboboxItemIndicator, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxRoot, ComboboxTrigger, useComboboxContext, };
|
|
19
|
+
export type { CollectionItem, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxContext, ComboboxControlProps, ComboboxHighlightChangeDetails, ComboboxInputProps, ComboboxInputValueChangeDetails, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemIndicatorProps, ComboboxItemProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxOpenChangeDetails, ComboboxPositionerProps, ComboboxRootProps, ComboboxTriggerProps, ComboboxValueChangeDetails, };
|