@ark-ui/react 0.13.1 → 0.15.0-beta.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 +37 -2
- package/accordion/accordion-content.cjs +8 -8
- package/accordion/accordion-content.d.ts +7 -10
- package/accordion/accordion-content.mjs +8 -8
- package/accordion/accordion-context.d.ts +2 -9
- package/accordion/accordion-item-context.d.ts +3 -5
- package/accordion/accordion-item.d.ts +5 -8
- package/accordion/accordion-trigger.d.ts +6 -7
- package/accordion/accordion.cjs +3 -2
- package/accordion/accordion.d.ts +5 -11
- package/accordion/accordion.mjs +3 -2
- package/accordion/accordion.stories.d.ts +1 -1
- package/accordion/index.d.ts +13 -34
- package/accordion/use-accordion.d.ts +4 -9
- package/avatar/avatar-context.d.ts +2 -9
- package/avatar/avatar-fallback.d.ts +6 -7
- package/avatar/avatar-image.d.ts +6 -7
- package/avatar/avatar.d.ts +5 -9
- package/avatar/avatar.test.d.ts +1 -0
- package/avatar/index.d.ts +11 -22
- package/avatar/use-avatar.d.ts +4 -8
- package/carousel/carousel-context.d.ts +2 -9
- package/carousel/carousel-control.d.ts +6 -7
- package/carousel/carousel-indicator-group.d.ts +6 -7
- package/carousel/carousel-indicator.d.ts +5 -8
- package/carousel/carousel-next-slide-trigger.d.ts +6 -7
- package/carousel/carousel-prev-slide-trigger.d.ts +6 -7
- package/carousel/carousel-slide-group.d.ts +6 -7
- package/carousel/carousel-slide.d.ts +5 -8
- package/carousel/carousel-viewport.d.ts +6 -7
- package/carousel/carousel.d.ts +8 -11
- package/carousel/index.d.ts +25 -53
- package/carousel/use-carousel.d.ts +4 -8
- package/checkbox/checkbox-context.d.ts +2 -9
- package/checkbox/checkbox-control.cjs +3 -6
- package/checkbox/checkbox-control.d.ts +6 -7
- package/checkbox/checkbox-control.mjs +4 -7
- package/checkbox/checkbox-label.d.ts +6 -7
- package/checkbox/checkbox.cjs +7 -4
- package/checkbox/checkbox.d.ts +6 -10
- package/checkbox/checkbox.mjs +8 -5
- package/checkbox/checkbox.stories.d.ts +1 -1
- package/checkbox/index.d.ts +12 -29
- package/checkbox/use-checkbox.d.ts +5 -10
- package/color-picker/color-picker-area-gradient.d.ts +6 -7
- package/color-picker/color-picker-area-thumb.d.ts +6 -7
- package/color-picker/color-picker-area.d.ts +5 -8
- package/color-picker/color-picker-channel-input.d.ts +6 -7
- package/color-picker/color-picker-channel-slider-background.d.ts +6 -7
- package/color-picker/color-picker-channel-slider-thumb.d.ts +6 -7
- package/color-picker/color-picker-channel-slider-track.d.ts +5 -8
- package/color-picker/color-picker-content.d.ts +6 -7
- package/color-picker/color-picker-context.d.ts +2 -9
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +6 -7
- package/color-picker/color-picker-swatch-background.d.ts +6 -7
- package/color-picker/color-picker-swatch-group.d.ts +6 -7
- package/color-picker/color-picker-swatch.d.ts +5 -8
- package/color-picker/index.d.ts +23 -52
- package/color-picker/use-color-picker.cjs +2 -7
- package/color-picker/use-color-picker.d.ts +4 -9
- package/color-picker/use-color-picker.mjs +3 -8
- package/combobox/combobox-clear-trigger.cjs +2 -2
- package/combobox/combobox-clear-trigger.d.ts +6 -7
- package/combobox/combobox-clear-trigger.mjs +2 -2
- package/combobox/combobox-content.cjs +8 -9
- package/combobox/combobox-content.d.ts +7 -10
- package/combobox/combobox-content.mjs +8 -9
- package/combobox/combobox-context.d.ts +4 -10
- package/combobox/combobox-control.cjs +2 -2
- package/combobox/combobox-control.d.ts +6 -7
- package/combobox/combobox-control.mjs +2 -2
- package/combobox/combobox-input.cjs +2 -2
- package/combobox/combobox-input.d.ts +6 -7
- package/combobox/combobox-input.mjs +2 -2
- package/combobox/combobox-item-context.cjs +15 -0
- package/combobox/combobox-item-context.d.ts +5 -0
- package/combobox/combobox-item-context.mjs +10 -0
- package/combobox/{combobox-option-group.cjs → combobox-item-group-label.cjs} +6 -6
- package/combobox/combobox-item-group-label.d.ts +7 -0
- package/combobox/{combobox-option-group.mjs → combobox-item-group-label.mjs} +6 -6
- package/combobox/{combobox-option-group-label.cjs → combobox-item-group.cjs} +6 -6
- package/combobox/combobox-item-group.d.ts +7 -0
- package/combobox/{combobox-option-group-label.mjs → combobox-item-group.mjs} +6 -6
- package/combobox/combobox-item-indicator.cjs +23 -0
- package/combobox/combobox-item-indicator.d.ts +7 -0
- package/combobox/combobox-item-indicator.mjs +19 -0
- package/combobox/combobox-item-text.cjs +21 -0
- package/combobox/combobox-item-text.d.ts +7 -0
- package/combobox/combobox-item-text.mjs +17 -0
- package/combobox/combobox-item.cjs +25 -0
- package/{select/select-option.d.ts → combobox/combobox-item.d.ts} +5 -5
- package/combobox/combobox-item.mjs +21 -0
- package/combobox/combobox-label.cjs +2 -2
- package/combobox/combobox-label.d.ts +6 -7
- package/combobox/combobox-label.mjs +2 -2
- package/combobox/combobox-positioner.cjs +2 -2
- package/combobox/combobox-positioner.d.ts +6 -7
- package/combobox/combobox-positioner.mjs +2 -2
- package/combobox/combobox-trigger.cjs +2 -2
- package/combobox/combobox-trigger.d.ts +6 -7
- package/combobox/combobox-trigger.mjs +2 -2
- package/combobox/combobox.cjs +20 -18
- package/combobox/combobox.d.ts +9 -13
- package/combobox/combobox.mjs +20 -18
- package/combobox/combobox.stories.d.ts +1 -0
- package/combobox/index.cjs +15 -9
- package/combobox/index.d.ts +35 -72
- package/combobox/index.mjs +11 -7
- package/combobox/use-combobox.cjs +24 -3
- package/combobox/use-combobox.d.ts +8 -9
- package/combobox/use-combobox.mjs +24 -3
- package/compose-refs.cjs +0 -1
- package/compose-refs.mjs +0 -1
- package/create-context.d.ts +3 -2
- package/date-picker/date-picker-clear-trigger.d.ts +6 -7
- package/date-picker/date-picker-column-header.d.ts +6 -7
- package/date-picker/date-picker-content.d.ts +6 -7
- package/date-picker/date-picker-context.d.ts +2 -9
- package/date-picker/date-picker-control.d.ts +6 -7
- package/date-picker/date-picker-day-cell-trigger.d.ts +6 -7
- package/date-picker/date-picker-day-cell.d.ts +5 -8
- package/date-picker/date-picker-grid.d.ts +5 -8
- package/date-picker/date-picker-input.d.ts +6 -7
- package/date-picker/date-picker-month-cell-trigger.d.ts +6 -7
- package/date-picker/date-picker-month-cell.d.ts +5 -8
- package/date-picker/date-picker-month-select.d.ts +6 -7
- package/date-picker/date-picker-next-trigger.d.ts +6 -7
- package/date-picker/date-picker-positioner.d.ts +6 -7
- package/date-picker/date-picker-prev-trigger.d.ts +5 -8
- package/date-picker/date-picker-row-group.d.ts +6 -7
- package/date-picker/date-picker-row-header.d.ts +6 -7
- package/date-picker/date-picker-row.d.ts +6 -7
- package/date-picker/date-picker-trigger.d.ts +6 -7
- package/date-picker/date-picker-view-trigger.d.ts +5 -8
- package/date-picker/date-picker-year-cell-trigger.d.ts +6 -7
- package/date-picker/date-picker-year-cell.d.ts +5 -8
- package/date-picker/date-picker-year-select.cjs +0 -1
- package/date-picker/date-picker-year-select.d.ts +6 -12
- package/date-picker/date-picker-year-select.mjs +1 -1
- package/date-picker/index.d.ts +56 -111
- package/date-picker/use-date-picker.d.ts +4 -8
- package/dialog/dialog-backdrop.cjs +14 -8
- package/dialog/dialog-backdrop.d.ts +7 -10
- package/dialog/dialog-backdrop.mjs +14 -8
- package/dialog/dialog-close-trigger.d.ts +6 -7
- package/dialog/dialog-container.d.ts +6 -7
- package/dialog/dialog-content.cjs +8 -9
- package/dialog/dialog-content.d.ts +7 -10
- package/dialog/dialog-content.mjs +8 -9
- package/dialog/dialog-context.d.ts +2 -9
- package/dialog/dialog-description.d.ts +6 -7
- package/dialog/dialog-title.d.ts +6 -7
- package/dialog/dialog-trigger.d.ts +6 -7
- package/dialog/index.d.ts +14 -32
- package/dialog/use-dialog.d.ts +4 -8
- package/editable/editable-area.d.ts +6 -7
- package/editable/editable-cancel-trigger.d.ts +6 -7
- package/editable/editable-context.d.ts +2 -9
- package/editable/editable-control.d.ts +6 -7
- package/editable/editable-edit-trigger.d.ts +6 -7
- package/editable/editable-input.d.ts +6 -7
- package/editable/editable-label.d.ts +6 -7
- package/editable/editable-preview.d.ts +6 -7
- package/editable/editable-submit-trigger.d.ts +6 -7
- package/editable/editable.d.ts +7 -14
- package/editable/index.d.ts +24 -57
- package/editable/use-editable.d.ts +4 -9
- package/factory.cjs +2 -2
- package/factory.d.ts +4 -1
- package/factory.mjs +1 -1
- package/hover-card/hover-card-arrow-tip.d.ts +6 -7
- package/hover-card/hover-card-arrow.d.ts +6 -7
- package/hover-card/hover-card-content.cjs +8 -9
- package/hover-card/hover-card-content.d.ts +7 -10
- package/hover-card/hover-card-content.mjs +8 -9
- package/hover-card/hover-card-context.d.ts +2 -9
- package/hover-card/hover-card-positioner.d.ts +6 -7
- package/hover-card/hover-card-trigger.d.ts +6 -7
- package/hover-card/hover-card.stories.d.ts +1 -1
- package/hover-card/index.d.ts +11 -23
- package/hover-card/use-hover-card.d.ts +4 -8
- package/index.cjs +36 -21
- package/index.d.ts +1 -0
- package/index.mjs +17 -8
- package/menu/index.d.ts +21 -54
- package/menu/menu-arrow-tip.d.ts +6 -7
- package/menu/menu-arrow.d.ts +6 -7
- package/menu/menu-content.cjs +11 -2
- package/menu/menu-content.d.ts +7 -8
- package/menu/menu-content.mjs +11 -2
- package/menu/menu-context-trigger.d.ts +6 -7
- package/menu/menu-context.d.ts +2 -3
- package/menu/menu-item-group-label.d.ts +5 -8
- package/menu/menu-item-group.d.ts +5 -8
- package/menu/menu-item.d.ts +6 -12
- package/menu/menu-option-item.d.ts +5 -10
- package/menu/menu-positioner.d.ts +6 -7
- package/menu/menu-separator.d.ts +6 -7
- package/menu/menu-trigger-item.d.ts +6 -7
- package/menu/menu-trigger.d.ts +6 -7
- package/menu/menu.d.ts +2 -1
- package/menu/menu.stories.d.ts +1 -1
- package/menu/use-menu.d.ts +3 -2
- package/number-input/index.d.ts +18 -41
- package/number-input/number-input-context.d.ts +2 -9
- package/number-input/number-input-control.d.ts +6 -7
- package/number-input/number-input-decrement-trigger.d.ts +6 -7
- package/number-input/number-input-field.d.ts +6 -7
- package/number-input/number-input-increment-trigger.d.ts +6 -7
- package/number-input/number-input-label.d.ts +6 -7
- package/number-input/number-input-scrubber.d.ts +6 -7
- package/number-input/number-input.d.ts +5 -11
- package/number-input/number-input.stories.d.ts +2 -0
- package/number-input/use-number-input.cjs +2 -7
- package/number-input/use-number-input.d.ts +4 -9
- package/number-input/use-number-input.mjs +3 -8
- package/package.json +61 -53
- package/pagination/index.d.ts +20 -49
- package/pagination/pagination-context.d.ts +2 -9
- package/pagination/pagination-ellipsis.d.ts +5 -8
- package/pagination/pagination-list-item.d.ts +6 -7
- package/pagination/pagination-list.d.ts +6 -7
- package/pagination/pagination-next-page-trigger.d.ts +6 -7
- package/pagination/pagination-page-trigger.d.ts +5 -8
- package/pagination/pagination-prev-page-trigger.d.ts +6 -7
- package/pagination/pagination.d.ts +6 -10
- package/pagination/use-pagination.d.ts +4 -9
- package/pin-input/index.d.ts +11 -30
- package/pin-input/pin-input-context.d.ts +2 -9
- package/pin-input/pin-input-control.cjs +3 -6
- package/pin-input/pin-input-control.d.ts +6 -7
- package/pin-input/pin-input-control.mjs +4 -7
- package/pin-input/pin-input-field.d.ts +5 -8
- package/pin-input/pin-input-label.d.ts +6 -7
- package/pin-input/pin-input.cjs +6 -3
- package/pin-input/pin-input.d.ts +5 -11
- package/pin-input/pin-input.mjs +7 -4
- package/pin-input/use-pin-input.d.ts +4 -9
- package/popover/index.d.ts +19 -39
- package/popover/popover-anchor.d.ts +6 -7
- package/popover/popover-arrow-tip.d.ts +6 -7
- package/popover/popover-arrow.d.ts +6 -7
- package/popover/popover-close-trigger.d.ts +6 -7
- package/popover/popover-content.cjs +8 -9
- package/popover/popover-content.d.ts +7 -10
- package/popover/popover-content.mjs +8 -9
- package/popover/popover-context.d.ts +2 -9
- package/popover/popover-description.d.ts +6 -7
- package/popover/popover-positioner.d.ts +6 -7
- package/popover/popover-title.d.ts +6 -7
- package/popover/popover-trigger.d.ts +6 -7
- package/popover/use-popover.d.ts +4 -8
- package/presence/presence.d.ts +2 -2
- package/presence/use-presence.d.ts +3 -2
- package/pressable/index.d.ts +4 -24
- package/pressable/pressable.d.ts +5 -15
- package/pressable/use-pressable.d.ts +4 -8
- package/radio-group/index.d.ts +15 -45
- package/radio-group/radio-context.d.ts +2 -12
- package/radio-group/radio-control.cjs +4 -7
- package/radio-group/radio-control.d.ts +6 -7
- package/radio-group/radio-control.mjs +5 -8
- package/radio-group/radio-group-context.d.ts +2 -9
- package/radio-group/radio-group-label.d.ts +6 -7
- package/radio-group/radio-group.cjs +0 -1
- package/radio-group/radio-group.d.ts +5 -11
- package/radio-group/radio-group.mjs +0 -1
- package/radio-group/radio-label.d.ts +6 -7
- package/radio-group/radio.cjs +12 -4
- package/radio-group/radio.d.ts +6 -18
- package/radio-group/radio.mjs +13 -5
- package/radio-group/use-radio-group.d.ts +4 -9
- package/range-slider/index.d.ts +23 -65
- package/range-slider/range-slider-context.d.ts +2 -9
- package/range-slider/range-slider-control.d.ts +6 -7
- package/range-slider/range-slider-label.d.ts +6 -7
- package/range-slider/range-slider-marker-group.d.ts +6 -7
- package/range-slider/range-slider-marker.d.ts +5 -8
- package/range-slider/range-slider-output.d.ts +4 -8
- package/range-slider/range-slider-range.d.ts +6 -7
- package/range-slider/range-slider-thumb.cjs +5 -5
- package/range-slider/range-slider-thumb.d.ts +5 -8
- package/range-slider/range-slider-thumb.mjs +5 -5
- package/range-slider/range-slider-track.d.ts +6 -7
- package/range-slider/range-slider.cjs +3 -0
- package/range-slider/range-slider.d.ts +4 -11
- package/range-slider/range-slider.mjs +3 -0
- package/range-slider/use-range-slider.cjs +3 -1
- package/range-slider/use-range-slider.d.ts +4 -9
- package/range-slider/use-range-slider.mjs +3 -1
- package/rating-group/index.d.ts +11 -34
- package/rating-group/rating-group-context.d.ts +2 -9
- package/rating-group/rating-group-control.cjs +4 -7
- package/rating-group/rating-group-control.d.ts +6 -10
- package/rating-group/rating-group-control.mjs +5 -8
- package/rating-group/rating-group-label.d.ts +6 -7
- package/rating-group/rating-group.cjs +6 -3
- package/rating-group/rating-group.d.ts +5 -11
- package/rating-group/rating-group.mjs +7 -4
- package/rating-group/rating-group.stories.d.ts +1 -1
- package/rating-group/rating.d.ts +4 -8
- package/rating-group/use-rating-group.d.ts +4 -9
- package/run-if-fn.d.ts +0 -1
- package/segment-group/index.d.ts +18 -50
- package/segment-group/segment-context.d.ts +2 -12
- package/segment-group/segment-control.cjs +4 -7
- package/segment-group/segment-control.d.ts +6 -7
- package/segment-group/segment-control.mjs +5 -8
- package/segment-group/segment-group-context.d.ts +2 -9
- package/segment-group/segment-group-indicator.d.ts +6 -7
- package/segment-group/segment-group-label.d.ts +6 -7
- package/segment-group/segment-group.cjs +0 -1
- package/segment-group/segment-group.d.ts +5 -11
- package/segment-group/segment-group.mjs +0 -1
- package/segment-group/segment-label.d.ts +6 -7
- package/segment-group/segment.cjs +12 -4
- package/segment-group/segment.d.ts +6 -18
- package/segment-group/segment.mjs +13 -5
- package/segment-group/use-segment-group.d.ts +4 -9
- package/select/index.cjs +30 -18
- package/select/index.d.ts +44 -46
- package/select/index.mjs +19 -9
- package/select/select-clear-trigger.cjs +21 -0
- package/select/select-clear-trigger.d.ts +7 -0
- package/select/select-clear-trigger.mjs +17 -0
- package/select/select-content.cjs +8 -9
- package/select/select-content.d.ts +7 -10
- package/select/select-content.mjs +8 -9
- package/select/select-context.d.ts +4 -10
- package/select/select-control.cjs +19 -0
- package/select/select-control.d.ts +7 -0
- package/select/select-control.mjs +15 -0
- package/select/select-item-context.cjs +15 -0
- package/select/select-item-context.d.ts +5 -0
- package/select/select-item-context.mjs +10 -0
- package/select/{select-option-group.cjs → select-item-group-label.cjs} +8 -6
- package/select/select-item-group-label.d.ts +7 -0
- package/select/{select-option-group.mjs → select-item-group-label.mjs} +8 -6
- package/select/select-item-group.cjs +21 -0
- package/select/select-item-group.d.ts +7 -0
- package/select/select-item-group.mjs +17 -0
- package/select/{select-option-group-label.cjs → select-item-indicator.cjs} +7 -6
- package/select/select-item-indicator.d.ts +7 -0
- package/select/select-item-indicator.mjs +19 -0
- package/select/select-item-text.cjs +21 -0
- package/select/select-item-text.d.ts +7 -0
- package/select/select-item-text.mjs +17 -0
- package/select/select-item.cjs +25 -0
- package/select/select-item.d.ts +11 -0
- package/select/select-item.mjs +21 -0
- package/select/select-label.cjs +2 -2
- package/select/select-label.d.ts +6 -7
- package/select/select-label.mjs +2 -2
- package/select/select-positioner.cjs +2 -2
- package/select/select-positioner.d.ts +6 -7
- package/select/select-positioner.mjs +2 -2
- package/select/select-trigger.cjs +2 -2
- package/select/select-trigger.d.ts +6 -7
- package/select/select-trigger.mjs +2 -2
- package/select/select-value.cjs +19 -0
- package/select/select-value.d.ts +7 -0
- package/select/select-value.mjs +15 -0
- package/select/select.anatomy.cjs +12 -0
- package/select/select.anatomy.d.ts +3 -1
- package/select/select.anatomy.mjs +7 -0
- package/select/select.cjs +43 -30
- package/select/select.d.ts +9 -6
- package/select/select.mjs +43 -30
- package/select/select.stories.d.ts +3 -0
- package/select/use-select.cjs +13 -3
- package/select/use-select.d.ts +8 -11
- package/select/use-select.mjs +13 -3
- package/slider/index.d.ts +22 -59
- package/slider/slider-context.d.ts +2 -9
- package/slider/slider-control.d.ts +6 -7
- package/slider/slider-label.d.ts +6 -7
- package/slider/slider-marker-group.d.ts +6 -7
- package/slider/slider-marker.d.ts +5 -8
- package/slider/slider-output.d.ts +5 -8
- package/slider/slider-range.d.ts +6 -7
- package/slider/slider-thumb.cjs +3 -6
- package/slider/slider-thumb.d.ts +6 -7
- package/slider/slider-thumb.mjs +4 -7
- package/slider/slider-track.d.ts +6 -7
- package/slider/slider.cjs +9 -4
- package/slider/slider.d.ts +4 -8
- package/slider/slider.mjs +10 -5
- package/slider/use-slider.cjs +2 -7
- package/slider/use-slider.d.ts +4 -9
- package/slider/use-slider.mjs +3 -8
- package/splitter/index.d.ts +12 -46
- package/splitter/splitter-context.d.ts +2 -9
- package/splitter/splitter-panel.d.ts +5 -8
- package/splitter/splitter-resize-trigger.d.ts +5 -8
- package/splitter/splitter.d.ts +4 -17
- package/splitter/splitter.stories.d.ts +1 -1
- package/splitter/use-splitter.d.ts +4 -9
- package/switch/index.cjs +0 -3
- package/switch/index.d.ts +16 -42
- package/switch/index.mjs +1 -3
- package/switch/switch-context.d.ts +2 -9
- package/switch/switch-control.cjs +2 -2
- package/switch/switch-control.d.ts +6 -7
- package/switch/switch-control.mjs +2 -2
- package/switch/switch-label.d.ts +6 -7
- package/switch/switch-thumb.d.ts +6 -7
- package/switch/switch.cjs +4 -2
- package/switch/switch.d.ts +6 -11
- package/switch/switch.mjs +5 -3
- package/switch/switch.stories.d.ts +1 -0
- package/switch/switch.test.d.ts +1 -0
- package/switch/use-switch.d.ts +5 -10
- package/tabs/index.d.ts +15 -35
- package/tabs/tab-content.d.ts +6 -7
- package/tabs/tab-indicator.d.ts +6 -7
- package/tabs/tab-list.d.ts +6 -7
- package/tabs/tab-trigger.d.ts +5 -8
- package/tabs/tabs-context.d.ts +2 -9
- package/tabs/tabs.cjs +0 -1
- package/tabs/tabs.d.ts +5 -11
- package/tabs/tabs.mjs +0 -1
- package/tabs/tabs.stories.d.ts +1 -1
- package/tabs/use-tabs.cjs +21 -2
- package/tabs/use-tabs.d.ts +6 -11
- package/tabs/use-tabs.mjs +3 -3
- package/tags-input/index.d.ts +19 -46
- package/tags-input/tag-delete-trigger.d.ts +5 -8
- package/tags-input/tag-input.d.ts +5 -8
- package/tags-input/tag.d.ts +5 -8
- package/tags-input/tags-input-clear-trigger.d.ts +6 -7
- package/tags-input/tags-input-context.d.ts +2 -9
- package/tags-input/tags-input-control.cjs +3 -6
- package/tags-input/tags-input-control.d.ts +6 -7
- package/tags-input/tags-input-control.mjs +4 -7
- package/tags-input/tags-input-field.d.ts +6 -7
- package/tags-input/tags-input-label.d.ts +6 -7
- package/tags-input/tags-input.cjs +8 -6
- package/tags-input/tags-input.d.ts +6 -10
- package/tags-input/tags-input.mjs +9 -7
- package/tags-input/use-tags-input.d.ts +4 -9
- package/toast/index.d.ts +14 -31
- package/toast/toast-close-trigger.d.ts +6 -7
- package/toast/toast-description.d.ts +6 -7
- package/toast/toast-group.d.ts +6 -10
- package/toast/toast-item-context.d.ts +2 -9
- package/toast/toast-provider.cjs +0 -1
- package/toast/toast-provider.d.ts +4 -60
- package/toast/toast-provider.mjs +1 -1
- package/toast/toast-title.d.ts +6 -7
- package/toast/toast.d.ts +5 -8
- package/toast/toast.stories.d.ts +1 -1
- package/toast/use-toast-item.d.ts +2 -7
- package/toggle-group/index.cjs +17 -0
- package/toggle-group/index.d.ts +19 -0
- package/toggle-group/index.mjs +11 -0
- package/toggle-group/toggle-group-context.cjs +15 -0
- package/toggle-group/toggle-group-context.d.ts +5 -0
- package/toggle-group/toggle-group-context.mjs +10 -0
- package/toggle-group/toggle-group.cjs +35 -0
- package/toggle-group/toggle-group.d.ts +7 -0
- package/toggle-group/toggle-group.mjs +31 -0
- package/toggle-group/toggle-group.stories.d.ts +9 -0
- package/toggle-group/toggle-group.test.d.ts +1 -0
- package/toggle-group/toggle.cjs +21 -0
- package/toggle-group/toggle.d.ts +11 -0
- package/toggle-group/toggle.mjs +17 -0
- package/toggle-group/use-toggle-group.cjs +49 -0
- package/toggle-group/use-toggle-group.d.ts +7 -0
- package/toggle-group/use-toggle-group.mjs +26 -0
- package/tooltip/index.d.ts +11 -23
- package/tooltip/tooltip-arrow-tip.d.ts +6 -7
- package/tooltip/tooltip-arrow.d.ts +6 -7
- package/tooltip/tooltip-content.cjs +5 -6
- package/tooltip/tooltip-content.d.ts +7 -10
- package/tooltip/tooltip-content.mjs +5 -6
- package/tooltip/tooltip-context.d.ts +2 -9
- package/tooltip/tooltip-positioner.d.ts +6 -7
- package/tooltip/tooltip-trigger.d.ts +6 -7
- package/tooltip/use-tooltip.d.ts +4 -8
- package/types.d.ts +1 -0
- package/use-event.cjs +23 -0
- package/use-event.d.ts +12 -0
- package/use-event.mjs +19 -0
- package/use-latest-ref.cjs +14 -0
- package/use-latest-ref.mjs +10 -0
- package/accordion/accordion-item-presence.cjs +0 -16
- package/accordion/accordion-item-presence.d.ts +0 -4
- package/accordion/accordion-item-presence.mjs +0 -12
- package/combobox/combobox-option-group-label.d.ts +0 -10
- package/combobox/combobox-option-group.d.ts +0 -10
- package/combobox/combobox-option.cjs +0 -27
- package/combobox/combobox-option.d.ts +0 -14
- package/combobox/combobox-option.mjs +0 -23
- package/combobox/combobox-presence.cjs +0 -16
- package/combobox/combobox-presence.d.ts +0 -4
- package/combobox/combobox-presence.mjs +0 -12
- package/dialog/dialog-presence.cjs +0 -16
- package/dialog/dialog-presence.d.ts +0 -4
- package/dialog/dialog-presence.mjs +0 -12
- package/hover-card/hover-card-presence.cjs +0 -16
- package/hover-card/hover-card-presence.d.ts +0 -4
- package/hover-card/hover-card-presence.mjs +0 -12
- package/popover/popover-presence.cjs +0 -16
- package/popover/popover-presence.d.ts +0 -4
- package/popover/popover-presence.mjs +0 -12
- package/select/select-option-group-label.d.ts +0 -13
- package/select/select-option-group-label.mjs +0 -18
- package/select/select-option-group.d.ts +0 -10
- package/select/select-option.cjs +0 -26
- package/select/select-option.mjs +0 -22
- package/select/select-presence.cjs +0 -16
- package/select/select-presence.d.ts +0 -4
- package/select/select-presence.mjs +0 -12
- package/switch/switch-input.cjs +0 -19
- package/switch/switch-input.d.ts +0 -8
- package/switch/switch-input.mjs +0 -15
- package/tooltip/tooltip-presence.cjs +0 -16
- package/tooltip/tooltip-presence.d.ts +0 -4
- package/tooltip/tooltip-presence.mjs +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-beta.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"tabs",
|
|
33
33
|
"tags input",
|
|
34
34
|
"toast",
|
|
35
|
+
"toggle group",
|
|
35
36
|
"tooltip"
|
|
36
37
|
],
|
|
37
38
|
"homepage": "https://ark-ui.com",
|
|
@@ -60,74 +61,76 @@
|
|
|
60
61
|
"release-it": "release-it --config ../../release-it.json"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@zag-js/accordion": "0.
|
|
64
|
-
"@zag-js/anatomy": "0.
|
|
65
|
-
"@zag-js/avatar": "0.
|
|
66
|
-
"@zag-js/carousel": "0.
|
|
67
|
-
"@zag-js/checkbox": "0.
|
|
68
|
-
"@zag-js/color-picker": "0.
|
|
69
|
-
"@zag-js/color-utils": "0.
|
|
70
|
-
"@zag-js/combobox": "0.
|
|
71
|
-
"@zag-js/
|
|
72
|
-
"@zag-js/date-
|
|
73
|
-
"@zag-js/
|
|
74
|
-
"@zag-js/
|
|
75
|
-
"@zag-js/
|
|
76
|
-
"@zag-js/
|
|
77
|
-
"@zag-js/
|
|
78
|
-
"@zag-js/
|
|
79
|
-
"@zag-js/
|
|
80
|
-
"@zag-js/
|
|
81
|
-
"@zag-js/
|
|
82
|
-
"@zag-js/
|
|
83
|
-
"@zag-js/
|
|
84
|
-
"@zag-js/
|
|
85
|
-
"@zag-js/
|
|
86
|
-
"@zag-js/
|
|
87
|
-
"@zag-js/
|
|
88
|
-
"@zag-js/
|
|
89
|
-
"@zag-js/
|
|
90
|
-
"@zag-js/
|
|
91
|
-
"@zag-js/
|
|
92
|
-
"@zag-js/
|
|
93
|
-
"@zag-js/
|
|
94
|
-
"@zag-js/
|
|
95
|
-
"@zag-js/
|
|
64
|
+
"@zag-js/accordion": "0.19.1",
|
|
65
|
+
"@zag-js/anatomy": "0.19.1",
|
|
66
|
+
"@zag-js/avatar": "0.19.1",
|
|
67
|
+
"@zag-js/carousel": "0.19.1",
|
|
68
|
+
"@zag-js/checkbox": "0.19.1",
|
|
69
|
+
"@zag-js/color-picker": "0.19.1",
|
|
70
|
+
"@zag-js/color-utils": "0.19.1",
|
|
71
|
+
"@zag-js/combobox": "0.19.1",
|
|
72
|
+
"@zag-js/core": "0.19.1",
|
|
73
|
+
"@zag-js/date-picker": "0.19.1",
|
|
74
|
+
"@zag-js/date-utils": "0.19.1",
|
|
75
|
+
"@zag-js/dialog": "0.19.1",
|
|
76
|
+
"@zag-js/editable": "0.19.1",
|
|
77
|
+
"@zag-js/hover-card": "0.19.1",
|
|
78
|
+
"@zag-js/menu": "0.19.1",
|
|
79
|
+
"@zag-js/number-input": "0.19.1",
|
|
80
|
+
"@zag-js/pagination": "0.19.1",
|
|
81
|
+
"@zag-js/pin-input": "0.19.1",
|
|
82
|
+
"@zag-js/popover": "0.19.1",
|
|
83
|
+
"@zag-js/presence": "0.19.1",
|
|
84
|
+
"@zag-js/pressable": "0.19.1",
|
|
85
|
+
"@zag-js/radio-group": "0.19.1",
|
|
86
|
+
"@zag-js/range-slider": "0.19.1",
|
|
87
|
+
"@zag-js/rating-group": "0.19.1",
|
|
88
|
+
"@zag-js/react": "0.19.1",
|
|
89
|
+
"@zag-js/select": "0.19.1",
|
|
90
|
+
"@zag-js/slider": "0.19.1",
|
|
91
|
+
"@zag-js/splitter": "0.19.1",
|
|
92
|
+
"@zag-js/switch": "0.19.1",
|
|
93
|
+
"@zag-js/tabs": "0.19.1",
|
|
94
|
+
"@zag-js/tags-input": "0.19.1",
|
|
95
|
+
"@zag-js/toast": "0.19.1",
|
|
96
|
+
"@zag-js/toggle-group": "0.19.1",
|
|
97
|
+
"@zag-js/tooltip": "0.19.1",
|
|
98
|
+
"@zag-js/types": "0.19.1"
|
|
96
99
|
},
|
|
97
100
|
"devDependencies": {
|
|
98
101
|
"@release-it/keep-a-changelog": "4.0.0",
|
|
99
|
-
"@storybook/addon-a11y": "7.
|
|
100
|
-
"@storybook/addon-essentials": "7.
|
|
101
|
-
"@storybook/addons": "7.
|
|
102
|
-
"@storybook/react": "7.
|
|
103
|
-
"@storybook/react-vite": "7.
|
|
102
|
+
"@storybook/addon-a11y": "7.4.1",
|
|
103
|
+
"@storybook/addon-essentials": "7.4.1",
|
|
104
|
+
"@storybook/addons": "7.4.1",
|
|
105
|
+
"@storybook/react": "7.4.1",
|
|
106
|
+
"@storybook/react-vite": "7.4.1",
|
|
104
107
|
"@testing-library/dom": "9.3.1",
|
|
105
|
-
"@testing-library/jest-dom": "
|
|
108
|
+
"@testing-library/jest-dom": "6.1.3",
|
|
106
109
|
"@testing-library/react": "14.0.0",
|
|
107
110
|
"@testing-library/user-event": "14.4.3",
|
|
108
|
-
"@types/jsdom": "21.1.
|
|
109
|
-
"@types/react": "18.2.
|
|
111
|
+
"@types/jsdom": "21.1.2",
|
|
112
|
+
"@types/react": "18.2.21",
|
|
110
113
|
"@types/react-dom": "18.2.7",
|
|
111
114
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
112
|
-
"@typescript-eslint/eslint-plugin": "
|
|
113
|
-
"@typescript-eslint/parser": "
|
|
114
|
-
"@vitejs/plugin-react": "4.0.
|
|
115
|
-
"@vitest/coverage-v8": "0.34.
|
|
116
|
-
"eslint": "8.
|
|
117
|
-
"eslint-plugin-react": "7.33.
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "6.7.0",
|
|
116
|
+
"@typescript-eslint/parser": "6.7.0",
|
|
117
|
+
"@vitejs/plugin-react": "4.0.4",
|
|
118
|
+
"@vitest/coverage-v8": "0.34.3",
|
|
119
|
+
"eslint": "8.49.0",
|
|
120
|
+
"eslint-plugin-react": "7.33.2",
|
|
118
121
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
119
122
|
"globby": "13.2.2",
|
|
120
123
|
"jsdom": "22.1.0",
|
|
121
124
|
"react": "18.2.0",
|
|
122
125
|
"react-dom": "18.2.0",
|
|
123
126
|
"react-frame-component": "5.2.6",
|
|
124
|
-
"release-it": "16.1.
|
|
127
|
+
"release-it": "16.1.5",
|
|
125
128
|
"resize-observer-polyfill": "1.5.1",
|
|
126
|
-
"storybook": "7.
|
|
127
|
-
"typescript": "5.
|
|
129
|
+
"storybook": "7.4.1",
|
|
130
|
+
"typescript": "5.2.2",
|
|
128
131
|
"vite": "4.4.9",
|
|
129
|
-
"vite-plugin-dts": "3.5.
|
|
130
|
-
"vitest": "0.34.
|
|
132
|
+
"vite-plugin-dts": "3.5.3",
|
|
133
|
+
"vitest": "0.34.3"
|
|
131
134
|
},
|
|
132
135
|
"peerDependencies": {
|
|
133
136
|
"react": ">=18.0.0",
|
|
@@ -290,6 +293,11 @@
|
|
|
290
293
|
"import": "./toast/index.mjs",
|
|
291
294
|
"require": "./toast/index.cjs"
|
|
292
295
|
},
|
|
296
|
+
"./toggle-group": {
|
|
297
|
+
"types": "./toggle-group/index.d.ts",
|
|
298
|
+
"import": "./toggle-group/index.mjs",
|
|
299
|
+
"require": "./toggle-group/index.cjs"
|
|
300
|
+
},
|
|
293
301
|
"./tooltip": {
|
|
294
302
|
"types": "./tooltip/index.d.ts",
|
|
295
303
|
"import": "./tooltip/index.mjs",
|
package/pagination/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UsePaginationProps } from './use-pagination';
|
|
1
|
+
import { EllipsisProps, PageTriggerProps } from '@zag-js/pagination';
|
|
2
|
+
import { UsePaginationProps, UsePaginationReturn } from './use-pagination';
|
|
3
|
+
import { HTMLArkProps } from '..';
|
|
3
4
|
import { Assign } from '../types';
|
|
4
|
-
import { ForwardRefExoticComponent,
|
|
5
|
+
import { ForwardRefExoticComponent, ReactNode, RefAttributes, DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
5
6
|
/// <reference types="react" />
|
|
6
7
|
import { type PaginationProps } from './pagination';
|
|
7
|
-
import { usePaginationContext } from './pagination-context';
|
|
8
|
+
import { usePaginationContext, type PaginationContext } from './pagination-context';
|
|
8
9
|
import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
|
|
9
10
|
import { PaginationList, type PaginationListProps } from './pagination-list';
|
|
10
11
|
import { PaginationListItem, type PaginationListItemProps } from './pagination-list-item';
|
|
@@ -12,56 +13,26 @@ import { PaginationNextPageTrigger, type PaginationNextPageTriggerProps } from '
|
|
|
12
13
|
import { PaginationPageTrigger, type PaginationPageTriggerProps } from './pagination-page-trigger';
|
|
13
14
|
import { PaginationPrevPageTrigger, type PaginationPrevPageTriggerProps } from './pagination-prev-page-trigger';
|
|
14
15
|
import { paginationAnatomy } from './pagination.anatomy';
|
|
15
|
-
declare const Pagination: ForwardRefExoticComponent<Omit<Assign<
|
|
16
|
-
|
|
17
|
-
} & {
|
|
18
|
-
asChild?: boolean | undefined;
|
|
19
|
-
}, "ref">, UsePaginationProps>, "children"> & {
|
|
20
|
-
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
21
|
-
element: HTMLAttributes<HTMLElement>;
|
|
22
|
-
style: CSSProperties;
|
|
23
|
-
}>) => ReactNode);
|
|
16
|
+
declare const Pagination: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"nav">, UsePaginationProps>, "children"> & {
|
|
17
|
+
children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
24
18
|
} & RefAttributes<HTMLElement>> & {
|
|
25
|
-
Root: ForwardRefExoticComponent<Omit<Assign<
|
|
26
|
-
|
|
27
|
-
} & {
|
|
28
|
-
asChild?: boolean | undefined;
|
|
29
|
-
}, "ref">, UsePaginationProps>, "children"> & {
|
|
30
|
-
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
31
|
-
element: HTMLAttributes<HTMLElement>;
|
|
32
|
-
style: CSSProperties;
|
|
33
|
-
}>) => ReactNode);
|
|
19
|
+
Root: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"nav">, UsePaginationProps>, "children"> & {
|
|
20
|
+
children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
34
21
|
} & RefAttributes<HTMLElement>>;
|
|
35
|
-
Ellipsis: ForwardRefExoticComponent<Omit<
|
|
36
|
-
|
|
37
|
-
} & {
|
|
38
|
-
asChild?: boolean | undefined;
|
|
39
|
-
}, "ref">, "index"> & EllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
40
|
-
List: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
41
|
-
ref?: ((instance: HTMLUListElement | null) => void) | RefObject<HTMLUListElement> | null | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
asChild?: boolean | undefined;
|
|
44
|
-
}, "ref"> & RefAttributes<HTMLUListElement>>;
|
|
45
|
-
ListItem: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
46
|
-
ref?: ((instance: HTMLLIElement | null) => void) | RefObject<HTMLLIElement> | null | undefined;
|
|
47
|
-
} & {
|
|
22
|
+
Ellipsis: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "index"> & EllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
+
List: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
48
24
|
asChild?: boolean | undefined;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
52
|
-
} & {
|
|
25
|
+
} & RefAttributes<HTMLUListElement>>;
|
|
26
|
+
ListItem: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
53
27
|
asChild?: boolean | undefined;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
57
|
-
} & {
|
|
28
|
+
} & RefAttributes<HTMLLIElement>>;
|
|
29
|
+
NextPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
58
30
|
asChild?: boolean | undefined;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} & {
|
|
31
|
+
} & RefAttributes<HTMLButtonElement>>;
|
|
32
|
+
PageTrigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof PageTriggerProps> & PageTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
PrevPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
63
34
|
asChild?: boolean | undefined;
|
|
64
|
-
}
|
|
35
|
+
} & RefAttributes<HTMLButtonElement>>;
|
|
65
36
|
};
|
|
66
37
|
export { Pagination, PaginationEllipsis, PaginationList, PaginationListItem, PaginationNextPageTrigger, PaginationPageTrigger, PaginationPrevPageTrigger, paginationAnatomy, usePaginationContext, };
|
|
67
|
-
export type { PaginationEllipsisProps, PaginationListItemProps, PaginationListProps, PaginationNextPageTriggerProps, PaginationPageTriggerProps, PaginationPrevPageTriggerProps, PaginationProps, };
|
|
38
|
+
export type { PaginationContext, PaginationEllipsisProps, PaginationListItemProps, PaginationListProps, PaginationNextPageTriggerProps, PaginationPageTriggerProps, PaginationPrevPageTriggerProps, PaginationProps, };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UsePaginationReturn } from './use-pagination';
|
|
5
4
|
export type PaginationContext = UsePaginationReturn;
|
|
6
|
-
export declare const PaginationProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, usePaginationContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const PaginationProvider: Provider<UsePaginationReturn>, usePaginationContext: () => UsePaginationReturn;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
import type { EllipsisProps } from '@zag-js/pagination';
|
|
2
|
-
import {
|
|
3
|
-
import { ark } from '../factory';
|
|
4
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
5
|
import { type Assign } from '../types';
|
|
5
|
-
export type PaginationEllipsisProps = Assign<
|
|
6
|
-
export declare const PaginationEllipsis: ForwardRefExoticComponent<Omit<
|
|
7
|
-
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
asChild?: boolean | undefined;
|
|
10
|
-
}, "ref">, "index"> & EllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export type PaginationEllipsisProps = Assign<HTMLArkProps<'div'>, EllipsisProps>;
|
|
7
|
+
export declare const PaginationEllipsis: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "index"> & EllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, LiHTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, LiHTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PaginationListItemProps = HTMLArkProps<'li'>;
|
|
5
|
+
export declare const PaginationListItem: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLLIElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PaginationListProps = HTMLArkProps<'ul'>;
|
|
5
|
+
export declare const PaginationList: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLUListElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PaginationNextPageTriggerProps = HTMLArkProps<'button'>;
|
|
5
|
+
export declare const PaginationNextPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
1
3
|
import type { PageTriggerProps } from '@zag-js/pagination';
|
|
2
|
-
import {
|
|
3
|
-
import { ark } from '../factory';
|
|
4
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
5
|
import type { Assign } from '../types';
|
|
5
|
-
export type PaginationPageTriggerProps = Assign<
|
|
6
|
-
export declare const PaginationPageTrigger: ForwardRefExoticComponent<Omit<
|
|
7
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
asChild?: boolean | undefined;
|
|
10
|
-
}, "ref">, keyof PageTriggerProps> & PageTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export type PaginationPageTriggerProps = Assign<HTMLArkProps<'button'>, PageTriggerProps>;
|
|
7
|
+
export declare const PaginationPageTrigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof PageTriggerProps> & PageTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PaginationPrevPageTriggerProps = HTMLArkProps<'button'>;
|
|
5
|
+
export declare const PaginationPrevPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import { type Assign } from '../types';
|
|
4
4
|
import { type UsePaginationProps, type UsePaginationReturn } from './use-pagination';
|
|
5
|
-
export type PaginationProps = Assign<Assign<
|
|
6
|
-
children
|
|
5
|
+
export type PaginationProps = Assign<Assign<HTMLArkProps<'nav'>, UsePaginationProps>, {
|
|
6
|
+
children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
7
7
|
}>;
|
|
8
|
-
export declare const Pagination: ForwardRefExoticComponent<Omit<Assign<
|
|
9
|
-
|
|
10
|
-
} & {
|
|
11
|
-
asChild?: boolean | undefined;
|
|
12
|
-
}, "ref">, UsePaginationProps>, "children"> & {
|
|
13
|
-
children: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
8
|
+
export declare const Pagination: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"nav">, UsePaginationProps>, "children"> & {
|
|
9
|
+
children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
14
10
|
} & RefAttributes<HTMLElement>>;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
import * as pagination from '@zag-js/pagination';
|
|
4
2
|
import { type Optional } from '../types';
|
|
5
|
-
export
|
|
3
|
+
export interface UsePaginationProps extends Optional<pagination.Context, 'id'> {
|
|
6
4
|
defaultPage?: pagination.Context['page'];
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
style: CSSProperties;
|
|
11
|
-
}>;
|
|
12
|
-
export type UsePaginationReturn = ReturnType<typeof usePagination>;
|
|
5
|
+
}
|
|
6
|
+
export type UsePaginationReturn = pagination.Api;
|
|
7
|
+
export declare const usePagination: (props: UsePaginationProps) => UsePaginationReturn;
|
package/pin-input/index.d.ts
CHANGED
|
@@ -1,43 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UsePinInputProps } from './use-pin-input';
|
|
2
|
+
import { HTMLArkProps } from '..';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
3
4
|
/// <reference types="react" />
|
|
4
5
|
import { type PinInputProps } from './pin-input';
|
|
5
|
-
import { usePinInputContext } from './pin-input-context';
|
|
6
|
+
import { usePinInputContext, type PinInputContext } from './pin-input-context';
|
|
6
7
|
import { PinInputControl, type PinInputControlProps } from './pin-input-control';
|
|
7
8
|
import { PinInputInput, type PinInputInputProps } from './pin-input-field';
|
|
8
9
|
import { PinInputLabel, type PinInputLabelProps } from './pin-input-label';
|
|
9
10
|
import { pinInputAnatomy } from './pin-input.anatomy';
|
|
10
|
-
declare const PinInput: ForwardRefExoticComponent<Omit<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
asChild?: boolean | undefined;
|
|
14
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "onChange" | "onInvalid" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
15
|
-
defaultValue?: string[] | undefined;
|
|
16
|
-
} & RefAttributes<HTMLDivElement>> & {
|
|
17
|
-
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
-
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
-
} & {
|
|
11
|
+
declare const PinInput: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof UsePinInputProps> & UsePinInputProps & RefAttributes<HTMLDivElement>> & {
|
|
12
|
+
Root: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, keyof UsePinInputProps> & UsePinInputProps & RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Control: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
14
|
asChild?: boolean | undefined;
|
|
21
|
-
}, "ref">, "name" | "value" | "getRootNode" | "form" | "mask" | "pattern" | "id" | "ids" | "disabled" | "type" | "onChange" | "onInvalid" | "defaultValue" | "autoFocus" | "dir" | "placeholder" | "invalid" | "translations" | "selectOnFocus" | "otp" | "onComplete" | "blurOnComplete"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & {
|
|
22
|
-
defaultValue?: string[] | undefined;
|
|
23
15
|
} & RefAttributes<HTMLDivElement>>;
|
|
24
|
-
|
|
25
|
-
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
asChild?: boolean | undefined;
|
|
28
|
-
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
29
|
-
Input: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
30
|
-
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
31
|
-
} & {
|
|
32
|
-
asChild?: boolean | undefined;
|
|
33
|
-
}, "ref">, "index"> & {
|
|
16
|
+
Input: ForwardRefExoticComponent<Omit<HTMLArkProps<"input">, "index"> & {
|
|
34
17
|
index: number;
|
|
35
18
|
} & RefAttributes<HTMLInputElement>>;
|
|
36
|
-
Label: ForwardRefExoticComponent<Omit<
|
|
37
|
-
ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
|
|
38
|
-
} & {
|
|
19
|
+
Label: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
39
20
|
asChild?: boolean | undefined;
|
|
40
|
-
}
|
|
21
|
+
} & RefAttributes<HTMLLabelElement>>;
|
|
41
22
|
};
|
|
42
23
|
export { PinInput, PinInputControl, PinInputInput, PinInputLabel, pinInputAnatomy, usePinInputContext, };
|
|
43
|
-
export type { PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps };
|
|
24
|
+
export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps, };
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
1
|
+
import { Provider } from 'react';
|
|
3
2
|
/// <reference types="react" />
|
|
4
3
|
import { type UsePinInputReturn } from './use-pin-input';
|
|
5
4
|
export type PinInputContext = UsePinInputReturn;
|
|
6
|
-
export declare const PinInputProvider: Provider<
|
|
7
|
-
element: HTMLAttributes<HTMLElement>;
|
|
8
|
-
style: CSSProperties;
|
|
9
|
-
}>>, usePinInputContext: () => PublicApi<JSX.IntrinsicElements & {
|
|
10
|
-
element: HTMLAttributes<HTMLElement>;
|
|
11
|
-
style: CSSProperties;
|
|
12
|
-
}>;
|
|
5
|
+
export declare const PinInputProvider: Provider<UsePinInputReturn>, usePinInputContext: () => UsePinInputReturn;
|
|
@@ -10,12 +10,9 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const pinInputContext = require('./pin-input-context.cjs');
|
|
11
11
|
|
|
12
12
|
const PinInputControl = react.forwardRef((props, ref) => {
|
|
13
|
-
const
|
|
14
|
-
const mergedProps = react$1.mergeProps(controlProps, props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
16
|
-
/* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: props.children }),
|
|
17
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { ...hiddenInputProps })
|
|
18
|
-
] });
|
|
13
|
+
const api = pinInputContext.usePinInputContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(api.controlProps, props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
19
16
|
});
|
|
20
17
|
PinInputControl.displayName = "PinInputControl";
|
|
21
18
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PinInputControlProps = HTMLArkProps<'div'>;
|
|
5
|
+
export declare const PinInputControl: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
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
6
|
import { usePinInputContext } from './pin-input-context.mjs';
|
|
7
7
|
|
|
8
8
|
const PinInputControl = forwardRef((props, ref) => {
|
|
9
|
-
const
|
|
10
|
-
const mergedProps = mergeProps(controlProps, props);
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: props.children }),
|
|
13
|
-
/* @__PURE__ */ jsx("input", { ...hiddenInputProps })
|
|
14
|
-
] });
|
|
9
|
+
const api = usePinInputContext();
|
|
10
|
+
const mergedProps = mergeProps(api.controlProps, props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
15
12
|
});
|
|
16
13
|
PinInputControl.displayName = "PinInputControl";
|
|
17
14
|
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
2
|
-
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
3
4
|
import type { Assign } from '../types';
|
|
4
|
-
export type PinInputInputProps = Assign<
|
|
5
|
+
export type PinInputInputProps = Assign<HTMLArkProps<'input'>, {
|
|
5
6
|
index: number;
|
|
6
7
|
}>;
|
|
7
|
-
export declare const PinInputInput: ForwardRefExoticComponent<Omit<
|
|
8
|
-
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
9
|
-
} & {
|
|
10
|
-
asChild?: boolean | undefined;
|
|
11
|
-
}, "ref">, "index"> & {
|
|
8
|
+
export declare const PinInputInput: ForwardRefExoticComponent<Omit<HTMLArkProps<"input">, "index"> & {
|
|
12
9
|
index: number;
|
|
13
10
|
} & RefAttributes<HTMLInputElement>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
} & {
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export type PinInputLabelProps = HTMLArkProps<'label'>;
|
|
5
|
+
export declare const PinInputLabel: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
7
6
|
asChild?: boolean | undefined;
|
|
8
|
-
}
|
|
7
|
+
} & RefAttributes<HTMLLabelElement>>;
|
package/pin-input/pin-input.cjs
CHANGED
|
@@ -36,9 +36,12 @@ const PinInput = react.forwardRef((props, ref) => {
|
|
|
36
36
|
"type",
|
|
37
37
|
"value"
|
|
38
38
|
]);
|
|
39
|
-
const
|
|
40
|
-
const mergedProps = react$1.mergeProps(
|
|
41
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
39
|
+
const api = usePinInput.usePinInput(usePinInputProps);
|
|
40
|
+
const mergedProps = react$1.mergeProps(api.rootProps, divProps);
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(pinInputContext.PinInputProvider, { value: api, children: [
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }),
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
|
|
44
|
+
] });
|
|
42
45
|
});
|
|
43
46
|
PinInput.displayName = "PinInput";
|
|
44
47
|
|