@ark-ui/solid 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -2
- package/accordion/accordion-content.d.ts +1 -1
- package/accordion/accordion-context.d.ts +2 -5
- package/accordion/accordion-item-context.d.ts +3 -5
- package/accordion/accordion-item.cjs +7 -6
- package/accordion/accordion-item.d.ts +2 -3
- package/accordion/accordion-item.mjs +7 -6
- package/accordion/accordion-trigger.d.ts +1 -1
- package/accordion/accordion.cjs +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.mjs +1 -1
- package/accordion/accordion.stories.d.ts +12 -0
- package/accordion/accordion.test.d.ts +1 -0
- package/accordion/index.cjs +11 -6
- package/accordion/index.d.ts +16 -7
- package/accordion/index.mjs +13 -4
- package/accordion/use-accordion.cjs +1 -0
- package/accordion/use-accordion.d.ts +4 -4
- package/accordion/use-accordion.mjs +1 -0
- package/avatar/avatar-context.d.ts +2 -5
- package/avatar/avatar-fallback.d.ts +1 -1
- package/avatar/avatar-image.d.ts +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.stories.d.ts +6 -0
- package/avatar/index.cjs +10 -6
- package/avatar/index.d.ts +13 -5
- package/avatar/index.mjs +11 -3
- package/avatar/use-avatar.cjs +1 -0
- package/avatar/use-avatar.d.ts +4 -4
- package/avatar/use-avatar.mjs +1 -0
- package/carousel/carousel-context.d.ts +2 -5
- 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 +1 -1
- package/carousel/carousel.stories.d.ts +6 -0
- package/carousel/index.cjs +12 -2
- package/carousel/index.d.ts +25 -11
- package/carousel/index.mjs +23 -9
- package/carousel/use-carousel.cjs +1 -0
- package/carousel/use-carousel.d.ts +4 -4
- package/carousel/use-carousel.mjs +1 -0
- package/checkbox/checkbox-context.d.ts +2 -5
- package/checkbox/checkbox-control.cjs +6 -1
- package/checkbox/checkbox-control.d.ts +1 -1
- package/checkbox/checkbox-control.mjs +7 -2
- package/checkbox/checkbox-label.d.ts +1 -1
- package/checkbox/checkbox.stories.d.ts +8 -0
- package/checkbox/index.cjs +10 -8
- package/checkbox/index.d.ts +14 -7
- package/checkbox/index.mjs +11 -4
- package/checkbox/use-checkbox.cjs +1 -0
- package/checkbox/use-checkbox.d.ts +4 -4
- package/checkbox/use-checkbox.mjs +1 -0
- package/clone-element.d.ts +2 -0
- package/color-picker/color-picker-area-context.d.ts +1 -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 +1 -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 +2 -5
- 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 +1 -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.cjs +1 -1
- package/color-picker/color-picker.mjs +1 -1
- package/color-picker/color-picker.stories.d.ts +6 -0
- package/color-picker/index.cjs +16 -2
- package/color-picker/index.d.ts +35 -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 +4 -4
- package/color-picker/use-color-picker.mjs +1 -0
- package/combobox/combobox-clear-trigger.d.ts +1 -1
- package/combobox/combobox-content.cjs +1 -1
- package/combobox/combobox-content.d.ts +2 -2
- package/combobox/combobox-content.mjs +1 -1
- package/combobox/combobox-context.d.ts +2 -5
- 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 +18 -0
- package/combobox/combobox-option-group-label.d.ts +6 -0
- package/combobox/combobox-option-group-label.mjs +14 -0
- package/combobox/combobox-option-group.cjs +4 -2
- package/combobox/combobox-option-group.d.ts +2 -2
- package/combobox/combobox-option-group.mjs +4 -2
- package/combobox/combobox-option.cjs +1 -1
- package/combobox/combobox-option.d.ts +3 -5
- package/combobox/combobox-option.mjs +1 -1
- package/combobox/combobox-positioner.d.ts +1 -1
- package/combobox/combobox-trigger.d.ts +1 -1
- package/combobox/combobox.cjs +1 -1
- package/combobox/combobox.mjs +1 -1
- package/combobox/combobox.stories.d.ts +5 -0
- package/combobox/combobox.test.d.ts +1 -0
- package/combobox/index.cjs +20 -6
- package/combobox/index.d.ts +29 -12
- package/combobox/index.mjs +27 -10
- package/combobox/use-combobox.cjs +1 -0
- package/combobox/use-combobox.d.ts +4 -4
- package/combobox/use-combobox.mjs +1 -0
- package/create-split-props.test.d.ts +1 -0
- package/date-picker/date-picker-cell-context.d.ts +1 -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 +2 -5
- package/date-picker/date-picker-control.d.ts +1 -1
- package/date-picker/date-picker-day-cell-context.d.ts +1 -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.cjs +7 -2
- package/date-picker/date-picker-month-select.d.ts +1 -1
- package/date-picker/date-picker-month-select.mjs +8 -3
- package/date-picker/date-picker-next-trigger.d.ts +1 -1
- package/date-picker/date-picker-positioner.cjs +16 -0
- package/date-picker/date-picker-positioner.d.ts +4 -0
- package/date-picker/date-picker-positioner.mjs +12 -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.cjs +7 -2
- package/date-picker/date-picker-year-select.d.ts +1 -1
- package/date-picker/date-picker-year-select.mjs +8 -3
- package/date-picker/date-picker.anatomy.d.ts +3 -3
- package/date-picker/date-picker.cjs +1 -1
- package/date-picker/date-picker.mjs +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 +55 -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 +4 -4
- package/date-picker/use-date-picker.mjs +1 -0
- package/dialog/dialog-backdrop.d.ts +1 -1
- package/dialog/dialog-close-trigger.d.ts +1 -1
- package/dialog/dialog-container.d.ts +1 -1
- package/dialog/dialog-content.d.ts +1 -1
- package/dialog/dialog-context.d.ts +2 -5
- package/dialog/dialog-description.d.ts +1 -1
- package/dialog/dialog-title.d.ts +1 -1
- package/dialog/dialog-trigger.d.ts +1 -1
- package/dialog/dialog.stories.d.ts +6 -0
- package/dialog/dialog.test.d.ts +1 -0
- package/dialog/index.cjs +15 -6
- package/dialog/index.d.ts +23 -10
- package/dialog/index.mjs +21 -8
- package/dialog/use-dialog.cjs +1 -0
- package/dialog/use-dialog.d.ts +4 -4
- 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 +2 -5
- 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 +1 -1
- package/editable/editable-submit-trigger.d.ts +1 -1
- package/editable/editable.cjs +1 -1
- package/editable/editable.mjs +1 -1
- package/editable/editable.stories.d.ts +6 -0
- package/editable/index.cjs +16 -6
- package/editable/index.d.ts +25 -11
- package/editable/index.mjs +23 -9
- package/editable/use-editable.cjs +1 -0
- package/editable/use-editable.d.ts +4 -4
- package/editable/use-editable.mjs +1 -0
- package/environment/environment-context.d.ts +2 -2
- package/environment/environment.cjs +7 -2
- package/environment/environment.mjs +8 -3
- package/environment/environment.stories.d.ts +5 -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/factory.d.ts +4 -4
- package/filter-object.test.d.ts +1 -0
- 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.d.ts +1 -1
- package/hover-card/hover-card-context.d.ts +2 -5
- package/hover-card/hover-card-positioner.d.ts +1 -1
- package/hover-card/hover-card-trigger.d.ts +1 -1
- package/hover-card/hover-card.stories.d.ts +8 -0
- package/hover-card/index.cjs +13 -6
- package/hover-card/index.d.ts +19 -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 +4 -4
- package/hover-card/use-hover-card.mjs +1 -0
- package/index.cjs +239 -241
- package/index.mjs +89 -90
- package/menu/index.cjs +19 -5
- package/menu/index.d.ts +33 -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 +1 -1
- package/menu/menu-item-group-label.d.ts +1 -1
- package/menu/menu-item-group.d.ts +1 -1
- package/menu/menu-item.d.ts +3 -5
- 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 +1 -1
- package/menu/menu.mjs +1 -1
- package/menu/menu.stories.d.ts +9 -0
- package/menu/use-menu.cjs +1 -0
- package/menu/use-menu.d.ts +3 -1
- package/menu/use-menu.mjs +1 -0
- package/number-input/index.cjs +14 -6
- package/number-input/index.d.ts +21 -9
- package/number-input/index.mjs +19 -7
- package/number-input/number-input-context.d.ts +2 -5
- 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.cjs +2 -2
- package/number-input/number-input-field.d.ts +3 -3
- package/number-input/number-input-field.mjs +2 -2
- 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 +1 -1
- package/number-input/number-input.stories.d.ts +5 -0
- package/number-input/use-number-input.cjs +1 -0
- package/number-input/use-number-input.d.ts +4 -4
- package/number-input/use-number-input.mjs +1 -0
- package/package.json +48 -48
- package/pagination/index.cjs +10 -2
- package/pagination/index.d.ts +21 -9
- package/pagination/index.mjs +19 -7
- package/pagination/pagination-context.d.ts +2 -5
- 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.anatomy.d.ts +1 -1
- package/pagination/pagination.stories.d.ts +7 -0
- package/pagination/use-pagination.cjs +1 -0
- package/pagination/use-pagination.d.ts +4 -4
- package/pagination/use-pagination.mjs +1 -0
- package/pin-input/index.cjs +12 -7
- package/pin-input/index.d.ts +15 -6
- package/pin-input/index.mjs +13 -4
- package/pin-input/pin-input-context.d.ts +2 -5
- package/pin-input/pin-input-control.cjs +8 -3
- package/pin-input/pin-input-control.d.ts +1 -1
- package/pin-input/pin-input-control.mjs +9 -4
- package/pin-input/pin-input-field.cjs +2 -2
- package/pin-input/pin-input-field.d.ts +3 -3
- package/pin-input/pin-input-field.mjs +2 -2
- package/pin-input/pin-input-label.d.ts +1 -1
- package/pin-input/pin-input.d.ts +1 -1
- package/pin-input/pin-input.stories.d.ts +5 -0
- package/pin-input/use-pin-input.cjs +1 -0
- package/pin-input/use-pin-input.d.ts +4 -4
- package/pin-input/use-pin-input.mjs +1 -0
- package/popover/index.cjs +17 -6
- package/popover/index.d.ts +27 -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.d.ts +1 -1
- package/popover/popover-context.d.ts +2 -5
- package/popover/popover-description.d.ts +1 -1
- package/popover/popover-positioner.d.ts +1 -1
- package/popover/popover-title.d.ts +1 -1
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.stories.d.ts +6 -0
- package/popover/use-popover.cjs +1 -0
- package/popover/use-popover.d.ts +4 -4
- package/popover/use-popover.mjs +1 -0
- package/pressable/index.cjs +4 -2
- package/pressable/index.d.ts +8 -2
- package/pressable/index.mjs +7 -1
- package/pressable/pressable.d.ts +1 -1
- package/pressable/pressable.stories.d.ts +5 -0
- package/pressable/pressable.test.d.ts +1 -0
- package/pressable/use-pressable.cjs +1 -0
- package/pressable/use-pressable.d.ts +4 -4
- package/pressable/use-pressable.mjs +1 -0
- package/radio-group/index.cjs +10 -6
- package/radio-group/index.d.ts +18 -9
- package/radio-group/index.mjs +15 -6
- package/radio-group/radio-context.d.ts +1 -1
- package/radio-group/radio-control.cjs +8 -3
- package/radio-group/radio-control.d.ts +1 -1
- package/radio-group/radio-control.mjs +9 -4
- package/radio-group/radio-group-context.d.ts +2 -5
- package/radio-group/radio-group-label.d.ts +1 -1
- package/radio-group/radio-group.d.ts +1 -1
- package/radio-group/radio-group.stories.d.ts +6 -0
- package/radio-group/radio-group.test.d.ts +1 -0
- package/radio-group/radio-label.d.ts +1 -1
- 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 +4 -4
- package/radio-group/use-radio-group.mjs +1 -0
- package/range-slider/index.cjs +15 -5
- package/range-slider/index.d.ts +25 -11
- package/range-slider/index.mjs +23 -9
- package/range-slider/range-slider-context.d.ts +2 -5
- 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 +1 -1
- package/range-slider/range-slider-range.d.ts +1 -1
- package/range-slider/range-slider-thumb.cjs +7 -2
- package/range-slider/range-slider-thumb.d.ts +2 -2
- package/range-slider/range-slider-thumb.mjs +8 -3
- package/range-slider/range-slider-track.d.ts +1 -1
- package/range-slider/range-slider.cjs +1 -1
- package/range-slider/range-slider.mjs +1 -1
- package/range-slider/range-slider.stories.d.ts +5 -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 +4 -4
- package/range-slider/use-range-slider.mjs +1 -0
- package/rating-group/index.cjs +9 -4
- package/rating-group/index.d.ts +16 -7
- package/rating-group/index.mjs +13 -4
- package/rating-group/rating-context.d.ts +2 -3
- package/rating-group/rating-group-context.d.ts +2 -5
- package/rating-group/rating-group-control.cjs +7 -2
- package/rating-group/rating-group-control.mjs +8 -3
- package/rating-group/rating-group-label.d.ts +1 -1
- package/rating-group/rating-group.cjs +3 -7
- package/rating-group/rating-group.d.ts +1 -1
- package/rating-group/rating-group.mjs +4 -8
- package/rating-group/rating-group.stories.d.ts +6 -0
- package/rating-group/use-rating-group.cjs +1 -0
- package/rating-group/use-rating-group.d.ts +4 -4
- package/rating-group/use-rating-group.mjs +1 -0
- package/run-if-fn.test.d.ts +1 -0
- package/segment-group/index.cjs +11 -6
- package/segment-group/index.d.ts +20 -10
- package/segment-group/index.mjs +17 -7
- package/segment-group/segment-context.d.ts +1 -1
- package/segment-group/segment-control.cjs +8 -3
- package/segment-group/segment-control.d.ts +1 -1
- package/segment-group/segment-control.mjs +9 -4
- package/segment-group/segment-group-context.d.ts +2 -5
- package/segment-group/{segment-indicator.cjs → segment-group-indicator.cjs} +2 -2
- package/segment-group/segment-group-indicator.d.ts +4 -0
- package/segment-group/{segment-indicator.mjs → segment-group-indicator.mjs} +2 -2
- package/segment-group/segment-group-label.d.ts +1 -1
- package/segment-group/segment-group.anatomy.d.ts +3 -3
- package/segment-group/segment-group.d.ts +1 -1
- package/segment-group/segment-group.stories.d.ts +7 -0
- package/segment-group/segment-group.test.d.ts +1 -0
- package/segment-group/segment-label.d.ts +1 -1
- 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 +4 -4
- package/segment-group/use-segment-group.mjs +1 -0
- package/select/index.cjs +14 -5
- package/select/index.d.ts +23 -10
- package/select/index.mjs +21 -8
- package/select/select-content.cjs +1 -1
- package/select/select-content.d.ts +2 -2
- package/select/select-content.mjs +1 -1
- package/select/select-context.d.ts +2 -5
- 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 +2 -2
- package/select/select-option-group-label.mjs +1 -1
- package/select/select-option-group.d.ts +1 -1
- package/select/select-option.cjs +1 -1
- package/select/select-option.d.ts +3 -5
- package/select/select-option.mjs +1 -1
- package/select/select-positioner.d.ts +1 -1
- package/select/select-trigger.d.ts +1 -1
- package/select/select.cjs +1 -1
- package/select/select.mjs +1 -1
- package/select/select.stories.d.ts +5 -0
- package/select/use-select.cjs +1 -0
- package/select/use-select.d.ts +4 -4
- 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 +25 -11
- package/slider/index.mjs +23 -9
- package/slider/slider-context.d.ts +2 -5
- 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 +1 -1
- package/slider/slider-range.d.ts +1 -1
- package/slider/slider-thumb.cjs +7 -6
- package/slider/slider-thumb.d.ts +1 -1
- package/slider/slider-thumb.mjs +8 -7
- package/slider/slider-track.d.ts +1 -1
- package/slider/slider.cjs +1 -1
- package/slider/slider.mjs +1 -1
- package/slider/slider.stories.d.ts +5 -0
- package/slider/use-slider.cjs +1 -0
- package/slider/use-slider.d.ts +4 -4
- package/slider/use-slider.mjs +1 -0
- package/splitter/index.cjs +10 -6
- package/splitter/index.d.ts +13 -5
- package/splitter/index.mjs +11 -3
- package/splitter/splitter-context.d.ts +2 -5
- package/splitter/splitter-panel.d.ts +1 -1
- package/splitter/splitter-resize-trigger.d.ts +1 -1
- package/splitter/splitter.stories.d.ts +8 -0
- package/splitter/splitter.test.d.ts +1 -0
- package/splitter/use-splitter.cjs +22 -2
- package/splitter/use-splitter.d.ts +6 -6
- package/splitter/use-splitter.mjs +4 -3
- package/ssr-spread.test.d.ts +1 -0
- package/switch/index.cjs +9 -6
- package/switch/index.d.ts +15 -7
- package/switch/index.mjs +13 -5
- package/switch/switch-context.d.ts +2 -5
- package/switch/switch-control.cjs +8 -3
- package/switch/switch-control.d.ts +1 -1
- package/switch/switch-control.mjs +9 -4
- package/switch/switch-label.d.ts +1 -1
- package/switch/switch-thumb.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 +4 -4
- package/switch/use-switch.mjs +1 -0
- package/tabs/index.cjs +12 -6
- package/tabs/index.d.ts +17 -7
- package/tabs/index.mjs +15 -5
- package/tabs/tab-content.d.ts +1 -1
- package/tabs/tab-indicator.d.ts +1 -1
- package/tabs/tab-list.d.ts +1 -1
- package/tabs/tab-trigger.d.ts +1 -1
- package/tabs/tabs-context.d.ts +2 -5
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.stories.d.ts +11 -0
- package/tabs/use-tabs.cjs +1 -0
- package/tabs/use-tabs.d.ts +4 -4
- package/tabs/use-tabs.mjs +1 -0
- package/tags-input/index.cjs +16 -7
- package/tags-input/index.d.ts +25 -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 +2 -5
- package/tags-input/tags-input-control.cjs +7 -2
- package/tags-input/tags-input-control.d.ts +1 -1
- package/tags-input/tags-input-control.mjs +8 -3
- package/tags-input/tags-input-field.cjs +2 -2
- package/tags-input/tags-input-field.d.ts +3 -3
- package/tags-input/tags-input-field.mjs +2 -2
- package/tags-input/tags-input-label.d.ts +1 -1
- package/tags-input/tags-input.cjs +1 -1
- package/tags-input/tags-input.mjs +1 -1
- package/tags-input/tags-input.stories.d.ts +5 -0
- package/tags-input/use-tags-input.cjs +1 -0
- package/tags-input/use-tags-input.d.ts +4 -4
- package/tags-input/use-tags-input.mjs +1 -0
- package/toast/index.cjs +13 -4
- package/toast/index.d.ts +21 -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-item-context.d.ts +2 -5
- package/toast/toast-placements.cjs +2 -1
- package/toast/toast-placements.mjs +2 -1
- package/toast/toast-provider.cjs +1 -0
- package/toast/toast-provider.d.ts +1 -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/use-toast-item.d.ts +4 -4
- package/tooltip/index.cjs +13 -6
- package/tooltip/index.d.ts +19 -8
- package/tooltip/index.mjs +18 -7
- package/tooltip/tooltip-anatomy.d.ts +1 -1
- package/tooltip/tooltip-arrow-tip.d.ts +1 -1
- package/tooltip/tooltip-arrow.d.ts +1 -1
- package/tooltip/tooltip-content.d.ts +1 -1
- package/tooltip/tooltip-context.d.ts +2 -5
- package/tooltip/tooltip-positioner.d.ts +1 -1
- package/tooltip/tooltip-trigger.d.ts +1 -1
- package/tooltip/tooltip.stories.d.ts +11 -0
- package/tooltip/tooltip.test.d.ts +1 -0
- package/tooltip/use-tooltip.cjs +1 -0
- package/tooltip/use-tooltip.d.ts +4 -4
- package/tooltip/use-tooltip.mjs +1 -0
- package/types.d.ts +2 -5
- package/checkbox/checkbox-input.cjs +0 -16
- package/checkbox/checkbox-input.d.ts +0 -4
- package/checkbox/checkbox-input.mjs +0 -12
- package/radio-group/radio-input.cjs +0 -18
- package/radio-group/radio-input.d.ts +0 -4
- package/radio-group/radio-input.mjs +0 -14
- package/segment-group/segment-indicator.d.ts +0 -4
- package/segment-group/segment-input.cjs +0 -19
- package/segment-group/segment-input.d.ts +0 -4
- package/segment-group/segment-input.mjs +0 -15
- package/switch/switch-input.cjs +0 -16
- package/switch/switch-input.d.ts +0 -4
- package/switch/switch-input.mjs +0 -12
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 };
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const colorPicker = require('@zag-js/color-picker');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
7
|
const solidJs = require('solid-js');
|
|
8
|
+
require('../environment/index.cjs');
|
|
8
9
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
9
10
|
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
3
1
|
import * as colorPicker from '@zag-js/color-picker';
|
|
2
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseColorPickerProps = Optional<colorPicker.Context, 'id'>;
|
|
6
|
-
export type UseColorPickerReturn =
|
|
7
|
-
export declare const useColorPicker: (props: UseColorPickerProps) =>
|
|
6
|
+
export type UseColorPickerReturn = Accessor<colorPicker.Api<PropTypes>>;
|
|
7
|
+
export declare const useColorPicker: (props: UseColorPickerProps) => UseColorPickerReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as colorPicker from '@zag-js/color-picker';
|
|
2
2
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
3
3
|
import { createUniqueId, createMemo } from 'solid-js';
|
|
4
|
+
import '../environment/index.mjs';
|
|
4
5
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
5
6
|
|
|
6
7
|
const useColorPicker = (props) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxClearTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const ComboboxClearTrigger: (props: ComboboxClearTriggerProps) => JSX.Element;
|
|
@@ -10,7 +10,7 @@ const comboboxContext = require('./combobox-context.cjs');
|
|
|
10
10
|
const ComboboxContent = props => {
|
|
11
11
|
const combobox = comboboxContext.useComboboxContext();
|
|
12
12
|
const contentProps = solid.mergeProps(() => combobox().contentProps, props);
|
|
13
|
-
return web.createComponent(factory.ark.
|
|
13
|
+
return web.createComponent(factory.ark.div, contentProps);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.ComboboxContent = ComboboxContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
|
-
export type ComboboxContentProps = HTMLArkProps<'
|
|
3
|
+
export type ComboboxContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const ComboboxContent: (props: ComboboxContentProps) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { useComboboxContext } from './combobox-context.mjs';
|
|
|
6
6
|
const ComboboxContent = props => {
|
|
7
7
|
const combobox = useComboboxContext();
|
|
8
8
|
const contentProps = mergeProps(() => combobox().contentProps, props);
|
|
9
|
-
return createComponent(ark.
|
|
9
|
+
return createComponent(ark.div, contentProps);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { ComboboxContent };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/combobox';
|
|
3
|
-
import type { Accessor } from 'solid-js';
|
|
4
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
5
2
|
import { type UseComboboxReturn } from './use-combobox';
|
|
6
3
|
export type ComboboxContext = UseComboboxReturn;
|
|
7
|
-
export declare const ComboboxProvider: ContextProviderComponent<
|
|
4
|
+
export declare const ComboboxProvider: ContextProviderComponent<UseComboboxReturn>, useComboboxContext: () => UseComboboxReturn;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
8
|
+
const factory = require('../factory.cjs');
|
|
9
|
+
const comboboxContext = require('./combobox-context.cjs');
|
|
10
|
+
|
|
11
|
+
const ComboboxOptionGroupLabel = props => {
|
|
12
|
+
const [labelParams, restProps] = createSplitProps.createSplitProps()(props, ['htmlFor']);
|
|
13
|
+
const api = comboboxContext.useComboboxContext();
|
|
14
|
+
const groupLabelProps = solid.mergeProps(() => api().getOptionGroupLabelProps(labelParams), restProps);
|
|
15
|
+
return web.createComponent(factory.ark.div, groupLabelProps);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.ComboboxOptionGroupLabel = ComboboxOptionGroupLabel;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { OptionGroupLabelProps } from '@zag-js/select';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import type { Assign } from '../types';
|
|
5
|
+
export type ComboboxOptionGroupLabelProps = Assign<HTMLArkProps<'div'>, OptionGroupLabelProps>;
|
|
6
|
+
export declare const ComboboxOptionGroupLabel: (props: ComboboxOptionGroupLabelProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
4
|
+
import { ark } from '../factory.mjs';
|
|
5
|
+
import { useComboboxContext } from './combobox-context.mjs';
|
|
6
|
+
|
|
7
|
+
const ComboboxOptionGroupLabel = props => {
|
|
8
|
+
const [labelParams, restProps] = createSplitProps()(props, ['htmlFor']);
|
|
9
|
+
const api = useComboboxContext();
|
|
10
|
+
const groupLabelProps = mergeProps(() => api().getOptionGroupLabelProps(labelParams), restProps);
|
|
11
|
+
return createComponent(ark.div, groupLabelProps);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { ComboboxOptionGroupLabel };
|
|
@@ -4,13 +4,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const web = require('solid-js/web');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
7
8
|
const factory = require('../factory.cjs');
|
|
8
9
|
const comboboxContext = require('./combobox-context.cjs');
|
|
9
10
|
|
|
10
11
|
const ComboboxOptionGroup = props => {
|
|
12
|
+
const [optionGroupProps, localProps] = createSplitProps.createSplitProps()(props, ['id']);
|
|
11
13
|
const combobox = comboboxContext.useComboboxContext();
|
|
12
|
-
const
|
|
13
|
-
return web.createComponent(factory.ark.
|
|
14
|
+
const mergedProps = solid.mergeProps(() => combobox().getOptionGroupProps(optionGroupProps), localProps);
|
|
15
|
+
return web.createComponent(factory.ark.div, mergedProps);
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
exports.ComboboxOptionGroup = ComboboxOptionGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import type { OptionGroupProps } from '@zag-js/combobox';
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
4
|
import type { Assign } from '../types';
|
|
5
|
-
export type ComboboxOptionGroupProps = Assign<HTMLArkProps<'
|
|
5
|
+
export type ComboboxOptionGroupProps = Assign<HTMLArkProps<'div'>, OptionGroupProps>;
|
|
6
6
|
export declare const ComboboxOptionGroup: (props: ComboboxOptionGroupProps) => JSX.Element;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { createComponent } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
3
4
|
import { ark } from '../factory.mjs';
|
|
4
5
|
import { useComboboxContext } from './combobox-context.mjs';
|
|
5
6
|
|
|
6
7
|
const ComboboxOptionGroup = props => {
|
|
8
|
+
const [optionGroupProps, localProps] = createSplitProps()(props, ['id']);
|
|
7
9
|
const combobox = useComboboxContext();
|
|
8
|
-
const
|
|
9
|
-
return createComponent(ark.
|
|
10
|
+
const mergedProps = mergeProps(() => combobox().getOptionGroupProps(optionGroupProps), localProps);
|
|
11
|
+
return createComponent(ark.div, mergedProps);
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
export { ComboboxOptionGroup };
|
|
@@ -14,7 +14,7 @@ const ComboboxOption = props => {
|
|
|
14
14
|
const [childrenProps, restProps] = solidJs.splitProps(localProps, ['children']);
|
|
15
15
|
const combobox = comboboxContext.useComboboxContext();
|
|
16
16
|
const mergedProps = solid.mergeProps(() => combobox().getOptionProps(optionProps), restProps);
|
|
17
|
-
return web.createComponent(factory.ark.
|
|
17
|
+
return web.createComponent(factory.ark.div, web.mergeProps(mergedProps, {
|
|
18
18
|
get children() {
|
|
19
19
|
return childrenProps.children || optionProps.label;
|
|
20
20
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { OptionProps } from '@zag-js/combobox';
|
|
2
3
|
import { type HTMLArkProps } from '../factory';
|
|
3
4
|
import type { Assign } from '../types';
|
|
4
|
-
|
|
5
|
-
type OptionProps = Parameters<ReturnType<ReturnType<typeof useComboboxContext>>['getOptionProps']>[0];
|
|
6
|
-
export type ComboboxOptionProps = Assign<HTMLArkProps<'li'>, OptionProps>;
|
|
5
|
+
export type ComboboxOptionProps = Assign<HTMLArkProps<'div'>, OptionProps>;
|
|
7
6
|
export declare const ComboboxOption: (props: ComboboxOptionProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -10,7 +10,7 @@ const ComboboxOption = props => {
|
|
|
10
10
|
const [childrenProps, restProps] = splitProps(localProps, ['children']);
|
|
11
11
|
const combobox = useComboboxContext();
|
|
12
12
|
const mergedProps = mergeProps(() => combobox().getOptionProps(optionProps), restProps);
|
|
13
|
-
return createComponent(ark.
|
|
13
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
14
14
|
get children() {
|
|
15
15
|
return childrenProps.children || optionProps.label;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ComboboxPositionerProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const ComboboxPositioner: (props: ComboboxPositionerProps) => JSX.Element;
|
package/combobox/combobox.cjs
CHANGED
|
@@ -11,7 +11,7 @@ const comboboxContext = require('./combobox-context.cjs');
|
|
|
11
11
|
const useCombobox = require('./use-combobox.cjs');
|
|
12
12
|
|
|
13
13
|
const Combobox = props => {
|
|
14
|
-
const [useComboboxProps, localProps] = createSplitProps.createSplitProps()(props, ['allowCustomValue', 'ariaHidden', 'autoFocus', 'blurOnSelect', 'dir', 'disabled', 'focusOnClear', 'form', 'getRootNode', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isCustomValue', 'loop', 'name', 'onClose', 'onHighlight', 'onInputChange', 'onInputChange', 'onInteractOutside', 'onOpen', 'onSelect', 'openOnClick', 'placeholder', 'positioning', 'readOnly', '
|
|
14
|
+
const [useComboboxProps, localProps] = createSplitProps.createSplitProps()(props, ['allowCustomValue', 'ariaHidden', 'autoFocus', 'blurOnSelect', 'dir', 'disabled', 'focusOnClear', 'form', 'getRootNode', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isCustomValue', 'loop', 'name', 'onClose', 'onFocusOutside', 'onHighlight', 'onInputChange', 'onInputChange', 'onInteractOutside', 'onInteractOutside', 'onOpen', 'onPointerDownOutside', 'onSelect', 'openOnClick', 'placeholder', 'positioning', 'readOnly', 'selectionBehavior', 'selectionData', 'selectOnTab', 'translations']);
|
|
15
15
|
const combobox = useCombobox.useCombobox(useComboboxProps);
|
|
16
16
|
const rootProps = solid.mergeProps(() => combobox().rootProps, localProps);
|
|
17
17
|
const getChildren = () => runIfFn.runIfFn(localProps.children, combobox);
|
package/combobox/combobox.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { ComboboxProvider } from './combobox-context.mjs';
|
|
|
7
7
|
import { useCombobox } from './use-combobox.mjs';
|
|
8
8
|
|
|
9
9
|
const Combobox = props => {
|
|
10
|
-
const [useComboboxProps, localProps] = createSplitProps()(props, ['allowCustomValue', 'ariaHidden', 'autoFocus', 'blurOnSelect', 'dir', 'disabled', 'focusOnClear', 'form', 'getRootNode', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isCustomValue', 'loop', 'name', 'onClose', 'onHighlight', 'onInputChange', 'onInputChange', 'onInteractOutside', 'onOpen', 'onSelect', 'openOnClick', 'placeholder', 'positioning', 'readOnly', '
|
|
10
|
+
const [useComboboxProps, localProps] = createSplitProps()(props, ['allowCustomValue', 'ariaHidden', 'autoFocus', 'blurOnSelect', 'dir', 'disabled', 'focusOnClear', 'form', 'getRootNode', 'id', 'ids', 'inputBehavior', 'inputValue', 'invalid', 'isCustomValue', 'loop', 'name', 'onClose', 'onFocusOutside', 'onHighlight', 'onInputChange', 'onInputChange', 'onInteractOutside', 'onInteractOutside', 'onOpen', 'onPointerDownOutside', 'onSelect', 'openOnClick', 'placeholder', 'positioning', 'readOnly', 'selectionBehavior', 'selectionData', 'selectOnTab', 'translations']);
|
|
11
11
|
const combobox = useCombobox(useComboboxProps);
|
|
12
12
|
const rootProps = mergeProps(() => combobox().rootProps, localProps);
|
|
13
13
|
const getChildren = () => runIfFn(localProps.children, combobox);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/combobox/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const combobox = require('./combobox.cjs');
|
|
5
|
+
const combobox$1 = require('./combobox.cjs');
|
|
6
6
|
const comboboxClearTrigger = require('./combobox-clear-trigger.cjs');
|
|
7
7
|
const comboboxContent = require('./combobox-content.cjs');
|
|
8
8
|
const comboboxContext = require('./combobox-context.cjs');
|
|
@@ -11,13 +11,25 @@ const comboboxInput = require('./combobox-input.cjs');
|
|
|
11
11
|
const comboboxLabel = require('./combobox-label.cjs');
|
|
12
12
|
const comboboxOption = require('./combobox-option.cjs');
|
|
13
13
|
const comboboxOptionGroup = require('./combobox-option-group.cjs');
|
|
14
|
+
const comboboxOptionGroupLabel = require('./combobox-option-group-label.cjs');
|
|
14
15
|
const comboboxPositioner = require('./combobox-positioner.cjs');
|
|
15
16
|
const comboboxTrigger = require('./combobox-trigger.cjs');
|
|
16
|
-
const combobox
|
|
17
|
-
|
|
17
|
+
const combobox = require('@zag-js/combobox');
|
|
18
18
|
|
|
19
|
+
const Combobox = Object.assign(combobox$1.Combobox, {
|
|
20
|
+
Root: combobox$1.Combobox,
|
|
21
|
+
ClearTrigger: comboboxClearTrigger.ComboboxClearTrigger,
|
|
22
|
+
Content: comboboxContent.ComboboxContent,
|
|
23
|
+
Control: comboboxControl.ComboboxControl,
|
|
24
|
+
Input: comboboxInput.ComboboxInput,
|
|
25
|
+
Label: comboboxLabel.ComboboxLabel,
|
|
26
|
+
Option: comboboxOption.ComboboxOption,
|
|
27
|
+
OptionGroup: comboboxOptionGroup.ComboboxOptionGroup,
|
|
28
|
+
OptionGroupLabel: comboboxOptionGroupLabel.ComboboxOptionGroupLabel,
|
|
29
|
+
Positioner: comboboxPositioner.ComboboxPositioner,
|
|
30
|
+
Trigger: comboboxTrigger.ComboboxTrigger
|
|
31
|
+
});
|
|
19
32
|
|
|
20
|
-
exports.Combobox = combobox.Combobox;
|
|
21
33
|
exports.ComboboxClearTrigger = comboboxClearTrigger.ComboboxClearTrigger;
|
|
22
34
|
exports.ComboboxContent = comboboxContent.ComboboxContent;
|
|
23
35
|
exports.useComboboxContext = comboboxContext.useComboboxContext;
|
|
@@ -26,9 +38,11 @@ exports.ComboboxInput = comboboxInput.ComboboxInput;
|
|
|
26
38
|
exports.ComboboxLabel = comboboxLabel.ComboboxLabel;
|
|
27
39
|
exports.ComboboxOption = comboboxOption.ComboboxOption;
|
|
28
40
|
exports.ComboboxOptionGroup = comboboxOptionGroup.ComboboxOptionGroup;
|
|
41
|
+
exports.ComboboxOptionGroupLabel = comboboxOptionGroupLabel.ComboboxOptionGroupLabel;
|
|
29
42
|
exports.ComboboxPositioner = comboboxPositioner.ComboboxPositioner;
|
|
30
43
|
exports.ComboboxTrigger = comboboxTrigger.ComboboxTrigger;
|
|
31
44
|
Object.defineProperty(exports, 'comboboxAnatomy', {
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: () => combobox.anatomy
|
|
34
47
|
});
|
|
48
|
+
exports.Combobox = Combobox;
|
package/combobox/index.d.ts
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type ComboboxProps } from './combobox';
|
|
3
|
+
import { ComboboxClearTrigger, type ComboboxClearTriggerProps } from './combobox-clear-trigger';
|
|
4
|
+
import { ComboboxContent, type ComboboxContentProps } from './combobox-content';
|
|
5
|
+
import { useComboboxContext } from './combobox-context';
|
|
6
|
+
import { ComboboxControl, type ComboboxControlProps } from './combobox-control';
|
|
7
|
+
import { ComboboxInput, type ComboboxInputProps } from './combobox-input';
|
|
8
|
+
import { ComboboxLabel, type ComboboxLabelProps } from './combobox-label';
|
|
9
|
+
import { ComboboxOption, type ComboboxOptionProps } from './combobox-option';
|
|
10
|
+
import { ComboboxOptionGroup, type ComboboxOptionGroupProps } from './combobox-option-group';
|
|
11
|
+
import { ComboboxOptionGroupLabel, type ComboboxOptionGroupLabelProps } from './combobox-option-group-label';
|
|
12
|
+
import { ComboboxPositioner, type ComboboxPositionerProps } from './combobox-positioner';
|
|
13
|
+
import { ComboboxTrigger, type ComboboxTriggerProps } from './combobox-trigger';
|
|
14
|
+
import { comboboxAnatomy } from './combobox.anatomy';
|
|
15
|
+
declare const Combobox: ((props: ComboboxProps) => JSX.Element) & {
|
|
16
|
+
Root: (props: ComboboxProps) => JSX.Element;
|
|
17
|
+
ClearTrigger: (props: ComboboxClearTriggerProps) => JSX.Element;
|
|
18
|
+
Content: (props: ComboboxContentProps) => JSX.Element;
|
|
19
|
+
Control: (props: ComboboxControlProps) => JSX.Element;
|
|
20
|
+
Input: (props: ComboboxInputProps) => JSX.Element;
|
|
21
|
+
Label: (props: ComboboxLabelProps) => JSX.Element;
|
|
22
|
+
Option: (props: ComboboxOptionProps) => JSX.Element;
|
|
23
|
+
OptionGroup: (props: ComboboxOptionGroupProps) => JSX.Element;
|
|
24
|
+
OptionGroupLabel: (props: ComboboxOptionGroupLabelProps) => JSX.Element;
|
|
25
|
+
Positioner: (props: ComboboxPositionerProps) => JSX.Element;
|
|
26
|
+
Trigger: (props: ComboboxTriggerProps) => JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export { Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxLabel, ComboboxOption, ComboboxOptionGroup, ComboboxOptionGroupLabel, ComboboxPositioner, ComboboxTrigger, comboboxAnatomy, useComboboxContext, };
|
|
29
|
+
export type { ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxLabelProps, ComboboxOptionGroupLabelProps, ComboboxOptionGroupProps, ComboboxOptionProps, ComboboxPositionerProps, ComboboxProps, ComboboxTriggerProps, };
|
package/combobox/index.mjs
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Combobox as Combobox$1 } from './combobox.mjs';
|
|
2
|
+
import { ComboboxClearTrigger } from './combobox-clear-trigger.mjs';
|
|
3
|
+
import { ComboboxContent } from './combobox-content.mjs';
|
|
4
4
|
export { useComboboxContext } from './combobox-context.mjs';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { ComboboxControl } from './combobox-control.mjs';
|
|
6
|
+
import { ComboboxInput } from './combobox-input.mjs';
|
|
7
|
+
import { ComboboxLabel } from './combobox-label.mjs';
|
|
8
|
+
import { ComboboxOption } from './combobox-option.mjs';
|
|
9
|
+
import { ComboboxOptionGroup } from './combobox-option-group.mjs';
|
|
10
|
+
import { ComboboxOptionGroupLabel } from './combobox-option-group-label.mjs';
|
|
11
|
+
import { ComboboxPositioner } from './combobox-positioner.mjs';
|
|
12
|
+
import { ComboboxTrigger } from './combobox-trigger.mjs';
|
|
12
13
|
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
|
14
|
+
|
|
15
|
+
const Combobox = Object.assign(Combobox$1, {
|
|
16
|
+
Root: Combobox$1,
|
|
17
|
+
ClearTrigger: ComboboxClearTrigger,
|
|
18
|
+
Content: ComboboxContent,
|
|
19
|
+
Control: ComboboxControl,
|
|
20
|
+
Input: ComboboxInput,
|
|
21
|
+
Label: ComboboxLabel,
|
|
22
|
+
Option: ComboboxOption,
|
|
23
|
+
OptionGroup: ComboboxOptionGroup,
|
|
24
|
+
OptionGroupLabel: ComboboxOptionGroupLabel,
|
|
25
|
+
Positioner: ComboboxPositioner,
|
|
26
|
+
Trigger: ComboboxTrigger
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export { Combobox, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxLabel, ComboboxOption, ComboboxOptionGroup, ComboboxOptionGroupLabel, ComboboxPositioner, ComboboxTrigger };
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const combobox = require('@zag-js/combobox');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
7
|
const solidJs = require('solid-js');
|
|
8
|
+
require('../environment/index.cjs');
|
|
8
9
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
9
10
|
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
3
1
|
import * as combobox from '@zag-js/combobox';
|
|
2
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseComboboxProps = Optional<combobox.Context, 'id'>;
|
|
6
|
-
export type UseComboboxReturn =
|
|
7
|
-
export declare const useCombobox: (props: UseComboboxProps) =>
|
|
6
|
+
export type UseComboboxReturn = Accessor<combobox.Api<PropTypes>>;
|
|
7
|
+
export declare const useCombobox: (props: UseComboboxProps) => UseComboboxReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as combobox from '@zag-js/combobox';
|
|
2
2
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
3
3
|
import { createUniqueId, createMemo } from 'solid-js';
|
|
4
|
+
import '../environment/index.mjs';
|
|
4
5
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
5
6
|
|
|
6
7
|
const useCombobox = (props) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
2
2
|
import type { CellProps } from '@zag-js/date-picker';
|
|
3
3
|
export declare const DatePickerCellProvider: ContextProviderComponent<CellProps>, useDatePickerCellContext: () => CellProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DatePickerClearTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const DatePickerClearTrigger: (props: DatePickerClearTriggerProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DatePickerColumnHeaderProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const DatePickerColumnHeader: (props: DatePickerColumnHeaderProps) => JSX.Element;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/date-picker';
|
|
3
|
-
import type { Accessor } from 'solid-js';
|
|
4
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
5
2
|
import { type UseDatePickerReturn } from './use-date-picker';
|
|
6
3
|
export type DatePickerContext = UseDatePickerReturn;
|
|
7
|
-
export declare const DatePickerProvider: ContextProviderComponent<
|
|
4
|
+
export declare const DatePickerProvider: ContextProviderComponent<UseDatePickerReturn>, useDatePickerContext: () => UseDatePickerReturn;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
2
2
|
import type { DayCellProps } from '@zag-js/date-picker';
|
|
3
3
|
export declare const DatePickerDayCellProvider: ContextProviderComponent<DayCellProps>, useDatePickerDayCellContext: () => DayCellProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DatePickerDayCellTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const DatePickerDayCellTrigger: (props: DatePickerDayCellTriggerProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type DatePickerMonthCellTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const DatePickerMonthCellTrigger: (props: DatePickerMonthCellTriggerProps) => JSX.Element;
|