@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
package/splitter/splitter.cjs
CHANGED
|
@@ -21,17 +21,17 @@ const Splitter = react.forwardRef((props, ref) => {
|
|
|
21
21
|
"getRootNode",
|
|
22
22
|
"id",
|
|
23
23
|
"ids",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
24
|
+
"onSizeChange",
|
|
25
|
+
"onSizeChangeEnd",
|
|
26
|
+
"onSizeChangeStart",
|
|
27
27
|
"orientation",
|
|
28
28
|
"size"
|
|
29
29
|
]
|
|
30
30
|
);
|
|
31
|
-
const
|
|
32
|
-
const mergedProps = react$1.mergeProps(
|
|
33
|
-
const view = runIfFn.runIfFn(children,
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsx(splitterContext.SplitterProvider, { value:
|
|
31
|
+
const api = useSplitter.useSplitter(useSplitterProps);
|
|
32
|
+
const mergedProps = react$1.mergeProps(api.rootProps, divProps);
|
|
33
|
+
const view = runIfFn.runIfFn(children, api);
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(splitterContext.SplitterProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: view }) });
|
|
35
35
|
});
|
|
36
36
|
Splitter.displayName = "Splitter";
|
|
37
37
|
|
package/splitter/splitter.d.ts
CHANGED
|
@@ -2,9 +2,8 @@ import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
import { type UseSplitterProps, type UseSplitterReturn } from './use-splitter';
|
|
5
|
-
export
|
|
5
|
+
export interface SplitterProps extends Assign<HTMLArkProps<'div'>, UseSplitterProps & {
|
|
6
6
|
children?: ReactNode | ((state: UseSplitterReturn) => ReactNode);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Splitter: ForwardRefExoticComponent<SplitterProps & RefAttributes<HTMLDivElement>>;
|
package/splitter/splitter.mjs
CHANGED
|
@@ -17,17 +17,17 @@ const Splitter = forwardRef((props, ref) => {
|
|
|
17
17
|
"getRootNode",
|
|
18
18
|
"id",
|
|
19
19
|
"ids",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"onSizeChange",
|
|
21
|
+
"onSizeChangeEnd",
|
|
22
|
+
"onSizeChangeStart",
|
|
23
23
|
"orientation",
|
|
24
24
|
"size"
|
|
25
25
|
]
|
|
26
26
|
);
|
|
27
|
-
const
|
|
28
|
-
const mergedProps = mergeProps(
|
|
29
|
-
const view = runIfFn(children,
|
|
30
|
-
return /* @__PURE__ */ jsx(SplitterProvider, { value:
|
|
27
|
+
const api = useSplitter(useSplitterProps);
|
|
28
|
+
const mergedProps = mergeProps(api.rootProps, divProps);
|
|
29
|
+
const view = runIfFn(children, api);
|
|
30
|
+
return /* @__PURE__ */ jsx(SplitterProvider, { value: api, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref, children: view }) });
|
|
31
31
|
});
|
|
32
32
|
Splitter.displayName = "Splitter";
|
|
33
33
|
|
|
@@ -7,6 +7,7 @@ const react$1 = require('@zag-js/react');
|
|
|
7
7
|
const splitter = require('@zag-js/splitter');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
require('../environment/index.cjs');
|
|
10
|
+
const useEvent = require('../use-event.cjs');
|
|
10
11
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
11
12
|
|
|
12
13
|
function _interopNamespaceDefault(e) {
|
|
@@ -29,16 +30,18 @@ function _interopNamespaceDefault(e) {
|
|
|
29
30
|
const splitter__namespace = /*#__PURE__*/_interopNamespaceDefault(splitter);
|
|
30
31
|
|
|
31
32
|
const useSplitter = (props) => {
|
|
32
|
-
const getRootNode = environmentContext.useEnvironmentContext();
|
|
33
33
|
const initialContext = {
|
|
34
34
|
id: react.useId(),
|
|
35
|
-
getRootNode,
|
|
35
|
+
getRootNode: environmentContext.useEnvironmentContext(),
|
|
36
36
|
...props,
|
|
37
37
|
size: props.defaultSize
|
|
38
38
|
};
|
|
39
39
|
const context = {
|
|
40
40
|
...initialContext,
|
|
41
|
-
size: props.size
|
|
41
|
+
size: props.size,
|
|
42
|
+
onSizeChange: useEvent.useEvent(props.onSizeChange, { sync: true }),
|
|
43
|
+
onSizeChangeEnd: useEvent.useEvent(props.onSizeChangeEnd),
|
|
44
|
+
onSizeChangeStart: useEvent.useEvent(props.onSizeChangeStart)
|
|
42
45
|
};
|
|
43
46
|
const [state, send] = react$1.useMachine(splitter__namespace.machine(initialContext), { context });
|
|
44
47
|
return splitter__namespace.connect(state, send, react$1.normalizeProps);
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { type PropTypes } from '@zag-js/react';
|
|
1
2
|
import * as splitter from '@zag-js/splitter';
|
|
2
3
|
import { type Optional } from '../types';
|
|
3
4
|
export interface UseSplitterProps extends Optional<splitter.Context, 'id'> {
|
|
5
|
+
/**
|
|
6
|
+
* The initial size of the splitter.
|
|
7
|
+
*/
|
|
4
8
|
defaultSize?: splitter.Context['size'];
|
|
5
9
|
}
|
|
6
|
-
export
|
|
10
|
+
export interface UseSplitterReturn extends splitter.Api<PropTypes> {
|
|
11
|
+
}
|
|
7
12
|
export declare const useSplitter: (props: UseSplitterProps) => UseSplitterReturn;
|
|
@@ -3,19 +3,22 @@ import { useMachine, normalizeProps } from '@zag-js/react';
|
|
|
3
3
|
import * as splitter from '@zag-js/splitter';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import '../environment/index.mjs';
|
|
6
|
+
import { useEvent } from '../use-event.mjs';
|
|
6
7
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
7
8
|
|
|
8
9
|
const useSplitter = (props) => {
|
|
9
|
-
const getRootNode = useEnvironmentContext();
|
|
10
10
|
const initialContext = {
|
|
11
11
|
id: useId(),
|
|
12
|
-
getRootNode,
|
|
12
|
+
getRootNode: useEnvironmentContext(),
|
|
13
13
|
...props,
|
|
14
14
|
size: props.defaultSize
|
|
15
15
|
};
|
|
16
16
|
const context = {
|
|
17
17
|
...initialContext,
|
|
18
|
-
size: props.size
|
|
18
|
+
size: props.size,
|
|
19
|
+
onSizeChange: useEvent(props.onSizeChange, { sync: true }),
|
|
20
|
+
onSizeChangeEnd: useEvent(props.onSizeChangeEnd),
|
|
21
|
+
onSizeChangeStart: useEvent(props.onSizeChangeStart)
|
|
19
22
|
};
|
|
20
23
|
const [state, send] = useMachine(splitter.machine(initialContext), { context });
|
|
21
24
|
return splitter.connect(state, send, normalizeProps);
|
package/switch/index.cjs
CHANGED
|
@@ -8,7 +8,6 @@ const switchContext = require('./switch-context.cjs');
|
|
|
8
8
|
const switchControl = require('./switch-control.cjs');
|
|
9
9
|
const switchLabel = require('./switch-label.cjs');
|
|
10
10
|
const switchThumb = require('./switch-thumb.cjs');
|
|
11
|
-
const zagSwitch = require('@zag-js/switch');
|
|
12
11
|
|
|
13
12
|
const Switch = Object.assign(_switch.Switch, {
|
|
14
13
|
Root: _switch.Switch,
|
|
@@ -21,8 +20,4 @@ exports.useSwitchContext = switchContext.useSwitchContext;
|
|
|
21
20
|
exports.SwitchControl = switchControl.SwitchControl;
|
|
22
21
|
exports.SwitchLabel = switchLabel.SwitchLabel;
|
|
23
22
|
exports.SwitchThumb = switchThumb.SwitchThumb;
|
|
24
|
-
Object.defineProperty(exports, 'switchAnatomy', {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: () => zagSwitch.anatomy
|
|
27
|
-
});
|
|
28
23
|
exports.Switch = Switch;
|
package/switch/index.d.ts
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HTMLArkProps } from '..';
|
|
3
|
-
import { Assign } from '../types';
|
|
4
|
-
import { ForwardRefExoticComponent, ReactNode, RefAttributes, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
5
2
|
/// <reference types="react" />
|
|
6
3
|
import { type SwitchProps } from './switch';
|
|
7
4
|
import { useSwitchContext, type SwitchContext } from './switch-context';
|
|
8
5
|
import { SwitchControl, type SwitchControlProps } from './switch-control';
|
|
9
6
|
import { SwitchLabel, type SwitchLabelProps } from './switch-label';
|
|
10
7
|
import { SwitchThumb, type SwitchThumbProps } from './switch-thumb';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
children?: ReactNode | ((pages: UseSwitchReturn) => ReactNode);
|
|
17
|
-
} & RefAttributes<HTMLLabelElement>>;
|
|
18
|
-
Control: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
19
|
-
asChild?: boolean | undefined;
|
|
20
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
21
|
-
Label: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
22
|
-
asChild?: boolean | undefined;
|
|
23
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
24
|
-
Thumb: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
25
|
-
asChild?: boolean | undefined;
|
|
26
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLLabelElement>> & {
|
|
9
|
+
Root: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLLabelElement>>;
|
|
10
|
+
Control: ForwardRefExoticComponent<SwitchControlProps & RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
Label: ForwardRefExoticComponent<SwitchLabelProps & RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
Thumb: ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLSpanElement>>;
|
|
27
13
|
};
|
|
28
|
-
export { Switch, SwitchControl, SwitchLabel, SwitchThumb,
|
|
14
|
+
export { Switch, SwitchControl, SwitchLabel, SwitchThumb, useSwitchContext };
|
|
29
15
|
export type { SwitchContext, SwitchControlProps, SwitchLabelProps, SwitchProps, SwitchThumbProps };
|
package/switch/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ export { useSwitchContext } from './switch-context.mjs';
|
|
|
4
4
|
import { SwitchControl } from './switch-control.mjs';
|
|
5
5
|
import { SwitchLabel } from './switch-label.mjs';
|
|
6
6
|
import { SwitchThumb } from './switch-thumb.mjs';
|
|
7
|
-
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
|
8
7
|
|
|
9
8
|
const Switch = Object.assign(Switch$1, {
|
|
10
9
|
Root: Switch$1,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Provider } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type UseSwitchReturn } from './use-switch';
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export interface SwitchContext extends UseSwitchReturn {
|
|
5
|
+
}
|
|
6
|
+
export declare const SwitchProvider: Provider<SwitchContext>, useSwitchContext: () => SwitchContext;
|
|
@@ -12,7 +12,10 @@ const switchContext = require('./switch-context.cjs');
|
|
|
12
12
|
const SwitchControl = react.forwardRef((props, ref) => {
|
|
13
13
|
const api = switchContext.useSwitchContext();
|
|
14
14
|
const mergedProps = react$1.mergeProps(api.controlProps, props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref }),
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
|
|
18
|
+
] });
|
|
16
19
|
});
|
|
17
20
|
SwitchControl.displayName = "SwitchControl";
|
|
18
21
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export interface SwitchControlProps extends HTMLArkProps<'span'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const SwitchControl: ForwardRefExoticComponent<SwitchControlProps & RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { ark } from '../factory.mjs';
|
|
@@ -8,7 +8,10 @@ import { useSwitchContext } from './switch-context.mjs';
|
|
|
8
8
|
const SwitchControl = forwardRef((props, ref) => {
|
|
9
9
|
const api = useSwitchContext();
|
|
10
10
|
const mergedProps = mergeProps(api.controlProps, props);
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref }),
|
|
13
|
+
/* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
|
|
14
|
+
] });
|
|
12
15
|
});
|
|
13
16
|
SwitchControl.displayName = "SwitchControl";
|
|
14
17
|
|
package/switch/switch-label.cjs
CHANGED
|
@@ -10,8 +10,8 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const switchContext = require('./switch-context.cjs');
|
|
11
11
|
|
|
12
12
|
const SwitchLabel = react.forwardRef((props, ref) => {
|
|
13
|
-
const
|
|
14
|
-
const mergedProps = react$1.mergeProps(labelProps, props);
|
|
13
|
+
const api = switchContext.useSwitchContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(api.labelProps, props);
|
|
15
15
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
SwitchLabel.displayName = "SwitchLabel";
|
package/switch/switch-label.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export interface SwitchLabelProps extends HTMLArkProps<'span'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const SwitchLabel: ForwardRefExoticComponent<SwitchLabelProps & RefAttributes<HTMLSpanElement>>;
|
package/switch/switch-label.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import { ark } from '../factory.mjs';
|
|
|
6
6
|
import { useSwitchContext } from './switch-context.mjs';
|
|
7
7
|
|
|
8
8
|
const SwitchLabel = forwardRef((props, ref) => {
|
|
9
|
-
const
|
|
10
|
-
const mergedProps = mergeProps(labelProps, props);
|
|
9
|
+
const api = useSwitchContext();
|
|
10
|
+
const mergedProps = mergeProps(api.labelProps, props);
|
|
11
11
|
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
SwitchLabel.displayName = "SwitchLabel";
|
package/switch/switch-thumb.cjs
CHANGED
|
@@ -10,8 +10,8 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const switchContext = require('./switch-context.cjs');
|
|
11
11
|
|
|
12
12
|
const SwitchThumb = react.forwardRef((props, ref) => {
|
|
13
|
-
const
|
|
14
|
-
const mergedProps = react$1.mergeProps(thumbProps, props);
|
|
13
|
+
const api = switchContext.useSwitchContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(api.thumbProps, props);
|
|
15
15
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
SwitchThumb.displayName = "SwitchThumb";
|
package/switch/switch-thumb.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export interface SwitchThumbProps extends HTMLArkProps<'span'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const SwitchThumb: ForwardRefExoticComponent<SwitchThumbProps & RefAttributes<HTMLSpanElement>>;
|
package/switch/switch-thumb.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import { ark } from '../factory.mjs';
|
|
|
6
6
|
import { useSwitchContext } from './switch-context.mjs';
|
|
7
7
|
|
|
8
8
|
const SwitchThumb = forwardRef((props, ref) => {
|
|
9
|
-
const
|
|
10
|
-
const mergedProps = mergeProps(thumbProps, props);
|
|
9
|
+
const api = useSwitchContext();
|
|
10
|
+
const mergedProps = mergeProps(api.thumbProps, props);
|
|
11
11
|
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
SwitchThumb.displayName = "SwitchThumb";
|
package/switch/switch.cjs
CHANGED
|
@@ -25,18 +25,14 @@ const Switch = react.forwardRef((props, ref) => {
|
|
|
25
25
|
"invalid",
|
|
26
26
|
"label",
|
|
27
27
|
"name",
|
|
28
|
-
"
|
|
29
|
-
"readOnly",
|
|
28
|
+
"onCheckedChange",
|
|
30
29
|
"required",
|
|
31
30
|
"value"
|
|
32
31
|
]);
|
|
33
32
|
const api = useSwitch.useSwitch(switchProps);
|
|
34
33
|
const view = runIfFn.runIfFn(children, api);
|
|
35
34
|
const mergedProps = react$1.mergeProps(api.rootProps, labelProps);
|
|
36
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref, children: view }),
|
|
38
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { ...api.hiddenInputProps })
|
|
39
|
-
] });
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(switchContext.SwitchProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref, children: view }) });
|
|
40
36
|
});
|
|
41
37
|
Switch.displayName = "Switch";
|
|
42
38
|
|
package/switch/switch.d.ts
CHANGED
|
@@ -2,9 +2,8 @@ import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { type HTMLArkProps } from '../factory';
|
|
3
3
|
import type { Assign } from '../types';
|
|
4
4
|
import { type UseSwitchProps, type UseSwitchReturn } from './use-switch';
|
|
5
|
-
export
|
|
5
|
+
export interface SwitchProps extends Assign<Assign<HTMLArkProps<'label'>, UseSwitchProps>, {
|
|
6
6
|
children?: ReactNode | ((pages: UseSwitchReturn) => ReactNode);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} & RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
}> {
|
|
8
|
+
}
|
|
9
|
+
export declare const Switch: ForwardRefExoticComponent<SwitchProps & RefAttributes<HTMLLabelElement>>;
|
package/switch/switch.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { createSplitProps } from '../create-split-props.mjs';
|
|
@@ -21,18 +21,14 @@ const Switch = forwardRef((props, ref) => {
|
|
|
21
21
|
"invalid",
|
|
22
22
|
"label",
|
|
23
23
|
"name",
|
|
24
|
-
"
|
|
25
|
-
"readOnly",
|
|
24
|
+
"onCheckedChange",
|
|
26
25
|
"required",
|
|
27
26
|
"value"
|
|
28
27
|
]);
|
|
29
28
|
const api = useSwitch(switchProps);
|
|
30
29
|
const view = runIfFn(children, api);
|
|
31
30
|
const mergedProps = mergeProps(api.rootProps, labelProps);
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref, children: view }),
|
|
34
|
-
/* @__PURE__ */ jsx("input", { ...api.hiddenInputProps })
|
|
35
|
-
] });
|
|
31
|
+
return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref, children: view }) });
|
|
36
32
|
});
|
|
37
33
|
Switch.displayName = "Switch";
|
|
38
34
|
|
package/switch/use-switch.cjs
CHANGED
|
@@ -7,6 +7,7 @@ const react$1 = require('@zag-js/react');
|
|
|
7
7
|
const zagSwitch = require('@zag-js/switch');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
require('../environment/index.cjs');
|
|
10
|
+
const useEvent = require('../use-event.cjs');
|
|
10
11
|
const environmentContext = require('../environment/environment-context.cjs');
|
|
11
12
|
|
|
12
13
|
function _interopNamespaceDefault(e) {
|
|
@@ -29,16 +30,16 @@ function _interopNamespaceDefault(e) {
|
|
|
29
30
|
const zagSwitch__namespace = /*#__PURE__*/_interopNamespaceDefault(zagSwitch);
|
|
30
31
|
|
|
31
32
|
const useSwitch = (props) => {
|
|
32
|
-
const getRootNode = environmentContext.useEnvironmentContext();
|
|
33
33
|
const initialContext = {
|
|
34
34
|
id: react.useId(),
|
|
35
|
-
getRootNode,
|
|
35
|
+
getRootNode: environmentContext.useEnvironmentContext(),
|
|
36
36
|
...props,
|
|
37
37
|
checked: props.defaultChecked
|
|
38
38
|
};
|
|
39
39
|
const context = {
|
|
40
40
|
...initialContext,
|
|
41
|
-
checked: props.checked
|
|
41
|
+
checked: props.checked,
|
|
42
|
+
onCheckedChange: useEvent.useEvent(props.onCheckedChange, { sync: true })
|
|
42
43
|
};
|
|
43
44
|
const [state, send] = react$1.useMachine(zagSwitch__namespace.machine(initialContext), { context });
|
|
44
45
|
return zagSwitch__namespace.connect(state, send, react$1.normalizeProps);
|
package/switch/use-switch.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { type PropTypes } from '@zag-js/react';
|
|
1
2
|
import * as zagSwitch from '@zag-js/switch';
|
|
2
3
|
import { type Optional } from '../types';
|
|
3
4
|
export interface UseSwitchProps extends Optional<zagSwitch.Context, 'id'> {
|
|
5
|
+
/**
|
|
6
|
+
* The initial checked state of the switch.
|
|
7
|
+
*/
|
|
4
8
|
defaultChecked?: zagSwitch.Context['checked'];
|
|
5
9
|
}
|
|
6
|
-
export
|
|
10
|
+
export interface UseSwitchReturn extends zagSwitch.Api<PropTypes> {
|
|
11
|
+
}
|
|
7
12
|
export declare const useSwitch: (props: UseSwitchProps) => UseSwitchReturn;
|
package/switch/use-switch.mjs
CHANGED
|
@@ -3,19 +3,20 @@ import { useMachine, normalizeProps } from '@zag-js/react';
|
|
|
3
3
|
import * as zagSwitch from '@zag-js/switch';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import '../environment/index.mjs';
|
|
6
|
+
import { useEvent } from '../use-event.mjs';
|
|
6
7
|
import { useEnvironmentContext } from '../environment/environment-context.mjs';
|
|
7
8
|
|
|
8
9
|
const useSwitch = (props) => {
|
|
9
|
-
const getRootNode = useEnvironmentContext();
|
|
10
10
|
const initialContext = {
|
|
11
11
|
id: useId(),
|
|
12
|
-
getRootNode,
|
|
12
|
+
getRootNode: useEnvironmentContext(),
|
|
13
13
|
...props,
|
|
14
14
|
checked: props.defaultChecked
|
|
15
15
|
};
|
|
16
16
|
const context = {
|
|
17
17
|
...initialContext,
|
|
18
|
-
checked: props.checked
|
|
18
|
+
checked: props.checked,
|
|
19
|
+
onCheckedChange: useEvent(props.onCheckedChange, { sync: true })
|
|
19
20
|
};
|
|
20
21
|
const [state, send] = useMachine(zagSwitch.machine(initialContext), { context });
|
|
21
22
|
return zagSwitch.connect(state, send, normalizeProps);
|
package/tabs/index.cjs
CHANGED
|
@@ -7,12 +7,11 @@ const tabContent = require('./tab-content.cjs');
|
|
|
7
7
|
const tabIndicator = require('./tab-indicator.cjs');
|
|
8
8
|
const tabList = require('./tab-list.cjs');
|
|
9
9
|
const tabTrigger = require('./tab-trigger.cjs');
|
|
10
|
-
const tabs
|
|
10
|
+
const tabs = require('./tabs.cjs');
|
|
11
11
|
const tabsContext = require('./tabs-context.cjs');
|
|
12
|
-
const tabs = require('@zag-js/tabs');
|
|
13
12
|
|
|
14
|
-
const Tabs = Object.assign(tabs
|
|
15
|
-
Root: tabs
|
|
13
|
+
const Tabs = Object.assign(tabs.Tabs, {
|
|
14
|
+
Root: tabs.Tabs,
|
|
16
15
|
Content: tabContent.TabContent,
|
|
17
16
|
Indicator: tabIndicator.TabIndicator,
|
|
18
17
|
List: tabList.TabList,
|
|
@@ -24,8 +23,4 @@ exports.TabIndicator = tabIndicator.TabIndicator;
|
|
|
24
23
|
exports.TabList = tabList.TabList;
|
|
25
24
|
exports.TabTrigger = tabTrigger.TabTrigger;
|
|
26
25
|
exports.useTabsContext = tabsContext.useTabsContext;
|
|
27
|
-
Object.defineProperty(exports, 'tabsAnatomy', {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: () => tabs.anatomy
|
|
30
|
-
});
|
|
31
26
|
exports.Tabs = Tabs;
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContentProps, TriggerProps } from '@zag-js/tabs';
|
|
3
|
-
import { UseTabsProps } from './use-tabs';
|
|
4
|
-
import { HTMLArkProps } from '..';
|
|
5
|
-
import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
6
2
|
/// <reference types="react" />
|
|
7
3
|
import { TabContent, type TabContentProps } from './tab-content';
|
|
8
4
|
import { TabIndicator, type TabIndicatorProps } from './tab-indicator';
|
|
@@ -10,19 +6,12 @@ import { TabList, type TabListProps } from './tab-list';
|
|
|
10
6
|
import { TabTrigger, type TabTriggerProps } from './tab-trigger';
|
|
11
7
|
import { type TabsProps } from './tabs';
|
|
12
8
|
import { useTabsContext, type TabsContext } from './tabs-context';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Indicator: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
-
asChild?: boolean | undefined;
|
|
21
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
22
|
-
List: ForwardRefExoticComponent<Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
-
asChild?: boolean | undefined;
|
|
24
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
25
|
-
Trigger: ForwardRefExoticComponent<Omit<HTMLArkProps<"button">, keyof TriggerProps> & TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
Root: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Content: ForwardRefExoticComponent<TabContentProps & RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Indicator: ForwardRefExoticComponent<TabIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
13
|
+
List: ForwardRefExoticComponent<TabListProps & RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Trigger: ForwardRefExoticComponent<TabTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
26
15
|
};
|
|
27
|
-
export { TabContent, TabIndicator, TabList, TabTrigger, Tabs,
|
|
16
|
+
export { TabContent, TabIndicator, TabList, TabTrigger, Tabs, useTabsContext };
|
|
28
17
|
export type { TabContentProps, TabIndicatorProps, TabListProps, TabTriggerProps, TabsContext, TabsProps, };
|
package/tabs/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@ import { TabList } from './tab-list.mjs';
|
|
|
5
5
|
import { TabTrigger } from './tab-trigger.mjs';
|
|
6
6
|
import { Tabs as Tabs$1 } from './tabs.mjs';
|
|
7
7
|
export { useTabsContext } from './tabs-context.mjs';
|
|
8
|
-
export { anatomy as tabsAnatomy } from '@zag-js/tabs';
|
|
9
8
|
|
|
10
9
|
const Tabs = Object.assign(Tabs$1, {
|
|
11
10
|
Root: Tabs$1,
|
package/tabs/tab-content.cjs
CHANGED
|
@@ -22,8 +22,8 @@ const TabContent = react.forwardRef((props, ref) => {
|
|
|
22
22
|
TabContent.displayName = "TabContent";
|
|
23
23
|
const InnerTabContent = react.forwardRef((props, ref) => {
|
|
24
24
|
const [tabContentProps, divProps] = createSplitProps.createSplitProps()(props, ["value"]);
|
|
25
|
-
const
|
|
26
|
-
const mergedProps = react$1.mergeProps(getContentProps(tabContentProps), divProps);
|
|
25
|
+
const api = tabsContext.useTabsContext();
|
|
26
|
+
const mergedProps = react$1.mergeProps(api.getContentProps(tabContentProps), divProps);
|
|
27
27
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
28
28
|
});
|
|
29
29
|
InnerTabContent.displayName = "InnerTabContent";
|
package/tabs/tab-content.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type ContentProps } from '@zag-js/tabs';
|
|
4
4
|
import { type HTMLArkProps } from '../factory';
|
|
5
5
|
import { type TabPresenceProps } from './tab-presence';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} & ContentProps & Omit<TabPresenceProps, "children"> & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export interface TabContentProps extends InnerTabContentProps, Omit<TabPresenceProps, 'children'> {
|
|
7
|
+
}
|
|
8
|
+
export declare const TabContent: ForwardRefExoticComponent<TabContentProps & RefAttributes<HTMLDivElement>>;
|
|
10
9
|
type InnerTabContentProps = HTMLArkProps<'div'> & ContentProps;
|
|
11
10
|
export {};
|
package/tabs/tab-content.mjs
CHANGED
|
@@ -18,8 +18,8 @@ const TabContent = forwardRef((props, ref) => {
|
|
|
18
18
|
TabContent.displayName = "TabContent";
|
|
19
19
|
const InnerTabContent = forwardRef((props, ref) => {
|
|
20
20
|
const [tabContentProps, divProps] = createSplitProps()(props, ["value"]);
|
|
21
|
-
const
|
|
22
|
-
const mergedProps = mergeProps(getContentProps(tabContentProps), divProps);
|
|
21
|
+
const api = useTabsContext();
|
|
22
|
+
const mergedProps = mergeProps(api.getContentProps(tabContentProps), divProps);
|
|
23
23
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
24
24
|
});
|
|
25
25
|
InnerTabContent.displayName = "InnerTabContent";
|
package/tabs/tab-indicator.cjs
CHANGED
|
@@ -10,8 +10,8 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const tabsContext = require('./tabs-context.cjs');
|
|
11
11
|
|
|
12
12
|
const TabIndicator = react.forwardRef((props, ref) => {
|
|
13
|
-
const
|
|
14
|
-
const mergedProps = react$1.mergeProps(indicatorProps, props);
|
|
13
|
+
const api = tabsContext.useTabsContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(api.indicatorProps, props);
|
|
15
15
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
16
16
|
});
|
|
17
17
|
TabIndicator.displayName = "TabIndicator";
|
package/tabs/tab-indicator.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ForwardRefExoticComponent,
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
import { type HTMLArkProps } from '../factory';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export interface TabIndicatorProps extends HTMLArkProps<'div'> {
|
|
5
|
+
}
|
|
6
|
+
export declare const TabIndicator: ForwardRefExoticComponent<TabIndicatorProps & RefAttributes<HTMLDivElement>>;
|
package/tabs/tab-indicator.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import { ark } from '../factory.mjs';
|
|
|
6
6
|
import { useTabsContext } from './tabs-context.mjs';
|
|
7
7
|
|
|
8
8
|
const TabIndicator = forwardRef((props, ref) => {
|
|
9
|
-
const
|
|
10
|
-
const mergedProps = mergeProps(indicatorProps, props);
|
|
9
|
+
const api = useTabsContext();
|
|
10
|
+
const mergedProps = mergeProps(api.indicatorProps, props);
|
|
11
11
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
12
12
|
});
|
|
13
13
|
TabIndicator.displayName = "TabIndicator";
|