@ark-ui/react 1.3.0 → 2.0.0
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 +52 -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.cjs → accordion-root.cjs} +5 -6
- package/accordion/{accordion.d.ts → accordion-root.d.ts} +2 -2
- package/accordion/{accordion.mjs → accordion-root.mjs} +5 -6
- package/accordion/index.cjs +5 -4
- package/accordion/index.d.ts +5 -5
- package/accordion/index.mjs +5 -5
- package/accordion/stories/accordion.stories.d.ts +1 -3
- package/accordion/stories/icons.d.ts +3 -0
- package/accordion/tests/basic.d.ts +3 -0
- package/accordion/use-accordion.cjs +1 -2
- package/accordion/use-accordion.mjs +1 -2
- package/avatar/{avatar.cjs → avatar-root.cjs} +3 -3
- package/avatar/{avatar.d.ts → avatar-root.d.ts} +2 -2
- package/avatar/{avatar.mjs → avatar-root.mjs} +3 -3
- package/avatar/index.cjs +5 -4
- package/avatar/index.d.ts +5 -5
- package/avatar/index.mjs +5 -5
- package/avatar/stories/avatar.stories.d.ts +1 -3
- package/avatar/tests/basic.d.ts +3 -0
- package/avatar/use-avatar.cjs +1 -2
- package/avatar/use-avatar.mjs +1 -2
- package/carousel/{carousel.cjs → carousel-root.cjs} +3 -3
- package/carousel/{carousel.d.ts → carousel-root.d.ts} +2 -2
- package/carousel/{carousel.mjs → carousel-root.mjs} +3 -3
- package/carousel/index.cjs +5 -4
- package/carousel/index.d.ts +5 -5
- package/carousel/index.mjs +5 -5
- package/carousel/stories/carousel.stories.d.ts +1 -3
- package/carousel/tests/basic.d.ts +3 -0
- package/carousel/use-carousel.cjs +1 -2
- package/carousel/use-carousel.mjs +1 -2
- package/checkbox/{checkbox.cjs → checkbox-root.cjs} +3 -3
- package/checkbox/{checkbox.d.ts → checkbox-root.d.ts} +2 -2
- package/checkbox/{checkbox.mjs → checkbox-root.mjs} +3 -3
- package/checkbox/index.cjs +5 -4
- package/checkbox/index.d.ts +6 -6
- package/checkbox/index.mjs +5 -5
- package/checkbox/stories/checkbox.stories.d.ts +1 -3
- package/checkbox/tests/basic.d.ts +3 -0
- package/checkbox/tests/controlled.d.ts +3 -0
- 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.cjs → color-picker-root.cjs} +6 -7
- package/color-picker/{color-picker.d.ts → color-picker-root.d.ts} +2 -2
- package/color-picker/{color-picker.mjs → color-picker-root.mjs} +6 -7
- package/color-picker/index.cjs +5 -4
- package/color-picker/index.d.ts +5 -5
- package/color-picker/index.mjs +5 -5
- package/color-picker/stories/color-picker.stories.d.ts +1 -3
- package/color-picker/tests/basic.d.ts +3 -0
- 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.cjs → combobox-root.cjs} +5 -6
- package/combobox/{combobox.d.ts → combobox-root.d.ts} +3 -3
- package/combobox/{combobox.mjs → combobox-root.mjs} +5 -6
- package/combobox/index.cjs +5 -4
- package/combobox/index.d.ts +4 -4
- package/combobox/index.mjs +5 -5
- package/combobox/stories/combobox.stories.d.ts +1 -3
- package/combobox/tests/basic.d.ts +10 -0
- 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.cjs → date-picker-root.cjs} +6 -7
- package/date-picker/{date-picker.d.ts → date-picker-root.d.ts} +2 -2
- package/date-picker/{date-picker.mjs → date-picker-root.mjs} +6 -7
- package/date-picker/index.cjs +5 -4
- package/date-picker/index.d.ts +5 -5
- package/date-picker/index.mjs +5 -5
- package/date-picker/stories/date-picker.stories.d.ts +1 -3
- package/date-picker/stories/date-range-picker.stories.d.ts +1 -3
- package/date-picker/tests/basic.d.ts +3 -0
- 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.cjs → dialog-root.cjs} +5 -6
- package/dialog/{dialog.d.ts → dialog-root.d.ts} +2 -2
- package/dialog/{dialog.mjs → dialog-root.mjs} +5 -6
- package/dialog/dialog-trigger.cjs +1 -2
- package/dialog/dialog-trigger.mjs +1 -2
- package/dialog/index.cjs +5 -4
- package/dialog/index.d.ts +5 -5
- package/dialog/index.mjs +5 -5
- package/dialog/stories/dialog.stories.d.ts +1 -3
- package/dialog/tests/basic.d.ts +3 -0
- package/dialog/use-dialog.cjs +1 -2
- package/dialog/use-dialog.mjs +1 -2
- package/editable/{editable.cjs → editable-root.cjs} +3 -3
- package/editable/{editable.d.ts → editable-root.d.ts} +2 -2
- package/editable/{editable.mjs → editable-root.mjs} +3 -3
- package/editable/index.cjs +5 -4
- package/editable/index.d.ts +5 -5
- package/editable/index.mjs +5 -5
- package/editable/stories/editable.stories.d.ts +1 -3
- package/editable/tests/basic.d.ts +3 -0
- package/editable/tests/controlled.d.ts +3 -0
- package/editable/use-editable.cjs +1 -2
- package/editable/use-editable.mjs +1 -2
- package/environment/index.cjs +2 -4
- package/environment/index.d.ts +1 -5
- package/environment/index.mjs +1 -7
- package/environment/stories/environment.stories.d.ts +1 -3
- package/file-upload/{file-upload.cjs → file-upload-root.cjs} +3 -3
- package/file-upload/{file-upload.d.ts → file-upload-root.d.ts} +2 -2
- package/file-upload/{file-upload.mjs → file-upload-root.mjs} +3 -3
- package/file-upload/index.cjs +5 -4
- package/file-upload/index.d.ts +5 -5
- package/file-upload/index.mjs +5 -5
- package/file-upload/stories/file-upload.stories.d.ts +1 -3
- package/file-upload/stories/icons.d.ts +3 -0
- package/file-upload/tests/basic.d.ts +3 -0
- 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.cjs → hover-card-root.cjs} +4 -5
- package/hover-card/{hover-card.d.ts → hover-card-root.d.ts} +2 -2
- package/hover-card/{hover-card.mjs → hover-card-root.mjs} +4 -5
- package/hover-card/index.cjs +5 -4
- package/hover-card/index.d.ts +6 -6
- package/hover-card/index.mjs +5 -5
- package/hover-card/stories/hover-card.stories.d.ts +1 -3
- package/hover-card/tests/basic.d.ts +3 -0
- package/hover-card/use-hover-card.cjs +1 -2
- package/hover-card/use-hover-card.mjs +1 -2
- package/index.cjs +144 -58
- package/index.d.ts +1 -0
- package/index.mjs +51 -8
- package/menu/index.cjs +5 -4
- package/menu/index.d.ts +5 -5
- package/menu/index.mjs +5 -5
- 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.cjs → menu-root.cjs} +5 -6
- package/menu/{menu.d.ts → menu-root.d.ts} +2 -2
- package/menu/{menu.mjs → menu-root.mjs} +5 -6
- package/menu/menu-trigger.cjs +1 -2
- package/menu/menu-trigger.mjs +1 -2
- package/menu/stories/context-menu.stories.d.ts +1 -3
- package/menu/stories/menu.stories.d.ts +1 -3
- package/menu/stories/nested-menu.stories.d.ts +1 -3
- package/menu/tests/basic.d.ts +3 -0
- package/menu/tests/context-menu.d.ts +2 -0
- package/menu/tests/menu-item-group.d.ts +2 -0
- package/menu/tests/nested-menu.d.ts +2 -0
- package/menu/tests/option-groups.d.ts +2 -0
- package/menu/tests/render-prop.d.ts +2 -0
- package/menu/use-menu.cjs +1 -2
- package/menu/use-menu.mjs +1 -2
- package/number-input/index.cjs +5 -4
- package/number-input/index.d.ts +5 -5
- package/number-input/index.mjs +5 -5
- package/number-input/{number-input.cjs → number-input-root.cjs} +3 -3
- package/number-input/{number-input.d.ts → number-input-root.d.ts} +2 -2
- package/number-input/{number-input.mjs → number-input-root.mjs} +3 -3
- package/number-input/stories/number-input.stories.d.ts +1 -3
- package/number-input/tests/basic.d.ts +3 -0
- 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 -4
- package/pagination/index.d.ts +5 -5
- package/pagination/index.mjs +5 -5
- package/pagination/{pagination.cjs → pagination-root.cjs} +3 -3
- package/pagination/{pagination.d.ts → pagination-root.d.ts} +2 -2
- package/pagination/{pagination.mjs → pagination-root.mjs} +3 -3
- package/pagination/stories/pagination.stories.d.ts +1 -3
- package/pagination/tests/basic.d.ts +3 -0
- package/pagination/use-pagination.cjs +1 -2
- package/pagination/use-pagination.mjs +1 -2
- package/pin-input/index.cjs +5 -4
- package/pin-input/index.d.ts +5 -5
- package/pin-input/index.mjs +5 -5
- package/pin-input/{pin-input.cjs → pin-input-root.cjs} +3 -3
- package/pin-input/{pin-input.d.ts → pin-input-root.d.ts} +2 -2
- package/pin-input/{pin-input.mjs → pin-input-root.mjs} +3 -3
- package/pin-input/stories/pin-input.stories.d.ts +1 -3
- package/pin-input/tests/basic.d.ts +3 -0
- package/pin-input/use-pin-input.cjs +1 -2
- package/pin-input/use-pin-input.mjs +1 -2
- package/popover/index.cjs +5 -4
- package/popover/index.d.ts +5 -5
- package/popover/index.mjs +5 -5
- 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.cjs → popover-root.cjs} +4 -5
- package/popover/{popover.d.ts → popover-root.d.ts} +2 -2
- package/popover/{popover.mjs → popover-root.mjs} +4 -5
- package/popover/popover-trigger.cjs +1 -2
- package/popover/popover-trigger.mjs +1 -2
- package/popover/stories/popover.stories.d.ts +1 -3
- package/popover/tests/basic.d.ts +3 -0
- package/popover/tests/controlled.d.ts +3 -0
- 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 -4
- package/presence/index.d.ts +1 -6
- package/presence/index.mjs +1 -7
- package/presence/stories/presence.stories.d.ts +1 -3
- package/progress/index.cjs +8 -7
- package/progress/index.d.ts +7 -7
- package/progress/index.mjs +7 -7
- package/progress/{progress.cjs → progress-root.cjs} +4 -4
- package/progress/{progress.d.ts → progress-root.d.ts} +2 -2
- package/progress/{progress.mjs → progress-root.mjs} +4 -4
- package/progress/progress-view.cjs +20 -0
- package/progress/progress-view.d.ts +8 -0
- package/progress/progress-view.mjs +16 -0
- package/progress/stories/circular-progress.stories.d.ts +1 -3
- package/progress/stories/linear-progress.stories.d.ts +1 -3
- package/progress/tests/basic.d.ts +3 -0
- package/progress/use-progress.cjs +0 -1
- package/progress/use-progress.mjs +0 -1
- package/radio-group/index.cjs +5 -4
- package/radio-group/index.d.ts +5 -5
- package/radio-group/index.mjs +5 -5
- package/radio-group/{radio-group.cjs → radio-group-root.cjs} +3 -3
- package/radio-group/{radio-group.d.ts → radio-group-root.d.ts} +2 -2
- package/radio-group/{radio-group.mjs → radio-group-root.mjs} +3 -3
- package/radio-group/stories/radio-group.stories.d.ts +1 -3
- package/radio-group/tests/basic.d.ts +3 -0
- package/radio-group/use-radio-group.cjs +1 -2
- package/radio-group/use-radio-group.mjs +1 -2
- package/rating-group/index.cjs +5 -4
- package/rating-group/index.d.ts +5 -5
- package/rating-group/index.mjs +5 -5
- package/rating-group/{rating-group.cjs → rating-group-root.cjs} +3 -3
- package/rating-group/{rating-group.d.ts → rating-group-root.d.ts} +2 -2
- package/rating-group/{rating-group.mjs → rating-group-root.mjs} +3 -3
- package/rating-group/stories/rating-group.stories.d.ts +1 -3
- package/rating-group/tests/basic.d.ts +3 -0
- package/rating-group/use-rating-group.cjs +1 -2
- package/rating-group/use-rating-group.mjs +1 -2
- package/segment-group/index.cjs +5 -4
- package/segment-group/index.d.ts +5 -5
- package/segment-group/index.mjs +5 -5
- package/segment-group/{segment-group.cjs → segment-group-root.cjs} +3 -3
- package/segment-group/{segment-group.d.ts → segment-group-root.d.ts} +2 -2
- package/segment-group/{segment-group.mjs → segment-group-root.mjs} +3 -3
- package/segment-group/stories/segment-group.stories.d.ts +1 -3
- package/segment-group/tests/basic.d.ts +3 -0
- package/segment-group/use-segment-group.cjs +1 -2
- package/segment-group/use-segment-group.mjs +1 -2
- package/select/index.cjs +5 -4
- package/select/index.d.ts +4 -4
- package/select/index.mjs +5 -5
- 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.cjs → select-root.cjs} +5 -6
- package/select/{select.d.ts → select-root.d.ts} +3 -3
- package/select/{select.mjs → select-root.mjs} +5 -6
- package/select/stories/icons.d.ts +4 -0
- package/select/stories/select.stories.d.ts +1 -3
- package/select/tests/basic.d.ts +10 -0
- package/select/use-select.cjs +1 -2
- package/select/use-select.mjs +1 -2
- package/slider/index.cjs +5 -4
- package/slider/index.d.ts +5 -5
- package/slider/index.mjs +5 -5
- package/slider/{slider.cjs → slider-root.cjs} +3 -3
- package/slider/{slider.d.ts → slider-root.d.ts} +2 -2
- package/slider/{slider.mjs → slider-root.mjs} +3 -3
- package/slider/stories/range-slider.stories.d.ts +1 -3
- package/slider/stories/slider.stories.d.ts +1 -3
- package/slider/tests/basic.d.ts +3 -0
- package/slider/use-slider.cjs +1 -2
- package/slider/use-slider.mjs +1 -2
- package/splitter/index.cjs +5 -4
- package/splitter/index.d.ts +5 -5
- package/splitter/index.mjs +5 -5
- package/splitter/{splitter.cjs → splitter-root.cjs} +3 -3
- package/splitter/{splitter.d.ts → splitter-root.d.ts} +2 -2
- package/splitter/{splitter.mjs → splitter-root.mjs} +3 -3
- package/splitter/stories/splitter.stories.d.ts +1 -3
- package/splitter/tests/basic.d.ts +3 -0
- package/splitter/use-splitter.cjs +1 -2
- package/splitter/use-splitter.mjs +1 -2
- package/switch/index.cjs +5 -4
- package/switch/index.d.ts +5 -5
- package/switch/index.mjs +5 -5
- package/switch/stories/switch.stories.d.ts +1 -3
- package/switch/{switch.cjs → switch-root.cjs} +3 -3
- package/switch/{switch.d.ts → switch-root.d.ts} +2 -2
- package/switch/{switch.mjs → switch-root.mjs} +3 -3
- package/switch/tests/basic.d.ts +3 -0
- package/switch/use-switch.cjs +1 -2
- package/switch/use-switch.mjs +1 -2
- package/tabs/index.cjs +5 -4
- package/tabs/index.d.ts +5 -5
- package/tabs/index.mjs +5 -5
- package/tabs/stories/tabs.stories.d.ts +1 -3
- package/tabs/tab-content.cjs +2 -3
- package/tabs/tab-content.mjs +2 -3
- package/tabs/{tabs.cjs → tabs-root.cjs} +5 -6
- package/tabs/{tabs.d.ts → tabs-root.d.ts} +2 -2
- package/tabs/{tabs.mjs → tabs-root.mjs} +5 -6
- package/tabs/tests/basic.d.ts +3 -0
- package/tabs/use-tabs.cjs +1 -2
- package/tabs/use-tabs.mjs +1 -2
- package/tags-input/index.cjs +8 -4
- package/tags-input/index.d.ts +7 -5
- package/tags-input/index.mjs +7 -5
- package/tags-input/stories/tags-input.stories.d.ts +1 -3
- 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.cjs → tags-input-root.cjs} +3 -3
- package/tags-input/{tags-input.d.ts → tags-input-root.d.ts} +2 -2
- package/tags-input/{tags-input.mjs → tags-input-root.mjs} +3 -3
- package/tags-input/tests/basic.d.ts +3 -0
- 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 -4
- package/toast/index.d.ts +5 -5
- package/toast/index.mjs +5 -5
- package/toast/stories/toast.stories.d.ts +1 -3
- package/toast/{toast.cjs → toast-root.cjs} +3 -3
- package/toast/toast-root.d.ts +6 -0
- package/toast/{toast.mjs → toast-root.mjs} +3 -3
- package/toggle-group/index.cjs +5 -4
- package/toggle-group/index.d.ts +5 -5
- package/toggle-group/index.mjs +5 -5
- package/toggle-group/stories/toggle-group.stories.d.ts +1 -3
- package/toggle-group/tests/basic.d.ts +3 -0
- package/toggle-group/{toggle-group.cjs → toggle-group-root.cjs} +3 -3
- package/toggle-group/{toggle-group.d.ts → toggle-group-root.d.ts} +2 -2
- package/toggle-group/{toggle-group.mjs → toggle-group-root.mjs} +3 -3
- package/toggle-group/use-toggle-group.cjs +1 -2
- package/toggle-group/use-toggle-group.mjs +1 -2
- package/tooltip/index.cjs +5 -4
- package/tooltip/index.d.ts +5 -5
- package/tooltip/index.mjs +5 -5
- package/tooltip/stories/tooltip.stories.d.ts +1 -3
- package/tooltip/tests/basic.d.ts +3 -0
- package/tooltip/tests/tooltip.test.d.ts +1 -0
- 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.cjs → tooltip-root.cjs} +4 -5
- package/tooltip/{tooltip.d.ts → tooltip-root.d.ts} +2 -2
- package/tooltip/{tooltip.mjs → tooltip-root.mjs} +4 -5
- package/tooltip/use-tooltip.cjs +1 -2
- package/tooltip/use-tooltip.mjs +1 -2
- package/tree-view/index.cjs +45 -0
- package/tree-view/index.d.ts +30 -0
- package/tree-view/index.mjs +29 -0
- package/tree-view/stories/tree-view.stories.d.ts +5 -0
- package/tree-view/tests/basic.d.ts +3 -0
- package/tree-view/tests/tree-view.test.d.ts +1 -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/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/progress/progress-indicator.cjs +0 -22
- package/progress/progress-indicator.d.ts +0 -8
- package/progress/progress-indicator.mjs +0 -18
- package/toast/toast.d.ts +0 -6
- /package/accordion/{accordion.test.d.ts → tests/accordion.test.d.ts} +0 -0
- /package/avatar/{avatar.test.d.ts → tests/avatar.test.d.ts} +0 -0
- /package/carousel/{carousel.test.d.ts → tests/carousel.test.d.ts} +0 -0
- /package/checkbox/{checkbox.test.d.ts → tests/checkbox.test.d.ts} +0 -0
- /package/color-picker/{color-picker.test.d.ts → tests/color-picker.test.d.ts} +0 -0
- /package/combobox/{combobox.test.d.ts → tests/combobox.test.d.ts} +0 -0
- /package/date-picker/{date-picker.test.d.ts → tests/date-picker.test.d.ts} +0 -0
- /package/dialog/{dialog.test.d.ts → tests/dialog.test.d.ts} +0 -0
- /package/editable/{editable.test.d.ts → tests/editable.test.d.ts} +0 -0
- /package/file-upload/{file-upload.test.d.ts → tests/file-upload.test.d.ts} +0 -0
- /package/hover-card/{hover-card.test.d.ts → tests/hover-card.test.d.ts} +0 -0
- /package/menu/{menu.test.d.ts → tests/menu.test.d.ts} +0 -0
- /package/number-input/{number-input.test.d.ts → tests/number-input.test.d.ts} +0 -0
- /package/pagination/{pagination.test.d.ts → tests/pagination.test.d.ts} +0 -0
- /package/pin-input/{pin-input.test.d.ts → tests/pin-input.test.d.ts} +0 -0
- /package/popover/{popover.test.d.ts → tests/popover.test.d.ts} +0 -0
- /package/progress/{progress.test.d.ts → tests/progress.test.d.ts} +0 -0
- /package/radio-group/{radio-group.test.d.ts → tests/radio-group.test.d.ts} +0 -0
- /package/rating-group/{rating-group.test.d.ts → tests/rating-group.test.d.ts} +0 -0
- /package/segment-group/{segment-group.test.d.ts → tests/segment-group.test.d.ts} +0 -0
- /package/select/{select.test.d.ts → tests/select.test.d.ts} +0 -0
- /package/slider/{slider.test.d.ts → tests/slider.test.d.ts} +0 -0
- /package/splitter/{splitter.test.d.ts → tests/splitter.test.d.ts} +0 -0
- /package/switch/{switch.test.d.ts → tests/switch.test.d.ts} +0 -0
- /package/tabs/{tabs.test.d.ts → tests/tabs.test.d.ts} +0 -0
- /package/tags-input/{tags-input.test.d.ts → tests/tags-input.test.d.ts} +0 -0
- /package/toast/{toast.test.d.ts → tests/basic.d.ts} +0 -0
- /package/{toggle-group/toggle-group.test.d.ts → toast/tests/toast.test.d.ts} +0 -0
- /package/{tooltip/tooltip.test.d.ts → toggle-group/tests/toggle-group.test.d.ts} +0 -0
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const pinInput = require('@zag-js/pin-input');
|
|
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 pinInput from '@zag-js/pin-input';
|
|
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 usePinInput = (props = {}) => {
|
|
10
9
|
const initialContext = {
|
package/popover/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const popover = require('./popover.cjs');
|
|
7
6
|
const popoverAnchor = require('./popover-anchor.cjs');
|
|
8
7
|
const popoverArrow = require('./popover-arrow.cjs');
|
|
9
8
|
const popoverArrowTip = require('./popover-arrow-tip.cjs');
|
|
@@ -13,11 +12,12 @@ const popoverContext = require('./popover-context.cjs');
|
|
|
13
12
|
const popoverDescription = require('./popover-description.cjs');
|
|
14
13
|
const popoverIndicator = require('./popover-indicator.cjs');
|
|
15
14
|
const popoverPositioner = require('./popover-positioner.cjs');
|
|
15
|
+
const popoverRoot = require('./popover-root.cjs');
|
|
16
16
|
const popoverTitle = require('./popover-title.cjs');
|
|
17
17
|
const popoverTrigger = require('./popover-trigger.cjs');
|
|
18
18
|
|
|
19
|
-
const Popover =
|
|
20
|
-
Root:
|
|
19
|
+
const Popover = {
|
|
20
|
+
Root: popoverRoot.PopoverRoot,
|
|
21
21
|
Anchor: popoverAnchor.PopoverAnchor,
|
|
22
22
|
Arrow: popoverArrow.PopoverArrow,
|
|
23
23
|
ArrowTip: popoverArrowTip.PopoverArrowTip,
|
|
@@ -28,7 +28,7 @@ const Popover = Object.assign(popover.Popover, {
|
|
|
28
28
|
Positioner: popoverPositioner.PopoverPositioner,
|
|
29
29
|
Title: popoverTitle.PopoverTitle,
|
|
30
30
|
Trigger: popoverTrigger.PopoverTrigger
|
|
31
|
-
}
|
|
31
|
+
};
|
|
32
32
|
|
|
33
33
|
exports.PopoverAnchor = popoverAnchor.PopoverAnchor;
|
|
34
34
|
exports.PopoverArrow = popoverArrow.PopoverArrow;
|
|
@@ -39,6 +39,7 @@ exports.usePopoverContext = popoverContext.usePopoverContext;
|
|
|
39
39
|
exports.PopoverDescription = popoverDescription.PopoverDescription;
|
|
40
40
|
exports.PopoverIndicator = popoverIndicator.PopoverIndicator;
|
|
41
41
|
exports.PopoverPositioner = popoverPositioner.PopoverPositioner;
|
|
42
|
+
exports.PopoverRoot = popoverRoot.PopoverRoot;
|
|
42
43
|
exports.PopoverTitle = popoverTitle.PopoverTitle;
|
|
43
44
|
exports.PopoverTrigger = popoverTrigger.PopoverTrigger;
|
|
44
45
|
exports.Popover = Popover;
|
package/popover/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
/// <reference types="react" />
|
|
4
4
|
import type { OpenChangeDetails as PopoverOpenChangeDetails } from '@zag-js/popover';
|
|
5
|
-
import { type PopoverProps } from './popover';
|
|
6
5
|
import { PopoverAnchor, type PopoverAnchorProps } from './popover-anchor';
|
|
7
6
|
import { PopoverArrow, type PopoverArrowProps } from './popover-arrow';
|
|
8
7
|
import { PopoverArrowTip, type PopoverArrowTipProps } from './popover-arrow-tip';
|
|
@@ -12,10 +11,11 @@ import { usePopoverContext, type PopoverContext } from './popover-context';
|
|
|
12
11
|
import { PopoverDescription, type PopoverDescriptionProps } from './popover-description';
|
|
13
12
|
import { PopoverIndicator, type PopoverIndicatorProps } from './popover-indicator';
|
|
14
13
|
import { PopoverPositioner, type PopoverPositionerProps } from './popover-positioner';
|
|
14
|
+
import { PopoverRoot, type PopoverRootProps } from './popover-root';
|
|
15
15
|
import { PopoverTitle, type PopoverTitleProps } from './popover-title';
|
|
16
16
|
import { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger';
|
|
17
|
-
declare const Popover:
|
|
18
|
-
Root: (props:
|
|
17
|
+
export declare const Popover: {
|
|
18
|
+
Root: (props: PopoverRootProps) => JSX.Element;
|
|
19
19
|
Anchor: ForwardRefExoticComponent<PopoverAnchorProps & RefAttributes<HTMLDivElement>>;
|
|
20
20
|
Arrow: ForwardRefExoticComponent<PopoverArrowProps & RefAttributes<HTMLDivElement>>;
|
|
21
21
|
ArrowTip: ForwardRefExoticComponent<PopoverArrowTipProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -27,5 +27,5 @@ declare const Popover: ((props: PopoverProps) => JSX.Element) & {
|
|
|
27
27
|
Title: ForwardRefExoticComponent<PopoverTitleProps & RefAttributes<HTMLDivElement>>;
|
|
28
28
|
Trigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
29
29
|
};
|
|
30
|
-
export {
|
|
31
|
-
export type { PopoverAnchorProps, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverContext, PopoverDescriptionProps, PopoverIndicatorProps, PopoverOpenChangeDetails, PopoverPositionerProps,
|
|
30
|
+
export { PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverRoot, PopoverTitle, PopoverTrigger, usePopoverContext, };
|
|
31
|
+
export type { PopoverAnchorProps, PopoverArrowProps, PopoverArrowTipProps, PopoverCloseTriggerProps, PopoverContentProps, PopoverContext, PopoverDescriptionProps, PopoverIndicatorProps, PopoverOpenChangeDetails, PopoverPositionerProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, };
|
package/popover/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { Popover as Popover$1 } from './popover.mjs';
|
|
3
2
|
import { PopoverAnchor } from './popover-anchor.mjs';
|
|
4
3
|
import { PopoverArrow } from './popover-arrow.mjs';
|
|
5
4
|
import { PopoverArrowTip } from './popover-arrow-tip.mjs';
|
|
@@ -9,11 +8,12 @@ export { usePopoverContext } from './popover-context.mjs';
|
|
|
9
8
|
import { PopoverDescription } from './popover-description.mjs';
|
|
10
9
|
import { PopoverIndicator } from './popover-indicator.mjs';
|
|
11
10
|
import { PopoverPositioner } from './popover-positioner.mjs';
|
|
11
|
+
import { PopoverRoot } from './popover-root.mjs';
|
|
12
12
|
import { PopoverTitle } from './popover-title.mjs';
|
|
13
13
|
import { PopoverTrigger } from './popover-trigger.mjs';
|
|
14
14
|
|
|
15
|
-
const Popover =
|
|
16
|
-
Root:
|
|
15
|
+
const Popover = {
|
|
16
|
+
Root: PopoverRoot,
|
|
17
17
|
Anchor: PopoverAnchor,
|
|
18
18
|
Arrow: PopoverArrow,
|
|
19
19
|
ArrowTip: PopoverArrowTip,
|
|
@@ -24,6 +24,6 @@ const Popover = Object.assign(Popover$1, {
|
|
|
24
24
|
Positioner: PopoverPositioner,
|
|
25
25
|
Title: PopoverTitle,
|
|
26
26
|
Trigger: PopoverTrigger
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
|
|
29
|
-
export { Popover, PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverTitle, PopoverTrigger };
|
|
29
|
+
export { Popover, PopoverAnchor, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverRoot, PopoverTitle, PopoverTrigger };
|
|
@@ -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 popoverContext = require('./popover-context.cjs');
|
|
12
10
|
const presenceContext = require('../presence/presence-context.cjs');
|
|
11
|
+
const popoverContext = require('./popover-context.cjs');
|
|
13
12
|
|
|
14
13
|
const PopoverContent = react.forwardRef((props, ref) => {
|
|
15
14
|
const api = popoverContext.usePopoverContext();
|
|
@@ -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 { usePopoverContext } from './popover-context.mjs';
|
|
8
6
|
import { usePresenceContext } from '../presence/presence-context.mjs';
|
|
7
|
+
import { usePopoverContext } from './popover-context.mjs';
|
|
9
8
|
|
|
10
9
|
const PopoverContent = forwardRef((props, ref) => {
|
|
11
10
|
const api = usePopoverContext();
|
|
@@ -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 popoverContext = require('./popover-context.cjs');
|
|
12
10
|
const presenceContext = require('../presence/presence-context.cjs');
|
|
11
|
+
const popoverContext = require('./popover-context.cjs');
|
|
13
12
|
|
|
14
13
|
const PopoverPositioner = 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 { usePopoverContext } from './popover-context.mjs';
|
|
8
6
|
import { usePresenceContext } from '../presence/presence-context.mjs';
|
|
7
|
+
import { usePopoverContext } from './popover-context.mjs';
|
|
9
8
|
|
|
10
9
|
const PopoverPositioner = forwardRef(
|
|
11
10
|
(props, ref) => {
|
|
@@ -6,15 +6,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
const react = require('@zag-js/react');
|
|
8
8
|
require('react');
|
|
9
|
-
require('../presence/
|
|
9
|
+
const presenceContext = require('../presence/presence-context.cjs');
|
|
10
10
|
const splitPresenceProps = require('../presence/split-presence-props.cjs');
|
|
11
|
+
const usePresence = require('../presence/use-presence.cjs');
|
|
11
12
|
const runIfFn = require('../run-if-fn.cjs');
|
|
12
13
|
const popoverContext = require('./popover-context.cjs');
|
|
13
14
|
const usePopover = require('./use-popover.cjs');
|
|
14
|
-
const usePresence = require('../presence/use-presence.cjs');
|
|
15
|
-
const presenceContext = require('../presence/presence-context.cjs');
|
|
16
15
|
|
|
17
|
-
const
|
|
16
|
+
const PopoverRoot = (props) => {
|
|
18
17
|
const [presenceProps, { children, ...localProps }] = splitPresenceProps.splitPresenceProps(props);
|
|
19
18
|
const api = usePopover.usePopover(localProps);
|
|
20
19
|
const presenceApi = usePresence.usePresence(react.mergeProps({ present: api.isOpen }, presenceProps));
|
|
@@ -22,4 +21,4 @@ const Popover = (props) => {
|
|
|
22
21
|
return /* @__PURE__ */ jsxRuntime.jsx(popoverContext.PopoverProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(presenceContext.PresenceProvider, { value: presenceApi, children: view }) });
|
|
23
22
|
};
|
|
24
23
|
|
|
25
|
-
exports.
|
|
24
|
+
exports.PopoverRoot = PopoverRoot;
|
|
@@ -2,7 +2,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { UsePresenceProps } from '../presence';
|
|
4
4
|
import { type UsePopoverProps, type UsePopoverReturn } from './use-popover';
|
|
5
|
-
export interface
|
|
5
|
+
export interface PopoverRootProps extends UsePopoverProps, UsePresenceProps {
|
|
6
6
|
children?: ReactNode | ((api: UsePopoverReturn) => ReactNode);
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const PopoverRoot: (props: PopoverRootProps) => JSX.Element;
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import 'react';
|
|
5
|
-
import '../presence/
|
|
5
|
+
import { PresenceProvider } from '../presence/presence-context.mjs';
|
|
6
6
|
import { splitPresenceProps } from '../presence/split-presence-props.mjs';
|
|
7
|
+
import { usePresence } from '../presence/use-presence.mjs';
|
|
7
8
|
import { runIfFn } from '../run-if-fn.mjs';
|
|
8
9
|
import { PopoverProvider } from './popover-context.mjs';
|
|
9
10
|
import { usePopover } from './use-popover.mjs';
|
|
10
|
-
import { usePresence } from '../presence/use-presence.mjs';
|
|
11
|
-
import { PresenceProvider } from '../presence/presence-context.mjs';
|
|
12
11
|
|
|
13
|
-
const
|
|
12
|
+
const PopoverRoot = (props) => {
|
|
14
13
|
const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);
|
|
15
14
|
const api = usePopover(localProps);
|
|
16
15
|
const presenceApi = usePresence(mergeProps({ present: api.isOpen }, presenceProps));
|
|
@@ -18,4 +17,4 @@ const Popover = (props) => {
|
|
|
18
17
|
return /* @__PURE__ */ jsx(PopoverProvider, { value: api, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presenceApi, children: view }) });
|
|
19
18
|
};
|
|
20
19
|
|
|
21
|
-
export {
|
|
20
|
+
export { PopoverRoot };
|
|
@@ -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 popoverContext = require('./popover-context.cjs');
|
|
12
10
|
const presenceContext = require('../presence/presence-context.cjs');
|
|
11
|
+
const popoverContext = require('./popover-context.cjs');
|
|
13
12
|
|
|
14
13
|
const PopoverTrigger = react.forwardRef((props, ref) => {
|
|
15
14
|
const api = popoverContext.usePopoverContext();
|
|
@@ -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 { usePopoverContext } from './popover-context.mjs';
|
|
8
6
|
import { usePresenceContext } from '../presence/presence-context.mjs';
|
|
7
|
+
import { usePopoverContext } from './popover-context.mjs';
|
|
9
8
|
|
|
10
9
|
const PopoverTrigger = forwardRef((props, ref) => {
|
|
11
10
|
const api = usePopoverContext();
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
type PopoverType = typeof Popover;
|
|
5
|
-
declare const meta: Meta<PopoverType>;
|
|
3
|
+
declare const meta: Meta;
|
|
6
4
|
export default meta;
|
|
7
5
|
export declare const Basic: () => JSX.Element;
|
|
8
6
|
export declare const Portalled: () => JSX.Element;
|
package/popover/use-popover.cjs
CHANGED
|
@@ -6,9 +6,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const popover = require('@zag-js/popover');
|
|
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' } });
|
package/popover/use-popover.mjs
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import * as popover from '@zag-js/popover';
|
|
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 usePopover = (props = {}) => {
|
|
10
9
|
const initialContext = {
|
package/portal.cjs
CHANGED
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
|
|
6
6
|
const react = require('react');
|
|
7
7
|
const reactDom = require('react-dom');
|
|
8
|
-
require('./environment/index.cjs');
|
|
9
|
-
const useIsServer = require('./use-is-server.cjs');
|
|
10
8
|
const environmentContext = require('./environment/environment-context.cjs');
|
|
9
|
+
const useIsServer = require('./use-is-server.cjs');
|
|
11
10
|
|
|
12
11
|
const Portal = (props) => {
|
|
13
12
|
const { children, container, disabled } = props;
|
package/portal.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Children } from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import './environment/index.mjs';
|
|
5
|
-
import { useIsServer } from './use-is-server.mjs';
|
|
6
4
|
import { useEnvironmentContext } from './environment/environment-context.mjs';
|
|
5
|
+
import { useIsServer } from './use-is-server.mjs';
|
|
7
6
|
|
|
8
7
|
const Portal = (props) => {
|
|
9
8
|
const { children, container, disabled } = props;
|
package/presence/index.cjs
CHANGED
|
@@ -9,14 +9,12 @@ const presencePropsContext = require('./presence-props-context.cjs');
|
|
|
9
9
|
const splitPresenceProps = require('./split-presence-props.cjs');
|
|
10
10
|
const usePresence = require('./use-presence.cjs');
|
|
11
11
|
|
|
12
|
-
const Presence = Object.assign(presence.Presence, {
|
|
13
|
-
Root: presence.Presence
|
|
14
|
-
});
|
|
15
12
|
|
|
13
|
+
|
|
14
|
+
exports.Presence = presence.Presence;
|
|
16
15
|
exports.PresenceProvider = presenceContext.PresenceProvider;
|
|
17
16
|
exports.usePresenceContext = presenceContext.usePresenceContext;
|
|
18
17
|
exports.PresencePropsProvider = presencePropsContext.PresencePropsProvider;
|
|
19
18
|
exports.usePresencePropsContext = presencePropsContext.usePresencePropsContext;
|
|
20
19
|
exports.splitPresenceProps = splitPresenceProps.splitPresenceProps;
|
|
21
20
|
exports.usePresence = usePresence.usePresence;
|
|
22
|
-
exports.Presence = Presence;
|
package/presence/index.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/// <reference types="react" />
|
|
3
|
-
import { type PresenceProps } from './presence';
|
|
1
|
+
import { Presence, type PresenceProps } from './presence';
|
|
4
2
|
import { PresenceProvider, usePresenceContext, type PresenceContext } from './presence-context';
|
|
5
3
|
import { PresencePropsProvider, usePresencePropsContext, type PresencePropsContext } from './presence-props-context';
|
|
6
4
|
import { splitPresenceProps } from './split-presence-props';
|
|
7
5
|
import { usePresence, type UsePresenceProps, type UsePresenceReturn } from './use-presence';
|
|
8
|
-
declare const Presence: ForwardRefExoticComponent<PresenceProps & RefAttributes<HTMLDivElement>> & {
|
|
9
|
-
Root: ForwardRefExoticComponent<PresenceProps & RefAttributes<HTMLDivElement>>;
|
|
10
|
-
};
|
|
11
6
|
export { Presence, PresencePropsProvider, PresenceProvider, splitPresenceProps, usePresence, usePresenceContext, usePresencePropsContext, };
|
|
12
7
|
export type { PresenceContext, PresenceProps, PresencePropsContext, UsePresenceProps, UsePresenceReturn, };
|
package/presence/index.mjs
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
export { Presence } from './presence.mjs';
|
|
3
3
|
export { PresenceProvider, usePresenceContext } from './presence-context.mjs';
|
|
4
4
|
export { PresencePropsProvider, usePresencePropsContext } from './presence-props-context.mjs';
|
|
5
5
|
export { splitPresenceProps } from './split-presence-props.mjs';
|
|
6
6
|
export { usePresence } from './use-presence.mjs';
|
|
7
|
-
|
|
8
|
-
const Presence = Object.assign(Presence$1, {
|
|
9
|
-
Root: Presence$1
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export { Presence };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
type PresenceType = typeof Presence;
|
|
5
|
-
declare const meta: Meta<PresenceType>;
|
|
3
|
+
declare const meta: Meta;
|
|
6
4
|
export default meta;
|
|
7
5
|
export declare const Basic: () => JSX.Element;
|
|
8
6
|
export declare const LazyMount: () => JSX.Element;
|
package/progress/index.cjs
CHANGED
|
@@ -3,36 +3,37 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
|
-
const progress = require('./progress.cjs');
|
|
7
6
|
const progressCircle = require('./progress-circle.cjs');
|
|
8
7
|
const progressCircleRange = require('./progress-circle-range.cjs');
|
|
9
8
|
const progressCircleTrack = require('./progress-circle-track.cjs');
|
|
10
9
|
const progressContext = require('./progress-context.cjs');
|
|
11
|
-
const progressIndicator = require('./progress-indicator.cjs');
|
|
12
10
|
const progressLabel = require('./progress-label.cjs');
|
|
13
11
|
const progressRange = require('./progress-range.cjs');
|
|
12
|
+
const progressRoot = require('./progress-root.cjs');
|
|
14
13
|
const progressTrack = require('./progress-track.cjs');
|
|
15
14
|
const progressValueText = require('./progress-value-text.cjs');
|
|
15
|
+
const progressView = require('./progress-view.cjs');
|
|
16
16
|
|
|
17
|
-
const Progress =
|
|
18
|
-
Root:
|
|
17
|
+
const Progress = {
|
|
18
|
+
Root: progressRoot.ProgressRoot,
|
|
19
19
|
Label: progressLabel.ProgressLabel,
|
|
20
20
|
Track: progressTrack.ProgressTrack,
|
|
21
21
|
Range: progressRange.ProgressRange,
|
|
22
22
|
ValueText: progressValueText.ProgressValueText,
|
|
23
|
-
|
|
23
|
+
View: progressView.ProgressView,
|
|
24
24
|
Circle: progressCircle.ProgressCircle,
|
|
25
25
|
CircleTrack: progressCircleTrack.ProgressCircleTrack,
|
|
26
26
|
CircleRange: progressCircleRange.ProgressCircleRange
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
|
|
29
29
|
exports.ProgressCircle = progressCircle.ProgressCircle;
|
|
30
30
|
exports.ProgressCircleRange = progressCircleRange.ProgressCircleRange;
|
|
31
31
|
exports.ProgressCircleTrack = progressCircleTrack.ProgressCircleTrack;
|
|
32
32
|
exports.useProgressContext = progressContext.useProgressContext;
|
|
33
|
-
exports.ProgressIndicator = progressIndicator.ProgressIndicator;
|
|
34
33
|
exports.ProgressLabel = progressLabel.ProgressLabel;
|
|
35
34
|
exports.ProgressRange = progressRange.ProgressRange;
|
|
35
|
+
exports.ProgressRoot = progressRoot.ProgressRoot;
|
|
36
36
|
exports.ProgressTrack = progressTrack.ProgressTrack;
|
|
37
37
|
exports.ProgressValueText = progressValueText.ProgressValueText;
|
|
38
|
+
exports.ProgressView = progressView.ProgressView;
|
|
38
39
|
exports.Progress = Progress;
|
package/progress/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
3
|
/// <reference types="react" />
|
|
4
|
-
import { type ProgressProps } from './progress';
|
|
5
4
|
import { ProgressCircle, type ProgressCircleProps } from './progress-circle';
|
|
6
5
|
import { ProgressCircleRange, type ProgressCircleRangeProps } from './progress-circle-range';
|
|
7
6
|
import { ProgressCircleTrack, type ProgressCircleTrackProps } from './progress-circle-track';
|
|
8
7
|
import { useProgressContext, type ProgressContext } from './progress-context';
|
|
9
|
-
import { ProgressIndicator, type ProgressIndicatorProps } from './progress-indicator';
|
|
10
8
|
import { ProgressLabel, type ProgressLabelProps } from './progress-label';
|
|
11
9
|
import { ProgressRange, type ProgressRangeProps } from './progress-range';
|
|
10
|
+
import { ProgressRoot, type ProgressRootProps } from './progress-root';
|
|
12
11
|
import { ProgressTrack, type ProgressTrackProps } from './progress-track';
|
|
13
12
|
import { ProgressValueText, type ProgressValueTextProps } from './progress-value-text';
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
import { ProgressView, type ProgressViewProps } from './progress-view';
|
|
14
|
+
export declare const Progress: {
|
|
15
|
+
Root: ForwardRefExoticComponent<ProgressRootProps & RefAttributes<HTMLDivElement>>;
|
|
16
16
|
Label: ForwardRefExoticComponent<ProgressLabelProps & RefAttributes<HTMLLabelElement>>;
|
|
17
17
|
Track: ForwardRefExoticComponent<ProgressTrackProps & RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Range: ForwardRefExoticComponent<ProgressRangeProps & RefAttributes<HTMLDivElement>>;
|
|
19
19
|
ValueText: ForwardRefExoticComponent<ProgressValueTextProps & RefAttributes<HTMLSpanElement>>;
|
|
20
|
-
|
|
20
|
+
View: ForwardRefExoticComponent<ProgressViewProps & RefAttributes<HTMLSpanElement>>;
|
|
21
21
|
Circle: {
|
|
22
22
|
(props: ProgressCircleProps): JSX.Element;
|
|
23
23
|
displayName: string;
|
|
@@ -31,5 +31,5 @@ declare const Progress: ForwardRefExoticComponent<ProgressProps & RefAttributes<
|
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export {
|
|
35
|
-
export type { ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressContext,
|
|
34
|
+
export { ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressLabel, ProgressRange, ProgressRoot, ProgressTrack, ProgressValueText, ProgressView, useProgressContext, };
|
|
35
|
+
export type { ProgressCircleProps, ProgressCircleRangeProps, ProgressCircleTrackProps, ProgressContext, ProgressLabelProps, ProgressRangeProps, ProgressRootProps, ProgressTrackProps, ProgressValueTextProps, ProgressViewProps, };
|
package/progress/index.mjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { Progress as Progress$1 } from './progress.mjs';
|
|
3
2
|
import { ProgressCircle } from './progress-circle.mjs';
|
|
4
3
|
import { ProgressCircleRange } from './progress-circle-range.mjs';
|
|
5
4
|
import { ProgressCircleTrack } from './progress-circle-track.mjs';
|
|
6
5
|
export { useProgressContext } from './progress-context.mjs';
|
|
7
|
-
import { ProgressIndicator } from './progress-indicator.mjs';
|
|
8
6
|
import { ProgressLabel } from './progress-label.mjs';
|
|
9
7
|
import { ProgressRange } from './progress-range.mjs';
|
|
8
|
+
import { ProgressRoot } from './progress-root.mjs';
|
|
10
9
|
import { ProgressTrack } from './progress-track.mjs';
|
|
11
10
|
import { ProgressValueText } from './progress-value-text.mjs';
|
|
11
|
+
import { ProgressView } from './progress-view.mjs';
|
|
12
12
|
|
|
13
|
-
const Progress =
|
|
14
|
-
Root:
|
|
13
|
+
const Progress = {
|
|
14
|
+
Root: ProgressRoot,
|
|
15
15
|
Label: ProgressLabel,
|
|
16
16
|
Track: ProgressTrack,
|
|
17
17
|
Range: ProgressRange,
|
|
18
18
|
ValueText: ProgressValueText,
|
|
19
|
-
|
|
19
|
+
View: ProgressView,
|
|
20
20
|
Circle: ProgressCircle,
|
|
21
21
|
CircleTrack: ProgressCircleTrack,
|
|
22
22
|
CircleRange: ProgressCircleRange
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
|
|
25
|
-
export { Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack,
|
|
25
|
+
export { Progress, ProgressCircle, ProgressCircleRange, ProgressCircleTrack, ProgressLabel, ProgressRange, ProgressRoot, ProgressTrack, ProgressValueText, ProgressView };
|
|
@@ -12,7 +12,7 @@ const runIfFn = require('../run-if-fn.cjs');
|
|
|
12
12
|
const progressContext = require('./progress-context.cjs');
|
|
13
13
|
const useProgress = require('./use-progress.cjs');
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const ProgressRoot = react.forwardRef((props, ref) => {
|
|
16
16
|
const [progressProps, { children, ...localProps }] = createSplitProps.createSplitProps()(props, [
|
|
17
17
|
"defaultValue",
|
|
18
18
|
"dir",
|
|
@@ -27,8 +27,8 @@ const Progress = react.forwardRef((props, ref) => {
|
|
|
27
27
|
const api = useProgress.useProgress(progressProps);
|
|
28
28
|
const mergedProps = react$1.mergeProps(api.rootProps, localProps);
|
|
29
29
|
const view = runIfFn.runIfFn(children, api);
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(progressContext.ProgressProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(progressContext.ProgressProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) });
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
ProgressRoot.displayName = "ProgressRoot";
|
|
33
33
|
|
|
34
|
-
exports.
|
|
34
|
+
exports.ProgressRoot = ProgressRoot;
|
|
@@ -2,8 +2,8 @@ import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react'
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import { type Assign } from '../types';
|
|
4
4
|
import { type UseProgressProps, type UseProgressReturn } from './use-progress';
|
|
5
|
-
export interface
|
|
5
|
+
export interface ProgressRootProps extends Assign<Assign<HTMLArkProps<'div'>, {
|
|
6
6
|
children?: ReactNode | ((api: UseProgressReturn) => ReactNode);
|
|
7
7
|
}>, UseProgressProps> {
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const ProgressRoot: ForwardRefExoticComponent<ProgressRootProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -8,7 +8,7 @@ import { runIfFn } from '../run-if-fn.mjs';
|
|
|
8
8
|
import { ProgressProvider } from './progress-context.mjs';
|
|
9
9
|
import { useProgress } from './use-progress.mjs';
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const ProgressRoot = forwardRef((props, ref) => {
|
|
12
12
|
const [progressProps, { children, ...localProps }] = createSplitProps()(props, [
|
|
13
13
|
"defaultValue",
|
|
14
14
|
"dir",
|
|
@@ -23,8 +23,8 @@ const Progress = forwardRef((props, ref) => {
|
|
|
23
23
|
const api = useProgress(progressProps);
|
|
24
24
|
const mergedProps = mergeProps(api.rootProps, localProps);
|
|
25
25
|
const view = runIfFn(children, api);
|
|
26
|
-
return /* @__PURE__ */ jsx(ProgressProvider, { value: api, children: /* @__PURE__ */ jsx(ark.
|
|
26
|
+
return /* @__PURE__ */ jsx(ProgressProvider, { value: api, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) });
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
ProgressRoot.displayName = "ProgressRoot";
|
|
29
29
|
|
|
30
|
-
export {
|
|
30
|
+
export { ProgressRoot };
|
|
@@ -0,0 +1,20 @@
|
|
|
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 factory = require('../factory.cjs');
|
|
10
|
+
const progressContext = require('./progress-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ProgressView = react.forwardRef((props, ref) => {
|
|
13
|
+
const { state, ...rest } = props;
|
|
14
|
+
const api = progressContext.useProgressContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(api.getViewProps({ state }), rest);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
17
|
+
});
|
|
18
|
+
ProgressView.displayName = "ProgressView";
|
|
19
|
+
|
|
20
|
+
exports.ProgressView = ProgressView;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { ViewProps } from '@zag-js/progress';
|
|
4
|
+
import { type HTMLArkProps } from '../factory';
|
|
5
|
+
import type { Assign } from '../types';
|
|
6
|
+
export interface ProgressViewProps extends Assign<HTMLArkProps<'span'>, ViewProps> {
|
|
7
|
+
}
|
|
8
|
+
export declare const ProgressView: ForwardRefExoticComponent<ProgressViewProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.mjs';
|
|
6
|
+
import { useProgressContext } from './progress-context.mjs';
|
|
7
|
+
|
|
8
|
+
const ProgressView = forwardRef((props, ref) => {
|
|
9
|
+
const { state, ...rest } = props;
|
|
10
|
+
const api = useProgressContext();
|
|
11
|
+
const mergedProps = mergeProps(api.getViewProps({ state }), rest);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
13
|
+
});
|
|
14
|
+
ProgressView.displayName = "ProgressView";
|
|
15
|
+
|
|
16
|
+
export { ProgressView };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import type { Meta } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
type ProgressType = typeof Progress;
|
|
5
|
-
declare const meta: Meta<ProgressType>;
|
|
3
|
+
declare const meta: Meta;
|
|
6
4
|
export default meta;
|
|
7
5
|
export declare const Basic: () => JSX.Element;
|
|
8
6
|
export declare const InitialValue: () => JSX.Element;
|