@ark-ui/react 0.15.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 +21 -12
- package/accordion/accordion-context.d.ts +3 -2
- package/accordion/{accordion-content.cjs → accordion-item-content.cjs} +4 -4
- package/accordion/accordion-item-content.d.ts +8 -0
- package/accordion/{accordion-content.mjs → accordion-item-content.mjs} +4 -4
- package/accordion/accordion-item-indicator.cjs +23 -0
- package/accordion/accordion-item-indicator.d.ts +6 -0
- package/accordion/accordion-item-indicator.mjs +19 -0
- package/accordion/{accordion-trigger.cjs → accordion-item-trigger.cjs} +5 -5
- package/accordion/accordion-item-trigger.d.ts +6 -0
- package/accordion/{accordion-trigger.mjs → accordion-item-trigger.mjs} +5 -5
- package/accordion/accordion-item.cjs +4 -4
- package/accordion/accordion-item.d.ts +5 -6
- package/accordion/accordion-item.mjs +4 -4
- package/accordion/accordion.cjs +4 -4
- package/accordion/accordion.d.ts +3 -2
- package/accordion/accordion.mjs +4 -4
- package/accordion/index.cjs +12 -14
- package/accordion/index.d.ts +12 -18
- package/accordion/index.mjs +7 -6
- package/accordion/use-accordion.cjs +6 -4
- package/accordion/use-accordion.d.ts +7 -2
- package/accordion/use-accordion.mjs +6 -4
- package/avatar/avatar-context.d.ts +3 -2
- package/avatar/avatar-fallback.cjs +2 -2
- package/avatar/avatar-fallback.d.ts +4 -5
- package/avatar/avatar-fallback.mjs +2 -2
- package/avatar/avatar-image.cjs +2 -2
- package/avatar/avatar-image.d.ts +4 -5
- package/avatar/avatar-image.mjs +2 -2
- package/avatar/avatar.cjs +5 -5
- package/avatar/avatar.d.ts +3 -2
- package/avatar/avatar.mjs +5 -5
- package/avatar/index.cjs +3 -8
- package/avatar/index.d.ts +6 -13
- package/avatar/index.mjs +0 -1
- package/avatar/use-avatar.cjs +9 -5
- package/avatar/use-avatar.d.ts +4 -2
- package/avatar/use-avatar.mjs +9 -5
- package/carousel/carousel-context.d.ts +3 -2
- package/carousel/carousel-control.cjs +2 -2
- package/carousel/carousel-control.d.ts +4 -5
- package/carousel/carousel-control.mjs +2 -2
- package/carousel/carousel-indicator-group.cjs +2 -2
- package/carousel/carousel-indicator-group.d.ts +4 -5
- package/carousel/carousel-indicator-group.mjs +2 -2
- package/carousel/carousel-indicator.cjs +2 -2
- package/carousel/carousel-indicator.d.ts +4 -3
- package/carousel/carousel-indicator.mjs +2 -2
- package/carousel/{carousel-slide-group.cjs → carousel-item-group.cjs} +5 -5
- package/carousel/carousel-item-group.d.ts +6 -0
- package/carousel/{carousel-slide-group.mjs → carousel-item-group.mjs} +5 -5
- package/carousel/{carousel-slide.cjs → carousel-item.cjs} +5 -5
- package/carousel/carousel-item.d.ts +8 -0
- package/carousel/{carousel-slide.mjs → carousel-item.mjs} +5 -5
- package/carousel/carousel-next-trigger.cjs +21 -0
- package/carousel/carousel-next-trigger.d.ts +6 -0
- package/carousel/carousel-next-trigger.mjs +17 -0
- package/carousel/carousel-prev-trigger.cjs +21 -0
- package/carousel/carousel-prev-trigger.d.ts +6 -0
- package/carousel/carousel-prev-trigger.mjs +17 -0
- package/carousel/carousel-viewport.cjs +2 -2
- package/carousel/carousel-viewport.d.ts +4 -5
- package/carousel/carousel-viewport.mjs +2 -2
- package/carousel/carousel.cjs +6 -5
- package/carousel/carousel.d.ts +5 -8
- package/carousel/carousel.mjs +6 -5
- package/carousel/index.cjs +12 -14
- package/carousel/index.d.ts +18 -42
- package/carousel/index.mjs +9 -10
- package/carousel/use-carousel.cjs +11 -5
- package/carousel/use-carousel.d.ts +8 -2
- package/carousel/use-carousel.mjs +11 -5
- package/checkbox/checkbox-context.d.ts +3 -2
- package/checkbox/checkbox-control.cjs +4 -1
- package/checkbox/checkbox-control.d.ts +4 -5
- package/checkbox/checkbox-control.mjs +5 -2
- package/checkbox/checkbox-indicator.cjs +21 -0
- package/checkbox/checkbox-indicator.d.ts +6 -0
- package/checkbox/checkbox-indicator.mjs +17 -0
- package/checkbox/checkbox-label.cjs +2 -2
- package/checkbox/checkbox-label.d.ts +4 -5
- package/checkbox/checkbox-label.mjs +2 -2
- package/checkbox/checkbox.cjs +2 -5
- package/checkbox/checkbox.d.ts +4 -5
- package/checkbox/checkbox.mjs +3 -6
- package/checkbox/index.cjs +7 -9
- package/checkbox/index.d.ts +10 -19
- package/checkbox/index.mjs +4 -3
- package/checkbox/use-checkbox.cjs +5 -4
- package/checkbox/use-checkbox.d.ts +7 -2
- package/checkbox/use-checkbox.mjs +5 -4
- package/color-picker/{color-picker-area-gradient.cjs → color-picker-area-background.cjs} +5 -5
- package/color-picker/color-picker-area-background.d.ts +6 -0
- package/color-picker/{color-picker-area-gradient.mjs → color-picker-area-background.mjs} +5 -5
- package/color-picker/color-picker-area-context.d.ts +4 -2
- package/color-picker/color-picker-area-thumb.cjs +2 -2
- package/color-picker/color-picker-area-thumb.d.ts +4 -5
- package/color-picker/color-picker-area-thumb.mjs +2 -2
- package/color-picker/color-picker-area.cjs +3 -6
- package/color-picker/color-picker-area.d.ts +4 -3
- package/color-picker/color-picker-area.mjs +3 -6
- package/color-picker/color-picker-channel-input.cjs +2 -2
- package/color-picker/color-picker-channel-input.d.ts +5 -6
- package/color-picker/color-picker-channel-input.mjs +2 -2
- package/color-picker/color-picker-channel-slider-context.d.ts +4 -2
- package/color-picker/color-picker-channel-slider-thumb.cjs +2 -2
- package/color-picker/color-picker-channel-slider-thumb.d.ts +4 -5
- package/color-picker/color-picker-channel-slider-thumb.mjs +2 -2
- package/color-picker/color-picker-channel-slider-track.cjs +4 -8
- package/color-picker/color-picker-channel-slider-track.d.ts +3 -4
- package/color-picker/color-picker-channel-slider-track.mjs +5 -9
- package/color-picker/color-picker-channel-slider.cjs +27 -0
- package/color-picker/color-picker-channel-slider.d.ts +8 -0
- package/color-picker/color-picker-channel-slider.mjs +23 -0
- package/color-picker/color-picker-content.cjs +2 -2
- package/color-picker/color-picker-content.d.ts +4 -5
- package/color-picker/color-picker-content.mjs +2 -2
- package/color-picker/color-picker-context.d.ts +3 -2
- package/{range-slider/range-slider-control.cjs → color-picker/color-picker-control.cjs} +6 -6
- package/color-picker/color-picker-control.d.ts +6 -0
- package/color-picker/color-picker-control.mjs +17 -0
- package/color-picker/color-picker-eye-dropper-trigger.cjs +2 -2
- package/color-picker/color-picker-eye-dropper-trigger.d.ts +4 -5
- package/color-picker/color-picker-eye-dropper-trigger.mjs +2 -2
- package/{range-slider/range-slider-label.cjs → color-picker/color-picker-label.cjs} +6 -6
- package/color-picker/color-picker-label.d.ts +6 -0
- package/color-picker/color-picker-label.mjs +17 -0
- package/{range-slider/range-slider-marker-group.cjs → color-picker/color-picker-positioner.cjs} +6 -6
- package/color-picker/color-picker-positioner.d.ts +6 -0
- package/color-picker/color-picker-positioner.mjs +17 -0
- package/color-picker/color-picker-swatch-group.cjs +7 -2
- package/color-picker/color-picker-swatch-group.d.ts +4 -5
- package/color-picker/color-picker-swatch-group.mjs +7 -2
- package/color-picker/color-picker-swatch-trigger.cjs +21 -0
- package/color-picker/color-picker-swatch-trigger.d.ts +12 -0
- package/color-picker/color-picker-swatch-trigger.mjs +17 -0
- package/color-picker/color-picker-swatch.cjs +4 -5
- package/color-picker/color-picker-swatch.d.ts +4 -3
- package/color-picker/color-picker-swatch.mjs +4 -5
- package/{date-picker/date-picker-grid.cjs → color-picker/color-picker-transparency-grid.cjs} +7 -7
- package/color-picker/color-picker-transparency-grid.d.ts +11 -0
- package/color-picker/color-picker-transparency-grid.mjs +17 -0
- package/color-picker/color-picker-trigger.cjs +21 -0
- package/color-picker/color-picker-trigger.d.ts +6 -0
- package/color-picker/color-picker-trigger.mjs +17 -0
- package/color-picker/color-picker.cjs +39 -7
- package/color-picker/color-picker.d.ts +5 -5
- package/color-picker/color-picker.mjs +40 -8
- package/color-picker/color-picker.stories.d.ts +0 -1
- package/color-picker/index.cjs +27 -14
- package/color-picker/index.d.ts +33 -45
- package/color-picker/index.mjs +19 -10
- package/color-picker/use-color-picker.cjs +6 -6
- package/color-picker/use-color-picker.d.ts +10 -4
- package/color-picker/use-color-picker.mjs +6 -6
- package/combobox/combobox-clear-trigger.d.ts +4 -5
- package/combobox/combobox-content.d.ts +3 -2
- package/combobox/combobox-context.d.ts +2 -1
- package/combobox/combobox-control.d.ts +4 -5
- package/combobox/combobox-input.d.ts +4 -5
- package/combobox/combobox-item-context.d.ts +3 -2
- package/combobox/combobox-item-group-label.d.ts +3 -2
- package/combobox/combobox-item-group.d.ts +3 -2
- package/combobox/combobox-item-indicator.d.ts +4 -5
- package/combobox/combobox-item-text.d.ts +4 -5
- package/combobox/combobox-item.d.ts +4 -7
- package/combobox/combobox-label.d.ts +4 -5
- package/combobox/combobox-positioner.d.ts +4 -5
- package/combobox/combobox-trigger.d.ts +4 -5
- package/combobox/combobox.cjs +5 -5
- package/combobox/combobox.d.ts +3 -2
- package/combobox/combobox.mjs +5 -5
- package/combobox/index.cjs +3 -8
- package/combobox/index.d.ts +14 -37
- package/combobox/index.mjs +0 -1
- package/combobox/use-combobox.cjs +14 -6
- package/combobox/use-combobox.d.ts +5 -1
- package/combobox/use-combobox.mjs +15 -7
- package/date-picker/date-picker-clear-trigger.cjs +2 -2
- package/date-picker/date-picker-clear-trigger.d.ts +4 -5
- package/date-picker/date-picker-clear-trigger.mjs +2 -2
- package/date-picker/date-picker-content.cjs +2 -2
- package/date-picker/date-picker-content.d.ts +4 -5
- package/date-picker/date-picker-content.mjs +2 -2
- package/date-picker/date-picker-context.d.ts +3 -2
- package/date-picker/date-picker-control.cjs +2 -2
- package/date-picker/date-picker-control.d.ts +4 -5
- 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 +4 -5
- package/date-picker/date-picker-input.mjs +2 -2
- package/date-picker/date-picker-label.cjs +19 -0
- package/date-picker/date-picker-label.d.ts +6 -0
- package/date-picker/date-picker-label.mjs +15 -0
- package/date-picker/date-picker-month-select.cjs +3 -3
- package/date-picker/date-picker-month-select.d.ts +4 -5
- package/date-picker/date-picker-month-select.mjs +3 -3
- package/date-picker/date-picker-next-trigger.cjs +4 -2
- package/date-picker/date-picker-next-trigger.d.ts +4 -5
- package/date-picker/date-picker-next-trigger.mjs +4 -2
- package/date-picker/date-picker-positioner.cjs +2 -2
- package/date-picker/date-picker-positioner.d.ts +4 -5
- package/date-picker/date-picker-positioner.mjs +2 -2
- package/date-picker/date-picker-prev-trigger.cjs +4 -2
- package/date-picker/date-picker-prev-trigger.d.ts +3 -4
- package/date-picker/date-picker-prev-trigger.mjs +4 -2
- package/date-picker/date-picker-range-text.cjs +21 -0
- package/date-picker/date-picker-range-text.d.ts +6 -0
- package/date-picker/date-picker-range-text.mjs +17 -0
- package/date-picker/date-picker-table-body.cjs +23 -0
- package/date-picker/date-picker-table-body.d.ts +6 -0
- package/date-picker/date-picker-table-body.mjs +19 -0
- package/date-picker/date-picker-table-cell-context.cjs +15 -0
- package/date-picker/date-picker-table-cell-context.d.ts +11 -0
- package/date-picker/date-picker-table-cell-context.mjs +10 -0
- package/date-picker/date-picker-table-cell-trigger.cjs +29 -0
- package/date-picker/date-picker-table-cell-trigger.d.ts +6 -0
- package/date-picker/date-picker-table-cell-trigger.mjs +25 -0
- package/date-picker/date-picker-table-cell.cjs +37 -0
- package/date-picker/date-picker-table-cell.d.ts +7 -0
- package/date-picker/date-picker-table-cell.mjs +33 -0
- package/date-picker/date-picker-table-context.cjs +15 -0
- package/date-picker/date-picker-table-context.d.ts +6 -0
- package/date-picker/date-picker-table-context.mjs +10 -0
- package/date-picker/date-picker-table-head.cjs +23 -0
- package/date-picker/date-picker-table-head.d.ts +6 -0
- package/date-picker/date-picker-table-head.mjs +19 -0
- package/date-picker/date-picker-table-header.cjs +23 -0
- package/date-picker/date-picker-table-header.d.ts +6 -0
- package/date-picker/date-picker-table-header.mjs +19 -0
- package/date-picker/date-picker-table-row.cjs +23 -0
- package/date-picker/date-picker-table-row.d.ts +6 -0
- package/date-picker/date-picker-table-row.mjs +19 -0
- package/date-picker/date-picker-table.cjs +27 -0
- package/date-picker/date-picker-table.d.ts +8 -0
- package/date-picker/date-picker-table.mjs +23 -0
- package/date-picker/date-picker-trigger.cjs +2 -2
- package/date-picker/date-picker-trigger.d.ts +4 -5
- package/date-picker/date-picker-trigger.mjs +2 -2
- package/date-picker/date-picker-view-context.cjs +15 -0
- package/date-picker/date-picker-view-context.d.ts +6 -0
- package/date-picker/date-picker-view-context.mjs +10 -0
- package/date-picker/date-picker-view-control.cjs +23 -0
- package/date-picker/date-picker-view-control.d.ts +6 -0
- package/date-picker/date-picker-view-control.mjs +19 -0
- package/date-picker/date-picker-view-trigger.cjs +4 -7
- package/date-picker/date-picker-view-trigger.d.ts +3 -4
- package/date-picker/date-picker-view-trigger.mjs +4 -7
- package/date-picker/date-picker-view.cjs +24 -0
- package/date-picker/date-picker-view.d.ts +10 -0
- package/date-picker/date-picker-view.mjs +20 -0
- package/date-picker/date-picker-year-select.cjs +2 -2
- package/date-picker/date-picker-year-select.d.ts +4 -5
- package/date-picker/date-picker-year-select.mjs +2 -2
- package/date-picker/date-picker.cjs +48 -7
- package/date-picker/date-picker.d.ts +5 -5
- package/date-picker/date-picker.mjs +48 -7
- package/date-picker/date-picker.stories.d.ts +0 -2
- package/date-picker/index.cjs +39 -39
- package/date-picker/index.d.ts +42 -77
- package/date-picker/index.mjs +26 -26
- package/date-picker/use-date-picker.cjs +15 -6
- package/date-picker/use-date-picker.d.ts +13 -3
- package/date-picker/use-date-picker.mjs +15 -6
- package/dialog/dialog-backdrop.d.ts +3 -2
- package/dialog/dialog-close-trigger.cjs +2 -2
- package/dialog/dialog-close-trigger.d.ts +4 -5
- package/dialog/dialog-close-trigger.mjs +2 -2
- package/dialog/dialog-content.d.ts +3 -2
- package/dialog/dialog-context.d.ts +3 -2
- package/dialog/dialog-description.cjs +2 -2
- package/dialog/dialog-description.d.ts +4 -5
- package/dialog/dialog-description.mjs +2 -2
- package/dialog/{dialog-container.cjs → dialog-positioner.cjs} +5 -5
- package/dialog/dialog-positioner.d.ts +6 -0
- package/dialog/{dialog-container.mjs → dialog-positioner.mjs} +5 -5
- package/dialog/dialog-title.cjs +2 -2
- package/dialog/dialog-title.d.ts +4 -5
- package/dialog/dialog-title.mjs +2 -2
- package/dialog/dialog-trigger.cjs +2 -2
- package/dialog/dialog-trigger.d.ts +4 -5
- package/dialog/dialog-trigger.mjs +2 -2
- package/dialog/dialog.cjs +3 -3
- package/dialog/dialog.d.ts +3 -2
- package/dialog/dialog.mjs +3 -3
- package/dialog/index.cjs +6 -11
- package/dialog/index.d.ts +12 -24
- package/dialog/index.mjs +3 -4
- package/dialog/use-dialog.cjs +14 -6
- package/dialog/use-dialog.d.ts +8 -2
- package/dialog/use-dialog.mjs +14 -6
- package/editable/editable-area.cjs +2 -2
- package/editable/editable-area.d.ts +4 -5
- package/editable/editable-area.mjs +2 -2
- package/editable/editable-cancel-trigger.cjs +2 -2
- package/editable/editable-cancel-trigger.d.ts +4 -5
- package/editable/editable-cancel-trigger.mjs +2 -2
- package/editable/editable-context.d.ts +3 -2
- package/editable/editable-control.cjs +2 -2
- package/editable/editable-control.d.ts +4 -5
- package/editable/editable-control.mjs +2 -2
- package/editable/editable-edit-trigger.cjs +2 -2
- package/editable/editable-edit-trigger.d.ts +4 -5
- package/editable/editable-edit-trigger.mjs +2 -2
- package/editable/editable-input.cjs +2 -2
- package/editable/editable-input.d.ts +4 -5
- package/editable/editable-input.mjs +2 -2
- package/editable/editable-label.cjs +2 -2
- package/editable/editable-label.d.ts +4 -5
- package/editable/editable-label.mjs +2 -2
- package/editable/editable-preview.cjs +2 -2
- package/editable/editable-preview.d.ts +4 -5
- package/editable/editable-preview.mjs +2 -2
- package/editable/editable-submit-trigger.cjs +2 -2
- package/editable/editable-submit-trigger.d.ts +4 -5
- package/editable/editable-submit-trigger.mjs +2 -2
- package/editable/editable.cjs +7 -7
- package/editable/editable.d.ts +4 -5
- package/editable/editable.mjs +7 -7
- package/editable/index.cjs +3 -8
- package/editable/index.d.ts +14 -37
- package/editable/index.mjs +0 -1
- package/editable/use-editable.cjs +8 -4
- package/editable/use-editable.d.ts +7 -2
- package/editable/use-editable.mjs +8 -4
- package/environment/environment.cjs +6 -3
- package/environment/environment.d.ts +4 -3
- package/environment/environment.mjs +6 -3
- package/environment/environment.stories.d.ts +1 -1
- package/environment/index.d.ts +2 -2
- package/factory.d.ts +3 -0
- package/hover-card/hover-card-arrow-tip.cjs +2 -2
- package/hover-card/hover-card-arrow-tip.d.ts +4 -5
- package/hover-card/hover-card-arrow-tip.mjs +2 -2
- package/hover-card/hover-card-arrow.cjs +2 -2
- package/hover-card/hover-card-arrow.d.ts +4 -5
- package/hover-card/hover-card-arrow.mjs +2 -2
- package/hover-card/hover-card-content.d.ts +3 -2
- package/hover-card/hover-card-context.d.ts +3 -2
- package/hover-card/hover-card-positioner.cjs +2 -2
- package/hover-card/hover-card-positioner.d.ts +4 -5
- package/hover-card/hover-card-positioner.mjs +2 -2
- package/hover-card/hover-card-trigger.cjs +2 -2
- package/hover-card/hover-card-trigger.d.ts +4 -5
- package/hover-card/hover-card-trigger.mjs +2 -2
- package/hover-card/hover-card.cjs +3 -3
- package/hover-card/hover-card.d.ts +3 -2
- package/hover-card/hover-card.mjs +3 -3
- package/hover-card/index.cjs +3 -8
- package/hover-card/index.d.ts +9 -19
- package/hover-card/index.mjs +0 -1
- package/hover-card/use-hover-card.cjs +11 -5
- package/hover-card/use-hover-card.d.ts +8 -2
- package/hover-card/use-hover-card.mjs +11 -5
- package/index.cjs +140 -278
- package/index.d.ts +1 -4
- package/index.mjs +58 -92
- package/menu/index.cjs +3 -8
- package/menu/index.d.ts +16 -42
- package/menu/index.mjs +0 -1
- package/menu/menu-arrow-tip.cjs +2 -2
- package/menu/menu-arrow-tip.d.ts +4 -5
- package/menu/menu-arrow-tip.mjs +2 -2
- package/menu/menu-arrow.cjs +2 -2
- package/menu/menu-arrow.d.ts +4 -5
- package/menu/menu-arrow.mjs +2 -2
- package/menu/menu-content.d.ts +3 -2
- package/menu/menu-context-trigger.d.ts +4 -5
- package/menu/menu-item-group-label.cjs +1 -1
- package/menu/menu-item-group-label.d.ts +5 -4
- package/menu/menu-item-group-label.mjs +1 -1
- package/menu/menu-item-group.cjs +1 -1
- package/menu/menu-item-group.d.ts +4 -6
- package/menu/menu-item-group.mjs +1 -1
- package/menu/menu-item.cjs +1 -1
- package/menu/menu-item.d.ts +3 -2
- package/menu/menu-item.mjs +1 -1
- package/menu/menu-option-item.cjs +1 -2
- package/menu/menu-option-item.d.ts +6 -15
- package/menu/menu-option-item.mjs +1 -2
- package/menu/menu-positioner.d.ts +4 -5
- package/menu/menu-separator.d.ts +4 -5
- package/menu/menu-trigger-item.d.ts +4 -5
- package/menu/menu-trigger.d.ts +4 -5
- package/menu/menu.cjs +1 -2
- package/menu/menu.d.ts +5 -4
- package/menu/menu.mjs +1 -2
- package/menu/use-menu.cjs +7 -4
- package/menu/use-menu.d.ts +3 -3
- package/menu/use-menu.mjs +7 -4
- package/number-input/index.cjs +3 -8
- package/number-input/index.d.ts +10 -25
- package/number-input/index.mjs +0 -1
- package/number-input/number-input-context.d.ts +3 -2
- package/number-input/number-input-control.cjs +2 -2
- package/number-input/number-input-control.d.ts +4 -5
- package/number-input/number-input-control.mjs +2 -2
- package/number-input/number-input-decrement-trigger.cjs +2 -2
- package/number-input/number-input-decrement-trigger.d.ts +4 -5
- package/number-input/number-input-decrement-trigger.mjs +2 -2
- package/number-input/number-input-field.cjs +2 -2
- package/number-input/number-input-field.d.ts +4 -5
- package/number-input/number-input-field.mjs +2 -2
- package/number-input/number-input-increment-trigger.cjs +2 -2
- package/number-input/number-input-increment-trigger.d.ts +4 -5
- package/number-input/number-input-increment-trigger.mjs +2 -2
- package/number-input/number-input-label.cjs +2 -2
- package/number-input/number-input-label.d.ts +4 -5
- package/number-input/number-input-label.mjs +2 -2
- package/number-input/number-input-scrubber.cjs +2 -2
- package/number-input/number-input-scrubber.d.ts +4 -5
- package/number-input/number-input-scrubber.mjs +2 -2
- package/number-input/number-input.cjs +8 -12
- package/number-input/number-input.d.ts +3 -2
- package/number-input/number-input.mjs +8 -12
- package/number-input/use-number-input.cjs +5 -4
- package/number-input/use-number-input.d.ts +7 -2
- package/number-input/use-number-input.mjs +5 -4
- package/package.json +59 -71
- package/pagination/index.cjs +9 -17
- package/pagination/index.d.ts +12 -33
- package/pagination/index.mjs +7 -12
- package/pagination/pagination-context.d.ts +3 -2
- package/pagination/pagination-ellipsis.cjs +2 -2
- package/pagination/pagination-ellipsis.d.ts +3 -2
- package/pagination/pagination-ellipsis.mjs +2 -2
- package/pagination/pagination-item.cjs +21 -0
- package/pagination/pagination-item.d.ts +8 -0
- package/pagination/pagination-item.mjs +17 -0
- package/pagination/pagination-next-trigger.cjs +21 -0
- package/pagination/pagination-next-trigger.d.ts +6 -0
- package/pagination/pagination-next-trigger.mjs +17 -0
- package/pagination/pagination-prev-trigger.cjs +21 -0
- package/pagination/pagination-prev-trigger.d.ts +6 -0
- package/pagination/pagination-prev-trigger.mjs +17 -0
- package/pagination/pagination.cjs +5 -5
- package/pagination/pagination.d.ts +4 -5
- package/pagination/pagination.mjs +5 -5
- package/pagination/use-pagination.cjs +4 -3
- package/pagination/use-pagination.d.ts +6 -1
- package/pagination/use-pagination.mjs +4 -3
- package/pin-input/index.cjs +3 -8
- package/pin-input/index.d.ts +7 -16
- package/pin-input/index.mjs +0 -1
- package/pin-input/pin-input-context.d.ts +3 -2
- package/pin-input/pin-input-control.d.ts +4 -5
- package/pin-input/pin-input-field.cjs +2 -2
- package/pin-input/pin-input-field.d.ts +4 -5
- package/pin-input/pin-input-field.mjs +2 -2
- package/pin-input/pin-input-label.cjs +2 -2
- package/pin-input/pin-input-label.d.ts +4 -5
- package/pin-input/pin-input-label.mjs +2 -2
- package/pin-input/pin-input.cjs +3 -3
- package/pin-input/pin-input.d.ts +3 -2
- package/pin-input/pin-input.mjs +3 -3
- package/pin-input/use-pin-input.cjs +7 -4
- package/pin-input/use-pin-input.d.ts +7 -2
- package/pin-input/use-pin-input.mjs +7 -4
- package/popover/index.cjs +6 -8
- package/popover/index.d.ts +15 -31
- package/popover/index.mjs +3 -2
- package/popover/popover-anchor.cjs +2 -2
- package/popover/popover-anchor.d.ts +4 -5
- package/popover/popover-anchor.mjs +2 -2
- package/popover/popover-arrow-tip.cjs +2 -2
- package/popover/popover-arrow-tip.d.ts +4 -5
- package/popover/popover-arrow-tip.mjs +2 -2
- package/popover/popover-arrow.cjs +2 -2
- package/popover/popover-arrow.d.ts +4 -5
- package/popover/popover-arrow.mjs +2 -2
- package/popover/popover-close-trigger.cjs +2 -2
- package/popover/popover-close-trigger.d.ts +4 -5
- package/popover/popover-close-trigger.mjs +2 -2
- package/popover/popover-content.d.ts +3 -2
- package/popover/popover-context.d.ts +3 -2
- package/popover/popover-description.cjs +2 -2
- package/popover/popover-description.d.ts +4 -5
- package/popover/popover-description.mjs +2 -2
- package/{range-slider/range-slider-range.cjs → popover/popover-indicator.cjs} +6 -6
- package/popover/popover-indicator.d.ts +6 -0
- package/popover/popover-indicator.mjs +15 -0
- package/popover/popover-positioner.cjs +2 -2
- package/popover/popover-positioner.d.ts +4 -5
- package/popover/popover-positioner.mjs +2 -2
- package/popover/popover-title.cjs +2 -2
- package/popover/popover-title.d.ts +4 -5
- package/popover/popover-title.mjs +2 -2
- package/popover/popover-trigger.cjs +2 -2
- package/popover/popover-trigger.d.ts +4 -5
- package/popover/popover-trigger.mjs +2 -2
- package/popover/popover.cjs +3 -3
- package/popover/popover.d.ts +3 -2
- package/popover/popover.mjs +3 -3
- package/popover/use-popover.cjs +11 -5
- package/popover/use-popover.d.ts +8 -2
- package/popover/use-popover.mjs +11 -5
- package/portal.cjs +22 -0
- package/portal.d.ts +6 -0
- package/portal.mjs +18 -0
- package/presence/presence.d.ts +4 -2
- package/presence/presence.stories.d.ts +1 -1
- package/presence/use-presence.cjs +6 -3
- package/presence/use-presence.mjs +6 -3
- package/radio-group/index.cjs +14 -17
- package/radio-group/index.d.ts +15 -23
- package/radio-group/index.mjs +11 -10
- package/radio-group/radio-group-context.d.ts +3 -2
- package/radio-group/radio-group-indicator.cjs +22 -0
- package/radio-group/radio-group-indicator.d.ts +6 -0
- package/radio-group/radio-group-indicator.mjs +18 -0
- package/radio-group/radio-group-item-context.cjs +15 -0
- package/radio-group/radio-group-item-context.d.ts +6 -0
- package/radio-group/radio-group-item-context.mjs +10 -0
- package/radio-group/radio-group-item-control.cjs +26 -0
- package/radio-group/radio-group-item-control.d.ts +6 -0
- package/radio-group/radio-group-item-control.mjs +22 -0
- package/radio-group/radio-group-item-text.cjs +23 -0
- package/radio-group/radio-group-item-text.d.ts +6 -0
- package/radio-group/radio-group-item-text.mjs +19 -0
- package/radio-group/radio-group-item.cjs +29 -0
- package/radio-group/radio-group-item.d.ts +10 -0
- package/radio-group/radio-group-item.mjs +25 -0
- package/radio-group/radio-group-label.cjs +2 -2
- package/radio-group/radio-group-label.d.ts +4 -5
- package/radio-group/radio-group-label.mjs +2 -2
- package/radio-group/radio-group.cjs +4 -4
- package/radio-group/radio-group.d.ts +3 -2
- package/radio-group/radio-group.mjs +4 -4
- package/radio-group/radio-group.stories.d.ts +0 -1
- package/radio-group/use-radio-group.cjs +4 -3
- package/radio-group/use-radio-group.d.ts +6 -1
- package/radio-group/use-radio-group.mjs +4 -3
- package/rating-group/index.cjs +8 -13
- package/rating-group/index.d.ts +11 -21
- package/rating-group/index.mjs +4 -5
- package/rating-group/rating-group-context.d.ts +3 -2
- package/rating-group/rating-group-control.cjs +4 -1
- package/rating-group/rating-group-control.d.ts +3 -5
- package/rating-group/rating-group-control.mjs +5 -2
- package/rating-group/rating-group-item-context.cjs +16 -0
- package/rating-group/rating-group-item-context.d.ts +6 -0
- package/rating-group/rating-group-item-context.mjs +11 -0
- package/rating-group/rating-group-item.cjs +24 -0
- package/rating-group/rating-group-item.d.ts +10 -0
- package/rating-group/rating-group-item.mjs +20 -0
- package/rating-group/rating-group-label.cjs +2 -2
- package/rating-group/rating-group-label.d.ts +4 -5
- package/rating-group/rating-group-label.mjs +2 -2
- package/rating-group/rating-group.cjs +4 -7
- package/rating-group/rating-group.d.ts +3 -2
- package/rating-group/rating-group.mjs +5 -8
- package/rating-group/use-rating-group.cjs +5 -3
- package/rating-group/use-rating-group.d.ts +6 -1
- package/rating-group/use-rating-group.mjs +5 -3
- package/segment-group/index.cjs +12 -14
- package/segment-group/index.d.ts +14 -26
- package/segment-group/index.mjs +9 -10
- package/segment-group/segment-group-context.d.ts +3 -2
- package/segment-group/segment-group-indicator.cjs +7 -3
- package/segment-group/segment-group-indicator.d.ts +4 -5
- package/segment-group/segment-group-indicator.mjs +7 -3
- package/segment-group/segment-group-item-context.cjs +15 -0
- package/segment-group/segment-group-item-context.d.ts +18 -0
- package/segment-group/segment-group-item-context.mjs +10 -0
- package/segment-group/segment-group-item-control.cjs +31 -0
- package/segment-group/segment-group-item-control.d.ts +6 -0
- package/segment-group/segment-group-item-control.mjs +27 -0
- package/segment-group/segment-group-item-text.cjs +28 -0
- package/segment-group/segment-group-item-text.d.ts +6 -0
- package/segment-group/segment-group-item-text.mjs +24 -0
- package/segment-group/segment-group-item.cjs +35 -0
- package/segment-group/segment-group-item.d.ts +10 -0
- package/segment-group/segment-group-item.mjs +31 -0
- package/segment-group/segment-group-label.cjs +7 -3
- package/segment-group/segment-group-label.d.ts +4 -5
- package/segment-group/segment-group-label.mjs +7 -3
- package/segment-group/segment-group.anatomy.cjs +2 -4
- package/segment-group/segment-group.anatomy.mjs +2 -3
- package/segment-group/segment-group.cjs +8 -4
- package/segment-group/segment-group.d.ts +3 -2
- package/segment-group/segment-group.mjs +8 -4
- package/segment-group/segment-group.stories.d.ts +1 -4
- package/segment-group/use-segment-group.cjs +4 -3
- package/segment-group/use-segment-group.d.ts +6 -1
- package/segment-group/use-segment-group.mjs +4 -3
- package/select/index.cjs +8 -5
- package/select/index.d.ts +20 -38
- package/select/index.mjs +6 -4
- package/select/select-clear-trigger.d.ts +4 -5
- package/select/select-content.d.ts +3 -2
- package/select/select-context.d.ts +2 -1
- package/select/select-control.d.ts +4 -5
- package/{range-slider/range-slider-track.cjs → select/select-indicator.cjs} +6 -6
- package/select/select-indicator.d.ts +6 -0
- package/select/select-indicator.mjs +15 -0
- package/select/select-item-context.d.ts +2 -1
- package/select/select-item-group-label.d.ts +3 -2
- package/select/select-item-group.d.ts +3 -2
- package/select/select-item-indicator.d.ts +4 -5
- package/select/select-item-text.d.ts +4 -5
- package/select/select-item.d.ts +5 -6
- package/select/select-label.d.ts +4 -5
- package/select/select-positioner.d.ts +4 -5
- package/select/select-trigger.d.ts +4 -5
- package/select/{select-value.cjs → select-value-text.cjs} +5 -5
- package/select/select-value-text.d.ts +6 -0
- package/select/select-value-text.mjs +15 -0
- package/select/select.cjs +3 -4
- package/select/select.d.ts +3 -2
- package/select/select.mjs +3 -4
- package/select/use-select.cjs +11 -4
- package/select/use-select.d.ts +5 -1
- package/select/use-select.mjs +12 -5
- package/setup-test.d.ts +3 -0
- package/slider/index.cjs +3 -8
- package/slider/index.d.ts +14 -38
- package/slider/index.mjs +0 -1
- package/slider/slider-context.d.ts +3 -2
- package/slider/slider-control.cjs +2 -2
- package/slider/slider-control.d.ts +4 -5
- package/slider/slider-control.mjs +2 -2
- package/slider/slider-label.cjs +2 -2
- package/slider/slider-label.d.ts +4 -5
- package/slider/slider-label.mjs +2 -2
- package/slider/slider-marker-group.cjs +2 -2
- package/slider/slider-marker-group.d.ts +4 -5
- package/slider/slider-marker-group.mjs +2 -2
- package/slider/slider-marker.cjs +2 -2
- package/slider/slider-marker.d.ts +4 -6
- package/slider/slider-marker.mjs +2 -2
- package/slider/slider-output.cjs +5 -5
- package/slider/slider-output.d.ts +8 -10
- package/slider/slider-output.mjs +5 -5
- package/slider/slider-range.cjs +2 -2
- package/slider/slider-range.d.ts +4 -5
- package/slider/slider-range.mjs +2 -2
- package/slider/slider-thumb.cjs +7 -2
- package/slider/slider-thumb.d.ts +6 -5
- package/slider/slider-thumb.mjs +8 -3
- package/slider/slider-track.cjs +2 -2
- package/slider/slider-track.d.ts +4 -5
- package/slider/slider-track.mjs +2 -2
- package/slider/slider.cjs +6 -10
- package/slider/slider.d.ts +6 -8
- package/slider/slider.mjs +7 -11
- package/slider/slider.stories.d.ts +1 -1
- package/slider/use-slider.cjs +11 -8
- package/slider/use-slider.d.ts +9 -4
- package/slider/use-slider.mjs +10 -7
- package/splitter/index.cjs +3 -8
- package/splitter/index.d.ts +6 -14
- package/splitter/index.mjs +0 -1
- package/splitter/splitter-context.d.ts +3 -2
- package/splitter/splitter-panel.cjs +2 -2
- package/splitter/splitter-panel.d.ts +3 -2
- package/splitter/splitter-panel.mjs +2 -2
- package/splitter/splitter-resize-trigger.cjs +2 -2
- package/splitter/splitter-resize-trigger.d.ts +3 -2
- package/splitter/splitter-resize-trigger.mjs +2 -2
- package/splitter/splitter.cjs +7 -7
- package/splitter/splitter.d.ts +4 -5
- package/splitter/splitter.mjs +7 -7
- package/splitter/use-splitter.cjs +6 -3
- package/splitter/use-splitter.d.ts +6 -1
- package/splitter/use-splitter.mjs +6 -3
- package/switch/index.cjs +0 -5
- package/switch/index.d.ts +7 -21
- package/switch/index.mjs +0 -1
- package/switch/switch-context.d.ts +3 -2
- package/switch/switch-control.cjs +4 -1
- package/switch/switch-control.d.ts +4 -5
- package/switch/switch-control.mjs +5 -2
- package/switch/switch-label.cjs +2 -2
- package/switch/switch-label.d.ts +4 -5
- package/switch/switch-label.mjs +2 -2
- package/switch/switch-thumb.cjs +2 -2
- package/switch/switch-thumb.d.ts +4 -5
- package/switch/switch-thumb.mjs +2 -2
- package/switch/switch.cjs +2 -6
- package/switch/switch.d.ts +4 -5
- package/switch/switch.mjs +3 -7
- package/switch/use-switch.cjs +4 -3
- package/switch/use-switch.d.ts +6 -1
- package/switch/use-switch.mjs +4 -3
- package/tabs/index.cjs +3 -8
- package/tabs/index.d.ts +8 -19
- package/tabs/index.mjs +0 -1
- package/tabs/tab-content.cjs +2 -2
- package/tabs/tab-content.d.ts +4 -5
- package/tabs/tab-content.mjs +2 -2
- package/tabs/tab-indicator.cjs +2 -2
- package/tabs/tab-indicator.d.ts +4 -5
- package/tabs/tab-indicator.mjs +2 -2
- package/tabs/tab-list.cjs +2 -2
- package/tabs/tab-list.d.ts +4 -5
- package/tabs/tab-list.mjs +2 -2
- package/tabs/tab-presence.cjs +2 -2
- package/tabs/tab-presence.d.ts +2 -1
- package/tabs/tab-presence.mjs +2 -2
- package/tabs/tab-trigger.cjs +2 -2
- package/tabs/tab-trigger.d.ts +3 -2
- package/tabs/tab-trigger.mjs +2 -2
- package/tabs/tabs-context.d.ts +3 -2
- package/tabs/tabs.cjs +5 -5
- package/tabs/tabs.d.ts +3 -2
- package/tabs/tabs.mjs +5 -5
- package/tabs/use-tabs.cjs +5 -3
- package/tabs/use-tabs.d.ts +6 -1
- package/tabs/use-tabs.mjs +5 -3
- package/tags-input/index.cjs +21 -21
- package/tags-input/index.d.ts +19 -56
- package/tags-input/index.mjs +12 -10
- package/tags-input/tags-input-clear-trigger.cjs +2 -2
- package/tags-input/tags-input-clear-trigger.d.ts +4 -5
- package/tags-input/tags-input-clear-trigger.mjs +2 -2
- package/tags-input/tags-input-context.d.ts +3 -2
- package/tags-input/tags-input-control.d.ts +4 -5
- package/tags-input/tags-input-input.d.ts +6 -0
- package/tags-input/tags-input-item-context.cjs +17 -0
- package/tags-input/tags-input-item-context.d.ts +6 -0
- package/tags-input/tags-input-item-context.mjs +12 -0
- package/tags-input/tags-input-item-delete-trigger.cjs +21 -0
- package/tags-input/tags-input-item-delete-trigger.d.ts +6 -0
- package/tags-input/tags-input-item-delete-trigger.mjs +17 -0
- package/tags-input/tags-input-item-input.cjs +23 -0
- package/tags-input/tags-input-item-input.d.ts +6 -0
- package/tags-input/tags-input-item-input.mjs +19 -0
- package/tags-input/tags-input-item-text.cjs +23 -0
- package/tags-input/tags-input-item-text.d.ts +6 -0
- package/tags-input/tags-input-item-text.mjs +19 -0
- package/tags-input/tags-input-item.cjs +29 -0
- package/tags-input/tags-input-item.d.ts +10 -0
- package/tags-input/tags-input-item.mjs +25 -0
- package/tags-input/tags-input-label.cjs +2 -2
- package/tags-input/tags-input-label.d.ts +4 -5
- package/tags-input/tags-input-label.mjs +2 -2
- package/tags-input/tags-input.cjs +3 -3
- package/tags-input/tags-input.d.ts +6 -7
- package/tags-input/tags-input.mjs +3 -3
- package/tags-input/tags-input.stories.d.ts +1 -1
- package/tags-input/use-tags-input.cjs +7 -4
- package/tags-input/use-tags-input.d.ts +6 -1
- package/tags-input/use-tags-input.mjs +7 -4
- package/toast/create-toaster.cjs +59 -0
- package/toast/create-toaster.d.ts +12 -0
- package/toast/create-toaster.mjs +36 -0
- package/toast/index.cjs +4 -20
- package/toast/index.d.ts +10 -30
- package/toast/index.mjs +4 -12
- package/toast/toast-close-trigger.cjs +3 -3
- package/toast/toast-close-trigger.d.ts +4 -5
- package/toast/toast-close-trigger.mjs +3 -3
- package/toast/toast-context.cjs +16 -0
- package/toast/toast-context.d.ts +7 -0
- package/toast/toast-context.mjs +11 -0
- package/toast/toast-description.cjs +6 -8
- package/toast/toast-description.d.ts +4 -5
- package/toast/toast-description.mjs +6 -8
- package/toast/toast-title.cjs +4 -4
- package/toast/toast-title.d.ts +4 -5
- package/toast/toast-title.mjs +4 -4
- package/toast/toast.cjs +4 -11
- package/toast/toast.d.ts +3 -4
- package/toast/toast.mjs +4 -11
- package/toast/toast.stories.d.ts +2 -9
- package/toast/toast.test.d.ts +2 -1
- package/toggle-group/index.cjs +3 -5
- package/toggle-group/index.d.ts +6 -15
- package/toggle-group/index.mjs +3 -4
- package/toggle-group/toggle-group-context.d.ts +3 -2
- package/toggle-group/{toggle.cjs → toggle-group-item.cjs} +5 -5
- package/toggle-group/toggle-group-item.d.ts +8 -0
- package/toggle-group/{toggle.mjs → toggle-group-item.mjs} +5 -5
- package/toggle-group/toggle-group.cjs +1 -1
- package/toggle-group/toggle-group.d.ts +3 -2
- package/toggle-group/toggle-group.mjs +1 -1
- package/toggle-group/use-toggle-group.cjs +4 -3
- package/toggle-group/use-toggle-group.d.ts +6 -1
- package/toggle-group/use-toggle-group.mjs +4 -3
- package/tooltip/index.cjs +3 -8
- package/tooltip/index.d.ts +9 -19
- package/tooltip/index.mjs +0 -1
- package/tooltip/tooltip-arrow-tip.cjs +2 -2
- package/tooltip/tooltip-arrow-tip.d.ts +4 -5
- package/tooltip/tooltip-arrow-tip.mjs +2 -2
- package/tooltip/tooltip-arrow.cjs +2 -2
- package/tooltip/tooltip-arrow.d.ts +4 -5
- package/tooltip/tooltip-arrow.mjs +2 -2
- package/tooltip/tooltip-content.cjs +2 -2
- package/tooltip/tooltip-content.d.ts +3 -2
- package/tooltip/tooltip-content.mjs +2 -2
- package/tooltip/tooltip-context.d.ts +3 -2
- package/tooltip/tooltip-positioner.cjs +2 -2
- package/tooltip/tooltip-positioner.d.ts +4 -5
- package/tooltip/tooltip-positioner.mjs +2 -2
- package/tooltip/tooltip-trigger.cjs +2 -2
- package/tooltip/tooltip-trigger.d.ts +4 -5
- package/tooltip/tooltip-trigger.mjs +2 -2
- package/tooltip/tooltip.cjs +3 -3
- package/tooltip/tooltip.d.ts +3 -4
- package/tooltip/tooltip.mjs +3 -3
- package/tooltip/use-tooltip.cjs +8 -4
- package/tooltip/use-tooltip.d.ts +3 -1
- package/tooltip/use-tooltip.mjs +8 -4
- package/use-event.cjs +1 -2
- package/use-event.mjs +1 -2
- package/accordion/accordion-content.d.ts +0 -7
- package/accordion/accordion-trigger.d.ts +0 -7
- package/accordion/accordion.anatomy.d.ts +0 -1
- package/avatar/avatar.anatomy.d.ts +0 -1
- package/carousel/carousel-next-slide-trigger.cjs +0 -19
- package/carousel/carousel-next-slide-trigger.d.ts +0 -7
- package/carousel/carousel-next-slide-trigger.mjs +0 -15
- package/carousel/carousel-prev-slide-trigger.cjs +0 -19
- package/carousel/carousel-prev-slide-trigger.d.ts +0 -7
- package/carousel/carousel-prev-slide-trigger.mjs +0 -15
- package/carousel/carousel-slide-group.d.ts +0 -7
- package/carousel/carousel-slide.d.ts +0 -7
- package/carousel/carousel.anatomy.cjs +0 -12
- package/carousel/carousel.anatomy.d.ts +0 -3
- package/carousel/carousel.anatomy.mjs +0 -7
- package/checkbox/checkbox.anatomy.d.ts +0 -1
- package/color-picker/color-picker-area-gradient.d.ts +0 -7
- package/color-picker/color-picker-channel-slider-background.cjs +0 -21
- package/color-picker/color-picker-channel-slider-background.d.ts +0 -7
- package/color-picker/color-picker-channel-slider-background.mjs +0 -17
- package/color-picker/color-picker-swatch-background.cjs +0 -21
- package/color-picker/color-picker-swatch-background.d.ts +0 -7
- package/color-picker/color-picker-swatch-background.mjs +0 -17
- package/color-picker/color-picker-swatch-context.cjs +0 -15
- package/color-picker/color-picker-swatch-context.d.ts +0 -4
- package/color-picker/color-picker-swatch-context.mjs +0 -10
- package/color-picker/color-picker.anatomy.cjs +0 -12
- package/color-picker/color-picker.anatomy.d.ts +0 -3
- package/color-picker/color-picker.anatomy.mjs +0 -7
- package/combobox/combobox.anatomy.d.ts +0 -1
- package/date-picker/date-picker-cell-context.cjs +0 -15
- package/date-picker/date-picker-cell-context.d.ts +0 -4
- package/date-picker/date-picker-cell-context.mjs +0 -10
- package/date-picker/date-picker-column-header.cjs +0 -18
- package/date-picker/date-picker-column-header.d.ts +0 -7
- package/date-picker/date-picker-column-header.mjs +0 -14
- package/date-picker/date-picker-day-cell-context.cjs +0 -17
- package/date-picker/date-picker-day-cell-context.d.ts +0 -4
- package/date-picker/date-picker-day-cell-context.mjs +0 -12
- package/date-picker/date-picker-day-cell-trigger.cjs +0 -21
- package/date-picker/date-picker-day-cell-trigger.d.ts +0 -7
- package/date-picker/date-picker-day-cell-trigger.mjs +0 -17
- package/date-picker/date-picker-day-cell.cjs +0 -28
- package/date-picker/date-picker-day-cell.d.ts +0 -7
- package/date-picker/date-picker-day-cell.mjs +0 -24
- package/date-picker/date-picker-grid.d.ts +0 -7
- package/date-picker/date-picker-grid.mjs +0 -17
- package/date-picker/date-picker-month-cell-trigger.cjs +0 -21
- package/date-picker/date-picker-month-cell-trigger.d.ts +0 -7
- package/date-picker/date-picker-month-cell-trigger.mjs +0 -17
- package/date-picker/date-picker-month-cell.cjs +0 -24
- package/date-picker/date-picker-month-cell.d.ts +0 -7
- package/date-picker/date-picker-month-cell.mjs +0 -20
- package/date-picker/date-picker-row-group.cjs +0 -16
- package/date-picker/date-picker-row-group.d.ts +0 -7
- package/date-picker/date-picker-row-group.mjs +0 -12
- package/date-picker/date-picker-row-header.cjs +0 -21
- package/date-picker/date-picker-row-header.d.ts +0 -7
- package/date-picker/date-picker-row-header.mjs +0 -17
- package/date-picker/date-picker-row.cjs +0 -14
- package/date-picker/date-picker-row.d.ts +0 -7
- package/date-picker/date-picker-row.mjs +0 -10
- package/date-picker/date-picker-year-cell-trigger.cjs +0 -21
- package/date-picker/date-picker-year-cell-trigger.d.ts +0 -7
- package/date-picker/date-picker-year-cell-trigger.mjs +0 -17
- package/date-picker/date-picker-year-cell.cjs +0 -24
- package/date-picker/date-picker-year-cell.d.ts +0 -7
- package/date-picker/date-picker-year-cell.mjs +0 -20
- package/date-picker/date-picker.anatomy.cjs +0 -12
- package/date-picker/date-picker.anatomy.d.ts +0 -3
- package/date-picker/date-picker.anatomy.mjs +0 -7
- package/dialog/dialog-container.d.ts +0 -7
- package/dialog/dialog.anatomy.d.ts +0 -1
- package/editable/editable.anatomy.d.ts +0 -1
- 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 -16
- package/pagination/pagination-list-item.d.ts +0 -7
- package/pagination/pagination-list-item.mjs +0 -12
- package/pagination/pagination-list.cjs +0 -14
- package/pagination/pagination-list.d.ts +0 -7
- package/pagination/pagination-list.mjs +0 -10
- package/pagination/pagination-next-page-trigger.cjs +0 -19
- package/pagination/pagination-next-page-trigger.d.ts +0 -7
- package/pagination/pagination-next-page-trigger.mjs +0 -15
- package/pagination/pagination-page-trigger.cjs +0 -26
- package/pagination/pagination-page-trigger.d.ts +0 -7
- package/pagination/pagination-page-trigger.mjs +0 -22
- package/pagination/pagination-prev-page-trigger.cjs +0 -19
- package/pagination/pagination-prev-page-trigger.d.ts +0 -7
- package/pagination/pagination-prev-page-trigger.mjs +0 -15
- package/pagination/pagination.anatomy.cjs +0 -12
- package/pagination/pagination.anatomy.d.ts +0 -3
- package/pagination/pagination.anatomy.mjs +0 -7
- package/pin-input/pin-input.anatomy.d.ts +0 -1
- package/popover/popover.anatomy.d.ts +0 -1
- package/pressable/index.cjs +0 -14
- package/pressable/index.d.ts +0 -10
- package/pressable/index.mjs +0 -9
- package/pressable/pressable.cjs +0 -35
- package/pressable/pressable.d.ts +0 -7
- package/pressable/pressable.mjs +0 -31
- package/pressable/pressable.stories.d.ts +0 -7
- package/pressable/use-pressable.cjs +0 -42
- package/pressable/use-pressable.d.ts +0 -6
- package/pressable/use-pressable.mjs +0 -19
- package/radio-group/radio-context.cjs +0 -16
- package/radio-group/radio-context.d.ts +0 -5
- package/radio-group/radio-context.mjs +0 -11
- package/radio-group/radio-control.cjs +0 -21
- package/radio-group/radio-control.d.ts +0 -7
- package/radio-group/radio-control.mjs +0 -17
- package/radio-group/radio-group.anatomy.d.ts +0 -1
- package/radio-group/radio-label.cjs +0 -21
- package/radio-group/radio-label.d.ts +0 -7
- package/radio-group/radio-label.mjs +0 -17
- package/radio-group/radio.cjs +0 -29
- package/radio-group/radio.d.ts +0 -8
- package/radio-group/radio.mjs +0 -25
- package/range-slider/index.cjs +0 -43
- package/range-slider/index.d.ts +0 -48
- package/range-slider/index.mjs +0 -26
- package/range-slider/range-slider-context.cjs +0 -15
- package/range-slider/range-slider-context.d.ts +0 -5
- package/range-slider/range-slider-context.mjs +0 -10
- package/range-slider/range-slider-control.d.ts +0 -7
- package/range-slider/range-slider-control.mjs +0 -17
- package/range-slider/range-slider-label.d.ts +0 -7
- package/range-slider/range-slider-label.mjs +0 -17
- package/range-slider/range-slider-marker-group.d.ts +0 -7
- package/range-slider/range-slider-marker-group.mjs +0 -17
- package/range-slider/range-slider-marker.cjs +0 -22
- package/range-slider/range-slider-marker.d.ts +0 -10
- package/range-slider/range-slider-marker.mjs +0 -18
- package/range-slider/range-slider-output.cjs +0 -24
- package/range-slider/range-slider-output.d.ts +0 -10
- package/range-slider/range-slider-output.mjs +0 -20
- package/range-slider/range-slider-range.d.ts +0 -7
- package/range-slider/range-slider-range.mjs +0 -15
- package/range-slider/range-slider-thumb.cjs +0 -23
- package/range-slider/range-slider-thumb.d.ts +0 -10
- package/range-slider/range-slider-thumb.mjs +0 -19
- package/range-slider/range-slider-track.d.ts +0 -7
- package/range-slider/range-slider-track.mjs +0 -15
- package/range-slider/range-slider.anatomy.d.ts +0 -1
- package/range-slider/range-slider.cjs +0 -54
- package/range-slider/range-slider.d.ts +0 -10
- package/range-slider/range-slider.mjs +0 -50
- package/range-slider/range-slider.stories.d.ts +0 -8
- package/range-slider/use-range-slider.cjs +0 -51
- package/range-slider/use-range-slider.d.ts +0 -7
- package/range-slider/use-range-slider.mjs +0 -28
- package/rating-group/rating-context.cjs +0 -16
- package/rating-group/rating-context.d.ts +0 -5
- package/rating-group/rating-context.mjs +0 -11
- package/rating-group/rating-group.anatomy.d.ts +0 -1
- package/rating-group/rating.cjs +0 -24
- package/rating-group/rating.d.ts +0 -11
- package/rating-group/rating.mjs +0 -20
- package/segment-group/segment-context.cjs +0 -16
- package/segment-group/segment-context.d.ts +0 -5
- package/segment-group/segment-context.mjs +0 -11
- package/segment-group/segment-control.cjs +0 -22
- package/segment-group/segment-control.d.ts +0 -7
- package/segment-group/segment-control.mjs +0 -18
- package/segment-group/segment-group.anatomy.d.ts +0 -3
- package/segment-group/segment-label.cjs +0 -22
- package/segment-group/segment-label.d.ts +0 -7
- package/segment-group/segment-label.mjs +0 -18
- package/segment-group/segment.cjs +0 -30
- package/segment-group/segment.d.ts +0 -8
- package/segment-group/segment.mjs +0 -26
- package/select/select-value.d.ts +0 -7
- package/select/select-value.mjs +0 -15
- package/select/select.anatomy.cjs +0 -12
- package/select/select.anatomy.d.ts +0 -3
- package/select/select.anatomy.mjs +0 -7
- 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 -27
- package/tags-input/tag-delete-trigger.d.ts +0 -12
- package/tags-input/tag-delete-trigger.mjs +0 -23
- package/tags-input/tag-input.cjs +0 -25
- package/tags-input/tag-input.d.ts +0 -12
- package/tags-input/tag-input.mjs +0 -21
- package/tags-input/tag.cjs +0 -21
- package/tags-input/tag.d.ts +0 -12
- package/tags-input/tag.mjs +0 -17
- package/tags-input/tags-input-field.d.ts +0 -7
- package/tags-input/tags-input.anatomy.d.ts +0 -1
- package/toast/toast-group.cjs +0 -23
- package/toast/toast-group.d.ts +0 -12
- package/toast/toast-group.mjs +0 -19
- package/toast/toast-item-context.cjs +0 -15
- package/toast/toast-item-context.d.ts +0 -5
- package/toast/toast-item-context.mjs +0 -10
- package/toast/toast-placements.cjs +0 -19
- package/toast/toast-placements.d.ts +0 -7
- package/toast/toast-placements.mjs +0 -15
- package/toast/toast-provider.cjs +0 -44
- package/toast/toast-provider.d.ts +0 -10
- package/toast/toast-provider.mjs +0 -20
- package/toast/toast.anatomy.d.ts +0 -1
- package/toast/use-toast-item.cjs +0 -33
- package/toast/use-toast-item.d.ts +0 -6
- package/toast/use-toast-item.mjs +0 -10
- package/toggle-group/toggle-group.anatomy.cjs +0 -10
- package/toggle-group/toggle-group.anatomy.d.ts +0 -2
- package/toggle-group/toggle-group.anatomy.mjs +0 -6
- package/toggle-group/toggle.d.ts +0 -11
- package/tooltip/tooltip.anatomy.d.ts +0 -1
- /package/{pressable/pressable.test.d.ts → color-picker/color-picker.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.cjs → tags-input-input.cjs} +0 -0
- /package/tags-input/{tags-input-field.mjs → tags-input-input.mjs} +0 -0
|
@@ -7,8 +7,8 @@ import { useNumberInputContext } from './number-input-context.mjs';
|
|
|
7
7
|
|
|
8
8
|
const NumberInputScrubber = forwardRef(
|
|
9
9
|
(props, ref) => {
|
|
10
|
-
const
|
|
11
|
-
const mergedProps = mergeProps(scrubberProps, props);
|
|
10
|
+
const api = useNumberInputContext();
|
|
11
|
+
const mergedProps = mergeProps(api.scrubberProps, props);
|
|
12
12
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
13
13
|
}
|
|
14
14
|
);
|
|
@@ -21,33 +21,29 @@ const NumberInput = react.forwardRef((props, ref) => {
|
|
|
21
21
|
"disabled",
|
|
22
22
|
"focusInputOnChange",
|
|
23
23
|
"form",
|
|
24
|
-
"
|
|
24
|
+
"formatOptions",
|
|
25
25
|
"getRootNode",
|
|
26
26
|
"id",
|
|
27
27
|
"ids",
|
|
28
28
|
"inputMode",
|
|
29
29
|
"invalid",
|
|
30
|
+
"locale",
|
|
30
31
|
"max",
|
|
31
|
-
"maxFractionDigits",
|
|
32
32
|
"min",
|
|
33
|
-
"minFractionDigits",
|
|
34
33
|
"name",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"onInvalid",
|
|
39
|
-
"parse",
|
|
34
|
+
"onFocusChange",
|
|
35
|
+
"onValueChange",
|
|
36
|
+
"onValueInvalid",
|
|
40
37
|
"pattern",
|
|
41
38
|
"readOnly",
|
|
42
39
|
"spinOnPress",
|
|
43
40
|
"step",
|
|
44
41
|
"translations",
|
|
45
|
-
"validateCharacter",
|
|
46
42
|
"value"
|
|
47
43
|
]);
|
|
48
|
-
const
|
|
49
|
-
const mergedProps = react$1.mergeProps(
|
|
50
|
-
return /* @__PURE__ */ jsxRuntime.jsx(numberInputContext.NumberInputProvider, { value:
|
|
44
|
+
const api = useNumberInput.useNumberInput(useNumberInputProps);
|
|
45
|
+
const mergedProps = react$1.mergeProps(api.rootProps, divProps);
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(numberInputContext.NumberInputProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
51
47
|
});
|
|
52
48
|
NumberInput.displayName = "NumberInput";
|
|
53
49
|
|
|
@@ -3,5 +3,6 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
4
|
import { type Assign } from '../types';
|
|
5
5
|
import { type UseNumberInputProps } from './use-number-input';
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export interface NumberInputProps extends Assign<HTMLArkProps<'div'>, UseNumberInputProps> {
|
|
7
|
+
}
|
|
8
|
+
export declare const NumberInput: ForwardRefExoticComponent<NumberInputProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -17,33 +17,29 @@ const NumberInput = forwardRef((props, ref) => {
|
|
|
17
17
|
"disabled",
|
|
18
18
|
"focusInputOnChange",
|
|
19
19
|
"form",
|
|
20
|
-
"
|
|
20
|
+
"formatOptions",
|
|
21
21
|
"getRootNode",
|
|
22
22
|
"id",
|
|
23
23
|
"ids",
|
|
24
24
|
"inputMode",
|
|
25
25
|
"invalid",
|
|
26
|
+
"locale",
|
|
26
27
|
"max",
|
|
27
|
-
"maxFractionDigits",
|
|
28
28
|
"min",
|
|
29
|
-
"minFractionDigits",
|
|
30
29
|
"name",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"onInvalid",
|
|
35
|
-
"parse",
|
|
30
|
+
"onFocusChange",
|
|
31
|
+
"onValueChange",
|
|
32
|
+
"onValueInvalid",
|
|
36
33
|
"pattern",
|
|
37
34
|
"readOnly",
|
|
38
35
|
"spinOnPress",
|
|
39
36
|
"step",
|
|
40
37
|
"translations",
|
|
41
|
-
"validateCharacter",
|
|
42
38
|
"value"
|
|
43
39
|
]);
|
|
44
|
-
const
|
|
45
|
-
const mergedProps = mergeProps(
|
|
46
|
-
return /* @__PURE__ */ jsx(NumberInputProvider, { value:
|
|
40
|
+
const api = useNumberInput(useNumberInputProps);
|
|
41
|
+
const mergedProps = mergeProps(api.rootProps, divProps);
|
|
42
|
+
return /* @__PURE__ */ jsx(NumberInputProvider, { value: api, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
47
43
|
});
|
|
48
44
|
NumberInput.displayName = "NumberInput";
|
|
49
45
|
|
|
@@ -29,18 +29,19 @@ function _interopNamespaceDefault(e) {
|
|
|
29
29
|
|
|
30
30
|
const numberInput__namespace = /*#__PURE__*/_interopNamespaceDefault(numberInput);
|
|
31
31
|
|
|
32
|
-
const useNumberInput = (props) => {
|
|
33
|
-
const getRootNode = environmentContext.useEnvironmentContext();
|
|
32
|
+
const useNumberInput = (props = {}) => {
|
|
34
33
|
const initialContext = {
|
|
35
34
|
id: react.useId(),
|
|
36
|
-
getRootNode,
|
|
35
|
+
getRootNode: environmentContext.useEnvironmentContext(),
|
|
37
36
|
...props,
|
|
38
37
|
value: props.defaultValue
|
|
39
38
|
};
|
|
40
39
|
const context = {
|
|
41
40
|
...initialContext,
|
|
42
41
|
value: props.value,
|
|
43
|
-
|
|
42
|
+
onValueChange: useEvent.useEvent(props.onValueChange, { sync: true }),
|
|
43
|
+
onValueInvalid: useEvent.useEvent(props.onValueInvalid),
|
|
44
|
+
onFocusChange: useEvent.useEvent(props.onFocusChange)
|
|
44
45
|
};
|
|
45
46
|
const [state, send] = react$1.useMachine(numberInput__namespace.machine(initialContext), { context });
|
|
46
47
|
return numberInput__namespace.connect(state, send, react$1.normalizeProps);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as numberInput from '@zag-js/number-input';
|
|
2
|
+
import { type PropTypes } from '@zag-js/react';
|
|
2
3
|
import { type Optional } from '../types';
|
|
3
4
|
export interface UseNumberInputProps extends Optional<numberInput.Context, 'id'> {
|
|
5
|
+
/**
|
|
6
|
+
* The initial value of the number input.
|
|
7
|
+
*/
|
|
4
8
|
defaultValue?: numberInput.Context['value'];
|
|
5
9
|
}
|
|
6
|
-
export
|
|
7
|
-
|
|
10
|
+
export interface UseNumberInputReturn extends numberInput.Api<PropTypes> {
|
|
11
|
+
}
|
|
12
|
+
export declare const useNumberInput: (props?: UseNumberInputProps) => UseNumberInputReturn;
|
|
@@ -6,18 +6,19 @@ import '../environment/index.mjs';
|
|
|
6
6
|
import { useEvent } from '../use-event.mjs';
|
|
7
7
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
8
8
|
|
|
9
|
-
const useNumberInput = (props) => {
|
|
10
|
-
const getRootNode = useEnvironmentContext();
|
|
9
|
+
const useNumberInput = (props = {}) => {
|
|
11
10
|
const initialContext = {
|
|
12
11
|
id: useId(),
|
|
13
|
-
getRootNode,
|
|
12
|
+
getRootNode: useEnvironmentContext(),
|
|
14
13
|
...props,
|
|
15
14
|
value: props.defaultValue
|
|
16
15
|
};
|
|
17
16
|
const context = {
|
|
18
17
|
...initialContext,
|
|
19
18
|
value: props.value,
|
|
20
|
-
|
|
19
|
+
onValueChange: useEvent(props.onValueChange, { sync: true }),
|
|
20
|
+
onValueInvalid: useEvent(props.onValueInvalid),
|
|
21
|
+
onFocusChange: useEvent(props.onFocusChange)
|
|
21
22
|
};
|
|
22
23
|
const [state, send] = useMachine(numberInput.machine(initialContext), { context });
|
|
23
24
|
return numberInput.connect(state, send, normalizeProps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "A collection of unstyled, accessible UI components for React, 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",
|
|
@@ -44,7 +42,7 @@
|
|
|
44
42
|
"repository": {
|
|
45
43
|
"type": "git",
|
|
46
44
|
"url": "git+https://github.com/chakra-ui/ark.git",
|
|
47
|
-
"directory": "packages/react"
|
|
45
|
+
"directory": "packages/frameworks/react"
|
|
48
46
|
},
|
|
49
47
|
"bugs": {
|
|
50
48
|
"url": "https://github.com/chakra-ui/ark/issues"
|
|
@@ -58,79 +56,79 @@
|
|
|
58
56
|
"storydocs": "pnpm --filter=@ark-ui/scripts document:stories react",
|
|
59
57
|
"typedocs": "pnpm --filter=@ark-ui/scripts document:types react",
|
|
60
58
|
"storybook": "storybook dev -p 6006",
|
|
61
|
-
"release-it": "release-it --config
|
|
59
|
+
"release-it": "release-it --config ../../../release-it.json"
|
|
62
60
|
},
|
|
63
61
|
"dependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@zag-js/
|
|
66
|
-
"@zag-js/
|
|
67
|
-
"@zag-js/
|
|
68
|
-
"@zag-js/
|
|
69
|
-
"@zag-js/
|
|
70
|
-
"@zag-js/color-
|
|
71
|
-
"@zag-js/
|
|
72
|
-
"@zag-js/
|
|
73
|
-
"@zag-js/
|
|
74
|
-
"@zag-js/date-
|
|
75
|
-
"@zag-js/
|
|
76
|
-
"@zag-js/
|
|
77
|
-
"@zag-js/
|
|
78
|
-
"@zag-js/
|
|
79
|
-
"@zag-js/
|
|
80
|
-
"@zag-js/
|
|
81
|
-
"@zag-js/
|
|
82
|
-
"@zag-js/
|
|
83
|
-
"@zag-js/
|
|
84
|
-
"@zag-js/
|
|
85
|
-
"@zag-js/radio-group": "0.
|
|
86
|
-
"@zag-js/
|
|
87
|
-
"@zag-js/
|
|
88
|
-
"@zag-js/
|
|
89
|
-
"@zag-js/
|
|
90
|
-
"@zag-js/
|
|
91
|
-
"@zag-js/
|
|
92
|
-
"@zag-js/
|
|
93
|
-
"@zag-js/
|
|
94
|
-
"@zag-js/
|
|
95
|
-
"@zag-js/
|
|
96
|
-
"@zag-js/
|
|
97
|
-
"@zag-js/
|
|
98
|
-
"@zag-js/types": "0.19.1"
|
|
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/color-utils": "0.26.0",
|
|
70
|
+
"@zag-js/combobox": "0.26.0",
|
|
71
|
+
"@zag-js/core": "0.26.0",
|
|
72
|
+
"@zag-js/date-picker": "0.26.0",
|
|
73
|
+
"@zag-js/date-utils": "0.26.0",
|
|
74
|
+
"@zag-js/dialog": "0.26.0",
|
|
75
|
+
"@zag-js/editable": "0.26.0",
|
|
76
|
+
"@zag-js/hover-card": "0.26.0",
|
|
77
|
+
"@zag-js/menu": "0.26.0",
|
|
78
|
+
"@zag-js/number-input": "0.26.0",
|
|
79
|
+
"@zag-js/pagination": "0.26.0",
|
|
80
|
+
"@zag-js/pin-input": "0.26.0",
|
|
81
|
+
"@zag-js/popover": "0.26.0",
|
|
82
|
+
"@zag-js/presence": "0.26.0",
|
|
83
|
+
"@zag-js/radio-group": "0.26.0",
|
|
84
|
+
"@zag-js/rating-group": "0.26.0",
|
|
85
|
+
"@zag-js/react": "0.26.0",
|
|
86
|
+
"@zag-js/select": "0.26.0",
|
|
87
|
+
"@zag-js/slider": "0.26.0",
|
|
88
|
+
"@zag-js/splitter": "0.26.0",
|
|
89
|
+
"@zag-js/switch": "0.26.0",
|
|
90
|
+
"@zag-js/tabs": "0.26.0",
|
|
91
|
+
"@zag-js/tags-input": "0.26.0",
|
|
92
|
+
"@zag-js/toast": "0.26.0",
|
|
93
|
+
"@zag-js/toggle-group": "0.26.0",
|
|
94
|
+
"@zag-js/tooltip": "0.26.0",
|
|
95
|
+
"@zag-js/types": "0.26.0"
|
|
99
96
|
},
|
|
100
97
|
"devDependencies": {
|
|
101
98
|
"@release-it/keep-a-changelog": "4.0.0",
|
|
102
|
-
"@storybook/addon-a11y": "7.4.
|
|
103
|
-
"@storybook/addon-essentials": "7.4.
|
|
104
|
-
"@storybook/addons": "7.4.
|
|
105
|
-
"@storybook/react": "7.4.
|
|
106
|
-
"@storybook/react-vite": "7.4.
|
|
107
|
-
"@testing-library/dom": "9.3.
|
|
108
|
-
"@testing-library/jest-dom": "6.1.
|
|
99
|
+
"@storybook/addon-a11y": "7.4.6",
|
|
100
|
+
"@storybook/addon-essentials": "7.4.6",
|
|
101
|
+
"@storybook/addons": "7.4.6",
|
|
102
|
+
"@storybook/react": "7.4.6",
|
|
103
|
+
"@storybook/react-vite": "7.4.6",
|
|
104
|
+
"@testing-library/dom": "9.3.3",
|
|
105
|
+
"@testing-library/jest-dom": "6.1.4",
|
|
109
106
|
"@testing-library/react": "14.0.0",
|
|
110
|
-
"@testing-library/user-event": "14.
|
|
111
|
-
"@types/jsdom": "21.1.
|
|
112
|
-
"@types/react": "18.2.
|
|
113
|
-
"@types/react-dom": "18.2.
|
|
107
|
+
"@testing-library/user-event": "14.5.1",
|
|
108
|
+
"@types/jsdom": "21.1.3",
|
|
109
|
+
"@types/react": "18.2.28",
|
|
110
|
+
"@types/react-dom": "18.2.13",
|
|
114
111
|
"@types/testing-library__jest-dom": "5.14.9",
|
|
115
|
-
"@typescript-eslint/eslint-plugin": "6.7.
|
|
116
|
-
"@typescript-eslint/parser": "6.7.
|
|
117
|
-
"@vitejs/plugin-react": "4.0
|
|
118
|
-
"@vitest/coverage-v8": "0.34.
|
|
119
|
-
"eslint": "8.
|
|
112
|
+
"@typescript-eslint/eslint-plugin": "6.7.5",
|
|
113
|
+
"@typescript-eslint/parser": "6.7.5",
|
|
114
|
+
"@vitejs/plugin-react": "4.1.0",
|
|
115
|
+
"@vitest/coverage-v8": "0.34.6",
|
|
116
|
+
"eslint": "8.51.0",
|
|
120
117
|
"eslint-plugin-react": "7.33.2",
|
|
121
118
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
122
119
|
"globby": "13.2.2",
|
|
123
120
|
"jsdom": "22.1.0",
|
|
121
|
+
"lucide-react": "0.287.0",
|
|
124
122
|
"react": "18.2.0",
|
|
125
123
|
"react-dom": "18.2.0",
|
|
126
124
|
"react-frame-component": "5.2.6",
|
|
127
|
-
"release-it": "16.1
|
|
125
|
+
"release-it": "16.2.1",
|
|
128
126
|
"resize-observer-polyfill": "1.5.1",
|
|
129
|
-
"storybook": "7.4.
|
|
127
|
+
"storybook": "7.4.6",
|
|
130
128
|
"typescript": "5.2.2",
|
|
131
|
-
"vite": "4.4.
|
|
132
|
-
"vite-plugin-dts": "3.
|
|
133
|
-
"vitest": "0.34.
|
|
129
|
+
"vite": "4.4.11",
|
|
130
|
+
"vite-plugin-dts": "3.6.0",
|
|
131
|
+
"vitest": "0.34.6"
|
|
134
132
|
},
|
|
135
133
|
"peerDependencies": {
|
|
136
134
|
"react": ">=18.0.0",
|
|
@@ -233,21 +231,11 @@
|
|
|
233
231
|
"import": "./presence/index.mjs",
|
|
234
232
|
"require": "./presence/index.cjs"
|
|
235
233
|
},
|
|
236
|
-
"./pressable": {
|
|
237
|
-
"types": "./pressable/index.d.ts",
|
|
238
|
-
"import": "./pressable/index.mjs",
|
|
239
|
-
"require": "./pressable/index.cjs"
|
|
240
|
-
},
|
|
241
234
|
"./radio-group": {
|
|
242
235
|
"types": "./radio-group/index.d.ts",
|
|
243
236
|
"import": "./radio-group/index.mjs",
|
|
244
237
|
"require": "./radio-group/index.cjs"
|
|
245
238
|
},
|
|
246
|
-
"./range-slider": {
|
|
247
|
-
"types": "./range-slider/index.d.ts",
|
|
248
|
-
"import": "./range-slider/index.mjs",
|
|
249
|
-
"require": "./range-slider/index.cjs"
|
|
250
|
-
},
|
|
251
239
|
"./rating-group": {
|
|
252
240
|
"types": "./rating-group/index.d.ts",
|
|
253
241
|
"import": "./rating-group/index.mjs",
|
package/pagination/index.cjs
CHANGED
|
@@ -6,29 +6,21 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
6
6
|
const pagination = require('./pagination.cjs');
|
|
7
7
|
const paginationContext = require('./pagination-context.cjs');
|
|
8
8
|
const paginationEllipsis = require('./pagination-ellipsis.cjs');
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const paginationPageTrigger = require('./pagination-page-trigger.cjs');
|
|
13
|
-
const paginationPrevPageTrigger = require('./pagination-prev-page-trigger.cjs');
|
|
14
|
-
const pagination_anatomy = require('./pagination.anatomy.cjs');
|
|
9
|
+
const paginationItem = require('./pagination-item.cjs');
|
|
10
|
+
const paginationNextTrigger = require('./pagination-next-trigger.cjs');
|
|
11
|
+
const paginationPrevTrigger = require('./pagination-prev-trigger.cjs');
|
|
15
12
|
|
|
16
13
|
const Pagination = Object.assign(pagination.Pagination, {
|
|
17
14
|
Root: pagination.Pagination,
|
|
18
15
|
Ellipsis: paginationEllipsis.PaginationEllipsis,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
PageTrigger: paginationPageTrigger.PaginationPageTrigger,
|
|
23
|
-
PrevPageTrigger: paginationPrevPageTrigger.PaginationPrevPageTrigger
|
|
16
|
+
Item: paginationItem.PaginationItem,
|
|
17
|
+
NextTrigger: paginationNextTrigger.PaginationNextTrigger,
|
|
18
|
+
PrevTrigger: paginationPrevTrigger.PaginationPrevTrigger
|
|
24
19
|
});
|
|
25
20
|
|
|
26
21
|
exports.usePaginationContext = paginationContext.usePaginationContext;
|
|
27
22
|
exports.PaginationEllipsis = paginationEllipsis.PaginationEllipsis;
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.PaginationPageTrigger = paginationPageTrigger.PaginationPageTrigger;
|
|
32
|
-
exports.PaginationPrevPageTrigger = paginationPrevPageTrigger.PaginationPrevPageTrigger;
|
|
33
|
-
exports.paginationAnatomy = pagination_anatomy.paginationAnatomy;
|
|
23
|
+
exports.PaginationItem = paginationItem.PaginationItem;
|
|
24
|
+
exports.PaginationNextTrigger = paginationNextTrigger.PaginationNextTrigger;
|
|
25
|
+
exports.PaginationPrevTrigger = paginationPrevTrigger.PaginationPrevTrigger;
|
|
34
26
|
exports.Pagination = Pagination;
|
package/pagination/index.d.ts
CHANGED
|
@@ -1,38 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UsePaginationProps, UsePaginationReturn } from './use-pagination';
|
|
3
|
-
import { HTMLArkProps } from '..';
|
|
4
|
-
import { Assign } from '../types';
|
|
5
|
-
import { ForwardRefExoticComponent, ReactNode, RefAttributes, DetailedHTMLProps, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
2
|
/// <reference types="react" />
|
|
7
3
|
import { type PaginationProps } from './pagination';
|
|
8
4
|
import { usePaginationContext, type PaginationContext } from './pagination-context';
|
|
9
5
|
import { PaginationEllipsis, type PaginationEllipsisProps } from './pagination-ellipsis';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Root: ForwardRefExoticComponent<Omit<Assign<HTMLArkProps<"nav">, UsePaginationProps>, "children"> & {
|
|
20
|
-
children?: ReactNode | ((pages: UsePaginationReturn) => ReactNode);
|
|
21
|
-
} & RefAttributes<HTMLElement>>;
|
|
22
|
-
Ellipsis: ForwardRefExoticComponent<Omit<HTMLArkProps<"div">, "index"> & EllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
23
|
-
List: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
24
|
-
asChild?: boolean | undefined;
|
|
25
|
-
} & RefAttributes<HTMLUListElement>>;
|
|
26
|
-
ListItem: ForwardRefExoticComponent<Omit<DetailedHTMLProps<LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
27
|
-
asChild?: boolean | undefined;
|
|
28
|
-
} & RefAttributes<HTMLLIElement>>;
|
|
29
|
-
NextPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
30
|
-
asChild?: boolean | undefined;
|
|
31
|
-
} & RefAttributes<HTMLButtonElement>>;
|
|
32
|
-
PageTrigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof PageTriggerProps> & PageTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
33
|
-
PrevPageTrigger: ForwardRefExoticComponent<Omit<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
34
|
-
asChild?: boolean | undefined;
|
|
35
|
-
} & RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
import { PaginationItem, type PaginationItemProps } from './pagination-item';
|
|
7
|
+
import { PaginationNextTrigger, type PaginationNextTriggerProps } from './pagination-next-trigger';
|
|
8
|
+
import { PaginationPrevTrigger, type PaginationPrevTriggerProps } from './pagination-prev-trigger';
|
|
9
|
+
declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>> & {
|
|
10
|
+
Root: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
|
|
11
|
+
Ellipsis: ForwardRefExoticComponent<PaginationEllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Item: ForwardRefExoticComponent<PaginationItemProps & RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
NextTrigger: ForwardRefExoticComponent<PaginationNextTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
PrevTrigger: ForwardRefExoticComponent<PaginationPrevTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
36
15
|
};
|
|
37
|
-
export { Pagination, PaginationEllipsis,
|
|
38
|
-
export type { PaginationContext, PaginationEllipsisProps,
|
|
16
|
+
export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger, usePaginationContext, };
|
|
17
|
+
export type { PaginationContext, PaginationEllipsisProps, PaginationItemProps, PaginationNextTriggerProps, PaginationPrevTriggerProps, PaginationProps, };
|
package/pagination/index.mjs
CHANGED
|
@@ -2,21 +2,16 @@
|
|
|
2
2
|
import { Pagination as Pagination$1 } from './pagination.mjs';
|
|
3
3
|
export { usePaginationContext } from './pagination-context.mjs';
|
|
4
4
|
import { PaginationEllipsis } from './pagination-ellipsis.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { PaginationPageTrigger } from './pagination-page-trigger.mjs';
|
|
9
|
-
import { PaginationPrevPageTrigger } from './pagination-prev-page-trigger.mjs';
|
|
10
|
-
export { paginationAnatomy } from './pagination.anatomy.mjs';
|
|
5
|
+
import { PaginationItem } from './pagination-item.mjs';
|
|
6
|
+
import { PaginationNextTrigger } from './pagination-next-trigger.mjs';
|
|
7
|
+
import { PaginationPrevTrigger } from './pagination-prev-trigger.mjs';
|
|
11
8
|
|
|
12
9
|
const Pagination = Object.assign(Pagination$1, {
|
|
13
10
|
Root: Pagination$1,
|
|
14
11
|
Ellipsis: PaginationEllipsis,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
PageTrigger: PaginationPageTrigger,
|
|
19
|
-
PrevPageTrigger: PaginationPrevPageTrigger
|
|
12
|
+
Item: PaginationItem,
|
|
13
|
+
NextTrigger: PaginationNextTrigger,
|
|
14
|
+
PrevTrigger: PaginationPrevTrigger
|
|
20
15
|
});
|
|
21
16
|
|
|
22
|
-
export { Pagination, PaginationEllipsis,
|
|
17
|
+
export { Pagination, PaginationEllipsis, PaginationItem, PaginationNextTrigger, PaginationPrevTrigger };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Provider } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type UsePaginationReturn } from './use-pagination';
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export interface PaginationContext extends UsePaginationReturn {
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationProvider: Provider<PaginationContext>, usePaginationContext: () => PaginationContext;
|
|
@@ -13,8 +13,8 @@ const paginationContext = require('./pagination-context.cjs');
|
|
|
13
13
|
const PaginationEllipsis = react.forwardRef(
|
|
14
14
|
(props, ref) => {
|
|
15
15
|
const [ellipsisProps, localProps] = createSplitProps.createSplitProps()(props, ["index"]);
|
|
16
|
-
const
|
|
17
|
-
const mergedProps = react$1.mergeProps(getEllipsisProps(ellipsisProps), localProps);
|
|
16
|
+
const api = paginationContext.usePaginationContext();
|
|
17
|
+
const mergedProps = react$1.mergeProps(api.getEllipsisProps(ellipsisProps), localProps);
|
|
18
18
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
@@ -3,5 +3,6 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
|
3
3
|
import type { EllipsisProps } from '@zag-js/pagination';
|
|
4
4
|
import { type HTMLArkProps } from '../factory';
|
|
5
5
|
import { type Assign } from '../types';
|
|
6
|
-
export
|
|
7
|
-
|
|
6
|
+
export interface PaginationEllipsisProps extends Assign<HTMLArkProps<'div'>, EllipsisProps> {
|
|
7
|
+
}
|
|
8
|
+
export declare const PaginationEllipsis: ForwardRefExoticComponent<PaginationEllipsisProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -9,8 +9,8 @@ import { usePaginationContext } from './pagination-context.mjs';
|
|
|
9
9
|
const PaginationEllipsis = forwardRef(
|
|
10
10
|
(props, ref) => {
|
|
11
11
|
const [ellipsisProps, localProps] = createSplitProps()(props, ["index"]);
|
|
12
|
-
const
|
|
13
|
-
const mergedProps = mergeProps(getEllipsisProps(ellipsisProps), localProps);
|
|
12
|
+
const api = usePaginationContext();
|
|
13
|
+
const mergedProps = mergeProps(api.getEllipsisProps(ellipsisProps), localProps);
|
|
14
14
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
15
15
|
}
|
|
16
16
|
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const createSplitProps = require('../create-split-props.cjs');
|
|
10
|
+
const factory = require('../factory.cjs');
|
|
11
|
+
const paginationContext = require('./pagination-context.cjs');
|
|
12
|
+
|
|
13
|
+
const PaginationItem = react.forwardRef((props, ref) => {
|
|
14
|
+
const [itemProps, localProps] = createSplitProps.createSplitProps()(props, ["type", "value"]);
|
|
15
|
+
const api = paginationContext.usePaginationContext();
|
|
16
|
+
const mergedProps = react$1.mergeProps(api.getItemProps(itemProps), localProps);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
18
|
+
});
|
|
19
|
+
PaginationItem.displayName = "PaginationItem";
|
|
20
|
+
|
|
21
|
+
exports.PaginationItem = PaginationItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { ItemProps } from '@zag-js/pagination';
|
|
4
|
+
import { type HTMLArkProps } from '../factory';
|
|
5
|
+
import type { Assign } from '../types';
|
|
6
|
+
export interface PaginationItemProps extends Assign<HTMLArkProps<'button'>, ItemProps> {
|
|
7
|
+
}
|
|
8
|
+
export declare const PaginationItem: ForwardRefExoticComponent<PaginationItemProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { createSplitProps } from '../create-split-props.mjs';
|
|
6
|
+
import { ark } from '../factory.mjs';
|
|
7
|
+
import { usePaginationContext } from './pagination-context.mjs';
|
|
8
|
+
|
|
9
|
+
const PaginationItem = forwardRef((props, ref) => {
|
|
10
|
+
const [itemProps, localProps] = createSplitProps()(props, ["type", "value"]);
|
|
11
|
+
const api = usePaginationContext();
|
|
12
|
+
const mergedProps = mergeProps(api.getItemProps(itemProps), localProps);
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
14
|
+
});
|
|
15
|
+
PaginationItem.displayName = "PaginationItem";
|
|
16
|
+
|
|
17
|
+
export { PaginationItem };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const factory = require('../factory.cjs');
|
|
10
|
+
const paginationContext = require('./pagination-context.cjs');
|
|
11
|
+
|
|
12
|
+
const PaginationNextTrigger = react.forwardRef(
|
|
13
|
+
(props, ref) => {
|
|
14
|
+
const api = paginationContext.usePaginationContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(api.nextTriggerProps, props);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
PaginationNextTrigger.displayName = "PaginationNextTrigger";
|
|
20
|
+
|
|
21
|
+
exports.PaginationNextTrigger = PaginationNextTrigger;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { type HTMLArkProps } from '../factory';
|
|
4
|
+
export interface PaginationNextTriggerProps extends HTMLArkProps<'button'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const PaginationNextTrigger: ForwardRefExoticComponent<PaginationNextTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { ark } from '../factory.mjs';
|
|
6
|
+
import { usePaginationContext } from './pagination-context.mjs';
|
|
7
|
+
|
|
8
|
+
const PaginationNextTrigger = forwardRef(
|
|
9
|
+
(props, ref) => {
|
|
10
|
+
const api = usePaginationContext();
|
|
11
|
+
const mergedProps = mergeProps(api.nextTriggerProps, props);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
PaginationNextTrigger.displayName = "PaginationNextTrigger";
|
|
16
|
+
|
|
17
|
+
export { PaginationNextTrigger };
|