@ark-ui/solid 0.11.0 → 1.0.0-beta.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 +27 -1
- package/accordion/{accordion-content.cjs → accordion-item-content.cjs} +3 -3
- package/accordion/accordion-item-content.d.ts +5 -0
- package/accordion/{accordion-content.mjs → accordion-item-content.mjs} +3 -3
- package/accordion/{accordion-trigger.cjs → accordion-item-indicator.cjs} +4 -4
- package/accordion/accordion-item-indicator.d.ts +4 -0
- package/accordion/{accordion-trigger.mjs → accordion-item-indicator.mjs} +4 -4
- package/accordion/accordion-item-trigger.cjs +18 -0
- package/accordion/accordion-item-trigger.d.ts +4 -0
- package/accordion/accordion-item-trigger.mjs +14 -0
- package/accordion/accordion-item.d.ts +2 -4
- package/accordion/accordion.cjs +1 -1
- package/accordion/accordion.mjs +1 -1
- package/accordion/index.cjs +12 -14
- package/accordion/index.d.ts +10 -9
- package/accordion/index.mjs +7 -6
- package/avatar/avatar.cjs +1 -1
- package/avatar/avatar.mjs +1 -1
- package/avatar/index.cjs +3 -8
- package/avatar/index.d.ts +3 -4
- package/avatar/index.mjs +0 -1
- package/carousel/carousel-control.cjs +6 -1
- package/carousel/carousel-control.mjs +6 -1
- package/carousel/carousel-indicator-group.cjs +3 -3
- package/carousel/carousel-indicator-group.mjs +3 -3
- package/carousel/carousel-indicator.cjs +2 -2
- package/carousel/carousel-indicator.d.ts +2 -2
- package/carousel/carousel-indicator.mjs +2 -2
- package/carousel/{carousel-prev-slide-trigger.cjs → carousel-next-trigger.cjs} +4 -4
- package/carousel/carousel-next-trigger.d.ts +4 -0
- package/carousel/{carousel-prev-slide-trigger.mjs → carousel-next-trigger.mjs} +4 -4
- package/carousel/{carousel-next-slide-trigger.cjs → carousel-prev-trigger.cjs} +4 -4
- package/carousel/carousel-prev-trigger.d.ts +4 -0
- package/carousel/{carousel-next-slide-trigger.mjs → carousel-prev-trigger.mjs} +4 -4
- package/carousel/carousel-slide-group.cjs +5 -5
- package/carousel/carousel-slide-group.d.ts +2 -2
- package/carousel/carousel-slide-group.mjs +5 -5
- package/carousel/carousel-slide.cjs +5 -5
- package/carousel/carousel-slide.d.ts +3 -3
- package/carousel/carousel-slide.mjs +5 -5
- package/carousel/carousel-viewport.cjs +3 -3
- package/carousel/carousel-viewport.mjs +3 -3
- package/carousel/carousel.cjs +1 -1
- package/carousel/carousel.mjs +1 -1
- package/carousel/index.cjs +10 -12
- package/carousel/index.d.ts +11 -12
- package/carousel/index.mjs +9 -10
- package/checkbox/checkbox-control.cjs +4 -4
- package/checkbox/checkbox-control.mjs +4 -4
- package/checkbox/checkbox-indicator.cjs +16 -0
- package/checkbox/checkbox-indicator.d.ts +4 -0
- package/checkbox/checkbox-indicator.mjs +12 -0
- package/checkbox/checkbox.cjs +3 -3
- package/checkbox/checkbox.mjs +3 -3
- package/checkbox/index.cjs +7 -9
- package/checkbox/index.d.ts +5 -4
- package/checkbox/index.mjs +4 -3
- package/color-picker/color-picker-area-background.cjs +18 -0
- package/color-picker/color-picker-area-background.d.ts +5 -0
- package/color-picker/color-picker-area-background.mjs +14 -0
- package/color-picker/color-picker-area-context.d.ts +4 -2
- package/color-picker/color-picker-area-thumb.cjs +4 -4
- package/color-picker/color-picker-area-thumb.d.ts +2 -1
- package/color-picker/color-picker-area-thumb.mjs +4 -4
- package/color-picker/color-picker-area.cjs +5 -5
- package/color-picker/color-picker-area.d.ts +4 -2
- package/color-picker/color-picker-area.mjs +5 -5
- package/color-picker/color-picker-channel-input.cjs +4 -4
- package/color-picker/color-picker-channel-input.d.ts +3 -2
- package/color-picker/color-picker-channel-input.mjs +4 -4
- package/color-picker/color-picker-channel-slider-context.d.ts +4 -2
- package/color-picker/color-picker-channel-slider-thumb.cjs +3 -3
- package/color-picker/color-picker-channel-slider-thumb.d.ts +2 -1
- package/color-picker/color-picker-channel-slider-thumb.mjs +3 -3
- package/color-picker/color-picker-channel-slider-track.cjs +3 -9
- package/color-picker/color-picker-channel-slider-track.d.ts +2 -3
- package/color-picker/color-picker-channel-slider-track.mjs +4 -10
- package/color-picker/color-picker-channel-slider.cjs +24 -0
- package/color-picker/color-picker-channel-slider.d.ts +7 -0
- package/color-picker/color-picker-channel-slider.mjs +20 -0
- package/color-picker/color-picker-content.cjs +3 -3
- package/color-picker/color-picker-content.d.ts +2 -1
- package/color-picker/color-picker-content.mjs +3 -3
- package/color-picker/color-picker-context.d.ts +3 -2
- package/color-picker/color-picker-control.cjs +16 -0
- package/color-picker/color-picker-control.d.ts +5 -0
- package/color-picker/color-picker-control.mjs +12 -0
- package/color-picker/color-picker-eye-dropper-trigger.cjs +3 -3
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +2 -1
- package/color-picker/color-picker-eye-dropper-trigger.mjs +3 -3
- package/color-picker/color-picker-label.cjs +16 -0
- package/color-picker/color-picker-label.d.ts +5 -0
- package/color-picker/color-picker-label.mjs +12 -0
- package/color-picker/color-picker-positioner.cjs +16 -0
- package/color-picker/color-picker-positioner.d.ts +5 -0
- package/color-picker/color-picker-positioner.mjs +12 -0
- package/color-picker/color-picker-swatch-group.cjs +4 -3
- package/color-picker/color-picker-swatch-group.d.ts +2 -1
- package/color-picker/color-picker-swatch-group.mjs +4 -3
- package/color-picker/color-picker-swatch-trigger.cjs +18 -0
- package/color-picker/color-picker-swatch-trigger.d.ts +11 -0
- package/color-picker/color-picker-swatch-trigger.mjs +14 -0
- package/color-picker/color-picker-swatch.cjs +2 -12
- package/color-picker/color-picker-swatch.d.ts +3 -2
- package/color-picker/color-picker-swatch.mjs +3 -13
- package/color-picker/{color-picker-swatch-background.cjs → color-picker-transparency-grid.cjs} +5 -5
- package/color-picker/color-picker-transparency-grid.d.ts +10 -0
- package/color-picker/color-picker-transparency-grid.mjs +14 -0
- package/color-picker/color-picker-trigger.cjs +16 -0
- package/color-picker/color-picker-trigger.d.ts +5 -0
- package/color-picker/color-picker-trigger.mjs +12 -0
- package/color-picker/color-picker.cjs +16 -4
- package/color-picker/color-picker.d.ts +2 -2
- package/color-picker/color-picker.mjs +17 -5
- package/color-picker/color-picker.stories.d.ts +3 -2
- package/color-picker/index.cjs +27 -14
- package/color-picker/index.d.ts +21 -12
- package/color-picker/index.mjs +19 -10
- package/color-picker/use-color-picker.cjs +9 -1
- package/color-picker/use-color-picker.d.ts +5 -2
- package/color-picker/use-color-picker.mjs +10 -2
- package/combobox/combobox-clear-trigger.cjs +2 -2
- package/combobox/combobox-clear-trigger.mjs +2 -2
- package/combobox/combobox-content.cjs +2 -2
- package/combobox/combobox-content.mjs +2 -2
- package/combobox/combobox-context.d.ts +3 -2
- package/combobox/combobox-control.cjs +2 -2
- package/combobox/combobox-control.mjs +2 -2
- package/combobox/combobox-input.cjs +2 -2
- package/combobox/combobox-input.mjs +2 -2
- package/combobox/combobox-item-context.cjs +13 -0
- package/combobox/combobox-item-context.d.ts +4 -0
- package/combobox/combobox-item-context.mjs +8 -0
- package/combobox/{combobox-option-group-label.cjs → combobox-item-group-label.cjs} +5 -5
- package/combobox/combobox-item-group-label.d.ts +6 -0
- package/combobox/{combobox-option-group-label.mjs → combobox-item-group-label.mjs} +5 -5
- package/combobox/{combobox-option-group.cjs → combobox-item-group.cjs} +4 -4
- package/combobox/combobox-item-group.d.ts +6 -0
- package/combobox/{combobox-option-group.mjs → combobox-item-group.mjs} +4 -4
- package/combobox/combobox-item-indicator.cjs +18 -0
- package/combobox/combobox-item-indicator.d.ts +4 -0
- package/combobox/combobox-item-indicator.mjs +14 -0
- package/combobox/combobox-item-text.cjs +18 -0
- package/combobox/combobox-item-text.d.ts +4 -0
- package/combobox/combobox-item-text.mjs +14 -0
- package/combobox/combobox-item.cjs +30 -0
- package/combobox/combobox-item.d.ts +8 -0
- package/combobox/combobox-item.mjs +26 -0
- package/combobox/combobox-label.cjs +2 -2
- package/combobox/combobox-label.mjs +2 -2
- package/combobox/combobox-positioner.cjs +2 -2
- package/combobox/combobox-positioner.mjs +2 -2
- package/combobox/combobox-trigger.cjs +2 -2
- package/combobox/combobox-trigger.mjs +2 -2
- package/combobox/combobox.cjs +6 -6
- package/combobox/combobox.d.ts +6 -6
- package/combobox/combobox.mjs +6 -6
- package/combobox/index.cjs +18 -17
- package/combobox/index.d.ts +16 -12
- package/combobox/index.mjs +11 -8
- package/combobox/use-combobox.cjs +12 -2
- package/combobox/use-combobox.d.ts +6 -4
- package/combobox/use-combobox.mjs +12 -2
- package/date-picker/date-picker-clear-trigger.cjs +3 -3
- package/date-picker/date-picker-clear-trigger.d.ts +2 -1
- package/date-picker/date-picker-clear-trigger.mjs +3 -3
- package/date-picker/date-picker-content.cjs +2 -2
- package/date-picker/date-picker-content.d.ts +2 -1
- package/date-picker/date-picker-content.mjs +2 -2
- package/date-picker/date-picker-control.cjs +2 -2
- package/date-picker/date-picker-control.d.ts +2 -1
- package/date-picker/date-picker-control.mjs +2 -2
- package/date-picker/date-picker-input.cjs +2 -2
- package/date-picker/date-picker-input.d.ts +2 -1
- package/date-picker/date-picker-input.mjs +2 -2
- package/date-picker/date-picker-label.cjs +16 -0
- package/date-picker/date-picker-label.d.ts +5 -0
- package/date-picker/date-picker-label.mjs +12 -0
- package/date-picker/date-picker-month-select.cjs +8 -14
- package/date-picker/date-picker-month-select.d.ts +2 -1
- package/date-picker/date-picker-month-select.mjs +8 -14
- package/date-picker/date-picker-next-trigger.cjs +4 -4
- package/date-picker/date-picker-next-trigger.d.ts +2 -1
- package/date-picker/date-picker-next-trigger.mjs +4 -4
- package/date-picker/date-picker-positioner.cjs +2 -2
- package/date-picker/date-picker-positioner.d.ts +2 -1
- package/date-picker/date-picker-positioner.mjs +2 -2
- package/date-picker/date-picker-prev-trigger.cjs +4 -4
- package/date-picker/date-picker-prev-trigger.d.ts +2 -1
- package/date-picker/date-picker-prev-trigger.mjs +4 -4
- package/date-picker/date-picker-range-text.cjs +20 -0
- package/date-picker/date-picker-range-text.d.ts +5 -0
- package/date-picker/date-picker-range-text.mjs +16 -0
- package/date-picker/date-picker-table-body.cjs +18 -0
- package/date-picker/date-picker-table-body.d.ts +5 -0
- package/date-picker/date-picker-table-body.mjs +14 -0
- package/date-picker/date-picker-table-cell-context.cjs +13 -0
- package/date-picker/date-picker-table-cell-context.d.ts +10 -0
- package/date-picker/date-picker-table-cell-context.mjs +8 -0
- package/date-picker/date-picker-table-cell-trigger.cjs +26 -0
- package/date-picker/date-picker-table-cell-trigger.d.ts +5 -0
- package/date-picker/date-picker-table-cell-trigger.mjs +22 -0
- package/date-picker/date-picker-table-cell.cjs +32 -0
- package/date-picker/date-picker-table-cell.d.ts +6 -0
- package/date-picker/date-picker-table-cell.mjs +28 -0
- package/date-picker/date-picker-table-context.cjs +13 -0
- package/date-picker/date-picker-table-context.d.ts +5 -0
- package/date-picker/date-picker-table-context.mjs +8 -0
- package/date-picker/date-picker-table-head.cjs +18 -0
- package/date-picker/date-picker-table-head.d.ts +5 -0
- package/date-picker/date-picker-table-head.mjs +14 -0
- package/date-picker/date-picker-table-header.cjs +18 -0
- package/date-picker/date-picker-table-header.d.ts +5 -0
- package/date-picker/date-picker-table-header.mjs +14 -0
- package/date-picker/date-picker-table-row.cjs +18 -0
- package/date-picker/date-picker-table-row.d.ts +5 -0
- package/date-picker/date-picker-table-row.mjs +14 -0
- package/date-picker/date-picker-table.cjs +34 -0
- package/date-picker/date-picker-table.d.ts +7 -0
- package/date-picker/date-picker-table.mjs +30 -0
- package/date-picker/date-picker-trigger.cjs +2 -2
- package/date-picker/date-picker-trigger.d.ts +2 -1
- package/date-picker/date-picker-trigger.mjs +2 -2
- package/date-picker/date-picker-view-context.cjs +13 -0
- package/date-picker/date-picker-view-context.d.ts +5 -0
- package/date-picker/date-picker-view-context.mjs +8 -0
- package/date-picker/date-picker-view-control.cjs +18 -0
- package/date-picker/date-picker-view-control.d.ts +5 -0
- package/date-picker/date-picker-view-control.mjs +14 -0
- package/date-picker/date-picker-view-trigger.cjs +4 -6
- package/date-picker/date-picker-view-trigger.d.ts +2 -3
- package/date-picker/date-picker-view-trigger.mjs +4 -6
- package/date-picker/date-picker-view.cjs +31 -0
- package/date-picker/date-picker-view.d.ts +9 -0
- package/date-picker/date-picker-view.mjs +27 -0
- package/date-picker/date-picker-year-select.cjs +11 -18
- package/date-picker/date-picker-year-select.d.ts +2 -6
- package/date-picker/date-picker-year-select.mjs +12 -18
- package/date-picker/date-picker.cjs +10 -3
- package/date-picker/date-picker.d.ts +4 -2
- package/date-picker/date-picker.mjs +11 -4
- package/date-picker/date-picker.stories.d.ts +0 -2
- package/date-picker/index.cjs +39 -39
- package/date-picker/index.d.ts +28 -28
- package/date-picker/index.mjs +26 -26
- package/date-picker/use-date-picker.cjs +5 -3
- package/date-picker/use-date-picker.d.ts +5 -2
- package/date-picker/use-date-picker.mjs +6 -4
- package/dialog/{dialog-container.cjs → dialog-positioner.cjs} +4 -4
- package/dialog/dialog-positioner.d.ts +4 -0
- package/dialog/{dialog-container.mjs → dialog-positioner.mjs} +4 -4
- package/dialog/dialog.cjs +1 -1
- package/dialog/dialog.mjs +1 -1
- package/dialog/index.cjs +6 -11
- package/dialog/index.d.ts +5 -6
- package/dialog/index.mjs +3 -4
- package/editable/editable.cjs +1 -1
- package/editable/editable.mjs +1 -1
- package/editable/index.cjs +3 -8
- package/editable/index.d.ts +3 -4
- package/editable/index.mjs +0 -1
- package/editable/use-editable.d.ts +2 -2
- package/environment/index.d.ts +2 -2
- package/hover-card/hover-card.cjs +1 -1
- package/hover-card/hover-card.mjs +1 -1
- package/hover-card/index.cjs +3 -8
- package/hover-card/index.d.ts +3 -4
- package/hover-card/index.mjs +0 -1
- package/index.cjs +162 -278
- package/index.d.ts +1 -3
- package/index.mjs +71 -94
- package/menu/index.cjs +3 -8
- package/menu/index.d.ts +3 -4
- package/menu/index.mjs +0 -1
- package/menu/menu-context.d.ts +1 -1
- package/menu/menu-option-item.cjs +2 -4
- package/menu/menu-option-item.d.ts +3 -7
- package/menu/menu-option-item.mjs +2 -4
- package/menu/menu.cjs +1 -1
- package/menu/menu.mjs +1 -1
- package/number-input/index.cjs +3 -8
- package/number-input/index.d.ts +3 -4
- package/number-input/index.mjs +0 -1
- package/number-input/number-input.cjs +1 -1
- package/number-input/number-input.mjs +1 -1
- package/package.json +58 -64
- package/pagination/index.cjs +9 -17
- package/pagination/index.d.ts +9 -14
- package/pagination/index.mjs +7 -12
- package/pagination/pagination-ellipsis.cjs +3 -3
- package/pagination/pagination-ellipsis.mjs +3 -3
- package/pagination/pagination-item.cjs +18 -0
- package/pagination/pagination-item.d.ts +6 -0
- package/pagination/pagination-item.mjs +14 -0
- package/pagination/pagination-next-trigger.cjs +16 -0
- package/pagination/pagination-next-trigger.d.ts +5 -0
- package/pagination/pagination-next-trigger.mjs +12 -0
- package/pagination/pagination-prev-trigger.cjs +16 -0
- package/pagination/pagination-prev-trigger.d.ts +5 -0
- package/pagination/pagination-prev-trigger.mjs +12 -0
- package/pagination/pagination.cjs +1 -1
- package/pagination/pagination.mjs +1 -1
- package/pin-input/index.cjs +3 -8
- package/pin-input/index.d.ts +3 -4
- package/pin-input/index.mjs +0 -1
- package/pin-input/pin-input-control.cjs +2 -13
- package/pin-input/pin-input-control.mjs +3 -14
- package/pin-input/pin-input.cjs +8 -3
- package/pin-input/pin-input.mjs +9 -4
- package/popover/index.cjs +6 -8
- package/popover/index.d.ts +5 -4
- package/popover/index.mjs +3 -2
- package/popover/popover-indicator.cjs +16 -0
- package/popover/popover-indicator.d.ts +4 -0
- package/popover/popover-indicator.mjs +12 -0
- package/popover/popover.cjs +1 -1
- package/popover/popover.mjs +1 -1
- package/presence/presence.stories.d.ts +1 -1
- package/radio-group/index.cjs +14 -17
- package/radio-group/index.d.ts +12 -11
- package/radio-group/index.mjs +11 -10
- package/radio-group/{radio-label.cjs → radio-group-indicator.cjs} +4 -6
- package/radio-group/radio-group-indicator.d.ts +4 -0
- package/radio-group/radio-group-indicator.mjs +12 -0
- package/radio-group/{radio-context.cjs → radio-group-item-context.cjs} +3 -4
- package/radio-group/radio-group-item-context.d.ts +4 -0
- package/radio-group/radio-group-item-context.mjs +8 -0
- package/radio-group/radio-group-item-control.cjs +23 -0
- package/radio-group/radio-group-item-control.d.ts +4 -0
- package/radio-group/radio-group-item-control.mjs +19 -0
- package/radio-group/radio-group-item-text.cjs +18 -0
- package/radio-group/radio-group-item-text.d.ts +4 -0
- package/radio-group/radio-group-item-text.mjs +14 -0
- package/radio-group/radio-group-item.cjs +24 -0
- package/radio-group/radio-group-item.d.ts +6 -0
- package/radio-group/radio-group-item.mjs +20 -0
- package/radio-group/radio-group-label.cjs +2 -2
- package/radio-group/radio-group-label.mjs +2 -2
- package/radio-group/radio-group.cjs +4 -4
- package/radio-group/radio-group.mjs +4 -4
- package/radio-group/radio-group.stories.d.ts +0 -1
- package/rating-group/index.cjs +5 -10
- package/rating-group/index.d.ts +6 -7
- package/rating-group/index.mjs +4 -5
- package/rating-group/rating-group-control.cjs +2 -2
- package/rating-group/rating-group-control.mjs +2 -2
- package/rating-group/rating-group-item-context.cjs +14 -0
- package/rating-group/rating-group-item-context.d.ts +4 -0
- package/rating-group/rating-group-item-context.mjs +9 -0
- package/rating-group/{rating.cjs → rating-group-item.cjs} +11 -11
- package/rating-group/rating-group-item.d.ts +9 -0
- package/rating-group/{rating.mjs → rating-group-item.mjs} +11 -11
- package/rating-group/rating-group-label.cjs +3 -3
- package/rating-group/rating-group-label.mjs +3 -3
- package/rating-group/rating-group.cjs +1 -1
- package/rating-group/rating-group.mjs +1 -1
- package/segment-group/index.cjs +12 -14
- package/segment-group/index.d.ts +11 -12
- package/segment-group/index.mjs +9 -10
- package/segment-group/segment-group-indicator.cjs +3 -3
- package/segment-group/segment-group-indicator.d.ts +1 -1
- package/segment-group/segment-group-indicator.mjs +4 -4
- package/segment-group/segment-group-item-context.cjs +15 -0
- package/segment-group/segment-group-item-context.d.ts +16 -0
- package/segment-group/segment-group-item-context.mjs +10 -0
- package/segment-group/segment-group-item-control.cjs +24 -0
- package/segment-group/segment-group-item-control.d.ts +4 -0
- package/segment-group/segment-group-item-control.mjs +20 -0
- package/segment-group/segment-group-item-text.cjs +19 -0
- package/segment-group/segment-group-item-text.d.ts +4 -0
- package/segment-group/segment-group-item-text.mjs +15 -0
- package/segment-group/segment-group-item.cjs +25 -0
- package/segment-group/segment-group-item.d.ts +6 -0
- package/segment-group/segment-group-item.mjs +21 -0
- package/segment-group/segment-group-label.cjs +3 -3
- package/segment-group/segment-group-label.mjs +4 -4
- package/segment-group/segment-group.cjs +4 -4
- package/segment-group/segment-group.mjs +5 -5
- package/select/index.cjs +33 -18
- package/select/index.d.ts +25 -12
- package/select/index.mjs +21 -9
- package/select/select-clear-trigger.cjs +16 -0
- package/select/select-clear-trigger.d.ts +4 -0
- package/select/select-clear-trigger.mjs +12 -0
- package/select/select-context.d.ts +3 -2
- package/select/select-control.cjs +16 -0
- package/select/select-control.d.ts +4 -0
- package/select/select-control.mjs +12 -0
- package/select/select-indicator.cjs +16 -0
- package/select/select-indicator.d.ts +4 -0
- package/select/select-indicator.mjs +12 -0
- package/select/select-item-context.cjs +13 -0
- package/select/select-item-context.d.ts +4 -0
- package/select/select-item-context.mjs +8 -0
- package/select/{select-option-group-label.cjs → select-item-group-label.cjs} +5 -5
- package/select/select-item-group-label.d.ts +6 -0
- package/select/{select-option-group-label.mjs → select-item-group-label.mjs} +5 -5
- package/select/{select-option-group.cjs → select-item-group.cjs} +5 -5
- package/select/select-item-group.d.ts +6 -0
- package/select/{select-option-group.mjs → select-item-group.mjs} +5 -5
- package/select/select-item-indicator.cjs +18 -0
- package/select/select-item-indicator.d.ts +4 -0
- package/select/select-item-indicator.mjs +14 -0
- package/select/select-item-text.cjs +18 -0
- package/select/select-item-text.d.ts +4 -0
- package/select/select-item-text.mjs +14 -0
- package/select/select-item.cjs +30 -0
- package/select/select-item.d.ts +8 -0
- package/select/select-item.mjs +26 -0
- package/select/select-label.cjs +2 -2
- package/select/select-label.mjs +2 -2
- package/select/select-positioner.cjs +2 -2
- package/select/select-positioner.mjs +2 -2
- package/select/select-trigger.cjs +2 -2
- package/select/select-trigger.mjs +2 -2
- package/select/select-value-text.cjs +21 -0
- package/select/select-value-text.d.ts +6 -0
- package/select/select-value-text.mjs +17 -0
- package/select/select.cjs +11 -4
- package/select/select.d.ts +6 -5
- package/select/select.mjs +12 -5
- package/select/select.test.d.ts +1 -0
- package/select/use-select.cjs +9 -1
- package/select/use-select.d.ts +6 -4
- package/select/use-select.mjs +9 -1
- package/setup-test.d.ts +2 -0
- package/slider/index.cjs +3 -8
- package/slider/index.d.ts +3 -4
- package/slider/index.mjs +0 -1
- package/slider/slider-control.cjs +2 -2
- package/slider/slider-control.mjs +2 -2
- package/slider/slider-label.cjs +2 -2
- package/slider/slider-label.mjs +2 -2
- package/slider/slider-marker-group.cjs +2 -2
- package/slider/slider-marker-group.mjs +2 -2
- package/slider/slider-marker.cjs +3 -3
- package/slider/slider-marker.d.ts +2 -5
- package/slider/slider-marker.mjs +3 -3
- package/slider/slider-range.cjs +3 -3
- package/slider/slider-range.mjs +3 -3
- package/slider/slider-thumb.cjs +4 -7
- package/slider/slider-thumb.d.ts +3 -1
- package/slider/slider-thumb.mjs +5 -8
- package/slider/slider-track.cjs +3 -3
- package/slider/slider-track.mjs +3 -3
- package/slider/slider.cjs +3 -3
- package/slider/slider.mjs +3 -3
- package/splitter/index.cjs +3 -8
- package/splitter/index.d.ts +3 -4
- package/splitter/index.mjs +0 -1
- package/splitter/splitter.cjs +1 -1
- package/splitter/splitter.mjs +1 -1
- package/spread.cjs +18 -14
- package/spread.mjs +18 -14
- package/spread.test.d.ts +1 -0
- package/switch/index.cjs +0 -5
- package/switch/index.d.ts +3 -4
- package/switch/index.mjs +0 -1
- package/switch/switch-control.cjs +2 -2
- package/switch/switch-control.mjs +2 -2
- package/switch/switch.cjs +3 -3
- package/switch/switch.mjs +3 -3
- package/switch/switch.stories.d.ts +1 -1
- package/tabs/index.cjs +3 -8
- package/tabs/index.d.ts +3 -4
- package/tabs/index.mjs +0 -1
- package/tabs/tabs.cjs +1 -1
- package/tabs/tabs.mjs +1 -1
- package/tags-input/index.cjs +21 -21
- package/tags-input/index.d.ts +13 -13
- package/tags-input/index.mjs +12 -10
- package/tags-input/tags-input-clear-trigger.cjs +3 -3
- package/tags-input/tags-input-clear-trigger.mjs +3 -3
- package/tags-input/tags-input-control.cjs +1 -6
- package/tags-input/tags-input-control.mjs +2 -7
- package/tags-input/{tags-input-field.cjs → tags-input-input.cjs} +2 -2
- package/tags-input/{tags-input-field.mjs → tags-input-input.mjs} +2 -2
- package/tags-input/tags-input-item-context.cjs +15 -0
- package/tags-input/tags-input-item-context.d.ts +4 -0
- package/tags-input/tags-input-item-context.mjs +10 -0
- package/tags-input/tags-input-item-delete-trigger.cjs +18 -0
- package/tags-input/tags-input-item-delete-trigger.d.ts +4 -0
- package/tags-input/tags-input-item-delete-trigger.mjs +14 -0
- package/tags-input/tags-input-item-input.cjs +19 -0
- package/tags-input/tags-input-item-input.d.ts +4 -0
- package/tags-input/tags-input-item-input.mjs +15 -0
- package/tags-input/tags-input-item-text.cjs +19 -0
- package/tags-input/tags-input-item-text.d.ts +4 -0
- package/tags-input/tags-input-item-text.mjs +15 -0
- package/tags-input/tags-input-item.cjs +30 -0
- package/tags-input/tags-input-item.d.ts +8 -0
- package/tags-input/tags-input-item.mjs +26 -0
- package/tags-input/tags-input-label.cjs +2 -2
- package/tags-input/tags-input-label.mjs +2 -2
- package/tags-input/tags-input.cjs +9 -4
- package/tags-input/tags-input.mjs +10 -5
- package/toast/create-toaster.cjs +88 -0
- package/toast/create-toaster.d.ts +16 -0
- package/toast/create-toaster.mjs +65 -0
- package/toast/index.cjs +4 -20
- package/toast/index.d.ts +5 -12
- package/toast/index.mjs +4 -12
- package/toast/toast-close-trigger.cjs +4 -4
- package/toast/toast-close-trigger.mjs +4 -4
- package/toast/toast-context.cjs +14 -0
- package/toast/toast-context.d.ts +6 -0
- package/toast/toast-context.mjs +9 -0
- package/toast/toast-description.cjs +4 -8
- package/toast/toast-description.d.ts +1 -1
- package/toast/toast-description.mjs +5 -9
- package/toast/toast-title.cjs +4 -8
- package/toast/toast-title.d.ts +1 -1
- package/toast/toast-title.mjs +5 -9
- package/toast/toast.cjs +4 -17
- package/toast/toast.d.ts +1 -3
- package/toast/toast.mjs +5 -18
- package/toast/toast.stories.d.ts +2 -7
- package/toast/toast.test.d.ts +2 -0
- package/toggle-group/index.cjs +16 -0
- package/toggle-group/index.d.ts +10 -0
- package/toggle-group/index.mjs +10 -0
- package/toggle-group/toggle-group-context.cjs +13 -0
- package/toggle-group/toggle-group-context.d.ts +4 -0
- package/toggle-group/toggle-group-context.mjs +8 -0
- package/toggle-group/toggle-group-item.cjs +18 -0
- package/toggle-group/toggle-group-item.d.ts +7 -0
- package/toggle-group/toggle-group-item.mjs +14 -0
- package/toggle-group/toggle-group.cjs +24 -0
- package/toggle-group/toggle-group.d.ts +6 -0
- package/toggle-group/toggle-group.mjs +20 -0
- package/toggle-group/toggle-group.stories.d.ts +9 -0
- package/toggle-group/toggle-group.test.d.ts +1 -0
- package/{range-slider/use-range-slider.cjs → toggle-group/use-toggle-group.cjs} +7 -7
- package/toggle-group/use-toggle-group.d.ts +7 -0
- package/toggle-group/use-toggle-group.mjs +16 -0
- package/tooltip/index.cjs +3 -8
- package/tooltip/index.d.ts +3 -4
- package/tooltip/index.mjs +0 -1
- package/tooltip/tooltip.cjs +1 -1
- package/tooltip/tooltip.mjs +1 -1
- package/types.d.ts +1 -0
- package/accordion/accordion-content.d.ts +0 -5
- package/accordion/accordion-trigger.d.ts +0 -4
- package/accordion/accordion.anatomy.d.ts +0 -1
- package/avatar/avatar.anatomy.d.ts +0 -1
- package/carousel/carousel-next-slide-trigger.d.ts +0 -4
- package/carousel/carousel-prev-slide-trigger.d.ts +0 -4
- package/carousel/carousel.anatomy.cjs +0 -10
- package/carousel/carousel.anatomy.d.ts +0 -3
- package/carousel/carousel.anatomy.mjs +0 -6
- package/checkbox/checkbox.anatomy.d.ts +0 -1
- package/color-picker/color-picker-area-gradient.cjs +0 -18
- package/color-picker/color-picker-area-gradient.d.ts +0 -4
- package/color-picker/color-picker-area-gradient.mjs +0 -14
- package/color-picker/color-picker-channel-slider-background.cjs +0 -18
- package/color-picker/color-picker-channel-slider-background.d.ts +0 -4
- package/color-picker/color-picker-channel-slider-background.mjs +0 -14
- package/color-picker/color-picker-swatch-background.d.ts +0 -4
- package/color-picker/color-picker-swatch-background.mjs +0 -14
- package/color-picker/color-picker-swatch-context.cjs +0 -13
- package/color-picker/color-picker-swatch-context.d.ts +0 -3
- package/color-picker/color-picker-swatch-context.mjs +0 -8
- package/color-picker/color-picker.anatomy.cjs +0 -11
- package/color-picker/color-picker.anatomy.d.ts +0 -3
- package/color-picker/color-picker.anatomy.mjs +0 -6
- package/combobox/combobox-option-group-label.d.ts +0 -6
- package/combobox/combobox-option-group.d.ts +0 -6
- package/combobox/combobox-option.cjs +0 -24
- package/combobox/combobox-option.d.ts +0 -6
- package/combobox/combobox-option.mjs +0 -20
- package/combobox/combobox.anatomy.d.ts +0 -1
- package/date-picker/date-picker-cell-context.cjs +0 -13
- package/date-picker/date-picker-cell-context.d.ts +0 -3
- package/date-picker/date-picker-cell-context.mjs +0 -8
- package/date-picker/date-picker-column-header.cjs +0 -13
- package/date-picker/date-picker-column-header.d.ts +0 -4
- package/date-picker/date-picker-column-header.mjs +0 -9
- package/date-picker/date-picker-day-cell-context.cjs +0 -15
- package/date-picker/date-picker-day-cell-context.d.ts +0 -3
- package/date-picker/date-picker-day-cell-context.mjs +0 -10
- package/date-picker/date-picker-day-cell-trigger.cjs +0 -18
- package/date-picker/date-picker-day-cell-trigger.d.ts +0 -4
- package/date-picker/date-picker-day-cell-trigger.mjs +0 -14
- package/date-picker/date-picker-day-cell.cjs +0 -24
- package/date-picker/date-picker-day-cell.d.ts +0 -6
- package/date-picker/date-picker-day-cell.mjs +0 -20
- package/date-picker/date-picker-grid.cjs +0 -23
- package/date-picker/date-picker-grid.d.ts +0 -6
- package/date-picker/date-picker-grid.mjs +0 -19
- package/date-picker/date-picker-month-cell-trigger.cjs +0 -18
- package/date-picker/date-picker-month-cell-trigger.d.ts +0 -4
- package/date-picker/date-picker-month-cell-trigger.mjs +0 -14
- package/date-picker/date-picker-month-cell.cjs +0 -24
- package/date-picker/date-picker-month-cell.d.ts +0 -6
- package/date-picker/date-picker-month-cell.mjs +0 -20
- package/date-picker/date-picker-row-group.cjs +0 -13
- package/date-picker/date-picker-row-group.d.ts +0 -4
- package/date-picker/date-picker-row-group.mjs +0 -9
- package/date-picker/date-picker-row-header.cjs +0 -22
- package/date-picker/date-picker-row-header.d.ts +0 -4
- package/date-picker/date-picker-row-header.mjs +0 -18
- package/date-picker/date-picker-row.cjs +0 -13
- package/date-picker/date-picker-row.d.ts +0 -4
- package/date-picker/date-picker-row.mjs +0 -9
- package/date-picker/date-picker-year-cell-trigger.cjs +0 -18
- package/date-picker/date-picker-year-cell-trigger.d.ts +0 -4
- package/date-picker/date-picker-year-cell-trigger.mjs +0 -14
- package/date-picker/date-picker-year-cell.cjs +0 -24
- package/date-picker/date-picker-year-cell.d.ts +0 -6
- package/date-picker/date-picker-year-cell.mjs +0 -20
- package/date-picker/date-picker.anatomy.cjs +0 -11
- package/date-picker/date-picker.anatomy.d.ts +0 -3
- package/date-picker/date-picker.anatomy.mjs +0 -6
- package/dialog/dialog-container.d.ts +0 -4
- package/dialog/dialog.anatomy.d.ts +0 -1
- package/editable/editable.anatomy.d.ts +0 -1
- package/filter-props.cjs +0 -28
- package/filter-props.d.ts +0 -2
- package/filter-props.mjs +0 -23
- package/hover-card/hover-card.anatomy.d.ts +0 -1
- package/menu/menu.anatomy.d.ts +0 -1
- package/number-input/number-input.anatomy.d.ts +0 -1
- package/pagination/pagination-list-item.cjs +0 -11
- package/pagination/pagination-list-item.d.ts +0 -4
- package/pagination/pagination-list-item.mjs +0 -7
- package/pagination/pagination-list.cjs +0 -11
- package/pagination/pagination-list.d.ts +0 -4
- package/pagination/pagination-list.mjs +0 -7
- package/pagination/pagination-next-page-trigger.cjs +0 -26
- package/pagination/pagination-next-page-trigger.d.ts +0 -6
- package/pagination/pagination-next-page-trigger.mjs +0 -22
- package/pagination/pagination-page-trigger.cjs +0 -31
- package/pagination/pagination-page-trigger.d.ts +0 -10
- package/pagination/pagination-page-trigger.mjs +0 -27
- package/pagination/pagination-prev-page-trigger.cjs +0 -26
- package/pagination/pagination-prev-page-trigger.d.ts +0 -6
- package/pagination/pagination-prev-page-trigger.mjs +0 -22
- package/pagination/pagination.anatomy.cjs +0 -11
- package/pagination/pagination.anatomy.d.ts +0 -3
- package/pagination/pagination.anatomy.mjs +0 -6
- package/pin-input/pin-input.anatomy.d.ts +0 -1
- package/popover/popover.anatomy.d.ts +0 -1
- package/pressable/index.cjs +0 -13
- package/pressable/index.d.ts +0 -8
- package/pressable/index.mjs +0 -8
- package/pressable/pressable.cjs +0 -18
- package/pressable/pressable.d.ts +0 -6
- package/pressable/pressable.mjs +0 -14
- package/pressable/pressable.stories.d.ts +0 -5
- package/pressable/use-pressable.cjs +0 -42
- package/pressable/use-pressable.d.ts +0 -7
- package/pressable/use-pressable.mjs +0 -19
- package/prop-trap.cjs +0 -37
- package/prop-trap.mjs +0 -33
- package/radio-group/radio-context.d.ts +0 -14
- package/radio-group/radio-context.mjs +0 -9
- package/radio-group/radio-control.cjs +0 -23
- package/radio-group/radio-control.d.ts +0 -4
- package/radio-group/radio-control.mjs +0 -19
- package/radio-group/radio-group.anatomy.d.ts +0 -1
- package/radio-group/radio-label.d.ts +0 -4
- package/radio-group/radio-label.mjs +0 -14
- package/radio-group/radio.cjs +0 -24
- package/radio-group/radio.d.ts +0 -6
- package/radio-group/radio.mjs +0 -20
- package/range-slider/index.cjs +0 -42
- package/range-slider/index.d.ts +0 -25
- package/range-slider/index.mjs +0 -25
- package/range-slider/range-slider-context.cjs +0 -13
- package/range-slider/range-slider-context.d.ts +0 -4
- package/range-slider/range-slider-context.mjs +0 -8
- package/range-slider/range-slider-control.cjs +0 -16
- package/range-slider/range-slider-control.d.ts +0 -4
- package/range-slider/range-slider-control.mjs +0 -12
- package/range-slider/range-slider-label.cjs +0 -16
- package/range-slider/range-slider-label.d.ts +0 -4
- package/range-slider/range-slider-label.mjs +0 -12
- package/range-slider/range-slider-marker-group.cjs +0 -16
- package/range-slider/range-slider-marker-group.d.ts +0 -4
- package/range-slider/range-slider-marker-group.mjs +0 -12
- package/range-slider/range-slider-marker.cjs +0 -18
- package/range-slider/range-slider-marker.d.ts +0 -9
- package/range-slider/range-slider-marker.mjs +0 -14
- package/range-slider/range-slider-output.cjs +0 -22
- package/range-slider/range-slider-output.d.ts +0 -8
- package/range-slider/range-slider-output.mjs +0 -18
- package/range-slider/range-slider-range.cjs +0 -16
- package/range-slider/range-slider-range.d.ts +0 -4
- package/range-slider/range-slider-range.mjs +0 -12
- package/range-slider/range-slider-thumb.cjs +0 -23
- package/range-slider/range-slider-thumb.d.ts +0 -9
- package/range-slider/range-slider-thumb.mjs +0 -19
- package/range-slider/range-slider-track.cjs +0 -16
- package/range-slider/range-slider-track.d.ts +0 -4
- package/range-slider/range-slider-track.mjs +0 -12
- package/range-slider/range-slider.anatomy.d.ts +0 -1
- package/range-slider/range-slider.cjs +0 -28
- package/range-slider/range-slider.d.ts +0 -8
- package/range-slider/range-slider.mjs +0 -24
- package/range-slider/range-slider.stories.d.ts +0 -5
- package/range-slider/use-range-slider.d.ts +0 -7
- package/range-slider/use-range-slider.mjs +0 -16
- package/rating-group/rating-context.cjs +0 -14
- package/rating-group/rating-context.d.ts +0 -4
- package/rating-group/rating-context.mjs +0 -9
- package/rating-group/rating-group.anatomy.d.ts +0 -1
- package/rating-group/rating.d.ts +0 -10
- package/segment-group/segment-context.cjs +0 -14
- package/segment-group/segment-context.d.ts +0 -14
- package/segment-group/segment-context.mjs +0 -9
- package/segment-group/segment-control.cjs +0 -24
- package/segment-group/segment-control.d.ts +0 -4
- package/segment-group/segment-control.mjs +0 -20
- package/segment-group/segment-group.anatomy.cjs +0 -11
- package/segment-group/segment-group.anatomy.d.ts +0 -3
- package/segment-group/segment-group.anatomy.mjs +0 -6
- package/segment-group/segment-label.cjs +0 -19
- package/segment-group/segment-label.d.ts +0 -4
- package/segment-group/segment-label.mjs +0 -15
- package/segment-group/segment.cjs +0 -25
- package/segment-group/segment.d.ts +0 -6
- package/segment-group/segment.mjs +0 -21
- package/select/select-option-group-label.d.ts +0 -9
- package/select/select-option-group.d.ts +0 -9
- package/select/select-option.cjs +0 -22
- package/select/select-option.d.ts +0 -6
- package/select/select-option.mjs +0 -18
- package/select/select.anatomy.d.ts +0 -1
- package/slider/slider.anatomy.d.ts +0 -1
- package/splitter/splitter.anatomy.d.ts +0 -1
- package/switch/switch.anatomy.d.ts +0 -1
- package/tabs/tabs.anatomy.d.ts +0 -1
- package/tags-input/tag-delete-trigger.cjs +0 -18
- package/tags-input/tag-delete-trigger.d.ts +0 -6
- package/tags-input/tag-delete-trigger.mjs +0 -14
- package/tags-input/tag-input.cjs +0 -18
- package/tags-input/tag-input.d.ts +0 -6
- package/tags-input/tag-input.mjs +0 -14
- package/tags-input/tag.cjs +0 -18
- package/tags-input/tag.d.ts +0 -9
- package/tags-input/tag.mjs +0 -14
- package/tags-input/tags-input.anatomy.d.ts +0 -1
- package/toast/toast-group.cjs +0 -27
- package/toast/toast-group.d.ts +0 -13
- package/toast/toast-group.mjs +0 -23
- package/toast/toast-item-context.cjs +0 -13
- package/toast/toast-item-context.d.ts +0 -4
- package/toast/toast-item-context.mjs +0 -8
- package/toast/toast-placements.cjs +0 -17
- package/toast/toast-placements.d.ts +0 -6
- package/toast/toast-placements.mjs +0 -13
- package/toast/toast-provider.cjs +0 -53
- package/toast/toast-provider.d.ts +0 -12
- package/toast/toast-provider.mjs +0 -28
- package/toast/toast.anatomy.d.ts +0 -1
- package/toast/use-toast-item.cjs +0 -33
- package/toast/use-toast-item.d.ts +0 -8
- package/toast/use-toast-item.mjs +0 -10
- /package/{pressable/pressable.test.d.ts → avatar/avatar.test.d.ts} +0 -0
- /package/{range-slider/range-slider.test.d.ts → date-picker/date-picker.test.d.ts} +0 -0
- /package/tags-input/{tags-input-field.d.ts → tags-input-input.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/solid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accordion",
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
"pin input",
|
|
21
21
|
"popover",
|
|
22
22
|
"presence",
|
|
23
|
-
"pressable",
|
|
24
23
|
"radio group",
|
|
25
|
-
"range slider",
|
|
26
24
|
"rating group",
|
|
27
25
|
"segment group",
|
|
28
26
|
"select",
|
|
@@ -32,6 +30,7 @@
|
|
|
32
30
|
"tabs",
|
|
33
31
|
"tags input",
|
|
34
32
|
"toast",
|
|
33
|
+
"toggle group",
|
|
35
34
|
"tooltip"
|
|
36
35
|
],
|
|
37
36
|
"homepage": "https://ark-ui.com",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"repository": {
|
|
44
43
|
"type": "git",
|
|
45
44
|
"url": "git+https://github.com/chakra-ui/ark.git",
|
|
46
|
-
"directory": "packages/solid"
|
|
45
|
+
"directory": "packages/frameworks/solid"
|
|
47
46
|
},
|
|
48
47
|
"bugs": {
|
|
49
48
|
"url": "https://github.com/chakra-ui/ark/issues"
|
|
@@ -57,71 +56,71 @@
|
|
|
57
56
|
"storydocs": "pnpm --filter=@ark-ui/scripts document:stories solid",
|
|
58
57
|
"typedocs": "pnpm --filter=@ark-ui/scripts document:types solid",
|
|
59
58
|
"storybook": "storybook dev -p 6006",
|
|
60
|
-
"release-it": "release-it --config
|
|
59
|
+
"release-it": "release-it --config ../../../release-it.json"
|
|
61
60
|
},
|
|
62
61
|
"dependencies": {
|
|
63
|
-
"@
|
|
64
|
-
"@zag-js/
|
|
65
|
-
"@zag-js/
|
|
66
|
-
"@zag-js/
|
|
67
|
-
"@zag-js/
|
|
68
|
-
"@zag-js/
|
|
69
|
-
"@zag-js/
|
|
70
|
-
"@zag-js/
|
|
71
|
-
"@zag-js/
|
|
72
|
-
"@zag-js/
|
|
73
|
-
"@zag-js/
|
|
74
|
-
"@zag-js/
|
|
75
|
-
"@zag-js/
|
|
76
|
-
"@zag-js/
|
|
77
|
-
"@zag-js/
|
|
78
|
-
"@zag-js/
|
|
79
|
-
"@zag-js/
|
|
80
|
-
"@zag-js/
|
|
81
|
-
"@zag-js/radio-group": "0.
|
|
82
|
-
"@zag-js/
|
|
83
|
-
"@zag-js/
|
|
84
|
-
"@zag-js/
|
|
85
|
-
"@zag-js/
|
|
86
|
-
"@zag-js/
|
|
87
|
-
"@zag-js/
|
|
88
|
-
"@zag-js/
|
|
89
|
-
"@zag-js/
|
|
90
|
-
"@zag-js/
|
|
91
|
-
"@zag-js/
|
|
92
|
-
"@zag-js/tooltip": "0.
|
|
93
|
-
"@zag-js/types": "0.
|
|
62
|
+
"@ark-ui/anatomy": "workspace:*",
|
|
63
|
+
"@zag-js/accordion": "0.26.0",
|
|
64
|
+
"@zag-js/anatomy": "0.26.0",
|
|
65
|
+
"@zag-js/avatar": "0.26.0",
|
|
66
|
+
"@zag-js/carousel": "0.26.0",
|
|
67
|
+
"@zag-js/checkbox": "0.26.0",
|
|
68
|
+
"@zag-js/color-picker": "0.26.0",
|
|
69
|
+
"@zag-js/combobox": "0.26.0",
|
|
70
|
+
"@zag-js/date-picker": "0.26.0",
|
|
71
|
+
"@zag-js/dialog": "0.26.0",
|
|
72
|
+
"@zag-js/editable": "0.26.0",
|
|
73
|
+
"@zag-js/hover-card": "0.26.0",
|
|
74
|
+
"@zag-js/menu": "0.26.0",
|
|
75
|
+
"@zag-js/number-input": "0.26.0",
|
|
76
|
+
"@zag-js/pagination": "0.26.0",
|
|
77
|
+
"@zag-js/pin-input": "0.26.0",
|
|
78
|
+
"@zag-js/popover": "0.26.0",
|
|
79
|
+
"@zag-js/presence": "0.26.0",
|
|
80
|
+
"@zag-js/radio-group": "0.26.0",
|
|
81
|
+
"@zag-js/rating-group": "0.26.0",
|
|
82
|
+
"@zag-js/select": "0.26.0",
|
|
83
|
+
"@zag-js/slider": "0.26.0",
|
|
84
|
+
"@zag-js/solid": "0.26.0",
|
|
85
|
+
"@zag-js/splitter": "0.26.0",
|
|
86
|
+
"@zag-js/switch": "0.26.0",
|
|
87
|
+
"@zag-js/tabs": "0.26.0",
|
|
88
|
+
"@zag-js/tags-input": "0.26.0",
|
|
89
|
+
"@zag-js/toast": "0.26.0",
|
|
90
|
+
"@zag-js/toggle-group": "0.26.0",
|
|
91
|
+
"@zag-js/tooltip": "0.26.0",
|
|
92
|
+
"@zag-js/types": "0.26.0"
|
|
94
93
|
},
|
|
95
94
|
"devDependencies": {
|
|
96
95
|
"@release-it/keep-a-changelog": "4.0.0",
|
|
97
96
|
"@solidjs/testing-library": "0.8.4",
|
|
98
|
-
"@storybook/addon-essentials": "7.4.
|
|
99
|
-
"@storybook/addon-interactions": "7.4.
|
|
100
|
-
"@storybook/addon-links": "7.4.
|
|
101
|
-
"@storybook/blocks": "7.4.
|
|
102
|
-
"@storybook/testing-library": "0.2.
|
|
103
|
-
"@testing-library/dom": "9.3.
|
|
104
|
-
"@testing-library/jest-dom": "6.1.
|
|
105
|
-
"@testing-library/user-event": "14.
|
|
106
|
-
"@types/jsdom": "21.1.
|
|
97
|
+
"@storybook/addon-essentials": "7.4.6",
|
|
98
|
+
"@storybook/addon-interactions": "7.4.6",
|
|
99
|
+
"@storybook/addon-links": "7.4.6",
|
|
100
|
+
"@storybook/blocks": "7.4.6",
|
|
101
|
+
"@storybook/testing-library": "0.2.2",
|
|
102
|
+
"@testing-library/dom": "9.3.3",
|
|
103
|
+
"@testing-library/jest-dom": "6.1.4",
|
|
104
|
+
"@testing-library/user-event": "14.5.1",
|
|
105
|
+
"@types/jsdom": "21.1.3",
|
|
107
106
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
108
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
109
|
-
"@typescript-eslint/parser": "6.
|
|
107
|
+
"@typescript-eslint/eslint-plugin": "6.7.5",
|
|
108
|
+
"@typescript-eslint/parser": "6.7.5",
|
|
110
109
|
"@vitest/coverage-v8": "0.34.3",
|
|
111
|
-
"eslint": "8.
|
|
110
|
+
"eslint": "8.51.0",
|
|
112
111
|
"globby": "13.2.2",
|
|
113
112
|
"jsdom": "22.1.0",
|
|
114
113
|
"react": "18.2.0",
|
|
115
114
|
"react-dom": "18.2.0",
|
|
116
|
-
"release-it": "16.1
|
|
117
|
-
"solid-js": "1.
|
|
118
|
-
"storybook": "7.4.
|
|
115
|
+
"release-it": "16.2.1",
|
|
116
|
+
"solid-js": "1.8.1",
|
|
117
|
+
"storybook": "7.4.6",
|
|
119
118
|
"storybook-solidjs": "1.0.0-beta.2",
|
|
120
119
|
"storybook-solidjs-vite": "1.0.0-beta.2",
|
|
121
120
|
"typescript": "5.2.2",
|
|
122
|
-
"vite": "4.4.
|
|
123
|
-
"vite-plugin-dts": "3.
|
|
124
|
-
"vite-plugin-solid": "2.7.
|
|
121
|
+
"vite": "4.4.11",
|
|
122
|
+
"vite-plugin-dts": "3.6.0",
|
|
123
|
+
"vite-plugin-solid": "2.7.1",
|
|
125
124
|
"vitest": "0.34.2"
|
|
126
125
|
},
|
|
127
126
|
"peerDependencies": {
|
|
@@ -224,21 +223,11 @@
|
|
|
224
223
|
"import": "./presence/index.mjs",
|
|
225
224
|
"require": "./presence/index.cjs"
|
|
226
225
|
},
|
|
227
|
-
"./pressable": {
|
|
228
|
-
"types": "./pressable/index.d.ts",
|
|
229
|
-
"import": "./pressable/index.mjs",
|
|
230
|
-
"require": "./pressable/index.cjs"
|
|
231
|
-
},
|
|
232
226
|
"./radio-group": {
|
|
233
227
|
"types": "./radio-group/index.d.ts",
|
|
234
228
|
"import": "./radio-group/index.mjs",
|
|
235
229
|
"require": "./radio-group/index.cjs"
|
|
236
230
|
},
|
|
237
|
-
"./range-slider": {
|
|
238
|
-
"types": "./range-slider/index.d.ts",
|
|
239
|
-
"import": "./range-slider/index.mjs",
|
|
240
|
-
"require": "./range-slider/index.cjs"
|
|
241
|
-
},
|
|
242
231
|
"./rating-group": {
|
|
243
232
|
"types": "./rating-group/index.d.ts",
|
|
244
233
|
"import": "./rating-group/index.mjs",
|
|
@@ -284,6 +273,11 @@
|
|
|
284
273
|
"import": "./toast/index.mjs",
|
|
285
274
|
"require": "./toast/index.cjs"
|
|
286
275
|
},
|
|
276
|
+
"./toggle-group": {
|
|
277
|
+
"types": "./toggle-group/index.d.ts",
|
|
278
|
+
"import": "./toggle-group/index.mjs",
|
|
279
|
+
"require": "./toggle-group/index.cjs"
|
|
280
|
+
},
|
|
287
281
|
"./tooltip": {
|
|
288
282
|
"types": "./tooltip/index.d.ts",
|
|
289
283
|
"import": "./tooltip/index.mjs",
|
package/pagination/index.cjs
CHANGED
|
@@ -5,29 +5,21 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const pagination = require('./pagination.cjs');
|
|
6
6
|
const paginationContext = require('./pagination-context.cjs');
|
|
7
7
|
const paginationEllipsis = require('./pagination-ellipsis.cjs');
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const paginationPageTrigger = require('./pagination-page-trigger.cjs');
|
|
12
|
-
const paginationPrevPageTrigger = require('./pagination-prev-page-trigger.cjs');
|
|
13
|
-
const pagination_anatomy = require('./pagination.anatomy.cjs');
|
|
8
|
+
const paginationItem = require('./pagination-item.cjs');
|
|
9
|
+
const paginationNextTrigger = require('./pagination-next-trigger.cjs');
|
|
10
|
+
const paginationPrevTrigger = require('./pagination-prev-trigger.cjs');
|
|
14
11
|
|
|
15
12
|
const Pagination = Object.assign(pagination.Pagination, {
|
|
16
13
|
Root: pagination.Pagination,
|
|
17
14
|
Ellipsis: paginationEllipsis.PaginationEllipsis,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
PageTrigger: paginationPageTrigger.PaginationPageTrigger,
|
|
22
|
-
PrevPageTrigger: paginationPrevPageTrigger.PaginationPrevPageTrigger
|
|
15
|
+
Item: paginationItem.PaginationItem,
|
|
16
|
+
NextTrigger: paginationNextTrigger.PaginationNextTrigger,
|
|
17
|
+
PrevTrigger: paginationPrevTrigger.PaginationPrevTrigger
|
|
23
18
|
});
|
|
24
19
|
|
|
25
20
|
exports.usePaginationContext = paginationContext.usePaginationContext;
|
|
26
21
|
exports.PaginationEllipsis = paginationEllipsis.PaginationEllipsis;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.PaginationPageTrigger = paginationPageTrigger.PaginationPageTrigger;
|
|
31
|
-
exports.PaginationPrevPageTrigger = paginationPrevPageTrigger.PaginationPrevPageTrigger;
|
|
32
|
-
exports.paginationAnatomy = pagination_anatomy.paginationAnatomy;
|
|
22
|
+
exports.PaginationItem = paginationItem.PaginationItem;
|
|
23
|
+
exports.PaginationNextTrigger = paginationNextTrigger.PaginationNextTrigger;
|
|
24
|
+
exports.PaginationPrevTrigger = paginationPrevTrigger.PaginationPrevTrigger;
|
|
33
25
|
exports.Pagination = Pagination;
|
package/pagination/index.d.ts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { JSX } from 'solid-js';
|
|
2
2
|
import { type PaginationProps } from './pagination';
|
|
3
|
-
import { usePaginationContext } from './pagination-context';
|
|
3
|
+
import { usePaginationContext, type PaginationContext } from './pagination-context';
|
|
4
4
|
import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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';
|
|
5
|
+
import { PaginationItem, type PaginationItemProps } from './pagination-item';
|
|
6
|
+
import { PaginationNextTrigger, type PaginationNextTriggerProps } from './pagination-next-trigger';
|
|
7
|
+
import { PaginationPrevTrigger, type PaginationPrevTriggerProps } from './pagination-prev-trigger';
|
|
11
8
|
declare const Pagination: ((props: PaginationProps) => JSX.Element) & {
|
|
12
9
|
Root: (props: PaginationProps) => JSX.Element;
|
|
13
10
|
Ellipsis: (props: PaginationEllipsisProps) => JSX.Element;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PageTrigger: (props: PaginationPageTriggerProps) => JSX.Element;
|
|
18
|
-
PrevPageTrigger: (props: PaginationPrevPageTriggerProps) => JSX.Element;
|
|
11
|
+
Item: (props: PaginationItemProps) => JSX.Element;
|
|
12
|
+
NextTrigger: (props: PaginationNextTriggerProps) => JSX.Element;
|
|
13
|
+
PrevTrigger: (props: PaginationPrevTriggerProps) => JSX.Element;
|
|
19
14
|
};
|
|
20
|
-
export { Pagination, PaginationEllipsis,
|
|
21
|
-
export type {
|
|
15
|
+
export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, usePaginationContext, };
|
|
16
|
+
export type { PaginationContext, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationProps, };
|
package/pagination/index.mjs
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { Pagination as Pagination$1 } from './pagination.mjs';
|
|
2
2
|
export { usePaginationContext } from './pagination-context.mjs';
|
|
3
3
|
import { PaginationEllipsis } from './pagination-ellipsis.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { PaginationPageTrigger } from './pagination-page-trigger.mjs';
|
|
8
|
-
import { PaginationPrevPageTrigger } from './pagination-prev-page-trigger.mjs';
|
|
9
|
-
export { paginationAnatomy } from './pagination.anatomy.mjs';
|
|
4
|
+
import { PaginationItem } from './pagination-item.mjs';
|
|
5
|
+
import { PaginationNextTrigger } from './pagination-next-trigger.mjs';
|
|
6
|
+
import { PaginationPrevTrigger } from './pagination-prev-trigger.mjs';
|
|
10
7
|
|
|
11
8
|
const Pagination = Object.assign(Pagination$1, {
|
|
12
9
|
Root: Pagination$1,
|
|
13
10
|
Ellipsis: PaginationEllipsis,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
PageTrigger: PaginationPageTrigger,
|
|
18
|
-
PrevPageTrigger: PaginationPrevPageTrigger
|
|
11
|
+
Item: PaginationItem,
|
|
12
|
+
NextTrigger: PaginationNextTrigger,
|
|
13
|
+
PrevTrigger: PaginationPrevTrigger
|
|
19
14
|
});
|
|
20
15
|
|
|
21
|
-
export { Pagination, PaginationEllipsis,
|
|
16
|
+
export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger };
|
|
@@ -9,10 +9,10 @@ const factory = require('../factory.cjs');
|
|
|
9
9
|
const paginationContext = require('./pagination-context.cjs');
|
|
10
10
|
|
|
11
11
|
const PaginationEllipsis = props => {
|
|
12
|
-
const [
|
|
12
|
+
const [ellipsisProps, restProps] = createSplitProps.createSplitProps()(props, ['index']);
|
|
13
13
|
const api = paginationContext.usePaginationContext();
|
|
14
|
-
const
|
|
15
|
-
return web.createComponent(factory.ark.div,
|
|
14
|
+
const mergedProps = solid.mergeProps(() => api().getEllipsisProps(ellipsisProps), restProps);
|
|
15
|
+
return web.createComponent(factory.ark.div, mergedProps);
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
exports.PaginationEllipsis = PaginationEllipsis;
|
|
@@ -5,10 +5,10 @@ import { ark } from '../factory.mjs';
|
|
|
5
5
|
import { usePaginationContext } from './pagination-context.mjs';
|
|
6
6
|
|
|
7
7
|
const PaginationEllipsis = props => {
|
|
8
|
-
const [
|
|
8
|
+
const [ellipsisProps, restProps] = createSplitProps()(props, ['index']);
|
|
9
9
|
const api = usePaginationContext();
|
|
10
|
-
const
|
|
11
|
-
return createComponent(ark.div,
|
|
10
|
+
const mergedProps = mergeProps(() => api().getEllipsisProps(ellipsisProps), restProps);
|
|
11
|
+
return createComponent(ark.div, mergedProps);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { PaginationEllipsis };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
8
|
+
const factory = require('../factory.cjs');
|
|
9
|
+
const paginationContext = require('./pagination-context.cjs');
|
|
10
|
+
|
|
11
|
+
const PaginationItem = props => {
|
|
12
|
+
const [itemProps, localProps] = createSplitProps.createSplitProps()(props, ['value', 'type']);
|
|
13
|
+
const api = paginationContext.usePaginationContext();
|
|
14
|
+
const mergedProps = solid.mergeProps(() => api().getItemProps(itemProps), localProps);
|
|
15
|
+
return web.createComponent(factory.ark.button, mergedProps);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
exports.PaginationItem = PaginationItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import type { ItemProps } from '@zag-js/pagination';
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
import type { Assign } from '../types';
|
|
5
|
+
export type PaginationItemProps = Assign<HTMLArkProps<'button'>, ItemProps>;
|
|
6
|
+
export declare const PaginationItem: (props: PaginationItemProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
4
|
+
import { ark } from '../factory.mjs';
|
|
5
|
+
import { usePaginationContext } from './pagination-context.mjs';
|
|
6
|
+
|
|
7
|
+
const PaginationItem = props => {
|
|
8
|
+
const [itemProps, localProps] = createSplitProps()(props, ['value', 'type']);
|
|
9
|
+
const api = usePaginationContext();
|
|
10
|
+
const mergedProps = mergeProps(() => api().getItemProps(itemProps), localProps);
|
|
11
|
+
return createComponent(ark.button, mergedProps);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { PaginationItem };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const factory = require('../factory.cjs');
|
|
8
|
+
const paginationContext = require('./pagination-context.cjs');
|
|
9
|
+
|
|
10
|
+
const PaginationNextTrigger = props => {
|
|
11
|
+
const api = paginationContext.usePaginationContext();
|
|
12
|
+
const mergedProps = solid.mergeProps(() => api().nextTriggerProps, props);
|
|
13
|
+
return web.createComponent(factory.ark.button, mergedProps);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.PaginationNextTrigger = PaginationNextTrigger;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { ark } from '../factory.mjs';
|
|
4
|
+
import { usePaginationContext } from './pagination-context.mjs';
|
|
5
|
+
|
|
6
|
+
const PaginationNextTrigger = props => {
|
|
7
|
+
const api = usePaginationContext();
|
|
8
|
+
const mergedProps = mergeProps(() => api().nextTriggerProps, props);
|
|
9
|
+
return createComponent(ark.button, mergedProps);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { PaginationNextTrigger };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const web = require('solid-js/web');
|
|
6
|
+
const solid = require('@zag-js/solid');
|
|
7
|
+
const factory = require('../factory.cjs');
|
|
8
|
+
const paginationContext = require('./pagination-context.cjs');
|
|
9
|
+
|
|
10
|
+
const PaginationPrevTrigger = props => {
|
|
11
|
+
const api = paginationContext.usePaginationContext();
|
|
12
|
+
const mergedProps = solid.mergeProps(() => api().prevTriggerProps, props);
|
|
13
|
+
return web.createComponent(factory.ark.button, mergedProps);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.PaginationPrevTrigger = PaginationPrevTrigger;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
|
+
import { mergeProps } from '@zag-js/solid';
|
|
3
|
+
import { ark } from '../factory.mjs';
|
|
4
|
+
import { usePaginationContext } from './pagination-context.mjs';
|
|
5
|
+
|
|
6
|
+
const PaginationPrevTrigger = props => {
|
|
7
|
+
const api = usePaginationContext();
|
|
8
|
+
const mergedProps = mergeProps(() => api().prevTriggerProps, props);
|
|
9
|
+
return createComponent(ark.button, mergedProps);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { PaginationPrevTrigger };
|
|
@@ -12,7 +12,7 @@ const paginationContext = require('./pagination-context.cjs');
|
|
|
12
12
|
const usePagination = require('./use-pagination.cjs');
|
|
13
13
|
|
|
14
14
|
const Pagination = props => {
|
|
15
|
-
const [paginationParams, restProps] = createSplitProps.createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', '
|
|
15
|
+
const [paginationParams, restProps] = createSplitProps.createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
16
16
|
const [childrenProps, localProps] = solidJs.splitProps(restProps, ['children']);
|
|
17
17
|
const api = usePagination.usePagination(paginationParams);
|
|
18
18
|
const getChildren = () => runIfFn.runIfFn(childrenProps.children, api);
|
|
@@ -8,7 +8,7 @@ import { PaginationProvider } from './pagination-context.mjs';
|
|
|
8
8
|
import { usePagination } from './use-pagination.mjs';
|
|
9
9
|
|
|
10
10
|
const Pagination = props => {
|
|
11
|
-
const [paginationParams, restProps] = createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', '
|
|
11
|
+
const [paginationParams, restProps] = createSplitProps()(props, ['count', 'dir', 'getRootNode', 'id', 'ids', 'onPageChange', 'page', 'pageSize', 'siblingCount', 'translations', 'type']);
|
|
12
12
|
const [childrenProps, localProps] = splitProps(restProps, ['children']);
|
|
13
13
|
const api = usePagination(paginationParams);
|
|
14
14
|
const getChildren = () => runIfFn(childrenProps.children, api);
|
package/pin-input/index.cjs
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const pinInput
|
|
5
|
+
const pinInput = 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 = require('@zag-js/pin-input');
|
|
11
10
|
|
|
12
|
-
const PinInput = Object.assign(pinInput
|
|
13
|
-
Root: pinInput
|
|
11
|
+
const PinInput = Object.assign(pinInput.PinInput, {
|
|
12
|
+
Root: pinInput.PinInput,
|
|
14
13
|
Control: pinInputControl.PinInputControl,
|
|
15
14
|
Input: pinInputField.PinInputInput,
|
|
16
15
|
Label: pinInputLabel.PinInputLabel
|
|
@@ -20,8 +19,4 @@ exports.usePinInputContext = pinInputContext.usePinInputContext;
|
|
|
20
19
|
exports.PinInputControl = pinInputControl.PinInputControl;
|
|
21
20
|
exports.PinInputInput = pinInputField.PinInputInput;
|
|
22
21
|
exports.PinInputLabel = pinInputLabel.PinInputLabel;
|
|
23
|
-
Object.defineProperty(exports, 'pinInputAnatomy', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: () => pinInput.anatomy
|
|
26
|
-
});
|
|
27
22
|
exports.PinInput = PinInput;
|
package/pin-input/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { JSX } from 'solid-js';
|
|
2
2
|
import { type PinInputProps } from './pin-input';
|
|
3
|
-
import { usePinInputContext } from './pin-input-context';
|
|
3
|
+
import { usePinInputContext, type PinInputContext } from './pin-input-context';
|
|
4
4
|
import { PinInputControl, type PinInputControlProps } from './pin-input-control';
|
|
5
5
|
import { PinInputInput, type PinInputInputProps } from './pin-input-field';
|
|
6
6
|
import { PinInputLabel, type PinInputLabelProps } from './pin-input-label';
|
|
7
|
-
import { pinInputAnatomy } from './pin-input.anatomy';
|
|
8
7
|
declare const PinInput: ((props: PinInputProps) => JSX.Element) & {
|
|
9
8
|
Root: (props: PinInputProps) => JSX.Element;
|
|
10
9
|
Control: (props: PinInputControlProps) => JSX.Element;
|
|
11
10
|
Input: (props: PinInputInputProps) => JSX.Element;
|
|
12
11
|
Label: (props: PinInputLabelProps) => JSX.Element;
|
|
13
12
|
};
|
|
14
|
-
export { PinInput, PinInputControl, PinInputInput, PinInputLabel,
|
|
15
|
-
export type { PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps };
|
|
13
|
+
export { PinInput, PinInputControl, PinInputInput, PinInputLabel, usePinInputContext };
|
|
14
|
+
export type { PinInputContext, PinInputControlProps, PinInputInputProps, PinInputLabelProps, PinInputProps, };
|
package/pin-input/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ export { usePinInputContext } from './pin-input-context.mjs';
|
|
|
3
3
|
import { PinInputControl } from './pin-input-control.mjs';
|
|
4
4
|
import { PinInputInput } from './pin-input-field.mjs';
|
|
5
5
|
import { PinInputLabel } from './pin-input-label.mjs';
|
|
6
|
-
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
|
7
6
|
|
|
8
7
|
const PinInput = Object.assign(PinInput$1, {
|
|
9
8
|
Root: PinInput$1,
|
|
@@ -4,24 +4,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const web = require('solid-js/web');
|
|
6
6
|
const solid = require('@zag-js/solid');
|
|
7
|
-
const solidJs = require('solid-js');
|
|
8
7
|
const factory = require('../factory.cjs');
|
|
9
8
|
const pinInputContext = require('./pin-input-context.cjs');
|
|
10
9
|
|
|
11
|
-
const _tmpl$ = /*#__PURE__*/web.template(`<input>`);
|
|
12
10
|
const PinInputControl = props => {
|
|
13
11
|
const api = pinInputContext.usePinInputContext();
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
return [web.createComponent(factory.ark.div, web.mergeProps(controlProps, {
|
|
17
|
-
get children() {
|
|
18
|
-
return childrenProps.children;
|
|
19
|
-
}
|
|
20
|
-
})), (() => {
|
|
21
|
-
const _el$ = _tmpl$();
|
|
22
|
-
web.spread(_el$, web.mergeProps(() => api().hiddenInputProps), false, false);
|
|
23
|
-
return _el$;
|
|
24
|
-
})()];
|
|
12
|
+
const mergedProps = solid.mergeProps(() => api().controlProps, props);
|
|
13
|
+
return web.createComponent(factory.ark.div, mergedProps);
|
|
25
14
|
};
|
|
26
15
|
|
|
27
16
|
exports.PinInputControl = PinInputControl;
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { createComponent
|
|
1
|
+
import { createComponent } from 'solid-js/web';
|
|
2
2
|
import { mergeProps } from '@zag-js/solid';
|
|
3
|
-
import { splitProps } from 'solid-js';
|
|
4
3
|
import { ark } from '../factory.mjs';
|
|
5
4
|
import { usePinInputContext } from './pin-input-context.mjs';
|
|
6
5
|
|
|
7
|
-
const _tmpl$ = /*#__PURE__*/template(`<input>`);
|
|
8
6
|
const PinInputControl = props => {
|
|
9
7
|
const api = usePinInputContext();
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
return [createComponent(ark.div, mergeProps$1(controlProps, {
|
|
13
|
-
get children() {
|
|
14
|
-
return childrenProps.children;
|
|
15
|
-
}
|
|
16
|
-
})), (() => {
|
|
17
|
-
const _el$ = _tmpl$();
|
|
18
|
-
spread(_el$, mergeProps$1(() => api().hiddenInputProps), false, false);
|
|
19
|
-
return _el$;
|
|
20
|
-
})()];
|
|
8
|
+
const mergedProps = mergeProps(() => api().controlProps, props);
|
|
9
|
+
return createComponent(ark.div, mergedProps);
|
|
21
10
|
};
|
|
22
11
|
|
|
23
12
|
export { PinInputControl };
|
package/pin-input/pin-input.cjs
CHANGED
|
@@ -9,14 +9,19 @@ const factory = require('../factory.cjs');
|
|
|
9
9
|
const pinInputContext = require('./pin-input-context.cjs');
|
|
10
10
|
const usePinInput = require('./use-pin-input.cjs');
|
|
11
11
|
|
|
12
|
+
const _tmpl$ = /*#__PURE__*/web.template(`<input>`);
|
|
12
13
|
const PinInput = props => {
|
|
13
|
-
const [pinInputProps,
|
|
14
|
+
const [pinInputProps, localProps] = createSplitProps.createSplitProps()(props, ['autoFocus', 'blurOnComplete', 'dir', 'disabled', 'form', 'getRootNode', 'id', 'ids', 'invalid', 'mask', 'name', 'onValueChange', 'onValueComplete', 'onValueInvalid', 'otp', 'pattern', 'placeholder', 'selectOnFocus', 'translations', 'type', 'value']);
|
|
14
15
|
const api = usePinInput.usePinInput(pinInputProps);
|
|
15
|
-
const
|
|
16
|
+
const mergedProps = solid.mergeProps(() => api().rootProps, localProps);
|
|
16
17
|
return web.createComponent(pinInputContext.PinInputProvider, {
|
|
17
18
|
value: api,
|
|
18
19
|
get children() {
|
|
19
|
-
return web.createComponent(factory.ark.div,
|
|
20
|
+
return [web.createComponent(factory.ark.div, mergedProps), (() => {
|
|
21
|
+
const _el$ = _tmpl$();
|
|
22
|
+
web.spread(_el$, web.mergeProps(() => api().hiddenInputProps), false, false);
|
|
23
|
+
return _el$;
|
|
24
|
+
})()];
|
|
20
25
|
}
|
|
21
26
|
});
|
|
22
27
|
};
|