@soybeanjs/headless 0.18.0 → 0.20.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/dist/components/_icon/types.d.ts +1 -10
- package/dist/components/accordion/accordion-content.js +1 -1
- package/dist/components/accordion/accordion-description.js +1 -1
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/types.d.ts +6 -5
- package/dist/components/affix/affix-content.js +1 -1
- package/dist/components/affix/affix-placeholder.js +1 -1
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/types.d.ts +5 -4
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +5 -4
- package/dist/components/alert/alert-compact.js +1 -1
- package/dist/components/alert/alert-compact.vue.d.ts +2 -0
- package/dist/components/alert/alert-content.js +1 -1
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/types.d.ts +16 -9
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +2 -2
- package/dist/components/anchor/context.js +1 -1
- package/dist/components/anchor/types.d.ts +5 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/types.d.ts +2 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/types.d.ts +2 -3
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +4 -4
- package/dist/components/autocomplete/types.d.ts +4 -3
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -4
- package/dist/components/backtop/backtop.js +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -6
- package/dist/components/backtop/types.d.ts +2 -2
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/types.d.ts +4 -3
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +8 -8
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/types.d.ts +3 -2
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +3 -16
- package/dist/components/calendar/calendar-cell.js +1 -1
- package/dist/components/calendar/calendar-compact.js +1 -1
- package/dist/components/calendar/calendar-compact.vue.d.ts +3 -3
- package/dist/components/calendar/calendar-grid-body.js +1 -1
- package/dist/components/calendar/calendar-grid-head.js +1 -1
- package/dist/components/calendar/calendar-grid-row.js +1 -1
- package/dist/components/calendar/calendar-grid.js +1 -1
- package/dist/components/calendar/calendar-head-cell.js +1 -1
- package/dist/components/calendar/calendar-header.js +1 -1
- package/dist/components/calendar/calendar-header.vue.d.ts +1 -4
- package/dist/components/calendar/calendar-heading.js +1 -1
- package/dist/components/calendar/calendar-heading.vue.d.ts +6 -8
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-next.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-prev.vue.d.ts +6 -10
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/calendar-root.vue.d.ts +2 -4
- package/dist/components/calendar/index.d.ts +2 -2
- package/dist/components/calendar/shared.js +1 -0
- package/dist/components/calendar/types.d.ts +119 -202
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -0
- package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +15 -0
- package/dist/components/calendar-range/calendar-range-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-cell.vue.d.ts → calendar-range/calendar-range-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-compact.js +1 -0
- package/dist/components/{range-calendar/range-calendar-compact.vue.d.ts → calendar-range/calendar-range-compact.vue.d.ts} +5 -5
- package/dist/components/calendar-range/calendar-range-grid-body.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-body.vue.d.ts → calendar-range/calendar-range-grid-body.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-head.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-head.vue.d.ts → calendar-range/calendar-range-grid-head.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid-row.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid-row.vue.d.ts → calendar-range/calendar-range-grid-row.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-grid.js +1 -0
- package/dist/components/{range-calendar/range-calendar-grid.vue.d.ts → calendar-range/calendar-range-grid.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-head-cell.js +1 -0
- package/dist/components/{range-calendar/range-calendar-head-cell.vue.d.ts → calendar-range/calendar-range-head-cell.vue.d.ts} +3 -3
- package/dist/components/calendar-range/calendar-range-header.js +1 -0
- package/dist/components/calendar-range/calendar-range-header.vue.d.ts +18 -0
- package/dist/components/calendar-range/calendar-range-heading.js +1 -0
- package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-next.js +1 -0
- package/dist/components/calendar-range/calendar-range-next.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-prev.js +1 -0
- package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +20 -0
- package/dist/components/calendar-range/calendar-range-root.js +1 -0
- package/dist/components/{range-calendar/range-calendar-root.vue.d.ts → calendar-range/calendar-range-root.vue.d.ts} +12 -24
- package/dist/components/calendar-range/context.d.ts +9 -0
- package/dist/components/calendar-range/context.js +1 -0
- package/dist/components/calendar-range/index.d.ts +16 -0
- package/dist/components/calendar-range/index.js +1 -0
- package/dist/components/calendar-range/types.d.ts +471 -0
- package/dist/components/{range-calendar/use-range-calendar.js → calendar-range/use-calendar-range.js} +1 -1
- package/dist/components/card/card-collapsible-trigger.js +1 -1
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-description.js +1 -1
- package/dist/components/card/card-footer.js +1 -1
- package/dist/components/card/card-header.js +1 -1
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/card-title-root.js +1 -1
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/types.d.ts +8 -8
- package/dist/components/carousel/carousel-container.js +1 -1
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -1
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -1
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/types.d.ts +8 -7
- package/dist/components/checkbox/checkbox-card-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -2
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +8 -6
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +5 -5
- package/dist/components/clipboard/types.d.ts +1 -1
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +3 -3
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +6 -5
- package/dist/components/color-area/color-area-area.js +1 -1
- package/dist/components/color-area/color-area-area.vue.d.ts +1 -4
- package/dist/components/color-area/color-area-compact.js +1 -0
- package/dist/components/color-area/color-area-compact.vue.d.ts +19 -0
- package/dist/components/color-area/color-area-root.js +1 -1
- package/dist/components/color-area/color-area-root.vue.d.ts +4 -6
- package/dist/components/color-area/color-area-thumb.js +1 -1
- package/dist/components/color-area/index.d.ts +5 -4
- package/dist/components/color-area/index.js +1 -1
- package/dist/components/color-area/types.d.ts +24 -7
- package/dist/components/color-field/color-field-compact.js +1 -0
- package/dist/components/color-field/color-field-compact.vue.d.ts +15 -0
- package/dist/components/color-field/color-field-input.js +1 -1
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -4
- package/dist/components/color-field/index.d.ts +5 -4
- package/dist/components/color-field/index.js +1 -1
- package/dist/components/color-field/types.d.ts +20 -6
- package/dist/components/color-picker/color-picker-compact.js +1 -0
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +60 -0
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +18 -7
- package/dist/components/color-picker/color-picker-trigger.js +1 -0
- package/dist/components/color-picker/color-picker-trigger.vue.d.ts +25 -0
- package/dist/components/color-picker/context.d.ts +9 -0
- package/dist/components/color-picker/context.js +1 -0
- package/dist/components/color-picker/index.d.ts +6 -3
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/color-picker/shared.js +1 -0
- package/dist/components/color-picker/types.d.ts +132 -5
- package/dist/components/color-slider/color-slider-compact.js +1 -0
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +19 -0
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +5 -5
- package/dist/components/color-slider/color-slider-thumb.js +1 -1
- package/dist/components/color-slider/color-slider-track.js +1 -1
- package/dist/components/color-slider/index.d.ts +6 -5
- package/dist/components/color-slider/index.js +1 -1
- package/dist/components/color-slider/types.d.ts +24 -7
- package/dist/components/color-swatch/color-swatch-checker.js +1 -0
- package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-compact.js +1 -0
- package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +15 -0
- package/dist/components/color-swatch/color-swatch-fill.js +1 -0
- package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +8 -0
- package/dist/components/color-swatch/color-swatch-root.js +1 -0
- package/dist/components/color-swatch/color-swatch-root.vue.d.ts +15 -0
- package/dist/components/color-swatch/context.d.ts +9 -0
- package/dist/components/color-swatch/context.js +1 -0
- package/dist/components/color-swatch/index.d.ts +7 -3
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/color-swatch/types.d.ts +58 -5
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +28 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +1 -1
- package/dist/components/color-swatch-picker/context.js +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +7 -6
- package/dist/components/color-swatch-picker/index.js +1 -1
- package/dist/components/color-swatch-picker/types.d.ts +63 -8
- package/dist/components/combobox/combobox-arrow.js +1 -1
- package/dist/components/combobox/combobox-cancel.js +1 -1
- package/dist/components/combobox/combobox-compact.js +1 -1
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-content.js +1 -1
- package/dist/components/combobox/combobox-empty.js +1 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +1 -4
- package/dist/components/combobox/combobox-group.js +1 -1
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -1
- package/dist/components/combobox/types.d.ts +9 -8
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/types.d.ts +4 -4
- package/dist/components/config-provider/config-provider.js +14 -2
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +9 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/date-field/date-field-compact.js +1 -1
- package/dist/components/date-field/date-field-compact.vue.d.ts +17 -5
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +14 -22
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +44 -144
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +290 -10
- package/dist/components/date-picker/index.d.ts +2 -7
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +11 -274
- package/dist/components/date-range-field/date-range-field-compact.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.js +1 -1
- package/dist/components/date-range-field/date-range-field-input.vue.d.ts +2 -2
- package/dist/components/date-range-field/date-range-field-root.js +1 -1
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +15 -30
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +36 -183
- package/dist/components/date-range-picker/context.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.js +1 -1
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +293 -12
- package/dist/components/date-range-picker/index.d.ts +2 -5
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-range-picker/types.d.ts +14 -269
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.js +1 -1
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +7 -7
- package/dist/components/dialog/dialog-confirm.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.js +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-title.js +1 -1
- package/dist/components/dialog/dialog-trigger.js +1 -1
- package/dist/components/dialog/dialog-trigger.vue.d.ts +5 -1
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dialog/types.d.ts +26 -15
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/editable/context.js +1 -1
- package/dist/components/editable/editable-area.js +1 -1
- package/dist/components/editable/editable-area.vue.d.ts +1 -4
- package/dist/components/editable/editable-cancel-trigger.js +1 -1
- package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-compact.js +1 -1
- package/dist/components/editable/editable-compact.vue.d.ts +2 -2
- package/dist/components/editable/editable-edit-trigger.js +1 -1
- package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/editable-input.js +1 -1
- package/dist/components/editable/editable-input.vue.d.ts +4 -1
- package/dist/components/editable/editable-preview.js +1 -1
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +4 -6
- package/dist/components/editable/editable-submit-trigger.js +1 -1
- package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -4
- package/dist/components/editable/types.d.ts +12 -11
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/types.d.ts +8 -8
- package/dist/components/form/form-compact.js +1 -1
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/types.d.ts +7 -6
- package/dist/components/hover-card/context.js +1 -1
- package/dist/components/hover-card/hover-card-compact.js +1 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +0 -1
- package/dist/components/hover-card/hover-card-popup.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.js +1 -1
- package/dist/components/hover-card/hover-card-root.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +2 -2
- package/dist/components/hover-card/hover-card-trigger.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +2 -2
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +1 -1
- package/dist/components/input/types.d.ts +10 -9
- package/dist/components/input-number/context.js +1 -1
- package/dist/components/input-number/index.d.ts +7 -6
- package/dist/components/input-number/index.js +1 -1
- package/dist/components/input-number/input-number-clear.js +1 -0
- package/dist/components/input-number/input-number-compact.js +1 -0
- package/dist/components/input-number/input-number-compact.vue.d.ts +21 -0
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-decrement.js +1 -1
- package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-increment.js +1 -1
- package/dist/components/input-number/input-number-increment.vue.d.ts +1 -4
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +4 -4
- package/dist/components/input-number/types.d.ts +87 -14
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-input.js +1 -1
- package/dist/components/input-otp/input-otp-positioner.js +1 -1
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
- package/dist/components/input-otp/types.d.ts +5 -4
- package/dist/components/kbd/kbd.js +1 -1
- package/dist/components/kbd/types.d.ts +2 -3
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/types.d.ts +2 -3
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-classic-placeholder.js +1 -1
- package/dist/components/layout/layout-classic-root.js +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-content.js +1 -1
- package/dist/components/layout/layout-footer.js +1 -1
- package/dist/components/layout/layout-header.js +1 -1
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +3 -3
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +1 -4
- package/dist/components/layout/types.d.ts +13 -12
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/types.d.ts +2 -3
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/types.d.ts +6 -7
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-filter.js +1 -1
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +1 -4
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/types.d.ts +9 -8
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +1 -1
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-group-label.js +1 -1
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-radio-group.js +1 -1
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +1 -1
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/types.d.ts +11 -12
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-menu.js +1 -1
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
- package/dist/components/menubar/menubar-sub-content.js +1 -1
- package/dist/components/menubar/menubar-sub-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +1 -4
- package/dist/components/menubar/types.d.ts +5 -7
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item-slot-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/shared.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +105 -65
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/index.d.ts +6 -5
- package/dist/components/page-tabs/index.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.js +1 -0
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +27 -0
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +4 -4
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -2
- package/dist/components/page-tabs/types.d.ts +208 -9
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- package/dist/components/pagination/types.d.ts +18 -16
- package/dist/components/password/context.d.ts +9 -0
- package/dist/components/password/context.js +1 -0
- package/dist/components/password/index.d.ts +4 -0
- package/dist/components/password/index.js +1 -0
- package/dist/components/password/password-compact.js +1 -0
- package/dist/components/password/password-compact.vue.d.ts +23 -0
- package/dist/components/password/types.d.ts +97 -0
- package/dist/components/popconfirm/context.d.ts +9 -0
- package/dist/components/popconfirm/context.js +1 -0
- package/dist/components/popconfirm/index.d.ts +21 -0
- package/dist/components/popconfirm/index.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.js +1 -0
- package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-compact.js +1 -0
- package/dist/components/{date-picker/date-picker-content.vue.d.ts → popconfirm/popconfirm-compact.vue.d.ts} +17 -7
- package/dist/components/popconfirm/popconfirm-confirm.js +1 -0
- package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +22 -0
- package/dist/components/popconfirm/popconfirm-content.js +1 -0
- package/dist/components/popconfirm/popconfirm-content.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-description.js +1 -0
- package/dist/components/popconfirm/popconfirm-description.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-footer.js +1 -0
- package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-header.js +1 -0
- package/dist/components/popconfirm/popconfirm-header.vue.d.ts +18 -0
- package/dist/components/popconfirm/popconfirm-title.js +1 -0
- package/dist/components/popconfirm/popconfirm-title.vue.d.ts +18 -0
- package/dist/components/popconfirm/types.d.ts +221 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.js +1 -1
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +3 -6
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popover/popover-popup.js +1 -1
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +1 -0
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -1
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +13 -15
- package/dist/components/popper/index.d.ts +1 -1
- package/dist/components/popper/popper-anchor.js +1 -1
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -1
- package/dist/components/popper/types.d.ts +7 -6
- package/dist/components/primitive/index.d.ts +2 -2
- package/dist/components/primitive/types.d.ts +3 -1
- package/dist/components/progress/index.d.ts +8 -6
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress-circle-compact.js +1 -0
- package/dist/components/progress/progress-circle-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-circle-svg.js +1 -0
- package/dist/components/progress/{progress-circle.vue.d.ts → progress-circle-svg.vue.d.ts} +3 -3
- package/dist/components/progress/progress-compact.js +1 -0
- package/dist/components/progress/progress-compact.vue.d.ts +21 -0
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-indicator.vue.d.ts +1 -4
- package/dist/components/progress/progress-provider.js +1 -1
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/progress-root.vue.d.ts +1 -3
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/state.js +1 -1
- package/dist/components/progress/types.d.ts +68 -23
- package/dist/components/radio-group/context.d.ts +3 -2
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/index.d.ts +10 -9
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-card-compact.js +1 -0
- package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +21 -0
- package/dist/components/radio-group/radio-group-compact.js +1 -1
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +4 -5
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.js +1 -1
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +5 -5
- package/dist/components/radio-group/types.d.ts +74 -18
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/roving-focus-item.js +1 -1
- package/dist/components/roving-focus/types.d.ts +3 -4
- package/dist/components/scroll-area/index.d.ts +8 -7
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area-compact.js +1 -0
- package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +15 -0
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +0 -2
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -4
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/scroll-area/types.d.ts +46 -8
- package/dist/components/segment/index.d.ts +1 -1
- package/dist/components/segment/segment-compact.js +1 -1
- package/dist/components/segment/segment-compact.vue.d.ts +2 -2
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-bubble-select.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-item-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-popper-popup.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/types.d.ts +16 -14
- package/dist/components/separator/index.d.ts +5 -4
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-compact.js +1 -0
- package/dist/components/separator/separator-compact.vue.d.ts +18 -0
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/types.d.ts +26 -5
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -4
- package/dist/components/skeleton/types.d.ts +2 -3
- package/dist/components/slider/index.d.ts +7 -6
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -0
- package/dist/components/slider/slider-compact.vue.d.ts +21 -0
- package/dist/components/slider/slider-range.js +1 -1
- package/dist/components/slider/slider-range.vue.d.ts +1 -4
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -3
- package/dist/components/slider/slider-thumb.js +1 -1
- package/dist/components/slider/slider-thumb.vue.d.ts +1 -4
- package/dist/components/slider/slider-track.js +1 -1
- package/dist/components/slider/slider-track.vue.d.ts +1 -4
- package/dist/components/slider/types.d.ts +55 -8
- package/dist/components/splitter/context.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +0 -2
- package/dist/components/splitter/splitter-panel.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -4
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +0 -2
- package/dist/components/splitter/types.d.ts +5 -5
- package/dist/components/stepper/context.js +1 -1
- package/dist/components/stepper/stepper-description.js +1 -1
- package/dist/components/stepper/stepper-indicator.js +1 -1
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-item.vue.d.ts +0 -2
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +2 -4
- package/dist/components/stepper/stepper-separator.js +1 -1
- package/dist/components/stepper/stepper-title.js +1 -1
- package/dist/components/stepper/stepper-trigger.js +1 -1
- package/dist/components/stepper/types.d.ts +10 -10
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/index.d.ts +6 -5
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch-compact.js +1 -0
- package/dist/components/switch/switch-compact.vue.d.ts +22 -0
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +1 -1
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/types.d.ts +54 -7
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-body.js +1 -1
- package/dist/components/table/table-cell.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/table-content.js +1 -1
- package/dist/components/table/table-footer.js +1 -1
- package/dist/components/table/table-head.js +1 -1
- package/dist/components/table/table-header.js +1 -1
- package/dist/components/table/table-root.js +1 -1
- package/dist/components/table/table-row.js +1 -1
- package/dist/components/table/table-scroll.js +1 -1
- package/dist/components/table/table-virtual-spacer-row.js +1 -1
- package/dist/components/table/types.d.ts +15 -11
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/tabs-compact.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/types.d.ts +8 -7
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/types.d.ts +2 -3
- package/dist/components/tags-input/index.d.ts +8 -7
- package/dist/components/tags-input/index.js +1 -1
- package/dist/components/tags-input/tags-input-clear.js +1 -1
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-compact.js +1 -0
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +25 -0
- package/dist/components/tags-input/tags-input-control.js +1 -0
- package/dist/components/tags-input/tags-input-control.vue.d.ts +8 -0
- package/dist/components/tags-input/tags-input-item-delete.js +1 -1
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -4
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +3 -6
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-item.vue.d.ts +14 -14
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +29 -21
- package/dist/components/tags-input/types.d.ts +75 -63
- package/dist/components/textarea/index.d.ts +7 -5
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-clear.js +1 -0
- package/dist/components/textarea/textarea-clear.vue.d.ts +22 -0
- package/dist/components/textarea/textarea-compact.js +1 -0
- package/dist/components/textarea/textarea-compact.vue.d.ts +21 -0
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +3 -1
- package/dist/components/textarea/types.d.ts +96 -6
- package/dist/components/time-field/index.d.ts +6 -4
- package/dist/components/time-field/index.js +1 -1
- package/dist/components/time-field/time-field-compact.js +1 -0
- package/dist/components/time-field/time-field-compact.vue.d.ts +15 -0
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-input.vue.d.ts +2 -2
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +5 -15
- package/dist/components/time-field/types.d.ts +33 -132
- package/dist/components/time-range-field/index.d.ts +2 -2
- package/dist/components/time-range-field/time-range-field-compact.js +1 -1
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +1 -2
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.js +1 -1
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +5 -19
- package/dist/components/time-range-field/types.d.ts +36 -184
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +3 -2
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +1 -4
- package/dist/components/toggle/types.d.ts +2 -7
- package/dist/components/toggle-group/context.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toggle-group/types.d.ts +3 -5
- package/dist/components/toolbar/context.js +1 -1
- package/dist/components/toolbar/toolbar-button.js +1 -1
- package/dist/components/toolbar/toolbar-link.js +1 -1
- package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-root.js +1 -1
- package/dist/components/toolbar/toolbar-separator.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/toolbar-toggle-item.js +1 -1
- package/dist/components/toolbar/types.d.ts +11 -6
- package/dist/components/tooltip/index.d.ts +8 -7
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-compact.js +1 -0
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +28 -0
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +1 -0
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/types.d.ts +58 -2
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +1 -1
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/types.d.ts +5 -5
- package/dist/components/tree-menu/index.d.ts +12 -8
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/shared.js +1 -0
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +24 -0
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +33 -0
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +34 -0
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +3 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -0
- package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +28 -0
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/types.d.ts +241 -12
- package/dist/components/virtualizer/types.d.ts +7 -6
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/visually-hidden/types.d.ts +2 -3
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-bool-prop.d.ts +12 -0
- package/dist/composables/use-bool-prop.js +1 -0
- package/dist/composables/use-collection.d.ts +0 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +10 -1
- package/dist/composables/use-controllable-state.js +1 -1
- package/dist/composables/use-selection.js +1 -1
- package/dist/constants/components.d.ts +3 -7
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +22 -24
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +29 -30
- package/dist/date/formatter.d.ts +1 -1
- package/dist/date/index.d.ts +8 -8
- package/dist/date/index.js +1 -1
- package/dist/date/parser.d.ts +14 -13
- package/dist/date/parser.js +1 -1
- package/dist/date/parts.d.ts +6 -6
- package/dist/date/placeholders.d.ts +2 -21
- package/dist/date/placeholders.js +1 -1
- package/dist/date/types.d.ts +12 -11
- package/dist/date/use-date-field.d.ts +6 -8
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +3 -7
- package/dist/date/utils.js +1 -1
- package/dist/index.d.ts +427 -417
- package/dist/index.js +1 -1
- package/dist/locale/hooks.d.ts +14 -0
- package/dist/locale/hooks.js +1 -0
- package/dist/locale/index.d.ts +5 -0
- package/dist/locale/index.js +1 -0
- package/dist/locale/langs/en.d.ts +6 -0
- package/dist/locale/langs/en.js +1 -0
- package/dist/locale/langs/zh-CN.d.ts +6 -0
- package/dist/locale/langs/zh-CN.js +1 -0
- package/dist/locale/locales.d.ts +23 -0
- package/dist/locale/locales.js +1 -0
- package/dist/locale/types.d.ts +234 -0
- package/dist/namespaced/index.d.ts +982 -963
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/color.d.ts +3 -13
- package/dist/shared/color.js +1 -1
- package/dist/shared/index.d.ts +4 -4
- package/dist/shared/index.js +1 -1
- package/dist/shared/object.d.ts +2 -1
- package/dist/shared/object.js +1 -1
- package/dist/shared/string.d.ts +6 -1
- package/dist/shared/string.js +1 -1
- package/dist/shared/time-picker.d.ts +1 -2
- package/dist/shared/vue.js +1 -1
- package/dist/types/color.d.ts +16 -0
- package/dist/types/common.d.ts +2 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/vue.d.ts +4 -2
- package/package.json +17 -7
- package/dist/components/_icon/icon.vue.d.ts +0 -8
- package/dist/components/_icon/index.d.ts +0 -3
- package/dist/components/_icon/index.js +0 -1
- package/dist/components/calendar/use-calendar.d.ts +0 -45
- package/dist/components/color-swatch/color-swatch.js +0 -1
- package/dist/components/color-swatch/color-swatch.vue.d.ts +0 -26
- package/dist/components/date-picker/date-picker-content.js +0 -1
- package/dist/components/date-picker/date-picker-root.js +0 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +0 -38
- package/dist/components/date-range-picker/date-range-picker-popup.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-range-picker/date-range-picker-root.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +0 -50
- package/dist/components/date-range-picker/date-range-picker-trigger.js +0 -1
- package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/context.d.ts +0 -9
- package/dist/components/month-picker/context.js +0 -1
- package/dist/components/month-picker/index.d.ts +0 -6
- package/dist/components/month-picker/index.js +0 -1
- package/dist/components/month-picker/month-picker-popup.js +0 -1
- package/dist/components/month-picker/month-picker-popup.vue.d.ts +0 -36
- package/dist/components/month-picker/month-picker-root.js +0 -1
- package/dist/components/month-picker/month-picker-root.vue.d.ts +0 -39
- package/dist/components/month-picker/month-picker-trigger.js +0 -1
- package/dist/components/month-picker/month-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-picker/types.d.ts +0 -202
- package/dist/components/month-range-picker/context.d.ts +0 -9
- package/dist/components/month-range-picker/context.js +0 -1
- package/dist/components/month-range-picker/index.d.ts +0 -6
- package/dist/components/month-range-picker/index.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/month-range-picker/month-range-picker-root.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +0 -43
- package/dist/components/month-range-picker/month-range-picker-trigger.js +0 -1
- package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/month-range-picker/types.d.ts +0 -234
- package/dist/components/progress/progress-circle.js +0 -1
- package/dist/components/range-calendar/context.d.ts +0 -9
- package/dist/components/range-calendar/context.js +0 -1
- package/dist/components/range-calendar/index.d.ts +0 -16
- package/dist/components/range-calendar/index.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.js +0 -1
- package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +0 -33
- package/dist/components/range-calendar/range-calendar-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-compact.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-body.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-head.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid-row.js +0 -1
- package/dist/components/range-calendar/range-calendar-grid.js +0 -1
- package/dist/components/range-calendar/range-calendar-head-cell.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.js +0 -1
- package/dist/components/range-calendar/range-calendar-header.vue.d.ts +0 -21
- package/dist/components/range-calendar/range-calendar-heading.js +0 -1
- package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +0 -22
- package/dist/components/range-calendar/range-calendar-next.js +0 -1
- package/dist/components/range-calendar/range-calendar-next.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-prev.js +0 -1
- package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +0 -24
- package/dist/components/range-calendar/range-calendar-root.js +0 -1
- package/dist/components/range-calendar/types.d.ts +0 -488
- package/dist/components/tags-input/tags-input-input.js +0 -1
- package/dist/components/tags-input/tags-input-input.vue.d.ts +0 -21
- package/dist/components/time-picker/context.d.ts +0 -9
- package/dist/components/time-picker/context.js +0 -1
- package/dist/components/time-picker/index.d.ts +0 -6
- package/dist/components/time-picker/index.js +0 -1
- package/dist/components/time-picker/time-picker-popup.js +0 -1
- package/dist/components/time-picker/time-picker-popup.vue.d.ts +0 -27
- package/dist/components/time-picker/time-picker-root.js +0 -1
- package/dist/components/time-picker/time-picker-root.vue.d.ts +0 -45
- package/dist/components/time-picker/time-picker-trigger.js +0 -1
- package/dist/components/time-picker/time-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-picker/types.d.ts +0 -224
- package/dist/components/time-range-picker/context.d.ts +0 -9
- package/dist/components/time-range-picker/context.js +0 -1
- package/dist/components/time-range-picker/index.d.ts +0 -7
- package/dist/components/time-range-picker/index.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +0 -31
- package/dist/components/time-range-picker/time-range-picker-popup.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +0 -30
- package/dist/components/time-range-picker/time-range-picker-root.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +0 -50
- package/dist/components/time-range-picker/time-range-picker-trigger.js +0 -1
- package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +0 -21
- package/dist/components/time-range-picker/types.d.ts +0 -304
- package/dist/components/year-picker/context.d.ts +0 -9
- package/dist/components/year-picker/context.js +0 -1
- package/dist/components/year-picker/index.d.ts +0 -6
- package/dist/components/year-picker/index.js +0 -1
- package/dist/components/year-picker/types.d.ts +0 -207
- package/dist/components/year-picker/year-picker-popup.js +0 -1
- package/dist/components/year-picker/year-picker-popup.vue.d.ts +0 -36
- package/dist/components/year-picker/year-picker-root.js +0 -1
- package/dist/components/year-picker/year-picker-root.vue.d.ts +0 -39
- package/dist/components/year-picker/year-picker-trigger.js +0 -1
- package/dist/components/year-picker/year-picker-trigger.vue.d.ts +0 -21
- package/dist/components/year-range-picker/context.d.ts +0 -9
- package/dist/components/year-range-picker/context.js +0 -1
- package/dist/components/year-range-picker/index.d.ts +0 -6
- package/dist/components/year-range-picker/index.js +0 -1
- package/dist/components/year-range-picker/types.d.ts +0 -239
- package/dist/components/year-range-picker/year-range-picker-popup.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +0 -39
- package/dist/components/year-range-picker/year-range-picker-root.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +0 -43
- package/dist/components/year-range-picker/year-range-picker-trigger.js +0 -1
- package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +0 -21
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/defineProperty.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPrimitive.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/toPropertyKey.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.127.0 → _@oxc-project_runtime@0.129.0}/helpers/typeof.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Direction, UiClass } from "../../types/common.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { BaseProps } from "../../types/vue.js";
|
|
3
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
|
+
import { ComputedRef, SVGAttributes } from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/progress/types.d.ts
|
|
6
7
|
/**
|
|
@@ -10,7 +11,7 @@ type ProgressState = 'indeterminate' | 'loading' | 'complete';
|
|
|
10
11
|
/**
|
|
11
12
|
* Properties for the ProgressRoot component.
|
|
12
13
|
*/
|
|
13
|
-
interface ProgressRootProps extends
|
|
14
|
+
interface ProgressRootProps extends PrimitiveWithBaseProps {
|
|
14
15
|
/**
|
|
15
16
|
* Reading direction of the component.
|
|
16
17
|
*/
|
|
@@ -40,49 +41,93 @@ type ProgressRootEmits = {
|
|
|
40
41
|
/**
|
|
41
42
|
* Properties for the ProgressIndicator component.
|
|
42
43
|
*/
|
|
43
|
-
interface ProgressIndicatorProps extends
|
|
44
|
+
interface ProgressIndicatorProps extends PrimitiveWithBaseProps {}
|
|
44
45
|
/**
|
|
45
|
-
* Properties for the
|
|
46
|
+
* Properties for the ProgressCircleSvg component.
|
|
46
47
|
*/
|
|
47
|
-
interface
|
|
48
|
+
interface ProgressCircleSvgProps extends BaseProps<SVGAttributes> {
|
|
48
49
|
/**
|
|
49
50
|
* Stroke width.
|
|
50
51
|
*/
|
|
51
52
|
strokeWidth?: number;
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
|
-
*
|
|
55
|
+
* Slot properties for the Progress component family.
|
|
55
56
|
*/
|
|
56
|
-
interface
|
|
57
|
+
interface ProgressSlotProps {
|
|
58
|
+
/**
|
|
59
|
+
* Current model value.
|
|
60
|
+
*/
|
|
61
|
+
modelValue: number | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Max used by the component.
|
|
64
|
+
*/
|
|
65
|
+
max: number;
|
|
66
|
+
/**
|
|
67
|
+
* Progress state used by the component.
|
|
68
|
+
*/
|
|
69
|
+
progressState: ProgressState;
|
|
70
|
+
/**
|
|
71
|
+
* Current progress percentage.
|
|
72
|
+
*/
|
|
73
|
+
valuePercent: number | null;
|
|
74
|
+
}
|
|
57
75
|
/**
|
|
58
|
-
*
|
|
76
|
+
* Properties for the ProgressCompact component.
|
|
59
77
|
*/
|
|
60
|
-
interface
|
|
78
|
+
interface ProgressCompactProps extends ProgressRootProps {
|
|
61
79
|
/**
|
|
62
|
-
*
|
|
80
|
+
* Properties forwarded to the indicator element.
|
|
63
81
|
*/
|
|
64
|
-
|
|
82
|
+
indicatorProps?: ProgressIndicatorProps;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Events for the ProgressCompact component.
|
|
86
|
+
*/
|
|
87
|
+
type ProgressCompactEmits = ProgressRootEmits;
|
|
88
|
+
/**
|
|
89
|
+
* Slots for the ProgressCompact component.
|
|
90
|
+
*/
|
|
91
|
+
type ProgressCompactSlots = {
|
|
65
92
|
/**
|
|
66
|
-
*
|
|
93
|
+
* Custom content for the default slot.
|
|
67
94
|
*/
|
|
68
|
-
|
|
95
|
+
default?: (props: ProgressSlotProps) => any;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Properties for the ProgressCircleCompact component.
|
|
99
|
+
*/
|
|
100
|
+
interface ProgressCircleCompactProps extends ProgressRootProps {
|
|
69
101
|
/**
|
|
70
|
-
*
|
|
102
|
+
* Stroke width.
|
|
71
103
|
*/
|
|
72
|
-
|
|
104
|
+
strokeWidth?: number;
|
|
73
105
|
/**
|
|
74
|
-
*
|
|
106
|
+
* Properties forwarded to the ProgressCircleSvg component.
|
|
75
107
|
*/
|
|
76
|
-
|
|
108
|
+
circleSvgProps?: ProgressCircleSvgProps;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Events for the ProgressCircleCompact component.
|
|
112
|
+
*/
|
|
113
|
+
type ProgressCircleCompactEmits = ProgressRootEmits;
|
|
114
|
+
/**
|
|
115
|
+
* Slots for the ProgressCircleCompact component.
|
|
116
|
+
*/
|
|
117
|
+
type ProgressCircleCompactSlots = {
|
|
77
118
|
/**
|
|
78
|
-
*
|
|
119
|
+
* Custom content for the default slot.
|
|
79
120
|
*/
|
|
80
|
-
|
|
81
|
-
}
|
|
121
|
+
default?: (props: ProgressSlotProps) => any;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Properties for the ProgressProvider component.
|
|
125
|
+
*/
|
|
126
|
+
interface ProgressProviderProps extends ProgressOptions {}
|
|
82
127
|
/**
|
|
83
128
|
* Available UI slots for the Progress component.
|
|
84
129
|
*/
|
|
85
|
-
type ProgressUiSlot = 'root' | 'indicator' | '
|
|
130
|
+
type ProgressUiSlot = 'root' | 'indicator' | 'circleSvg' | 'track' | 'label';
|
|
86
131
|
/**
|
|
87
132
|
* UI class overrides for the Progress component.
|
|
88
133
|
*/
|
|
@@ -125,4 +170,4 @@ interface ProgressOptions {
|
|
|
125
170
|
trickleSpeed?: number;
|
|
126
171
|
}
|
|
127
172
|
//#endregion
|
|
128
|
-
export {
|
|
173
|
+
export { ProgressCircleCompactEmits, ProgressCircleCompactProps, ProgressCircleCompactSlots, ProgressCircleSvgProps, ProgressCompactEmits, ProgressCompactProps, ProgressCompactSlots, ProgressIndicatorProps, ProgressOptions, ProgressProviderProps, ProgressProviderUiSlot, ProgressRootEmits, ProgressRootProps, ProgressSlotProps, ProgressState, ProgressUi, ProgressUiSlot };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
-
import { RadioGroupUiSlot } from "./types.js";
|
|
3
|
+
import { RadioGroupCardUiSlot, RadioGroupUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/context.d.ts
|
|
7
7
|
declare const provideRadioGroupUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: UseUiConsumer<RadioGroupUiSlot>;
|
|
8
|
+
declare const provideRadioGroupCardUi: (ui: _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>, useRadioGroupCardUi: UseUiConsumer<RadioGroupCardUiSlot>;
|
|
8
9
|
//#endregion
|
|
9
|
-
export { provideRadioGroupUi };
|
|
10
|
+
export { provideRadioGroupCardUi, provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import"../../shared/index.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r,shallowRef as i}from"vue";const[a,o]=t(`RadioGroupRoot`),[s,c]=t(`RadioGroupItem`,t=>{let n=r(()=>e(t.checked.value)),a=i(``),o=e=>{a.value=e};return{...t,dataState:n,controlId:a,initControlId:o}}),[l,u]=n(`RadioGroupUi`),[d,f]=n(`RadioGroupCardUi`,e=>(l(e),e));export{d as provideRadioGroupCardUi,s as provideRadioGroupItemContext,a as provideRadioGroupRootContext,l as provideRadioGroupUi,f as useRadioGroupCardUi,c as useRadioGroupItemContext,o as useRadioGroupRootContext,u as useRadioGroupUi};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
|
-
import { RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent } from "./types.js";
|
|
3
|
-
import { _default as _default$
|
|
4
|
-
import { _default } from "./radio-group-compact.vue.js";
|
|
5
|
-
import { _default as _default$
|
|
6
|
-
import { _default as _default$
|
|
7
|
-
import { _default as _default$2 } from "./radio-group-
|
|
8
|
-
import { _default as _default$
|
|
9
|
-
import {
|
|
10
|
-
|
|
2
|
+
import { RadioGroupCardCompactEmits, RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData, RadioGroupCardUi, RadioGroupCardUiSlot, RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent } from "./types.js";
|
|
3
|
+
import { _default as _default$1 } from "./radio-group-compact.vue.js";
|
|
4
|
+
import { _default } from "./radio-group-card-compact.vue.js";
|
|
5
|
+
import { _default as _default$6 } from "./radio-group-root.vue.js";
|
|
6
|
+
import { _default as _default$4 } from "./radio-group-item.vue.js";
|
|
7
|
+
import { _default as _default$2 } from "./radio-group-control.vue.js";
|
|
8
|
+
import { _default as _default$3 } from "./radio-group-indicator.vue.js";
|
|
9
|
+
import { _default as _default$5 } from "./radio-group-label.vue.js";
|
|
10
|
+
import { provideRadioGroupCardUi, provideRadioGroupUi } from "./context.js";
|
|
11
|
+
export { _default as RadioGroupCardCompact, type RadioGroupCardCompactEmits, type RadioGroupCardCompactProps, type RadioGroupCardCompactSlots, type RadioGroupCardOptionData, type RadioGroupCardUi, type RadioGroupCardUiSlot, _default$1 as RadioGroupCompact, type RadioGroupCompactEmits, type RadioGroupCompactProps, _default$2 as RadioGroupControl, type RadioGroupControlProps, _default$3 as RadioGroupIndicator, type RadioGroupIndicatorProps, _default$4 as RadioGroupItem, type RadioGroupItemEmits, type RadioGroupItemProps, _default$5 as RadioGroupLabel, type LabelProps as RadioGroupLabelProps, type RadioGroupOptionData, _default$6 as RadioGroupRoot, type RadioGroupRootEmits, type RadioGroupRootProps, type RadioGroupUi, type RadioGroupUiSlot, type RadioSelectEvent, provideRadioGroupCardUi, provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideRadioGroupUi as
|
|
1
|
+
import{provideRadioGroupCardUi as e,provideRadioGroupUi as t}from"./context.js";import n from"./radio-group-control.js";import r from"./radio-group-indicator.js";import i from"./radio-group-item.js";import a from"./radio-group-label.js";import o from"./radio-group-root.js";import s from"./radio-group-compact.js";import c from"./radio-group-card-compact.js";export{c as RadioGroupCardCompact,s as RadioGroupCompact,n as RadioGroupControl,r as RadioGroupIndicator,i as RadioGroupItem,a as RadioGroupLabel,o as RadioGroupRoot,e as provideRadioGroupCardUi,t as provideRadioGroupUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import{useRadioGroupCardUi as n}from"./context.js";import r from"./radio-group-control.js";import i from"./radio-group-indicator.js";import a from"./radio-group-item.js";import o from"./radio-group-label.js";import s from"./radio-group-root.js";import{Fragment as c,Transition as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createTextVNode as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,openBlock as y,renderList as b,renderSlot as x,toDisplayString as S,unref as C,useId as w,useSlots as T,withCtx as E}from"vue";const D=g({name:`RadioGroupCardCompact`,__name:`radio-group-card-compact`,props:{contentProps:{},textContentProps:{},descriptionProps:{},items:{},itemProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(g,{emit:D}){let O=g,k=D,A=T(),j=e(O,[`items`,`itemProps`,`controlProps`,`indicatorProps`,`labelProps`]),M=n(),N=w(),P=e=>String(e.value),F=e=>`${O.itemProps?.id||`radio-${N}`}-${e}`;return(e,n)=>(y(),u(s,_(C(j),{"onUpdate:modelValue":n[0]||(n[0]=e=>k(`update:modelValue`,e))}),{default:E(()=>[(y(!0),f(c,null,b(g.items,(n,s)=>(y(),u(a,_({key:P(n)},{ref_for:!0},g.itemProps,{value:n.value,disabled:g.disabled||n.disabled}),{default:E(()=>[p(`div`,_({ref_for:!0},g.contentProps,{class:C(M).content}),[h(t,{icon:n.icon,class:v(C(M).icon)},null,8,[`icon`,`class`]),p(`div`,_({ref_for:!0},g.textContentProps,{class:C(M).textContent}),[h(o,_({ref_for:!0},g.labelProps),{default:E(()=>[m(S(n.label),1)]),_:2},1040),A.description||n.description?(y(),f(`p`,_({key:0,ref_for:!0},g.descriptionProps,{class:C(M).description}),[x(e.$slots,`description`,{item:n},()=>[m(S(n.description),1)])],16)):d(`v-if`,!0)],16)],16),h(r,_({ref_for:!0},g.controlProps,{id:F(s)}),{default:E(()=>[h(l,{"enter-active-class":`soybean-headless-transition-all-150`,"enter-from-class":`soybean-headless-opacity-0 soybean-headless-scale-0`},{default:E(()=>[h(i,_({ref_for:!0},g.indicatorProps),null,16)]),_:1})]),_:1},16,[`id`])]),_:2},1040,[`value`,`disabled`]))),128))]),_:3},16))}});export{D as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/radio-group/radio-group-card-compact.vue.d.ts
|
|
5
|
+
declare const __VLS_export: <T extends RadioGroupCardOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCardCompactProps<T> & {
|
|
7
|
+
"onUpdate:modelValue"?: ((payload: T["value"] | null) => any) | undefined;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: RadioGroupCardCompactSlots<T>;
|
|
14
|
+
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
15
|
+
}>) => _$vue.VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./radio-group-
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./radio-group-control.js";import n from"./radio-group-indicator.js";import r from"./radio-group-item.js";import i from"./radio-group-label.js";import a from"./radio-group-root.js";import{Fragment as o,Transition as s,createBlock as c,createElementBlock as l,createTextVNode as u,createVNode as d,defineComponent as f,mergeProps as p,openBlock as m,renderList as h,toDisplayString as g,unref as _,useId as v,withCtx as y}from"vue";const b=f({name:`RadioGroupCompact`,__name:`radio-group-compact`,props:{items:{},itemProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(f,{emit:b}){let x=f,S=b,C=e(x,[`items`,`itemProps`,`controlProps`,`indicatorProps`,`labelProps`]),w=v(),T=e=>String(e.value),E=e=>`${x.itemProps?.id||`radio-${w}`}-${e}`;return(e,v)=>(m(),c(a,p(_(C),{"onUpdate:modelValue":v[0]||(v[0]=e=>S(`update:modelValue`,e))}),{default:y(()=>[(m(!0),l(o,null,h(f.items,(e,a)=>(m(),c(r,p({key:T(e)},{ref_for:!0},f.itemProps,{value:e.value,disabled:f.disabled||e.disabled}),{default:y(()=>[d(t,p({ref_for:!0},f.controlProps,{id:E(a)}),{default:y(()=>[d(s,{"enter-active-class":`soybean-headless-transition-all-150`,"enter-from-class":`soybean-headless-opacity-0 soybean-headless-scale-0`},{default:y(()=>[d(n,p({ref_for:!0},f.indicatorProps),null,16)]),_:1})]),_:1},16,[`id`]),d(i,p({ref_for:!0},f.labelProps),{default:y(()=>[u(g(e.label),1)]),_:2},1040)]),_:2},1040,[`value`,`disabled`]))),128))]),_:1},16))}});export{b as default};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
1
|
import { RadioGroupCompactProps, RadioGroupOptionData } from "./types.js";
|
|
3
2
|
import * as _$vue from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/components/radio-group/radio-group-compact.vue.d.ts
|
|
6
|
-
declare const __VLS_export: <T extends
|
|
7
|
-
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCompactProps<T
|
|
8
|
-
"onUpdate:modelValue"?: ((payload:
|
|
5
|
+
declare const __VLS_export: <T extends RadioGroupOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupCompactProps<T> & {
|
|
7
|
+
"onUpdate:modelValue"?: ((payload: T["value"] | null) => any) | undefined;
|
|
9
8
|
}> & (typeof globalThis extends {
|
|
10
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
10
|
} ? P : {});
|
|
12
11
|
expose: (exposed: {}) => void;
|
|
13
12
|
attrs: any;
|
|
14
13
|
slots: {};
|
|
15
|
-
emit: (evt: "update:modelValue", payload:
|
|
14
|
+
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
16
15
|
}>) => _$vue.VNode & {
|
|
17
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAriaLabel as e}from"../../shared/dom.js";import{isFormControl as t}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import"../../shared/index.js";import r from"../roving-focus/roving-focus-item.js";import"../roving-focus/index.js";import{useRadioGroupItemContext as
|
|
1
|
+
import{getAriaLabel as e}from"../../shared/dom.js";import{isFormControl as t}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import"../../shared/index.js";import r from"../button/button.js";import i from"../roving-focus/roving-focus-item.js";import"../roving-focus/index.js";import{useRadioGroupItemContext as a,useRadioGroupRootContext as o,useRadioGroupUi as s}from"./context.js";import{computed as c,createBlock as l,createVNode as u,defineComponent as d,mergeProps as f,onBeforeMount as p,onMounted as m,openBlock as h,renderSlot as g,unref as _,useAttrs as v,useTemplateRef as y,watchEffect as b,withCtx as x,withKeys as S,withModifiers as C}from"vue";const w=d({name:`RadioGroupControl`,__name:`radio-group-control`,props:{id:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(d){let w=d,T=v(),E=s(`control`),D=y(`controlElement`),O=o(`RadioGroupControl`),{value:k,disabled:A,name:j,required:M,checked:N,dataState:P,onSelect:F,initControlId:I}=a(`RadioGroupControl`),L=c(()=>t(D.value)),R=c(()=>e(D.value,w.id,T[`aria-label`])),z=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],B=!1;function V(e){z.includes(e.key)&&(B=!0)}function H(){B=!1}function U(e){n(`radio.select`,t=>{F(t),!t?.defaultPrevented&&(O.modelValue.value=k.value,L.value&&e.stopPropagation())},{originalEvent:e,value:k.value})}function W(){setTimeout(()=>{B&&D.value?.click()},0)}return b(()=>{w.id&&I(w.id)}),m(()=>{document.addEventListener(`keydown`,V),document.addEventListener(`keyup`,H)}),p(()=>{document.removeEventListener(`keydown`,V),document.removeEventListener(`keyup`,H)}),(e,t)=>(h(),l(_(i),{"as-child":``,checked:_(N),focusable:!_(A),active:_(N)},{default:x(()=>[u(r,f({ref_key:`controlElement`,ref:D},w,{"data-soybean-radio-group-control":``,class:_(E),role:`radio`,disabled:_(A),"aria-checked":_(N),"aria-label":R.value,"data-state":_(P),value:String(_(k)),required:_(M),name:_(j),onClick:C(U,[`stop`]),onKeydown:t[0]||(t[0]=S(C(()=>{},[`prevent`]),[`enter`])),onFocus:W}),{default:x(()=>[g(e.$slots,`default`,{checked:_(N),required:_(M),disabled:_(A)})]),_:3},16,[`class`,`disabled`,`aria-checked`,`aria-label`,`data-state`,`value`,`required`,`name`])]),_:3},8,[`checked`,`focusable`,`active`]))}});export{w as default};
|
|
@@ -2,13 +2,13 @@ import { RadioGroupControlProps } from "./types.js";
|
|
|
2
2
|
import * as _$vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group/radio-group-control.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_20: {
|
|
6
6
|
checked: boolean;
|
|
7
7
|
required: boolean | undefined;
|
|
8
8
|
disabled: boolean | undefined;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_20) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: _$vue.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useRadioGroupItemContext as i,useRadioGroupUi as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,withCtx as h}from"vue";const g=l({name:`RadioGroupIndicator`,__name:`radio-group-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useRadioGroupItemContext as i,useRadioGroupUi as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,withCtx as h}from"vue";const g=l({name:`RadioGroupIndicator`,__name:`radio-group-indicator`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:`span`}},setup(l){let g=l,_=a(`indicator`),[v,y]=t(),{checked:b,disabled:x}=i(`RadioGroupIndicator`),S=g.forceMount?p(!0):n(v,()=>b.value===!0),C=o(()=>e(b.value));return(e,t)=>m(S)?(d(),s(m(r),{key:0,ref:m(y),as:l.as,"as-child":l.asChild,"data-soybean-radio-group-indicator":``,class:u(m(_)),"data-state":C.value,"data-disabled":m(x)?``:void 0},{default:h(()=>[f(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-state`,`data-disabled`])):c(`v-if`,!0)}});export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import r from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g}from"vue";const _=[`data-state`],v=d({name:`RadioGroupItem`,__name:`radio-group-item`,props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`select`],setup(d,{emit:v}){let y=d,b=v,x=o(`item`),S=a(`RadioGroupItem`),C=g(`itemElement`),w=s(()=>t(C.value)),T=s(()=>S.disabled.value||y.disabled),E=s(()=>S.required.value||y.required),D=s(()=>!e(S.modelValue.value)&&S.modelValue.value===y.value),{dataState:O}=i({...n(y,[`name`,`required`,`value`,`disabled`]),checked:D,onSelect:e=>{b(`select`,e)}});return(e,t)=>(p(),u(`div`,{ref_key:`itemElement`,ref:C,class:f(h(x)),"data-state":h(O)},[m(e.$slots,`default`,{checked:D.value}),w.value&&d.name?(p(),c(h(r),{key:0,type:`radio`,tabindex:`-1`,value:d.value,checked:D.value,name:d.name,disabled:T.value,required:E.value},null,8,[`value`,`checked`,`name`,`disabled`,`required`])):l(`v-if`,!0)],10,_))}});export{v as default};
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import r from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g}from"vue";const _=[`data-state`],v=d({name:`RadioGroupItem`,__name:`radio-group-item`,props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`select`],setup(d,{emit:v}){let y=d,b=v,x=o(`item`),S=a(`RadioGroupItem`),C=g(`itemElement`),w=s(()=>t(C.value)),T=s(()=>S.disabled.value||y.disabled),E=s(()=>S.required.value||y.required),D=s(()=>!e(S.modelValue.value)&&S.modelValue.value===y.value),{dataState:O}=i({...n(y,[`name`,`required`,`value`,`disabled`]),checked:D,onSelect:e=>{b(`select`,e)}});return(e,t)=>(p(),u(`div`,{ref_key:`itemElement`,ref:C,"data-soybean-radio-group-item":``,class:f(h(x)),"data-state":h(O)},[m(e.$slots,`default`,{checked:D.value}),w.value&&d.name?(p(),c(h(r),{key:0,type:`radio`,tabindex:`-1`,value:d.value,checked:D.value,name:d.name,disabled:T.value,required:E.value},null,8,[`value`,`checked`,`name`,`disabled`,`required`])):l(`v-if`,!0)],10,_))}});export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../label/label.js";import"../label/index.js";import{useRadioGroupItemContext as t,useRadioGroupUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`RadioGroupLabel`,__name:`radio-group-label`,props:{for:{}},setup(a){let d=a,f=n(`label`),{controlId:p}=t(`RadioGroupLabel`),m=r(()=>d.for||p.value);return(t,n)=>(s(),i(l(e),{for:m.value,class:o(l(f))},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
1
|
+
import e from"../label/label.js";import"../label/index.js";import{useRadioGroupItemContext as t,useRadioGroupUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`RadioGroupLabel`,__name:`radio-group-label`,props:{for:{}},setup(a){let d=a,f=n(`label`),{controlId:p}=t(`RadioGroupLabel`),m=r(()=>d.for||p.value);return(t,n)=>(s(),i(l(e),{"data-soybean-radio-group-label":``,for:m.value,class:o(l(f))},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{isFormControl as e,transformPropsToContext as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import r from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import i from"../roving-focus/roving-focus-group.js";import"../roving-focus/index.js";import{provideRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementVNode as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g,withCtx as _}from"vue";const v=[`data-disabled`,`aria-orientation`,`aria-required`],y=d({name:`RadioGroupRoot`,__name:`radio-group-root`,props:{modelValue:{default:void 0},defaultValue:{},disabled:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},name:{},required:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(d,{emit:y}){let b=d,x=y,S=o(`root`),C=g(`rootElement`),w=n(()=>b.modelValue,e=>{x(`update:modelValue`,e)},b.defaultValue??null),T=s(()=>e(C.value));return a({...t(b,[`disabled`,`orientation`,`dir`,`loop`,`name`,`required`]),modelValue:w}),(e,t)=>(p(),c(h(i),{"as-child":``,orientation:d.orientation,dir:d.dir,loop:d.loop},{default:_(()=>[u(`div`,{ref_key:`rootElement`,ref:C,"data-soybean-radio-group-root":``,class:f(h(S)),role:`radiogroup`,"data-disabled":d.disabled?``:void 0,"aria-orientation":d.orientation,"aria-required":d.required},[m(e.$slots,`default`,{modelValue:h(w)}),T.value&&d.name?(p(),c(h(r),{key:0,required:d.required,disabled:d.disabled,value:h(w),name:d.name},null,8,[`required`,`disabled`,`value`,`name`])):l(`v-if`,!0)],10,v)]),_:3},8,[`orientation`,`dir`,`loop`]))}});export{y as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DefinedWithBooleanValue } from "../../types/common.js";
|
|
2
2
|
import { RadioGroupRootProps } from "./types.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio-group/radio-group-root.vue.d.ts
|
|
6
|
-
declare const __VLS_export: <T extends
|
|
6
|
+
declare const __VLS_export: <T extends DefinedWithBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
|
|
8
|
-
"onUpdate:modelValue"?: ((payload:
|
|
8
|
+
"onUpdate:modelValue"?: ((payload: T | null) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
11
|
} ? P : {});
|
|
@@ -13,10 +13,10 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {
|
|
15
15
|
default?: (props: {
|
|
16
|
-
modelValue: T | undefined;
|
|
16
|
+
modelValue: ((T | undefined) & Exclude<T, undefined>) | null;
|
|
17
17
|
}) => any;
|
|
18
18
|
};
|
|
19
|
-
emit: (evt: "update:modelValue", payload:
|
|
19
|
+
emit: (evt: "update:modelValue", payload: T | null) => void;
|
|
20
20
|
}>) => _$vue.VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataOrientation, DefinedWithBooleanValue, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BaseProps } from "../../types/vue.js";
|
|
4
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
5
|
+
import { ButtonProps } from "../button/types.js";
|
|
6
|
+
import { IconValue } from "../_icon/types.js";
|
|
4
7
|
import { LabelProps } from "../label/types.js";
|
|
5
|
-
import {
|
|
8
|
+
import { ComputedRef, ShallowRef } from "vue";
|
|
6
9
|
|
|
7
10
|
//#region src/components/radio-group/types.d.ts
|
|
8
11
|
/**
|
|
9
12
|
* Properties for the RadioGroupRoot component.
|
|
10
13
|
*/
|
|
11
|
-
interface RadioGroupRootProps<T extends
|
|
14
|
+
interface RadioGroupRootProps<T extends DefinedWithBooleanValue = DefinedWithBooleanValue> extends FormFieldCommonProps, BaseProps {
|
|
12
15
|
/** The controlled value of the radio item to check. Can be bound as `v-model`. */
|
|
13
|
-
modelValue?: T;
|
|
16
|
+
modelValue?: T | null;
|
|
14
17
|
/**
|
|
15
18
|
* The value of the radio item that should be checked when initially rendered. Use when you do not need to control the
|
|
16
19
|
* state of the radio items.
|
|
@@ -28,15 +31,15 @@ interface RadioGroupRootProps<T extends AcceptableBooleanValue = AcceptableBoole
|
|
|
28
31
|
/**
|
|
29
32
|
* Events for the RadioGroupRoot component.
|
|
30
33
|
*/
|
|
31
|
-
type RadioGroupRootEmits<T extends
|
|
32
|
-
/** Event handler called when the radio group value changes */'update:modelValue': [payload:
|
|
34
|
+
type RadioGroupRootEmits<T extends DefinedWithBooleanValue> = {
|
|
35
|
+
/** Event handler called when the radio group value changes */'update:modelValue': [payload: T | null];
|
|
33
36
|
};
|
|
34
37
|
/**
|
|
35
38
|
* Properties for the RadioGroupItem component.
|
|
36
39
|
*/
|
|
37
|
-
interface RadioGroupItemProps extends FormFieldCommonProps,
|
|
40
|
+
interface RadioGroupItemProps extends FormFieldCommonProps, BaseProps {
|
|
38
41
|
/** The value given as data when submitted with a `name`. */
|
|
39
|
-
value:
|
|
42
|
+
value: DefinedWithBooleanValue;
|
|
40
43
|
/** When `true`, prevents the user from interacting with the radio item. */
|
|
41
44
|
disabled?: boolean;
|
|
42
45
|
}
|
|
@@ -51,7 +54,7 @@ type RadioSelectEvent = CustomEvent<{
|
|
|
51
54
|
/**
|
|
52
55
|
* Value associated with the current item.
|
|
53
56
|
*/
|
|
54
|
-
value:
|
|
57
|
+
value: DefinedWithBooleanValue;
|
|
55
58
|
}>;
|
|
56
59
|
/**
|
|
57
60
|
* Events for the RadioGroupItem component.
|
|
@@ -62,22 +65,22 @@ type RadioGroupItemEmits = {
|
|
|
62
65
|
/**
|
|
63
66
|
* Properties for the RadioGroupControl component.
|
|
64
67
|
*/
|
|
65
|
-
interface RadioGroupControlProps extends
|
|
68
|
+
interface RadioGroupControlProps extends ButtonProps {
|
|
66
69
|
/** Id of the element */
|
|
67
70
|
id?: string;
|
|
68
71
|
}
|
|
69
72
|
/**
|
|
70
73
|
* Properties for the RadioGroupIndicator component.
|
|
71
74
|
*/
|
|
72
|
-
interface RadioGroupIndicatorProps extends
|
|
75
|
+
interface RadioGroupIndicatorProps extends ForceMountProps, PrimitiveWithBaseProps {}
|
|
73
76
|
/**
|
|
74
77
|
* Option data for the RadioGroup component.
|
|
75
78
|
*/
|
|
76
|
-
interface RadioGroupOptionData<T extends
|
|
79
|
+
interface RadioGroupOptionData<T extends DefinedWithBooleanValue = DefinedWithBooleanValue> {
|
|
77
80
|
/**
|
|
78
81
|
* Value associated with the current item.
|
|
79
82
|
*/
|
|
80
|
-
value:
|
|
83
|
+
value: T;
|
|
81
84
|
/**
|
|
82
85
|
* Label text rendered by the component.
|
|
83
86
|
*/
|
|
@@ -90,11 +93,11 @@ interface RadioGroupOptionData<T extends AcceptableBooleanValue = AcceptableBool
|
|
|
90
93
|
/**
|
|
91
94
|
* Properties for the RadioGroupCompact component.
|
|
92
95
|
*/
|
|
93
|
-
interface RadioGroupCompactProps<T extends
|
|
96
|
+
interface RadioGroupCompactProps<T extends RadioGroupOptionData = RadioGroupOptionData> extends RadioGroupRootProps<T['value']> {
|
|
94
97
|
/**
|
|
95
98
|
* Items rendered by the component.
|
|
96
99
|
*/
|
|
97
|
-
items:
|
|
100
|
+
items: T[];
|
|
98
101
|
/**
|
|
99
102
|
* Properties forwarded to the item element.
|
|
100
103
|
*/
|
|
@@ -115,7 +118,52 @@ interface RadioGroupCompactProps<T extends AcceptableBooleanValue = AcceptableBo
|
|
|
115
118
|
/**
|
|
116
119
|
* Events for the RadioGroupCompact component.
|
|
117
120
|
*/
|
|
118
|
-
type RadioGroupCompactEmits<T extends
|
|
121
|
+
type RadioGroupCompactEmits<T extends DefinedWithBooleanValue = DefinedWithBooleanValue> = RadioGroupRootEmits<T>;
|
|
122
|
+
/**
|
|
123
|
+
* Option data for the RadioGroupCard component.
|
|
124
|
+
*/
|
|
125
|
+
interface RadioGroupCardOptionData<T extends DefinedWithBooleanValue = DefinedWithBooleanValue> extends RadioGroupOptionData<T> {
|
|
126
|
+
/**
|
|
127
|
+
* Icon rendered by the component.
|
|
128
|
+
*/
|
|
129
|
+
icon?: IconValue;
|
|
130
|
+
/**
|
|
131
|
+
* Description text rendered by the component.
|
|
132
|
+
*/
|
|
133
|
+
description?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Properties for the RadioGroupCard component.
|
|
137
|
+
*/
|
|
138
|
+
interface RadioGroupCardCompactProps<T extends RadioGroupCardOptionData = RadioGroupCardOptionData> extends RadioGroupCompactProps<T> {
|
|
139
|
+
/**
|
|
140
|
+
* Properties forwarded to the content element.
|
|
141
|
+
*/
|
|
142
|
+
contentProps?: BaseProps;
|
|
143
|
+
/**
|
|
144
|
+
* Properties forwarded to the text content element.
|
|
145
|
+
*/
|
|
146
|
+
textContentProps?: BaseProps;
|
|
147
|
+
/**
|
|
148
|
+
* Properties forwarded to the description element.
|
|
149
|
+
*/
|
|
150
|
+
descriptionProps?: BaseProps;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Events for the RadioGroupCardCompact component.
|
|
154
|
+
*/
|
|
155
|
+
type RadioGroupCardCompactEmits<T extends DefinedWithBooleanValue = DefinedWithBooleanValue> = RadioGroupCompactEmits<T>;
|
|
156
|
+
/**
|
|
157
|
+
* Slots for the RadioGroupCompact component.
|
|
158
|
+
*/
|
|
159
|
+
type RadioGroupCardCompactSlots<T extends RadioGroupCardOptionData = RadioGroupCardOptionData> = {
|
|
160
|
+
/**
|
|
161
|
+
* Slot for rendering custom description content within the radio card.
|
|
162
|
+
*/
|
|
163
|
+
description?: (props: {
|
|
164
|
+
item: T;
|
|
165
|
+
}) => any;
|
|
166
|
+
};
|
|
119
167
|
/**
|
|
120
168
|
* Available UI slots for the RadioGroup component.
|
|
121
169
|
*/
|
|
@@ -124,5 +172,13 @@ type RadioGroupUiSlot = 'root' | 'item' | 'indicator' | 'label' | 'control';
|
|
|
124
172
|
* UI class overrides for the RadioGroup component.
|
|
125
173
|
*/
|
|
126
174
|
type RadioGroupUi = UiClass<RadioGroupUiSlot>;
|
|
175
|
+
/**
|
|
176
|
+
* Available UI slots for the RadioGroupCard component.
|
|
177
|
+
*/
|
|
178
|
+
type RadioGroupCardUiSlot = RadioGroupUiSlot | 'content' | 'textContent' | 'description' | 'icon';
|
|
179
|
+
/**
|
|
180
|
+
* UI class overrides for the RadioGroupCard component.
|
|
181
|
+
*/
|
|
182
|
+
type RadioGroupCardUi = UiClass<RadioGroupCardUiSlot>;
|
|
127
183
|
//#endregion
|
|
128
|
-
export { RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
184
|
+
export { RadioGroupCardCompactEmits, RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData, RadioGroupCardUi, RadioGroupCardUiSlot, RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{wrapArray as t}from"../../shared/object.js";import{isElementHasAttribute as n}from"../../shared/dom.js";import{getFocusIntent as r,tryFocusFirst as i}from"../../shared/focus.js";import"../../
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{wrapArray as t}from"../../shared/object.js";import{isElementHasAttribute as n}from"../../shared/dom.js";import{getFocusIntent as r,tryFocusFirst as i}from"../../shared/focus.js";import{useContext as a}from"../../composables/use-context.js";import{useDirection as o}from"../config-provider/context.js";import"../../shared/index.js";import{useCollection as s}from"../../composables/use-collection.js";import{useControllableState as c}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{computed as l,nextTick as u,onBeforeUnmount as d,onMounted as f,shallowRef as p,useId as m}from"vue";const h={bubbles:!1,cancelable:!0},{provideCollectionContext:g,useCollectionContext:_,useCollectionItem:v}=s(`RovingFocusGroup`),[y,b]=a(`RovingFocusGroup`,e=>{let{onContainerElementChange:t,getOrderedItems:r,getOrderedElements:a}=g(),{loop:s,orientation:u,defaultCurrentTabStopId:d,preventScrollOnEntryFocus:f,onEntryFocus:m,onUpdateCurrentTabStopId:_}=e,v=o(e.dir),y=c(()=>e.currentTabStopId.value,_,d.value??``),b=e=>{y.value=e},x=p(!1),S=p(!1),C=()=>{x.value=!0},w=p(0);return{onContainerElementChange:t,loop:s,dir:v,orientation:u,currentTabStopId:y,onItemFocus:b,onItemShiftTab:C,onFocusableItemAdd:()=>{w.value++},onFocusableItemRemove:()=>{w.value--},rovingFocusGroupProps:l(()=>({tabindex:x.value||w.value===0?`-1`:`0`,"data-orientation":u.value,dir:v.value,"data-loop":s.value?``:void 0,style:`outline: none`})),rovingFocusGroupListeners:{mousedown:()=>{S.value=!0},mouseup:()=>{setTimeout(()=>{S.value=!1},1)},focus:e=>{let t=!S.value;if(!e.currentTarget||e.target!==e.currentTarget||!t||x.value){S.value=!1;return}let r=new CustomEvent(`rovingFocusGroup.onEntryFocus`,h);if(e.currentTarget.dispatchEvent(r),m?.(r),r.defaultPrevented)return;let o=a();i([o.find(e=>n(e,`active`)),o.find(e=>n(e,`highlighted`)),o.find(e=>e.id===y.value),...o].filter(Boolean),f.value)},blur:()=>{x.value=!1}},getOrderedItems:r}});function x(n={}){let{getOrderedElements:a}=_(`RovingFocusItem`),{setItemElement:o}=v(n.itemData),{currentTabStopId:s,orientation:c,dir:p,loop:h,onItemFocus:g,onItemShiftTab:y,onFocusableItemAdd:x,onFocusableItemRemove:S}=b(`RovingFocusItem`),{active:C,allowShiftKey:w}=n,T=l(()=>n.tabStopId?.value??m()),E=l(()=>n.focusable?.value??!0),D=l(()=>s.value===T.value),O=n=>{if(n.key===`Tab`&&n.shiftKey){y();return}if(n.target!==n.currentTarget)return;let o=r(n,c.value,p.value);if(e(o)||n.metaKey||n.ctrlKey||n.altKey||!w?.value&&n.shiftKey)return;n.preventDefault();let s=a();if(o===`last`&&s.reverse(),o===`prev`||o===`next`){o===`prev`&&s.reverse();let e=s.indexOf(n.currentTarget);s=h.value?t(s,e+1):s.slice(e+1)}u(()=>{i(s)})},k=l(()=>({tabindex:D.value?`0`:`-1`,"data-soybean-collection-item":``,"data-orientation":c.value,"data-active":C?.value?``:void 0,"data-disabled":E.value?void 0:``})),A={mousedown:e=>{E.value?g(T.value):e.preventDefault()},focus:()=>{g(T.value)},keydown:O};return f(()=>{x()}),d(()=>{S()}),{setItemElement:o,rovingFocusItemProps:k,rovingFocusItemListeners:A}}export{y as provideRovingFocusGroupContext,v as useCollectionItem,x as useRovingFocusItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideRovingFocusGroupContext as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,toHandlers as l,unref as u,withCtx as d}from"vue";const f=a({name:`RovingFocusGroup`,__name:`roving-focus-group`,props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`entryFocus`,`update:currentTabStopId`],setup(a,{expose:f,emit:p}){let m=a,h=p,{onContainerElementChange:g,rovingFocusGroupProps:_,rovingFocusGroupListeners:v,getOrderedItems:y}=r({...e(m,[`loop`,`orientation`,`dir`,`currentTabStopId`,`defaultCurrentTabStopId`,`preventScrollOnEntryFocus`]),onUpdateCurrentTabStopId:e=>{h(`update:currentTabStopId`,e)},onEntryFocus:e=>{h(`entryFocus`,e)}}),[b,x]=t(g);return f({getItems:y}),(e,t)=>(s(),i(u(n),o(u(_),{ref:u(x),as:a.as,"as-child":a.asChild},l(u(v))),{default:d(()=>[c(e.$slots,`default`)]),_:3},16,[`as`,`as-child`]))}});export{f as default};
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{provideRovingFocusGroupContext as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,toHandlers as l,unref as u,withCtx as d}from"vue";const f=a({name:`RovingFocusGroup`,__name:`roving-focus-group`,props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`entryFocus`,`update:currentTabStopId`],setup(a,{expose:f,emit:p}){let m=a,h=p,{onContainerElementChange:g,rovingFocusGroupProps:_,rovingFocusGroupListeners:v,getOrderedItems:y}=r({...e(m,[`loop`,`orientation`,`dir`,`currentTabStopId`,`defaultCurrentTabStopId`,`preventScrollOnEntryFocus`]),onUpdateCurrentTabStopId:e=>{h(`update:currentTabStopId`,e)},onEntryFocus:e=>{h(`entryFocus`,e)}}),[b,x]=t(g);return f({getItems:y}),(e,t)=>(s(),i(u(n),o(u(_),{ref:u(x),as:a.as,"as-child":a.asChild,"data-soybean-roving-focus-group":``},l(u(v))),{default:d(()=>[c(e.$slots,`default`)]),_:3},16,[`as`,`as-child`]))}});export{f as default};
|
|
@@ -18,8 +18,8 @@ declare const __VLS_base: _$vue.DefineComponent<RovingFocusGroupProps, {
|
|
|
18
18
|
"onUpdate:currentTabStopId"?: ((value: string | null | undefined) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
orientation: DataOrientation;
|
|
21
|
-
preventScrollOnEntryFocus: boolean;
|
|
22
21
|
loop: boolean;
|
|
22
|
+
preventScrollOnEntryFocus: boolean;
|
|
23
23
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useRovingFocusItem as n}from"./context.js";import{createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,toHandlers as c,unref as l,withCtx as u}from"vue";const d=i({name:`RovingFocusItem`,__name:`roving-focus-item`,props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean},allowShiftKey:{type:Boolean},itemData:{},asChild:{type:Boolean},as:{}},setup(i){let{setItemElement:d,rovingFocusItemProps:f,rovingFocusItemListeners:p}=n(e(i,[`tabStopId`,`focusable`,`active`,`allowShiftKey`,`itemData`]));return(e,n)=>(o(),r(l(t),a(l(f),{ref:l(d),as:i.as,"as-child":i.asChild},c(l(p))),{default:u(()=>[s(e.$slots,`default`)]),_:3},16,[`as`,`as-child`]))}});export{d as default};
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useRovingFocusItem as n}from"./context.js";import{createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,toHandlers as c,unref as l,withCtx as u}from"vue";const d=i({name:`RovingFocusItem`,__name:`roving-focus-item`,props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean},allowShiftKey:{type:Boolean},itemData:{},asChild:{type:Boolean},as:{}},setup(i){let{setItemElement:d,rovingFocusItemProps:f,rovingFocusItemListeners:p}=n(e(i,[`tabStopId`,`focusable`,`active`,`allowShiftKey`,`itemData`]));return(e,n)=>(o(),r(l(t),a(l(f),{ref:l(d),as:i.as,"as-child":i.asChild,"data-soybean-roving-focus-item":``},c(l(p))),{default:u(()=>[s(e.$slots,`default`)]),_:3},16,[`as`,`as-child`]))}});export{d as default};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
-
import {
|
|
3
|
-
import { HTMLAttributes } from "vue";
|
|
2
|
+
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
3
|
|
|
5
4
|
//#region src/components/roving-focus/types.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Properties for the RovingFocusGroup component.
|
|
8
7
|
*/
|
|
9
|
-
interface RovingFocusGroupProps extends
|
|
8
|
+
interface RovingFocusGroupProps extends PrimitiveWithBaseProps {
|
|
10
9
|
/** The orientation of the group. Mainly so arrow navigation is done accordingly (left & right vs. up & down) */
|
|
11
10
|
orientation?: DataOrientation;
|
|
12
11
|
/** The direction of navigation between items. */
|
|
@@ -44,7 +43,7 @@ type RovingFocusGroupEmits = {
|
|
|
44
43
|
/**
|
|
45
44
|
* Properties for the RovingFocusItem component.
|
|
46
45
|
*/
|
|
47
|
-
interface RovingFocusItemProps extends
|
|
46
|
+
interface RovingFocusItemProps extends PrimitiveWithBaseProps {
|
|
48
47
|
/**
|
|
49
48
|
* Tab stop id.
|
|
50
49
|
*/
|