@ark-ui/react 4.9.1 → 5.0.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/README.md +6 -9
- package/dist/components/accordion/accordion-item-content.cjs +8 -10
- package/dist/components/accordion/accordion-item-content.js +8 -10
- package/dist/components/accordion/accordion-item-indicator.cjs +6 -8
- package/dist/components/accordion/accordion-item-indicator.js +6 -8
- package/dist/components/accordion/accordion-item-trigger.cjs +14 -16
- package/dist/components/accordion/accordion-item-trigger.js +14 -16
- package/dist/components/accordion/accordion-item.cjs +6 -6
- package/dist/components/accordion/accordion-item.js +2 -2
- package/dist/components/accordion/accordion-root-provider.cjs +6 -11
- package/dist/components/accordion/accordion-root-provider.js +6 -11
- package/dist/components/accordion/accordion.d.cts +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/index.d.cts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/use-accordion.cjs +5 -12
- package/dist/components/accordion/use-accordion.d.cts +1 -6
- package/dist/components/accordion/use-accordion.d.ts +1 -6
- package/dist/components/accordion/use-accordion.js +5 -12
- package/dist/components/avatar/avatar-root-provider.cjs +5 -7
- package/dist/components/avatar/avatar-root-provider.js +5 -7
- package/dist/components/avatar/avatar-root.cjs +1 -5
- package/dist/components/avatar/avatar-root.js +1 -5
- package/dist/components/avatar/index.d.cts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatar/use-avatar.cjs +5 -9
- package/dist/components/avatar/use-avatar.d.cts +1 -1
- package/dist/components/avatar/use-avatar.d.ts +1 -1
- package/dist/components/avatar/use-avatar.js +5 -9
- package/dist/components/carousel/carousel-autoplay-trigger.cjs +5 -7
- package/dist/components/carousel/carousel-autoplay-trigger.js +5 -7
- package/dist/components/carousel/carousel-indicator-group.cjs +5 -7
- package/dist/components/carousel/carousel-indicator-group.js +5 -7
- package/dist/components/carousel/carousel-indicator.cjs +6 -11
- package/dist/components/carousel/carousel-indicator.js +6 -11
- package/dist/components/carousel/carousel-item-group.cjs +5 -7
- package/dist/components/carousel/carousel-item-group.js +5 -7
- package/dist/components/carousel/carousel-next-trigger.cjs +5 -7
- package/dist/components/carousel/carousel-next-trigger.js +5 -7
- package/dist/components/carousel/carousel-prev-trigger.cjs +5 -7
- package/dist/components/carousel/carousel-prev-trigger.js +5 -7
- package/dist/components/carousel/carousel-root-provider.cjs +5 -9
- package/dist/components/carousel/carousel-root-provider.js +5 -9
- package/dist/components/carousel/carousel.d.cts +1 -1
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/index.d.cts +3 -3
- package/dist/components/carousel/index.d.ts +3 -3
- package/dist/components/carousel/use-carousel.cjs +6 -12
- package/dist/components/carousel/use-carousel.d.cts +2 -7
- package/dist/components/carousel/use-carousel.d.ts +2 -7
- package/dist/components/carousel/use-carousel.js +6 -12
- package/dist/components/checkbox/checkbox-hidden-input.cjs +6 -8
- package/dist/components/checkbox/checkbox-hidden-input.js +6 -8
- package/dist/components/checkbox/checkbox-indicator.cjs +7 -9
- package/dist/components/checkbox/checkbox-indicator.js +7 -9
- package/dist/components/checkbox/checkbox-root-provider.cjs +5 -9
- package/dist/components/checkbox/checkbox-root-provider.js +5 -9
- package/dist/components/checkbox/checkbox.anatomy.d.cts +1 -1
- package/dist/components/checkbox/checkbox.anatomy.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.cts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/index.d.cts +5 -5
- package/dist/components/checkbox/index.d.ts +5 -5
- package/dist/components/checkbox/use-checkbox-group.cjs +1 -9
- package/dist/components/checkbox/use-checkbox-group.js +1 -9
- package/dist/components/checkbox/use-checkbox.cjs +5 -11
- package/dist/components/checkbox/use-checkbox.d.cts +1 -6
- package/dist/components/checkbox/use-checkbox.d.ts +1 -6
- package/dist/components/checkbox/use-checkbox.js +5 -11
- package/dist/components/clipboard/clipboard-indicator.cjs +6 -11
- package/dist/components/clipboard/clipboard-indicator.js +6 -11
- package/dist/components/clipboard/clipboard-root-provider.cjs +5 -9
- package/dist/components/clipboard/clipboard-root-provider.js +5 -9
- package/dist/components/clipboard/clipboard-root.cjs +2 -0
- package/dist/components/clipboard/clipboard-root.d.cts +2 -1
- package/dist/components/clipboard/clipboard-root.d.ts +2 -1
- package/dist/components/clipboard/clipboard-root.js +2 -0
- package/dist/components/clipboard/clipboard-trigger.cjs +5 -7
- package/dist/components/clipboard/clipboard-trigger.js +5 -7
- package/dist/components/clipboard/clipboard-value-text.cjs +4 -6
- package/dist/components/clipboard/clipboard-value-text.js +4 -6
- package/dist/components/clipboard/clipboard.d.cts +1 -1
- package/dist/components/clipboard/clipboard.d.ts +1 -1
- package/dist/components/clipboard/index.d.cts +5 -5
- package/dist/components/clipboard/index.d.ts +5 -5
- package/dist/components/clipboard/use-clipboard.cjs +5 -7
- package/dist/components/clipboard/use-clipboard.d.cts +2 -2
- package/dist/components/clipboard/use-clipboard.d.ts +2 -2
- package/dist/components/clipboard/use-clipboard.js +5 -7
- package/dist/components/collapsible/collapsible-content.cjs +7 -9
- package/dist/components/collapsible/collapsible-content.js +7 -9
- package/dist/components/collapsible/collapsible-root-provider.cjs +5 -9
- package/dist/components/collapsible/collapsible-root-provider.js +5 -9
- package/dist/components/collapsible/collapsible-trigger.cjs +5 -7
- package/dist/components/collapsible/collapsible-trigger.js +5 -7
- package/dist/components/collapsible/collapsible.d.cts +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/index.d.cts +2 -2
- package/dist/components/collapsible/index.d.ts +2 -2
- package/dist/components/collapsible/split-collapsible-props.d.cts +1 -1
- package/dist/components/collapsible/split-collapsible-props.d.ts +1 -1
- package/dist/components/collapsible/use-collapsible.cjs +5 -12
- package/dist/components/collapsible/use-collapsible.d.cts +1 -6
- package/dist/components/collapsible/use-collapsible.d.ts +1 -6
- package/dist/components/collapsible/use-collapsible.js +6 -13
- package/dist/components/collection.cjs +3 -4
- package/dist/components/collection.d.cts +2 -2
- package/dist/components/collection.d.ts +2 -2
- package/dist/components/collection.js +4 -5
- package/dist/components/color-picker/color-picker-area-background.cjs +6 -8
- package/dist/components/color-picker/color-picker-area-background.js +6 -8
- package/dist/components/color-picker/color-picker-area-thumb.cjs +6 -8
- package/dist/components/color-picker/color-picker-area-thumb.js +6 -8
- package/dist/components/color-picker/color-picker-channel-input.cjs +6 -11
- package/dist/components/color-picker/color-picker-channel-input.js +6 -11
- package/dist/components/color-picker/color-picker-channel-slider-label.cjs +8 -6
- package/dist/components/color-picker/color-picker-channel-slider-label.js +8 -6
- package/dist/components/color-picker/color-picker-channel-slider-thumb.cjs +10 -8
- package/dist/components/color-picker/color-picker-channel-slider-thumb.js +10 -8
- package/dist/components/color-picker/color-picker-channel-slider-track.cjs +10 -8
- package/dist/components/color-picker/color-picker-channel-slider-track.js +10 -8
- package/dist/components/color-picker/color-picker-channel-slider-value-text.cjs +9 -7
- package/dist/components/color-picker/color-picker-channel-slider-value-text.js +9 -7
- package/dist/components/color-picker/color-picker-channel-slider.cjs +8 -16
- package/dist/components/color-picker/color-picker-channel-slider.js +8 -16
- package/dist/components/color-picker/color-picker-content.cjs +8 -14
- package/dist/components/color-picker/color-picker-content.js +8 -14
- package/dist/components/color-picker/color-picker-control.cjs +5 -7
- package/dist/components/color-picker/color-picker-control.js +5 -7
- package/dist/components/color-picker/color-picker-eye-dropper-trigger.cjs +7 -5
- package/dist/components/color-picker/color-picker-eye-dropper-trigger.js +7 -5
- package/dist/components/color-picker/color-picker-format-select.cjs +5 -7
- package/dist/components/color-picker/color-picker-format-select.js +5 -7
- package/dist/components/color-picker/color-picker-hidden-input.cjs +6 -8
- package/dist/components/color-picker/color-picker-hidden-input.js +6 -8
- package/dist/components/color-picker/color-picker-label.cjs +5 -7
- package/dist/components/color-picker/color-picker-label.js +5 -7
- package/dist/components/color-picker/color-picker-positioner.cjs +8 -10
- package/dist/components/color-picker/color-picker-positioner.js +8 -10
- package/dist/components/color-picker/color-picker-root-provider.cjs +7 -12
- package/dist/components/color-picker/color-picker-root-provider.js +7 -12
- package/dist/components/color-picker/color-picker-root.cjs +27 -29
- package/dist/components/color-picker/color-picker-root.js +27 -29
- package/dist/components/color-picker/color-picker-swatch-group.cjs +5 -7
- package/dist/components/color-picker/color-picker-swatch-group.js +5 -7
- package/dist/components/color-picker/color-picker-swatch-trigger.cjs +1 -4
- package/dist/components/color-picker/color-picker-swatch-trigger.js +1 -4
- package/dist/components/color-picker/color-picker-swatch.cjs +6 -11
- package/dist/components/color-picker/color-picker-swatch.js +6 -11
- package/dist/components/color-picker/color-picker-transparency-grid.cjs +8 -6
- package/dist/components/color-picker/color-picker-transparency-grid.js +8 -6
- package/dist/components/color-picker/color-picker-trigger.cjs +5 -7
- package/dist/components/color-picker/color-picker-trigger.js +5 -7
- package/dist/components/color-picker/color-picker-value-swatch.cjs +10 -14
- package/dist/components/color-picker/color-picker-value-swatch.js +10 -14
- package/dist/components/color-picker/color-picker-value-text.cjs +6 -8
- package/dist/components/color-picker/color-picker-value-text.js +6 -8
- package/dist/components/color-picker/color-picker-view.cjs +1 -9
- package/dist/components/color-picker/color-picker-view.js +1 -9
- package/dist/components/color-picker/color-picker.d.cts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -1
- package/dist/components/color-picker/index.d.cts +6 -6
- package/dist/components/color-picker/index.d.ts +6 -6
- package/dist/components/color-picker/use-color-picker.cjs +5 -14
- package/dist/components/color-picker/use-color-picker.d.cts +1 -11
- package/dist/components/color-picker/use-color-picker.d.ts +1 -11
- package/dist/components/color-picker/use-color-picker.js +5 -14
- package/dist/components/combobox/combobox-clear-trigger.cjs +5 -7
- package/dist/components/combobox/combobox-clear-trigger.js +5 -7
- package/dist/components/combobox/combobox-context.d.cts +1 -1
- package/dist/components/combobox/combobox-context.d.ts +1 -1
- package/dist/components/combobox/combobox-item-group-label.cjs +6 -11
- package/dist/components/combobox/combobox-item-group-label.js +6 -11
- package/dist/components/combobox/combobox-item-group.cjs +8 -10
- package/dist/components/combobox/combobox-item-group.js +8 -10
- package/dist/components/combobox/combobox-item-indicator.cjs +6 -8
- package/dist/components/combobox/combobox-item-indicator.js +6 -8
- package/dist/components/combobox/combobox-positioner.cjs +8 -10
- package/dist/components/combobox/combobox-positioner.js +8 -10
- package/dist/components/combobox/combobox-root-provider.cjs +1 -4
- package/dist/components/combobox/combobox-root-provider.js +1 -4
- package/dist/components/combobox/combobox-root.cjs +3 -1
- package/dist/components/combobox/combobox-root.js +3 -1
- package/dist/components/combobox/combobox.d.cts +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/index.d.cts +7 -7
- package/dist/components/combobox/index.d.ts +7 -7
- package/dist/components/combobox/use-combobox-item-context.cjs +5 -7
- package/dist/components/combobox/use-combobox-item-context.js +5 -7
- package/dist/components/combobox/use-combobox.cjs +6 -27
- package/dist/components/combobox/use-combobox.d.cts +2 -12
- package/dist/components/combobox/use-combobox.d.ts +2 -12
- package/dist/components/combobox/use-combobox.js +7 -28
- package/dist/components/date-picker/date-picker-clear-trigger.cjs +5 -7
- package/dist/components/date-picker/date-picker-clear-trigger.js +5 -7
- package/dist/components/date-picker/date-picker-content.cjs +8 -10
- package/dist/components/date-picker/date-picker-content.js +8 -10
- package/dist/components/date-picker/date-picker-control.cjs +5 -7
- package/dist/components/date-picker/date-picker-control.js +5 -7
- package/dist/components/date-picker/date-picker-input.cjs +2 -8
- package/dist/components/date-picker/date-picker-input.d.cts +1 -1
- package/dist/components/date-picker/date-picker-input.d.ts +1 -1
- package/dist/components/date-picker/date-picker-input.js +2 -8
- package/dist/components/date-picker/date-picker-month-select.cjs +5 -7
- package/dist/components/date-picker/date-picker-month-select.js +5 -7
- package/dist/components/date-picker/date-picker-next-trigger.cjs +6 -8
- package/dist/components/date-picker/date-picker-next-trigger.js +6 -8
- package/dist/components/date-picker/date-picker-positioner.cjs +8 -10
- package/dist/components/date-picker/date-picker-positioner.js +8 -10
- package/dist/components/date-picker/date-picker-preset-trigger.cjs +6 -10
- package/dist/components/date-picker/date-picker-preset-trigger.js +6 -10
- package/dist/components/date-picker/date-picker-prev-trigger.cjs +6 -8
- package/dist/components/date-picker/date-picker-prev-trigger.js +6 -8
- package/dist/components/date-picker/date-picker-range-text.cjs +5 -7
- package/dist/components/date-picker/date-picker-range-text.js +5 -7
- package/dist/components/date-picker/date-picker-root-provider.cjs +7 -12
- package/dist/components/date-picker/date-picker-root-provider.js +7 -12
- package/dist/components/date-picker/date-picker-root.cjs +44 -47
- package/dist/components/date-picker/date-picker-root.d.cts +1 -1
- package/dist/components/date-picker/date-picker-root.d.ts +1 -1
- package/dist/components/date-picker/date-picker-root.js +44 -47
- package/dist/components/date-picker/date-picker-table-body.cjs +6 -8
- package/dist/components/date-picker/date-picker-table-body.js +6 -8
- package/dist/components/date-picker/date-picker-table-cell.cjs +18 -20
- package/dist/components/date-picker/date-picker-table-cell.js +18 -20
- package/dist/components/date-picker/date-picker-table-head.cjs +6 -8
- package/dist/components/date-picker/date-picker-table-head.js +6 -8
- package/dist/components/date-picker/date-picker-table-header.cjs +6 -8
- package/dist/components/date-picker/date-picker-table-header.js +6 -8
- package/dist/components/date-picker/date-picker-table-row.cjs +6 -8
- package/dist/components/date-picker/date-picker-table-row.js +6 -8
- package/dist/components/date-picker/date-picker-table.cjs +1 -3
- package/dist/components/date-picker/date-picker-table.js +1 -3
- package/dist/components/date-picker/date-picker-trigger.cjs +5 -7
- package/dist/components/date-picker/date-picker-trigger.js +5 -7
- package/dist/components/date-picker/date-picker-view-control.cjs +6 -8
- package/dist/components/date-picker/date-picker-view-control.js +6 -8
- package/dist/components/date-picker/date-picker-view-trigger.cjs +6 -8
- package/dist/components/date-picker/date-picker-view-trigger.js +6 -8
- package/dist/components/date-picker/date-picker-year-select.cjs +5 -7
- package/dist/components/date-picker/date-picker-year-select.js +5 -7
- package/dist/components/date-picker/date-picker.anatomy.d.cts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.cts +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/index.d.cts +8 -8
- package/dist/components/date-picker/index.d.ts +8 -8
- package/dist/components/date-picker/use-date-picker.cjs +7 -21
- package/dist/components/date-picker/use-date-picker.d.cts +1 -13
- package/dist/components/date-picker/use-date-picker.d.ts +1 -13
- package/dist/components/date-picker/use-date-picker.js +7 -21
- package/dist/components/dialog/dialog-close-trigger.cjs +5 -7
- package/dist/components/dialog/dialog-close-trigger.js +5 -7
- package/dist/components/dialog/dialog-description.cjs +5 -7
- package/dist/components/dialog/dialog-description.js +5 -7
- package/dist/components/dialog/index.d.cts +5 -5
- package/dist/components/dialog/index.d.ts +5 -5
- package/dist/components/dialog/use-dialog.cjs +5 -14
- package/dist/components/dialog/use-dialog.d.cts +1 -6
- package/dist/components/dialog/use-dialog.d.ts +1 -6
- package/dist/components/dialog/use-dialog.js +5 -14
- package/dist/components/editable/editable-cancel-trigger.cjs +5 -7
- package/dist/components/editable/editable-cancel-trigger.js +5 -7
- package/dist/components/editable/editable-edit-trigger.cjs +5 -7
- package/dist/components/editable/editable-edit-trigger.js +5 -7
- package/dist/components/editable/editable-root-provider.cjs +5 -9
- package/dist/components/editable/editable-root-provider.js +5 -9
- package/dist/components/editable/editable-submit-trigger.cjs +5 -7
- package/dist/components/editable/editable-submit-trigger.js +5 -7
- package/dist/components/editable/editable.d.cts +1 -1
- package/dist/components/editable/editable.d.ts +1 -1
- package/dist/components/editable/index.d.cts +4 -4
- package/dist/components/editable/index.d.ts +4 -4
- package/dist/components/editable/use-editable.cjs +5 -16
- package/dist/components/editable/use-editable.d.cts +1 -11
- package/dist/components/editable/use-editable.d.ts +1 -11
- package/dist/components/editable/use-editable.js +5 -16
- package/dist/components/field/field-root-provider.cjs +5 -7
- package/dist/components/field/field-root-provider.js +5 -7
- package/dist/components/field/index.d.cts +4 -4
- package/dist/components/field/index.d.ts +4 -4
- package/dist/components/field/use-field.cjs +12 -17
- package/dist/components/field/use-field.d.cts +1 -1
- package/dist/components/field/use-field.d.ts +1 -1
- package/dist/components/field/use-field.js +13 -18
- package/dist/components/fieldset/fieldset-error-text.cjs +5 -7
- package/dist/components/fieldset/fieldset-error-text.js +5 -7
- package/dist/components/fieldset/fieldset-helper-text.cjs +5 -7
- package/dist/components/fieldset/fieldset-helper-text.js +5 -7
- package/dist/components/fieldset/fieldset-root-provider.cjs +5 -9
- package/dist/components/fieldset/fieldset-root-provider.js +5 -9
- package/dist/components/fieldset/fieldset-root.cjs +1 -5
- package/dist/components/fieldset/fieldset-root.js +1 -5
- package/dist/components/fieldset/fieldset.anatomy.cjs +1 -6
- package/dist/components/fieldset/fieldset.anatomy.js +1 -6
- package/dist/components/fieldset/fieldset.d.cts +1 -1
- package/dist/components/fieldset/fieldset.d.ts +1 -1
- package/dist/components/fieldset/index.d.cts +2 -2
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/fieldset/use-fieldset.cjs +1 -1
- package/dist/components/fieldset/use-fieldset.d.cts +1 -1
- package/dist/components/fieldset/use-fieldset.d.ts +1 -1
- package/dist/components/fieldset/use-fieldset.js +1 -1
- package/dist/components/file-upload/file-upload-clear-trigger.cjs +5 -7
- package/dist/components/file-upload/file-upload-clear-trigger.js +5 -7
- package/dist/components/file-upload/file-upload-dropzone.cjs +2 -7
- package/dist/components/file-upload/file-upload-dropzone.d.cts +1 -1
- package/dist/components/file-upload/file-upload-dropzone.d.ts +1 -1
- package/dist/components/file-upload/file-upload-dropzone.js +2 -7
- package/dist/components/file-upload/file-upload-hidden-input.cjs +6 -8
- package/dist/components/file-upload/file-upload-hidden-input.js +6 -8
- package/dist/components/file-upload/file-upload-item-delete-trigger.cjs +8 -6
- package/dist/components/file-upload/file-upload-item-delete-trigger.js +8 -6
- package/dist/components/file-upload/file-upload-item-group.cjs +5 -7
- package/dist/components/file-upload/file-upload-item-group.js +5 -7
- package/dist/components/file-upload/file-upload-item-name.cjs +7 -9
- package/dist/components/file-upload/file-upload-item-name.js +7 -9
- package/dist/components/file-upload/file-upload-item-preview-image.cjs +13 -14
- package/dist/components/file-upload/file-upload-item-preview-image.d.cts +1 -1
- package/dist/components/file-upload/file-upload-item-preview-image.d.ts +1 -1
- package/dist/components/file-upload/file-upload-item-preview-image.js +13 -14
- package/dist/components/file-upload/file-upload-item-preview.cjs +7 -9
- package/dist/components/file-upload/file-upload-item-preview.js +7 -9
- package/dist/components/file-upload/file-upload-item-size-text.cjs +7 -9
- package/dist/components/file-upload/file-upload-item-size-text.js +7 -9
- package/dist/components/file-upload/file-upload-root-provider.cjs +5 -9
- package/dist/components/file-upload/file-upload-root-provider.js +5 -9
- package/dist/components/file-upload/file-upload-trigger.cjs +5 -7
- package/dist/components/file-upload/file-upload-trigger.js +5 -7
- package/dist/components/file-upload/file-upload.d.cts +2 -2
- package/dist/components/file-upload/file-upload.d.ts +2 -2
- package/dist/components/file-upload/index.d.cts +4 -4
- package/dist/components/file-upload/index.d.ts +4 -4
- package/dist/components/file-upload/use-file-upload.cjs +7 -12
- package/dist/components/file-upload/use-file-upload.d.cts +1 -1
- package/dist/components/file-upload/use-file-upload.d.ts +1 -1
- package/dist/components/file-upload/use-file-upload.js +7 -12
- package/dist/components/frame/frame.cjs +7 -15
- package/dist/components/frame/frame.js +7 -15
- package/dist/components/hover-card/hover-card-arrow-tip.cjs +5 -7
- package/dist/components/hover-card/hover-card-arrow-tip.js +5 -7
- package/dist/components/hover-card/hover-card-positioner.cjs +8 -10
- package/dist/components/hover-card/hover-card-positioner.js +8 -10
- package/dist/components/hover-card/hover-card-trigger.cjs +5 -7
- package/dist/components/hover-card/hover-card-trigger.js +5 -7
- package/dist/components/hover-card/hover-card.d.cts +1 -1
- package/dist/components/hover-card/hover-card.d.ts +1 -1
- package/dist/components/hover-card/index.d.cts +5 -5
- package/dist/components/hover-card/index.d.ts +5 -5
- package/dist/components/hover-card/use-hover-card.cjs +5 -12
- package/dist/components/hover-card/use-hover-card.d.cts +1 -6
- package/dist/components/hover-card/use-hover-card.d.ts +1 -6
- package/dist/components/hover-card/use-hover-card.js +5 -12
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/menu/index.d.cts +9 -9
- package/dist/components/menu/index.d.ts +9 -9
- package/dist/components/menu/menu-context-trigger.cjs +5 -7
- package/dist/components/menu/menu-context-trigger.js +5 -7
- package/dist/components/menu/menu-item-group-label.cjs +6 -8
- package/dist/components/menu/menu-item-group-label.js +6 -8
- package/dist/components/menu/menu-item-group.cjs +1 -3
- package/dist/components/menu/menu-item-group.js +1 -3
- package/dist/components/menu/menu-item-indicator.cjs +6 -8
- package/dist/components/menu/menu-item-indicator.js +6 -8
- package/dist/components/menu/menu-radio-item-group.cjs +12 -10
- package/dist/components/menu/menu-radio-item-group.js +12 -10
- package/dist/components/menu/menu-root-provider.cjs +4 -7
- package/dist/components/menu/menu-root-provider.js +4 -7
- package/dist/components/menu/menu-root.cjs +5 -7
- package/dist/components/menu/menu-root.js +5 -7
- package/dist/components/menu/menu.d.cts +3 -3
- package/dist/components/menu/menu.d.ts +3 -3
- package/dist/components/menu/use-menu-machine-context.d.cts +1 -1
- package/dist/components/menu/use-menu-machine-context.d.ts +1 -1
- package/dist/components/menu/use-menu.cjs +6 -13
- package/dist/components/menu/use-menu.d.cts +2 -7
- package/dist/components/menu/use-menu.d.ts +2 -7
- package/dist/components/menu/use-menu.js +6 -13
- package/dist/components/number-input/index.d.cts +4 -4
- package/dist/components/number-input/index.d.ts +4 -4
- package/dist/components/number-input/number-input-control.cjs +5 -7
- package/dist/components/number-input/number-input-control.js +5 -7
- package/dist/components/number-input/number-input-decrement-trigger.cjs +7 -5
- package/dist/components/number-input/number-input-decrement-trigger.js +7 -5
- package/dist/components/number-input/number-input-increment-trigger.cjs +7 -5
- package/dist/components/number-input/number-input-increment-trigger.js +7 -5
- package/dist/components/number-input/number-input-input.cjs +6 -8
- package/dist/components/number-input/number-input-input.js +6 -8
- package/dist/components/number-input/number-input-label.cjs +5 -7
- package/dist/components/number-input/number-input-label.js +5 -7
- package/dist/components/number-input/number-input-root-provider.cjs +5 -9
- package/dist/components/number-input/number-input-root-provider.js +5 -9
- package/dist/components/number-input/number-input-scrubber.cjs +5 -7
- package/dist/components/number-input/number-input-scrubber.js +5 -7
- package/dist/components/number-input/number-input-value-text.cjs +6 -8
- package/dist/components/number-input/number-input-value-text.js +6 -8
- package/dist/components/number-input/number-input.d.cts +2 -2
- package/dist/components/number-input/number-input.d.ts +2 -2
- package/dist/components/number-input/use-number-input.cjs +5 -13
- package/dist/components/number-input/use-number-input.d.cts +1 -6
- package/dist/components/number-input/use-number-input.d.ts +1 -6
- package/dist/components/number-input/use-number-input.js +5 -13
- package/dist/components/pagination/index.d.cts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/pagination-ellipsis.cjs +6 -8
- package/dist/components/pagination/pagination-ellipsis.js +6 -8
- package/dist/components/pagination/pagination-next-trigger.cjs +5 -7
- package/dist/components/pagination/pagination-next-trigger.js +5 -7
- package/dist/components/pagination/pagination-prev-trigger.cjs +5 -7
- package/dist/components/pagination/pagination-prev-trigger.js +5 -7
- package/dist/components/pagination/pagination-root-provider.cjs +5 -9
- package/dist/components/pagination/pagination-root-provider.js +5 -9
- package/dist/components/pagination/pagination-root.cjs +1 -0
- package/dist/components/pagination/pagination-root.js +1 -0
- package/dist/components/pagination/pagination.d.cts +1 -1
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/use-pagination.cjs +6 -12
- package/dist/components/pagination/use-pagination.d.cts +2 -7
- package/dist/components/pagination/use-pagination.d.ts +2 -7
- package/dist/components/pagination/use-pagination.js +6 -12
- package/dist/components/pin-input/index.d.cts +3 -3
- package/dist/components/pin-input/index.d.ts +3 -3
- package/dist/components/pin-input/pin-input-hidden-input.cjs +6 -8
- package/dist/components/pin-input/pin-input-hidden-input.js +6 -8
- package/dist/components/pin-input/pin-input-root-provider.cjs +5 -9
- package/dist/components/pin-input/pin-input-root-provider.js +5 -9
- package/dist/components/pin-input/pin-input-root.cjs +1 -0
- package/dist/components/pin-input/pin-input-root.js +1 -0
- package/dist/components/pin-input/pin-input.d.cts +1 -1
- package/dist/components/pin-input/pin-input.d.ts +1 -1
- package/dist/components/pin-input/use-pin-input.cjs +5 -13
- package/dist/components/pin-input/use-pin-input.d.cts +1 -6
- package/dist/components/pin-input/use-pin-input.d.ts +1 -6
- package/dist/components/pin-input/use-pin-input.js +5 -13
- package/dist/components/popover/index.d.cts +6 -6
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/popover-close-trigger.cjs +5 -7
- package/dist/components/popover/popover-close-trigger.js +5 -7
- package/dist/components/popover/popover-description.cjs +5 -7
- package/dist/components/popover/popover-description.js +5 -7
- package/dist/components/popover/popover-positioner.cjs +8 -10
- package/dist/components/popover/popover-positioner.js +8 -10
- package/dist/components/popover/popover.d.cts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/use-popover.cjs +5 -12
- package/dist/components/popover/use-popover.d.cts +1 -6
- package/dist/components/popover/use-popover.d.ts +1 -6
- package/dist/components/popover/use-popover.js +5 -12
- package/dist/components/presence/index.d.cts +1 -1
- package/dist/components/presence/index.d.ts +1 -1
- package/dist/components/presence/split-presence-props.cjs +1 -7
- package/dist/components/presence/split-presence-props.js +1 -7
- package/dist/components/presence/use-presence.cjs +3 -3
- package/dist/components/presence/use-presence.d.cts +1 -1
- package/dist/components/presence/use-presence.d.ts +1 -1
- package/dist/components/presence/use-presence.js +3 -3
- package/dist/components/progress/index.d.cts +5 -5
- package/dist/components/progress/index.d.ts +5 -5
- package/dist/components/progress/progress-circle-range.cjs +5 -7
- package/dist/components/progress/progress-circle-range.js +5 -7
- package/dist/components/progress/progress-circle-track.cjs +5 -7
- package/dist/components/progress/progress-circle-track.js +5 -7
- package/dist/components/progress/progress-root-provider.cjs +5 -9
- package/dist/components/progress/progress-root-provider.js +5 -9
- package/dist/components/progress/progress-root.cjs +2 -0
- package/dist/components/progress/progress-root.js +2 -0
- package/dist/components/progress/progress-value-text.cjs +6 -8
- package/dist/components/progress/progress-value-text.js +6 -8
- package/dist/components/progress/progress.d.cts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/progress/use-progress.cjs +7 -12
- package/dist/components/progress/use-progress.d.cts +1 -6
- package/dist/components/progress/use-progress.d.ts +1 -6
- package/dist/components/progress/use-progress.js +7 -12
- package/dist/components/qr-code/index.d.cts +2 -2
- package/dist/components/qr-code/index.d.ts +2 -2
- package/dist/components/qr-code/qr-code-download-trigger.cjs +10 -12
- package/dist/components/qr-code/qr-code-download-trigger.js +10 -12
- package/dist/components/qr-code/qr-code-root-provider.cjs +5 -7
- package/dist/components/qr-code/qr-code-root-provider.js +5 -7
- package/dist/components/qr-code/qr-code-root.cjs +1 -0
- package/dist/components/qr-code/qr-code-root.js +1 -0
- package/dist/components/qr-code/qr-code.d.cts +2 -2
- package/dist/components/qr-code/qr-code.d.ts +2 -2
- package/dist/components/qr-code/use-qr-code.cjs +5 -12
- package/dist/components/qr-code/use-qr-code.d.cts +1 -6
- package/dist/components/qr-code/use-qr-code.d.ts +1 -6
- package/dist/components/qr-code/use-qr-code.js +5 -12
- package/dist/components/radio-group/index.d.cts +4 -4
- package/dist/components/radio-group/index.d.ts +4 -4
- package/dist/components/radio-group/radio-group-indicator.cjs +5 -7
- package/dist/components/radio-group/radio-group-indicator.js +5 -7
- package/dist/components/radio-group/radio-group-item-control.cjs +6 -8
- package/dist/components/radio-group/radio-group-item-control.js +6 -8
- package/dist/components/radio-group/radio-group-item-text.cjs +6 -8
- package/dist/components/radio-group/radio-group-item-text.js +6 -8
- package/dist/components/radio-group/radio-group-item.cjs +1 -5
- package/dist/components/radio-group/radio-group-item.js +1 -5
- package/dist/components/radio-group/radio-group-root-provider.cjs +5 -9
- package/dist/components/radio-group/radio-group-root-provider.js +5 -9
- package/dist/components/radio-group/radio-group.d.cts +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/radio-group/use-radio-group.cjs +5 -13
- package/dist/components/radio-group/use-radio-group.d.cts +1 -6
- package/dist/components/radio-group/use-radio-group.d.ts +1 -6
- package/dist/components/radio-group/use-radio-group.js +5 -13
- package/dist/components/rating-group/index.d.cts +6 -6
- package/dist/components/rating-group/index.d.ts +6 -6
- package/dist/components/rating-group/rating-group-control.cjs +5 -7
- package/dist/components/rating-group/rating-group-control.js +5 -7
- package/dist/components/rating-group/rating-group-hidden-input.cjs +6 -8
- package/dist/components/rating-group/rating-group-hidden-input.js +6 -8
- package/dist/components/rating-group/rating-group-label.cjs +5 -7
- package/dist/components/rating-group/rating-group-label.js +5 -7
- package/dist/components/rating-group/rating-group-root-provider.cjs +5 -9
- package/dist/components/rating-group/rating-group-root-provider.js +5 -9
- package/dist/components/rating-group/rating-group.d.cts +1 -1
- package/dist/components/rating-group/rating-group.d.ts +1 -1
- package/dist/components/rating-group/use-rating-group.cjs +5 -14
- package/dist/components/rating-group/use-rating-group.d.cts +1 -6
- package/dist/components/rating-group/use-rating-group.d.ts +1 -6
- package/dist/components/rating-group/use-rating-group.js +5 -14
- package/dist/components/segment-group/index.d.cts +6 -6
- package/dist/components/segment-group/index.d.ts +6 -6
- package/dist/components/segment-group/segment-group-indicator.cjs +9 -11
- package/dist/components/segment-group/segment-group-indicator.js +9 -11
- package/dist/components/segment-group/segment-group-item-control.cjs +10 -12
- package/dist/components/segment-group/segment-group-item-control.js +10 -12
- package/dist/components/segment-group/segment-group-item-hidden-input.cjs +8 -6
- package/dist/components/segment-group/segment-group-item-hidden-input.js +8 -6
- package/dist/components/segment-group/segment-group-item-text.cjs +10 -12
- package/dist/components/segment-group/segment-group-item-text.js +10 -12
- package/dist/components/segment-group/segment-group-item.cjs +11 -17
- package/dist/components/segment-group/segment-group-item.js +11 -17
- package/dist/components/segment-group/segment-group-label.cjs +5 -11
- package/dist/components/segment-group/segment-group-label.js +5 -11
- package/dist/components/segment-group/segment-group-root-provider.cjs +5 -13
- package/dist/components/segment-group/segment-group-root-provider.js +5 -13
- package/dist/components/segment-group/segment-group-root.cjs +1 -5
- package/dist/components/segment-group/segment-group-root.js +1 -5
- package/dist/components/segment-group/segment-group.anatomy.d.cts +2 -2
- package/dist/components/segment-group/segment-group.anatomy.d.ts +2 -2
- package/dist/components/segment-group/segment-group.d.cts +1 -1
- package/dist/components/segment-group/segment-group.d.ts +1 -1
- package/dist/components/segment-group/use-segment-group-context.cjs +5 -7
- package/dist/components/segment-group/use-segment-group-context.js +5 -7
- package/dist/components/segment-group/use-segment-group.cjs +5 -13
- package/dist/components/segment-group/use-segment-group.d.cts +1 -6
- package/dist/components/segment-group/use-segment-group.d.ts +1 -6
- package/dist/components/segment-group/use-segment-group.js +5 -13
- package/dist/components/select/index.d.cts +8 -8
- package/dist/components/select/index.d.ts +8 -8
- package/dist/components/select/select-clear-trigger.cjs +5 -7
- package/dist/components/select/select-clear-trigger.js +5 -7
- package/dist/components/select/select-context.d.cts +1 -1
- package/dist/components/select/select-context.d.ts +1 -1
- package/dist/components/select/select-hidden-select.cjs +18 -19
- package/dist/components/select/select-hidden-select.js +18 -19
- package/dist/components/select/select-item-group-label.cjs +6 -11
- package/dist/components/select/select-item-group-label.js +6 -11
- package/dist/components/select/select-item-indicator.cjs +6 -8
- package/dist/components/select/select-item-indicator.js +6 -8
- package/dist/components/select/select-root-provider.cjs +1 -3
- package/dist/components/select/select-root-provider.js +1 -3
- package/dist/components/select/select-root.cjs +1 -0
- package/dist/components/select/select-root.js +1 -0
- package/dist/components/select/use-select.cjs +10 -30
- package/dist/components/select/use-select.d.cts +2 -12
- package/dist/components/select/use-select.d.ts +2 -12
- package/dist/components/select/use-select.js +11 -31
- package/dist/components/signature-pad/index.d.cts +4 -4
- package/dist/components/signature-pad/index.d.ts +4 -4
- package/dist/components/signature-pad/signature-pad-control.cjs +5 -7
- package/dist/components/signature-pad/signature-pad-control.js +5 -7
- package/dist/components/signature-pad/signature-pad-guide.cjs +5 -7
- package/dist/components/signature-pad/signature-pad-guide.js +5 -7
- package/dist/components/signature-pad/signature-pad-hidden-input.cjs +7 -9
- package/dist/components/signature-pad/signature-pad-hidden-input.js +7 -9
- package/dist/components/signature-pad/signature-pad-label.cjs +5 -7
- package/dist/components/signature-pad/signature-pad-label.js +5 -7
- package/dist/components/signature-pad/signature-pad-root-provider.cjs +5 -9
- package/dist/components/signature-pad/signature-pad-root-provider.js +5 -9
- package/dist/components/signature-pad/signature-pad-segment.cjs +9 -11
- package/dist/components/signature-pad/signature-pad-segment.js +9 -11
- package/dist/components/signature-pad/signature-pad.d.cts +1 -1
- package/dist/components/signature-pad/signature-pad.d.ts +1 -1
- package/dist/components/signature-pad/use-signature-pad-context.cjs +5 -7
- package/dist/components/signature-pad/use-signature-pad-context.js +5 -7
- package/dist/components/signature-pad/use-signature-pad.cjs +5 -11
- package/dist/components/signature-pad/use-signature-pad.d.cts +1 -1
- package/dist/components/signature-pad/use-signature-pad.d.ts +1 -1
- package/dist/components/signature-pad/use-signature-pad.js +5 -11
- package/dist/components/slider/index.d.cts +4 -4
- package/dist/components/slider/index.d.ts +4 -4
- package/dist/components/slider/slider-dragging-indicator.cjs +6 -8
- package/dist/components/slider/slider-dragging-indicator.js +6 -8
- package/dist/components/slider/slider-hidden-input.cjs +6 -8
- package/dist/components/slider/slider-hidden-input.js +6 -8
- package/dist/components/slider/slider-marker-group.cjs +5 -7
- package/dist/components/slider/slider-marker-group.js +5 -7
- package/dist/components/slider/slider-root-provider.cjs +5 -7
- package/dist/components/slider/slider-root-provider.js +5 -7
- package/dist/components/slider/use-slider.cjs +5 -15
- package/dist/components/slider/use-slider.d.cts +1 -6
- package/dist/components/slider/use-slider.d.ts +1 -6
- package/dist/components/slider/use-slider.js +5 -15
- package/dist/components/splitter/index.d.cts +1 -1
- package/dist/components/splitter/index.d.ts +1 -1
- package/dist/components/splitter/splitter-resize-trigger.cjs +6 -12
- package/dist/components/splitter/splitter-resize-trigger.js +6 -12
- package/dist/components/splitter/splitter-root-provider.cjs +5 -9
- package/dist/components/splitter/splitter-root-provider.js +5 -9
- package/dist/components/splitter/splitter.d.cts +1 -1
- package/dist/components/splitter/splitter.d.ts +1 -1
- package/dist/components/splitter/use-splitter.cjs +5 -12
- package/dist/components/splitter/use-splitter.d.cts +1 -6
- package/dist/components/splitter/use-splitter.d.ts +1 -6
- package/dist/components/splitter/use-splitter.js +5 -12
- package/dist/components/steps/index.d.cts +6 -6
- package/dist/components/steps/index.d.ts +6 -6
- package/dist/components/steps/steps-completed-content.cjs +5 -7
- package/dist/components/steps/steps-completed-content.js +5 -7
- package/dist/components/steps/steps-item.cjs +1 -1
- package/dist/components/steps/steps-item.d.cts +2 -2
- package/dist/components/steps/steps-item.d.ts +2 -2
- package/dist/components/steps/steps-item.js +1 -1
- package/dist/components/steps/steps-list.cjs +1 -1
- package/dist/components/steps/steps-list.d.cts +2 -2
- package/dist/components/steps/steps-list.d.ts +2 -2
- package/dist/components/steps/steps-list.js +1 -1
- package/dist/components/steps/steps-next-trigger.cjs +5 -7
- package/dist/components/steps/steps-next-trigger.js +5 -7
- package/dist/components/steps/steps-prev-trigger.cjs +5 -7
- package/dist/components/steps/steps-prev-trigger.js +5 -7
- package/dist/components/steps/steps-root-provider.cjs +5 -7
- package/dist/components/steps/steps-root-provider.js +5 -7
- package/dist/components/steps/steps.d.cts +1 -1
- package/dist/components/steps/steps.d.ts +1 -1
- package/dist/components/steps/use-steps.cjs +5 -14
- package/dist/components/steps/use-steps.d.cts +1 -5
- package/dist/components/steps/use-steps.d.ts +1 -5
- package/dist/components/steps/use-steps.js +5 -14
- package/dist/components/switch/index.d.cts +2 -2
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/switch/switch-hidden-input.cjs +6 -8
- package/dist/components/switch/switch-hidden-input.js +6 -8
- package/dist/components/switch/switch-root-provider.cjs +5 -7
- package/dist/components/switch/switch-root-provider.js +5 -7
- package/dist/components/switch/use-switch.cjs +5 -11
- package/dist/components/switch/use-switch.d.cts +1 -6
- package/dist/components/switch/use-switch.d.ts +1 -6
- package/dist/components/switch/use-switch.js +5 -11
- package/dist/components/tabs/index.d.cts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tab-content.cjs +1 -5
- package/dist/components/tabs/tab-content.js +1 -5
- package/dist/components/tabs/tabs.d.cts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/tabs/use-tabs.cjs +5 -12
- package/dist/components/tabs/use-tabs.d.cts +1 -6
- package/dist/components/tabs/use-tabs.d.ts +1 -6
- package/dist/components/tabs/use-tabs.js +5 -12
- package/dist/components/tags-input/index.d.cts +7 -7
- package/dist/components/tags-input/index.d.ts +7 -7
- package/dist/components/tags-input/tags-input-clear-trigger.cjs +5 -7
- package/dist/components/tags-input/tags-input-clear-trigger.js +5 -7
- package/dist/components/tags-input/tags-input-hidden-input.cjs +6 -8
- package/dist/components/tags-input/tags-input-hidden-input.js +6 -8
- package/dist/components/tags-input/tags-input-item-delete-trigger.cjs +8 -6
- package/dist/components/tags-input/tags-input-item-delete-trigger.js +8 -6
- package/dist/components/tags-input/tags-input-item-input.cjs +6 -8
- package/dist/components/tags-input/tags-input-item-input.js +6 -8
- package/dist/components/tags-input/tags-input-item-preview.cjs +6 -8
- package/dist/components/tags-input/tags-input-item-preview.js +6 -8
- package/dist/components/tags-input/tags-input-item-text.cjs +6 -8
- package/dist/components/tags-input/tags-input-item-text.js +6 -8
- package/dist/components/tags-input/tags-input-item.cjs +1 -5
- package/dist/components/tags-input/tags-input-item.js +1 -5
- package/dist/components/tags-input/tags-input-root-provider.cjs +5 -9
- package/dist/components/tags-input/tags-input-root-provider.js +5 -9
- package/dist/components/tags-input/tags-input-root.cjs +1 -0
- package/dist/components/tags-input/tags-input-root.js +1 -0
- package/dist/components/tags-input/tags-input.d.cts +2 -2
- package/dist/components/tags-input/tags-input.d.ts +2 -2
- package/dist/components/tags-input/use-tags-input.cjs +5 -13
- package/dist/components/tags-input/use-tags-input.d.cts +1 -6
- package/dist/components/tags-input/use-tags-input.d.ts +1 -6
- package/dist/components/tags-input/use-tags-input.js +5 -13
- package/dist/components/time-picker/index.d.cts +9 -9
- package/dist/components/time-picker/index.d.ts +9 -9
- package/dist/components/time-picker/time-picker-clear-trigger.cjs +5 -7
- package/dist/components/time-picker/time-picker-clear-trigger.js +5 -7
- package/dist/components/time-picker/time-picker-content.cjs +8 -10
- package/dist/components/time-picker/time-picker-content.js +8 -10
- package/dist/components/time-picker/time-picker-control.cjs +5 -7
- package/dist/components/time-picker/time-picker-control.js +5 -7
- package/dist/components/time-picker/time-picker-positioner.cjs +8 -10
- package/dist/components/time-picker/time-picker-positioner.js +8 -10
- package/dist/components/time-picker/time-picker-root-provider.cjs +7 -12
- package/dist/components/time-picker/time-picker-root-provider.js +7 -12
- package/dist/components/time-picker/time-picker-trigger.cjs +5 -7
- package/dist/components/time-picker/time-picker-trigger.js +5 -7
- package/dist/components/time-picker/time-picker.d.cts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/time-picker/use-time-picker.cjs +7 -16
- package/dist/components/time-picker/use-time-picker.d.cts +1 -11
- package/dist/components/time-picker/use-time-picker.d.ts +1 -11
- package/dist/components/time-picker/use-time-picker.js +7 -16
- package/dist/components/timer/index.d.cts +2 -2
- package/dist/components/timer/index.d.ts +2 -2
- package/dist/components/timer/timer-action-trigger.cjs +7 -7
- package/dist/components/timer/timer-action-trigger.js +7 -7
- package/dist/components/timer/timer-root-provider.cjs +5 -7
- package/dist/components/timer/timer-root-provider.js +5 -7
- package/dist/components/timer/use-timer.cjs +7 -12
- package/dist/components/timer/use-timer.d.cts +1 -1
- package/dist/components/timer/use-timer.d.ts +1 -1
- package/dist/components/timer/use-timer.js +7 -12
- package/dist/components/toast/create-toaster.cjs +1 -4
- package/dist/components/toast/create-toaster.d.cts +3 -8
- package/dist/components/toast/create-toaster.d.ts +3 -8
- package/dist/components/toast/create-toaster.js +1 -4
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/toast-action-trigger.cjs +5 -7
- package/dist/components/toast/toast-action-trigger.js +5 -7
- package/dist/components/toast/toast-close-trigger.cjs +5 -7
- package/dist/components/toast/toast-close-trigger.js +5 -7
- package/dist/components/toast/toaster.cjs +23 -10
- package/dist/components/toast/toaster.d.cts +1 -1
- package/dist/components/toast/toaster.d.ts +1 -1
- package/dist/components/toast/toaster.js +25 -12
- package/dist/components/toggle/index.d.cts +1 -1
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/toggle/toggle.anatomy.cjs +1 -2
- package/dist/components/toggle/toggle.anatomy.js +2 -2
- package/dist/components/toggle/use-toggle.cjs +23 -38
- package/dist/components/toggle/use-toggle.d.cts +4 -32
- package/dist/components/toggle/use-toggle.d.ts +4 -32
- package/dist/components/toggle/use-toggle.js +4 -38
- package/dist/components/toggle-group/index.d.cts +3 -3
- package/dist/components/toggle-group/index.d.ts +3 -3
- package/dist/components/toggle-group/toggle-group-root-provider.cjs +5 -9
- package/dist/components/toggle-group/toggle-group-root-provider.js +5 -9
- package/dist/components/toggle-group/toggle-group.d.cts +1 -1
- package/dist/components/toggle-group/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group/use-toggle-group.cjs +5 -13
- package/dist/components/toggle-group/use-toggle-group.d.cts +1 -6
- package/dist/components/toggle-group/use-toggle-group.d.ts +1 -6
- package/dist/components/toggle-group/use-toggle-group.js +5 -13
- package/dist/components/tooltip/index.d.cts +4 -4
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/tooltip/tooltip-positioner.cjs +8 -10
- package/dist/components/tooltip/tooltip-positioner.js +8 -10
- package/dist/components/tooltip/tooltip.d.cts +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/use-tooltip.cjs +5 -11
- package/dist/components/tooltip/use-tooltip.d.cts +1 -6
- package/dist/components/tooltip/use-tooltip.d.ts +1 -6
- package/dist/components/tooltip/use-tooltip.js +5 -11
- package/dist/components/tour/index.d.cts +6 -6
- package/dist/components/tour/index.d.ts +6 -6
- package/dist/components/tour/tour-action-trigger.cjs +6 -10
- package/dist/components/tour/tour-action-trigger.js +6 -10
- package/dist/components/tour/tour-close-trigger.cjs +5 -7
- package/dist/components/tour/tour-close-trigger.js +5 -7
- package/dist/components/tour/tour-progress-text.d.cts +1 -1
- package/dist/components/tour/tour-progress-text.d.ts +1 -1
- package/dist/components/tour/tour.anatomy.d.cts +1 -1
- package/dist/components/tour/tour.anatomy.d.ts +1 -1
- package/dist/components/tour/tour.d.cts +1 -1
- package/dist/components/tour/tour.d.ts +1 -1
- package/dist/components/tour/use-tour.cjs +5 -9
- package/dist/components/tour/use-tour.d.cts +1 -1
- package/dist/components/tour/use-tour.d.ts +1 -1
- package/dist/components/tour/use-tour.js +5 -9
- package/dist/components/tree-view/index.d.cts +4 -4
- package/dist/components/tree-view/index.d.ts +4 -4
- package/dist/components/tree-view/tree-view-branch-content.cjs +8 -10
- package/dist/components/tree-view/tree-view-branch-content.js +8 -10
- package/dist/components/tree-view/tree-view-branch-control.cjs +6 -8
- package/dist/components/tree-view/tree-view-branch-control.js +6 -8
- package/dist/components/tree-view/tree-view-branch-indent-guide.cjs +6 -8
- package/dist/components/tree-view/tree-view-branch-indent-guide.js +6 -8
- package/dist/components/tree-view/tree-view-branch-indicator.cjs +6 -8
- package/dist/components/tree-view/tree-view-branch-indicator.js +6 -8
- package/dist/components/tree-view/tree-view-branch-text.cjs +6 -8
- package/dist/components/tree-view/tree-view-branch-text.js +6 -8
- package/dist/components/tree-view/tree-view-branch-trigger.cjs +6 -8
- package/dist/components/tree-view/tree-view-branch-trigger.js +6 -8
- package/dist/components/tree-view/tree-view-context.d.cts +1 -1
- package/dist/components/tree-view/tree-view-context.d.ts +1 -1
- package/dist/components/tree-view/tree-view-item-indicator.cjs +6 -8
- package/dist/components/tree-view/tree-view-item-indicator.js +6 -8
- package/dist/components/tree-view/tree-view-root-provider.cjs +1 -4
- package/dist/components/tree-view/tree-view-root-provider.js +1 -4
- package/dist/components/tree-view/tree-view.d.cts +2 -2
- package/dist/components/tree-view/tree-view.d.ts +2 -2
- package/dist/components/tree-view/use-tree-view-node-context.cjs +5 -7
- package/dist/components/tree-view/use-tree-view-node-context.js +5 -7
- package/dist/components/tree-view/use-tree-view.cjs +10 -30
- package/dist/components/tree-view/use-tree-view.d.cts +2 -12
- package/dist/components/tree-view/use-tree-view.d.ts +2 -12
- package/dist/components/tree-view/use-tree-view.js +11 -31
- package/dist/index.cjs +2 -0
- package/dist/index.js +1 -0
- package/dist/providers/environment/environment-provider.js +1 -1
- package/package.json +78 -88
|
@@ -8,7 +8,6 @@ const steps = require('@zag-js/steps');
|
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
|
|
10
10
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
11
|
-
const useEvent = require('../../utils/use-event.cjs');
|
|
12
11
|
|
|
13
12
|
function _interopNamespaceDefault(e) {
|
|
14
13
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -30,25 +29,17 @@ function _interopNamespaceDefault(e) {
|
|
|
30
29
|
const steps__namespace = /*#__PURE__*/_interopNamespaceDefault(steps);
|
|
31
30
|
|
|
32
31
|
function useSteps(props = {}) {
|
|
32
|
+
const id = react.useId();
|
|
33
33
|
const { getRootNode } = useEnvironmentContext.useEnvironmentContext();
|
|
34
34
|
const { dir } = useLocaleContext.useLocaleContext();
|
|
35
|
-
const
|
|
36
|
-
id
|
|
35
|
+
const machineProps = {
|
|
36
|
+
id,
|
|
37
37
|
dir,
|
|
38
38
|
getRootNode,
|
|
39
|
-
step: props.defaultStep,
|
|
40
39
|
...props
|
|
41
40
|
};
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
step: props.step,
|
|
45
|
-
onStepChange: useEvent.useEvent(props.onStepChange),
|
|
46
|
-
onStepComplete: useEvent.useEvent(props.onStepComplete)
|
|
47
|
-
};
|
|
48
|
-
const [state, send] = react$1.useMachine(steps__namespace.machine(initialContext), {
|
|
49
|
-
context
|
|
50
|
-
});
|
|
51
|
-
return steps__namespace.connect(state, send, react$1.normalizeProps);
|
|
41
|
+
const service = react$1.useMachine(steps__namespace.machine, machineProps);
|
|
42
|
+
return steps__namespace.connect(service, react$1.normalizeProps);
|
|
52
43
|
}
|
|
53
44
|
|
|
54
45
|
exports.useSteps = useSteps;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as steps from '@zag-js/steps';
|
|
4
|
-
export interface UseStepsProps extends Optional<Omit<steps.
|
|
5
|
-
/**
|
|
6
|
-
* The initial value of the step
|
|
7
|
-
*/
|
|
8
|
-
defaultStep?: number;
|
|
4
|
+
export interface UseStepsProps extends Optional<Omit<steps.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
9
5
|
}
|
|
10
6
|
export interface UseStepsReturn extends steps.Api<PropTypes> {
|
|
11
7
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as steps from '@zag-js/steps';
|
|
4
|
-
export interface UseStepsProps extends Optional<Omit<steps.
|
|
5
|
-
/**
|
|
6
|
-
* The initial value of the step
|
|
7
|
-
*/
|
|
8
|
-
defaultStep?: number;
|
|
4
|
+
export interface UseStepsProps extends Optional<Omit<steps.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
9
5
|
}
|
|
10
6
|
export interface UseStepsReturn extends steps.Api<PropTypes> {
|
|
11
7
|
}
|
|
@@ -4,28 +4,19 @@ import * as steps from '@zag-js/steps';
|
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';
|
|
6
6
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
7
|
-
import { useEvent } from '../../utils/use-event.js';
|
|
8
7
|
|
|
9
8
|
function useSteps(props = {}) {
|
|
9
|
+
const id = useId();
|
|
10
10
|
const { getRootNode } = useEnvironmentContext();
|
|
11
11
|
const { dir } = useLocaleContext();
|
|
12
|
-
const
|
|
13
|
-
id
|
|
12
|
+
const machineProps = {
|
|
13
|
+
id,
|
|
14
14
|
dir,
|
|
15
15
|
getRootNode,
|
|
16
|
-
step: props.defaultStep,
|
|
17
16
|
...props
|
|
18
17
|
};
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
step: props.step,
|
|
22
|
-
onStepChange: useEvent(props.onStepChange),
|
|
23
|
-
onStepComplete: useEvent(props.onStepComplete)
|
|
24
|
-
};
|
|
25
|
-
const [state, send] = useMachine(steps.machine(initialContext), {
|
|
26
|
-
context
|
|
27
|
-
});
|
|
28
|
-
return steps.connect(state, send, normalizeProps);
|
|
18
|
+
const service = useMachine(steps.machine, machineProps);
|
|
19
|
+
return steps.connect(service, normalizeProps);
|
|
29
20
|
}
|
|
30
21
|
|
|
31
22
|
export { useSteps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { CheckedChangeDetails as SwitchCheckedChangeDetails } from '@zag-js/switch';
|
|
2
2
|
export { SwitchContext, type SwitchContextProps } from './switch-context';
|
|
3
|
-
export { SwitchControl, type SwitchControlBaseProps, type SwitchControlProps
|
|
4
|
-
export { SwitchHiddenInput, type SwitchHiddenInputBaseProps, type SwitchHiddenInputProps
|
|
3
|
+
export { SwitchControl, type SwitchControlBaseProps, type SwitchControlProps } from './switch-control';
|
|
4
|
+
export { SwitchHiddenInput, type SwitchHiddenInputBaseProps, type SwitchHiddenInputProps } from './switch-hidden-input';
|
|
5
5
|
export { SwitchLabel, type SwitchLabelBaseProps, type SwitchLabelProps } from './switch-label';
|
|
6
6
|
export { SwitchRoot, type SwitchRootBaseProps, type SwitchRootProps } from './switch-root';
|
|
7
7
|
export { SwitchRootProvider, type SwitchRootProviderBaseProps, type SwitchRootProviderProps, } from './switch-root-provider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { CheckedChangeDetails as SwitchCheckedChangeDetails } from '@zag-js/switch';
|
|
2
2
|
export { SwitchContext, type SwitchContextProps } from './switch-context';
|
|
3
|
-
export { SwitchControl, type SwitchControlBaseProps, type SwitchControlProps
|
|
4
|
-
export { SwitchHiddenInput, type SwitchHiddenInputBaseProps, type SwitchHiddenInputProps
|
|
3
|
+
export { SwitchControl, type SwitchControlBaseProps, type SwitchControlProps } from './switch-control';
|
|
4
|
+
export { SwitchHiddenInput, type SwitchHiddenInputBaseProps, type SwitchHiddenInputProps } from './switch-hidden-input';
|
|
5
5
|
export { SwitchLabel, type SwitchLabelBaseProps, type SwitchLabelProps } from './switch-label';
|
|
6
6
|
export { SwitchRoot, type SwitchRootBaseProps, type SwitchRootProps } from './switch-root';
|
|
7
7
|
export { SwitchRootProvider, type SwitchRootProviderBaseProps, type SwitchRootProviderProps, } from './switch-root-provider';
|
|
@@ -10,14 +10,12 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const useFieldContext = require('../field/use-field-context.cjs');
|
|
11
11
|
const useSwitchContext = require('./use-switch-context.cjs');
|
|
12
12
|
|
|
13
|
-
const SwitchHiddenInput = react.forwardRef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
);
|
|
13
|
+
const SwitchHiddenInput = react.forwardRef((props, ref) => {
|
|
14
|
+
const switchContext = useSwitchContext.useSwitchContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(switchContext.getHiddenInputProps(), props);
|
|
16
|
+
const field = useFieldContext.useFieldContext();
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref });
|
|
18
|
+
});
|
|
21
19
|
SwitchHiddenInput.displayName = "SwitchHiddenInput";
|
|
22
20
|
|
|
23
21
|
exports.SwitchHiddenInput = SwitchHiddenInput;
|
|
@@ -6,14 +6,12 @@ import { ark } from '../factory.js';
|
|
|
6
6
|
import { useFieldContext } from '../field/use-field-context.js';
|
|
7
7
|
import { useSwitchContext } from './use-switch-context.js';
|
|
8
8
|
|
|
9
|
-
const SwitchHiddenInput = forwardRef(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
);
|
|
9
|
+
const SwitchHiddenInput = forwardRef((props, ref) => {
|
|
10
|
+
const switchContext = useSwitchContext();
|
|
11
|
+
const mergedProps = mergeProps(switchContext.getHiddenInputProps(), props);
|
|
12
|
+
const field = useFieldContext();
|
|
13
|
+
return /* @__PURE__ */ jsx(ark.input, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref });
|
|
14
|
+
});
|
|
17
15
|
SwitchHiddenInput.displayName = "SwitchHiddenInput";
|
|
18
16
|
|
|
19
17
|
export { SwitchHiddenInput };
|
|
@@ -10,13 +10,11 @@ const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
|
10
10
|
const factory = require('../factory.cjs');
|
|
11
11
|
const useSwitchContext = require('./use-switch-context.cjs');
|
|
12
12
|
|
|
13
|
-
const SwitchRootProvider = react.forwardRef(
|
|
14
|
-
(props,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
);
|
|
13
|
+
const SwitchRootProvider = react.forwardRef((props, ref) => {
|
|
14
|
+
const [{ value: api }, localProps] = createSplitProps.createSplitProps()(props, ["value"]);
|
|
15
|
+
const mergedProps = react$1.mergeProps(api.getRootProps(), localProps);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(useSwitchContext.SwitchProvider, { value: api, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref }) });
|
|
17
|
+
});
|
|
20
18
|
SwitchRootProvider.displayName = "SwitchRootProvider";
|
|
21
19
|
|
|
22
20
|
exports.SwitchRootProvider = SwitchRootProvider;
|
|
@@ -6,13 +6,11 @@ import { createSplitProps } from '../../utils/create-split-props.js';
|
|
|
6
6
|
import { ark } from '../factory.js';
|
|
7
7
|
import { SwitchProvider } from './use-switch-context.js';
|
|
8
8
|
|
|
9
|
-
const SwitchRootProvider = forwardRef(
|
|
10
|
-
(props,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
);
|
|
9
|
+
const SwitchRootProvider = forwardRef((props, ref) => {
|
|
10
|
+
const [{ value: api }, localProps] = createSplitProps()(props, ["value"]);
|
|
11
|
+
const mergedProps = mergeProps(api.getRootProps(), localProps);
|
|
12
|
+
return /* @__PURE__ */ jsx(SwitchProvider, { value: api, children: /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref }) });
|
|
13
|
+
});
|
|
16
14
|
SwitchRootProvider.displayName = "SwitchRootProvider";
|
|
17
15
|
|
|
18
16
|
export { SwitchRootProvider };
|
|
@@ -8,7 +8,6 @@ const zagSwitch = require('@zag-js/switch');
|
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
|
|
10
10
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
11
|
-
const useEvent = require('../../utils/use-event.cjs');
|
|
12
11
|
const useFieldContext = require('../field/use-field-context.cjs');
|
|
13
12
|
|
|
14
13
|
function _interopNamespaceDefault(e) {
|
|
@@ -31,11 +30,12 @@ function _interopNamespaceDefault(e) {
|
|
|
31
30
|
const zagSwitch__namespace = /*#__PURE__*/_interopNamespaceDefault(zagSwitch);
|
|
32
31
|
|
|
33
32
|
const useSwitch = (props = {}) => {
|
|
33
|
+
const id = react.useId();
|
|
34
34
|
const { getRootNode } = useEnvironmentContext.useEnvironmentContext();
|
|
35
35
|
const { dir } = useLocaleContext.useLocaleContext();
|
|
36
36
|
const field = useFieldContext.useFieldContext();
|
|
37
|
-
const
|
|
38
|
-
id
|
|
37
|
+
const machineProps = {
|
|
38
|
+
id,
|
|
39
39
|
ids: {
|
|
40
40
|
label: field?.ids.label,
|
|
41
41
|
hiddenInput: field?.ids.control
|
|
@@ -46,16 +46,10 @@ const useSwitch = (props = {}) => {
|
|
|
46
46
|
invalid: field?.invalid,
|
|
47
47
|
required: field?.required,
|
|
48
48
|
getRootNode,
|
|
49
|
-
checked: props.defaultChecked,
|
|
50
49
|
...props
|
|
51
50
|
};
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
checked: props.checked,
|
|
55
|
-
onCheckedChange: useEvent.useEvent(props.onCheckedChange, { sync: true })
|
|
56
|
-
};
|
|
57
|
-
const [state, send] = react$1.useMachine(zagSwitch__namespace.machine(initialContext), { context });
|
|
58
|
-
return zagSwitch__namespace.connect(state, send, react$1.normalizeProps);
|
|
51
|
+
const service = react$1.useMachine(zagSwitch__namespace.machine, machineProps);
|
|
52
|
+
return zagSwitch__namespace.connect(service, react$1.normalizeProps);
|
|
59
53
|
};
|
|
60
54
|
|
|
61
55
|
exports.useSwitch = useSwitch;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as zagSwitch from '@zag-js/switch';
|
|
4
|
-
export interface UseSwitchProps extends Optional<Omit<zagSwitch.
|
|
5
|
-
/**
|
|
6
|
-
* The checked state of the switch when it is first rendered.
|
|
7
|
-
* Use this when you do not need to control the state of the switch.
|
|
8
|
-
*/
|
|
9
|
-
defaultChecked?: zagSwitch.Context['checked'];
|
|
4
|
+
export interface UseSwitchProps extends Optional<Omit<zagSwitch.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
10
5
|
}
|
|
11
6
|
export interface UseSwitchReturn extends zagSwitch.Api<PropTypes> {
|
|
12
7
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as zagSwitch from '@zag-js/switch';
|
|
4
|
-
export interface UseSwitchProps extends Optional<Omit<zagSwitch.
|
|
5
|
-
/**
|
|
6
|
-
* The checked state of the switch when it is first rendered.
|
|
7
|
-
* Use this when you do not need to control the state of the switch.
|
|
8
|
-
*/
|
|
9
|
-
defaultChecked?: zagSwitch.Context['checked'];
|
|
4
|
+
export interface UseSwitchProps extends Optional<Omit<zagSwitch.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
10
5
|
}
|
|
11
6
|
export interface UseSwitchReturn extends zagSwitch.Api<PropTypes> {
|
|
12
7
|
}
|
|
@@ -4,15 +4,15 @@ import * as zagSwitch from '@zag-js/switch';
|
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';
|
|
6
6
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
7
|
-
import { useEvent } from '../../utils/use-event.js';
|
|
8
7
|
import { useFieldContext } from '../field/use-field-context.js';
|
|
9
8
|
|
|
10
9
|
const useSwitch = (props = {}) => {
|
|
10
|
+
const id = useId();
|
|
11
11
|
const { getRootNode } = useEnvironmentContext();
|
|
12
12
|
const { dir } = useLocaleContext();
|
|
13
13
|
const field = useFieldContext();
|
|
14
|
-
const
|
|
15
|
-
id
|
|
14
|
+
const machineProps = {
|
|
15
|
+
id,
|
|
16
16
|
ids: {
|
|
17
17
|
label: field?.ids.label,
|
|
18
18
|
hiddenInput: field?.ids.control
|
|
@@ -23,16 +23,10 @@ const useSwitch = (props = {}) => {
|
|
|
23
23
|
invalid: field?.invalid,
|
|
24
24
|
required: field?.required,
|
|
25
25
|
getRootNode,
|
|
26
|
-
checked: props.defaultChecked,
|
|
27
26
|
...props
|
|
28
27
|
};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
checked: props.checked,
|
|
32
|
-
onCheckedChange: useEvent(props.onCheckedChange, { sync: true })
|
|
33
|
-
};
|
|
34
|
-
const [state, send] = useMachine(zagSwitch.machine(initialContext), { context });
|
|
35
|
-
return zagSwitch.connect(state, send, normalizeProps);
|
|
28
|
+
const service = useMachine(zagSwitch.machine, machineProps);
|
|
29
|
+
return zagSwitch.connect(service, normalizeProps);
|
|
36
30
|
};
|
|
37
31
|
|
|
38
32
|
export { useSwitch };
|
|
@@ -5,7 +5,7 @@ export { TabList, type TabListBaseProps, type TabListProps } from './tab-list';
|
|
|
5
5
|
export { TabTrigger, type TabTriggerBaseProps, type TabTriggerProps } from './tab-trigger';
|
|
6
6
|
export { TabsContext, type TabsContextProps } from './tabs-context';
|
|
7
7
|
export { TabsRoot, type TabsRootBaseProps, type TabsRootProps } from './tabs-root';
|
|
8
|
-
export { TabsRootProvider, type TabsRootProviderBaseProps, type TabsRootProviderProps
|
|
8
|
+
export { TabsRootProvider, type TabsRootProviderBaseProps, type TabsRootProviderProps } from './tabs-root-provider';
|
|
9
9
|
export { tabsAnatomy } from './tabs.anatomy';
|
|
10
10
|
export { useTabs, type UseTabsProps, type UseTabsReturn } from './use-tabs';
|
|
11
11
|
export { useTabsContext, type UseTabsContext } from './use-tabs-context';
|
|
@@ -5,7 +5,7 @@ export { TabList, type TabListBaseProps, type TabListProps } from './tab-list';
|
|
|
5
5
|
export { TabTrigger, type TabTriggerBaseProps, type TabTriggerProps } from './tab-trigger';
|
|
6
6
|
export { TabsContext, type TabsContextProps } from './tabs-context';
|
|
7
7
|
export { TabsRoot, type TabsRootBaseProps, type TabsRootProps } from './tabs-root';
|
|
8
|
-
export { TabsRootProvider, type TabsRootProviderBaseProps, type TabsRootProviderProps
|
|
8
|
+
export { TabsRootProvider, type TabsRootProviderBaseProps, type TabsRootProviderProps } from './tabs-root-provider';
|
|
9
9
|
export { tabsAnatomy } from './tabs.anatomy';
|
|
10
10
|
export { useTabs, type UseTabsProps, type UseTabsReturn } from './use-tabs';
|
|
11
11
|
export { useTabsContext, type UseTabsContext } from './use-tabs-context';
|
|
@@ -24,11 +24,7 @@ const TabContent = react.forwardRef((props, ref) => {
|
|
|
24
24
|
present: useDebounce.useDebounce(tabs.value === props.value, 0),
|
|
25
25
|
immediate: true
|
|
26
26
|
});
|
|
27
|
-
const mergedProps = react$1.mergeProps(
|
|
28
|
-
tabs.getContentProps(contentProps),
|
|
29
|
-
presence.getPresenceProps(),
|
|
30
|
-
localProps
|
|
31
|
-
);
|
|
27
|
+
const mergedProps = react$1.mergeProps(tabs.getContentProps(contentProps), presence.getPresenceProps(), localProps);
|
|
32
28
|
return /* @__PURE__ */ jsxRuntime.jsx(usePresenceContext.PresenceProvider, { value: presence, children: presence.unmounted ? null : /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref: composeRefs.composeRefs(presence.ref, ref) }) });
|
|
33
29
|
});
|
|
34
30
|
TabContent.displayName = "TabContent";
|
|
@@ -20,11 +20,7 @@ const TabContent = forwardRef((props, ref) => {
|
|
|
20
20
|
present: useDebounce(tabs.value === props.value, 0),
|
|
21
21
|
immediate: true
|
|
22
22
|
});
|
|
23
|
-
const mergedProps = mergeProps(
|
|
24
|
-
tabs.getContentProps(contentProps),
|
|
25
|
-
presence.getPresenceProps(),
|
|
26
|
-
localProps
|
|
27
|
-
);
|
|
23
|
+
const mergedProps = mergeProps(tabs.getContentProps(contentProps), presence.getPresenceProps(), localProps);
|
|
28
24
|
return /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children: presence.unmounted ? null : /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) }) });
|
|
29
25
|
});
|
|
30
26
|
TabContent.displayName = "TabContent";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { FocusChangeDetails, ValueChangeDetails } from '@zag-js/tabs';
|
|
2
2
|
export { TabContent as Content, type TabContentBaseProps as ContentBaseProps, type TabContentProps as ContentProps, } from './tab-content';
|
|
3
3
|
export { TabIndicator as Indicator, type TabIndicatorBaseProps as IndicatorBaseProps, type TabIndicatorProps as IndicatorProps, } from './tab-indicator';
|
|
4
|
-
export { TabList as List, type TabListBaseProps as ListBaseProps, type TabListProps as ListProps
|
|
4
|
+
export { TabList as List, type TabListBaseProps as ListBaseProps, type TabListProps as ListProps } from './tab-list';
|
|
5
5
|
export { TabTrigger as Trigger, type TabTriggerBaseProps as TriggerBaseProps, type TabTriggerProps as TriggerProps, } from './tab-trigger';
|
|
6
6
|
export { TabsContext as Context, type TabsContextProps as ContextProps } from './tabs-context';
|
|
7
|
-
export { TabsRoot as Root, type TabsRootBaseProps as RootBaseProps, type TabsRootProps as RootProps
|
|
7
|
+
export { TabsRoot as Root, type TabsRootBaseProps as RootBaseProps, type TabsRootProps as RootProps } from './tabs-root';
|
|
8
8
|
export { TabsRootProvider as RootProvider, type TabsRootProviderBaseProps as RootProviderBaseProps, type TabsRootProviderProps as RootProviderProps, } from './tabs-root-provider';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { FocusChangeDetails, ValueChangeDetails } from '@zag-js/tabs';
|
|
2
2
|
export { TabContent as Content, type TabContentBaseProps as ContentBaseProps, type TabContentProps as ContentProps, } from './tab-content';
|
|
3
3
|
export { TabIndicator as Indicator, type TabIndicatorBaseProps as IndicatorBaseProps, type TabIndicatorProps as IndicatorProps, } from './tab-indicator';
|
|
4
|
-
export { TabList as List, type TabListBaseProps as ListBaseProps, type TabListProps as ListProps
|
|
4
|
+
export { TabList as List, type TabListBaseProps as ListBaseProps, type TabListProps as ListProps } from './tab-list';
|
|
5
5
|
export { TabTrigger as Trigger, type TabTriggerBaseProps as TriggerBaseProps, type TabTriggerProps as TriggerProps, } from './tab-trigger';
|
|
6
6
|
export { TabsContext as Context, type TabsContextProps as ContextProps } from './tabs-context';
|
|
7
|
-
export { TabsRoot as Root, type TabsRootBaseProps as RootBaseProps, type TabsRootProps as RootProps
|
|
7
|
+
export { TabsRoot as Root, type TabsRootBaseProps as RootBaseProps, type TabsRootProps as RootProps } from './tabs-root';
|
|
8
8
|
export { TabsRootProvider as RootProvider, type TabsRootProviderBaseProps as RootProviderBaseProps, type TabsRootProviderProps as RootProviderProps, } from './tabs-root-provider';
|
|
@@ -8,7 +8,6 @@ const tabs = require('@zag-js/tabs');
|
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
|
|
10
10
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
11
|
-
const useEvent = require('../../utils/use-event.cjs');
|
|
12
11
|
|
|
13
12
|
function _interopNamespaceDefault(e) {
|
|
14
13
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
@@ -30,23 +29,17 @@ function _interopNamespaceDefault(e) {
|
|
|
30
29
|
const tabs__namespace = /*#__PURE__*/_interopNamespaceDefault(tabs);
|
|
31
30
|
|
|
32
31
|
const useTabs = (props = {}) => {
|
|
32
|
+
const id = react.useId();
|
|
33
33
|
const { getRootNode } = useEnvironmentContext.useEnvironmentContext();
|
|
34
34
|
const { dir } = useLocaleContext.useLocaleContext();
|
|
35
|
-
const
|
|
36
|
-
id
|
|
35
|
+
const machineProps = {
|
|
36
|
+
id,
|
|
37
37
|
dir,
|
|
38
38
|
getRootNode,
|
|
39
|
-
value: props.defaultValue,
|
|
40
39
|
...props
|
|
41
40
|
};
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
value: props.value,
|
|
45
|
-
onValueChange: useEvent.useEvent(props.onValueChange, { sync: true }),
|
|
46
|
-
onFocusChange: useEvent.useEvent(props.onFocusChange)
|
|
47
|
-
};
|
|
48
|
-
const [state, send] = react$1.useMachine(tabs__namespace.machine(initialContext), { context });
|
|
49
|
-
return tabs__namespace.connect(state, send, react$1.normalizeProps);
|
|
41
|
+
const service = react$1.useMachine(tabs__namespace.machine, machineProps);
|
|
42
|
+
return tabs__namespace.connect(service, react$1.normalizeProps);
|
|
50
43
|
};
|
|
51
44
|
|
|
52
45
|
exports.useTabs = useTabs;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as tabs from '@zag-js/tabs';
|
|
4
|
-
export interface UseTabsProps extends Optional<Omit<tabs.
|
|
5
|
-
/**
|
|
6
|
-
* The initial value of the tabs when it is first rendered.
|
|
7
|
-
* Use when you do not need to control the state of the tabs.
|
|
8
|
-
*/
|
|
9
|
-
defaultValue?: tabs.Context['value'];
|
|
4
|
+
export interface UseTabsProps extends Optional<Omit<tabs.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
10
5
|
}
|
|
11
6
|
export interface UseTabsReturn extends tabs.Api<PropTypes> {
|
|
12
7
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from '@zag-js/react';
|
|
2
2
|
import { Optional } from '../../types';
|
|
3
3
|
import * as tabs from '@zag-js/tabs';
|
|
4
|
-
export interface UseTabsProps extends Optional<Omit<tabs.
|
|
5
|
-
/**
|
|
6
|
-
* The initial value of the tabs when it is first rendered.
|
|
7
|
-
* Use when you do not need to control the state of the tabs.
|
|
8
|
-
*/
|
|
9
|
-
defaultValue?: tabs.Context['value'];
|
|
4
|
+
export interface UseTabsProps extends Optional<Omit<tabs.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
10
5
|
}
|
|
11
6
|
export interface UseTabsReturn extends tabs.Api<PropTypes> {
|
|
12
7
|
}
|
|
@@ -4,26 +4,19 @@ import * as tabs from '@zag-js/tabs';
|
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';
|
|
6
6
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
7
|
-
import { useEvent } from '../../utils/use-event.js';
|
|
8
7
|
|
|
9
8
|
const useTabs = (props = {}) => {
|
|
9
|
+
const id = useId();
|
|
10
10
|
const { getRootNode } = useEnvironmentContext();
|
|
11
11
|
const { dir } = useLocaleContext();
|
|
12
|
-
const
|
|
13
|
-
id
|
|
12
|
+
const machineProps = {
|
|
13
|
+
id,
|
|
14
14
|
dir,
|
|
15
15
|
getRootNode,
|
|
16
|
-
value: props.defaultValue,
|
|
17
16
|
...props
|
|
18
17
|
};
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
value: props.value,
|
|
22
|
-
onValueChange: useEvent(props.onValueChange, { sync: true }),
|
|
23
|
-
onFocusChange: useEvent(props.onFocusChange)
|
|
24
|
-
};
|
|
25
|
-
const [state, send] = useMachine(tabs.machine(initialContext), { context });
|
|
26
|
-
return tabs.connect(state, send, normalizeProps);
|
|
18
|
+
const service = useMachine(tabs.machine, machineProps);
|
|
19
|
+
return tabs.connect(service, normalizeProps);
|
|
27
20
|
};
|
|
28
21
|
|
|
29
22
|
export { useTabs };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export type { HighlightChangeDetails as TagsInputHighlightChangeDetails, ValidityChangeDetails as TagsInputValidityChangeDetails, ValueChangeDetails as TagsInputValueChangeDetails, } from '@zag-js/tags-input';
|
|
2
2
|
export { TagsInputClearTrigger, type TagsInputClearTriggerBaseProps, type TagsInputClearTriggerProps, } from './tags-input-clear-trigger';
|
|
3
3
|
export { TagsInputContext, type TagsInputContextProps } from './tags-input-context';
|
|
4
|
-
export { TagsInputControl, type TagsInputControlBaseProps, type TagsInputControlProps
|
|
4
|
+
export { TagsInputControl, type TagsInputControlBaseProps, type TagsInputControlProps } from './tags-input-control';
|
|
5
5
|
export { TagsInputHiddenInput, type TagsInputHiddenInputBaseProps, type TagsInputHiddenInputProps, } from './tags-input-hidden-input';
|
|
6
|
-
export { TagsInputInput, type TagsInputInputBaseProps, type TagsInputInputProps
|
|
7
|
-
export { TagsInputItem, type TagsInputItemBaseProps, type TagsInputItemProps
|
|
6
|
+
export { TagsInputInput, type TagsInputInputBaseProps, type TagsInputInputProps } from './tags-input-input';
|
|
7
|
+
export { TagsInputItem, type TagsInputItemBaseProps, type TagsInputItemProps } from './tags-input-item';
|
|
8
8
|
export { TagsInputItemContext, type TagsInputItemContextProps } from './tags-input-item-context';
|
|
9
9
|
export { TagsInputItemDeleteTrigger, type TagsInputItemDeleteTriggerBaseProps, type TagsInputItemDeleteTriggerProps, } from './tags-input-item-delete-trigger';
|
|
10
10
|
export { TagsInputItemInput, type TagsInputItemInputBaseProps, type TagsInputItemInputProps, } from './tags-input-item-input';
|
|
11
11
|
export { TagsInputItemPreview, type TagsInputItemPreviewBaseProps, type TagsInputItemPreviewProps, } from './tags-input-item-preview';
|
|
12
|
-
export { TagsInputItemText, type TagsInputItemTextBaseProps, type TagsInputItemTextProps
|
|
13
|
-
export { TagsInputLabel, type TagsInputLabelBaseProps, type TagsInputLabelProps
|
|
14
|
-
export { TagsInputRoot, type TagsInputRootBaseProps, type TagsInputRootProps
|
|
12
|
+
export { TagsInputItemText, type TagsInputItemTextBaseProps, type TagsInputItemTextProps } from './tags-input-item-text';
|
|
13
|
+
export { TagsInputLabel, type TagsInputLabelBaseProps, type TagsInputLabelProps } from './tags-input-label';
|
|
14
|
+
export { TagsInputRoot, type TagsInputRootBaseProps, type TagsInputRootProps } from './tags-input-root';
|
|
15
15
|
export { TagsInputRootProvider, type TagsInputRootProviderBaseProps, type TagsInputRootProviderProps, } from './tags-input-root-provider';
|
|
16
16
|
export { tagsInputAnatomy } from './tags-input.anatomy';
|
|
17
17
|
export { useTagsInput, type UseTagsInputProps, type UseTagsInputReturn } from './use-tags-input';
|
|
18
18
|
export { useTagsInputContext, type UseTagsInputContext } from './use-tags-input-context';
|
|
19
|
-
export { useTagsInputItemContext, type UseTagsInputItemContext
|
|
19
|
+
export { useTagsInputItemContext, type UseTagsInputItemContext } from './use-tags-input-item-context';
|
|
20
20
|
export * as TagsInput from './tags-input';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export type { HighlightChangeDetails as TagsInputHighlightChangeDetails, ValidityChangeDetails as TagsInputValidityChangeDetails, ValueChangeDetails as TagsInputValueChangeDetails, } from '@zag-js/tags-input';
|
|
2
2
|
export { TagsInputClearTrigger, type TagsInputClearTriggerBaseProps, type TagsInputClearTriggerProps, } from './tags-input-clear-trigger';
|
|
3
3
|
export { TagsInputContext, type TagsInputContextProps } from './tags-input-context';
|
|
4
|
-
export { TagsInputControl, type TagsInputControlBaseProps, type TagsInputControlProps
|
|
4
|
+
export { TagsInputControl, type TagsInputControlBaseProps, type TagsInputControlProps } from './tags-input-control';
|
|
5
5
|
export { TagsInputHiddenInput, type TagsInputHiddenInputBaseProps, type TagsInputHiddenInputProps, } from './tags-input-hidden-input';
|
|
6
|
-
export { TagsInputInput, type TagsInputInputBaseProps, type TagsInputInputProps
|
|
7
|
-
export { TagsInputItem, type TagsInputItemBaseProps, type TagsInputItemProps
|
|
6
|
+
export { TagsInputInput, type TagsInputInputBaseProps, type TagsInputInputProps } from './tags-input-input';
|
|
7
|
+
export { TagsInputItem, type TagsInputItemBaseProps, type TagsInputItemProps } from './tags-input-item';
|
|
8
8
|
export { TagsInputItemContext, type TagsInputItemContextProps } from './tags-input-item-context';
|
|
9
9
|
export { TagsInputItemDeleteTrigger, type TagsInputItemDeleteTriggerBaseProps, type TagsInputItemDeleteTriggerProps, } from './tags-input-item-delete-trigger';
|
|
10
10
|
export { TagsInputItemInput, type TagsInputItemInputBaseProps, type TagsInputItemInputProps, } from './tags-input-item-input';
|
|
11
11
|
export { TagsInputItemPreview, type TagsInputItemPreviewBaseProps, type TagsInputItemPreviewProps, } from './tags-input-item-preview';
|
|
12
|
-
export { TagsInputItemText, type TagsInputItemTextBaseProps, type TagsInputItemTextProps
|
|
13
|
-
export { TagsInputLabel, type TagsInputLabelBaseProps, type TagsInputLabelProps
|
|
14
|
-
export { TagsInputRoot, type TagsInputRootBaseProps, type TagsInputRootProps
|
|
12
|
+
export { TagsInputItemText, type TagsInputItemTextBaseProps, type TagsInputItemTextProps } from './tags-input-item-text';
|
|
13
|
+
export { TagsInputLabel, type TagsInputLabelBaseProps, type TagsInputLabelProps } from './tags-input-label';
|
|
14
|
+
export { TagsInputRoot, type TagsInputRootBaseProps, type TagsInputRootProps } from './tags-input-root';
|
|
15
15
|
export { TagsInputRootProvider, type TagsInputRootProviderBaseProps, type TagsInputRootProviderProps, } from './tags-input-root-provider';
|
|
16
16
|
export { tagsInputAnatomy } from './tags-input.anatomy';
|
|
17
17
|
export { useTagsInput, type UseTagsInputProps, type UseTagsInputReturn } from './use-tags-input';
|
|
18
18
|
export { useTagsInputContext, type UseTagsInputContext } from './use-tags-input-context';
|
|
19
|
-
export { useTagsInputItemContext, type UseTagsInputItemContext
|
|
19
|
+
export { useTagsInputItemContext, type UseTagsInputItemContext } from './use-tags-input-item-context';
|
|
20
20
|
export * as TagsInput from './tags-input';
|
|
@@ -9,13 +9,11 @@ const react = require('react');
|
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
10
|
const useTagsInputContext = require('./use-tags-input-context.cjs');
|
|
11
11
|
|
|
12
|
-
const TagsInputClearTrigger = react.forwardRef(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
);
|
|
12
|
+
const TagsInputClearTrigger = react.forwardRef((props, ref) => {
|
|
13
|
+
const tagsInput = useTagsInputContext.useTagsInputContext();
|
|
14
|
+
const mergedProps = react$1.mergeProps(tagsInput.getClearTriggerProps(), props);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
16
|
+
});
|
|
19
17
|
TagsInputClearTrigger.displayName = "TagsInputClearTrigger";
|
|
20
18
|
|
|
21
19
|
exports.TagsInputClearTrigger = TagsInputClearTrigger;
|
|
@@ -5,13 +5,11 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ark } from '../factory.js';
|
|
6
6
|
import { useTagsInputContext } from './use-tags-input-context.js';
|
|
7
7
|
|
|
8
|
-
const TagsInputClearTrigger = forwardRef(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
);
|
|
8
|
+
const TagsInputClearTrigger = forwardRef((props, ref) => {
|
|
9
|
+
const tagsInput = useTagsInputContext();
|
|
10
|
+
const mergedProps = mergeProps(tagsInput.getClearTriggerProps(), props);
|
|
11
|
+
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
12
|
+
});
|
|
15
13
|
TagsInputClearTrigger.displayName = "TagsInputClearTrigger";
|
|
16
14
|
|
|
17
15
|
export { TagsInputClearTrigger };
|
|
@@ -10,14 +10,12 @@ const factory = require('../factory.cjs');
|
|
|
10
10
|
const useFieldContext = require('../field/use-field-context.cjs');
|
|
11
11
|
const useTagsInputContext = require('./use-tags-input-context.cjs');
|
|
12
12
|
|
|
13
|
-
const TagsInputHiddenInput = react.forwardRef(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
);
|
|
13
|
+
const TagsInputHiddenInput = react.forwardRef((props, ref) => {
|
|
14
|
+
const tagsInput = useTagsInputContext.useTagsInputContext();
|
|
15
|
+
const mergedProps = react$1.mergeProps(tagsInput.getHiddenInputProps(), props);
|
|
16
|
+
const field = useFieldContext.useFieldContext();
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.input, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref });
|
|
18
|
+
});
|
|
21
19
|
TagsInputHiddenInput.displayName = "TagsInputHiddenInput";
|
|
22
20
|
|
|
23
21
|
exports.TagsInputHiddenInput = TagsInputHiddenInput;
|