@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
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ description: All notable changes to this project will be documented in this file
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.10.0] - 2023-09-02
|
|
10
|
+
|
|
11
|
+
### Addded
|
|
12
|
+
|
|
13
|
+
- Added `DatePickerPositioner` component to the `DatePicker` component to help with positioning the calendar.
|
|
14
|
+
- Added `ComboboxOptionGroupLabel` to the `Combobox` component. This component can be used to render a label for a group of options in the `ComboboxOptionGroup` component.
|
|
15
|
+
- Exposed `ark` factory function.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- BREAKING: Renamed `NumberInputField` to `NumberInputInput` to match the naming convention of other input components.
|
|
20
|
+
- BREAKING: Renamed `PinInputField` to `PinInputInput` to match the naming convention of other input components.
|
|
21
|
+
- BREAKING: Renamed `TagsInputField` to `TagsInputInput` to match the naming convention of other input components.
|
|
22
|
+
- BREAKING: Renamed `SegmentIndicator` to `SegmentGroupIndicator` to match the naming convention of other components.
|
|
23
|
+
|
|
24
|
+
### Removed
|
|
25
|
+
|
|
26
|
+
- BREAKING: Removed `CheckboxInput`. This component is no longer required.
|
|
27
|
+
- BREAKING: Removed `RadioInput`. This component is no longer required.
|
|
28
|
+
- BREAKING: Removed `SegmentInput`. This component is no longer required.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Added missing exports for `ColorPicker`.
|
|
33
|
+
|
|
34
|
+
## [0.9.0] - 2023-08-06
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- Enhanced `Carousel` component: Introduced `CarouselIndicator` and `CarouselIndicatorGroup` components. These sub-components offer finer control over the carousel navigation, enabling users to directly access desired carousel slides.
|
|
39
|
+
- Expose `use<X>Context` for all components that use context.
|
|
40
|
+
- Added `ComboboxOptionGroup` and `ComboboxClearTrigger` components to the `Combobox` component.
|
|
41
|
+
- Developers can now set default options for all `Toast` components in their application, ensuring a consistent look and feel across the board.
|
|
42
|
+
|
|
9
43
|
## [0.8.1] - 2023-07-10
|
|
10
44
|
|
|
11
45
|
### Fixed
|
|
@@ -110,7 +144,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
110
144
|
- Add `Toast`
|
|
111
145
|
- Add `Tooltip`
|
|
112
146
|
|
|
113
|
-
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.
|
|
147
|
+
[unreleased]: https://github.com/chakra-ui/ark/compare/@ark-ui/solid@0.10.0...HEAD
|
|
114
148
|
[0.1.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.1.0
|
|
115
149
|
[0.2.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.2.0
|
|
116
150
|
[0.3.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.3.0
|
|
@@ -120,5 +154,7 @@ description: All notable changes to this project will be documented in this file
|
|
|
120
154
|
[0.7.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.0
|
|
121
155
|
[0.7.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.7.1
|
|
122
156
|
[0.8.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.8.0
|
|
123
|
-
|
|
124
157
|
[0.8.1]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.8.1
|
|
158
|
+
[0.9.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.9.0
|
|
159
|
+
|
|
160
|
+
[0.10.0]: https://github.com/chakra-ui/ark/releases/tag/@ark-ui/solid@0.10.0
|
|
@@ -1,24 +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 UseAccordionReturn } from './use-accordion';
|
|
5
3
|
export type AccordionContext = UseAccordionReturn;
|
|
6
|
-
export declare const AccordionProvider: ContextProviderComponent<
|
|
7
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
8
|
-
getItemProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
9
|
-
getContentProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
10
|
-
getTriggerProps(props: ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
11
|
-
focusedValue: string | null;
|
|
12
|
-
value: string | string[] | null;
|
|
13
|
-
setValue: (value: string | string[]) => void;
|
|
14
|
-
getItemState: (props: ItemProps) => ItemState;
|
|
15
|
-
}>>, useAccordionContext: () => Accessor<{
|
|
16
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
17
|
-
getItemProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
18
|
-
getContentProps(props: ItemProps): JSX.HTMLAttributes<any>;
|
|
19
|
-
getTriggerProps(props: ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
20
|
-
focusedValue: string | null;
|
|
21
|
-
value: string | string[] | null;
|
|
22
|
-
setValue: (value: string | string[]) => void;
|
|
23
|
-
getItemState: (props: ItemProps) => ItemState;
|
|
24
|
-
}>;
|
|
4
|
+
export declare const AccordionProvider: ContextProviderComponent<UseAccordionReturn>, useAccordionContext: () => UseAccordionReturn;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
2
|
+
import type { ItemProps, ItemState } from '@zag-js/accordion';
|
|
3
|
+
export type AccordionItemContext = ItemProps & ItemState;
|
|
6
4
|
export declare const AccordionItemProvider: ContextProviderComponent<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
|
|
@@ -4,21 +4,22 @@ 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
|
|
7
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
8
8
|
const factory = require('../factory.cjs');
|
|
9
9
|
const runIfFn = require('../run-if-fn.cjs');
|
|
10
10
|
const accordionContext = require('./accordion-context.cjs');
|
|
11
11
|
const accordionItemContext = require('./accordion-item-context.cjs');
|
|
12
12
|
|
|
13
13
|
const AccordionItem = props => {
|
|
14
|
-
const [
|
|
14
|
+
const [itemProps, restProps] = createSplitProps.createSplitProps()(props, ['value', 'disabled']);
|
|
15
15
|
const api = accordionContext.useAccordionContext();
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const mergedProps = solid.mergeProps(() => api().getItemProps(itemProps), restProps);
|
|
17
|
+
const accordionItem = solid.mergeProps(() => api().getItemState(itemProps), itemProps);
|
|
18
|
+
const getChildren = () => runIfFn.runIfFn(restProps.children, () => api().getItemState(itemProps));
|
|
18
19
|
return web.createComponent(accordionItemContext.AccordionItemProvider, {
|
|
19
|
-
value:
|
|
20
|
+
value: accordionItem,
|
|
20
21
|
get children() {
|
|
21
|
-
return web.createComponent(factory.ark.div, web.mergeProps(
|
|
22
|
+
return web.createComponent(factory.ark.div, web.mergeProps(mergedProps, {
|
|
22
23
|
get children() {
|
|
23
24
|
return getChildren();
|
|
24
25
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { type ItemState } from '@zag-js/accordion';
|
|
1
2
|
import { type JSX } from 'solid-js';
|
|
2
3
|
import { type HTMLArkProps } from '../factory';
|
|
3
4
|
import type { Assign } from '../types';
|
|
4
|
-
import { type AccordionContext } from './accordion-context';
|
|
5
|
-
export type AccordionItemState = () => ReturnType<ReturnType<AccordionContext>['getItemState']>;
|
|
6
5
|
export type AccordionItemProps = Assign<HTMLArkProps<'div'>, {
|
|
7
6
|
value: string;
|
|
8
7
|
disabled?: boolean;
|
|
9
|
-
children?: JSX.Element | ((state:
|
|
8
|
+
children?: JSX.Element | ((state: () => ItemState) => JSX.Element);
|
|
10
9
|
}>;
|
|
11
10
|
export declare const AccordionItem: (props: AccordionItemProps) => JSX.Element;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import {
|
|
3
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
4
4
|
import { ark } from '../factory.mjs';
|
|
5
5
|
import { runIfFn } from '../run-if-fn.mjs';
|
|
6
6
|
import { useAccordionContext } from './accordion-context.mjs';
|
|
7
7
|
import { AccordionItemProvider } from './accordion-item-context.mjs';
|
|
8
8
|
|
|
9
9
|
const AccordionItem = props => {
|
|
10
|
-
const [
|
|
10
|
+
const [itemProps, restProps] = createSplitProps()(props, ['value', 'disabled']);
|
|
11
11
|
const api = useAccordionContext();
|
|
12
|
-
const
|
|
13
|
-
const
|
|
12
|
+
const mergedProps = mergeProps(() => api().getItemProps(itemProps), restProps);
|
|
13
|
+
const accordionItem = mergeProps(() => api().getItemState(itemProps), itemProps);
|
|
14
|
+
const getChildren = () => runIfFn(restProps.children, () => api().getItemState(itemProps));
|
|
14
15
|
return createComponent(AccordionItemProvider, {
|
|
15
|
-
value:
|
|
16
|
+
value: accordionItem,
|
|
16
17
|
get children() {
|
|
17
|
-
return createComponent(ark.div, mergeProps$1(
|
|
18
|
+
return createComponent(ark.div, mergeProps$1(mergedProps, {
|
|
18
19
|
get children() {
|
|
19
20
|
return getChildren();
|
|
20
21
|
}
|
package/accordion/accordion.cjs
CHANGED
|
@@ -10,7 +10,7 @@ const accordionContext = require('./accordion-context.cjs');
|
|
|
10
10
|
const useAccordion = require('./use-accordion.cjs');
|
|
11
11
|
|
|
12
12
|
const Accordion = props => {
|
|
13
|
-
const [params, localProps] = createSplitProps.createSplitProps()(props, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onChange', '
|
|
13
|
+
const [params, localProps] = createSplitProps.createSplitProps()(props, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onChange', 'onFocusChange', 'orientation', 'value']);
|
|
14
14
|
const api = useAccordion.useAccordion(params);
|
|
15
15
|
const rootProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
16
16
|
return web.createComponent(accordionContext.AccordionProvider, {
|
package/accordion/accordion.d.ts
CHANGED
package/accordion/accordion.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { AccordionProvider } from './accordion-context.mjs';
|
|
|
6
6
|
import { useAccordion } from './use-accordion.mjs';
|
|
7
7
|
|
|
8
8
|
const Accordion = props => {
|
|
9
|
-
const [params, localProps] = createSplitProps()(props, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onChange', '
|
|
9
|
+
const [params, localProps] = createSplitProps()(props, ['collapsible', 'dir', 'disabled', 'getRootNode', 'id', 'ids', 'multiple', 'onChange', 'onFocusChange', 'orientation', 'value']);
|
|
10
10
|
const api = useAccordion(params);
|
|
11
11
|
const rootProps = mergeProps(() => api().rootProps, localProps);
|
|
12
12
|
return createComponent(AccordionProvider, {
|
|
@@ -0,0 +1,12 @@
|
|
|
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 Initial: () => JSX.Element;
|
|
7
|
+
export declare const RenderProp: () => JSX.Element;
|
|
8
|
+
export declare const Collapsible: () => JSX.Element;
|
|
9
|
+
export declare const Multiple: () => JSX.Element;
|
|
10
|
+
export declare const Controlled: () => JSX.Element;
|
|
11
|
+
export declare const Vertical: () => JSX.Element;
|
|
12
|
+
export declare const Disabled: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/accordion/index.cjs
CHANGED
|
@@ -2,19 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const accordion = require('./accordion.cjs');
|
|
5
|
+
const accordion$1 = require('./accordion.cjs');
|
|
6
6
|
const accordionContent = require('./accordion-content.cjs');
|
|
7
|
+
const accordionContext = require('./accordion-context.cjs');
|
|
7
8
|
const accordionItem = require('./accordion-item.cjs');
|
|
9
|
+
const accordionItemContext = require('./accordion-item-context.cjs');
|
|
8
10
|
const accordionTrigger = require('./accordion-trigger.cjs');
|
|
9
|
-
const accordion
|
|
10
|
-
|
|
11
|
+
const accordion = require('@zag-js/accordion');
|
|
11
12
|
|
|
13
|
+
const Accordion = Object.assign(accordion$1.Accordion, {
|
|
14
|
+
Root: accordion$1.Accordion,
|
|
15
|
+
Content: accordionContent.AccordionContent,
|
|
16
|
+
Item: accordionItem.AccordionItem,
|
|
17
|
+
Trigger: accordionTrigger.AccordionTrigger
|
|
18
|
+
});
|
|
12
19
|
|
|
13
|
-
exports.Accordion = accordion.Accordion;
|
|
14
20
|
exports.AccordionContent = accordionContent.AccordionContent;
|
|
21
|
+
exports.useAccordionContext = accordionContext.useAccordionContext;
|
|
15
22
|
exports.AccordionItem = accordionItem.AccordionItem;
|
|
23
|
+
exports.useAccordionItemContext = accordionItemContext.useAccordionItemContext;
|
|
16
24
|
exports.AccordionTrigger = accordionTrigger.AccordionTrigger;
|
|
17
25
|
Object.defineProperty(exports, 'accordionAnatomy', {
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: () => accordion.anatomy
|
|
20
28
|
});
|
|
29
|
+
exports.Accordion = Accordion;
|
package/accordion/index.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type AccordionProps } from './accordion';
|
|
3
|
+
import { AccordionContent, type AccordionContentProps } from './accordion-content';
|
|
4
|
+
import { useAccordionContext } from './accordion-context';
|
|
5
|
+
import { AccordionItem, type AccordionItemProps } from './accordion-item';
|
|
6
|
+
import { useAccordionItemContext } from './accordion-item-context';
|
|
7
|
+
import { AccordionTrigger, type AccordionTriggerProps } from './accordion-trigger';
|
|
8
|
+
import { accordionAnatomy } from './accordion.anatomy';
|
|
9
|
+
declare const Accordion: ((props: AccordionProps) => JSX.Element) & {
|
|
10
|
+
Root: (props: AccordionProps) => JSX.Element;
|
|
11
|
+
Content: (props: AccordionContentProps) => JSX.Element;
|
|
12
|
+
Item: (props: AccordionItemProps) => JSX.Element;
|
|
13
|
+
Trigger: (props: AccordionTriggerProps) => JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, accordionAnatomy, useAccordionContext, useAccordionItemContext, };
|
|
16
|
+
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps };
|
package/accordion/index.mjs
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
1
|
+
import { Accordion as Accordion$1 } from './accordion.mjs';
|
|
2
|
+
import { AccordionContent } from './accordion-content.mjs';
|
|
3
|
+
export { useAccordionContext } from './accordion-context.mjs';
|
|
4
|
+
import { AccordionItem } from './accordion-item.mjs';
|
|
5
|
+
export { useAccordionItemContext } from './accordion-item-context.mjs';
|
|
6
|
+
import { AccordionTrigger } from './accordion-trigger.mjs';
|
|
5
7
|
export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
8
|
+
|
|
9
|
+
const Accordion = Object.assign(Accordion$1, {
|
|
10
|
+
Root: Accordion$1,
|
|
11
|
+
Content: AccordionContent,
|
|
12
|
+
Item: AccordionItem,
|
|
13
|
+
Trigger: AccordionTrigger
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const accordion = require('@zag-js/accordion');
|
|
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,15 +1,7 @@
|
|
|
1
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
2
1
|
import * as accordion from '@zag-js/accordion';
|
|
2
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseAccordionProps = Optional<accordion.Context, 'id'>;
|
|
5
|
-
export type UseAccordionReturn =
|
|
6
|
-
export declare const useAccordion: (props: UseAccordionProps) =>
|
|
7
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
8
|
-
getItemProps(props: accordion.ItemProps): JSX.HTMLAttributes<any>;
|
|
9
|
-
getContentProps(props: accordion.ItemProps): JSX.HTMLAttributes<any>;
|
|
10
|
-
getTriggerProps(props: accordion.ItemProps): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
11
|
-
focusedValue: string | null;
|
|
12
|
-
value: string | string[] | null;
|
|
13
|
-
setValue: (value: string | string[]) => void;
|
|
14
|
-
getItemState: (props: accordion.ItemProps) => accordion.ItemState;
|
|
15
|
-
}>;
|
|
6
|
+
export type UseAccordionReturn = Accessor<accordion.Api<PropTypes>>;
|
|
7
|
+
export declare const useAccordion: (props: UseAccordionProps) => UseAccordionReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as accordion from '@zag-js/accordion';
|
|
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 useAccordion = (props) => {
|
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
3
2
|
import { type UseAvatarReturn } from './use-avatar';
|
|
4
3
|
export type AvatarContext = UseAvatarReturn;
|
|
5
|
-
export declare const AvatarProvider: ContextProviderComponent<
|
|
6
|
-
isLoaded: boolean;
|
|
7
|
-
showFallback: boolean;
|
|
8
|
-
setSrc(src: string): void;
|
|
9
|
-
setLoaded(): void;
|
|
10
|
-
setError(): void;
|
|
11
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
12
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
13
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
14
|
-
}>>, useAvatarContext: () => Accessor<{
|
|
15
|
-
isLoaded: boolean;
|
|
16
|
-
showFallback: boolean;
|
|
17
|
-
setSrc(src: string): void;
|
|
18
|
-
setLoaded(): void;
|
|
19
|
-
setError(): void;
|
|
20
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
21
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
22
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
23
|
-
}>;
|
|
4
|
+
export declare const AvatarProvider: ContextProviderComponent<UseAvatarReturn>, useAvatarContext: () => UseAvatarReturn;
|
package/avatar/avatar-image.d.ts
CHANGED
package/avatar/avatar.d.ts
CHANGED
package/avatar/index.cjs
CHANGED
|
@@ -2,17 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const avatar = require('./avatar.cjs');
|
|
5
|
+
const avatar$1 = require('./avatar.cjs');
|
|
6
|
+
const avatarContext = require('./avatar-context.cjs');
|
|
6
7
|
const avatarFallback = require('./avatar-fallback.cjs');
|
|
7
8
|
const avatarImage = require('./avatar-image.cjs');
|
|
8
|
-
const avatar
|
|
9
|
-
|
|
9
|
+
const avatar = require('@zag-js/avatar');
|
|
10
10
|
|
|
11
|
+
const Avatar = Object.assign(avatar$1.Avatar, {
|
|
12
|
+
Root: avatar$1.Avatar,
|
|
13
|
+
Fallback: avatarFallback.AvatarFallback,
|
|
14
|
+
Image: avatarImage.AvatarImage
|
|
15
|
+
});
|
|
11
16
|
|
|
12
|
-
exports.
|
|
17
|
+
exports.useAvatarContext = avatarContext.useAvatarContext;
|
|
13
18
|
exports.AvatarFallback = avatarFallback.AvatarFallback;
|
|
14
19
|
exports.AvatarImage = avatarImage.AvatarImage;
|
|
15
20
|
Object.defineProperty(exports, 'avatarAnatomy', {
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: () => avatar.anatomy
|
|
18
23
|
});
|
|
24
|
+
exports.Avatar = Avatar;
|
package/avatar/index.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type AvatarProps } from './avatar';
|
|
3
|
+
import { useAvatarContext } from './avatar-context';
|
|
4
|
+
import { AvatarFallback, type AvatarFallbackProps } from './avatar-fallback';
|
|
5
|
+
import { AvatarImage, type AvatarImageProps } from './avatar-image';
|
|
6
|
+
import { avatarAnatomy } from './avatar.anatomy';
|
|
7
|
+
declare const Avatar: ((props: AvatarProps) => JSX.Element) & {
|
|
8
|
+
Root: (props: AvatarProps) => JSX.Element;
|
|
9
|
+
Fallback: (props: AvatarFallbackProps) => JSX.Element;
|
|
10
|
+
Image: (props: AvatarImageProps) => JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
export { Avatar, AvatarFallback, AvatarImage, avatarAnatomy, useAvatarContext };
|
|
13
|
+
export type { AvatarFallbackProps, AvatarImageProps, AvatarProps };
|
package/avatar/index.mjs
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { Avatar as Avatar$1 } from './avatar.mjs';
|
|
2
|
+
export { useAvatarContext } from './avatar-context.mjs';
|
|
3
|
+
import { AvatarFallback } from './avatar-fallback.mjs';
|
|
4
|
+
import { AvatarImage } from './avatar-image.mjs';
|
|
4
5
|
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
6
|
+
|
|
7
|
+
const Avatar = Object.assign(Avatar$1, {
|
|
8
|
+
Root: Avatar$1,
|
|
9
|
+
Fallback: AvatarFallback,
|
|
10
|
+
Image: AvatarImage
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { Avatar, AvatarFallback, AvatarImage };
|
package/avatar/use-avatar.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const avatar = require('@zag-js/avatar');
|
|
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/avatar/use-avatar.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import type { Accessor, JSX } from 'solid-js';
|
|
2
1
|
import * as avatar from '@zag-js/avatar';
|
|
2
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
3
4
|
import { type Optional } from '../types';
|
|
4
5
|
export type UseAvatarProps = Optional<avatar.Context, 'id'>;
|
|
5
|
-
export type UseAvatarReturn =
|
|
6
|
-
export declare const useAvatar: (props: UseAvatarProps) =>
|
|
7
|
-
isLoaded: boolean;
|
|
8
|
-
showFallback: boolean;
|
|
9
|
-
setSrc(src: string): void;
|
|
10
|
-
setLoaded(): void;
|
|
11
|
-
setError(): void;
|
|
12
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
13
|
-
imageProps: JSX.ImgHTMLAttributes<HTMLImageElement>;
|
|
14
|
-
fallbackProps: JSX.HTMLAttributes<any>;
|
|
15
|
-
}>;
|
|
6
|
+
export type UseAvatarReturn = Accessor<avatar.Api<PropTypes>>;
|
|
7
|
+
export declare const useAvatar: (props: UseAvatarProps) => UseAvatarReturn;
|
package/avatar/use-avatar.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as avatar from '@zag-js/avatar';
|
|
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 useAvatar = (props) => {
|
|
@@ -1,62 +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 UseCarouselReturn } from './use-carousel';
|
|
5
3
|
export type CarouselContext = UseCarouselReturn;
|
|
6
|
-
export declare const CarouselProvider: ContextProviderComponent<
|
|
7
|
-
index: number;
|
|
8
|
-
scrollProgress: number;
|
|
9
|
-
isAutoplay: boolean;
|
|
10
|
-
canScrollNext: boolean;
|
|
11
|
-
canScrollPrev: boolean;
|
|
12
|
-
scrollTo(index: number, jump?: boolean | undefined): void;
|
|
13
|
-
scrollToNext(): void;
|
|
14
|
-
scrollToPrevious(): void;
|
|
15
|
-
getSlideState: (props: SlideProps) => {
|
|
16
|
-
valueText: string;
|
|
17
|
-
isCurrent: boolean;
|
|
18
|
-
isNext: boolean;
|
|
19
|
-
isPrevious: boolean;
|
|
20
|
-
isInView: boolean;
|
|
21
|
-
};
|
|
22
|
-
play(): void;
|
|
23
|
-
pause(): void;
|
|
24
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
25
|
-
viewportProps: JSX.HTMLAttributes<any>;
|
|
26
|
-
slideGroupProps: JSX.HTMLAttributes<any>;
|
|
27
|
-
getSlideProps(props: SlideProps): JSX.HTMLAttributes<any>;
|
|
28
|
-
prevTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
29
|
-
nextTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
30
|
-
indicatorGroupProps: JSX.HTMLAttributes<any>;
|
|
31
|
-
getIndicatorProps(props: {
|
|
32
|
-
index: number;
|
|
33
|
-
}): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
34
|
-
}>>, useCarouselContext: () => Accessor<{
|
|
35
|
-
index: number;
|
|
36
|
-
scrollProgress: number;
|
|
37
|
-
isAutoplay: boolean;
|
|
38
|
-
canScrollNext: boolean;
|
|
39
|
-
canScrollPrev: boolean;
|
|
40
|
-
scrollTo(index: number, jump?: boolean | undefined): void;
|
|
41
|
-
scrollToNext(): void;
|
|
42
|
-
scrollToPrevious(): void;
|
|
43
|
-
getSlideState: (props: SlideProps) => {
|
|
44
|
-
valueText: string;
|
|
45
|
-
isCurrent: boolean;
|
|
46
|
-
isNext: boolean;
|
|
47
|
-
isPrevious: boolean;
|
|
48
|
-
isInView: boolean;
|
|
49
|
-
};
|
|
50
|
-
play(): void;
|
|
51
|
-
pause(): void;
|
|
52
|
-
rootProps: JSX.HTMLAttributes<any>;
|
|
53
|
-
viewportProps: JSX.HTMLAttributes<any>;
|
|
54
|
-
slideGroupProps: JSX.HTMLAttributes<any>;
|
|
55
|
-
getSlideProps(props: SlideProps): JSX.HTMLAttributes<any>;
|
|
56
|
-
prevTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
57
|
-
nextTriggerProps: JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
58
|
-
indicatorGroupProps: JSX.HTMLAttributes<any>;
|
|
59
|
-
getIndicatorProps(props: {
|
|
60
|
-
index: number;
|
|
61
|
-
}): JSX.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
62
|
-
}>;
|
|
4
|
+
export declare const CarouselProvider: ContextProviderComponent<UseCarouselReturn>, useCarouselContext: () => UseCarouselReturn;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 factory = require('../factory.cjs');
|
|
8
|
+
const carouselContext = require('./carousel-context.cjs');
|
|
9
|
+
|
|
10
|
+
const CarouselIndicatorGroup = props => {
|
|
11
|
+
const carousel = carouselContext.useCarouselContext();
|
|
12
|
+
const indicatorGroupProps = solid.mergeProps(() => carousel().indicatorGroupProps, props);
|
|
13
|
+
return web.createComponent(factory.ark.div, indicatorGroupProps);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.CarouselIndicatorGroup = CarouselIndicatorGroup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { ark } from '../factory.mjs';
|
|
4
|
+
import { useCarouselContext } from './carousel-context.mjs';
|
|
5
|
+
|
|
6
|
+
const CarouselIndicatorGroup = props => {
|
|
7
|
+
const carousel = useCarouselContext();
|
|
8
|
+
const indicatorGroupProps = mergeProps(() => carousel().indicatorGroupProps, props);
|
|
9
|
+
return createComponent(ark.div, indicatorGroupProps);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { CarouselIndicatorGroup };
|