@ark-ui/react 0.10.0 → 0.11.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -12
- package/accordion/accordion-content.cjs +2 -1
- package/accordion/accordion-content.d.ts +2 -2
- package/accordion/accordion-content.mjs +2 -1
- package/accordion/accordion-context.d.ts +3 -2
- package/accordion/accordion-item-context.d.ts +2 -1
- package/accordion/accordion-item-presence.cjs +2 -2
- package/accordion/accordion-item-presence.d.ts +1 -1
- package/accordion/accordion-item-presence.mjs +1 -1
- package/accordion/accordion-item.d.ts +1 -1
- package/accordion/accordion-trigger.d.ts +1 -1
- package/accordion/accordion.d.ts +3 -3
- package/accordion/accordion.stories.d.ts +14 -0
- package/accordion/accordion.test.d.ts +1 -0
- package/accordion/index.cjs +11 -6
- package/accordion/index.d.ts +45 -7
- package/accordion/index.mjs +13 -4
- package/accordion/use-accordion.cjs +1 -0
- package/accordion/use-accordion.d.ts +2 -1
- package/accordion/use-accordion.mjs +1 -0
- package/avatar/avatar-context.d.ts +3 -2
- package/avatar/avatar-fallback.d.ts +2 -2
- package/avatar/avatar-image.d.ts +1 -1
- package/avatar/avatar.d.ts +3 -3
- package/avatar/avatar.stories.d.ts +8 -0
- package/avatar/index.cjs +10 -6
- package/avatar/index.d.ts +31 -5
- package/avatar/index.mjs +11 -3
- package/avatar/use-avatar.cjs +1 -0
- package/avatar/use-avatar.d.ts +2 -1
- package/avatar/use-avatar.mjs +1 -0
- package/carousel/carousel-context.d.ts +3 -2
- package/carousel/carousel-control.d.ts +1 -1
- package/carousel/carousel-indicator-group.d.ts +1 -1
- package/carousel/carousel-indicator.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.cjs +2 -2
- package/carousel/carousel-next-slide-trigger.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.mjs +2 -2
- package/carousel/carousel-prev-slide-trigger.cjs +2 -2
- package/carousel/carousel-prev-slide-trigger.d.ts +1 -1
- package/carousel/carousel-prev-slide-trigger.mjs +2 -2
- package/carousel/carousel-slide-group.d.ts +1 -1
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/carousel-viewport.d.ts +1 -1
- package/carousel/carousel.anatomy.d.ts +3 -3
- package/carousel/carousel.d.ts +3 -3
- package/carousel/carousel.stories.d.ts +7 -0
- package/carousel/carousel.test.d.ts +1 -0
- package/carousel/index.cjs +12 -2
- package/carousel/index.d.ts +77 -11
- package/carousel/index.mjs +23 -9
- package/carousel/use-carousel.cjs +1 -0
- package/carousel/use-carousel.d.ts +2 -1
- package/carousel/use-carousel.mjs +1 -0
- package/checkbox/checkbox-context.d.ts +3 -2
- package/checkbox/checkbox-control.cjs +5 -2
- package/checkbox/checkbox-control.d.ts +1 -1
- package/checkbox/checkbox-control.mjs +6 -3
- package/checkbox/checkbox-label.d.ts +2 -2
- package/checkbox/checkbox.d.ts +2 -2
- package/checkbox/checkbox.stories.d.ts +10 -0
- package/checkbox/checkbox.test.d.ts +1 -0
- package/checkbox/index.cjs +10 -8
- package/checkbox/index.d.ts +42 -7
- package/checkbox/index.mjs +11 -4
- package/checkbox/use-checkbox.cjs +1 -0
- package/checkbox/use-checkbox.d.ts +2 -1
- package/checkbox/use-checkbox.mjs +1 -0
- package/color-picker/color-picker-area-context.d.ts +2 -1
- package/color-picker/color-picker-area-gradient.d.ts +1 -1
- package/color-picker/color-picker-area-thumb.d.ts +1 -1
- package/color-picker/color-picker-area.d.ts +1 -1
- package/color-picker/color-picker-channel-input.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-background.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-context.d.ts +2 -1
- package/color-picker/color-picker-channel-slider-thumb.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-track.d.ts +1 -1
- package/color-picker/color-picker-content.d.ts +1 -1
- package/color-picker/color-picker-context.d.ts +3 -2
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +1 -1
- package/color-picker/color-picker-swatch-background.d.ts +1 -1
- package/color-picker/color-picker-swatch-context.d.ts +2 -1
- package/color-picker/color-picker-swatch-group.d.ts +1 -1
- package/color-picker/color-picker-swatch.d.ts +1 -1
- package/color-picker/color-picker.anatomy.d.ts +3 -3
- package/color-picker/color-picker.d.ts +1 -1
- package/color-picker/color-picker.stories.d.ts +8 -0
- package/color-picker/index.cjs +16 -2
- package/color-picker/index.d.ts +86 -17
- package/color-picker/index.mjs +31 -13
- package/color-picker/use-color-picker.cjs +1 -0
- package/color-picker/use-color-picker.d.ts +2 -1
- package/color-picker/use-color-picker.mjs +1 -0
- package/combobox/combobox-clear-trigger.cjs +21 -0
- package/combobox/combobox-clear-trigger.d.ts +8 -0
- package/combobox/combobox-clear-trigger.mjs +17 -0
- package/combobox/combobox-content.cjs +3 -2
- package/combobox/combobox-content.d.ts +6 -6
- package/combobox/combobox-content.mjs +3 -2
- package/combobox/combobox-context.d.ts +3 -2
- package/combobox/combobox-control.d.ts +1 -1
- package/combobox/combobox-input.d.ts +1 -1
- package/combobox/combobox-label.d.ts +1 -1
- package/combobox/combobox-option-group-label.cjs +23 -0
- package/combobox/combobox-option-group-label.d.ts +10 -0
- package/combobox/combobox-option-group-label.mjs +19 -0
- package/combobox/combobox-option-group.cjs +23 -0
- package/combobox/combobox-option-group.d.ts +10 -0
- package/combobox/combobox-option-group.mjs +19 -0
- package/combobox/combobox-option.cjs +1 -1
- package/combobox/combobox-option.d.ts +6 -6
- package/combobox/combobox-option.mjs +1 -1
- package/combobox/combobox-positioner.d.ts +1 -1
- package/combobox/combobox-presence.cjs +2 -2
- package/combobox/combobox-presence.d.ts +1 -1
- package/combobox/combobox-presence.mjs +1 -1
- package/combobox/combobox-trigger.d.ts +1 -1
- package/combobox/combobox.cjs +2 -0
- package/combobox/combobox.d.ts +3 -3
- package/combobox/combobox.mjs +2 -0
- package/combobox/combobox.stories.d.ts +7 -0
- package/combobox/combobox.test.d.ts +1 -0
- package/combobox/index.cjs +24 -6
- package/combobox/index.d.ts +94 -10
- package/combobox/index.mjs +27 -8
- package/combobox/use-combobox.d.ts +2 -1
- package/compose-refs.d.ts +1 -0
- package/create-context.d.ts +1 -0
- package/create-split-props.test.d.ts +1 -0
- package/date-picker/date-picker-cell-context.d.ts +2 -1
- package/date-picker/date-picker-clear-trigger.d.ts +1 -1
- package/date-picker/date-picker-column-header.d.ts +1 -1
- package/date-picker/date-picker-content.d.ts +1 -1
- package/date-picker/date-picker-context.d.ts +3 -2
- package/date-picker/date-picker-control.d.ts +1 -1
- package/date-picker/date-picker-day-cell-context.d.ts +2 -1
- package/date-picker/date-picker-day-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-day-cell.d.ts +1 -1
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-input.d.ts +1 -1
- package/date-picker/date-picker-month-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-month-cell.d.ts +1 -1
- package/date-picker/date-picker-month-select.d.ts +1 -1
- package/date-picker/date-picker-next-trigger.d.ts +1 -1
- package/date-picker/date-picker-positioner.cjs +21 -0
- package/date-picker/date-picker-positioner.d.ts +8 -0
- package/date-picker/date-picker-positioner.mjs +17 -0
- package/date-picker/date-picker-prev-trigger.d.ts +1 -1
- package/date-picker/date-picker-row-group.d.ts +1 -1
- package/date-picker/date-picker-row-header.d.ts +1 -1
- package/date-picker/date-picker-row.d.ts +1 -1
- package/date-picker/date-picker-trigger.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell.d.ts +1 -1
- package/date-picker/date-picker-year-select.d.ts +1 -1
- package/date-picker/date-picker.anatomy.d.ts +3 -3
- package/date-picker/date-picker.d.ts +1 -1
- package/date-picker/date-picker.stories.d.ts +9 -0
- package/date-picker/index.cjs +28 -2
- package/date-picker/index.d.ts +146 -26
- package/date-picker/index.mjs +51 -22
- package/date-picker/use-date-picker.cjs +1 -0
- package/date-picker/use-date-picker.d.ts +2 -1
- package/date-picker/use-date-picker.mjs +1 -0
- package/dialog/dialog-backdrop.d.ts +2 -2
- package/dialog/dialog-close-trigger.d.ts +1 -1
- package/dialog/dialog-container.d.ts +1 -1
- package/dialog/dialog-content.cjs +2 -1
- package/dialog/dialog-content.d.ts +2 -2
- package/dialog/dialog-content.mjs +2 -1
- package/dialog/dialog-context.d.ts +3 -2
- package/dialog/dialog-description.d.ts +1 -1
- package/dialog/dialog-presence.cjs +2 -2
- package/dialog/dialog-presence.d.ts +1 -1
- package/dialog/dialog-presence.mjs +1 -1
- package/dialog/dialog-title.d.ts +1 -1
- package/dialog/dialog-trigger.d.ts +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/dialog.stories.d.ts +10 -0
- package/dialog/dialog.test.d.ts +1 -0
- package/dialog/index.cjs +15 -6
- package/dialog/index.d.ts +54 -10
- package/dialog/index.mjs +21 -8
- package/dialog/use-dialog.cjs +1 -0
- package/dialog/use-dialog.d.ts +2 -1
- package/dialog/use-dialog.mjs +1 -0
- package/editable/editable-area.d.ts +1 -1
- package/editable/editable-cancel-trigger.d.ts +1 -1
- package/editable/editable-context.d.ts +3 -2
- package/editable/editable-control.d.ts +1 -1
- package/editable/editable-edit-trigger.d.ts +1 -1
- package/editable/editable-input.d.ts +1 -1
- package/editable/editable-label.d.ts +1 -1
- package/editable/editable-preview.d.ts +2 -2
- package/editable/editable-submit-trigger.d.ts +1 -1
- package/editable/editable.cjs +2 -0
- package/editable/editable.d.ts +3 -3
- package/editable/editable.mjs +2 -0
- package/editable/editable.stories.d.ts +8 -0
- package/editable/editable.test.d.ts +1 -0
- package/editable/index.cjs +16 -6
- package/editable/index.d.ts +81 -11
- package/editable/index.mjs +23 -9
- package/editable/use-editable.cjs +1 -0
- package/editable/use-editable.d.ts +2 -1
- package/editable/use-editable.mjs +1 -0
- package/environment/environment-context.d.ts +3 -2
- package/environment/environment.d.ts +1 -1
- package/environment/environment.stories.d.ts +7 -0
- package/environment/environment.test.d.ts +1 -0
- package/environment/index.cjs +4 -2
- package/environment/index.d.ts +8 -2
- package/environment/index.mjs +7 -1
- package/hover-card/hover-card-arrow-tip.d.ts +1 -1
- package/hover-card/hover-card-arrow.d.ts +1 -1
- package/hover-card/hover-card-content.cjs +2 -1
- package/hover-card/hover-card-content.d.ts +2 -2
- package/hover-card/hover-card-content.mjs +2 -1
- package/hover-card/hover-card-context.d.ts +3 -2
- package/hover-card/hover-card-positioner.d.ts +1 -1
- package/hover-card/hover-card-presence.cjs +2 -2
- package/hover-card/hover-card-presence.d.ts +1 -1
- package/hover-card/hover-card-presence.mjs +1 -1
- package/hover-card/hover-card-trigger.d.ts +1 -1
- package/hover-card/hover-card.d.ts +1 -1
- package/hover-card/hover-card.stories.d.ts +10 -0
- package/hover-card/hover-card.test.d.ts +1 -0
- package/hover-card/index.cjs +13 -6
- package/hover-card/index.d.ts +42 -8
- package/hover-card/index.mjs +17 -6
- package/hover-card/use-hover-card.cjs +1 -0
- package/hover-card/use-hover-card.d.ts +2 -1
- package/hover-card/use-hover-card.mjs +1 -0
- package/index.cjs +247 -239
- package/index.mjs +91 -87
- package/menu/index.cjs +19 -5
- package/menu/index.d.ts +93 -15
- package/menu/index.mjs +31 -13
- package/menu/menu-arrow-tip.d.ts +1 -1
- package/menu/menu-arrow.d.ts +1 -1
- package/menu/menu-content.d.ts +1 -1
- package/menu/menu-context-trigger.d.ts +1 -1
- package/menu/menu-context.d.ts +2 -1
- package/menu/menu-item-group-label.d.ts +1 -1
- package/menu/menu-item-group.d.ts +2 -2
- package/menu/menu-item.d.ts +2 -2
- package/menu/menu-option-item.d.ts +2 -2
- package/menu/menu-positioner.d.ts +1 -1
- package/menu/menu-separator.d.ts +1 -1
- package/menu/menu-trigger-item.d.ts +1 -1
- package/menu/menu-trigger.d.ts +1 -1
- package/menu/menu.cjs +3 -0
- package/menu/menu.d.ts +1 -1
- package/menu/menu.mjs +3 -0
- package/menu/menu.stories.d.ts +11 -0
- package/menu/menu.test.d.ts +1 -0
- package/menu/use-menu.cjs +1 -0
- package/menu/use-menu.mjs +1 -0
- package/number-input/index.cjs +13 -5
- package/number-input/index.d.ts +59 -9
- package/number-input/index.mjs +19 -7
- package/number-input/number-input-context.d.ts +3 -2
- package/number-input/number-input-control.d.ts +1 -1
- package/number-input/number-input-decrement-trigger.d.ts +1 -1
- package/number-input/number-input-field.d.ts +1 -1
- package/number-input/number-input-increment-trigger.d.ts +1 -1
- package/number-input/number-input-label.d.ts +1 -1
- package/number-input/number-input-scrubber.d.ts +1 -1
- package/number-input/number-input.d.ts +3 -3
- package/number-input/number-input.stories.d.ts +7 -0
- package/number-input/number-input.test.d.ts +1 -0
- package/number-input/use-number-input.cjs +1 -0
- package/number-input/use-number-input.d.ts +2 -1
- package/number-input/use-number-input.mjs +1 -0
- package/package.json +42 -42
- package/pagination/index.cjs +10 -2
- package/pagination/index.d.ts +67 -9
- package/pagination/index.mjs +19 -7
- package/pagination/pagination-context.d.ts +3 -2
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/pagination-list-item.d.ts +1 -1
- package/pagination/pagination-list.d.ts +1 -1
- package/pagination/pagination-next-page-trigger.d.ts +1 -1
- package/pagination/pagination-page-trigger.d.ts +1 -1
- package/pagination/pagination-prev-page-trigger.d.ts +1 -1
- package/pagination/pagination.anatomy.d.ts +1 -1
- package/pagination/pagination.d.ts +1 -1
- package/pagination/pagination.stories.d.ts +9 -0
- package/pagination/pagination.test.d.ts +1 -0
- package/pagination/use-pagination.cjs +1 -0
- package/pagination/use-pagination.d.ts +2 -1
- package/pagination/use-pagination.mjs +1 -0
- package/pin-input/index.cjs +11 -6
- package/pin-input/index.d.ts +43 -6
- package/pin-input/index.mjs +13 -4
- package/pin-input/pin-input-context.d.ts +3 -2
- package/pin-input/pin-input-control.cjs +3 -3
- package/pin-input/pin-input-control.d.ts +1 -1
- package/pin-input/pin-input-control.mjs +4 -4
- package/pin-input/pin-input-field.d.ts +1 -1
- package/pin-input/pin-input-label.d.ts +1 -1
- package/pin-input/pin-input.d.ts +3 -3
- package/pin-input/pin-input.stories.d.ts +7 -0
- package/pin-input/pin-input.test.d.ts +1 -0
- package/pin-input/use-pin-input.cjs +1 -0
- package/pin-input/use-pin-input.d.ts +2 -1
- package/pin-input/use-pin-input.mjs +1 -0
- package/popover/index.cjs +17 -6
- package/popover/index.d.ts +66 -12
- package/popover/index.mjs +25 -10
- package/popover/popover-anchor.d.ts +1 -1
- package/popover/popover-arrow-tip.d.ts +1 -1
- package/popover/popover-arrow.d.ts +1 -1
- package/popover/popover-close-trigger.d.ts +1 -1
- package/popover/popover-content.cjs +2 -1
- package/popover/popover-content.d.ts +2 -2
- package/popover/popover-content.mjs +2 -1
- package/popover/popover-context.d.ts +3 -2
- package/popover/popover-description.d.ts +1 -1
- package/popover/popover-positioner.d.ts +1 -1
- package/popover/popover-presence.cjs +2 -2
- package/popover/popover-presence.d.ts +1 -1
- package/popover/popover-presence.mjs +1 -1
- package/popover/popover-title.d.ts +1 -1
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.d.ts +1 -1
- package/popover/popover.stories.d.ts +12 -0
- package/popover/popover.test.d.ts +1 -0
- package/popover/use-popover.cjs +1 -0
- package/popover/use-popover.d.ts +2 -1
- package/popover/use-popover.mjs +1 -0
- package/presence/index.cjs +4 -2
- package/presence/index.d.ts +9 -2
- package/presence/index.mjs +7 -1
- package/presence/presence.d.ts +1 -1
- package/presence/presence.stories.d.ts +10 -0
- package/presence/presence.test.d.ts +1 -0
- package/pressable/index.cjs +4 -2
- package/pressable/index.d.ts +30 -2
- package/pressable/index.mjs +7 -1
- package/pressable/pressable.d.ts +3 -3
- package/pressable/pressable.stories.d.ts +7 -0
- package/pressable/pressable.test.d.ts +1 -0
- package/pressable/use-pressable.cjs +1 -0
- package/pressable/use-pressable.d.ts +2 -1
- package/pressable/use-pressable.mjs +1 -0
- package/radio-group/index.cjs +11 -4
- package/radio-group/index.d.ts +64 -9
- package/radio-group/index.mjs +17 -6
- package/radio-group/radio-context.d.ts +2 -1
- package/radio-group/radio-control.d.ts +1 -1
- package/radio-group/radio-group-context.d.ts +3 -2
- package/radio-group/radio-group-label.d.ts +1 -1
- package/radio-group/radio-group.d.ts +3 -3
- package/radio-group/radio-group.stories.d.ts +8 -0
- package/radio-group/radio-group.test.d.ts +1 -0
- package/radio-group/radio-input.d.ts +1 -1
- package/radio-group/radio-label.d.ts +2 -2
- package/radio-group/radio.d.ts +1 -1
- package/radio-group/use-radio-group.cjs +1 -0
- package/radio-group/use-radio-group.d.ts +2 -1
- package/radio-group/use-radio-group.mjs +1 -0
- package/range-slider/index.cjs +15 -5
- package/range-slider/index.d.ts +90 -11
- package/range-slider/index.mjs +23 -9
- package/range-slider/range-slider-context.d.ts +3 -2
- package/range-slider/range-slider-control.d.ts +1 -1
- package/range-slider/range-slider-label.d.ts +1 -1
- package/range-slider/range-slider-marker-group.d.ts +1 -1
- package/range-slider/range-slider-marker.d.ts +2 -2
- package/range-slider/range-slider-output.d.ts +1 -1
- package/range-slider/range-slider-range.d.ts +1 -1
- package/range-slider/range-slider-thumb.cjs +4 -13
- package/range-slider/range-slider-thumb.d.ts +1 -1
- package/range-slider/range-slider-thumb.mjs +5 -14
- package/range-slider/range-slider-track.d.ts +1 -1
- package/range-slider/range-slider.d.ts +3 -3
- package/range-slider/range-slider.stories.d.ts +8 -0
- package/range-slider/range-slider.test.d.ts +1 -0
- package/range-slider/use-range-slider.cjs +1 -0
- package/range-slider/use-range-slider.d.ts +2 -1
- package/range-slider/use-range-slider.mjs +1 -0
- package/rating-group/index.cjs +11 -6
- package/rating-group/index.d.ts +49 -7
- package/rating-group/index.mjs +13 -4
- package/rating-group/rating-context.d.ts +3 -2
- package/rating-group/rating-group-context.d.ts +3 -2
- package/rating-group/rating-group-control.cjs +4 -1
- package/rating-group/rating-group-control.d.ts +1 -1
- package/rating-group/rating-group-control.mjs +5 -2
- package/rating-group/rating-group-label.d.ts +1 -1
- package/rating-group/rating-group.cjs +1 -4
- package/rating-group/rating-group.d.ts +7 -7
- package/rating-group/rating-group.mjs +2 -5
- package/rating-group/rating-group.stories.d.ts +7 -0
- package/rating-group/rating-group.test.d.ts +1 -0
- package/rating-group/rating.d.ts +2 -2
- package/rating-group/use-rating-group.cjs +1 -0
- package/rating-group/use-rating-group.d.ts +2 -1
- package/rating-group/use-rating-group.mjs +1 -0
- package/run-if-fn.test.d.ts +1 -0
- package/segment-group/index.cjs +10 -2
- package/segment-group/index.d.ts +70 -10
- package/segment-group/index.mjs +19 -7
- package/segment-group/segment-context.d.ts +2 -1
- package/segment-group/segment-control.d.ts +1 -1
- package/segment-group/segment-group-context.d.ts +3 -2
- package/segment-group/segment-group-label.d.ts +1 -1
- package/segment-group/segment-group.anatomy.d.ts +1 -1
- package/segment-group/segment-group.d.ts +3 -3
- package/segment-group/segment-group.stories.d.ts +10 -0
- package/segment-group/segment-group.test.d.ts +1 -0
- package/segment-group/segment-indicator.d.ts +1 -1
- package/segment-group/segment-input.d.ts +1 -1
- package/segment-group/segment-label.d.ts +2 -2
- package/segment-group/segment.d.ts +1 -1
- package/segment-group/use-segment-group.cjs +1 -0
- package/segment-group/use-segment-group.d.ts +2 -1
- package/segment-group/use-segment-group.mjs +1 -0
- package/select/index.cjs +14 -5
- package/select/index.d.ts +57 -10
- package/select/index.mjs +21 -8
- package/select/select-content.cjs +3 -2
- package/select/select-content.d.ts +6 -6
- package/select/select-content.mjs +3 -2
- package/select/select-context.d.ts +3 -2
- package/select/select-label.d.ts +1 -1
- package/select/select-option-group-label.cjs +1 -1
- package/select/select-option-group-label.d.ts +5 -5
- package/select/select-option-group-label.mjs +1 -1
- package/select/select-option-group.cjs +3 -2
- package/select/select-option-group.d.ts +4 -7
- package/select/select-option-group.mjs +3 -2
- package/select/select-option.cjs +3 -3
- package/select/select-option.d.ts +5 -8
- package/select/select-option.mjs +3 -3
- package/select/select-positioner.d.ts +1 -1
- package/select/select-presence.cjs +2 -2
- package/select/select-presence.d.ts +1 -1
- package/select/select-presence.mjs +1 -1
- package/select/select-trigger.d.ts +1 -1
- package/select/select.cjs +2 -0
- package/select/select.d.ts +1 -1
- package/select/select.mjs +2 -0
- package/select/select.stories.d.ts +7 -0
- package/select/select.test.d.ts +1 -0
- package/select/use-select.cjs +1 -0
- package/select/use-select.d.ts +2 -1
- package/select/use-select.mjs +1 -0
- package/setup-test.d.ts +0 -0
- package/slider/index.cjs +16 -6
- package/slider/index.d.ts +86 -11
- package/slider/index.mjs +23 -9
- package/slider/slider-context.d.ts +3 -2
- package/slider/slider-control.d.ts +1 -1
- package/slider/slider-label.d.ts +1 -1
- package/slider/slider-marker-group.d.ts +1 -1
- package/slider/slider-marker.d.ts +2 -2
- package/slider/slider-output.d.ts +1 -1
- package/slider/slider-range.d.ts +1 -1
- package/slider/slider-thumb.cjs +4 -12
- package/slider/slider-thumb.d.ts +1 -1
- package/slider/slider-thumb.mjs +5 -13
- package/slider/slider-track.d.ts +1 -1
- package/slider/slider.d.ts +1 -1
- package/slider/slider.stories.d.ts +8 -0
- package/slider/slider.test.d.ts +1 -0
- package/slider/use-slider.cjs +1 -0
- package/slider/use-slider.d.ts +2 -1
- package/slider/use-slider.mjs +1 -0
- package/splitter/index.cjs +10 -6
- package/splitter/index.d.ts +55 -5
- package/splitter/index.mjs +11 -3
- package/splitter/splitter-context.d.ts +3 -2
- package/splitter/splitter-panel.d.ts +1 -1
- package/splitter/splitter-resize-trigger.d.ts +1 -1
- package/splitter/splitter.d.ts +3 -3
- package/splitter/splitter.stories.d.ts +10 -0
- package/splitter/splitter.test.d.ts +1 -0
- package/splitter/use-splitter.cjs +1 -0
- package/splitter/use-splitter.d.ts +2 -1
- package/splitter/use-splitter.mjs +1 -0
- package/switch/index.cjs +10 -4
- package/switch/index.d.ts +55 -7
- package/switch/index.mjs +15 -5
- package/switch/switch-context.d.ts +3 -2
- package/switch/switch-control.d.ts +2 -2
- package/switch/switch-input.d.ts +1 -1
- package/switch/switch-label.d.ts +2 -2
- package/switch/switch-thumb.d.ts +2 -2
- package/switch/switch.d.ts +1 -1
- package/switch/switch.stories.d.ts +9 -0
- package/switch/use-switch.cjs +1 -0
- package/switch/use-switch.d.ts +2 -1
- package/switch/use-switch.mjs +1 -0
- package/tabs/index.cjs +12 -6
- package/tabs/index.d.ts +48 -7
- package/tabs/index.mjs +15 -5
- package/tabs/tab-content.cjs +2 -1
- package/tabs/tab-content.d.ts +1 -1
- package/tabs/tab-content.mjs +2 -1
- package/tabs/tab-indicator.d.ts +1 -1
- package/tabs/tab-list.d.ts +1 -1
- package/tabs/tab-presence.cjs +2 -2
- package/tabs/tab-presence.d.ts +1 -1
- package/tabs/tab-presence.mjs +1 -1
- package/tabs/tab-trigger.d.ts +1 -1
- package/tabs/tabs-context.d.ts +3 -2
- package/tabs/tabs.d.ts +3 -3
- package/tabs/tabs.stories.d.ts +14 -0
- package/tabs/tabs.test.d.ts +1 -0
- package/tabs/use-tabs.cjs +1 -0
- package/tabs/use-tabs.d.ts +3 -2
- package/tabs/use-tabs.mjs +1 -0
- package/tags-input/index.cjs +15 -6
- package/tags-input/index.d.ts +90 -10
- package/tags-input/index.mjs +21 -8
- package/tags-input/tag-delete-trigger.d.ts +1 -1
- package/tags-input/tag-input.d.ts +1 -1
- package/tags-input/tag.d.ts +1 -1
- package/tags-input/tags-input-clear-trigger.d.ts +1 -1
- package/tags-input/tags-input-context.d.ts +3 -2
- package/tags-input/tags-input-control.cjs +2 -2
- package/tags-input/tags-input-control.d.ts +1 -1
- package/tags-input/tags-input-control.mjs +3 -3
- package/tags-input/tags-input-field.d.ts +1 -1
- package/tags-input/tags-input-label.d.ts +1 -1
- package/tags-input/tags-input.cjs +3 -1
- package/tags-input/tags-input.d.ts +1 -1
- package/tags-input/tags-input.mjs +3 -1
- package/tags-input/tags-input.stories.d.ts +8 -0
- package/tags-input/tags-input.test.d.ts +1 -0
- package/tags-input/use-tags-input.cjs +1 -0
- package/tags-input/use-tags-input.d.ts +2 -1
- package/tags-input/use-tags-input.mjs +1 -0
- package/toast/index.cjs +13 -4
- package/toast/index.d.ts +52 -9
- package/toast/index.mjs +20 -7
- package/toast/toast-close-trigger.d.ts +1 -1
- package/toast/toast-description.d.ts +1 -1
- package/toast/toast-group.d.ts +1 -1
- package/toast/toast-item-context.d.ts +3 -2
- package/toast/toast-placements.d.ts +1 -1
- package/toast/toast-provider.cjs +1 -0
- package/toast/toast-provider.d.ts +2 -2
- package/toast/toast-provider.mjs +1 -0
- package/toast/toast-title.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.stories.d.ts +12 -0
- package/toast/toast.test.d.ts +1 -0
- package/toast/use-toast-item.d.ts +2 -1
- package/tooltip/index.cjs +13 -6
- package/tooltip/index.d.ts +42 -8
- package/tooltip/index.mjs +17 -6
- package/tooltip/tooltip-arrow-tip.d.ts +1 -1
- package/tooltip/tooltip-arrow.d.ts +1 -1
- package/tooltip/tooltip-content.cjs +2 -1
- package/tooltip/tooltip-content.d.ts +2 -2
- package/tooltip/tooltip-content.mjs +2 -1
- package/tooltip/tooltip-context.d.ts +3 -2
- package/tooltip/tooltip-positioner.d.ts +1 -1
- package/tooltip/tooltip-presence.cjs +2 -2
- package/tooltip/tooltip-presence.d.ts +1 -1
- package/tooltip/tooltip-presence.mjs +1 -1
- package/tooltip/tooltip-trigger.d.ts +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.stories.d.ts +12 -0
- package/tooltip/tooltip.test.d.ts +1 -0
- package/tooltip/use-tooltip.cjs +1 -0
- package/tooltip/use-tooltip.d.ts +2 -1
- package/tooltip/use-tooltip.mjs +1 -0
- package/use-latest-ref.d.ts +3 -0
- package/checkbox/checkbox-input.cjs +0 -19
- package/checkbox/checkbox-input.d.ts +0 -8
- package/checkbox/checkbox-input.mjs +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type CarouselSlideGroupProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const CarouselSlideGroup: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SlideProps } from '@zag-js/carousel';
|
|
2
|
-
import
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type CarouselSlideProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, SlideProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type CarouselViewportProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const CarouselViewport: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const carouselAnatomy: AnatomyInstance<"root" | "viewport" | "slideGroup" | "slide" | "
|
|
3
|
-
export declare const parts: Record<"root" | "viewport" | "slideGroup" | "slide" | "
|
|
1
|
+
import { AnatomyInstance, AnatomyPart } from '@zag-js/anatomy';
|
|
2
|
+
export declare const carouselAnatomy: AnatomyInstance<"root" | "viewport" | "slideGroup" | "slide" | "nextSlideTrigger" | "prevSlideTrigger" | "indicatorGroup" | "indicator" | "control">;
|
|
3
|
+
export declare const parts: Record<"root" | "viewport" | "slideGroup" | "slide" | "nextSlideTrigger" | "prevSlideTrigger" | "indicatorGroup" | "indicator" | "control", AnatomyPart>;
|
package/carousel/carousel.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Context } from '@zag-js/carousel';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import { type Assign } from '../types';
|
|
5
5
|
import { type CarouselContext } from './carousel-context';
|
|
@@ -13,4 +13,4 @@ export declare const Carousel: ForwardRefExoticComponent<Omit<Omit<Omit<Detailed
|
|
|
13
13
|
asChild?: boolean | undefined;
|
|
14
14
|
}, "ref"> & {
|
|
15
15
|
children: ReactNode | ((pages: CarouselContext) => ReactNode);
|
|
16
|
-
}, "
|
|
16
|
+
}, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
import { Carousel } from './';
|
|
4
|
+
type CarouselType = typeof Carousel;
|
|
5
|
+
declare const meta: Meta<CarouselType>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Basic: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/carousel/index.cjs
CHANGED
|
@@ -14,9 +14,18 @@ const carouselSlideGroup = require('./carousel-slide-group.cjs');
|
|
|
14
14
|
const carouselViewport = require('./carousel-viewport.cjs');
|
|
15
15
|
const carousel_anatomy = require('./carousel.anatomy.cjs');
|
|
16
16
|
|
|
17
|
+
const Carousel = Object.assign(carousel.Carousel, {
|
|
18
|
+
Root: carousel.Carousel,
|
|
19
|
+
Control: carouselControl.CarouselControl,
|
|
20
|
+
Indicator: carouselIndicator.CarouselIndicator,
|
|
21
|
+
IndicatorGroup: carouselIndicatorGroup.CarouselIndicatorGroup,
|
|
22
|
+
NextSlideTrigger: carouselNextSlideTrigger.CarouselNextSlideTrigger,
|
|
23
|
+
PrevSlideTrigger: carouselPrevSlideTrigger.CarouselPrevSlideTrigger,
|
|
24
|
+
Slide: carouselSlide.CarouselSlide,
|
|
25
|
+
SlideGroup: carouselSlideGroup.CarouselSlideGroup,
|
|
26
|
+
Viewport: carouselViewport.CarouselViewport
|
|
27
|
+
});
|
|
17
28
|
|
|
18
|
-
|
|
19
|
-
exports.Carousel = carousel.Carousel;
|
|
20
29
|
exports.useCarouselContext = carouselContext.useCarouselContext;
|
|
21
30
|
exports.CarouselControl = carouselControl.CarouselControl;
|
|
22
31
|
exports.CarouselIndicator = carouselIndicator.CarouselIndicator;
|
|
@@ -27,3 +36,4 @@ exports.CarouselSlide = carouselSlide.CarouselSlide;
|
|
|
27
36
|
exports.CarouselSlideGroup = carouselSlideGroup.CarouselSlideGroup;
|
|
28
37
|
exports.CarouselViewport = carouselViewport.CarouselViewport;
|
|
29
38
|
exports.carouselAnatomy = carousel_anatomy.carouselAnatomy;
|
|
39
|
+
exports.Carousel = Carousel;
|
package/carousel/index.d.ts
CHANGED
|
@@ -1,11 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { PublicApi, Context, SlideIndicatorProps, SlideProps } from '@zag-js/carousel';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, ReactNode, CSSProperties, RefAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { type CarouselProps } from './carousel';
|
|
5
|
+
import { useCarouselContext } from './carousel-context';
|
|
6
|
+
import { CarouselControl, type CarouselControlProps } from './carousel-control';
|
|
7
|
+
import { CarouselIndicator, type CarouselIndicatorProps } from './carousel-indicator';
|
|
8
|
+
import { CarouselIndicatorGroup, type CarouselIndicatorGroupProps } from './carousel-indicator-group';
|
|
9
|
+
import { CarouselNextSlideTrigger, type CarouselNextSlideTriggerProps } from './carousel-next-slide-trigger';
|
|
10
|
+
import { CarouselPrevSlideTrigger, type CarouselPrevSlideTriggerProps } from './carousel-prev-slide-trigger';
|
|
11
|
+
import { CarouselSlide, type CarouselSlideProps } from './carousel-slide';
|
|
12
|
+
import { CarouselSlideGroup, type CarouselSlideGroupProps } from './carousel-slide-group';
|
|
13
|
+
import { CarouselViewport, type CarouselViewportProps } from './carousel-viewport';
|
|
14
|
+
import { carouselAnatomy } from './carousel.anatomy';
|
|
15
|
+
declare const Carousel: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
asChild?: boolean | undefined;
|
|
19
|
+
}, "ref"> & {
|
|
20
|
+
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
21
|
+
element: HTMLAttributes<HTMLElement>;
|
|
22
|
+
style: CSSProperties;
|
|
23
|
+
}>) => ReactNode);
|
|
24
|
+
}, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>> & {
|
|
25
|
+
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
asChild?: boolean | undefined;
|
|
29
|
+
}, "ref"> & {
|
|
30
|
+
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
31
|
+
element: HTMLAttributes<HTMLElement>;
|
|
32
|
+
style: CSSProperties;
|
|
33
|
+
}>) => ReactNode);
|
|
34
|
+
}, "getRootNode" | "id" | "ids" | "orientation" | "spacing" | "dir" | "loop" | "align" | "slidesPerView" | "index" | "onSlideChange"> & Pick<Partial<Context>, "id"> & Omit<Context, "id"> & RefAttributes<HTMLDivElement>>;
|
|
35
|
+
Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
asChild?: boolean | undefined;
|
|
39
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
40
|
+
Indicator: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
41
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
asChild?: boolean | undefined;
|
|
44
|
+
}, "ref">, keyof SlideIndicatorProps> & SlideIndicatorProps & RefAttributes<HTMLButtonElement>>;
|
|
45
|
+
IndicatorGroup: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
46
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean | undefined;
|
|
49
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
50
|
+
NextSlideTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
51
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
asChild?: boolean | undefined;
|
|
54
|
+
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
PrevSlideTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
56
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
asChild?: boolean | undefined;
|
|
59
|
+
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
Slide: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
61
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
asChild?: boolean | undefined;
|
|
64
|
+
}, "ref">, "index"> & SlideProps & RefAttributes<HTMLDivElement>>;
|
|
65
|
+
SlideGroup: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
66
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
asChild?: boolean | undefined;
|
|
69
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
70
|
+
Viewport: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
71
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
72
|
+
} & {
|
|
73
|
+
asChild?: boolean | undefined;
|
|
74
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
75
|
+
};
|
|
76
|
+
export { Carousel, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselNextSlideTrigger, CarouselPrevSlideTrigger, CarouselSlide, CarouselSlideGroup, CarouselViewport, carouselAnatomy, useCarouselContext, };
|
|
77
|
+
export type { CarouselControlProps, CarouselIndicatorGroupProps, CarouselIndicatorProps, CarouselNextSlideTriggerProps, CarouselPrevSlideTriggerProps, CarouselProps, CarouselSlideGroupProps, CarouselSlideProps, CarouselViewportProps, };
|
package/carousel/index.mjs
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { Carousel as Carousel$1 } from './carousel.mjs';
|
|
2
2
|
export { useCarouselContext } from './carousel-context.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { CarouselControl } from './carousel-control.mjs';
|
|
4
|
+
import { CarouselIndicator } from './carousel-indicator.mjs';
|
|
5
|
+
import { CarouselIndicatorGroup } from './carousel-indicator-group.mjs';
|
|
6
|
+
import { CarouselNextSlideTrigger } from './carousel-next-slide-trigger.mjs';
|
|
7
|
+
import { CarouselPrevSlideTrigger } from './carousel-prev-slide-trigger.mjs';
|
|
8
|
+
import { CarouselSlide } from './carousel-slide.mjs';
|
|
9
|
+
import { CarouselSlideGroup } from './carousel-slide-group.mjs';
|
|
10
|
+
import { CarouselViewport } from './carousel-viewport.mjs';
|
|
11
11
|
export { carouselAnatomy } from './carousel.anatomy.mjs';
|
|
12
|
+
|
|
13
|
+
const Carousel = Object.assign(Carousel$1, {
|
|
14
|
+
Root: Carousel$1,
|
|
15
|
+
Control: CarouselControl,
|
|
16
|
+
Indicator: CarouselIndicator,
|
|
17
|
+
IndicatorGroup: CarouselIndicatorGroup,
|
|
18
|
+
NextSlideTrigger: CarouselNextSlideTrigger,
|
|
19
|
+
PrevSlideTrigger: CarouselPrevSlideTrigger,
|
|
20
|
+
Slide: CarouselSlide,
|
|
21
|
+
SlideGroup: CarouselSlideGroup,
|
|
22
|
+
Viewport: CarouselViewport
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { Carousel, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselNextSlideTrigger, CarouselPrevSlideTrigger, CarouselSlide, CarouselSlideGroup, CarouselViewport };
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const carousel = require('@zag-js/carousel');
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
|
+
require('../environment/index.cjs');
|
|
9
10
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
10
11
|
|
|
11
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as carousel from '@zag-js/carousel';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseCarouselProps = Optional<carousel.Context, 'id'>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as carousel from '@zag-js/carousel';
|
|
3
3
|
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
4
4
|
import { useId } from 'react';
|
|
5
|
+
import '../environment/index.mjs';
|
|
5
6
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
6
7
|
|
|
7
8
|
const useCarousel = (props) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PublicApi } from '@zag-js/checkbox';
|
|
2
|
+
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
3
|
+
/// <reference types="react" />
|
|
3
4
|
import { type UseCheckboxReturn } from './use-checkbox';
|
|
4
5
|
export type CheckboxContext = UseCheckboxReturn;
|
|
5
6
|
export declare const CheckboxProvider: Provider<PublicApi<JSX.IntrinsicElements & {
|
|
@@ -10,9 +10,12 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const checkboxContext = require('./checkbox-context.cjs');
|
|
11
11
|
|
|
12
12
|
const CheckboxControl = react.forwardRef((props, ref) => {
|
|
13
|
-
const { controlProps } = checkboxContext.useCheckboxContext();
|
|
13
|
+
const { controlProps, hiddenInputProps } = checkboxContext.useCheckboxContext();
|
|
14
14
|
const mergedProps = react$1.mergeProps(controlProps, props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }),
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { ...hiddenInputProps })
|
|
18
|
+
] });
|
|
16
19
|
});
|
|
17
20
|
CheckboxControl.displayName = "CheckboxControl";
|
|
18
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type CheckboxControlProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const CheckboxControl: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, Fragment, 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 { useCheckboxContext } from './checkbox-context.mjs';
|
|
7
7
|
|
|
8
8
|
const CheckboxControl = forwardRef((props, ref) => {
|
|
9
|
-
const { controlProps } = useCheckboxContext();
|
|
9
|
+
const { controlProps, hiddenInputProps } = useCheckboxContext();
|
|
10
10
|
const mergedProps = mergeProps(controlProps, props);
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }),
|
|
13
|
+
/* @__PURE__ */ jsx("input", { ...hiddenInputProps })
|
|
14
|
+
] });
|
|
12
15
|
});
|
|
13
16
|
CheckboxControl.displayName = "CheckboxControl";
|
|
14
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type CheckboxLabelProps = ComponentPropsWithoutRef<typeof ark.span>;
|
|
4
4
|
export declare const CheckboxLabel: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
5
|
-
ref?: ((instance: HTMLSpanElement | null) => void) |
|
|
5
|
+
ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
asChild?: boolean | undefined;
|
|
8
8
|
}, "ref"> & RefAttributes<HTMLSpanElement>>;
|
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
import { type Assign } from '../types';
|
|
4
4
|
import { type CheckboxContext } from './checkbox-context';
|
|
@@ -10,6 +10,6 @@ export declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<Detailed
|
|
|
10
10
|
ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
asChild?: boolean | undefined;
|
|
13
|
-
}, "ref">, "name" | "value" | "children" | "
|
|
13
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
|
|
14
14
|
children: ReactNode | ((pages: CheckboxContext) => ReactNode);
|
|
15
15
|
} & RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
import { Checkbox } from '.';
|
|
4
|
+
type CheckboxType = typeof Checkbox;
|
|
5
|
+
declare const meta: Meta<CheckboxType>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Basic: () => JSX.Element;
|
|
8
|
+
export declare const Controlled: () => JSX.Element;
|
|
9
|
+
export declare const Indeterminate: () => JSX.Element;
|
|
10
|
+
export declare const RenderProp: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/checkbox/index.cjs
CHANGED
|
@@ -2,21 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const checkbox = require('./checkbox.cjs');
|
|
5
|
+
const checkbox$1 = require('./checkbox.cjs');
|
|
6
6
|
const checkboxContext = require('./checkbox-context.cjs');
|
|
7
7
|
const checkboxControl = require('./checkbox-control.cjs');
|
|
8
|
-
const checkboxInput = require('./checkbox-input.cjs');
|
|
9
8
|
const checkboxLabel = require('./checkbox-label.cjs');
|
|
10
|
-
const checkbox
|
|
11
|
-
|
|
9
|
+
const checkbox = require('@zag-js/checkbox');
|
|
12
10
|
|
|
11
|
+
const Checkbox = Object.assign(checkbox$1.Checkbox, {
|
|
12
|
+
Root: checkbox$1.Checkbox,
|
|
13
|
+
Control: checkboxControl.CheckboxControl,
|
|
14
|
+
Label: checkboxLabel.CheckboxLabel
|
|
15
|
+
});
|
|
13
16
|
|
|
14
|
-
exports.Checkbox = checkbox.Checkbox;
|
|
15
17
|
exports.useCheckboxContext = checkboxContext.useCheckboxContext;
|
|
16
18
|
exports.CheckboxControl = checkboxControl.CheckboxControl;
|
|
17
|
-
exports.CheckboxInput = checkboxInput.CheckboxInput;
|
|
18
19
|
exports.CheckboxLabel = checkboxLabel.CheckboxLabel;
|
|
19
20
|
Object.defineProperty(exports, 'checkboxAnatomy', {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: () => checkbox.anatomy
|
|
22
23
|
});
|
|
24
|
+
exports.Checkbox = Checkbox;
|
package/checkbox/index.d.ts
CHANGED
|
@@ -1,7 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { UseCheckboxProps } from './use-checkbox';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, ReactNode, HTMLAttributes, CSSProperties, RefAttributes } from 'react';
|
|
3
|
+
/// <reference types="react" />
|
|
4
|
+
import { PublicApi, CheckedState } from '@zag-js/checkbox';
|
|
5
|
+
import { type CheckboxProps } from './checkbox';
|
|
6
|
+
import { useCheckboxContext } from './checkbox-context';
|
|
7
|
+
import { CheckboxControl, type CheckboxControlProps } from './checkbox-control';
|
|
8
|
+
import { CheckboxLabel, type CheckboxLabelProps } from './checkbox-label';
|
|
9
|
+
import { checkboxAnatomy } from './checkbox.anatomy';
|
|
10
|
+
declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
asChild?: boolean | undefined;
|
|
14
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
|
|
15
|
+
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
16
|
+
element: HTMLAttributes<HTMLElement>;
|
|
17
|
+
style: CSSProperties;
|
|
18
|
+
}>) => ReactNode);
|
|
19
|
+
} & RefAttributes<HTMLLabelElement>> & {
|
|
20
|
+
Root: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLLabelElement | null) => void) | RefObject<HTMLLabelElement> | null | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
asChild?: boolean | undefined;
|
|
24
|
+
}, "ref">, "name" | "value" | "children" | "getRootNode" | "form" | "id" | "ids" | "disabled" | "onChange" | "dir" | "checked" | "required" | "invalid"> & Omit<UseCheckboxProps, "children"> & {
|
|
25
|
+
children: ReactNode | ((pages: PublicApi<JSX.IntrinsicElements & {
|
|
26
|
+
element: HTMLAttributes<HTMLElement>;
|
|
27
|
+
style: CSSProperties;
|
|
28
|
+
}>) => ReactNode);
|
|
29
|
+
} & RefAttributes<HTMLLabelElement>>;
|
|
30
|
+
Control: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
31
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
asChild?: boolean | undefined;
|
|
34
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
35
|
+
Label: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
36
|
+
ref?: RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
asChild?: boolean | undefined;
|
|
39
|
+
}, "ref"> & RefAttributes<HTMLSpanElement>>;
|
|
40
|
+
};
|
|
41
|
+
export { Checkbox, CheckboxControl, CheckboxLabel, checkboxAnatomy, useCheckboxContext };
|
|
42
|
+
export type { CheckboxControlProps, CheckboxLabelProps, CheckboxProps, CheckedState };
|
package/checkbox/index.mjs
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { Checkbox as Checkbox$1 } from './checkbox.mjs';
|
|
2
2
|
export { useCheckboxContext } from './checkbox-context.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { CheckboxLabel } from './checkbox-label.mjs';
|
|
3
|
+
import { CheckboxControl } from './checkbox-control.mjs';
|
|
4
|
+
import { CheckboxLabel } from './checkbox-label.mjs';
|
|
6
5
|
export { anatomy as checkboxAnatomy } from '@zag-js/checkbox';
|
|
6
|
+
|
|
7
|
+
const Checkbox = Object.assign(Checkbox$1, {
|
|
8
|
+
Root: Checkbox$1,
|
|
9
|
+
Control: CheckboxControl,
|
|
10
|
+
Label: CheckboxLabel
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { Checkbox, CheckboxControl, CheckboxLabel };
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const checkbox = require('@zag-js/checkbox');
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
|
+
require('../environment/index.cjs');
|
|
9
10
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
10
11
|
|
|
11
12
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as checkbox from '@zag-js/checkbox';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseCheckboxProps = Optional<checkbox.Context, 'id'>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as checkbox from '@zag-js/checkbox';
|
|
3
3
|
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
4
4
|
import { useId } from 'react';
|
|
5
|
+
import '../environment/index.mjs';
|
|
5
6
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
6
7
|
|
|
7
8
|
const useCheckbox = (props) => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Provider } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import type { ColorAreaProps } from '@zag-js/color-picker';
|
|
3
4
|
export declare const ColorPickerAreaProvider: Provider<ColorAreaProps>, useColorPickerAreaContext: () => ColorAreaProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerAreaGradientProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerAreaGradient: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerAreaThumbProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerAreaThumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorAreaProps } from '@zag-js/color-picker';
|
|
2
|
-
import
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type ColorPickerAreaProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, ColorAreaProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorChannelInputProps } from '@zag-js/color-picker';
|
|
2
|
-
import
|
|
2
|
+
import { ForwardRefExoticComponent, InputHTMLAttributes, DetailedHTMLProps, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type ColorPickerChannelInputProps = Assign<ColorChannelInputProps, ComponentPropsWithoutRef<typeof ark.input>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerChannelSliderBackgroundProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerChannelSliderBackground: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Provider } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import type { ColorChannelProps } from '@zag-js/color-picker';
|
|
3
4
|
export declare const ColorPickerChannelSliderProvider: Provider<ColorChannelProps>, useColorPickerChannelSliderContext: () => ColorChannelProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerChannelSliderThumbProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerChannelSliderThumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorChannelProps } from '@zag-js/color-picker';
|
|
2
|
-
import
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type ColorPickerChannelSliderTrackProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, ColorChannelProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerContentProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerContent: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PublicApi } from '@zag-js/color-picker';
|
|
2
|
+
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
3
|
+
/// <reference types="react" />
|
|
3
4
|
import { type UseColorPickerReturn } from './use-color-picker';
|
|
4
5
|
export type ColorPickerContext = UseColorPickerReturn;
|
|
5
6
|
export declare const ColorPickerProvider: Provider<PublicApi<JSX.IntrinsicElements & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerEyeDropperTriggerProps = ComponentPropsWithoutRef<typeof ark.button>;
|
|
4
4
|
export declare const ColorPickerEyeDropperTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerSwatchBackgroundProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerSwatchBackground: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Provider } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import type { ColorSwatchProps } from '@zag-js/color-picker';
|
|
3
4
|
export declare const ColorPickerSwatchProvider: Provider<ColorSwatchProps>, useColorPickerSwatchContext: () => ColorSwatchProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ColorPickerSwatchGroupProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ColorPickerSwatchGroup: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ColorSwatchProps } from '@zag-js/color-picker';
|
|
2
|
-
import
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
5
|
export type ColorPickerSwatchProps = Assign<ComponentPropsWithoutRef<typeof ark.button>, ColorSwatchProps>;
|