@ark-ui/solid 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -2
- package/accordion/accordion-content.d.ts +1 -1
- package/accordion/accordion-context.d.ts +2 -5
- package/accordion/accordion-item-context.d.ts +3 -5
- package/accordion/accordion-item.cjs +7 -6
- package/accordion/accordion-item.d.ts +2 -3
- package/accordion/accordion-item.mjs +7 -6
- package/accordion/accordion-trigger.d.ts +1 -1
- package/accordion/accordion.cjs +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.mjs +1 -1
- package/accordion/accordion.stories.d.ts +12 -0
- package/accordion/accordion.test.d.ts +1 -0
- package/accordion/index.cjs +11 -6
- package/accordion/index.d.ts +16 -7
- package/accordion/index.mjs +13 -4
- package/accordion/use-accordion.cjs +1 -0
- package/accordion/use-accordion.d.ts +4 -4
- package/accordion/use-accordion.mjs +1 -0
- package/avatar/avatar-context.d.ts +2 -5
- package/avatar/avatar-fallback.d.ts +1 -1
- package/avatar/avatar-image.d.ts +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.stories.d.ts +6 -0
- package/avatar/index.cjs +10 -6
- package/avatar/index.d.ts +13 -5
- package/avatar/index.mjs +11 -3
- package/avatar/use-avatar.cjs +1 -0
- package/avatar/use-avatar.d.ts +4 -4
- package/avatar/use-avatar.mjs +1 -0
- package/carousel/carousel-context.d.ts +2 -5
- package/carousel/carousel-control.d.ts +1 -1
- package/carousel/carousel-indicator-group.d.ts +1 -1
- package/carousel/carousel-indicator.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.cjs +2 -2
- package/carousel/carousel-next-slide-trigger.d.ts +1 -1
- package/carousel/carousel-next-slide-trigger.mjs +2 -2
- package/carousel/carousel-prev-slide-trigger.cjs +2 -2
- package/carousel/carousel-prev-slide-trigger.d.ts +1 -1
- package/carousel/carousel-prev-slide-trigger.mjs +2 -2
- package/carousel/carousel-slide-group.d.ts +1 -1
- package/carousel/carousel-slide.d.ts +1 -1
- package/carousel/carousel-viewport.d.ts +1 -1
- package/carousel/carousel.anatomy.d.ts +3 -3
- package/carousel/carousel.d.ts +1 -1
- package/carousel/carousel.stories.d.ts +6 -0
- package/carousel/index.cjs +12 -2
- package/carousel/index.d.ts +25 -11
- package/carousel/index.mjs +23 -9
- package/carousel/use-carousel.cjs +1 -0
- package/carousel/use-carousel.d.ts +4 -4
- package/carousel/use-carousel.mjs +1 -0
- package/checkbox/checkbox-context.d.ts +2 -5
- package/checkbox/checkbox-control.cjs +6 -1
- package/checkbox/checkbox-control.d.ts +1 -1
- package/checkbox/checkbox-control.mjs +7 -2
- package/checkbox/checkbox-label.d.ts +1 -1
- package/checkbox/checkbox.stories.d.ts +8 -0
- package/checkbox/index.cjs +10 -8
- package/checkbox/index.d.ts +14 -7
- package/checkbox/index.mjs +11 -4
- package/checkbox/use-checkbox.cjs +1 -0
- package/checkbox/use-checkbox.d.ts +4 -4
- package/checkbox/use-checkbox.mjs +1 -0
- package/clone-element.d.ts +2 -0
- package/color-picker/color-picker-area-context.d.ts +1 -1
- package/color-picker/color-picker-area-gradient.d.ts +1 -1
- package/color-picker/color-picker-area-thumb.d.ts +1 -1
- package/color-picker/color-picker-area.d.ts +1 -1
- package/color-picker/color-picker-channel-input.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-background.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-context.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-thumb.d.ts +1 -1
- package/color-picker/color-picker-channel-slider-track.d.ts +1 -1
- package/color-picker/color-picker-content.d.ts +1 -1
- package/color-picker/color-picker-context.d.ts +2 -5
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +1 -1
- package/color-picker/color-picker-swatch-background.d.ts +1 -1
- package/color-picker/color-picker-swatch-context.d.ts +1 -1
- package/color-picker/color-picker-swatch-group.d.ts +1 -1
- package/color-picker/color-picker-swatch.d.ts +1 -1
- package/color-picker/color-picker.anatomy.d.ts +3 -3
- package/color-picker/color-picker.cjs +1 -1
- package/color-picker/color-picker.mjs +1 -1
- package/color-picker/color-picker.stories.d.ts +6 -0
- package/color-picker/index.cjs +16 -2
- package/color-picker/index.d.ts +35 -17
- package/color-picker/index.mjs +31 -13
- package/color-picker/use-color-picker.cjs +1 -0
- package/color-picker/use-color-picker.d.ts +4 -4
- package/color-picker/use-color-picker.mjs +1 -0
- package/combobox/combobox-clear-trigger.d.ts +1 -1
- package/combobox/combobox-content.cjs +1 -1
- package/combobox/combobox-content.d.ts +2 -2
- package/combobox/combobox-content.mjs +1 -1
- package/combobox/combobox-context.d.ts +2 -5
- package/combobox/combobox-control.d.ts +1 -1
- package/combobox/combobox-input.d.ts +1 -1
- package/combobox/combobox-label.d.ts +1 -1
- package/combobox/combobox-option-group-label.cjs +18 -0
- package/combobox/combobox-option-group-label.d.ts +6 -0
- package/combobox/combobox-option-group-label.mjs +14 -0
- package/combobox/combobox-option-group.cjs +4 -2
- package/combobox/combobox-option-group.d.ts +2 -2
- package/combobox/combobox-option-group.mjs +4 -2
- package/combobox/combobox-option.cjs +1 -1
- package/combobox/combobox-option.d.ts +3 -5
- package/combobox/combobox-option.mjs +1 -1
- package/combobox/combobox-positioner.d.ts +1 -1
- package/combobox/combobox-trigger.d.ts +1 -1
- package/combobox/combobox.cjs +1 -1
- package/combobox/combobox.mjs +1 -1
- package/combobox/combobox.stories.d.ts +5 -0
- package/combobox/combobox.test.d.ts +1 -0
- package/combobox/index.cjs +20 -6
- package/combobox/index.d.ts +29 -12
- package/combobox/index.mjs +27 -10
- package/combobox/use-combobox.cjs +1 -0
- package/combobox/use-combobox.d.ts +4 -4
- package/combobox/use-combobox.mjs +1 -0
- package/create-split-props.test.d.ts +1 -0
- package/date-picker/date-picker-cell-context.d.ts +1 -1
- package/date-picker/date-picker-clear-trigger.d.ts +1 -1
- package/date-picker/date-picker-column-header.d.ts +1 -1
- package/date-picker/date-picker-content.d.ts +1 -1
- package/date-picker/date-picker-context.d.ts +2 -5
- package/date-picker/date-picker-control.d.ts +1 -1
- package/date-picker/date-picker-day-cell-context.d.ts +1 -1
- package/date-picker/date-picker-day-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-day-cell.d.ts +1 -1
- package/date-picker/date-picker-grid.d.ts +1 -1
- package/date-picker/date-picker-input.d.ts +1 -1
- package/date-picker/date-picker-month-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-month-cell.d.ts +1 -1
- package/date-picker/date-picker-month-select.cjs +7 -2
- package/date-picker/date-picker-month-select.d.ts +1 -1
- package/date-picker/date-picker-month-select.mjs +8 -3
- package/date-picker/date-picker-next-trigger.d.ts +1 -1
- package/date-picker/date-picker-positioner.cjs +16 -0
- package/date-picker/date-picker-positioner.d.ts +4 -0
- package/date-picker/date-picker-positioner.mjs +12 -0
- package/date-picker/date-picker-prev-trigger.d.ts +1 -1
- package/date-picker/date-picker-row-group.d.ts +1 -1
- package/date-picker/date-picker-row-header.d.ts +1 -1
- package/date-picker/date-picker-row.d.ts +1 -1
- package/date-picker/date-picker-trigger.d.ts +1 -1
- package/date-picker/date-picker-view-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell-trigger.d.ts +1 -1
- package/date-picker/date-picker-year-cell.d.ts +1 -1
- package/date-picker/date-picker-year-select.cjs +7 -2
- package/date-picker/date-picker-year-select.d.ts +1 -1
- package/date-picker/date-picker-year-select.mjs +8 -3
- package/date-picker/date-picker.anatomy.d.ts +3 -3
- package/date-picker/date-picker.cjs +1 -1
- package/date-picker/date-picker.mjs +1 -1
- package/date-picker/date-picker.stories.d.ts +9 -0
- package/date-picker/index.cjs +28 -2
- package/date-picker/index.d.ts +55 -26
- package/date-picker/index.mjs +51 -22
- package/date-picker/use-date-picker.cjs +1 -0
- package/date-picker/use-date-picker.d.ts +4 -4
- package/date-picker/use-date-picker.mjs +1 -0
- package/dialog/dialog-backdrop.d.ts +1 -1
- package/dialog/dialog-close-trigger.d.ts +1 -1
- package/dialog/dialog-container.d.ts +1 -1
- package/dialog/dialog-content.d.ts +1 -1
- package/dialog/dialog-context.d.ts +2 -5
- package/dialog/dialog-description.d.ts +1 -1
- package/dialog/dialog-title.d.ts +1 -1
- package/dialog/dialog-trigger.d.ts +1 -1
- package/dialog/dialog.stories.d.ts +6 -0
- package/dialog/dialog.test.d.ts +1 -0
- package/dialog/index.cjs +15 -6
- package/dialog/index.d.ts +23 -10
- package/dialog/index.mjs +21 -8
- package/dialog/use-dialog.cjs +1 -0
- package/dialog/use-dialog.d.ts +4 -4
- package/dialog/use-dialog.mjs +1 -0
- package/editable/editable-area.d.ts +1 -1
- package/editable/editable-cancel-trigger.d.ts +1 -1
- package/editable/editable-context.d.ts +2 -5
- package/editable/editable-control.d.ts +1 -1
- package/editable/editable-edit-trigger.d.ts +1 -1
- package/editable/editable-input.d.ts +1 -1
- package/editable/editable-label.d.ts +1 -1
- package/editable/editable-preview.d.ts +1 -1
- package/editable/editable-submit-trigger.d.ts +1 -1
- package/editable/editable.cjs +1 -1
- package/editable/editable.mjs +1 -1
- package/editable/editable.stories.d.ts +6 -0
- package/editable/index.cjs +16 -6
- package/editable/index.d.ts +25 -11
- package/editable/index.mjs +23 -9
- package/editable/use-editable.cjs +1 -0
- package/editable/use-editable.d.ts +4 -4
- package/editable/use-editable.mjs +1 -0
- package/environment/environment-context.d.ts +2 -2
- package/environment/environment.cjs +7 -2
- package/environment/environment.mjs +8 -3
- package/environment/environment.stories.d.ts +5 -0
- package/environment/environment.test.d.ts +1 -0
- package/environment/index.cjs +4 -2
- package/environment/index.d.ts +8 -2
- package/environment/index.mjs +7 -1
- package/factory.d.ts +4 -4
- package/filter-object.test.d.ts +1 -0
- package/hover-card/hover-card-arrow-tip.d.ts +1 -1
- package/hover-card/hover-card-arrow.d.ts +1 -1
- package/hover-card/hover-card-content.d.ts +1 -1
- package/hover-card/hover-card-context.d.ts +2 -5
- package/hover-card/hover-card-positioner.d.ts +1 -1
- package/hover-card/hover-card-trigger.d.ts +1 -1
- package/hover-card/hover-card.stories.d.ts +8 -0
- package/hover-card/index.cjs +13 -6
- package/hover-card/index.d.ts +19 -8
- package/hover-card/index.mjs +17 -6
- package/hover-card/use-hover-card.cjs +1 -0
- package/hover-card/use-hover-card.d.ts +4 -4
- package/hover-card/use-hover-card.mjs +1 -0
- package/index.cjs +239 -241
- package/index.mjs +89 -90
- package/menu/index.cjs +19 -5
- package/menu/index.d.ts +33 -15
- package/menu/index.mjs +31 -13
- package/menu/menu-arrow-tip.d.ts +1 -1
- package/menu/menu-arrow.d.ts +1 -1
- package/menu/menu-content.d.ts +1 -1
- package/menu/menu-context-trigger.d.ts +1 -1
- package/menu/menu-context.d.ts +1 -1
- package/menu/menu-item-group-label.d.ts +1 -1
- package/menu/menu-item-group.d.ts +1 -1
- package/menu/menu-item.d.ts +3 -5
- package/menu/menu-positioner.d.ts +1 -1
- package/menu/menu-separator.d.ts +1 -1
- package/menu/menu-trigger-item.d.ts +1 -1
- package/menu/menu-trigger.d.ts +1 -1
- package/menu/menu.cjs +1 -1
- package/menu/menu.mjs +1 -1
- package/menu/menu.stories.d.ts +9 -0
- package/menu/use-menu.cjs +1 -0
- package/menu/use-menu.d.ts +3 -1
- package/menu/use-menu.mjs +1 -0
- package/number-input/index.cjs +14 -6
- package/number-input/index.d.ts +21 -9
- package/number-input/index.mjs +19 -7
- package/number-input/number-input-context.d.ts +2 -5
- package/number-input/number-input-control.d.ts +1 -1
- package/number-input/number-input-decrement-trigger.d.ts +1 -1
- package/number-input/number-input-field.cjs +2 -2
- package/number-input/number-input-field.d.ts +3 -3
- package/number-input/number-input-field.mjs +2 -2
- package/number-input/number-input-increment-trigger.d.ts +1 -1
- package/number-input/number-input-label.d.ts +1 -1
- package/number-input/number-input-scrubber.d.ts +1 -1
- package/number-input/number-input.d.ts +1 -1
- package/number-input/number-input.stories.d.ts +5 -0
- package/number-input/use-number-input.cjs +1 -0
- package/number-input/use-number-input.d.ts +4 -4
- package/number-input/use-number-input.mjs +1 -0
- package/package.json +48 -48
- package/pagination/index.cjs +10 -2
- package/pagination/index.d.ts +21 -9
- package/pagination/index.mjs +19 -7
- package/pagination/pagination-context.d.ts +2 -5
- package/pagination/pagination-ellipsis.d.ts +1 -1
- package/pagination/pagination-list-item.d.ts +1 -1
- package/pagination/pagination-list.d.ts +1 -1
- package/pagination/pagination.anatomy.d.ts +1 -1
- package/pagination/pagination.stories.d.ts +7 -0
- package/pagination/use-pagination.cjs +1 -0
- package/pagination/use-pagination.d.ts +4 -4
- package/pagination/use-pagination.mjs +1 -0
- package/pin-input/index.cjs +12 -7
- package/pin-input/index.d.ts +15 -6
- package/pin-input/index.mjs +13 -4
- package/pin-input/pin-input-context.d.ts +2 -5
- package/pin-input/pin-input-control.cjs +8 -3
- package/pin-input/pin-input-control.d.ts +1 -1
- package/pin-input/pin-input-control.mjs +9 -4
- package/pin-input/pin-input-field.cjs +2 -2
- package/pin-input/pin-input-field.d.ts +3 -3
- package/pin-input/pin-input-field.mjs +2 -2
- package/pin-input/pin-input-label.d.ts +1 -1
- package/pin-input/pin-input.d.ts +1 -1
- package/pin-input/pin-input.stories.d.ts +5 -0
- package/pin-input/use-pin-input.cjs +1 -0
- package/pin-input/use-pin-input.d.ts +4 -4
- package/pin-input/use-pin-input.mjs +1 -0
- package/popover/index.cjs +17 -6
- package/popover/index.d.ts +27 -12
- package/popover/index.mjs +25 -10
- package/popover/popover-anchor.d.ts +1 -1
- package/popover/popover-arrow-tip.d.ts +1 -1
- package/popover/popover-arrow.d.ts +1 -1
- package/popover/popover-close-trigger.d.ts +1 -1
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-context.d.ts +2 -5
- package/popover/popover-description.d.ts +1 -1
- package/popover/popover-positioner.d.ts +1 -1
- package/popover/popover-title.d.ts +1 -1
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.stories.d.ts +6 -0
- package/popover/use-popover.cjs +1 -0
- package/popover/use-popover.d.ts +4 -4
- package/popover/use-popover.mjs +1 -0
- package/pressable/index.cjs +4 -2
- package/pressable/index.d.ts +8 -2
- package/pressable/index.mjs +7 -1
- package/pressable/pressable.d.ts +1 -1
- package/pressable/pressable.stories.d.ts +5 -0
- package/pressable/pressable.test.d.ts +1 -0
- package/pressable/use-pressable.cjs +1 -0
- package/pressable/use-pressable.d.ts +4 -4
- package/pressable/use-pressable.mjs +1 -0
- package/radio-group/index.cjs +10 -6
- package/radio-group/index.d.ts +18 -9
- package/radio-group/index.mjs +15 -6
- package/radio-group/radio-context.d.ts +1 -1
- package/radio-group/radio-control.cjs +8 -3
- package/radio-group/radio-control.d.ts +1 -1
- package/radio-group/radio-control.mjs +9 -4
- package/radio-group/radio-group-context.d.ts +2 -5
- package/radio-group/radio-group-label.d.ts +1 -1
- package/radio-group/radio-group.d.ts +1 -1
- package/radio-group/radio-group.stories.d.ts +6 -0
- package/radio-group/radio-group.test.d.ts +1 -0
- package/radio-group/radio-label.d.ts +1 -1
- package/radio-group/radio.d.ts +1 -1
- package/radio-group/use-radio-group.cjs +1 -0
- package/radio-group/use-radio-group.d.ts +4 -4
- package/radio-group/use-radio-group.mjs +1 -0
- package/range-slider/index.cjs +15 -5
- package/range-slider/index.d.ts +25 -11
- package/range-slider/index.mjs +23 -9
- package/range-slider/range-slider-context.d.ts +2 -5
- package/range-slider/range-slider-control.d.ts +1 -1
- package/range-slider/range-slider-label.d.ts +1 -1
- package/range-slider/range-slider-marker-group.d.ts +1 -1
- package/range-slider/range-slider-marker.d.ts +1 -1
- package/range-slider/range-slider-range.d.ts +1 -1
- package/range-slider/range-slider-thumb.cjs +7 -2
- package/range-slider/range-slider-thumb.d.ts +2 -2
- package/range-slider/range-slider-thumb.mjs +8 -3
- package/range-slider/range-slider-track.d.ts +1 -1
- package/range-slider/range-slider.cjs +1 -1
- package/range-slider/range-slider.mjs +1 -1
- package/range-slider/range-slider.stories.d.ts +5 -0
- package/range-slider/range-slider.test.d.ts +1 -0
- package/range-slider/use-range-slider.cjs +1 -0
- package/range-slider/use-range-slider.d.ts +4 -4
- package/range-slider/use-range-slider.mjs +1 -0
- package/rating-group/index.cjs +9 -4
- package/rating-group/index.d.ts +16 -7
- package/rating-group/index.mjs +13 -4
- package/rating-group/rating-context.d.ts +2 -3
- package/rating-group/rating-group-context.d.ts +2 -5
- package/rating-group/rating-group-control.cjs +7 -2
- package/rating-group/rating-group-control.mjs +8 -3
- package/rating-group/rating-group-label.d.ts +1 -1
- package/rating-group/rating-group.cjs +3 -7
- package/rating-group/rating-group.d.ts +1 -1
- package/rating-group/rating-group.mjs +4 -8
- package/rating-group/rating-group.stories.d.ts +6 -0
- package/rating-group/use-rating-group.cjs +1 -0
- package/rating-group/use-rating-group.d.ts +4 -4
- package/rating-group/use-rating-group.mjs +1 -0
- package/run-if-fn.test.d.ts +1 -0
- package/segment-group/index.cjs +11 -6
- package/segment-group/index.d.ts +20 -10
- package/segment-group/index.mjs +17 -7
- package/segment-group/segment-context.d.ts +1 -1
- package/segment-group/segment-control.cjs +8 -3
- package/segment-group/segment-control.d.ts +1 -1
- package/segment-group/segment-control.mjs +9 -4
- package/segment-group/segment-group-context.d.ts +2 -5
- package/segment-group/{segment-indicator.cjs → segment-group-indicator.cjs} +2 -2
- package/segment-group/segment-group-indicator.d.ts +4 -0
- package/segment-group/{segment-indicator.mjs → segment-group-indicator.mjs} +2 -2
- package/segment-group/segment-group-label.d.ts +1 -1
- package/segment-group/segment-group.anatomy.d.ts +3 -3
- package/segment-group/segment-group.d.ts +1 -1
- package/segment-group/segment-group.stories.d.ts +7 -0
- package/segment-group/segment-group.test.d.ts +1 -0
- package/segment-group/segment-label.d.ts +1 -1
- package/segment-group/segment.d.ts +1 -1
- package/segment-group/use-segment-group.cjs +1 -0
- package/segment-group/use-segment-group.d.ts +4 -4
- package/segment-group/use-segment-group.mjs +1 -0
- package/select/index.cjs +14 -5
- package/select/index.d.ts +23 -10
- package/select/index.mjs +21 -8
- package/select/select-content.cjs +1 -1
- package/select/select-content.d.ts +2 -2
- package/select/select-content.mjs +1 -1
- package/select/select-context.d.ts +2 -5
- package/select/select-label.d.ts +1 -1
- package/select/select-option-group-label.cjs +1 -1
- package/select/select-option-group-label.d.ts +2 -2
- package/select/select-option-group-label.mjs +1 -1
- package/select/select-option-group.d.ts +1 -1
- package/select/select-option.cjs +1 -1
- package/select/select-option.d.ts +3 -5
- package/select/select-option.mjs +1 -1
- package/select/select-positioner.d.ts +1 -1
- package/select/select-trigger.d.ts +1 -1
- package/select/select.cjs +1 -1
- package/select/select.mjs +1 -1
- package/select/select.stories.d.ts +5 -0
- package/select/use-select.cjs +1 -0
- package/select/use-select.d.ts +4 -4
- package/select/use-select.mjs +1 -0
- package/setup-test.d.ts +0 -0
- package/slider/index.cjs +16 -6
- package/slider/index.d.ts +25 -11
- package/slider/index.mjs +23 -9
- package/slider/slider-context.d.ts +2 -5
- package/slider/slider-control.d.ts +1 -1
- package/slider/slider-label.d.ts +1 -1
- package/slider/slider-marker-group.d.ts +1 -1
- package/slider/slider-marker.d.ts +1 -1
- package/slider/slider-range.d.ts +1 -1
- package/slider/slider-thumb.cjs +7 -6
- package/slider/slider-thumb.d.ts +1 -1
- package/slider/slider-thumb.mjs +8 -7
- package/slider/slider-track.d.ts +1 -1
- package/slider/slider.cjs +1 -1
- package/slider/slider.mjs +1 -1
- package/slider/slider.stories.d.ts +5 -0
- package/slider/use-slider.cjs +1 -0
- package/slider/use-slider.d.ts +4 -4
- package/slider/use-slider.mjs +1 -0
- package/splitter/index.cjs +10 -6
- package/splitter/index.d.ts +13 -5
- package/splitter/index.mjs +11 -3
- package/splitter/splitter-context.d.ts +2 -5
- package/splitter/splitter-panel.d.ts +1 -1
- package/splitter/splitter-resize-trigger.d.ts +1 -1
- package/splitter/splitter.stories.d.ts +8 -0
- package/splitter/splitter.test.d.ts +1 -0
- package/splitter/use-splitter.cjs +22 -2
- package/splitter/use-splitter.d.ts +6 -6
- package/splitter/use-splitter.mjs +4 -3
- package/ssr-spread.test.d.ts +1 -0
- package/switch/index.cjs +9 -6
- package/switch/index.d.ts +15 -7
- package/switch/index.mjs +13 -5
- package/switch/switch-context.d.ts +2 -5
- package/switch/switch-control.cjs +8 -3
- package/switch/switch-control.d.ts +1 -1
- package/switch/switch-control.mjs +9 -4
- package/switch/switch-label.d.ts +1 -1
- package/switch/switch-thumb.d.ts +1 -1
- package/switch/switch.stories.d.ts +9 -0
- package/switch/use-switch.cjs +1 -0
- package/switch/use-switch.d.ts +4 -4
- package/switch/use-switch.mjs +1 -0
- package/tabs/index.cjs +12 -6
- package/tabs/index.d.ts +17 -7
- package/tabs/index.mjs +15 -5
- package/tabs/tab-content.d.ts +1 -1
- package/tabs/tab-indicator.d.ts +1 -1
- package/tabs/tab-list.d.ts +1 -1
- package/tabs/tab-trigger.d.ts +1 -1
- package/tabs/tabs-context.d.ts +2 -5
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.stories.d.ts +11 -0
- package/tabs/use-tabs.cjs +1 -0
- package/tabs/use-tabs.d.ts +4 -4
- package/tabs/use-tabs.mjs +1 -0
- package/tags-input/index.cjs +16 -7
- package/tags-input/index.d.ts +25 -10
- package/tags-input/index.mjs +21 -8
- package/tags-input/tag-delete-trigger.d.ts +1 -1
- package/tags-input/tag-input.d.ts +1 -1
- package/tags-input/tag.d.ts +1 -1
- package/tags-input/tags-input-clear-trigger.d.ts +1 -1
- package/tags-input/tags-input-context.d.ts +2 -5
- package/tags-input/tags-input-control.cjs +7 -2
- package/tags-input/tags-input-control.d.ts +1 -1
- package/tags-input/tags-input-control.mjs +8 -3
- package/tags-input/tags-input-field.cjs +2 -2
- package/tags-input/tags-input-field.d.ts +3 -3
- package/tags-input/tags-input-field.mjs +2 -2
- package/tags-input/tags-input-label.d.ts +1 -1
- package/tags-input/tags-input.cjs +1 -1
- package/tags-input/tags-input.mjs +1 -1
- package/tags-input/tags-input.stories.d.ts +5 -0
- package/tags-input/use-tags-input.cjs +1 -0
- package/tags-input/use-tags-input.d.ts +4 -4
- package/tags-input/use-tags-input.mjs +1 -0
- package/toast/index.cjs +13 -4
- package/toast/index.d.ts +21 -9
- package/toast/index.mjs +20 -7
- package/toast/toast-close-trigger.d.ts +1 -1
- package/toast/toast-description.d.ts +1 -1
- package/toast/toast-item-context.d.ts +2 -5
- package/toast/toast-placements.cjs +2 -1
- package/toast/toast-placements.mjs +2 -1
- package/toast/toast-provider.cjs +1 -0
- package/toast/toast-provider.d.ts +1 -2
- package/toast/toast-provider.mjs +1 -0
- package/toast/toast-title.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.stories.d.ts +12 -0
- package/toast/use-toast-item.d.ts +4 -4
- package/tooltip/index.cjs +13 -6
- package/tooltip/index.d.ts +19 -8
- package/tooltip/index.mjs +18 -7
- package/tooltip/tooltip-anatomy.d.ts +1 -1
- package/tooltip/tooltip-arrow-tip.d.ts +1 -1
- package/tooltip/tooltip-arrow.d.ts +1 -1
- package/tooltip/tooltip-content.d.ts +1 -1
- package/tooltip/tooltip-context.d.ts +2 -5
- package/tooltip/tooltip-positioner.d.ts +1 -1
- package/tooltip/tooltip-trigger.d.ts +1 -1
- package/tooltip/tooltip.stories.d.ts +11 -0
- package/tooltip/tooltip.test.d.ts +1 -0
- package/tooltip/use-tooltip.cjs +1 -0
- package/tooltip/use-tooltip.d.ts +4 -4
- package/tooltip/use-tooltip.mjs +1 -0
- package/types.d.ts +2 -5
- package/checkbox/checkbox-input.cjs +0 -16
- package/checkbox/checkbox-input.d.ts +0 -4
- package/checkbox/checkbox-input.mjs +0 -12
- package/radio-group/radio-input.cjs +0 -18
- package/radio-group/radio-input.d.ts +0 -4
- package/radio-group/radio-input.mjs +0 -14
- package/segment-group/segment-indicator.d.ts +0 -4
- package/segment-group/segment-input.cjs +0 -19
- package/segment-group/segment-input.d.ts +0 -4
- package/segment-group/segment-input.mjs +0 -15
- package/switch/switch-input.cjs +0 -16
- package/switch/switch-input.d.ts +0 -4
- package/switch/switch-input.mjs +0 -12
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
2
2
|
import * as tagsInput from '@zag-js/tags-input';
|
|
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 useTagsInput = (props) => {
|
package/toast/index.cjs
CHANGED
|
@@ -12,9 +12,17 @@ const toastProvider = require('./toast-provider.cjs');
|
|
|
12
12
|
const toastTitle = require('./toast-title.cjs');
|
|
13
13
|
const toast$1 = require('@zag-js/toast');
|
|
14
14
|
|
|
15
|
+
const Toast = Object.assign(toast.Toast, {
|
|
16
|
+
Provider: toastProvider.ToastProvider,
|
|
17
|
+
Title: toastTitle.ToastTitle,
|
|
18
|
+
Root: toast.Toast,
|
|
19
|
+
Description: toastDescription.ToastDescription,
|
|
20
|
+
CloseTrigger: toastCloseTrigger.ToastCloseTrigger,
|
|
21
|
+
Placements: toastPlacements.ToastPlacements,
|
|
22
|
+
Group: toastGroup.ToastGroup
|
|
23
|
+
});
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
exports.Toast = toast.Toast;
|
|
25
|
+
exports.ToastRoot = toast.Toast;
|
|
18
26
|
exports.ToastCloseTrigger = toastCloseTrigger.ToastCloseTrigger;
|
|
19
27
|
exports.ToastDescription = toastDescription.ToastDescription;
|
|
20
28
|
exports.ToastGroup = toastGroup.ToastGroup;
|
|
@@ -24,6 +32,7 @@ exports.ToastProvider = toastProvider.ToastProvider;
|
|
|
24
32
|
exports.useToast = toastProvider.useToast;
|
|
25
33
|
exports.ToastTitle = toastTitle.ToastTitle;
|
|
26
34
|
Object.defineProperty(exports, 'toastAnatomy', {
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: () => toast$1.anatomy
|
|
29
37
|
});
|
|
38
|
+
exports.Toast = Toast;
|
package/toast/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 { Toast as ToastRoot, type ToastProps } from './toast';
|
|
3
|
+
import { ToastCloseTrigger, type ToastCloseTriggerProps } from './toast-close-trigger';
|
|
4
|
+
import { ToastDescription, type ToastDescriptionProps } from './toast-description';
|
|
5
|
+
import { ToastGroup, type ToastGroupProps } from './toast-group';
|
|
6
|
+
import { useToastItemContext } from './toast-item-context';
|
|
7
|
+
import { ToastPlacements, type ToastPlacementsProps } from './toast-placements';
|
|
8
|
+
import { ToastProvider, useToast, type ToastProviderProps } from './toast-provider';
|
|
9
|
+
import { ToastTitle, type ToastTitleProps } from './toast-title';
|
|
10
|
+
import { toastAnatomy } from './toast.anatomy';
|
|
11
|
+
declare const Toast: ((props: ToastProps) => JSX.Element) & {
|
|
12
|
+
Provider: (props: ToastProviderProps) => JSX.Element;
|
|
13
|
+
Title: (props: ToastTitleProps) => JSX.Element;
|
|
14
|
+
Root: (props: ToastProps) => JSX.Element;
|
|
15
|
+
Description: (props: ToastDescriptionProps) => JSX.Element;
|
|
16
|
+
CloseTrigger: (props: ToastCloseTriggerProps) => JSX.Element;
|
|
17
|
+
Placements: (props: ToastPlacementsProps) => JSX.Element;
|
|
18
|
+
Group: (props: ToastGroupProps) => JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export { Toast, ToastCloseTrigger, ToastDescription, ToastGroup, ToastPlacements, ToastProvider, ToastRoot, ToastTitle, toastAnatomy, useToast, useToastItemContext, };
|
|
21
|
+
export type { ToastCloseTriggerProps, ToastDescriptionProps, ToastGroupProps, ToastPlacementsProps, ToastProps, ToastProviderProps, ToastTitleProps, };
|
package/toast/index.mjs
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Toast as Toast$1 } from './toast.mjs';
|
|
2
|
+
import { ToastCloseTrigger } from './toast-close-trigger.mjs';
|
|
3
|
+
import { ToastDescription } from './toast-description.mjs';
|
|
4
|
+
import { ToastGroup } from './toast-group.mjs';
|
|
5
5
|
export { useToastItemContext } from './toast-item-context.mjs';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
6
|
+
import { ToastPlacements } from './toast-placements.mjs';
|
|
7
|
+
import { ToastProvider } from './toast-provider.mjs';
|
|
8
|
+
export { useToast } from './toast-provider.mjs';
|
|
9
|
+
import { ToastTitle } from './toast-title.mjs';
|
|
9
10
|
export { anatomy as toastAnatomy } from '@zag-js/toast';
|
|
11
|
+
|
|
12
|
+
const Toast = Object.assign(Toast$1, {
|
|
13
|
+
Provider: ToastProvider,
|
|
14
|
+
Title: ToastTitle,
|
|
15
|
+
Root: Toast$1,
|
|
16
|
+
Description: ToastDescription,
|
|
17
|
+
CloseTrigger: ToastCloseTrigger,
|
|
18
|
+
Placements: ToastPlacements,
|
|
19
|
+
Group: ToastGroup
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { Toast, ToastCloseTrigger, ToastDescription, ToastGroup, ToastPlacements, ToastProvider, Toast$1 as ToastRoot, ToastTitle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
export type ToastCloseTriggerProps = HTMLArkProps<'button'>;
|
|
4
4
|
export declare const ToastCloseTrigger: (props: ToastCloseTriggerProps) => JSX.Element;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/toast';
|
|
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 UseToastItemReturn } from './use-toast-item';
|
|
6
3
|
export type ToastItemContext = UseToastItemReturn;
|
|
7
|
-
export declare const ToastItemProvider: ContextProviderComponent<
|
|
4
|
+
export declare const ToastItemProvider: ContextProviderComponent<UseToastItemReturn>, useToastItemContext: () => UseToastItemReturn;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
+
const web = require('solid-js/web');
|
|
5
6
|
const solidJs = require('solid-js');
|
|
6
7
|
const runIfFn = require('../run-if-fn.cjs');
|
|
7
8
|
const toastProvider = require('./toast-provider.cjs');
|
|
@@ -10,7 +11,7 @@ const ToastPlacements = props => {
|
|
|
10
11
|
const toast = toastProvider.useToast();
|
|
11
12
|
const placements = solidJs.createMemo(() => Object.keys(toast().toastsByPlacement));
|
|
12
13
|
const getChildren = () => runIfFn.runIfFn(props.children, placements);
|
|
13
|
-
return getChildren
|
|
14
|
+
return web.memo(getChildren);
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
exports.ToastPlacements = ToastPlacements;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo } from 'solid-js/web';
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { runIfFn } from '../run-if-fn.mjs';
|
|
3
4
|
import { useToast } from './toast-provider.mjs';
|
|
@@ -6,7 +7,7 @@ const ToastPlacements = props => {
|
|
|
6
7
|
const toast = useToast();
|
|
7
8
|
const placements = createMemo(() => Object.keys(toast().toastsByPlacement));
|
|
8
9
|
const getChildren = () => runIfFn(props.children, placements);
|
|
9
|
-
return getChildren
|
|
10
|
+
return memo(getChildren);
|
|
10
11
|
};
|
|
11
12
|
|
|
12
13
|
export { ToastPlacements };
|
package/toast/toast-provider.cjs
CHANGED
|
@@ -8,6 +8,7 @@ const toast = require('@zag-js/toast');
|
|
|
8
8
|
const solidJs = require('solid-js');
|
|
9
9
|
const createContext = require('../create-context.cjs');
|
|
10
10
|
const createSplitProps = require('../create-split-props.cjs');
|
|
11
|
+
require('../environment/index.cjs');
|
|
11
12
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
12
13
|
|
|
13
14
|
function _interopNamespaceDefault(e) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { ContextProviderComponent } from 'solid-js/types/reactive/signal';
|
|
2
1
|
import * as toast from '@zag-js/toast';
|
|
3
|
-
import { type JSX } from 'solid-js';
|
|
2
|
+
import { ContextProviderComponent, type JSX } from 'solid-js';
|
|
4
3
|
import { type Optional } from '../types';
|
|
5
4
|
type GroupPublicContext = Parameters<(typeof toast)['group']['machine']>[0];
|
|
6
5
|
type ToastProviderParams = {
|
package/toast/toast-provider.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import * as toast from '@zag-js/toast';
|
|
|
4
4
|
import { mergeProps, createUniqueId, createMemo } from 'solid-js';
|
|
5
5
|
import { createContext } from '../create-context.mjs';
|
|
6
6
|
import { createSplitProps } from '../create-split-props.mjs';
|
|
7
|
+
import '../environment/index.mjs';
|
|
7
8
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
8
9
|
|
|
9
10
|
const [ToastContextProvider, useToast] = createContext();
|
package/toast/toast-title.d.ts
CHANGED
package/toast/toast.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { Meta } from 'storybook-solidjs';
|
|
3
|
+
import { Toast, type ToastProviderProps } from '.';
|
|
4
|
+
type ToastType = typeof Toast;
|
|
5
|
+
declare const meta: Meta<ToastType>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const AppToastProvider: (props: ToastProviderProps) => JSX.Element;
|
|
8
|
+
export declare const App: () => JSX.Element;
|
|
9
|
+
export declare const SimpleToast: () => JSX.Element;
|
|
10
|
+
export declare const ConfigureToast: () => JSX.Element;
|
|
11
|
+
export declare const CustomRenderToast: () => JSX.Element;
|
|
12
|
+
export declare const DefaultOptions: () => JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
1
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
2
|
import * as toast from '@zag-js/toast';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
4
4
|
export type UseToastItemProps = {
|
|
5
5
|
toast: toast.Service;
|
|
6
6
|
};
|
|
7
|
-
export type UseToastItemReturn =
|
|
8
|
-
export declare const useToastItem: (props: UseToastItemProps) =>
|
|
7
|
+
export type UseToastItemReturn = Accessor<toast.Api<PropTypes>>;
|
|
8
|
+
export declare const useToastItem: (props: UseToastItemProps) => UseToastItemReturn;
|
package/tooltip/index.cjs
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const tooltip = require('./tooltip.cjs');
|
|
5
|
+
const tooltip$1 = require('./tooltip.cjs');
|
|
6
6
|
const tooltipArrow = require('./tooltip-arrow.cjs');
|
|
7
7
|
const tooltipArrowTip = require('./tooltip-arrow-tip.cjs');
|
|
8
8
|
const tooltipContent = require('./tooltip-content.cjs');
|
|
9
9
|
const tooltipContext = require('./tooltip-context.cjs');
|
|
10
10
|
const tooltipPositioner = require('./tooltip-positioner.cjs');
|
|
11
11
|
const tooltipTrigger = require('./tooltip-trigger.cjs');
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const tooltip = require('@zag-js/tooltip');
|
|
14
13
|
|
|
14
|
+
const Tooltip = Object.assign(tooltip$1.Tooltip, {
|
|
15
|
+
Root: tooltip$1.Tooltip,
|
|
16
|
+
Arrow: tooltipArrow.TooltipArrow,
|
|
17
|
+
ArrowTip: tooltipArrowTip.TooltipArrowTip,
|
|
18
|
+
Content: tooltipContent.TooltipContent,
|
|
19
|
+
Positioner: tooltipPositioner.TooltipPositioner,
|
|
20
|
+
Trigger: tooltipTrigger.TooltipTrigger
|
|
21
|
+
});
|
|
15
22
|
|
|
16
|
-
exports.Tooltip = tooltip.Tooltip;
|
|
17
23
|
exports.TooltipArrow = tooltipArrow.TooltipArrow;
|
|
18
24
|
exports.TooltipArrowTip = tooltipArrowTip.TooltipArrowTip;
|
|
19
25
|
exports.TooltipContent = tooltipContent.TooltipContent;
|
|
@@ -21,6 +27,7 @@ exports.useTooltipContext = tooltipContext.useTooltipContext;
|
|
|
21
27
|
exports.TooltipPositioner = tooltipPositioner.TooltipPositioner;
|
|
22
28
|
exports.TooltipTrigger = tooltipTrigger.TooltipTrigger;
|
|
23
29
|
Object.defineProperty(exports, 'tooltipAnatomy', {
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: () => tooltip.anatomy
|
|
26
32
|
});
|
|
33
|
+
exports.Tooltip = Tooltip;
|
package/tooltip/index.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { type TooltipProps } from './tooltip';
|
|
3
|
+
import { tooltipAnatomy } from './tooltip-anatomy';
|
|
4
|
+
import { TooltipArrow, type TooltipArrowProps } from './tooltip-arrow';
|
|
5
|
+
import { TooltipArrowTip, type TooltipArrowTipProps } from './tooltip-arrow-tip';
|
|
6
|
+
import { TooltipContent, type TooltipContentProps } from './tooltip-content';
|
|
7
|
+
import { useTooltipContext } from './tooltip-context';
|
|
8
|
+
import { TooltipPositioner, type TooltipPositionerProps } from './tooltip-positioner';
|
|
9
|
+
import { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger';
|
|
10
|
+
declare const Tooltip: ((props: TooltipProps) => JSX.Element) & {
|
|
11
|
+
Root: (props: TooltipProps) => JSX.Element;
|
|
12
|
+
Arrow: (props: TooltipArrowProps) => JSX.Element;
|
|
13
|
+
ArrowTip: (props: TooltipArrowTipProps) => JSX.Element;
|
|
14
|
+
Content: (props: TooltipContentProps) => JSX.Element;
|
|
15
|
+
Positioner: (props: TooltipPositionerProps) => JSX.Element;
|
|
16
|
+
Trigger: (props: TooltipTriggerProps) => JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export { Tooltip, TooltipArrow, TooltipArrowTip, TooltipContent, TooltipPositioner, TooltipTrigger, tooltipAnatomy, useTooltipContext, };
|
|
19
|
+
export type { TooltipArrowProps, TooltipArrowTipProps, TooltipContentProps, TooltipPositionerProps, TooltipProps, TooltipTriggerProps, };
|
package/tooltip/index.mjs
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Tooltip as Tooltip$1 } from './tooltip.mjs';
|
|
2
|
+
import { TooltipArrow } from './tooltip-arrow.mjs';
|
|
3
|
+
import { TooltipArrowTip } from './tooltip-arrow-tip.mjs';
|
|
4
|
+
import { TooltipContent } from './tooltip-content.mjs';
|
|
5
5
|
export { useTooltipContext } from './tooltip-context.mjs';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { anatomy as tooltipAnatomy } from '@zag-js/
|
|
6
|
+
import { TooltipPositioner } from './tooltip-positioner.mjs';
|
|
7
|
+
import { TooltipTrigger } from './tooltip-trigger.mjs';
|
|
8
|
+
export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
|
|
9
|
+
|
|
10
|
+
const Tooltip = Object.assign(Tooltip$1, {
|
|
11
|
+
Root: Tooltip$1,
|
|
12
|
+
Arrow: TooltipArrow,
|
|
13
|
+
ArrowTip: TooltipArrowTip,
|
|
14
|
+
Content: TooltipContent,
|
|
15
|
+
Positioner: TooltipPositioner,
|
|
16
|
+
Trigger: TooltipTrigger
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export { Tooltip, TooltipArrow, TooltipArrowTip, TooltipContent, TooltipPositioner, TooltipTrigger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { anatomy as tooltipAnatomy } from '@zag-js/
|
|
1
|
+
export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { PublicApi } from '@zag-js/tooltip';
|
|
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 UseTooltipReturn } from './use-tooltip';
|
|
6
3
|
export type TooltipContext = UseTooltipReturn;
|
|
7
|
-
export declare const TooltipProvider: ContextProviderComponent<
|
|
4
|
+
export declare const TooltipProvider: ContextProviderComponent<UseTooltipReturn>, useTooltipContext: () => UseTooltipReturn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { Meta } from 'storybook-solidjs';
|
|
3
|
+
import { Tooltip } from './';
|
|
4
|
+
type TooltipType = typeof Tooltip;
|
|
5
|
+
declare const meta: Meta<TooltipType>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Basic: () => JSX.Element;
|
|
8
|
+
export declare const Controlled: () => JSX.Element;
|
|
9
|
+
export declare const Arrow: () => JSX.Element;
|
|
10
|
+
export declare const Timings: () => JSX.Element;
|
|
11
|
+
export declare const Positioning: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/tooltip/use-tooltip.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const solid = require('@zag-js/solid');
|
|
6
6
|
const tooltip = require('@zag-js/tooltip');
|
|
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/tooltip/use-tooltip.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Accessor } from 'solid-js';
|
|
1
|
+
import { type PropTypes } from '@zag-js/solid';
|
|
3
2
|
import * as tooltip from '@zag-js/tooltip';
|
|
3
|
+
import { type Accessor } from 'solid-js';
|
|
4
4
|
import { type Optional } from '../types';
|
|
5
5
|
export type UseTooltipProps = Optional<tooltip.Context, 'id'>;
|
|
6
|
-
export type UseTooltipReturn =
|
|
7
|
-
export declare const useTooltip: (props: UseTooltipProps) =>
|
|
6
|
+
export type UseTooltipReturn = Accessor<tooltip.Api<PropTypes>>;
|
|
7
|
+
export declare const useTooltip: (props: UseTooltipProps) => UseTooltipReturn;
|
package/tooltip/use-tooltip.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { mergeProps, useMachine, normalizeProps } from '@zag-js/solid';
|
|
2
2
|
import * as tooltip from '@zag-js/tooltip';
|
|
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 useTooltip = (props) => {
|
package/types.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
type Pretty<T> = T extends infer U ? {
|
|
2
|
-
[K in keyof U]: U[K];
|
|
3
|
-
} : never;
|
|
4
1
|
type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
5
|
-
export type Assign<T, U> =
|
|
6
|
-
export type Optional<T, K extends keyof T> =
|
|
2
|
+
export type Assign<T, U> = DistributiveOmit<T, keyof U> & U;
|
|
3
|
+
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
7
4
|
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 checkboxContext = require('./checkbox-context.cjs');
|
|
9
|
-
|
|
10
|
-
const CheckboxInput = props => {
|
|
11
|
-
const checkbox = checkboxContext.useCheckboxContext();
|
|
12
|
-
const inputProps = solid.mergeProps(() => checkbox().inputProps, props);
|
|
13
|
-
return web.createComponent(factory.ark.input, inputProps);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.CheckboxInput = CheckboxInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createComponent } from 'solid-js/web';
|
|
2
|
-
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import { ark } from '../factory.mjs';
|
|
4
|
-
import { useCheckboxContext } from './checkbox-context.mjs';
|
|
5
|
-
|
|
6
|
-
const CheckboxInput = props => {
|
|
7
|
-
const checkbox = useCheckboxContext();
|
|
8
|
-
const inputProps = mergeProps(() => checkbox().inputProps, props);
|
|
9
|
-
return createComponent(ark.input, inputProps);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { CheckboxInput };
|
|
@@ -1,18 +0,0 @@
|
|
|
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 radioContext = require('./radio-context.cjs');
|
|
9
|
-
const radioGroupContext = require('./radio-group-context.cjs');
|
|
10
|
-
|
|
11
|
-
const RadioInput = props => {
|
|
12
|
-
const api = radioGroupContext.useRadioGroupContext();
|
|
13
|
-
const radioParams = radioContext.useRadioContext();
|
|
14
|
-
const inputProps = solid.mergeProps(() => api().getRadioInputProps(radioParams), props);
|
|
15
|
-
return web.createComponent(factory.ark.input, inputProps);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.RadioInput = RadioInput;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createComponent } from 'solid-js/web';
|
|
2
|
-
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import { ark } from '../factory.mjs';
|
|
4
|
-
import { useRadioContext } from './radio-context.mjs';
|
|
5
|
-
import { useRadioGroupContext } from './radio-group-context.mjs';
|
|
6
|
-
|
|
7
|
-
const RadioInput = props => {
|
|
8
|
-
const api = useRadioGroupContext();
|
|
9
|
-
const radioParams = useRadioContext();
|
|
10
|
-
const inputProps = mergeProps(() => api().getRadioInputProps(radioParams), props);
|
|
11
|
-
return createComponent(ark.input, inputProps);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { RadioInput };
|
|
@@ -1,19 +0,0 @@
|
|
|
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 segmentContext = require('./segment-context.cjs');
|
|
9
|
-
const segmentGroupContext = require('./segment-group-context.cjs');
|
|
10
|
-
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
11
|
-
|
|
12
|
-
const SegmentInput = props => {
|
|
13
|
-
const api = segmentGroupContext.useSegmentGroupContext();
|
|
14
|
-
const segmentParams = segmentContext.useSegmentContext();
|
|
15
|
-
const inputProps = solid.mergeProps(() => api().getRadioInputProps(segmentParams), props);
|
|
16
|
-
return web.createComponent(factory.ark.input, web.mergeProps(inputProps, () => segmentGroup_anatomy.parts.radioInput.attrs));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
exports.SegmentInput = SegmentInput;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createComponent, mergeProps as mergeProps$1 } from 'solid-js/web';
|
|
2
|
-
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import { ark } from '../factory.mjs';
|
|
4
|
-
import { useSegmentContext } from './segment-context.mjs';
|
|
5
|
-
import { useSegmentGroupContext } from './segment-group-context.mjs';
|
|
6
|
-
import { parts } from './segment-group.anatomy.mjs';
|
|
7
|
-
|
|
8
|
-
const SegmentInput = props => {
|
|
9
|
-
const api = useSegmentGroupContext();
|
|
10
|
-
const segmentParams = useSegmentContext();
|
|
11
|
-
const inputProps = mergeProps(() => api().getRadioInputProps(segmentParams), props);
|
|
12
|
-
return createComponent(ark.input, mergeProps$1(inputProps, () => parts.radioInput.attrs));
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { SegmentInput };
|
package/switch/switch-input.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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 switchContext = require('./switch-context.cjs');
|
|
9
|
-
|
|
10
|
-
const SwitchInput = props => {
|
|
11
|
-
const checkbox = switchContext.useSwitchContext();
|
|
12
|
-
const inputProps = solid.mergeProps(() => checkbox().inputProps, props);
|
|
13
|
-
return web.createComponent(factory.ark.input, inputProps);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
exports.SwitchInput = SwitchInput;
|
package/switch/switch-input.d.ts
DELETED
package/switch/switch-input.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createComponent } from 'solid-js/web';
|
|
2
|
-
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import { ark } from '../factory.mjs';
|
|
4
|
-
import { useSwitchContext } from './switch-context.mjs';
|
|
5
|
-
|
|
6
|
-
const SwitchInput = props => {
|
|
7
|
-
const checkbox = useSwitchContext();
|
|
8
|
-
const inputProps = mergeProps(() => checkbox().inputProps, props);
|
|
9
|
-
return createComponent(ark.input, inputProps);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { SwitchInput };
|