@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,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const colorPickerAnatomy: AnatomyInstance<"area" | "label" | "content" | "areaThumb" | "areaGradient" | "channelSliderTrack" | "
|
|
3
|
-
export declare const parts: Record<"area" | "label" | "content" | "areaThumb" | "areaGradient" | "channelSliderTrack" | "
|
|
1
|
+
import { AnatomyInstance, AnatomyPart } from '@zag-js/anatomy';
|
|
2
|
+
export declare const colorPickerAnatomy: AnatomyInstance<"area" | "label" | "content" | "areaThumb" | "areaGradient" | "channelSliderTrack" | "channelSliderTrackBackground" | "channelSliderThumb" | "channelInput" | "swatch" | "swatchBackground" | "eyeDropperTrigger" | "swatchGroup">;
|
|
3
|
+
export declare const parts: Record<"area" | "label" | "content" | "areaThumb" | "areaGradient" | "channelSliderTrack" | "channelSliderTrackBackground" | "channelSliderThumb" | "channelInput" | "swatch" | "swatchBackground" | "eyeDropperTrigger" | "swatchGroup", AnatomyPart>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
import { ColorPicker } from './';
|
|
4
|
+
type ColorPickerType = typeof ColorPicker;
|
|
5
|
+
declare const meta: Meta<ColorPickerType>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Basic: () => JSX.Element;
|
|
8
|
+
export declare const Controlled: () => JSX.Element;
|
package/color-picker/index.cjs
CHANGED
|
@@ -20,9 +20,22 @@ const colorPickerSwatchContext = require('./color-picker-swatch-context.cjs');
|
|
|
20
20
|
const colorPickerSwatchGroup = require('./color-picker-swatch-group.cjs');
|
|
21
21
|
const colorPicker_anatomy = require('./color-picker.anatomy.cjs');
|
|
22
22
|
|
|
23
|
+
const ColorPicker = Object.assign(colorPicker.ColorPicker, {
|
|
24
|
+
Root: colorPicker.ColorPicker,
|
|
25
|
+
Area: colorPickerArea.ColorPickerArea,
|
|
26
|
+
AreaGradient: colorPickerAreaGradient.ColorPickerAreaGradient,
|
|
27
|
+
AreaThumb: colorPickerAreaThumb.ColorPickerAreaThumb,
|
|
28
|
+
ChannelInput: colorPickerChannelInput.ColorPickerChannelInput,
|
|
29
|
+
ChannelSliderBackground: colorPickerChannelSliderBackground.ColorPickerChannelSliderBackground,
|
|
30
|
+
ChannelSliderThumb: colorPickerChannelSliderThumb.ColorPickerChannelSliderThumb,
|
|
31
|
+
ChannelSliderTrack: colorPickerChannelSliderTrack.ColorPickerChannelSliderTrack,
|
|
32
|
+
Content: colorPickerContent.ColorPickerContent,
|
|
33
|
+
EyeDropperTrigger: colorPickerEyeDropperTrigger.ColorPickerEyeDropperTrigger,
|
|
34
|
+
Swatch: colorPickerSwatch.ColorPickerSwatch,
|
|
35
|
+
SwatchBackground: colorPickerSwatchBackground.ColorPickerSwatchBackground,
|
|
36
|
+
SwatchGroup: colorPickerSwatchGroup.ColorPickerSwatchGroup
|
|
37
|
+
});
|
|
23
38
|
|
|
24
|
-
|
|
25
|
-
exports.ColorPicker = colorPicker.ColorPicker;
|
|
26
39
|
exports.ColorPickerArea = colorPickerArea.ColorPickerArea;
|
|
27
40
|
exports.useColorPickerAreaContext = colorPickerAreaContext.useColorPickerAreaContext;
|
|
28
41
|
exports.ColorPickerAreaGradient = colorPickerAreaGradient.ColorPickerAreaGradient;
|
|
@@ -39,3 +52,4 @@ exports.ColorPickerSwatchBackground = colorPickerSwatchBackground.ColorPickerSwa
|
|
|
39
52
|
exports.useColorPickerSwatchContext = colorPickerSwatchContext.useColorPickerSwatchContext;
|
|
40
53
|
exports.ColorPickerSwatchGroup = colorPickerSwatchGroup.ColorPickerSwatchGroup;
|
|
41
54
|
exports.colorPickerAnatomy = colorPicker_anatomy.colorPickerAnatomy;
|
|
55
|
+
exports.ColorPicker = ColorPicker;
|
package/color-picker/index.d.ts
CHANGED
|
@@ -1,17 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { ColorAreaProps, ColorChannelInputProps, ColorChannelProps, ColorSwatchProps } from '@zag-js/color-picker';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
/// <reference types="react" />
|
|
5
|
+
import { type ColorPickerProps } from './color-picker';
|
|
6
|
+
import { ColorPickerArea, type ColorPickerAreaProps } from './color-picker-area';
|
|
7
|
+
import { useColorPickerAreaContext } from './color-picker-area-context';
|
|
8
|
+
import { ColorPickerAreaGradient, type ColorPickerAreaGradientProps } from './color-picker-area-gradient';
|
|
9
|
+
import { ColorPickerAreaThumb, type ColorPickerAreaThumbProps } from './color-picker-area-thumb';
|
|
10
|
+
import { ColorPickerChannelInput, type ColorPickerChannelInputProps } from './color-picker-channel-input';
|
|
11
|
+
import { ColorPickerChannelSliderBackground, type ColorPickerChannelSliderBackgroundProps } from './color-picker-channel-slider-background';
|
|
12
|
+
import { ColorPickerChannelSliderThumb, type ColorPickerChannelSliderThumbProps } from './color-picker-channel-slider-thumb';
|
|
13
|
+
import { ColorPickerChannelSliderTrack, type ColorPickerChannelSliderTrackProps } from './color-picker-channel-slider-track';
|
|
14
|
+
import { ColorPickerContent, type ColorPickerContentProps } from './color-picker-content';
|
|
15
|
+
import { useColorPickerContext } from './color-picker-context';
|
|
16
|
+
import { ColorPickerEyeDropperTrigger, type ColorPickerEyeDropperTriggerProps } from './color-picker-eye-dropper-trigger';
|
|
17
|
+
import { ColorPickerSwatch, type ColorPickerSwatchProps } from './color-picker-swatch';
|
|
18
|
+
import { ColorPickerSwatchBackground, type ColorPickerSwatchBackgroundProps } from './color-picker-swatch-background';
|
|
19
|
+
import { useColorPickerSwatchContext } from './color-picker-swatch-context';
|
|
20
|
+
import { ColorPickerSwatchGroup, type ColorPickerSwatchGroupProps } from './color-picker-swatch-group';
|
|
21
|
+
import { colorPickerAnatomy } from './color-picker.anatomy';
|
|
22
|
+
declare const ColorPicker: ((props: ColorPickerProps) => JSX.Element) & {
|
|
23
|
+
Root: (props: ColorPickerProps) => JSX.Element;
|
|
24
|
+
Area: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
asChild?: boolean | undefined;
|
|
28
|
+
}, "ref">, keyof ColorAreaProps> & ColorAreaProps & RefAttributes<HTMLDivElement>>;
|
|
29
|
+
AreaGradient: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
31
|
+
} & {
|
|
32
|
+
asChild?: boolean | undefined;
|
|
33
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
34
|
+
AreaThumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
35
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
asChild?: boolean | undefined;
|
|
38
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
39
|
+
ChannelInput: ForwardRefExoticComponent<Omit<ColorChannelInputProps, "key" | keyof InputHTMLAttributes<HTMLInputElement> | "asChild"> & Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
40
|
+
ref?: ((instance: HTMLInputElement | null) => void) | RefObject<HTMLInputElement> | null | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
asChild?: boolean | undefined;
|
|
43
|
+
}, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
44
|
+
ChannelSliderBackground: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
45
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
asChild?: boolean | undefined;
|
|
48
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
49
|
+
ChannelSliderThumb: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
50
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
asChild?: boolean | undefined;
|
|
53
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
54
|
+
ChannelSliderTrack: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
55
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean | undefined;
|
|
58
|
+
}, "ref">, keyof ColorChannelProps> & ColorChannelProps & RefAttributes<HTMLDivElement>>;
|
|
59
|
+
Content: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
asChild?: boolean | undefined;
|
|
63
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
64
|
+
EyeDropperTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
65
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
asChild?: boolean | undefined;
|
|
68
|
+
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
69
|
+
Swatch: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
70
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
asChild?: boolean | undefined;
|
|
73
|
+
}, "ref">, keyof ColorSwatchProps> & ColorSwatchProps & RefAttributes<HTMLButtonElement>>;
|
|
74
|
+
SwatchBackground: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
75
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
76
|
+
} & {
|
|
77
|
+
asChild?: boolean | undefined;
|
|
78
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
79
|
+
SwatchGroup: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
80
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
81
|
+
} & {
|
|
82
|
+
asChild?: boolean | undefined;
|
|
83
|
+
}, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
84
|
+
};
|
|
85
|
+
export { ColorPicker, ColorPickerArea, ColorPickerAreaGradient, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSliderBackground, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerEyeDropperTrigger, ColorPickerSwatch, ColorPickerSwatchBackground, ColorPickerSwatchGroup, colorPickerAnatomy, useColorPickerAreaContext, useColorPickerContext, useColorPickerSwatchContext, };
|
|
86
|
+
export type { ColorPickerAreaGradientProps, ColorPickerAreaProps, ColorPickerAreaThumbProps, ColorPickerChannelInputProps, ColorPickerChannelSliderBackgroundProps, ColorPickerChannelSliderThumbProps, ColorPickerChannelSliderTrackProps, ColorPickerContentProps, ColorPickerEyeDropperTriggerProps, ColorPickerProps, ColorPickerSwatchBackgroundProps, ColorPickerSwatchGroupProps, ColorPickerSwatchProps, };
|
package/color-picker/index.mjs
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ColorPicker as ColorPicker$1 } from './color-picker.mjs';
|
|
2
|
+
import { ColorPickerArea } from './color-picker-area.mjs';
|
|
3
3
|
export { useColorPickerAreaContext } from './color-picker-area-context.mjs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
import { ColorPickerAreaGradient } from './color-picker-area-gradient.mjs';
|
|
5
|
+
import { ColorPickerAreaThumb } from './color-picker-area-thumb.mjs';
|
|
6
|
+
import { ColorPickerChannelInput } from './color-picker-channel-input.mjs';
|
|
7
|
+
import { ColorPickerChannelSliderBackground } from './color-picker-channel-slider-background.mjs';
|
|
8
|
+
import { ColorPickerChannelSliderThumb } from './color-picker-channel-slider-thumb.mjs';
|
|
9
|
+
import { ColorPickerChannelSliderTrack } from './color-picker-channel-slider-track.mjs';
|
|
10
|
+
import { ColorPickerContent } from './color-picker-content.mjs';
|
|
11
11
|
export { useColorPickerContext } from './color-picker-context.mjs';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
import { ColorPickerEyeDropperTrigger } from './color-picker-eye-dropper-trigger.mjs';
|
|
13
|
+
import { ColorPickerSwatch } from './color-picker-swatch.mjs';
|
|
14
|
+
import { ColorPickerSwatchBackground } from './color-picker-swatch-background.mjs';
|
|
15
15
|
export { useColorPickerSwatchContext } from './color-picker-swatch-context.mjs';
|
|
16
|
-
|
|
16
|
+
import { ColorPickerSwatchGroup } from './color-picker-swatch-group.mjs';
|
|
17
17
|
export { colorPickerAnatomy } from './color-picker.anatomy.mjs';
|
|
18
|
+
|
|
19
|
+
const ColorPicker = Object.assign(ColorPicker$1, {
|
|
20
|
+
Root: ColorPicker$1,
|
|
21
|
+
Area: ColorPickerArea,
|
|
22
|
+
AreaGradient: ColorPickerAreaGradient,
|
|
23
|
+
AreaThumb: ColorPickerAreaThumb,
|
|
24
|
+
ChannelInput: ColorPickerChannelInput,
|
|
25
|
+
ChannelSliderBackground: ColorPickerChannelSliderBackground,
|
|
26
|
+
ChannelSliderThumb: ColorPickerChannelSliderThumb,
|
|
27
|
+
ChannelSliderTrack: ColorPickerChannelSliderTrack,
|
|
28
|
+
Content: ColorPickerContent,
|
|
29
|
+
EyeDropperTrigger: ColorPickerEyeDropperTrigger,
|
|
30
|
+
Swatch: ColorPickerSwatch,
|
|
31
|
+
SwatchBackground: ColorPickerSwatchBackground,
|
|
32
|
+
SwatchGroup: ColorPickerSwatchGroup
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { ColorPicker, ColorPickerArea, ColorPickerAreaGradient, ColorPickerAreaThumb, ColorPickerChannelInput, ColorPickerChannelSliderBackground, ColorPickerChannelSliderThumb, ColorPickerChannelSliderTrack, ColorPickerContent, ColorPickerEyeDropperTrigger, ColorPickerSwatch, ColorPickerSwatchBackground, ColorPickerSwatchGroup };
|
|
@@ -7,6 +7,7 @@ const colorPicker = require('@zag-js/color-picker');
|
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const reactDom = require('react-dom');
|
|
10
|
+
require('../environment/index.cjs');
|
|
10
11
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
11
12
|
|
|
12
13
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HTMLAttributes, CSSProperties } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as colorPicker from '@zag-js/color-picker';
|
|
3
4
|
import type { Optional } from '../types';
|
|
4
5
|
export type UseColorPickerProps = Optional<colorPicker.Context, 'id'> & {
|
|
@@ -3,6 +3,7 @@ import * as colorPicker from '@zag-js/color-picker';
|
|
|
3
3
|
import { useMachine, normalizeProps } from '@zag-js/react';
|
|
4
4
|
import { useId, useCallback } from 'react';
|
|
5
5
|
import { flushSync } from 'react-dom';
|
|
6
|
+
import '../environment/index.mjs';
|
|
6
7
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
7
8
|
|
|
8
9
|
const useColorPicker = (props) => {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
11
|
+
|
|
12
|
+
const ComboboxClearTrigger = react.forwardRef(
|
|
13
|
+
(props, ref) => {
|
|
14
|
+
const { clearTriggerProps } = comboboxContext.useComboboxContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(clearTriggerProps, props);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
ComboboxClearTrigger.displayName = "ComboboxClearTrigger";
|
|
20
|
+
|
|
21
|
+
exports.ComboboxClearTrigger = ComboboxClearTrigger;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, ButtonHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { ark } from '../factory';
|
|
3
|
+
export type ComboboxClearTriggerProps = ComponentPropsWithoutRef<typeof ark.button>;
|
|
4
|
+
export declare const ComboboxClearTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | RefObject<HTMLButtonElement> | null | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean | undefined;
|
|
8
|
+
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.mjs';
|
|
6
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
7
|
+
|
|
8
|
+
const ComboboxClearTrigger = forwardRef(
|
|
9
|
+
(props, ref) => {
|
|
10
|
+
const { clearTriggerProps } = useComboboxContext();
|
|
11
|
+
const mergedProps = mergeProps(clearTriggerProps, props);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
ComboboxClearTrigger.displayName = "ComboboxClearTrigger";
|
|
16
|
+
|
|
17
|
+
export { ComboboxClearTrigger };
|
|
@@ -7,9 +7,10 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
|
-
|
|
10
|
+
require('../presence/index.cjs');
|
|
11
11
|
const comboboxContext = require('./combobox-context.cjs');
|
|
12
12
|
const comboboxPresence = require('./combobox-presence.cjs');
|
|
13
|
+
const splitPresenceProps = require('../presence/split-presence-props.cjs');
|
|
13
14
|
|
|
14
15
|
const ComboboxContent = react.forwardRef((props, ref) => {
|
|
15
16
|
const [presenceProps, comboboxContentProps] = splitPresenceProps.splitPresenceProps(props);
|
|
@@ -20,7 +21,7 @@ const InnerComboboxContent = react.forwardRef(
|
|
|
20
21
|
(props, ref) => {
|
|
21
22
|
const { contentProps } = comboboxContext.useComboboxContext();
|
|
22
23
|
const mergedProps = react$1.mergeProps(contentProps, props);
|
|
23
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
24
25
|
}
|
|
25
26
|
);
|
|
26
27
|
InnerComboboxContent.displayName = "InnerComboboxContent";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PresenceProps } from '../presence';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
import { ark } from '../factory';
|
|
4
4
|
import { type ComboboxPresenceProps } from './combobox-presence';
|
|
5
|
-
export type ComboboxContentProps = ComponentPropsWithoutRef<typeof ark.
|
|
6
|
-
export declare const ComboboxContent: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<
|
|
7
|
-
ref?: ((instance:
|
|
5
|
+
export type ComboboxContentProps = ComponentPropsWithoutRef<typeof ark.div> & Omit<ComboboxPresenceProps, 'children'>;
|
|
6
|
+
export declare const ComboboxContent: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean | undefined;
|
|
10
|
-
}, "ref"> & Omit<PresenceProps, "children"> & RefAttributes<
|
|
10
|
+
}, "ref"> & Omit<PresenceProps, "children"> & RefAttributes<HTMLDivElement>>;
|
|
@@ -3,9 +3,10 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
6
|
-
import
|
|
6
|
+
import '../presence/index.mjs';
|
|
7
7
|
import { useComboboxContext } from './combobox-context.mjs';
|
|
8
8
|
import { ComboboxPresence } from './combobox-presence.mjs';
|
|
9
|
+
import { splitPresenceProps } from '../presence/split-presence-props.mjs';
|
|
9
10
|
|
|
10
11
|
const ComboboxContent = forwardRef((props, ref) => {
|
|
11
12
|
const [presenceProps, comboboxContentProps] = splitPresenceProps(props);
|
|
@@ -16,7 +17,7 @@ const InnerComboboxContent = forwardRef(
|
|
|
16
17
|
(props, ref) => {
|
|
17
18
|
const { contentProps } = useComboboxContext();
|
|
18
19
|
const mergedProps = mergeProps(contentProps, props);
|
|
19
|
-
return /* @__PURE__ */ jsx(ark.
|
|
20
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
20
21
|
}
|
|
21
22
|
);
|
|
22
23
|
InnerComboboxContent.displayName = "InnerComboboxContent";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PublicApi } from '@zag-js/combobox';
|
|
2
|
+
import { Provider, HTMLAttributes, CSSProperties } from 'react';
|
|
3
|
+
/// <reference types="react" />
|
|
3
4
|
import { type UseComboboxReturn } from './use-combobox';
|
|
4
5
|
export type ComboboxContext = UseComboboxReturn;
|
|
5
6
|
export declare const ComboboxProvider: Provider<PublicApi<JSX.IntrinsicElements & {
|
|
@@ -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 ComboboxControlProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ComboboxControl: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, InputHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ComboboxInputProps = ComponentPropsWithoutRef<typeof ark.input>;
|
|
4
4
|
export declare const ComboboxInput: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, LabelHTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ark } from '../factory';
|
|
3
3
|
export type ComboboxLabelProps = ComponentPropsWithoutRef<typeof ark.label>;
|
|
4
4
|
export declare const ComboboxLabel: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ComboboxOptionGroupLabel = react.forwardRef(
|
|
14
|
+
(props, ref) => {
|
|
15
|
+
const [optionProps, labelProps] = createSplitProps.createSplitProps()(props, ["htmlFor"]);
|
|
16
|
+
const { getOptionGroupLabelProps } = comboboxContext.useComboboxContext();
|
|
17
|
+
const mergedProps = react$1.mergeProps(getOptionGroupLabelProps(optionProps), labelProps);
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
ComboboxOptionGroupLabel.displayName = "ComboboxOptionGroupLabel";
|
|
22
|
+
|
|
23
|
+
exports.ComboboxOptionGroupLabel = ComboboxOptionGroupLabel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OptionGroupLabelProps } from '@zag-js/combobox';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { ark } from '../factory';
|
|
4
|
+
import { type Assign } from '../types';
|
|
5
|
+
export type ComboboxOptionGroupLabelProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, OptionGroupLabelProps>;
|
|
6
|
+
export declare const ComboboxOptionGroupLabel: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
}, "ref">, "htmlFor"> & OptionGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
6
|
+
import { ark } from '../factory.mjs';
|
|
7
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
8
|
+
|
|
9
|
+
const ComboboxOptionGroupLabel = forwardRef(
|
|
10
|
+
(props, ref) => {
|
|
11
|
+
const [optionProps, labelProps] = createSplitProps()(props, ["htmlFor"]);
|
|
12
|
+
const { getOptionGroupLabelProps } = useComboboxContext();
|
|
13
|
+
const mergedProps = mergeProps(getOptionGroupLabelProps(optionProps), labelProps);
|
|
14
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
ComboboxOptionGroupLabel.displayName = "ComboboxOptionGroupLabel";
|
|
18
|
+
|
|
19
|
+
export { ComboboxOptionGroupLabel };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
12
|
+
|
|
13
|
+
const ComboboxOptionGroup = react.forwardRef(
|
|
14
|
+
(props, ref) => {
|
|
15
|
+
const [optionProps, localProps] = createSplitProps.createSplitProps()(props, ["id"]);
|
|
16
|
+
const { getOptionGroupProps } = comboboxContext.useComboboxContext();
|
|
17
|
+
const mergedProps = react$1.mergeProps(getOptionGroupProps(optionProps), localProps);
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
ComboboxOptionGroup.displayName = "ComboboxOptionGroup";
|
|
22
|
+
|
|
23
|
+
exports.ComboboxOptionGroup = ComboboxOptionGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OptionGroupProps } from '@zag-js/combobox';
|
|
2
|
+
import { ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefObject, RefAttributes, type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { ark } from '../factory';
|
|
4
|
+
import type { Assign } from '../types';
|
|
5
|
+
export type ComboboxOptionGroupProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, OptionGroupProps>;
|
|
6
|
+
export declare const ComboboxOptionGroup: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
asChild?: boolean | undefined;
|
|
10
|
+
}, "ref">, "id"> & OptionGroupProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
6
|
+
import { ark } from '../factory.mjs';
|
|
7
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
8
|
+
|
|
9
|
+
const ComboboxOptionGroup = forwardRef(
|
|
10
|
+
(props, ref) => {
|
|
11
|
+
const [optionProps, localProps] = createSplitProps()(props, ["id"]);
|
|
12
|
+
const { getOptionGroupProps } = useComboboxContext();
|
|
13
|
+
const mergedProps = mergeProps(getOptionGroupProps(optionProps), localProps);
|
|
14
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
ComboboxOptionGroup.displayName = "ComboboxOptionGroup";
|
|
18
|
+
|
|
19
|
+
export { ComboboxOptionGroup };
|
|
@@ -20,7 +20,7 @@ const ComboboxOption = react.forwardRef((props, ref) => {
|
|
|
20
20
|
]);
|
|
21
21
|
const { getOptionProps } = comboboxContext.useComboboxContext();
|
|
22
22
|
const mergedProps = react$1.mergeProps(getOptionProps(optionProps), liProps);
|
|
23
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: children ? children : optionProps.label });
|
|
24
24
|
});
|
|
25
25
|
ComboboxOption.displayName = "ComboboxOption";
|
|
26
26
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { OptionData, OptionProps } from '@zag-js/combobox';
|
|
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
|
-
export type ComboboxOptionProps = Assign<ComponentPropsWithoutRef<typeof ark.
|
|
6
|
-
export declare const ComboboxOption: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<
|
|
7
|
-
ref?: ((instance:
|
|
5
|
+
export type ComboboxOptionProps = Assign<ComponentPropsWithoutRef<typeof ark.div>, OptionProps>;
|
|
6
|
+
export declare const ComboboxOption: ForwardRefExoticComponent<Omit<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
asChild?: boolean | undefined;
|
|
10
10
|
}, "ref">, "disabled" | "index" | keyof OptionData | "count"> & OptionData & {
|
|
11
11
|
index?: number | undefined;
|
|
12
12
|
count?: number | undefined;
|
|
13
13
|
disabled?: boolean | undefined;
|
|
14
|
-
} & RefAttributes<
|
|
14
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
@@ -16,7 +16,7 @@ const ComboboxOption = forwardRef((props, ref) => {
|
|
|
16
16
|
]);
|
|
17
17
|
const { getOptionProps } = useComboboxContext();
|
|
18
18
|
const mergedProps = mergeProps(getOptionProps(optionProps), liProps);
|
|
19
|
-
return /* @__PURE__ */ jsx(ark.
|
|
19
|
+
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: children ? children : optionProps.label });
|
|
20
20
|
});
|
|
21
21
|
ComboboxOption.displayName = "ComboboxOption";
|
|
22
22
|
|
|
@@ -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 ComboboxPositionerProps = ComponentPropsWithoutRef<typeof ark.div>;
|
|
4
4
|
export declare const ComboboxPositioner: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const
|
|
7
|
+
const index = require('../presence/index.cjs');
|
|
8
8
|
const comboboxContext = require('./combobox-context.cjs');
|
|
9
9
|
|
|
10
10
|
const ComboboxPresence = (props) => {
|
|
11
11
|
const { present, ...rest } = props;
|
|
12
12
|
const { isOpen } = comboboxContext.useComboboxContext();
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Presence, { present: present !== void 0 ? present : isOpen, ...rest });
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.ComboboxPresence = ComboboxPresence;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
import { type PresenceProps } from '../presence';
|
|
3
3
|
export type ComboboxPresenceProps = PresenceProps;
|
|
4
4
|
export declare const ComboboxPresence: (props: ComboboxPresenceProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { Presence } from '../presence/
|
|
3
|
+
import { Presence } from '../presence/index.mjs';
|
|
4
4
|
import { useComboboxContext } from './combobox-context.mjs';
|
|
5
5
|
|
|
6
6
|
const ComboboxPresence = (props) => {
|
|
@@ -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 ComboboxTriggerProps = ComponentPropsWithoutRef<typeof ark.button>;
|
|
4
4
|
export declare const ComboboxTrigger: ForwardRefExoticComponent<Omit<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
package/combobox/combobox.cjs
CHANGED
|
@@ -34,11 +34,13 @@ const Combobox = react.forwardRef((props, ref) => {
|
|
|
34
34
|
"loop",
|
|
35
35
|
"name",
|
|
36
36
|
"onClose",
|
|
37
|
+
"onFocusOutside",
|
|
37
38
|
"onHighlight",
|
|
38
39
|
"onInputChange",
|
|
39
40
|
"onInputChange",
|
|
40
41
|
"onInteractOutside",
|
|
41
42
|
"onOpen",
|
|
43
|
+
"onPointerDownOutside",
|
|
42
44
|
"onSelect",
|
|
43
45
|
"openOnClick",
|
|
44
46
|
"placeholder",
|