@ark-ui/solid 0.8.1 → 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 +38 -2
- package/accordion/accordion-content.d.ts +1 -1
- package/accordion/accordion-context.d.ts +2 -22
- 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 +15 -6
- package/accordion/index.d.ts +16 -5
- package/accordion/index.mjs +15 -4
- package/accordion/use-accordion.cjs +1 -0
- package/accordion/use-accordion.d.ts +4 -12
- package/accordion/use-accordion.mjs +1 -0
- package/avatar/avatar-context.d.ts +2 -21
- 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 +12 -6
- package/avatar/index.d.ts +13 -4
- package/avatar/index.mjs +12 -3
- package/avatar/use-avatar.cjs +1 -0
- package/avatar/use-avatar.d.ts +4 -12
- package/avatar/use-avatar.mjs +1 -0
- package/carousel/carousel-context.d.ts +2 -60
- package/carousel/carousel-control.d.ts +1 -1
- package/carousel/carousel-indicator-group.cjs +16 -0
- package/carousel/carousel-indicator-group.d.ts +4 -0
- package/carousel/carousel-indicator-group.mjs +12 -0
- package/carousel/carousel-indicator.cjs +18 -0
- package/carousel/carousel-indicator.d.ts +6 -0
- package/carousel/carousel-indicator.mjs +14 -0
- 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 +2 -2
- 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 +18 -2
- package/carousel/index.d.ts +25 -8
- package/carousel/index.mjs +24 -7
- package/carousel/use-carousel.cjs +1 -0
- package/carousel/use-carousel.d.ts +4 -32
- package/carousel/use-carousel.mjs +1 -0
- package/checkbox/checkbox-context.d.ts +2 -28
- 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 +12 -8
- package/checkbox/index.d.ts +14 -6
- package/checkbox/index.mjs +12 -4
- package/checkbox/use-checkbox.cjs +1 -0
- package/checkbox/use-checkbox.d.ts +4 -16
- 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 -43
- 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 +22 -2
- package/color-picker/index.d.ts +35 -14
- package/color-picker/index.mjs +34 -13
- package/color-picker/use-color-picker.cjs +1 -0
- package/color-picker/use-color-picker.d.ts +4 -23
- package/color-picker/use-color-picker.mjs +1 -0
- package/combobox/combobox-clear-trigger.cjs +16 -0
- package/combobox/combobox-clear-trigger.d.ts +4 -0
- package/combobox/combobox-clear-trigger.mjs +12 -0
- 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 -56
- 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 +18 -0
- package/combobox/combobox-option-group.d.ts +6 -0
- package/combobox/combobox-option-group.mjs +14 -0
- 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 +26 -6
- package/combobox/index.d.ts +29 -9
- package/combobox/index.mjs +28 -8
- package/combobox/use-combobox.cjs +1 -0
- package/combobox/use-combobox.d.ts +4 -29
- 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 -255
- 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 +2 -2
- 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 +2 -2
- 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 +34 -2
- package/date-picker/index.d.ts +55 -23
- package/date-picker/index.mjs +54 -22
- package/date-picker/use-date-picker.cjs +1 -0
- package/date-picker/use-date-picker.d.ts +4 -129
- 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 -25
- 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 +17 -6
- package/dialog/index.d.ts +23 -9
- package/dialog/index.mjs +22 -8
- package/dialog/use-dialog.cjs +1 -0
- package/dialog/use-dialog.d.ts +4 -14
- 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 -39
- 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 +18 -6
- package/editable/index.d.ts +25 -10
- package/editable/index.mjs +24 -9
- package/editable/use-editable.cjs +1 -0
- package/editable/use-editable.d.ts +4 -21
- 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 -24
- 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 +15 -6
- package/hover-card/index.d.ts +19 -7
- package/hover-card/index.mjs +18 -6
- package/hover-card/use-hover-card.cjs +1 -0
- package/hover-card/use-hover-card.d.ts +4 -13
- package/hover-card/use-hover-card.mjs +1 -0
- package/index.cjs +249 -179
- package/index.mjs +94 -59
- package/menu/index.cjs +21 -5
- package/menu/index.d.ts +33 -14
- package/menu/index.mjs +32 -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 +16 -6
- package/number-input/index.d.ts +21 -8
- package/number-input/index.mjs +20 -7
- package/number-input/number-input-context.d.ts +2 -45
- 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 -24
- package/number-input/use-number-input.mjs +1 -0
- package/package.json +51 -51
- package/pagination/index.cjs +12 -2
- package/pagination/index.d.ts +21 -8
- package/pagination/index.mjs +20 -7
- package/pagination/pagination-context.d.ts +2 -46
- package/pagination/pagination-ellipsis.d.ts +2 -2
- 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 -25
- package/pagination/use-pagination.mjs +1 -0
- package/pin-input/index.cjs +14 -7
- package/pin-input/index.d.ts +15 -5
- package/pin-input/index.mjs +14 -4
- package/pin-input/pin-input-context.d.ts +2 -33
- 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 -18
- package/pin-input/use-pin-input.mjs +1 -0
- package/popover/index.cjs +19 -6
- package/popover/index.d.ts +27 -11
- package/popover/index.mjs +26 -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 -34
- 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 -18
- 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 -6
- package/pressable/use-pressable.mjs +1 -0
- package/radio-group/index.cjs +14 -6
- package/radio-group/index.d.ts +18 -7
- package/radio-group/index.mjs +17 -6
- package/radio-group/radio-context.d.ts +12 -3
- 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 -50
- 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 -27
- package/radio-group/use-radio-group.mjs +1 -0
- package/range-slider/index.cjs +17 -5
- package/range-slider/index.d.ts +25 -10
- package/range-slider/index.mjs +24 -9
- package/range-slider/range-slider-context.d.ts +2 -59
- 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 -31
- package/range-slider/use-range-slider.mjs +1 -0
- package/rating-group/index.cjs +13 -4
- package/rating-group/index.d.ts +16 -5
- package/rating-group/index.mjs +15 -4
- package/rating-group/rating-context.d.ts +2 -3
- package/rating-group/rating-group-context.d.ts +2 -32
- 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 -17
- package/rating-group/use-rating-group.mjs +1 -0
- package/run-if-fn.test.d.ts +1 -0
- package/segment-group/index.cjs +15 -6
- package/segment-group/index.d.ts +20 -8
- package/segment-group/index.mjs +19 -7
- package/segment-group/segment-context.d.ts +12 -3
- 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 -50
- 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 -27
- package/segment-group/use-segment-group.mjs +1 -0
- package/select/index.cjs +16 -5
- package/select/index.d.ts +23 -9
- package/select/index.mjs +22 -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 -51
- 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 -27
- package/select/use-select.mjs +1 -0
- package/setup-test.d.ts +0 -0
- package/slider/index.cjs +18 -6
- package/slider/index.d.ts +25 -10
- package/slider/index.mjs +24 -9
- package/slider/slider-context.d.ts +2 -49
- 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 -26
- package/slider/use-slider.mjs +1 -0
- package/splitter/index.cjs +12 -6
- package/splitter/index.d.ts +13 -4
- package/splitter/index.mjs +12 -3
- package/splitter/splitter-context.d.ts +2 -47
- 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 -27
- package/splitter/use-splitter.mjs +4 -3
- package/ssr-spread.test.d.ts +1 -0
- package/switch/index.cjs +11 -6
- package/switch/index.d.ts +15 -6
- package/switch/index.mjs +14 -5
- package/switch/switch-context.d.ts +2 -25
- 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 -14
- package/switch/use-switch.mjs +1 -0
- package/tabs/index.cjs +14 -6
- package/tabs/index.d.ts +17 -6
- package/tabs/index.mjs +16 -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 -30
- 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 -16
- package/tabs/use-tabs.mjs +1 -0
- package/tags-input/index.cjs +18 -7
- package/tags-input/index.d.ts +25 -9
- package/tags-input/index.mjs +22 -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 -50
- 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 -27
- package/tags-input/use-tags-input.mjs +1 -0
- package/toast/index.cjs +15 -4
- package/toast/index.d.ts +21 -8
- package/toast/index.mjs +21 -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 -36
- 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 -19
- package/tooltip/index.cjs +15 -6
- package/tooltip/index.d.ts +19 -7
- package/tooltip/index.mjs +19 -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 -34
- 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 -18
- 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
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
3
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
4
2
|
import { type UseSegmentGroupReturn } from './use-segment-group';
|
|
5
3
|
export type SegmentGroupContext = UseSegmentGroupReturn;
|
|
6
|
-
export declare const SegmentGroupProvider: ContextProviderComponent<
|
|
7
|
-
value: string | null;
|
|
8
|
-
setValue(value: string): void;
|
|
9
|
-
clearValue(): void;
|
|
10
|
-
focus: () => void;
|
|
11
|
-
blur(): void;
|
|
12
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
13
|
-
isInteractive: boolean;
|
|
14
|
-
isReadOnly: boolean | undefined;
|
|
15
|
-
isInvalid: boolean | undefined;
|
|
16
|
-
isDisabled: boolean | undefined;
|
|
17
|
-
isChecked: boolean;
|
|
18
|
-
isFocused: boolean;
|
|
19
|
-
isHovered: boolean;
|
|
20
|
-
isActive: boolean;
|
|
21
|
-
};
|
|
22
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
25
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
29
|
-
}>>, useSegmentGroupContext: () => Accessor<{
|
|
30
|
-
value: string | null;
|
|
31
|
-
setValue(value: string): void;
|
|
32
|
-
clearValue(): void;
|
|
33
|
-
focus: () => void;
|
|
34
|
-
blur(): void;
|
|
35
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
36
|
-
isInteractive: boolean;
|
|
37
|
-
isReadOnly: boolean | undefined;
|
|
38
|
-
isInvalid: boolean | undefined;
|
|
39
|
-
isDisabled: boolean | undefined;
|
|
40
|
-
isChecked: boolean;
|
|
41
|
-
isFocused: boolean;
|
|
42
|
-
isHovered: boolean;
|
|
43
|
-
isActive: boolean;
|
|
44
|
-
};
|
|
45
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
46
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
48
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
50
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
51
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
52
|
-
}>;
|
|
4
|
+
export declare const SegmentGroupProvider: ContextProviderComponent<UseSegmentGroupReturn>, useSegmentGroupContext: () => UseSegmentGroupReturn;
|
|
@@ -8,10 +8,10 @@ const factory = require('../factory.cjs');
|
|
|
8
8
|
const segmentGroupContext = require('./segment-group-context.cjs');
|
|
9
9
|
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const SegmentGroupIndicator = props => {
|
|
12
12
|
const api = segmentGroupContext.useSegmentGroupContext();
|
|
13
13
|
const indicatorProps = solid.mergeProps(() => api().indicatorProps, props);
|
|
14
14
|
return web.createComponent(factory.ark.input, web.mergeProps(indicatorProps, () => segmentGroup_anatomy.parts.indicator.attrs));
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
exports.
|
|
17
|
+
exports.SegmentGroupIndicator = SegmentGroupIndicator;
|
|
@@ -4,10 +4,10 @@ import { ark } from '../factory.mjs';
|
|
|
4
4
|
import { useSegmentGroupContext } from './segment-group-context.mjs';
|
|
5
5
|
import { parts } from './segment-group.anatomy.mjs';
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const SegmentGroupIndicator = props => {
|
|
8
8
|
const api = useSegmentGroupContext();
|
|
9
9
|
const indicatorProps = mergeProps(() => api().indicatorProps, props);
|
|
10
10
|
return createComponent(ark.input, mergeProps$1(indicatorProps, () => parts.indicator.attrs));
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { SegmentGroupIndicator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type SegmentGroupLabelProps = HTMLArkProps<'label'>;
|
|
4
4
|
export declare const SegmentGroupLabel: (props: SegmentGroupLabelProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const segmentGroupAnatomy: Anatomy<"label" | "radio" | "root" | "indicator" | "radioLabel" | "radioControl"
|
|
3
|
-
export declare const parts: Record<"label" | "radio" | "root" | "indicator" | "radioLabel" | "radioControl"
|
|
1
|
+
import { Anatomy, AnatomyPart } from '@zag-js/anatomy';
|
|
2
|
+
export declare const segmentGroupAnatomy: Anatomy<"label" | "radio" | "root" | "indicator" | "radioLabel" | "radioControl">;
|
|
3
|
+
export declare const parts: Record<"label" | "radio" | "root" | "indicator" | "radioLabel" | "radioControl", AnatomyPart>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { Meta } from 'storybook-solidjs';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Basic: () => JSX.Element;
|
|
6
|
+
export declare const Controlled: () => JSX.Element;
|
|
7
|
+
export declare const Disabled: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const radio = require('@zag-js/radio-group');
|
|
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,30 +1,7 @@
|
|
|
1
|
-
import type { RadioProps, InputProps } from '@zag-js/radio-group/dist/radio-group.types';
|
|
2
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
3
1
|
import * as segment from '@zag-js/radio-group';
|
|
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 UseSegmentGroupProps = Optional<segment.Context, 'id'>;
|
|
6
|
-
export type UseSegmentGroupReturn =
|
|
7
|
-
export declare const useSegmentGroup: (props: UseSegmentGroupProps) =>
|
|
8
|
-
value: string | null;
|
|
9
|
-
setValue(value: string): void;
|
|
10
|
-
clearValue(): void;
|
|
11
|
-
focus: () => void;
|
|
12
|
-
blur(): void;
|
|
13
|
-
getRadioState: <T_1 extends RadioProps>(props: T_1) => {
|
|
14
|
-
isInteractive: boolean;
|
|
15
|
-
isReadOnly: boolean | undefined;
|
|
16
|
-
isInvalid: boolean | undefined;
|
|
17
|
-
isDisabled: boolean | undefined;
|
|
18
|
-
isChecked: boolean;
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
isHovered: boolean;
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
};
|
|
23
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
labelProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
getRadioProps(props: RadioProps): JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
26
|
-
getRadioLabelProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getRadioControlProps(props: RadioProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
getRadioInputProps(props: InputProps): JSX.InputHTMLAttributes<HTMLInputElement>;
|
|
29
|
-
indicatorProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>;
|
|
6
|
+
export type UseSegmentGroupReturn = Accessor<segment.Api<PropTypes>>;
|
|
7
|
+
export declare const useSegmentGroup: (props: UseSegmentGroupProps) => UseSegmentGroupReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as radio from '@zag-js/radio-group';
|
|
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 useSegmentGroup = props => {
|
package/select/index.cjs
CHANGED
|
@@ -2,20 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const select = require('./select.cjs');
|
|
5
|
+
const select$1 = require('./select.cjs');
|
|
6
6
|
const selectContent = require('./select-content.cjs');
|
|
7
|
+
const selectContext = require('./select-context.cjs');
|
|
7
8
|
const selectLabel = require('./select-label.cjs');
|
|
8
9
|
const selectOption = require('./select-option.cjs');
|
|
9
10
|
const selectOptionGroup = require('./select-option-group.cjs');
|
|
10
11
|
const selectOptionGroupLabel = require('./select-option-group-label.cjs');
|
|
11
12
|
const selectPositioner = require('./select-positioner.cjs');
|
|
12
13
|
const selectTrigger = require('./select-trigger.cjs');
|
|
13
|
-
const select
|
|
14
|
-
|
|
14
|
+
const select = require('@zag-js/select');
|
|
15
15
|
|
|
16
|
+
const Select = Object.assign(select$1.Select, {
|
|
17
|
+
Root: select$1.Select,
|
|
18
|
+
Content: selectContent.SelectContent,
|
|
19
|
+
Label: selectLabel.SelectLabel,
|
|
20
|
+
Option: selectOption.SelectOption,
|
|
21
|
+
OptionGroup: selectOptionGroup.SelectOptionGroup,
|
|
22
|
+
OptionGroupLabel: selectOptionGroupLabel.SelectOptionGroupLabel,
|
|
23
|
+
Positioner: selectPositioner.SelectPositioner,
|
|
24
|
+
Trigger: selectTrigger.SelectTrigger
|
|
25
|
+
});
|
|
16
26
|
|
|
17
|
-
exports.Select = select.Select;
|
|
18
27
|
exports.SelectContent = selectContent.SelectContent;
|
|
28
|
+
exports.useSelectContext = selectContext.useSelectContext;
|
|
19
29
|
exports.SelectLabel = selectLabel.SelectLabel;
|
|
20
30
|
exports.SelectOption = selectOption.SelectOption;
|
|
21
31
|
exports.SelectOptionGroup = selectOptionGroup.SelectOptionGroup;
|
|
@@ -24,5 +34,6 @@ exports.SelectPositioner = selectPositioner.SelectPositioner;
|
|
|
24
34
|
exports.SelectTrigger = selectTrigger.SelectTrigger;
|
|
25
35
|
Object.defineProperty(exports, 'selectAnatomy', {
|
|
26
36
|
enumerable: true,
|
|
27
|
-
get: () => select
|
|
37
|
+
get: () => select.anatomy
|
|
28
38
|
});
|
|
39
|
+
exports.Select = Select;
|
package/select/index.d.ts
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type SelectProps } from './select';
|
|
3
|
+
import { SelectContent, type SelectContentProps } from './select-content';
|
|
4
|
+
import { useSelectContext } from './select-context';
|
|
5
|
+
import { SelectLabel, type SelectLabelProps } from './select-label';
|
|
6
|
+
import { SelectOption, type SelectOptionProps } from './select-option';
|
|
7
|
+
import { SelectOptionGroup, type SelectOptionGroupProps } from './select-option-group';
|
|
8
|
+
import { SelectOptionGroupLabel, type SelectOptionGroupLabelProps } from './select-option-group-label';
|
|
9
|
+
import { SelectPositioner, type SelectPositionerProps } from './select-positioner';
|
|
10
|
+
import { SelectTrigger, type SelectTriggerProps } from './select-trigger';
|
|
11
|
+
import { selectAnatomy } from './select.anatomy';
|
|
12
|
+
declare const Select: ((props: SelectProps) => JSX.Element) & {
|
|
13
|
+
Root: (props: SelectProps) => JSX.Element;
|
|
14
|
+
Content: (props: SelectContentProps) => JSX.Element;
|
|
15
|
+
Label: (props: SelectLabelProps) => JSX.Element;
|
|
16
|
+
Option: (props: SelectOptionProps) => JSX.Element;
|
|
17
|
+
OptionGroup: (props: SelectOptionGroupProps) => JSX.Element;
|
|
18
|
+
OptionGroupLabel: (props: SelectOptionGroupLabelProps) => JSX.Element;
|
|
19
|
+
Positioner: (props: SelectPositionerProps) => JSX.Element;
|
|
20
|
+
Trigger: (props: SelectTriggerProps) => JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
export { Select, SelectContent, SelectLabel, SelectOption, SelectOptionGroup, SelectOptionGroupLabel, SelectPositioner, SelectTrigger, selectAnatomy, useSelectContext, };
|
|
23
|
+
export type { SelectContentProps, SelectLabelProps, SelectOptionGroupLabelProps, SelectOptionGroupProps, SelectOptionProps, SelectPositionerProps, SelectProps, SelectTriggerProps, };
|
package/select/index.mjs
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Select as Select$1 } from './select.mjs';
|
|
2
|
+
import { SelectContent } from './select-content.mjs';
|
|
3
|
+
export { useSelectContext } from './select-context.mjs';
|
|
4
|
+
import { SelectLabel } from './select-label.mjs';
|
|
5
|
+
import { SelectOption } from './select-option.mjs';
|
|
6
|
+
import { SelectOptionGroup } from './select-option-group.mjs';
|
|
7
|
+
import { SelectOptionGroupLabel } from './select-option-group-label.mjs';
|
|
8
|
+
import { SelectPositioner } from './select-positioner.mjs';
|
|
9
|
+
import { SelectTrigger } from './select-trigger.mjs';
|
|
9
10
|
export { anatomy as selectAnatomy } from '@zag-js/select';
|
|
11
|
+
|
|
12
|
+
const Select = Object.assign(Select$1, {
|
|
13
|
+
Root: Select$1,
|
|
14
|
+
Content: SelectContent,
|
|
15
|
+
Label: SelectLabel,
|
|
16
|
+
Option: SelectOption,
|
|
17
|
+
OptionGroup: SelectOptionGroup,
|
|
18
|
+
OptionGroupLabel: SelectOptionGroupLabel,
|
|
19
|
+
Positioner: SelectPositioner,
|
|
20
|
+
Trigger: SelectTrigger
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export { Select, SelectContent, SelectLabel, SelectOption, SelectOptionGroup, SelectOptionGroupLabel, SelectPositioner, SelectTrigger };
|
|
@@ -10,7 +10,7 @@ const selectContext = require('./select-context.cjs');
|
|
|
10
10
|
const SelectContent = props => {
|
|
11
11
|
const api = selectContext.useSelectContext();
|
|
12
12
|
const contentProps = solid.mergeProps(() => api().contentProps, props);
|
|
13
|
-
return web.createComponent(factory.ark.
|
|
13
|
+
return web.createComponent(factory.ark.div, contentProps);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
exports.SelectContent = SelectContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
|
-
export type SelectContentProps = HTMLArkProps<'
|
|
3
|
+
export type SelectContentProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const SelectContent: (props: SelectContentProps) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ import { useSelectContext } from './select-context.mjs';
|
|
|
6
6
|
const SelectContent = props => {
|
|
7
7
|
const api = useSelectContext();
|
|
8
8
|
const contentProps = mergeProps(() => api().contentProps, props);
|
|
9
|
-
return createComponent(ark.
|
|
9
|
+
return createComponent(ark.div, contentProps);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { SelectContent };
|
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Option } from '@zag-js/select/dist/select.types';
|
|
3
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
4
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
5
2
|
import { type UseSelectReturn } from './use-select';
|
|
6
3
|
export type SelectContext = UseSelectReturn;
|
|
7
|
-
export declare const SelectProvider: ContextProviderComponent<
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
highlightedOption: Option | null;
|
|
10
|
-
selectedOption: Option | null;
|
|
11
|
-
focus(): void;
|
|
12
|
-
open(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
setSelectedOption(value: Option): void;
|
|
15
|
-
setHighlightedOption(value: Option): void;
|
|
16
|
-
clearSelectedOption(): void;
|
|
17
|
-
getOptionState: (props: OptionProps) => {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isHighlighted: boolean;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
};
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
25
|
-
getOptionProps(props: OptionProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getOptionGroupLabelProps(props: OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getOptionGroupProps(props: OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
29
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>>, useSelectContext: () => Accessor<{
|
|
31
|
-
isOpen: boolean;
|
|
32
|
-
highlightedOption: Option | null;
|
|
33
|
-
selectedOption: Option | null;
|
|
34
|
-
focus(): void;
|
|
35
|
-
open(): void;
|
|
36
|
-
close(): void;
|
|
37
|
-
setSelectedOption(value: Option): void;
|
|
38
|
-
setHighlightedOption(value: Option): void;
|
|
39
|
-
clearSelectedOption(): void;
|
|
40
|
-
getOptionState: (props: OptionProps) => {
|
|
41
|
-
isDisabled: boolean;
|
|
42
|
-
isHighlighted: boolean;
|
|
43
|
-
isSelected: boolean;
|
|
44
|
-
};
|
|
45
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
46
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
47
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
48
|
-
getOptionProps(props: OptionProps): JSX.HTMLAttributes<any>;
|
|
49
|
-
getOptionGroupLabelProps(props: OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
50
|
-
getOptionGroupProps(props: OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
51
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
52
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
53
|
-
}>;
|
|
4
|
+
export declare const SelectProvider: ContextProviderComponent<UseSelectReturn>, useSelectContext: () => UseSelectReturn;
|
package/select/select-label.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ const SelectOptionGroupLabel = props => {
|
|
|
12
12
|
const [labelParams, restProps] = createSplitProps.createSplitProps()(props, ['htmlFor']);
|
|
13
13
|
const api = selectContext.useSelectContext();
|
|
14
14
|
const groupLabelProps = solid.mergeProps(() => api().getOptionGroupLabelProps(labelParams), restProps);
|
|
15
|
-
return web.createComponent(factory.ark.
|
|
15
|
+
return web.createComponent(factory.ark.div, groupLabelProps);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
exports.SelectOptionGroupLabel = SelectOptionGroupLabel;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
type GroupLabelParams = {
|
|
5
5
|
htmlFor: string;
|
|
6
6
|
};
|
|
7
|
-
export type SelectOptionGroupLabelProps = Assign<HTMLArkProps<'
|
|
7
|
+
export type SelectOptionGroupLabelProps = Assign<HTMLArkProps<'div'>, GroupLabelParams>;
|
|
8
8
|
export declare const SelectOptionGroupLabel: (props: SelectOptionGroupLabelProps) => JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -8,7 +8,7 @@ const SelectOptionGroupLabel = props => {
|
|
|
8
8
|
const [labelParams, restProps] = createSplitProps()(props, ['htmlFor']);
|
|
9
9
|
const api = useSelectContext();
|
|
10
10
|
const groupLabelProps = mergeProps(() => api().getOptionGroupLabelProps(labelParams), restProps);
|
|
11
|
-
return createComponent(ark.
|
|
11
|
+
return createComponent(ark.div, groupLabelProps);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { SelectOptionGroupLabel };
|
package/select/select-option.cjs
CHANGED
|
@@ -12,7 +12,7 @@ const SelectOption = props => {
|
|
|
12
12
|
const [optionParams, restProps] = createSplitProps.createSplitProps()(props, ['disabled', 'label', 'value', 'valueText']);
|
|
13
13
|
const api = selectContext.useSelectContext();
|
|
14
14
|
const optionProps = solid.mergeProps(() => api().getOptionProps(optionParams), restProps);
|
|
15
|
-
return web.createComponent(factory.ark.
|
|
15
|
+
return web.createComponent(factory.ark.div, web.mergeProps(optionProps, {
|
|
16
16
|
get children() {
|
|
17
17
|
return restProps.children ?? optionParams.label;
|
|
18
18
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { OptionProps } from '@zag-js/select';
|
|
2
3
|
import { type HTMLArkProps } from '../factory';
|
|
3
4
|
import type { Assign } from '../types';
|
|
4
|
-
|
|
5
|
-
type OptionParams = Parameters<ReturnType<ReturnType<typeof useSelectContext>>['getOptionProps']>[0];
|
|
6
|
-
export type SelectOptionProps = Assign<HTMLArkProps<'li'>, OptionParams>;
|
|
5
|
+
export type SelectOptionProps = Assign<HTMLArkProps<'div'>, OptionProps>;
|
|
7
6
|
export declare const SelectOption: (props: SelectOptionProps) => JSX.Element;
|
|
8
|
-
export {};
|
package/select/select-option.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const SelectOption = props => {
|
|
|
8
8
|
const [optionParams, restProps] = createSplitProps()(props, ['disabled', 'label', 'value', 'valueText']);
|
|
9
9
|
const api = useSelectContext();
|
|
10
10
|
const optionProps = mergeProps(() => api().getOptionProps(optionParams), restProps);
|
|
11
|
-
return createComponent(ark.
|
|
11
|
+
return createComponent(ark.div, mergeProps$1(optionProps, {
|
|
12
12
|
get children() {
|
|
13
13
|
return restProps.children ?? optionParams.label;
|
|
14
14
|
}
|
package/select/select.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const selectContext = require('./select-context.cjs');
|
|
|
9
9
|
const useSelect = require('./use-select.cjs');
|
|
10
10
|
|
|
11
11
|
const Select = props => {
|
|
12
|
-
const [selectParams, restProps] = createSplitProps.createSplitProps()(props, ['closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedOption', 'id', 'ids', 'invalid', 'loop', 'name', 'onChange', 'onClose', 'onHighlight', 'onInteractOutside', 'onOpen', 'positioning', 'readOnly', '
|
|
12
|
+
const [selectParams, restProps] = createSplitProps.createSplitProps()(props, ['closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedOption', 'id', 'ids', 'invalid', 'loop', 'name', 'onChange', 'onClose', 'onFocusOutside', 'onHighlight', 'onInteractOutside', 'onInteractOutside', 'onOpen', 'onPointerDownOutside', 'positioning', 'readOnly', 'selectedOption', 'selectOnTab']);
|
|
13
13
|
const api = useSelect.useSelect(selectParams);
|
|
14
14
|
const getChildren = () => runIfFn.runIfFn(restProps.children, api);
|
|
15
15
|
return web.createComponent(selectContext.SelectProvider, {
|
package/select/select.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { SelectProvider } from './select-context.mjs';
|
|
|
5
5
|
import { useSelect } from './use-select.mjs';
|
|
6
6
|
|
|
7
7
|
const Select = props => {
|
|
8
|
-
const [selectParams, restProps] = createSplitProps()(props, ['closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedOption', 'id', 'ids', 'invalid', 'loop', 'name', 'onChange', 'onClose', 'onHighlight', 'onInteractOutside', 'onOpen', 'positioning', 'readOnly', '
|
|
8
|
+
const [selectParams, restProps] = createSplitProps()(props, ['closeOnSelect', 'dir', 'disabled', 'form', 'getRootNode', 'highlightedOption', 'id', 'ids', 'invalid', 'loop', 'name', 'onChange', 'onClose', 'onFocusOutside', 'onHighlight', 'onInteractOutside', 'onInteractOutside', 'onOpen', 'onPointerDownOutside', 'positioning', 'readOnly', 'selectedOption', 'selectOnTab']);
|
|
9
9
|
const api = useSelect(selectParams);
|
|
10
10
|
const getChildren = () => runIfFn(restProps.children, api);
|
|
11
11
|
return createComponent(SelectProvider, {
|
package/select/use-select.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const select = require('@zag-js/select');
|
|
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) {
|
package/select/use-select.d.ts
CHANGED
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import type { Option } from '@zag-js/select/dist/select.types';
|
|
2
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
3
1
|
import * as select from '@zag-js/select';
|
|
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 UseSelectProps = Optional<select.Context, 'id'>;
|
|
6
|
-
export type UseSelectReturn =
|
|
7
|
-
export declare const useSelect: (props: UseSelectProps) =>
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
highlightedOption: Option | null;
|
|
10
|
-
selectedOption: Option | null;
|
|
11
|
-
focus(): void;
|
|
12
|
-
open(): void;
|
|
13
|
-
close(): void;
|
|
14
|
-
setSelectedOption(value: Option): void;
|
|
15
|
-
setHighlightedOption(value: Option): void;
|
|
16
|
-
clearSelectedOption(): void;
|
|
17
|
-
getOptionState: (props: select.OptionProps) => {
|
|
18
|
-
isDisabled: boolean;
|
|
19
|
-
isHighlighted: boolean;
|
|
20
|
-
isSelected: boolean;
|
|
21
|
-
};
|
|
22
|
-
labelProps: JSX.LabelHTMLAttributes<HTMLLabelElement>;
|
|
23
|
-
positionerProps: JSX.HTMLAttributes<any>;
|
|
24
|
-
triggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
25
|
-
getOptionProps(props: select.OptionProps): JSX.HTMLAttributes<any>;
|
|
26
|
-
getOptionGroupLabelProps(props: select.OptionGroupLabelProps): JSX.HTMLAttributes<any>;
|
|
27
|
-
getOptionGroupProps(props: select.OptionGroupProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
hiddenSelectProps: JSX.SelectHTMLAttributes<HTMLSelectElement>;
|
|
29
|
-
contentProps: JSX.HTMLAttributes<any>;
|
|
30
|
-
}>;
|
|
6
|
+
export type UseSelectReturn = Accessor<select.Api<PropTypes>>;
|
|
7
|
+
export declare const useSelect: (props: UseSelectProps) => UseSelectReturn;
|
package/select/use-select.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as select from '@zag-js/select';
|
|
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 useSelect = (props) => {
|
package/setup-test.d.ts
ADDED
|
File without changes
|
package/slider/index.cjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const slider = require('./slider.cjs');
|
|
5
|
+
const slider$1 = require('./slider.cjs');
|
|
6
|
+
const sliderContext = require('./slider-context.cjs');
|
|
6
7
|
const sliderControl = require('./slider-control.cjs');
|
|
7
8
|
const sliderLabel = require('./slider-label.cjs');
|
|
8
9
|
const sliderMarker = require('./slider-marker.cjs');
|
|
@@ -11,11 +12,21 @@ const sliderOutput = require('./slider-output.cjs');
|
|
|
11
12
|
const sliderRange = require('./slider-range.cjs');
|
|
12
13
|
const sliderThumb = require('./slider-thumb.cjs');
|
|
13
14
|
const sliderTrack = require('./slider-track.cjs');
|
|
14
|
-
const slider
|
|
15
|
-
|
|
15
|
+
const slider = require('@zag-js/slider');
|
|
16
16
|
|
|
17
|
+
const Slider = Object.assign(slider$1.Slider, {
|
|
18
|
+
Root: slider$1.Slider,
|
|
19
|
+
Control: sliderControl.SliderControl,
|
|
20
|
+
Label: sliderLabel.SliderLabel,
|
|
21
|
+
Marker: sliderMarker.SliderMarker,
|
|
22
|
+
MarkerGroup: sliderMarkerGroup.SliderMarkerGroup,
|
|
23
|
+
Output: sliderOutput.SliderOutput,
|
|
24
|
+
Range: sliderRange.SliderRange,
|
|
25
|
+
Thumb: sliderThumb.SliderThumb,
|
|
26
|
+
Track: sliderTrack.SliderTrack
|
|
27
|
+
});
|
|
17
28
|
|
|
18
|
-
exports.
|
|
29
|
+
exports.useSliderContext = sliderContext.useSliderContext;
|
|
19
30
|
exports.SliderControl = sliderControl.SliderControl;
|
|
20
31
|
exports.SliderLabel = sliderLabel.SliderLabel;
|
|
21
32
|
exports.SliderMarker = sliderMarker.SliderMarker;
|
|
@@ -25,6 +36,7 @@ exports.SliderRange = sliderRange.SliderRange;
|
|
|
25
36
|
exports.SliderThumb = sliderThumb.SliderThumb;
|
|
26
37
|
exports.SliderTrack = sliderTrack.SliderTrack;
|
|
27
38
|
Object.defineProperty(exports, 'sliderAnatomy', {
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: () => slider.anatomy
|
|
30
41
|
});
|
|
42
|
+
exports.Slider = Slider;
|