@ark-ui/solid 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -2
- package/accordion/accordion-content.d.ts +1 -1
- package/accordion/accordion-context.d.ts +2 -5
- package/accordion/accordion-item-context.d.ts +3 -5
- package/accordion/accordion-item.cjs +7 -6
- package/accordion/accordion-item.d.ts +2 -3
- package/accordion/accordion-item.mjs +7 -6
- package/accordion/accordion-trigger.d.ts +1 -1
- package/accordion/accordion.cjs +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.mjs +1 -1
- package/accordion/accordion.stories.d.ts +12 -0
- package/accordion/accordion.test.d.ts +1 -0
- package/accordion/index.cjs +11 -6
- package/accordion/index.d.ts +16 -7
- package/accordion/index.mjs +13 -4
- package/accordion/use-accordion.cjs +1 -0
- package/accordion/use-accordion.d.ts +4 -4
- package/accordion/use-accordion.mjs +1 -0
- package/avatar/avatar-context.d.ts +2 -5
- package/avatar/avatar-fallback.d.ts +1 -1
- package/avatar/avatar-image.d.ts +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.stories.d.ts +6 -0
- package/avatar/index.cjs +10 -6
- package/avatar/index.d.ts +13 -5
- package/avatar/index.mjs +11 -3
- package/avatar/use-avatar.cjs +1 -0
- package/avatar/use-avatar.d.ts +4 -4
- package/avatar/use-avatar.mjs +1 -0
- package/carousel/carousel-context.d.ts +2 -5
- package/carousel/carousel-control.d.ts +1 -1
- package/carousel/carousel-indicator-group.d.ts +1 -1
- package/carousel/carousel-indicator.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.cjs +2 -2
- package/carousel/carousel-next-slide-trigger.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.mjs +2 -2
- package/carousel/carousel-prev-slide-trigger.cjs +2 -2
- package/carousel/carousel-prev-slide-trigger.d.ts +1 -1
- package/carousel/carousel-prev-slide-trigger.mjs +2 -2
- package/carousel/carousel-slide-group.d.ts +1 -1
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/carousel-viewport.d.ts +1 -1
- package/carousel/carousel.anatomy.d.ts +3 -3
- package/carousel/carousel.d.ts +1 -1
- package/carousel/carousel.stories.d.ts +6 -0
- package/carousel/index.cjs +12 -2
- package/carousel/index.d.ts +25 -11
- package/carousel/index.mjs +23 -9
- package/carousel/use-carousel.cjs +1 -0
- package/carousel/use-carousel.d.ts +4 -4
- package/carousel/use-carousel.mjs +1 -0
- package/checkbox/checkbox-context.d.ts +2 -5
- package/checkbox/checkbox-control.cjs +6 -1
- package/checkbox/checkbox-control.d.ts +1 -1
- package/checkbox/checkbox-control.mjs +7 -2
- package/checkbox/checkbox-label.d.ts +1 -1
- package/checkbox/checkbox.stories.d.ts +8 -0
- package/checkbox/index.cjs +10 -8
- package/checkbox/index.d.ts +14 -7
- package/checkbox/index.mjs +11 -4
- package/checkbox/use-checkbox.cjs +1 -0
- package/checkbox/use-checkbox.d.ts +4 -4
- package/checkbox/use-checkbox.mjs +1 -0
- package/clone-element.d.ts +2 -0
- package/color-picker/color-picker-area-context.d.ts +1 -1
- package/color-picker/color-picker-area-gradient.d.ts +1 -1
- package/color-picker/color-picker-area-thumb.d.ts +1 -1
- package/color-picker/color-picker-area.d.ts +1 -1
- package/color-picker/color-picker-channel-input.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-background.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-context.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-thumb.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-track.d.ts +1 -1
- package/color-picker/color-picker-content.d.ts +1 -1
- package/color-picker/color-picker-context.d.ts +2 -5
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +1 -1
- package/color-picker/color-picker-swatch-background.d.ts +1 -1
- package/color-picker/color-picker-swatch-context.d.ts +1 -1
- package/color-picker/color-picker-swatch-group.d.ts +1 -1
- package/color-picker/color-picker-swatch.d.ts +1 -1
- package/color-picker/color-picker.anatomy.d.ts +3 -3
- package/color-picker/color-picker.cjs +1 -1
- package/color-picker/color-picker.mjs +1 -1
- package/color-picker/color-picker.stories.d.ts +6 -0
- package/color-picker/index.cjs +16 -2
- package/color-picker/index.d.ts +35 -17
- package/color-picker/index.mjs +31 -13
- package/color-picker/use-color-picker.cjs +1 -0
- package/color-picker/use-color-picker.d.ts +4 -4
- package/color-picker/use-color-picker.mjs +1 -0
- package/combobox/combobox-clear-trigger.d.ts +1 -1
- package/combobox/combobox-content.cjs +1 -1
- package/combobox/combobox-content.d.ts +2 -2
- package/combobox/combobox-content.mjs +1 -1
- package/combobox/combobox-context.d.ts +2 -5
- package/combobox/combobox-control.d.ts +1 -1
- package/combobox/combobox-input.d.ts +1 -1
- package/combobox/combobox-label.d.ts +1 -1
- package/combobox/combobox-option-group-label.cjs +18 -0
- package/combobox/combobox-option-group-label.d.ts +6 -0
- package/combobox/combobox-option-group-label.mjs +14 -0
- package/combobox/combobox-option-group.cjs +4 -2
- package/combobox/combobox-option-group.d.ts +2 -2
- package/combobox/combobox-option-group.mjs +4 -2
- package/combobox/combobox-option.cjs +1 -1
- package/combobox/combobox-option.d.ts +3 -5
- package/combobox/combobox-option.mjs +1 -1
- package/combobox/combobox-positioner.d.ts +1 -1
- package/combobox/combobox-trigger.d.ts +1 -1
- package/combobox/combobox.cjs +1 -1
- package/combobox/combobox.mjs +1 -1
- package/combobox/combobox.stories.d.ts +5 -0
- package/combobox/combobox.test.d.ts +1 -0
- package/combobox/index.cjs +20 -6
- package/combobox/index.d.ts +29 -12
- package/combobox/index.mjs +27 -10
- package/combobox/use-combobox.cjs +1 -0
- package/combobox/use-combobox.d.ts +4 -4
- package/combobox/use-combobox.mjs +1 -0
- package/create-split-props.test.d.ts +1 -0
- package/date-picker/date-picker-cell-context.d.ts +1 -1
- package/date-picker/date-picker-clear-trigger.d.ts +1 -1
- package/date-picker/date-picker-column-header.d.ts +1 -1
- package/date-picker/date-picker-content.d.ts +1 -1
- package/date-picker/date-picker-context.d.ts +2 -5
- package/date-picker/date-picker-control.d.ts +1 -1
- package/date-picker/date-picker-day-cell-context.d.ts +1 -1
- package/date-picker/date-picker-day-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-day-cell.d.ts +1 -1
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-input.d.ts +1 -1
- package/date-picker/date-picker-month-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-month-cell.d.ts +1 -1
- package/date-picker/date-picker-month-select.cjs +7 -2
- package/date-picker/date-picker-month-select.d.ts +1 -1
- package/date-picker/date-picker-month-select.mjs +8 -3
- package/date-picker/date-picker-next-trigger.d.ts +1 -1
- package/date-picker/date-picker-positioner.cjs +16 -0
- package/date-picker/date-picker-positioner.d.ts +4 -0
- package/date-picker/date-picker-positioner.mjs +12 -0
- package/date-picker/date-picker-prev-trigger.d.ts +1 -1
- package/date-picker/date-picker-row-group.d.ts +1 -1
- package/date-picker/date-picker-row-header.d.ts +1 -1
- package/date-picker/date-picker-row.d.ts +1 -1
- package/date-picker/date-picker-trigger.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell.d.ts +1 -1
- package/date-picker/date-picker-year-select.cjs +7 -2
- package/date-picker/date-picker-year-select.d.ts +1 -1
- package/date-picker/date-picker-year-select.mjs +8 -3
- package/date-picker/date-picker.anatomy.d.ts +3 -3
- package/date-picker/date-picker.cjs +1 -1
- package/date-picker/date-picker.mjs +1 -1
- package/date-picker/date-picker.stories.d.ts +9 -0
- package/date-picker/index.cjs +28 -2
- package/date-picker/index.d.ts +55 -26
- package/date-picker/index.mjs +51 -22
- package/date-picker/use-date-picker.cjs +1 -0
- package/date-picker/use-date-picker.d.ts +4 -4
- package/date-picker/use-date-picker.mjs +1 -0
- package/dialog/dialog-backdrop.d.ts +1 -1
- package/dialog/dialog-close-trigger.d.ts +1 -1
- package/dialog/dialog-container.d.ts +1 -1
- package/dialog/dialog-content.d.ts +1 -1
- package/dialog/dialog-context.d.ts +2 -5
- package/dialog/dialog-description.d.ts +1 -1
- package/dialog/dialog-title.d.ts +1 -1
- package/dialog/dialog-trigger.d.ts +1 -1
- package/dialog/dialog.stories.d.ts +6 -0
- package/dialog/dialog.test.d.ts +1 -0
- package/dialog/index.cjs +15 -6
- package/dialog/index.d.ts +23 -10
- package/dialog/index.mjs +21 -8
- package/dialog/use-dialog.cjs +1 -0
- package/dialog/use-dialog.d.ts +4 -4
- package/dialog/use-dialog.mjs +1 -0
- package/editable/editable-area.d.ts +1 -1
- package/editable/editable-cancel-trigger.d.ts +1 -1
- package/editable/editable-context.d.ts +2 -5
- package/editable/editable-control.d.ts +1 -1
- package/editable/editable-edit-trigger.d.ts +1 -1
- package/editable/editable-input.d.ts +1 -1
- package/editable/editable-label.d.ts +1 -1
- package/editable/editable-preview.d.ts +1 -1
- package/editable/editable-submit-trigger.d.ts +1 -1
- package/editable/editable.cjs +1 -1
- package/editable/editable.mjs +1 -1
- package/editable/editable.stories.d.ts +6 -0
- package/editable/index.cjs +16 -6
- package/editable/index.d.ts +25 -11
- package/editable/index.mjs +23 -9
- package/editable/use-editable.cjs +1 -0
- package/editable/use-editable.d.ts +4 -4
- package/editable/use-editable.mjs +1 -0
- package/environment/environment-context.d.ts +2 -2
- package/environment/environment.cjs +7 -2
- package/environment/environment.mjs +8 -3
- package/environment/environment.stories.d.ts +5 -0
- package/environment/environment.test.d.ts +1 -0
- package/environment/index.cjs +4 -2
- package/environment/index.d.ts +8 -2
- package/environment/index.mjs +7 -1
- package/factory.d.ts +4 -4
- package/filter-object.test.d.ts +1 -0
- package/hover-card/hover-card-arrow-tip.d.ts +1 -1
- package/hover-card/hover-card-arrow.d.ts +1 -1
- package/hover-card/hover-card-content.d.ts +1 -1
- package/hover-card/hover-card-context.d.ts +2 -5
- package/hover-card/hover-card-positioner.d.ts +1 -1
- package/hover-card/hover-card-trigger.d.ts +1 -1
- package/hover-card/hover-card.stories.d.ts +8 -0
- package/hover-card/index.cjs +13 -6
- package/hover-card/index.d.ts +19 -8
- package/hover-card/index.mjs +17 -6
- package/hover-card/use-hover-card.cjs +1 -0
- package/hover-card/use-hover-card.d.ts +4 -4
- package/hover-card/use-hover-card.mjs +1 -0
- package/index.cjs +273 -241
- package/index.d.ts +1 -0
- package/index.mjs +106 -90
- package/menu/index.cjs +19 -5
- package/menu/index.d.ts +33 -15
- package/menu/index.mjs +31 -13
- package/menu/menu-arrow-tip.d.ts +1 -1
- package/menu/menu-arrow.d.ts +1 -1
- package/menu/menu-content.d.ts +1 -1
- package/menu/menu-context-trigger.d.ts +1 -1
- package/menu/menu-context.d.ts +1 -1
- package/menu/menu-item-group-label.d.ts +1 -1
- package/menu/menu-item-group.d.ts +1 -1
- package/menu/menu-item.d.ts +3 -5
- package/menu/menu-positioner.d.ts +1 -1
- package/menu/menu-separator.d.ts +1 -1
- package/menu/menu-trigger-item.d.ts +1 -1
- package/menu/menu-trigger.d.ts +1 -1
- package/menu/menu.cjs +1 -1
- package/menu/menu.mjs +1 -1
- package/menu/menu.stories.d.ts +9 -0
- package/menu/use-menu.cjs +1 -0
- package/menu/use-menu.d.ts +3 -1
- package/menu/use-menu.mjs +1 -0
- package/number-input/index.cjs +14 -6
- package/number-input/index.d.ts +21 -9
- package/number-input/index.mjs +19 -7
- package/number-input/number-input-context.d.ts +2 -5
- package/number-input/number-input-control.d.ts +1 -1
- package/number-input/number-input-decrement-trigger.d.ts +1 -1
- package/number-input/number-input-field.cjs +2 -2
- package/number-input/number-input-field.d.ts +3 -3
- package/number-input/number-input-field.mjs +2 -2
- package/number-input/number-input-increment-trigger.d.ts +1 -1
- package/number-input/number-input-label.d.ts +1 -1
- package/number-input/number-input-scrubber.d.ts +1 -1
- package/number-input/number-input.d.ts +1 -1
- package/number-input/number-input.stories.d.ts +5 -0
- package/number-input/use-number-input.cjs +1 -0
- package/number-input/use-number-input.d.ts +4 -4
- package/number-input/use-number-input.mjs +1 -0
- package/package.json +48 -48
- package/pagination/index.cjs +10 -2
- package/pagination/index.d.ts +21 -9
- package/pagination/index.mjs +19 -7
- package/pagination/pagination-context.d.ts +2 -5
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/pagination-list-item.d.ts +1 -1
- package/pagination/pagination-list.d.ts +1 -1
- package/pagination/pagination.anatomy.d.ts +1 -1
- package/pagination/pagination.stories.d.ts +7 -0
- package/pagination/use-pagination.cjs +1 -0
- package/pagination/use-pagination.d.ts +4 -4
- package/pagination/use-pagination.mjs +1 -0
- package/pin-input/index.cjs +12 -7
- package/pin-input/index.d.ts +15 -6
- package/pin-input/index.mjs +13 -4
- package/pin-input/pin-input-context.d.ts +2 -5
- package/pin-input/pin-input-control.cjs +8 -3
- package/pin-input/pin-input-control.d.ts +1 -1
- package/pin-input/pin-input-control.mjs +9 -4
- package/pin-input/pin-input-field.cjs +2 -2
- package/pin-input/pin-input-field.d.ts +3 -3
- package/pin-input/pin-input-field.mjs +2 -2
- package/pin-input/pin-input-label.d.ts +1 -1
- package/pin-input/pin-input.d.ts +1 -1
- package/pin-input/pin-input.stories.d.ts +5 -0
- package/pin-input/use-pin-input.cjs +1 -0
- package/pin-input/use-pin-input.d.ts +4 -4
- package/pin-input/use-pin-input.mjs +1 -0
- package/popover/index.cjs +17 -6
- package/popover/index.d.ts +27 -12
- package/popover/index.mjs +25 -10
- package/popover/popover-anchor.d.ts +1 -1
- package/popover/popover-arrow-tip.d.ts +1 -1
- package/popover/popover-arrow.d.ts +1 -1
- package/popover/popover-close-trigger.d.ts +1 -1
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-context.d.ts +2 -5
- package/popover/popover-description.d.ts +1 -1
- package/popover/popover-positioner.d.ts +1 -1
- package/popover/popover-title.d.ts +1 -1
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.stories.d.ts +6 -0
- package/popover/use-popover.cjs +1 -0
- package/popover/use-popover.d.ts +4 -4
- package/popover/use-popover.mjs +1 -0
- package/pressable/index.cjs +4 -2
- package/pressable/index.d.ts +8 -2
- package/pressable/index.mjs +7 -1
- package/pressable/pressable.d.ts +1 -1
- package/pressable/pressable.stories.d.ts +5 -0
- package/pressable/pressable.test.d.ts +1 -0
- package/pressable/use-pressable.cjs +1 -0
- package/pressable/use-pressable.d.ts +4 -4
- package/pressable/use-pressable.mjs +1 -0
- package/radio-group/index.cjs +10 -6
- package/radio-group/index.d.ts +18 -9
- package/radio-group/index.mjs +15 -6
- package/radio-group/radio-context.d.ts +1 -1
- package/radio-group/radio-control.cjs +8 -3
- package/radio-group/radio-control.d.ts +1 -1
- package/radio-group/radio-control.mjs +9 -4
- package/radio-group/radio-group-context.d.ts +2 -5
- package/radio-group/radio-group-label.d.ts +1 -1
- package/radio-group/radio-group.d.ts +1 -1
- package/radio-group/radio-group.stories.d.ts +6 -0
- package/radio-group/radio-group.test.d.ts +1 -0
- package/radio-group/radio-label.d.ts +1 -1
- package/radio-group/radio.d.ts +1 -1
- package/radio-group/use-radio-group.cjs +1 -0
- package/radio-group/use-radio-group.d.ts +4 -4
- package/radio-group/use-radio-group.mjs +1 -0
- package/range-slider/index.cjs +15 -5
- package/range-slider/index.d.ts +25 -11
- package/range-slider/index.mjs +23 -9
- package/range-slider/range-slider-context.d.ts +2 -5
- package/range-slider/range-slider-control.d.ts +1 -1
- package/range-slider/range-slider-label.d.ts +1 -1
- package/range-slider/range-slider-marker-group.d.ts +1 -1
- package/range-slider/range-slider-marker.d.ts +1 -1
- package/range-slider/range-slider-range.d.ts +1 -1
- package/range-slider/range-slider-thumb.cjs +7 -2
- package/range-slider/range-slider-thumb.d.ts +2 -2
- package/range-slider/range-slider-thumb.mjs +8 -3
- package/range-slider/range-slider-track.d.ts +1 -1
- package/range-slider/range-slider.cjs +1 -1
- package/range-slider/range-slider.mjs +1 -1
- package/range-slider/range-slider.stories.d.ts +5 -0
- package/range-slider/range-slider.test.d.ts +1 -0
- package/range-slider/use-range-slider.cjs +1 -0
- package/range-slider/use-range-slider.d.ts +4 -4
- package/range-slider/use-range-slider.mjs +1 -0
- package/rating-group/index.cjs +9 -4
- package/rating-group/index.d.ts +16 -7
- package/rating-group/index.mjs +13 -4
- package/rating-group/rating-context.d.ts +2 -3
- package/rating-group/rating-group-context.d.ts +2 -5
- package/rating-group/rating-group-control.cjs +7 -2
- package/rating-group/rating-group-control.mjs +8 -3
- package/rating-group/rating-group-label.d.ts +1 -1
- package/rating-group/rating-group.cjs +3 -7
- package/rating-group/rating-group.d.ts +1 -1
- package/rating-group/rating-group.mjs +4 -8
- package/rating-group/rating-group.stories.d.ts +6 -0
- package/rating-group/use-rating-group.cjs +1 -0
- package/rating-group/use-rating-group.d.ts +4 -4
- package/rating-group/use-rating-group.mjs +1 -0
- package/run-if-fn.test.d.ts +1 -0
- package/segment-group/index.cjs +11 -6
- package/segment-group/index.d.ts +20 -10
- package/segment-group/index.mjs +17 -7
- package/segment-group/segment-context.d.ts +1 -1
- package/segment-group/segment-control.cjs +8 -3
- package/segment-group/segment-control.d.ts +1 -1
- package/segment-group/segment-control.mjs +9 -4
- package/segment-group/segment-group-context.d.ts +2 -5
- package/segment-group/{segment-indicator.cjs → segment-group-indicator.cjs} +2 -2
- package/segment-group/segment-group-indicator.d.ts +4 -0
- package/segment-group/{segment-indicator.mjs → segment-group-indicator.mjs} +2 -2
- package/segment-group/segment-group-label.d.ts +1 -1
- package/segment-group/segment-group.anatomy.d.ts +3 -3
- package/segment-group/segment-group.d.ts +1 -1
- package/segment-group/segment-group.stories.d.ts +7 -0
- package/segment-group/segment-group.test.d.ts +1 -0
- package/segment-group/segment-label.d.ts +1 -1
- package/segment-group/segment.d.ts +1 -1
- package/segment-group/use-segment-group.cjs +1 -0
- package/segment-group/use-segment-group.d.ts +4 -4
- package/segment-group/use-segment-group.mjs +1 -0
- package/select/index.cjs +14 -5
- package/select/index.d.ts +23 -10
- package/select/index.mjs +21 -8
- package/select/select-content.cjs +1 -1
- package/select/select-content.d.ts +2 -2
- package/select/select-content.mjs +1 -1
- package/select/select-context.d.ts +2 -5
- package/select/select-label.d.ts +1 -1
- package/select/select-option-group-label.cjs +1 -1
- package/select/select-option-group-label.d.ts +2 -2
- package/select/select-option-group-label.mjs +1 -1
- package/select/select-option-group.d.ts +1 -1
- package/select/select-option.cjs +1 -1
- package/select/select-option.d.ts +3 -5
- package/select/select-option.mjs +1 -1
- package/select/select-positioner.d.ts +1 -1
- package/select/select-trigger.d.ts +1 -1
- package/select/select.cjs +1 -1
- package/select/select.mjs +1 -1
- package/select/select.stories.d.ts +5 -0
- package/select/use-select.cjs +1 -0
- package/select/use-select.d.ts +4 -4
- package/select/use-select.mjs +1 -0
- package/setup-test.d.ts +0 -0
- package/slider/index.cjs +16 -6
- package/slider/index.d.ts +25 -11
- package/slider/index.mjs +23 -9
- package/slider/slider-context.d.ts +2 -5
- package/slider/slider-control.d.ts +1 -1
- package/slider/slider-label.d.ts +1 -1
- package/slider/slider-marker-group.d.ts +1 -1
- package/slider/slider-marker.d.ts +1 -1
- package/slider/slider-range.d.ts +1 -1
- package/slider/slider-thumb.cjs +7 -6
- package/slider/slider-thumb.d.ts +1 -1
- package/slider/slider-thumb.mjs +8 -7
- package/slider/slider-track.d.ts +1 -1
- package/slider/slider.cjs +1 -1
- package/slider/slider.mjs +1 -1
- package/slider/slider.stories.d.ts +5 -0
- package/slider/use-slider.cjs +1 -0
- package/slider/use-slider.d.ts +4 -4
- package/slider/use-slider.mjs +1 -0
- package/splitter/index.cjs +10 -6
- package/splitter/index.d.ts +13 -5
- package/splitter/index.mjs +11 -3
- package/splitter/splitter-context.d.ts +2 -5
- package/splitter/splitter-panel.d.ts +1 -1
- package/splitter/splitter-resize-trigger.d.ts +1 -1
- package/splitter/splitter.stories.d.ts +8 -0
- package/splitter/splitter.test.d.ts +1 -0
- package/splitter/use-splitter.cjs +22 -2
- package/splitter/use-splitter.d.ts +6 -6
- package/splitter/use-splitter.mjs +4 -3
- package/ssr-spread.test.d.ts +1 -0
- package/switch/index.cjs +9 -6
- package/switch/index.d.ts +15 -7
- package/switch/index.mjs +13 -5
- package/switch/switch-context.d.ts +2 -5
- package/switch/switch-control.cjs +8 -3
- package/switch/switch-control.d.ts +1 -1
- package/switch/switch-control.mjs +9 -4
- package/switch/switch-label.d.ts +1 -1
- package/switch/switch-thumb.d.ts +1 -1
- package/switch/switch.stories.d.ts +9 -0
- package/switch/use-switch.cjs +1 -0
- package/switch/use-switch.d.ts +4 -4
- package/switch/use-switch.mjs +1 -0
- package/tabs/index.cjs +12 -6
- package/tabs/index.d.ts +17 -7
- package/tabs/index.mjs +15 -5
- package/tabs/tab-content.d.ts +1 -1
- package/tabs/tab-indicator.d.ts +1 -1
- package/tabs/tab-list.d.ts +1 -1
- package/tabs/tab-trigger.d.ts +1 -1
- package/tabs/tabs-context.d.ts +2 -5
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.stories.d.ts +11 -0
- package/tabs/use-tabs.cjs +1 -0
- package/tabs/use-tabs.d.ts +4 -4
- package/tabs/use-tabs.mjs +1 -0
- package/tags-input/index.cjs +16 -7
- package/tags-input/index.d.ts +25 -10
- package/tags-input/index.mjs +21 -8
- package/tags-input/tag-delete-trigger.d.ts +1 -1
- package/tags-input/tag-input.d.ts +1 -1
- package/tags-input/tag.d.ts +1 -1
- package/tags-input/tags-input-clear-trigger.d.ts +1 -1
- package/tags-input/tags-input-context.d.ts +2 -5
- package/tags-input/tags-input-control.cjs +7 -2
- package/tags-input/tags-input-control.d.ts +1 -1
- package/tags-input/tags-input-control.mjs +8 -3
- package/tags-input/tags-input-field.cjs +2 -2
- package/tags-input/tags-input-field.d.ts +3 -3
- package/tags-input/tags-input-field.mjs +2 -2
- package/tags-input/tags-input-label.d.ts +1 -1
- package/tags-input/tags-input.cjs +1 -1
- package/tags-input/tags-input.mjs +1 -1
- package/tags-input/tags-input.stories.d.ts +5 -0
- package/tags-input/use-tags-input.cjs +1 -0
- package/tags-input/use-tags-input.d.ts +4 -4
- package/tags-input/use-tags-input.mjs +1 -0
- package/toast/index.cjs +13 -4
- package/toast/index.d.ts +21 -9
- package/toast/index.mjs +20 -7
- package/toast/toast-close-trigger.d.ts +1 -1
- package/toast/toast-description.d.ts +1 -1
- package/toast/toast-item-context.d.ts +2 -5
- package/toast/toast-placements.cjs +2 -1
- package/toast/toast-placements.mjs +2 -1
- package/toast/toast-provider.cjs +1 -0
- package/toast/toast-provider.d.ts +1 -2
- package/toast/toast-provider.mjs +1 -0
- package/toast/toast-title.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.stories.d.ts +12 -0
- package/toast/use-toast-item.d.ts +4 -4
- package/tooltip/index.cjs +13 -6
- package/tooltip/index.d.ts +19 -8
- package/tooltip/index.mjs +18 -7
- package/tooltip/tooltip-anatomy.d.ts +1 -1
- package/tooltip/tooltip-arrow-tip.d.ts +1 -1
- package/tooltip/tooltip-arrow.d.ts +1 -1
- package/tooltip/tooltip-content.d.ts +1 -1
- package/tooltip/tooltip-context.d.ts +2 -5
- package/tooltip/tooltip-positioner.d.ts +1 -1
- package/tooltip/tooltip-trigger.d.ts +1 -1
- package/tooltip/tooltip.stories.d.ts +11 -0
- package/tooltip/tooltip.test.d.ts +1 -0
- package/tooltip/use-tooltip.cjs +1 -0
- package/tooltip/use-tooltip.d.ts +4 -4
- package/tooltip/use-tooltip.mjs +1 -0
- package/types.d.ts +2 -5
- package/checkbox/checkbox-input.cjs +0 -16
- package/checkbox/checkbox-input.d.ts +0 -4
- package/checkbox/checkbox-input.mjs +0 -12
- package/radio-group/radio-input.cjs +0 -18
- package/radio-group/radio-input.d.ts +0 -4
- package/radio-group/radio-input.mjs +0 -14
- package/segment-group/segment-indicator.d.ts +0 -4
- package/segment-group/segment-input.cjs +0 -19
- package/segment-group/segment-input.d.ts +0 -4
- package/segment-group/segment-input.mjs +0 -15
- package/switch/switch-input.cjs +0 -16
- package/switch/switch-input.d.ts +0 -4
- package/switch/switch-input.mjs +0 -12
package/menu/menu.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { useMenuContext, useMenuMachineContext, MenuTriggerItemProvider, MenuMac
|
|
|
6
6
|
import { useMenu } from './use-menu.mjs';
|
|
7
7
|
|
|
8
8
|
const Menu = props => {
|
|
9
|
-
const [menuParams, restProps] = createSplitProps()(props, ['anchorPoint', 'aria-label', 'closeOnSelect', 'dir', 'getRootNode', 'highlightedId', 'id', 'ids', 'loop', 'onClose', 'onOpen', 'onSelect', 'onValueChange', 'positioning', 'value']);
|
|
9
|
+
const [menuParams, restProps] = createSplitProps()(props, ['anchorPoint', 'aria-label', 'closeOnSelect', 'dir', 'getRootNode', 'highlightedId', 'id', 'ids', 'loop', 'onClose', 'onFocusOutside', 'onInteractOutside', 'onOpen', 'onPointerDownOutside', 'onSelect', 'onValueChange', 'positioning', 'value']);
|
|
10
10
|
const parentMenu = useMenuContext();
|
|
11
11
|
const parentMachine = useMenuMachineContext();
|
|
12
12
|
const menu = useMenu(menuParams);
|
|
@@ -0,0 +1,9 @@
|
|
|
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 WithIsOpen: () => JSX.Element;
|
|
7
|
+
export declare const Group: () => JSX.Element;
|
|
8
|
+
export declare const Options: () => JSX.Element;
|
|
9
|
+
export declare const SubMenu: () => JSX.Element;
|
package/menu/use-menu.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const menu = require('@zag-js/menu');
|
|
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/menu/use-menu.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as menu from '@zag-js/menu';
|
|
2
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
2
4
|
import { type Optional } from '../types';
|
|
3
5
|
export type UseMenuProps = Optional<menu.Context, 'id'>;
|
|
4
6
|
export type UseMenuReturn = () => {
|
|
5
7
|
machine: ReturnType<typeof menu.machine>;
|
|
6
|
-
api:
|
|
8
|
+
api: Accessor<menu.Api<PropTypes>>;
|
|
7
9
|
};
|
|
8
10
|
export declare const useMenu: (props: UseMenuProps) => UseMenuReturn;
|
package/menu/use-menu.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as menu from '@zag-js/menu';
|
|
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 useMenu = (props) => {
|
package/number-input/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const numberInput = require('./number-input.cjs');
|
|
5
|
+
const numberInput$1 = require('./number-input.cjs');
|
|
6
6
|
const numberInputContext = require('./number-input-context.cjs');
|
|
7
7
|
const numberInputControl = require('./number-input-control.cjs');
|
|
8
8
|
const numberInputDecrementTrigger = require('./number-input-decrement-trigger.cjs');
|
|
@@ -10,19 +10,27 @@ const numberInputField = require('./number-input-field.cjs');
|
|
|
10
10
|
const numberInputIncrementTrigger = require('./number-input-increment-trigger.cjs');
|
|
11
11
|
const numberInputLabel = require('./number-input-label.cjs');
|
|
12
12
|
const numberInputScrubber = require('./number-input-scrubber.cjs');
|
|
13
|
-
const numberInput
|
|
14
|
-
|
|
13
|
+
const numberInput = require('@zag-js/number-input');
|
|
15
14
|
|
|
15
|
+
const NumberInput = Object.assign(numberInput$1.NumberInput, {
|
|
16
|
+
Root: numberInput$1.NumberInput,
|
|
17
|
+
Control: numberInputControl.NumberInputControl,
|
|
18
|
+
DecrementTrigger: numberInputDecrementTrigger.NumberInputDecrementTrigger,
|
|
19
|
+
Input: numberInputField.NumberInputInput,
|
|
20
|
+
IncrementTrigger: numberInputIncrementTrigger.NumberInputIncrementTrigger,
|
|
21
|
+
Label: numberInputLabel.NumberInputLabel,
|
|
22
|
+
Scrubber: numberInputScrubber.NumberInputScrubber
|
|
23
|
+
});
|
|
16
24
|
|
|
17
|
-
exports.NumberInput = numberInput.NumberInput;
|
|
18
25
|
exports.useNumberInputContext = numberInputContext.useNumberInputContext;
|
|
19
26
|
exports.NumberInputControl = numberInputControl.NumberInputControl;
|
|
20
27
|
exports.NumberInputDecrementTrigger = numberInputDecrementTrigger.NumberInputDecrementTrigger;
|
|
21
|
-
exports.
|
|
28
|
+
exports.NumberInputInput = numberInputField.NumberInputInput;
|
|
22
29
|
exports.NumberInputIncrementTrigger = numberInputIncrementTrigger.NumberInputIncrementTrigger;
|
|
23
30
|
exports.NumberInputLabel = numberInputLabel.NumberInputLabel;
|
|
24
31
|
exports.NumberInputScrubber = numberInputScrubber.NumberInputScrubber;
|
|
25
32
|
Object.defineProperty(exports, 'numberInputAnatomy', {
|
|
26
33
|
enumerable: true,
|
|
27
|
-
get: () => numberInput
|
|
34
|
+
get: () => numberInput.anatomy
|
|
28
35
|
});
|
|
36
|
+
exports.NumberInput = NumberInput;
|
package/number-input/index.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type NumberInputProps } from './number-input';
|
|
3
|
+
import { useNumberInputContext } from './number-input-context';
|
|
4
|
+
import { NumberInputControl, type NumberInputControlProps } from './number-input-control';
|
|
5
|
+
import { NumberInputDecrementTrigger, type NumberInputDecrementTriggerProps } from './number-input-decrement-trigger';
|
|
6
|
+
import { NumberInputInput, type NumberInputInputProps } from './number-input-field';
|
|
7
|
+
import { NumberInputIncrementTrigger, type NumberInputIncrementTriggerProps } from './number-input-increment-trigger';
|
|
8
|
+
import { NumberInputLabel, type NumberInputLabelProps } from './number-input-label';
|
|
9
|
+
import { NumberInputScrubber, type NumberInputScrubberProps } from './number-input-scrubber';
|
|
10
|
+
import { numberInputAnatomy } from './number-input.anatomy';
|
|
11
|
+
declare const NumberInput: ((props: NumberInputProps) => JSX.Element) & {
|
|
12
|
+
Root: (props: NumberInputProps) => JSX.Element;
|
|
13
|
+
Control: (props: NumberInputControlProps) => JSX.Element;
|
|
14
|
+
DecrementTrigger: (props: NumberInputDecrementTriggerProps) => JSX.Element;
|
|
15
|
+
Input: (props: NumberInputInputProps) => JSX.Element;
|
|
16
|
+
IncrementTrigger: (props: NumberInputIncrementTriggerProps) => JSX.Element;
|
|
17
|
+
Label: (props: NumberInputLabelProps) => JSX.Element;
|
|
18
|
+
Scrubber: (props: NumberInputScrubberProps) => JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber, numberInputAnatomy, useNumberInputContext, };
|
|
21
|
+
export type { NumberInputControlProps, NumberInputDecrementTriggerProps, NumberInputIncrementTriggerProps, NumberInputInputProps, NumberInputLabelProps, NumberInputProps, NumberInputScrubberProps, };
|
package/number-input/index.mjs
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { NumberInput as NumberInput$1 } from './number-input.mjs';
|
|
2
2
|
export { useNumberInputContext } from './number-input-context.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { NumberInputControl } from './number-input-control.mjs';
|
|
4
|
+
import { NumberInputDecrementTrigger } from './number-input-decrement-trigger.mjs';
|
|
5
|
+
import { NumberInputInput } from './number-input-field.mjs';
|
|
6
|
+
import { NumberInputIncrementTrigger } from './number-input-increment-trigger.mjs';
|
|
7
|
+
import { NumberInputLabel } from './number-input-label.mjs';
|
|
8
|
+
import { NumberInputScrubber } from './number-input-scrubber.mjs';
|
|
9
9
|
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
10
|
+
|
|
11
|
+
const NumberInput = Object.assign(NumberInput$1, {
|
|
12
|
+
Root: NumberInput$1,
|
|
13
|
+
Control: NumberInputControl,
|
|
14
|
+
DecrementTrigger: NumberInputDecrementTrigger,
|
|
15
|
+
Input: NumberInputInput,
|
|
16
|
+
IncrementTrigger: NumberInputIncrementTrigger,
|
|
17
|
+
Label: NumberInputLabel,
|
|
18
|
+
Scrubber: NumberInputScrubber
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { NumberInput, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputScrubber };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/number-input';
|
|
3
|
-
import type { Accessor } from 'solid-js';
|
|
4
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
5
2
|
import { type UseNumberInputReturn } from './use-number-input';
|
|
6
3
|
export type NumberInputContext = UseNumberInputReturn;
|
|
7
|
-
export declare const NumberInputProvider: ContextProviderComponent<
|
|
4
|
+
export declare const NumberInputProvider: ContextProviderComponent<UseNumberInputReturn>, useNumberInputContext: () => UseNumberInputReturn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type NumberInputControlProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const NumberInputControl: (props: NumberInputControlProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type NumberInputDecrementTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const NumberInputDecrementTrigger: (props: NumberInputDecrementTriggerProps) => JSX.Element;
|
|
@@ -7,10 +7,10 @@ const solid = require('@zag-js/solid');
|
|
|
7
7
|
const factory = require('../factory.cjs');
|
|
8
8
|
const numberInputContext = require('./number-input-context.cjs');
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const NumberInputInput = props => {
|
|
11
11
|
const api = numberInputContext.useNumberInputContext();
|
|
12
12
|
const inputProps = solid.mergeProps(() => api().inputProps, props);
|
|
13
13
|
return web.createComponent(factory.ark.input, inputProps);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
exports.
|
|
16
|
+
exports.NumberInputInput = NumberInputInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
|
-
export type
|
|
4
|
-
export declare const
|
|
3
|
+
export type NumberInputInputProps = HTMLArkProps<'input'>;
|
|
4
|
+
export declare const NumberInputInput: (props: NumberInputInputProps) => JSX.Element;
|
|
@@ -3,10 +3,10 @@ import { mergeProps } from '@zag-js/solid';
|
|
|
3
3
|
import { ark } from '../factory.mjs';
|
|
4
4
|
import { useNumberInputContext } from './number-input-context.mjs';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const NumberInputInput = props => {
|
|
7
7
|
const api = useNumberInputContext();
|
|
8
8
|
const inputProps = mergeProps(() => api().inputProps, props);
|
|
9
9
|
return createComponent(ark.input, inputProps);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export { NumberInputInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type NumberInputIncrementTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const NumberInputIncrementTrigger: (props: NumberInputIncrementTriggerProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type NumberInputScrubberProps = HTMLArkProps<'div'>;
|
|
4
4
|
export declare const NumberInputScrubber: (props: NumberInputScrubberProps) => JSX.Element;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const numberInput = require('@zag-js/number-input');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
7
|
const solidJs = require('solid-js');
|
|
8
|
+
require('../environment/index.cjs');
|
|
8
9
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
9
10
|
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
3
1
|
import * as numberInput from '@zag-js/number-input';
|
|
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 UseNumberInputProps = Optional<numberInput.Context, 'id'>;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type UseNumberInputReturn = Accessor<numberInput.Api<PropTypes>>;
|
|
7
|
+
export declare const useNumberInput: (props: UseNumberInputProps) => UseNumberInputReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as numberInput from '@zag-js/number-input';
|
|
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 useNumberInput = (props) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -59,68 +59,68 @@
|
|
|
59
59
|
"release-it": "release-it --config ../../release-it.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@zag-js/accordion": "0.
|
|
63
|
-
"@zag-js/anatomy": "0.
|
|
64
|
-
"@zag-js/avatar": "0.
|
|
65
|
-
"@zag-js/carousel": "0.
|
|
66
|
-
"@zag-js/checkbox": "0.
|
|
67
|
-
"@zag-js/color-picker": "0.
|
|
68
|
-
"@zag-js/combobox": "0.
|
|
69
|
-
"@zag-js/date-picker": "0.
|
|
70
|
-
"@zag-js/dialog": "0.
|
|
71
|
-
"@zag-js/editable": "0.
|
|
72
|
-
"@zag-js/hover-card": "0.
|
|
73
|
-
"@zag-js/menu": "0.
|
|
74
|
-
"@zag-js/number-input": "0.
|
|
75
|
-
"@zag-js/pagination": "0.
|
|
76
|
-
"@zag-js/pin-input": "0.
|
|
77
|
-
"@zag-js/popover": "0.
|
|
78
|
-
"@zag-js/pressable": "0.
|
|
79
|
-
"@zag-js/radio-group": "0.
|
|
80
|
-
"@zag-js/range-slider": "0.
|
|
81
|
-
"@zag-js/rating-group": "0.
|
|
82
|
-
"@zag-js/select": "0.
|
|
83
|
-
"@zag-js/slider": "0.
|
|
84
|
-
"@zag-js/solid": "0.
|
|
85
|
-
"@zag-js/splitter": "0.
|
|
86
|
-
"@zag-js/switch": "0.
|
|
87
|
-
"@zag-js/tabs": "0.
|
|
88
|
-
"@zag-js/tags-input": "0.
|
|
89
|
-
"@zag-js/toast": "0.
|
|
90
|
-
"@zag-js/tooltip": "0.
|
|
91
|
-
"@zag-js/types": "0.
|
|
62
|
+
"@zag-js/accordion": "0.17.0",
|
|
63
|
+
"@zag-js/anatomy": "0.17.0",
|
|
64
|
+
"@zag-js/avatar": "0.17.0",
|
|
65
|
+
"@zag-js/carousel": "0.17.0",
|
|
66
|
+
"@zag-js/checkbox": "0.17.0",
|
|
67
|
+
"@zag-js/color-picker": "0.17.0",
|
|
68
|
+
"@zag-js/combobox": "0.17.0",
|
|
69
|
+
"@zag-js/date-picker": "0.17.0",
|
|
70
|
+
"@zag-js/dialog": "0.17.0",
|
|
71
|
+
"@zag-js/editable": "0.17.0",
|
|
72
|
+
"@zag-js/hover-card": "0.17.0",
|
|
73
|
+
"@zag-js/menu": "0.17.0",
|
|
74
|
+
"@zag-js/number-input": "0.17.0",
|
|
75
|
+
"@zag-js/pagination": "0.17.0",
|
|
76
|
+
"@zag-js/pin-input": "0.17.0",
|
|
77
|
+
"@zag-js/popover": "0.17.0",
|
|
78
|
+
"@zag-js/pressable": "0.17.0",
|
|
79
|
+
"@zag-js/radio-group": "0.17.0",
|
|
80
|
+
"@zag-js/range-slider": "0.17.0",
|
|
81
|
+
"@zag-js/rating-group": "0.17.0",
|
|
82
|
+
"@zag-js/select": "0.17.0",
|
|
83
|
+
"@zag-js/slider": "0.17.0",
|
|
84
|
+
"@zag-js/solid": "0.17.0",
|
|
85
|
+
"@zag-js/splitter": "0.17.0",
|
|
86
|
+
"@zag-js/switch": "0.17.0",
|
|
87
|
+
"@zag-js/tabs": "0.17.0",
|
|
88
|
+
"@zag-js/tags-input": "0.17.0",
|
|
89
|
+
"@zag-js/toast": "0.17.0",
|
|
90
|
+
"@zag-js/tooltip": "0.17.0",
|
|
91
|
+
"@zag-js/types": "0.17.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@release-it/keep-a-changelog": "4.0.0",
|
|
95
95
|
"@solidjs/testing-library": "0.8.4",
|
|
96
|
-
"@storybook/addon-essentials": "7.
|
|
97
|
-
"@storybook/addon-interactions": "7.
|
|
98
|
-
"@storybook/addon-links": "7.
|
|
99
|
-
"@storybook/blocks": "7.
|
|
96
|
+
"@storybook/addon-essentials": "7.4.0",
|
|
97
|
+
"@storybook/addon-interactions": "7.4.0",
|
|
98
|
+
"@storybook/addon-links": "7.4.0",
|
|
99
|
+
"@storybook/blocks": "7.4.0",
|
|
100
100
|
"@storybook/testing-library": "0.2.0",
|
|
101
101
|
"@testing-library/dom": "9.3.1",
|
|
102
|
-
"@testing-library/jest-dom": "
|
|
102
|
+
"@testing-library/jest-dom": "6.1.2",
|
|
103
103
|
"@testing-library/user-event": "14.4.3",
|
|
104
|
-
"@types/jsdom": "21.1.
|
|
104
|
+
"@types/jsdom": "21.1.2",
|
|
105
105
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
107
|
-
"@typescript-eslint/parser": "5.
|
|
108
|
-
"@vitest/coverage-v8": "0.34.
|
|
109
|
-
"eslint": "8.
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "6.5.0",
|
|
107
|
+
"@typescript-eslint/parser": "6.5.0",
|
|
108
|
+
"@vitest/coverage-v8": "0.34.3",
|
|
109
|
+
"eslint": "8.48.0",
|
|
110
110
|
"globby": "13.2.2",
|
|
111
111
|
"jsdom": "22.1.0",
|
|
112
112
|
"react": "18.2.0",
|
|
113
113
|
"react-dom": "18.2.0",
|
|
114
|
-
"release-it": "16.1.
|
|
115
|
-
"solid-js": "1.7.
|
|
116
|
-
"storybook": "7.
|
|
114
|
+
"release-it": "16.1.5",
|
|
115
|
+
"solid-js": "1.7.11",
|
|
116
|
+
"storybook": "7.4.0",
|
|
117
117
|
"storybook-solidjs": "1.0.0-beta.2",
|
|
118
118
|
"storybook-solidjs-vite": "1.0.0-beta.2",
|
|
119
|
-
"typescript": "5.
|
|
120
|
-
"vite": "4.4.
|
|
121
|
-
"vite-plugin-dts": "
|
|
119
|
+
"typescript": "5.2.2",
|
|
120
|
+
"vite": "4.4.9",
|
|
121
|
+
"vite-plugin-dts": "3.5.3",
|
|
122
122
|
"vite-plugin-solid": "2.7.0",
|
|
123
|
-
"vitest": "0.34.
|
|
123
|
+
"vitest": "0.34.2"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"solid-js": ">=1.6.0"
|
package/pagination/index.cjs
CHANGED
|
@@ -12,9 +12,16 @@ const paginationPageTrigger = require('./pagination-page-trigger.cjs');
|
|
|
12
12
|
const paginationPrevPageTrigger = require('./pagination-prev-page-trigger.cjs');
|
|
13
13
|
const pagination_anatomy = require('./pagination.anatomy.cjs');
|
|
14
14
|
|
|
15
|
+
const Pagination = Object.assign(pagination.Pagination, {
|
|
16
|
+
Root: pagination.Pagination,
|
|
17
|
+
Ellipsis: paginationEllipsis.PaginationEllipsis,
|
|
18
|
+
List: paginationList.PaginationList,
|
|
19
|
+
ListItem: paginationListItem.PaginationListItem,
|
|
20
|
+
NextPageTrigger: paginationNextPageTrigger.PaginationNextPageTrigger,
|
|
21
|
+
PageTrigger: paginationPageTrigger.PaginationPageTrigger,
|
|
22
|
+
PrevPageTrigger: paginationPrevPageTrigger.PaginationPrevPageTrigger
|
|
23
|
+
});
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
exports.Pagination = pagination.Pagination;
|
|
18
25
|
exports.usePaginationContext = paginationContext.usePaginationContext;
|
|
19
26
|
exports.PaginationEllipsis = paginationEllipsis.PaginationEllipsis;
|
|
20
27
|
exports.PaginationList = paginationList.PaginationList;
|
|
@@ -23,3 +30,4 @@ exports.PaginationNextPageTrigger = paginationNextPageTrigger.PaginationNextPage
|
|
|
23
30
|
exports.PaginationPageTrigger = paginationPageTrigger.PaginationPageTrigger;
|
|
24
31
|
exports.PaginationPrevPageTrigger = paginationPrevPageTrigger.PaginationPrevPageTrigger;
|
|
25
32
|
exports.paginationAnatomy = pagination_anatomy.paginationAnatomy;
|
|
33
|
+
exports.Pagination = Pagination;
|
package/pagination/index.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type PaginationProps } from './pagination';
|
|
3
|
+
import { usePaginationContext } from './pagination-context';
|
|
4
|
+
import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
|
|
5
|
+
import { PaginationList, type PaginationListProps } from './pagination-list';
|
|
6
|
+
import { PaginationListItem, type PaginationListItemProps } from './pagination-list-item';
|
|
7
|
+
import { PaginationNextPageTrigger, type PaginationNextPageTriggerProps } from './pagination-next-page-trigger';
|
|
8
|
+
import { PaginationPageTrigger, type PaginationPageTriggerProps } from './pagination-page-trigger';
|
|
9
|
+
import { PaginationPrevPageTrigger, type PaginationPrevPageTriggerProps } from './pagination-prev-page-trigger';
|
|
10
|
+
import { paginationAnatomy } from './pagination.anatomy';
|
|
11
|
+
declare const Pagination: ((props: PaginationProps) => JSX.Element) & {
|
|
12
|
+
Root: (props: PaginationProps) => JSX.Element;
|
|
13
|
+
Ellipsis: (props: PaginationEllipsisProps) => JSX.Element;
|
|
14
|
+
List: (props: PaginationListProps) => JSX.Element;
|
|
15
|
+
ListItem: (props: PaginationListItemProps) => JSX.Element;
|
|
16
|
+
NextPageTrigger: (props: PaginationNextPageTriggerProps) => JSX.Element;
|
|
17
|
+
PageTrigger: (props: PaginationPageTriggerProps) => JSX.Element;
|
|
18
|
+
PrevPageTrigger: (props: PaginationPrevPageTriggerProps) => JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export { Pagination, PaginationEllipsis, PaginationList, PaginationListItem, PaginationNextPageTrigger, PaginationPageTrigger, PaginationPrevPageTrigger, paginationAnatomy, usePaginationContext, };
|
|
21
|
+
export type { PaginationEllipsisProps, PaginationListItemProps, PaginationListProps, PaginationNextPageTriggerProps, PaginationPageTriggerProps, PaginationPrevPageTriggerProps, PaginationProps, };
|
package/pagination/index.mjs
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { Pagination as Pagination$1 } from './pagination.mjs';
|
|
2
2
|
export { usePaginationContext } from './pagination-context.mjs';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { PaginationEllipsis } from './pagination-ellipsis.mjs';
|
|
4
|
+
import { PaginationList } from './pagination-list.mjs';
|
|
5
|
+
import { PaginationListItem } from './pagination-list-item.mjs';
|
|
6
|
+
import { PaginationNextPageTrigger } from './pagination-next-page-trigger.mjs';
|
|
7
|
+
import { PaginationPageTrigger } from './pagination-page-trigger.mjs';
|
|
8
|
+
import { PaginationPrevPageTrigger } from './pagination-prev-page-trigger.mjs';
|
|
9
9
|
export { paginationAnatomy } from './pagination.anatomy.mjs';
|
|
10
|
+
|
|
11
|
+
const Pagination = Object.assign(Pagination$1, {
|
|
12
|
+
Root: Pagination$1,
|
|
13
|
+
Ellipsis: PaginationEllipsis,
|
|
14
|
+
List: PaginationList,
|
|
15
|
+
ListItem: PaginationListItem,
|
|
16
|
+
NextPageTrigger: PaginationNextPageTrigger,
|
|
17
|
+
PageTrigger: PaginationPageTrigger,
|
|
18
|
+
PrevPageTrigger: PaginationPrevPageTrigger
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { Pagination, PaginationEllipsis, PaginationList, PaginationListItem, PaginationNextPageTrigger, PaginationPageTrigger, PaginationPrevPageTrigger };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/pagination';
|
|
3
|
-
import type { Accessor } from 'solid-js';
|
|
4
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
1
|
+
import { ContextProviderComponent } from 'solid-js';
|
|
5
2
|
import { type UsePaginationReturn } from './use-pagination';
|
|
6
3
|
export type PaginationContext = UsePaginationReturn;
|
|
7
|
-
export declare const PaginationProvider: ContextProviderComponent<
|
|
4
|
+
export declare const PaginationProvider: ContextProviderComponent<UsePaginationReturn>, usePaginationContext: () => UsePaginationReturn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type PaginationListItemProps = HTMLArkProps<'li'>;
|
|
4
4
|
export declare const PaginationListItem: (props: PaginationListItemProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AnatomyInstance, AnatomyPart } from '@zag-js/anatomy';
|
|
2
2
|
export declare const paginationAnatomy: AnatomyInstance<"ellipsis" | "list" | "root" | "pageTrigger" | "prevPageTrigger" | "nextPageTrigger" | "listItem">;
|
|
3
3
|
export declare const parts: Record<"ellipsis" | "list" | "root" | "pageTrigger" | "prevPageTrigger" | "nextPageTrigger" | "listItem", 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 Customized: () => JSX.Element;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const pagination = require('@zag-js/pagination');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
7
|
const solidJs = require('solid-js');
|
|
8
|
+
require('../environment/index.cjs');
|
|
8
9
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
9
10
|
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PropTypes } from '@zag-js/solid';
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
3
1
|
import * as pagination from '@zag-js/pagination';
|
|
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 UsePaginationProps = Optional<pagination.Context, 'id'>;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type UsePaginationReturn = Accessor<pagination.Api<PropTypes>>;
|
|
7
|
+
export declare const usePagination: (props: UsePaginationProps) => UsePaginationReturn;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as pagination from '@zag-js/pagination';
|
|
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 usePagination = (props) => {
|
package/pin-input/index.cjs
CHANGED
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const pinInput = require('./pin-input.cjs');
|
|
5
|
+
const pinInput$1 = require('./pin-input.cjs');
|
|
6
6
|
const pinInputContext = require('./pin-input-context.cjs');
|
|
7
7
|
const pinInputControl = require('./pin-input-control.cjs');
|
|
8
8
|
const pinInputField = require('./pin-input-field.cjs');
|
|
9
9
|
const pinInputLabel = require('./pin-input-label.cjs');
|
|
10
|
-
const pinInput
|
|
11
|
-
|
|
10
|
+
const pinInput = require('@zag-js/pin-input');
|
|
12
11
|
|
|
12
|
+
const PinInput = Object.assign(pinInput$1.PinInput, {
|
|
13
|
+
Root: pinInput$1.PinInput,
|
|
14
|
+
Control: pinInputControl.PinInputControl,
|
|
15
|
+
Input: pinInputField.PinInputInput,
|
|
16
|
+
Label: pinInputLabel.PinInputLabel
|
|
17
|
+
});
|
|
13
18
|
|
|
14
|
-
exports.PinInput = pinInput.PinInput;
|
|
15
19
|
exports.usePinInputContext = pinInputContext.usePinInputContext;
|
|
16
20
|
exports.PinInputControl = pinInputControl.PinInputControl;
|
|
17
|
-
exports.
|
|
21
|
+
exports.PinInputInput = pinInputField.PinInputInput;
|
|
18
22
|
exports.PinInputLabel = pinInputLabel.PinInputLabel;
|
|
19
23
|
Object.defineProperty(exports, 'pinInputAnatomy', {
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: () => pinInput.anatomy
|
|
22
26
|
});
|
|
27
|
+
exports.PinInput = PinInput;
|