@soybeanjs/headless 0.29.2 → 0.30.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/README.zh-CN.md +8 -4
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPrimitive.js +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/toPropertyKey.js +1 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.135.0 → _@oxc-project_runtime@0.143.0}/helpers/esm/typeof.js +1 -1
- package/dist/components/_icon/types.d.ts +0 -1
- package/dist/components/accordion/accordion-compact.vue.d.ts +3 -4
- package/dist/components/accordion/accordion-content.vue.d.ts +1 -2
- package/dist/components/accordion/accordion-description.vue.d.ts +1 -2
- package/dist/components/accordion/accordion-header.vue.d.ts +1 -2
- package/dist/components/accordion/accordion-item.vue.d.ts +1 -2
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -4
- package/dist/components/accordion/accordion-trigger.vue.d.ts +1 -2
- package/dist/components/accordion/context.d.ts +3 -0
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/index.d.ts +7 -7
- package/dist/components/accordion/types.d.ts +1 -1
- package/dist/components/affix/affix-compact.vue.d.ts +1 -2
- package/dist/components/affix/affix-content.vue.d.ts +1 -2
- package/dist/components/affix/affix-placeholder.vue.d.ts +1 -2
- package/dist/components/affix/affix-root.vue.d.ts +1 -2
- package/dist/components/affix/context.d.ts +2 -0
- package/dist/components/affix/index.d.ts +4 -4
- package/dist/components/affix/shared.js +1 -1
- package/dist/components/affix/types.d.ts +1 -1
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +1 -2
- package/dist/components/alert/alert-compact.vue.d.ts +1 -2
- package/dist/components/alert/alert-content.vue.d.ts +1 -2
- package/dist/components/alert/alert-description.vue.d.ts +1 -2
- package/dist/components/alert/alert-root.vue.d.ts +1 -2
- package/dist/components/alert/alert-title.vue.d.ts +1 -2
- package/dist/components/alert/context.d.ts +2 -0
- package/dist/components/alert/index.d.ts +6 -6
- package/dist/components/alert/types.d.ts +4 -3
- package/dist/components/anchor/anchor-compact.vue.d.ts +1 -2
- package/dist/components/anchor/anchor-item-compact.js +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +1 -2
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/anchor-link.vue.d.ts +2 -1
- package/dist/components/anchor/anchor-root.js +1 -1
- package/dist/components/anchor/anchor-root.vue.d.ts +3 -2
- package/dist/components/anchor/context.d.ts +2 -0
- package/dist/components/anchor/index.d.ts +4 -4
- package/dist/components/anchor/shared.js +1 -1
- package/dist/components/anchor/types.d.ts +3 -3
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +1 -2
- package/dist/components/arrow/index.d.ts +1 -1
- package/dist/components/arrow/types.d.ts +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +1 -2
- package/dist/components/aspect-ratio/index.d.ts +1 -1
- package/dist/components/aspect-ratio/types.d.ts +0 -1
- package/dist/components/autocomplete/autocomplete-compact.js +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +3 -4
- package/dist/components/autocomplete/autocomplete-input.js +1 -1
- package/dist/components/autocomplete/autocomplete-input.vue.d.ts +5 -6
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/context.d.ts +3 -0
- package/dist/components/autocomplete/index.d.ts +15 -13
- package/dist/components/autocomplete/types.d.ts +5 -2
- package/dist/components/avatar/avatar-compact.js +1 -1
- package/dist/components/avatar/avatar-compact.vue.d.ts +2 -1
- package/dist/components/avatar/avatar-fallback.vue.d.ts +1 -2
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-image.vue.d.ts +2 -1
- package/dist/components/avatar/avatar-root.vue.d.ts +1 -2
- package/dist/components/avatar/context.d.ts +3 -0
- package/dist/components/avatar/index.d.ts +4 -4
- package/dist/components/avatar/types.d.ts +13 -3
- package/dist/components/backtop/backtop.vue.d.ts +3 -4
- package/dist/components/backtop/index.d.ts +1 -1
- package/dist/components/backtop/shared.js +1 -1
- package/dist/components/backtop/types.d.ts +0 -1
- package/dist/components/badge/badge-compact.vue.d.ts +1 -2
- package/dist/components/badge/badge-content.vue.d.ts +1 -2
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/badge-root.vue.d.ts +1 -2
- package/dist/components/badge/context.d.ts +2 -0
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/types.d.ts +4 -2
- package/dist/components/bottom-sheet/bottom-sheet-compact.vue.d.ts +1 -2
- package/dist/components/bottom-sheet/bottom-sheet-handle.vue.d.ts +1 -2
- package/dist/components/bottom-sheet/bottom-sheet-overlay.vue.d.ts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-popup.vue.d.ts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/bottom-sheet-root.vue.d.ts +1 -2
- package/dist/components/bottom-sheet/context.d.ts +2 -0
- package/dist/components/bottom-sheet/context.js +1 -1
- package/dist/components/bottom-sheet/index.d.ts +17 -16
- package/dist/components/bottom-sheet/types.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-compact.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-compact.vue.d.ts +3 -4
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +1 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +1 -2
- package/dist/components/breadcrumb/context.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts +8 -8
- package/dist/components/breadcrumb/types.d.ts +3 -3
- package/dist/components/button/button-group.js +1 -0
- package/dist/components/button/button-group.vue.d.ts +20 -0
- package/dist/components/button/button.vue.d.ts +2 -1
- package/dist/components/button/index.d.ts +4 -3
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/types.d.ts +19 -3
- package/dist/components/calendar/calendar-cell-trigger.js +1 -1
- package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +1 -2
- package/dist/components/calendar/calendar-cell.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-compact.vue.d.ts +3 -4
- package/dist/components/calendar/calendar-grid-body.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-grid-head.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-grid-row.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-grid.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-head-cell.vue.d.ts +2 -2
- package/dist/components/calendar/calendar-header.vue.d.ts +1 -2
- package/dist/components/calendar/calendar-heading.vue.d.ts +1 -2
- package/dist/components/calendar/calendar-next.js +1 -1
- package/dist/components/calendar/calendar-next.vue.d.ts +1 -2
- package/dist/components/calendar/calendar-prev.js +1 -1
- package/dist/components/calendar/calendar-prev.vue.d.ts +1 -2
- package/dist/components/calendar/calendar-root.vue.d.ts +3 -4
- package/dist/components/calendar/context.d.ts +2 -0
- package/dist/components/calendar/index.d.ts +13 -13
- package/dist/components/calendar/types.d.ts +3 -2
- package/dist/components/calendar/use-calendar.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.js +1 -1
- package/dist/components/calendar-range/calendar-range-cell-trigger.vue.d.ts +1 -2
- package/dist/components/calendar-range/calendar-range-cell.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-compact.vue.d.ts +2 -1
- package/dist/components/calendar-range/calendar-range-grid-body.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-grid-head.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-grid-row.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-grid.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-head-cell.vue.d.ts +2 -2
- package/dist/components/calendar-range/calendar-range-header.vue.d.ts +1 -2
- package/dist/components/calendar-range/calendar-range-heading.vue.d.ts +1 -2
- package/dist/components/calendar-range/calendar-range-next.js +1 -1
- package/dist/components/calendar-range/calendar-range-next.vue.d.ts +1 -2
- package/dist/components/calendar-range/calendar-range-prev.js +1 -1
- package/dist/components/calendar-range/calendar-range-prev.vue.d.ts +1 -2
- package/dist/components/calendar-range/calendar-range-root.js +1 -1
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -2
- package/dist/components/calendar-range/context.d.ts +2 -0
- package/dist/components/calendar-range/index.d.ts +13 -13
- package/dist/components/calendar-range/types.d.ts +3 -2
- package/dist/components/calendar-range/use-calendar-range.js +1 -1
- package/dist/components/card/card-collapsible-trigger.vue.d.ts +1 -2
- package/dist/components/card/card-compact.vue.d.ts +1 -2
- package/dist/components/card/card-content.vue.d.ts +1 -2
- package/dist/components/card/card-description.vue.d.ts +1 -2
- package/dist/components/card/card-footer.vue.d.ts +1 -2
- package/dist/components/card/card-header.vue.d.ts +1 -2
- package/dist/components/card/card-root.vue.d.ts +1 -2
- package/dist/components/card/card-title-root.vue.d.ts +1 -2
- package/dist/components/card/card-title.vue.d.ts +1 -2
- package/dist/components/card/context.d.ts +2 -0
- package/dist/components/card/index.d.ts +9 -9
- package/dist/components/card/types.d.ts +1 -1
- package/dist/components/carousel/carousel-compact.vue.d.ts +4 -4
- package/dist/components/carousel/carousel-container.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-content.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-control.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-item.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-navigation.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-next.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-previous.vue.d.ts +1 -2
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/carousel-root.vue.d.ts +2 -1
- package/dist/components/carousel/context.d.ts +2 -0
- package/dist/components/carousel/index.d.ts +9 -9
- package/dist/components/carousel/types.d.ts +1 -1
- package/dist/components/cascader/cascader-clear.js +1 -0
- package/dist/components/cascader/cascader-clear.vue.d.ts +18 -0
- package/dist/components/cascader/cascader-compact.js +1 -0
- package/dist/components/cascader/cascader-compact.vue.d.ts +31 -0
- package/dist/components/cascader/cascader-content.js +1 -0
- package/dist/components/cascader/cascader-content.vue.d.ts +62 -0
- package/dist/components/cascader/cascader-empty.js +1 -0
- package/dist/components/cascader/cascader-empty.vue.d.ts +16 -0
- package/dist/components/cascader/cascader-menu.js +1 -0
- package/dist/components/cascader/cascader-menu.vue.d.ts +30 -0
- package/dist/components/cascader/cascader-option.js +1 -0
- package/dist/components/cascader/cascader-option.vue.d.ts +33 -0
- package/dist/components/cascader/cascader-root.js +1 -0
- package/dist/components/cascader/cascader-root.vue.d.ts +30 -0
- package/dist/components/cascader/cascader-search-input.js +1 -0
- package/dist/components/cascader/cascader-search-input.vue.d.ts +6 -0
- package/dist/components/cascader/cascader-tags.js +1 -0
- package/dist/components/cascader/cascader-tags.vue.d.ts +23 -0
- package/dist/components/cascader/cascader-trigger.js +1 -0
- package/dist/components/cascader/cascader-trigger.vue.d.ts +20 -0
- package/dist/components/cascader/cascader-value.js +1 -0
- package/dist/components/cascader/cascader-value.vue.d.ts +22 -0
- package/dist/components/cascader/context.d.ts +46 -0
- package/dist/components/cascader/context.js +1 -0
- package/dist/components/cascader/hooks.js +1 -0
- package/dist/components/cascader/index.d.ts +14 -0
- package/dist/components/cascader/index.js +1 -0
- package/dist/components/cascader/shared.js +1 -0
- package/dist/components/cascader/types.d.ts +479 -0
- package/dist/components/checkbox/checkbox-card-compact.vue.d.ts +4 -3
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -1
- package/dist/components/checkbox/checkbox-card-group-compact.vue.d.ts +3 -4
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +9 -8
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-group-compact.vue.d.ts +3 -4
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +3 -1
- package/dist/components/checkbox/context.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts +9 -9
- package/dist/components/checkbox/types.d.ts +6 -4
- package/dist/components/clipboard/clipboard.js +1 -1
- package/dist/components/clipboard/clipboard.vue.d.ts +3 -37
- package/dist/components/clipboard/index.d.ts +1 -1
- package/dist/components/clipboard/shared.js +1 -0
- package/dist/components/clipboard/types.d.ts +25 -18
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-content.vue.d.ts +1 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +2 -3
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +1 -2
- package/dist/components/collapsible/context.d.ts +3 -0
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/collapsible/types.d.ts +3 -2
- package/dist/components/color-area/color-area-area.vue.d.ts +1 -2
- package/dist/components/color-area/color-area-compact.vue.d.ts +4 -4
- package/dist/components/color-area/color-area-root.vue.d.ts +5 -5
- package/dist/components/color-area/color-area-thumb.vue.d.ts +2 -2
- package/dist/components/color-area/context.d.ts +2 -0
- package/dist/components/color-area/index.d.ts +4 -4
- package/dist/components/color-area/types.d.ts +1 -1
- package/dist/components/color-field/color-field-compact.vue.d.ts +2 -2
- package/dist/components/color-field/color-field-input.js +1 -1
- package/dist/components/color-field/color-field-input.vue.d.ts +1 -2
- package/dist/components/color-field/color-field-root.vue.d.ts +3 -3
- package/dist/components/color-field/context.d.ts +2 -0
- package/dist/components/color-field/index.d.ts +3 -3
- package/dist/components/color-field/types.d.ts +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +5 -3
- package/dist/components/color-picker/color-picker-root.js +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +8 -8
- package/dist/components/color-picker/color-picker-trigger.vue.d.ts +2 -2
- package/dist/components/color-picker/context.d.ts +2 -0
- package/dist/components/color-picker/index.d.ts +3 -3
- package/dist/components/color-picker/types.d.ts +1 -1
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +4 -4
- package/dist/components/color-slider/color-slider-root.js +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +6 -4
- package/dist/components/color-slider/color-slider-thumb.vue.d.ts +1 -2
- package/dist/components/color-slider/color-slider-track.vue.d.ts +1 -2
- package/dist/components/color-slider/context.d.ts +2 -0
- package/dist/components/color-slider/index.d.ts +4 -4
- package/dist/components/color-slider/types.d.ts +1 -1
- package/dist/components/color-swatch/color-swatch-checker.vue.d.ts +1 -2
- package/dist/components/color-swatch/color-swatch-compact.vue.d.ts +1 -2
- package/dist/components/color-swatch/color-swatch-fill.vue.d.ts +1 -2
- package/dist/components/color-swatch/color-swatch-root.vue.d.ts +1 -2
- package/dist/components/color-swatch/context.d.ts +2 -0
- package/dist/components/color-swatch/index.d.ts +4 -4
- package/dist/components/color-swatch/types.d.ts +2 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +6 -3
- package/dist/components/color-swatch-picker/color-swatch-picker-item-indicator.vue.d.ts +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-item-swatch.vue.d.ts +1 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-item.vue.d.ts +2 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +5 -4
- package/dist/components/color-swatch-picker/context.d.ts +2 -0
- package/dist/components/color-swatch-picker/index.d.ts +5 -5
- package/dist/components/color-swatch-picker/types.d.ts +1 -1
- package/dist/components/combobox/combobox-arrow.vue.d.ts +2 -1
- package/dist/components/combobox/combobox-cancel.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-compact.vue.d.ts +8 -5
- package/dist/components/combobox/combobox-content-impl.js +1 -1
- package/dist/components/combobox/combobox-content.vue.d.ts +2 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +1 -2
- package/dist/components/combobox/combobox-group.js +1 -1
- package/dist/components/combobox/combobox-group.vue.d.ts +2 -1
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-input.vue.d.ts +5 -6
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-item.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +5 -3
- package/dist/components/combobox/combobox-separator.vue.d.ts +1 -2
- package/dist/components/combobox/combobox-trigger.vue.d.ts +3 -1
- package/dist/components/combobox/combobox-viewport.vue.d.ts +1 -2
- package/dist/components/combobox/combobox-virtualizer.vue.d.ts +1 -2
- package/dist/components/combobox/context.d.ts +2 -1
- package/dist/components/combobox/index.d.ts +17 -17
- package/dist/components/combobox/shared.js +1 -1
- package/dist/components/combobox/types.d.ts +3 -1
- package/dist/components/command/command-compact.js +1 -1
- package/dist/components/command/command-compact.vue.d.ts +6 -3
- package/dist/components/command/context.d.ts +2 -0
- package/dist/components/command/context.js +1 -1
- package/dist/components/command/index.d.ts +1 -1
- package/dist/components/command/types.d.ts +3 -2
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -2
- package/dist/components/config-provider/index.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +8 -5
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +8 -5
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +5 -4
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +9 -6
- package/dist/components/context-menu/context-menu-root.vue.d.ts +1 -2
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -3
- package/dist/components/context-menu/index.d.ts +23 -22
- package/dist/components/context-menu/types.d.ts +2 -1
- package/dist/components/date-field/context.d.ts +2 -0
- package/dist/components/date-field/date-field-compact.vue.d.ts +1 -2
- package/dist/components/date-field/date-field-input.js +1 -1
- package/dist/components/date-field/date-field-input.vue.d.ts +2 -2
- package/dist/components/date-field/date-field-root.js +1 -1
- package/dist/components/date-field/date-field-root.vue.d.ts +4 -4
- package/dist/components/date-field/index.d.ts +3 -3
- package/dist/components/date-field/types.d.ts +2 -1
- package/dist/components/date-picker/context.d.ts +2 -0
- package/dist/components/date-picker/date-picker-compact.js +1 -1
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +6 -272
- package/dist/components/date-picker/index.d.ts +1 -1
- package/dist/components/date-picker/types.d.ts +25 -3
- package/dist/components/date-range-field/context.d.ts +2 -0
- package/dist/components/date-range-field/date-range-field-compact.vue.d.ts +2 -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 +5 -3
- package/dist/components/date-range-field/index.d.ts +3 -3
- package/dist/components/date-range-field/types.d.ts +2 -1
- package/dist/components/date-range-picker/context.d.ts +2 -0
- 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 +6 -275
- package/dist/components/date-range-picker/index.d.ts +1 -1
- package/dist/components/date-range-picker/types.d.ts +29 -4
- package/dist/components/dialog/context.d.ts +3 -0
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-compact.vue.d.ts +4 -3
- package/dist/components/dialog/dialog-confirm.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-description.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-overlay.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-popup-impl.js +1 -1
- package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-provider.vue.d.ts +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-root.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-title.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +1 -2
- package/dist/components/dialog/index.d.ts +15 -15
- package/dist/components/dialog/state.d.ts +0 -1
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dialog/types.d.ts +12 -7
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +8 -5
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +8 -5
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +5 -4
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +9 -6
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -2
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +4 -3
- package/dist/components/dropdown-menu/index.d.ts +23 -22
- package/dist/components/dropdown-menu/types.d.ts +2 -1
- package/dist/components/editable/context.d.ts +2 -0
- package/dist/components/editable/editable-area.vue.d.ts +1 -2
- package/dist/components/editable/editable-cancel-trigger.vue.d.ts +1 -2
- package/dist/components/editable/editable-compact.vue.d.ts +3 -4
- package/dist/components/editable/editable-edit-trigger.vue.d.ts +1 -2
- package/dist/components/editable/editable-input.js +1 -1
- package/dist/components/editable/editable-input.vue.d.ts +2 -2
- package/dist/components/editable/editable-preview.vue.d.ts +2 -2
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +3 -4
- package/dist/components/editable/editable-submit-trigger.vue.d.ts +1 -2
- package/dist/components/editable/index.d.ts +8 -8
- package/dist/components/editable/types.d.ts +7 -4
- package/dist/components/empty/context.d.ts +2 -0
- package/dist/components/empty/empty-compact.vue.d.ts +1 -2
- package/dist/components/empty/empty-content.vue.d.ts +1 -2
- package/dist/components/empty/empty-description.vue.d.ts +1 -2
- package/dist/components/empty/empty-header.vue.d.ts +1 -2
- package/dist/components/empty/empty-media.vue.d.ts +1 -2
- package/dist/components/empty/empty-root.vue.d.ts +1 -2
- package/dist/components/empty/empty-title.vue.d.ts +1 -2
- package/dist/components/empty/index.d.ts +7 -7
- package/dist/components/empty/types.d.ts +1 -1
- package/dist/components/form/context.d.ts +2 -0
- package/dist/components/form/core/shared.js +1 -1
- package/dist/components/form/core/types.d.ts +20 -20
- package/dist/components/form/core/use-field-array.js +1 -1
- package/dist/components/form/core/use-form-state.js +1 -1
- package/dist/components/form/form-compact.vue.d.ts +2 -1
- package/dist/components/form/form-control.vue.d.ts +1 -2
- package/dist/components/form/form-description.vue.d.ts +1 -2
- package/dist/components/form/form-error.vue.d.ts +1 -2
- package/dist/components/form/form-field-array-compact.js +1 -1
- package/dist/components/form/form-field-array-compact.vue.d.ts +1 -2
- package/dist/components/form/form-field-base-compact.js +1 -1
- package/dist/components/form/form-field-base-compact.vue.d.ts +5 -6
- package/dist/components/form/form-field-compact.js +1 -1
- package/dist/components/form/form-field-compact.vue.d.ts +1 -2
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-field.vue.d.ts +1 -2
- package/dist/components/form/form-label.vue.d.ts +1 -2
- package/dist/components/form/index.d.ts +9 -9
- package/dist/components/form/types.d.ts +2 -2
- package/dist/components/form/use-form.d.ts +0 -1
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +2 -1
- package/dist/components/hover-card/hover-card-popup.vue.d.ts +1 -2
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/hover-card-positioner.vue.d.ts +2 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -2
- package/dist/components/hover-card/hover-card-trigger.vue.d.ts +3 -1
- package/dist/components/hover-card/index.d.ts +8 -8
- package/dist/components/hover-card/types.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -0
- package/dist/components/input/index.d.ts +4 -4
- package/dist/components/input/input-clear.js +1 -1
- package/dist/components/input/input-clear.vue.d.ts +1 -2
- package/dist/components/input/input-compact.js +1 -1
- package/dist/components/input/input-compact.vue.d.ts +1 -2
- package/dist/components/input/input-control.vue.d.ts +1 -2
- package/dist/components/input/input-root.vue.d.ts +1 -2
- package/dist/components/input/types.d.ts +6 -3
- package/dist/components/input-number/context.d.ts +2 -0
- package/dist/components/input-number/index.d.ts +5 -5
- package/dist/components/input-number/input-number-clear.js +1 -1
- package/dist/components/input-number/input-number-compact.js +1 -1
- package/dist/components/input-number/input-number-compact.vue.d.ts +1 -2
- package/dist/components/input-number/input-number-control.js +1 -1
- package/dist/components/input-number/input-number-control.vue.d.ts +1 -2
- package/dist/components/input-number/input-number-decrement.vue.d.ts +1 -2
- package/dist/components/input-number/input-number-increment.vue.d.ts +1 -2
- package/dist/components/input-number/input-number-root.js +1 -1
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -2
- package/dist/components/input-number/shared.js +1 -1
- package/dist/components/input-number/types.d.ts +2 -2
- package/dist/components/input-otp/context.d.ts +2 -0
- package/dist/components/input-otp/index.d.ts +4 -4
- package/dist/components/input-otp/input-otp-compact.js +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +3 -4
- package/dist/components/input-otp/input-otp-input.vue.d.ts +1 -2
- package/dist/components/input-otp/input-otp-positioner.vue.d.ts +1 -2
- package/dist/components/input-otp/input-otp-root.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -5
- package/dist/components/input-otp/shared.js +1 -1
- package/dist/components/input-otp/types.d.ts +2 -2
- package/dist/components/input-otp/use-password-manager-badge.js +1 -1
- package/dist/components/kbd/index.d.ts +1 -1
- package/dist/components/kbd/kbd.vue.d.ts +1 -2
- package/dist/components/kbd/types.d.ts +1 -0
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/label/label.vue.d.ts +1 -2
- package/dist/components/label/types.d.ts +1 -0
- package/dist/components/layout/context.d.ts +4 -3
- package/dist/components/layout/context.js +1 -1
- package/dist/components/layout/index.d.ts +14 -15
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-compact.js +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +2 -2
- package/dist/components/layout/layout-content.vue.d.ts +1 -2
- package/dist/components/layout/layout-footer.vue.d.ts +1 -2
- package/dist/components/layout/layout-header.vue.d.ts +1 -2
- package/dist/components/layout/layout-main.vue.d.ts +1 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +1 -2
- package/dist/components/layout/layout-placeholder.js +1 -0
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-rail.vue.d.ts +1 -2
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +14 -9
- package/dist/components/layout/layout-sidebar.vue.d.ts +1 -2
- package/dist/components/layout/layout-tab.vue.d.ts +1 -2
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +1 -2
- package/dist/components/layout/shared.js +1 -1
- package/dist/components/layout/types.d.ts +44 -70
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +3 -2
- package/dist/components/link/types.d.ts +1 -2
- package/dist/components/list/context.d.ts +2 -0
- package/dist/components/list/index.d.ts +5 -5
- package/dist/components/list/list-content.vue.d.ts +1 -2
- package/dist/components/list/list-description.vue.d.ts +1 -2
- package/dist/components/list/list-item.vue.d.ts +1 -2
- package/dist/components/list/list-root.vue.d.ts +1 -2
- package/dist/components/list/list-title.vue.d.ts +1 -2
- package/dist/components/list/types.d.ts +1 -0
- package/dist/components/listbox/context.d.ts +3 -0
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/index.d.ts +8 -8
- package/dist/components/listbox/listbox-content.vue.d.ts +1 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +5 -6
- package/dist/components/listbox/listbox-group-label.vue.d.ts +1 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +1 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-virtualizer.js +1 -1
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +1 -2
- package/dist/components/listbox/shared.js +1 -1
- package/dist/components/listbox/types.d.ts +10 -5
- package/dist/components/menu/context.d.ts +4 -1
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +23 -23
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
- package/dist/components/menu/menu-checkbox-options-compact.vue.d.ts +4 -4
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +5 -3
- package/dist/components/menu/menu-group-label.vue.d.ts +1 -2
- package/dist/components/menu/menu-group.vue.d.ts +1 -2
- package/dist/components/menu/menu-item-impl.js +1 -1
- package/dist/components/menu/menu-item-indicator.vue.d.ts +2 -2
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-item.vue.d.ts +1 -2
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +7 -5
- package/dist/components/menu/menu-options-compact.vue.d.ts +7 -5
- package/dist/components/menu/menu-radio-group.js +1 -1
- package/dist/components/menu/menu-radio-group.vue.d.ts +7 -7
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-item.vue.d.ts +1 -2
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-radio-options-compact.vue.d.ts +6 -6
- package/dist/components/menu/menu-root.vue.d.ts +1 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +5 -3
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +1 -2
- package/dist/components/menu/menu-sub.vue.d.ts +1 -2
- package/dist/components/menu/shared.js +1 -1
- package/dist/components/menu/types.d.ts +11 -8
- package/dist/components/menubar/context.d.ts +3 -0
- package/dist/components/menubar/context.js +1 -1
- package/dist/components/menubar/index.d.ts +22 -21
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +8 -5
- package/dist/components/menubar/menubar-content.js +1 -1
- package/dist/components/menubar/menubar-content.vue.d.ts +9 -5
- package/dist/components/menubar/menubar-menu.vue.d.ts +2 -1
- package/dist/components/menubar/menubar-menus.js +1 -0
- package/dist/components/menubar/menubar-root.js +1 -1
- package/dist/components/menubar/menubar-root.vue.d.ts +7 -3
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -3
- package/dist/components/menubar/menubar-sub-trigger.vue.d.ts +1 -2
- package/dist/components/menubar/menubar-trigger.js +1 -1
- package/dist/components/menubar/menubar-trigger.vue.d.ts +3 -4
- package/dist/components/menubar/types.d.ts +60 -3
- package/dist/components/navigation-menu/context.d.ts +2 -0
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +10 -10
- package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +2 -1
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +2 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-option-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +2 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +1 -2
- package/dist/components/navigation-menu/navigation-menu-sub-option-compact.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +2 -1
- package/dist/components/navigation-menu/shared.js +1 -1
- package/dist/components/navigation-menu/types.d.ts +4 -4
- package/dist/components/page-tabs/context.d.ts +2 -0
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/index.d.ts +7 -7
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.vue.d.ts +1 -2
- package/dist/components/page-tabs/page-tabs-compact.js +1 -1
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +10 -7
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +12 -3
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +1 -2
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +3 -3
- package/dist/components/page-tabs/types.d.ts +65 -2
- package/dist/components/pagination/context.d.ts +2 -0
- package/dist/components/pagination/index.d.ts +9 -9
- package/dist/components/pagination/pagination-compact.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +1 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +1 -2
- package/dist/components/pagination/shared.js +1 -1
- package/dist/components/pagination/types.d.ts +5 -3
- package/dist/components/password/context.d.ts +2 -0
- package/dist/components/password/index.d.ts +1 -1
- package/dist/components/password/password-compact.js +1 -1
- package/dist/components/password/password-compact.vue.d.ts +2 -2
- package/dist/components/password/types.d.ts +7 -1
- package/dist/components/popconfirm/context.d.ts +2 -0
- package/dist/components/popconfirm/index.d.ts +15 -15
- package/dist/components/popconfirm/popconfirm-cancel.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +2 -1
- package/dist/components/popconfirm/popconfirm-confirm.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-content.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-description.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-footer.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-header.vue.d.ts +1 -2
- package/dist/components/popconfirm/popconfirm-title.vue.d.ts +1 -2
- package/dist/components/popconfirm/types.d.ts +2 -2
- package/dist/components/popover/context.d.ts +3 -0
- package/dist/components/popover/index.d.ts +9 -9
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -1
- package/dist/components/popover/popover-close.vue.d.ts +1 -2
- package/dist/components/popover/popover-compact.vue.d.ts +2 -1
- package/dist/components/popover/popover-popup.vue.d.ts +1 -2
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +2 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -2
- package/dist/components/popover/popover-trigger.vue.d.ts +2 -2
- package/dist/components/popover/types.d.ts +2 -2
- package/dist/components/popper/context.d.ts +2 -1
- package/dist/components/popper/index.d.ts +5 -5
- package/dist/components/popper/popper-anchor.vue.d.ts +1 -2
- package/dist/components/popper/popper-arrow.vue.d.ts +1 -2
- package/dist/components/popper/popper-popup.vue.d.ts +1 -2
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
- package/dist/components/popper/popper-root.js +1 -1
- package/dist/components/popper/popper-root.vue.d.ts +1 -2
- package/dist/components/popper/shared.js +1 -1
- package/dist/components/popper/types.d.ts +1 -1
- package/dist/components/portal/index.d.ts +1 -1
- package/dist/components/portal/portal.vue.d.ts +1 -2
- package/dist/components/portal/types.d.ts +1 -0
- package/dist/components/primitive/primitive.d.ts +0 -1
- package/dist/components/primitive/types.d.ts +1 -1
- package/dist/components/progress/context.d.ts +2 -0
- package/dist/components/progress/index.d.ts +6 -6
- package/dist/components/progress/progress-circle-compact.vue.d.ts +1 -2
- package/dist/components/progress/progress-circle-svg.vue.d.ts +1 -2
- package/dist/components/progress/progress-compact.vue.d.ts +1 -2
- package/dist/components/progress/progress-indicator.vue.d.ts +1 -2
- package/dist/components/progress/progress-provider.vue.d.ts +1 -2
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/progress-root.vue.d.ts +1 -2
- package/dist/components/progress/state.d.ts +0 -1
- package/dist/components/progress/state.js +1 -1
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/radio-group/context.d.ts +3 -0
- package/dist/components/radio-group/index.d.ts +7 -7
- package/dist/components/radio-group/radio-group-card-compact.js +1 -1
- package/dist/components/radio-group/radio-group-card-compact.vue.d.ts +3 -4
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +3 -4
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +3 -4
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-item.vue.d.ts +1 -2
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +4 -4
- package/dist/components/radio-group/types.d.ts +7 -5
- package/dist/components/rating/context.js +1 -0
- package/dist/components/rating/index.d.ts +4 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/rating/rating-item.js +1 -0
- package/dist/components/rating/rating-item.vue.d.ts +20 -0
- package/dist/components/rating/rating-root.js +1 -0
- package/dist/components/rating/rating-root.vue.d.ts +39 -0
- package/dist/components/rating/shared.js +1 -0
- package/dist/components/rating/types.d.ts +77 -0
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/index.d.ts +2 -2
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +3 -1
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +1 -2
- package/dist/components/roving-focus/types.d.ts +1 -1
- package/dist/components/scroll-area/context.d.ts +2 -0
- package/dist/components/scroll-area/index.d.ts +6 -6
- package/dist/components/scroll-area/scroll-area-compact.vue.d.ts +1 -2
- package/dist/components/scroll-area/scroll-area-corner.js +1 -1
- package/dist/components/scroll-area/scroll-area-corner.vue.d.ts +1 -2
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-root.vue.d.ts +1 -2
- package/dist/components/scroll-area/scroll-area-scrollbar.js +1 -1
- package/dist/components/scroll-area/scroll-area-scrollbar.vue.d.ts +1 -2
- package/dist/components/scroll-area/scroll-area-thumb.js +1 -1
- package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +1 -2
- package/dist/components/scroll-area/scroll-area-viewport.vue.d.ts +1 -2
- package/dist/components/scroll-area/shared.js +1 -1
- package/dist/components/scroll-area/types.d.ts +1 -1
- package/dist/components/segment/index.d.ts +6 -5
- package/dist/components/segment/segment-compact.vue.d.ts +3 -4
- package/dist/components/segment/types.d.ts +2 -2
- package/dist/components/select/context.d.ts +3 -0
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +17 -17
- package/dist/components/select/select-arrow.vue.d.ts +2 -1
- package/dist/components/select/select-compact.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +5 -3
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +2 -1
- package/dist/components/select/select-group-label.vue.d.ts +1 -2
- package/dist/components/select/select-group.vue.d.ts +1 -2
- package/dist/components/select/select-item-indicator.vue.d.ts +2 -2
- package/dist/components/select/select-item-text.vue.d.ts +1 -2
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-item.vue.d.ts +2 -2
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +4 -4
- package/dist/components/select/select-scroll-down-button.vue.d.ts +1 -2
- package/dist/components/select/select-scroll-up-button.vue.d.ts +1 -2
- package/dist/components/select/select-separator.vue.d.ts +1 -2
- package/dist/components/select/select-trigger-icon.vue.d.ts +1 -2
- package/dist/components/select/select-trigger.vue.d.ts +2 -2
- package/dist/components/select/select-value.vue.d.ts +2 -1
- package/dist/components/select/select-viewport.vue.d.ts +1 -2
- package/dist/components/select/types.d.ts +26 -6
- package/dist/components/separator/context.d.ts +2 -0
- package/dist/components/separator/index.d.ts +3 -3
- package/dist/components/separator/separator-compact.vue.d.ts +1 -2
- package/dist/components/separator/separator-label.vue.d.ts +1 -2
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/separator-root.vue.d.ts +2 -2
- package/dist/components/separator/types.d.ts +2 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/skeleton.vue.d.ts +1 -2
- package/dist/components/skeleton/types.d.ts +0 -1
- package/dist/components/slider/context.d.ts +2 -0
- package/dist/components/slider/index.d.ts +5 -5
- package/dist/components/slider/shared.js +1 -1
- package/dist/components/slider/slider-compact.js +1 -1
- package/dist/components/slider/slider-compact.vue.d.ts +1 -2
- package/dist/components/slider/slider-range.vue.d.ts +1 -2
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +3 -2
- package/dist/components/slider/slider-thumb.vue.d.ts +1 -2
- package/dist/components/slider/slider-track.vue.d.ts +1 -2
- package/dist/components/slider/types.d.ts +4 -2
- package/dist/components/splitter/context.d.ts +2 -0
- package/dist/components/splitter/index.d.ts +3 -3
- package/dist/components/splitter/shared.js +1 -1
- package/dist/components/splitter/splitter-group.js +1 -1
- package/dist/components/splitter/splitter-group.vue.d.ts +3 -2
- package/dist/components/splitter/splitter-panel.vue.d.ts +1 -2
- package/dist/components/splitter/splitter-resize-handle.js +1 -1
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -2
- package/dist/components/splitter/types.d.ts +2 -2
- package/dist/components/stepper/context.d.ts +2 -0
- package/dist/components/stepper/index.d.ts +8 -8
- package/dist/components/stepper/stepper-compact.js +1 -1
- package/dist/components/stepper/stepper-compact.vue.d.ts +1 -2
- package/dist/components/stepper/stepper-description.vue.d.ts +2 -2
- package/dist/components/stepper/stepper-indicator.vue.d.ts +2 -2
- package/dist/components/stepper/stepper-item.js +1 -1
- package/dist/components/stepper/stepper-item.vue.d.ts +1 -2
- package/dist/components/stepper/stepper-root.js +1 -1
- package/dist/components/stepper/stepper-root.vue.d.ts +3 -2
- package/dist/components/stepper/stepper-separator.vue.d.ts +2 -1
- package/dist/components/stepper/stepper-title.vue.d.ts +2 -2
- package/dist/components/stepper/stepper-trigger.vue.d.ts +2 -2
- package/dist/components/stepper/types.d.ts +3 -3
- package/dist/components/switch/context.d.ts +3 -0
- package/dist/components/switch/index.d.ts +4 -4
- package/dist/components/switch/switch-compact.js +1 -1
- package/dist/components/switch/switch-compact.vue.d.ts +4 -4
- package/dist/components/switch/switch-control.vue.d.ts +2 -1
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +5 -5
- package/dist/components/switch/switch-thumb.vue.d.ts +2 -2
- package/dist/components/switch/types.d.ts +4 -3
- package/dist/components/table/context.d.ts +2 -0
- package/dist/components/table/hooks.js +1 -1
- package/dist/components/table/index.d.ts +10 -10
- package/dist/components/table/shared.d.ts +2 -1
- package/dist/components/table/shared.js +1 -1
- package/dist/components/table/table-body.vue.d.ts +1 -2
- package/dist/components/table/table-cell.vue.d.ts +1 -2
- package/dist/components/table/table-compact-cell.js +1 -1
- package/dist/components/table/table-compact-head.js +1 -1
- package/dist/components/table/table-compact.js +1 -1
- package/dist/components/table/table-compact.vue.d.ts +3 -4
- package/dist/components/table/table-content.vue.d.ts +1 -2
- package/dist/components/table/table-footer.vue.d.ts +1 -2
- package/dist/components/table/table-head.vue.d.ts +1 -2
- package/dist/components/table/table-header.vue.d.ts +1 -2
- package/dist/components/table/table-root.vue.d.ts +1 -2
- package/dist/components/table/table-row.vue.d.ts +1 -2
- package/dist/components/table/table-scroll.vue.d.ts +1 -2
- package/dist/components/table/types.d.ts +3 -3
- package/dist/components/tabs/context.d.ts +3 -1
- package/dist/components/tabs/index.d.ts +6 -6
- package/dist/components/tabs/tabs-compact.vue.d.ts +3 -4
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-content.vue.d.ts +1 -2
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-indicator.vue.d.ts +1 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +1 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +3 -2
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/tabs-trigger.vue.d.ts +2 -2
- package/dist/components/tabs/types.d.ts +3 -2
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/tag.vue.d.ts +1 -2
- package/dist/components/tag/types.d.ts +1 -0
- package/dist/components/tags-input/context.d.ts +2 -0
- package/dist/components/tags-input/index.d.ts +7 -7
- package/dist/components/tags-input/tags-input-clear.vue.d.ts +1 -2
- package/dist/components/tags-input/tags-input-compact.js +1 -1
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +6 -5
- package/dist/components/tags-input/tags-input-control.js +1 -1
- package/dist/components/tags-input/tags-input-control.vue.d.ts +1 -2
- package/dist/components/tags-input/tags-input-item-delete.vue.d.ts +1 -2
- package/dist/components/tags-input/tags-input-item-text.js +1 -1
- package/dist/components/tags-input/tags-input-item-text.vue.d.ts +1 -2
- package/dist/components/tags-input/tags-input-item.js +1 -1
- package/dist/components/tags-input/tags-input-item.vue.d.ts +1 -2
- package/dist/components/tags-input/tags-input-root.js +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +4 -5
- package/dist/components/tags-input/types.d.ts +4 -2
- package/dist/components/textarea/context.d.ts +2 -0
- package/dist/components/textarea/index.d.ts +5 -5
- package/dist/components/textarea/shared.js +1 -1
- package/dist/components/textarea/textarea-clear.vue.d.ts +1 -2
- package/dist/components/textarea/textarea-compact.js +1 -1
- package/dist/components/textarea/textarea-compact.vue.d.ts +1 -2
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-control.vue.d.ts +1 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +1 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +1 -2
- package/dist/components/textarea/types.d.ts +2 -2
- package/dist/components/time-field/context.d.ts +2 -0
- package/dist/components/time-field/index.d.ts +5 -5
- package/dist/components/time-field/time-field-compact.js +1 -1
- package/dist/components/time-field/time-field-compact.vue.d.ts +10 -4
- package/dist/components/time-field/time-field-input.js +1 -1
- package/dist/components/time-field/time-field-input.vue.d.ts +3 -1
- package/dist/components/time-field/time-field-root.js +1 -1
- package/dist/components/time-field/time-field-root.vue.d.ts +4 -4
- package/dist/components/time-field/types.d.ts +16 -2
- package/dist/components/time-range-field/context.d.ts +2 -0
- package/dist/components/time-range-field/index.d.ts +3 -3
- package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +3 -2
- package/dist/components/time-range-field/time-range-field-input.js +1 -1
- package/dist/components/time-range-field/time-range-field-input.vue.d.ts +2 -2
- 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 -4
- package/dist/components/time-range-field/types.d.ts +2 -1
- package/dist/components/toast/context.d.ts +2 -0
- package/dist/components/toast/hooks.js +1 -1
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/state.d.ts +0 -1
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast-provider.vue.d.ts +1 -2
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +1 -2
- package/dist/components/toast/types.d.ts +2 -2
- package/dist/components/toggle/index.d.ts +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +2 -3
- package/dist/components/toggle/types.d.ts +0 -1
- package/dist/components/toggle-group/context.d.ts +2 -0
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/toggle-group/toggle-group-item.js +1 -1
- package/dist/components/toggle-group/toggle-group-item.vue.d.ts +4 -4
- package/dist/components/toggle-group/toggle-group-root.vue.d.ts +4 -4
- package/dist/components/toggle-group/types.d.ts +1 -1
- package/dist/components/toolbar/context.d.ts +2 -0
- package/dist/components/toolbar/index.d.ts +6 -6
- package/dist/components/toolbar/toolbar-button.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-link.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-root.vue.d.ts +2 -1
- package/dist/components/toolbar/toolbar-separator.vue.d.ts +1 -2
- package/dist/components/toolbar/toolbar-toggle-group.vue.d.ts +4 -4
- package/dist/components/toolbar/toolbar-toggle-item.vue.d.ts +4 -4
- package/dist/components/toolbar/types.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +8 -8
- package/dist/components/tooltip/tooltip-compact.vue.d.ts +2 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +1 -2
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +2 -1
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -2
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +3 -1
- package/dist/components/tooltip/types.d.ts +2 -2
- package/dist/components/tree/hooks.js +1 -1
- package/dist/components/tree/index.d.ts +4 -4
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +3 -2
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +6 -6
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +2 -1
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +648 -9
- package/dist/components/tree/types.d.ts +10 -3
- package/dist/components/tree-menu/context.d.ts +21 -17
- package/dist/components/tree-menu/context.js +1 -1
- package/dist/components/tree-menu/index.d.ts +14 -14
- package/dist/components/tree-menu/shared.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +1 -2
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +1 -2
- package/dist/components/tree-menu/tree-menu-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +3 -4
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +1 -2
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +1 -2
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-option-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-option-compact.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-options-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-options-compact.vue.d.ts +3 -4
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-slot-compact.js +1 -1
- package/dist/components/tree-menu/tree-menu-slot-compact.vue.d.ts +8 -9
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-tooltip-compact.js +1 -1
- package/dist/components/tree-menu/types.d.ts +22 -5
- package/dist/components/virtualizer/index.d.ts +3 -3
- package/dist/components/virtualizer/types.d.ts +1 -1
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +1 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +1 -2
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +4 -4
- package/dist/components/visually-hidden/index.d.ts +2 -2
- package/dist/components/visually-hidden/types.d.ts +0 -1
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +2 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +2 -2
- package/dist/components/watermark/context.d.ts +2 -0
- package/dist/components/watermark/index.d.ts +3 -3
- package/dist/components/watermark/shared.js +1 -1
- package/dist/components/watermark/types.d.ts +1 -1
- package/dist/components/watermark/watermark-compact.vue.d.ts +1 -2
- package/dist/components/watermark/watermark-overlay.vue.d.ts +1 -2
- package/dist/components/watermark/watermark-root.js +1 -1
- package/dist/components/watermark/watermark-root.vue.d.ts +1 -2
- package/dist/composables/use-arrow-navigation.d.ts +1 -0
- package/dist/composables/use-arrow-navigation.js +1 -1
- package/dist/composables/use-bool-prop.js +1 -1
- package/dist/composables/use-collection.d.ts +1 -1
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-controllable-state.d.ts +0 -1
- package/dist/composables/use-dismissable-layer.d.ts +4 -1
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-escape-key-down.d.ts +0 -1
- package/dist/composables/use-exposed-element.d.ts +1 -0
- package/dist/composables/use-floating.d.ts +0 -1
- package/dist/composables/use-focus-scope.d.ts +1 -1
- package/dist/composables/use-forward-element.d.ts +1 -0
- package/dist/composables/use-forward-element.js +1 -1
- package/dist/composables/use-fuse.d.ts +0 -1
- package/dist/composables/use-grace-area.d.ts +0 -1
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-hide-others.d.ts +1 -1
- package/dist/composables/use-image-loading-status.d.ts +1 -1
- package/dist/composables/use-kbd.d.ts +1 -0
- package/dist/composables/use-popup-events.d.ts +1 -1
- package/dist/composables/use-presence.d.ts +0 -1
- package/dist/composables/use-presence.js +1 -1
- package/dist/composables/use-props.d.ts +0 -1
- package/dist/composables/use-selection.d.ts +1 -1
- package/dist/composables/use-state-machine.d.ts +0 -1
- package/dist/composables/use-typeahead.d.ts +0 -1
- package/dist/composables/use-typeahead.js +1 -1
- package/dist/composables/use-ui-context.d.ts +1 -1
- package/dist/constants/common.d.ts +1 -0
- package/dist/constants/components.d.ts +2 -0
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +2 -9
- package/dist/date/calendar.js +1 -1
- package/dist/date/comparators.d.ts +0 -1
- package/dist/date/comparators.js +1 -1
- package/dist/date/formatter.d.ts +0 -1
- package/dist/date/parser.d.ts +0 -1
- package/dist/date/parser.js +1 -1
- package/dist/date/parts.d.ts +0 -1
- package/dist/date/types.d.ts +2 -3
- package/dist/date/use-date-field.d.ts +3 -1
- package/dist/date/use-date-field.js +1 -1
- package/dist/date/utils.d.ts +0 -1
- package/dist/index.d.ts +578 -470
- package/dist/index.js +1 -1
- package/dist/locale/hooks.d.ts +0 -1
- package/dist/locale/hooks.js +1 -1
- package/dist/locale/langs/ar.d.ts +0 -1
- package/dist/locale/langs/ar.js +1 -1
- package/dist/locale/langs/de.d.ts +0 -1
- package/dist/locale/langs/de.js +1 -1
- package/dist/locale/langs/en.d.ts +0 -1
- package/dist/locale/langs/en.js +1 -1
- package/dist/locale/langs/es.d.ts +0 -1
- package/dist/locale/langs/es.js +1 -1
- package/dist/locale/langs/fr.d.ts +0 -1
- package/dist/locale/langs/fr.js +1 -1
- package/dist/locale/langs/id.d.ts +0 -1
- package/dist/locale/langs/id.js +1 -1
- package/dist/locale/langs/ja.d.ts +0 -1
- package/dist/locale/langs/ja.js +1 -1
- package/dist/locale/langs/ko.d.ts +0 -1
- package/dist/locale/langs/ko.js +1 -1
- package/dist/locale/langs/pt-BR.d.ts +0 -1
- package/dist/locale/langs/pt-BR.js +1 -1
- package/dist/locale/langs/ru.d.ts +0 -1
- package/dist/locale/langs/ru.js +1 -1
- package/dist/locale/langs/tr.d.ts +0 -1
- package/dist/locale/langs/tr.js +1 -1
- package/dist/locale/langs/zh-CN.d.ts +0 -1
- package/dist/locale/langs/zh-CN.js +1 -1
- package/dist/locale/langs/zh-TW.d.ts +0 -1
- package/dist/locale/langs/zh-TW.js +1 -1
- package/dist/locale/locales.d.ts +2 -2
- package/dist/locale/locales.js +1 -1
- package/dist/locale/types.d.ts +148 -2
- package/dist/namespaced/index.d.ts +1014 -984
- package/dist/namespaced/index.js +1 -1
- package/dist/nuxt/index.d.ts +1 -0
- package/dist/shared/color.d.ts +1 -1
- package/dist/shared/color.js +1 -1
- package/dist/shared/comparison.d.ts +1 -0
- package/dist/shared/focus.d.ts +4 -6
- package/dist/shared/focus.js +1 -1
- package/dist/shared/form.d.ts +1 -0
- package/dist/shared/geometry.d.ts +1 -0
- package/dist/shared/time-picker.d.ts +1 -0
- package/dist/shared/time-picker.js +1 -1
- package/dist/shared/tree.d.ts +1 -0
- package/dist/shared/value.d.ts +1 -0
- package/dist/shared/vue.d.ts +2 -2
- package/dist/shared/vue.js +1 -1
- package/dist/types/color.d.ts +0 -1
- package/dist/types/component.d.ts +8 -4
- package/dist/types/event.d.ts +0 -1
- package/dist/types/path.d.ts +2 -3
- package/dist/types/vue.d.ts +5 -6
- package/package.json +21 -18
- package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/defineProperty.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/toPrimitive.js +0 -1
- package/dist/_virtual/_@oxc-project_runtime@0.135.0/helpers/esm/toPropertyKey.js +0 -1
- package/dist/components/layout/layout-classic-compact.js +0 -1
- package/dist/components/layout/layout-classic-compact.vue.d.ts +0 -28
- package/dist/components/layout/layout-classic-placeholder.js +0 -1
- package/dist/components/layout/layout-classic-root.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PopperRootProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/popper/popper-root.vue.d.ts
|
|
4
3
|
declare var __VLS_1: {};
|
|
5
4
|
type __VLS_Slots = {} & {
|
|
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
//#endregion
|
|
17
|
-
export { _default };
|
|
16
|
+
export { _default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import"../../shared/index.js";import{arrow as t,flip as n,hide as r,limitShift as i,offset as a,shift as o,size as s}from"@floating-ui/dom";import{getAlignment as c,getSide as l}from"@floating-ui/utils";const u={transformOrigin:`--soybean-popper-transform-origin`,availableWidth:`--soybean-popper-available-width`,availableHeight:`--soybean-popper-available-height`,anchorWidth:`--soybean-popper-anchor-width`,anchorHeight:`--soybean-popper-anchor-height`};function d(){return{placement:void 0,side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionPadding:0,collisionBoundary:()=>[],sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1}}const f={start:`0%`,center:`50%`,end:`100%`},p={bottom:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({arrowHeight:e})=>`${-e}px`},top:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({floatingHeight:e,arrowHeight:t})=>`${e+t}px`},right:{getX:({arrowHeight:e})=>`${-e}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`},left:{getX:({floatingWidth:e,arrowHeight:t})=>`${e+t}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`}};function m(e,d){let{sideOffset:m=0,alignOffset:g=0,sideFlip:_,alignFlip:v,prioritizePosition:y,sticky:b,avoidCollisions:x,arrowPadding:S,hideWhenDetached:C}=e,w=h(e),T=[a(()=>
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import"../../shared/index.js";import{arrow as t,flip as n,hide as r,limitShift as i,offset as a,shift as o,size as s}from"@floating-ui/dom";import{getAlignment as c,getSide as l}from"@floating-ui/utils";const u={transformOrigin:`--soybean-popper-transform-origin`,availableWidth:`--soybean-popper-available-width`,availableHeight:`--soybean-popper-available-height`,anchorWidth:`--soybean-popper-anchor-width`,anchorHeight:`--soybean-popper-anchor-height`};function d(){return{placement:void 0,side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionPadding:0,collisionBoundary:()=>[],sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1}}const f={start:`0%`,center:`50%`,end:`100%`},p={bottom:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({arrowHeight:e})=>`${-e}px`},top:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({floatingHeight:e,arrowHeight:t})=>`${e+t}px`},right:{getX:({arrowHeight:e})=>`${-e}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`},left:{getX:({floatingWidth:e,arrowHeight:t})=>`${e+t}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`}};function m(e,d){let{sideOffset:m=0,alignOffset:g=0,sideFlip:_,alignFlip:v,prioritizePosition:y,sticky:b,avoidCollisions:x,arrowPadding:S,hideWhenDetached:C}=e,w=h(e),T=[a(()=>{let e=d?.clientHeight??0;return{mainAxis:m+e,crossAxis:g,alignmentAxis:g}})];if(x){let e=[o({mainAxis:!0,crossAxis:!!y,limiter:b===`partial`?i():void 0,...w})],t=n({mainAxis:_,crossAxis:v,...w});y?e.unshift(t):e.push(t),T.push(...e)}return T.push(s({...w,apply:({elements:{floating:e},rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference;e.style.setProperty(u.availableWidth,`${n}px`),e.style.setProperty(u.availableHeight,`${r}px`),e.style.setProperty(u.anchorWidth,`${i}px`),e.style.setProperty(u.anchorHeight,`${a}px`)}})),d&&T.push(t({element:d,padding:S}),{name:`transformOrigin`,fn(e){let{placement:t,rects:n,middlewareData:r}=e,i=r.arrow?.centerOffset!==0,{width:a,height:o}=d.getBoundingClientRect(),s=i?0:a,u=i?0:o,m=l(t),h=c(t)??`center`,g=f[h],_=(r.arrow?.x??0)+s/2,v=(r.arrow?.y??0)+u/2,y=p[m],b={isArrowHidden:i,noArrowAlign:g,arrowXCenter:_,arrowYCenter:v,arrowHeight:o,floatingWidth:n.floating.width,floatingHeight:n.floating.height};return{data:{x:y.getX(b),y:y.getY(b)}}}}),C&&T.push(r({strategy:`referenceHidden`,...w})),T.filter(Boolean)}function h(t){let{collisionPadding:n,collisionBoundary:r}=t,i={top:1,right:1,bottom:1,left:1};typeof n==`number`?(i.top+=n,i.right+=n,i.bottom+=n,i.left+=n):n&&(i.top+=n.top??0,i.right+=n.right??0,i.bottom+=n.bottom??0,i.left+=n.left??0);let a=Array.isArray(r)?r:[r],o=a.length>0;return{padding:i,boundary:a.filter(t=>!e(t)),altBoundary:o}}function g(e,t){let n=e;return t!==`center`&&(n+=`-${t}`),n}export{d as createPopperPositionerDefaultProps,m as getFloatingUiMiddleware,g as getPlacement,u as popperCssVars};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Align, Direction, Placement as Placement$1, UiClass } from "../../types/common.js";
|
|
2
2
|
import { BaseProps } from "../../types/vue.js";
|
|
3
|
+
import "../../types/index.js";
|
|
3
4
|
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
5
|
import { ComputedRef } from "vue";
|
|
5
6
|
import { Padding, ReferenceElement, Side } from "@floating-ui/dom";
|
|
6
|
-
|
|
7
7
|
//#region src/components/popper/types.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Properties for the PopperRoot component.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PortalProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/portal/portal.vue.d.ts
|
|
4
3
|
declare var __VLS_7: {};
|
|
5
4
|
type __VLS_Slots = {} & {
|
|
@@ -16,4 +15,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
//#endregion
|
|
19
|
-
export { _default };
|
|
18
|
+
export { _default as default };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
+
import "../../composables/index.js";
|
|
3
4
|
import { ProgressProviderUiSlot, ProgressUiSlot } from "./types.js";
|
|
5
|
+
import "../../index.js";
|
|
4
6
|
//#region src/components/progress/context.d.ts
|
|
5
7
|
declare const provideProgressUi: (ui: import("vue").ComputedRef<Partial<UiClass<ProgressUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<ProgressUiSlot>>>, useProgressUi: UseUiConsumer<ProgressUiSlot>;
|
|
6
8
|
declare const provideProgressProviderUi: (ui: import("vue").ComputedRef<Partial<UiClass<ProgressProviderUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<ProgressProviderUiSlot>>>, useProgressProviderUi: UseUiConsumer<ProgressProviderUiSlot>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ProgressCircleCompactEmits, ProgressCircleCompactProps, ProgressCircleCompactSlots, ProgressCircleSvgProps, ProgressCompactEmits, ProgressCompactProps, ProgressCompactSlots, ProgressIndicatorProps, ProgressOptions, ProgressProviderProps, ProgressRootEmits, ProgressRootProps, ProgressSlotProps, ProgressState, ProgressUi, ProgressUiSlot } from "./types.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import _default$4 from "./progress-provider.vue.js";
|
|
3
|
+
import _default$2 from "./progress-compact.vue.js";
|
|
4
|
+
import _default$1 from "./progress-circle-compact.vue.js";
|
|
5
|
+
import _default$5 from "./progress-root.vue.js";
|
|
6
|
+
import _default$3 from "./progress-indicator.vue.js";
|
|
7
|
+
import _default from "./progress-circle-svg.vue.js";
|
|
8
8
|
import { provideProgressProviderUi, provideProgressUi } from "./context.js";
|
|
9
9
|
import { progress } from "./state.js";
|
|
10
10
|
export { _default as ProgressCircle, _default$1 as ProgressCircleCompact, type ProgressCircleCompactEmits, type ProgressCircleCompactProps, type ProgressCircleCompactSlots, type ProgressCircleSvgProps, _default$2 as ProgressCompact, type ProgressCompactEmits, type ProgressCompactProps, type ProgressCompactSlots, _default$3 as ProgressIndicator, type ProgressIndicatorProps, type ProgressOptions, _default$4 as ProgressProvider, type ProgressProviderProps, _default$5 as ProgressRoot, type ProgressRootEmits, type ProgressRootProps, type ProgressSlotProps, type ProgressState, type ProgressUi, type ProgressUiSlot, progress, provideProgressProviderUi, provideProgressUi };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProgressCircleCompactProps, ProgressCircleCompactSlots } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-circle-compact.vue.d.ts
|
|
4
3
|
type __VLS_Slots = ProgressCircleCompactSlots;
|
|
5
4
|
declare const __VLS_base: import("vue").DefineComponent<ProgressCircleCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -17,4 +16,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { _default };
|
|
19
|
+
export { _default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProgressCircleSvgProps, ProgressState } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-circle-svg.vue.d.ts
|
|
4
3
|
declare var __VLS_1: {
|
|
5
4
|
modelValue: number | null | undefined;
|
|
@@ -21,4 +20,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
22
|
//#endregion
|
|
24
|
-
export { _default };
|
|
23
|
+
export { _default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProgressCompactProps, ProgressCompactSlots } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-compact.vue.d.ts
|
|
4
3
|
type __VLS_Slots = ProgressCompactSlots;
|
|
5
4
|
declare const __VLS_base: import("vue").DefineComponent<ProgressCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -17,4 +16,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { _default };
|
|
19
|
+
export { _default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProgressIndicatorProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-indicator.vue.d.ts
|
|
4
3
|
declare var __VLS_8: {};
|
|
5
4
|
type __VLS_Slots = {} & {
|
|
@@ -14,4 +13,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
//#endregion
|
|
17
|
-
export { _default };
|
|
16
|
+
export { _default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProgressProviderProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-provider.vue.d.ts
|
|
4
3
|
declare const __VLS_export: import("vue").DefineComponent<ProgressProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
4
|
declare const _default: typeof __VLS_export;
|
|
6
5
|
//#endregion
|
|
7
|
-
export { _default };
|
|
6
|
+
export { _default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{useDirection as t}from"../config-provider/context.js";import"../../shared/index.js";import{useControllableState as
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{useDirection as t}from"../config-provider/context.js";import{useLocaleMessages as n}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useOmitProps as i}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as a}from"../primitive/primitive.js";import"../primitive/index.js";import{provideProgressRootContext as o,useProgressUi as s}from"./context.js";import{getValidMax as c,getValidModelValue as l,getValueLabel as u}from"./shared.js";import{computed as d,createBlock as f,defineComponent as p,mergeProps as m,openBlock as h,renderSlot as g,unref as _,useAttrs as v,watch as y,withCtx as b}from"vue";const x=p({name:`ProgressRoot`,inheritAttrs:!1,__name:`progress-root`,props:{dir:{},modelValue:{},max:{},getValueLabel:{type:Function,default:u},getValueText:{},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:max`],setup(u,{emit:p}){let x=u,S=p,C=v(),w=n(),T=s(`root`),E=r(()=>x.modelValue,e=>{S(`update:modelValue`,e)},null),D=r(()=>x.max,e=>{S(`update:max`,e)},100),O=t(()=>x.dir),k=d(()=>c(D.value)),A=d(()=>l(E.value,k.value)),j=d(()=>typeof A.value==`number`?{"aria-valuenow":A.value}:{}),M=i(x,[`modelValue`,`max`,`getValueLabel`,`getValueText`],C,j),N=d(()=>e(A.value)?`indeterminate`:A.value===k.value?`complete`:`loading`),P=d(()=>e(A.value)?null:A.value/k.value*100),F=d(()=>x.getValueLabel?.(A.value,k.value)),I=d(()=>x.getValueText?.(A.value,k.value));function L(e){return typeof e==`string`&&e.trim().length>0?e:void 0}function R(e){return L(C[e])}let z=d(()=>R(`aria-label`)??L(F.value)??w.value.progress.ariaLabel),B=d(()=>R(`aria-valuetext`)??L(I.value));return y(k,e=>{e!==D.value&&(D.value=e)},{immediate:!0}),y(A,e=>{e!==E.value&&(E.value=e)},{immediate:!0}),o({dir:O,modelValue:A,max:k,progressState:N,valuePercent:P}),(e,t)=>(h(),f(_(a),m(_(M),{"data-soybean-progress-root":``,class:_(T),role:`progressbar`,"aria-label":z.value,"aria-valuemin":0,"aria-valuemax":k.value,"aria-valuetext":B.value,"data-state":N.value,"data-value":A.value??void 0,"data-max":k.value}),{default:b(()=>[g(e.$slots,`default`,{modelValue:A.value,max:k.value,progressState:N.value,valuePercent:P.value})]),_:3},16,[`class`,`aria-label`,`aria-valuemax`,`aria-valuetext`,`data-state`,`data-value`,`data-max`]))}});export{x as default};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ProgressRootProps, ProgressState } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/progress/progress-root.vue.d.ts
|
|
4
3
|
declare var __VLS_8: {
|
|
5
4
|
modelValue: number | null;
|
|
@@ -27,4 +26,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
28
|
//#endregion
|
|
30
|
-
export { _default };
|
|
29
|
+
export { _default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import
|
|
1
|
+
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import n from"../../_virtual/_@oxc-project_runtime@0.143.0/helpers/esm/defineProperty.js";import{defu as r}from"defu";const i={direction:`ltr`,minimum:.08,maximum:1,easing:`linear`,speed:200,trickle:!0,trickleSpeed:200};var a=class{static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.options=i,this.clearTrickleTimer(),this}static configure(e){return this.options=r({...e},this.options),this}static isStarted(){return typeof this.status==`number`}static isRendered(){return t?document.querySelector(`[data-soybean-progress-provider]`)!==null:!1}static set(n){if(!t||this.isPaused)return this;let r=this.isStarted();n=e(n,this.options.minimum,this.options.maximum),this.status=n===this.options.maximum?null:n,this.status===null&&this.clearTrickleTimer();let i=this.render(!r),a=this.options.speed,o=this.options.easing;return i.forEach(e=>e.offsetWidth),this.queue(e=>{i.forEach(e=>{c(e.querySelector(`[data-soybean-progress-bar]`),this.barPositionCSS({n,speed:a,ease:o}))}),n===this.options.maximum?(i.forEach(e=>{c(e,{transition:`none`,opacity:`1`}),e.offsetWidth}),setTimeout(()=>{i.forEach(e=>{c(e,{transition:`all ${a}ms ${o}`,opacity:`0`})}),setTimeout(()=>{i.forEach(e=>{this.remove(e),c(e,{transition:`none`,opacity:`1`})}),e()},a)},a)):setTimeout(e,a)}),this}static start(){return t?(this.status||this.set(0),this.options.trickle&&this.startTrickling(),this):this}static done(e){return!t||!e&&!this.status?this:this.inc(.3+.5*Math.random()).set(1)}static inc(t){if(this.isPaused)return this;let n=this.status;return n?n>1?this:(typeof t!=`number`&&(t=n>=0&&n<.2?.1:n>=.2&&n<.5?.04:n>=.5&&n<.8?.02:n>=.8&&n<.99?.005:0),n=e(n+t,0,.994),this.set(n)):this.start()}static dec(t){if(this.isPaused)return this;let n=this.status;return typeof n==`number`?(typeof t!=`number`&&(t=n>.8?.1:n>.5?.05:n>.2?.02:.01),n=e(n-t,0,.994),this.set(n)):this}static trickle(){return this.isPaused?this:this.inc()}static promise(e){let t=typeof e==`function`?e():e;if(!t)return this;if(typeof t.then==`function`)return this.start(),Promise.resolve(t).then(()=>{this.done()},()=>{this.done(!0)}),this;if(typeof t.state!=`function`||typeof t.always!=`function`||t.state()===`resolved`)return this;let n=0,r=0;return this.start(),n++,r++,t.always(()=>{r--,r===0?(n=0,this.done()):this.set((n-r)/n)}),this}static render(e=!1){if(!t)return[];let n=Array.from(document.querySelectorAll(`[data-soybean-progress-provider]`));return n.forEach(t=>{t.style.display=``;let n=t.querySelector(`[data-soybean-progress-bar]`),r=s(e?0:this.status||0,this.options.direction);c(n,this.barPositionCSS({n:this.status||0,speed:this.options.speed,ease:this.options.easing,percent:r})),typeof this.status==`number`?t.setAttribute(`aria-valuenow`,`${this.status}`):t.removeAttribute(`aria-valuenow`)}),n}static remove(e){t&&(this.clearTrickleTimer(),e?e.style.display=`none`:document.querySelectorAll(`[data-soybean-progress-provider]`).forEach(e=>{let t=e;t.style.display=`none`}))}static pause(){return this.isStarted()?(this.isPaused=!0,this.clearTrickleTimer(),this):this}static resume(){return this.isStarted()?(this.isPaused=!1,this.options.trickle&&this.startTrickling(),this):this}static queue(e){this.pending.push(e),this.pending.length===1&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static clearTrickleTimer(){this.trickleTimer&&(clearTimeout(this.trickleTimer),this.trickleTimer=void 0)}static startTrickling(){if(this.trickleTimer||this.isPaused||!this.isStarted())return;let e=()=>{this.trickleTimer=void 0,!(this.isPaused||!this.isStarted())&&(this.trickle(),!this.isPaused&&this.isStarted()&&(this.trickleTimer=setTimeout(e,this.options.trickleSpeed)))};this.trickleTimer=setTimeout(e,this.options.trickleSpeed)}static barPositionCSS({n:e,speed:t,ease:n,percent:r}){return{transform:`translate3d(${r??s(e,this.options.direction)}%,0,0)`,transition:`all ${t}ms ${n}`}}};n(a,`options`,i),n(a,`status`,null),n(a,`pending`,[]),n(a,`isPaused`,!1),n(a,`trickleTimer`,void 0);const o=a;function s(e,t){return t===`rtl`?(1-e)*100:(-1+e)*100}function c(e,t,n){if(typeof t==`string`)n!==void 0&&(e.style[t]=n);else for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];r!==void 0&&(e.style[n]=r)}}export{o as progress};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { BaseProps } from "../../types/vue.js";
|
|
3
|
+
import "../../types/index.js";
|
|
3
4
|
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
4
5
|
import { ComputedRef, SVGAttributes } from "vue";
|
|
5
|
-
|
|
6
6
|
//#region src/components/progress/types.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* State values for ProgressState.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
4
|
+
import "../../composables/index.js";
|
|
3
5
|
import { RadioGroupCardUiSlot, RadioGroupUiSlot } from "./types.js";
|
|
6
|
+
import "../../index.js";
|
|
4
7
|
//#region src/components/radio-group/context.d.ts
|
|
5
8
|
declare const provideRadioGroupUi: (ui: import("vue").ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: UseUiConsumer<RadioGroupUiSlot>;
|
|
6
9
|
declare const provideRadioGroupCardUi: (ui: import("vue").ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>) => import("vue").ComputedRef<Partial<UiClass<RadioGroupCardUiSlot>>>, useRadioGroupCardUi: UseUiConsumer<RadioGroupCardUiSlot>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
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
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
3
|
+
import _default$1 from "./radio-group-compact.vue.js";
|
|
4
|
+
import _default from "./radio-group-card-compact.vue.js";
|
|
5
|
+
import _default$6 from "./radio-group-root.vue.js";
|
|
6
|
+
import _default$4 from "./radio-group-item.vue.js";
|
|
7
|
+
import _default$2 from "./radio-group-control.vue.js";
|
|
8
|
+
import _default$3 from "./radio-group-indicator.vue.js";
|
|
9
|
+
import _default$5 from "./radio-group-label.vue.js";
|
|
10
10
|
import { provideRadioGroupCardUi, provideRadioGroupUi } from "./context.js";
|
|
11
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{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};
|
|
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`,`contentProps`,`textContentProps`,`descriptionProps`]),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};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/radio-group/radio-group-card-compact.vue.d.ts
|
|
4
3
|
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<{
|
|
5
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupCardCompactProps<T> & {
|
|
@@ -12,9 +11,9 @@ declare const __VLS_export: <T extends RadioGroupCardOptionData>(__VLS_props: No
|
|
|
12
11
|
slots: RadioGroupCardCompactSlots<T>;
|
|
13
12
|
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
14
13
|
}>) => import("vue").VNode & {
|
|
15
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
14
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
15
|
};
|
|
17
16
|
declare const _default: typeof __VLS_export;
|
|
18
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { _default };
|
|
19
|
+
export { _default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RadioGroupCompactProps, RadioGroupOptionData } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/radio-group/radio-group-compact.vue.d.ts
|
|
4
3
|
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<{
|
|
5
4
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupCompactProps<T> & {
|
|
@@ -12,9 +11,9 @@ declare const __VLS_export: <T extends RadioGroupOptionData>(__VLS_props: NonNul
|
|
|
12
11
|
slots: {};
|
|
13
12
|
emit: (evt: "update:modelValue", payload: T["value"] | null) => void;
|
|
14
13
|
}>) => import("vue").VNode & {
|
|
15
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
14
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
15
|
};
|
|
17
16
|
declare const _default: typeof __VLS_export;
|
|
18
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
19
18
|
//#endregion
|
|
20
|
-
export { _default };
|
|
19
|
+
export { _default as default };
|
|
@@ -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"../button/button.js";import
|
|
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{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import i from"../button/button.js";import a from"../roving-focus/roving-focus-item.js";import"../roving-focus/index.js";import{useRadioGroupItemContext as o,useRadioGroupRootContext as s,useRadioGroupUi as c}from"./context.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,mergeProps as p,onBeforeUnmount as m,onMounted as h,openBlock as g,renderSlot as _,unref as v,useAttrs as y,watchEffect as b,withCtx as x,withKeys as S,withModifiers as C}from"vue";const w=f({name:`RadioGroupControl`,__name:`radio-group-control`,props:{id:{},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(f){let w=f,T=y(),E=c(`control`),[D,O]=r(),k=s(`RadioGroupControl`),{value:A,disabled:j,name:M,required:N,checked:P,dataState:F,onSelect:I,initControlId:L}=o(`RadioGroupControl`),R=l(()=>t(D.value)),z=l(()=>e(D.value,w.id,T[`aria-label`])),B=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],V=!1;function H(e){B.includes(e.key)&&(V=!0)}function U(){V=!1}function W(e){let t={originalEvent:e,value:A.value};n(`radio.select`,t=>{I(t),!t?.defaultPrevented&&(k.modelValue.value=A.value,R.value&&e.stopPropagation())},t)}function G(){setTimeout(()=>{V&&D.value?.click()},0)}return b(()=>{w.id&&L(w.id)}),h(()=>{document.addEventListener(`keydown`,H),document.addEventListener(`keyup`,U)}),m(()=>{document.removeEventListener(`keydown`,H),document.removeEventListener(`keyup`,U)}),(e,t)=>(g(),u(v(a),{"as-child":``,checked:v(P),focusable:!v(j),active:v(P)},{default:x(()=>[d(i,p({ref:v(O)},w,{"data-soybean-radio-group-control":``,class:v(E),role:`radio`,disabled:v(j),"aria-checked":v(P),"aria-label":z.value,"data-state":v(F),value:String(v(A)),required:v(N),name:v(M),onClick:C(W,[`stop`]),onKeydown:S(C(W,[`prevent`]),[`enter`]),onFocus:G}),{default:x(()=>[_(e.$slots,`default`,{checked:v(P),required:v(N),disabled:v(j)})]),_:3},16,[`class`,`disabled`,`aria-checked`,`aria-label`,`data-state`,`value`,`required`,`name`,`onKeydown`])]),_:3},8,[`checked`,`focusable`,`active`]))}});export{w as default};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { RadioGroupControlProps } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/radio-group/radio-group-control.vue.d.ts
|
|
4
|
-
declare var
|
|
3
|
+
declare var __VLS_18: {
|
|
5
4
|
checked: boolean;
|
|
6
5
|
required: boolean | undefined;
|
|
7
6
|
disabled: boolean | undefined;
|
|
8
7
|
};
|
|
9
8
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_18) => any;
|
|
11
10
|
};
|
|
12
11
|
declare const __VLS_base: import("vue").DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -18,4 +17,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
//#endregion
|
|
21
|
-
export { _default };
|
|
20
|
+
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import "../primitive/index.js";
|
|
2
3
|
import { RadioGroupIndicatorProps } from "./types.js";
|
|
3
|
-
|
|
4
4
|
//#region src/components/radio-group/radio-group-indicator.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
@@ -17,4 +17,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
//#endregion
|
|
20
|
-
export { _default };
|
|
20
|
+
export { _default as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RadioGroupItemProps, RadioSelectEvent } from "./types.js";
|
|
2
|
-
|
|
3
2
|
//#region src/components/radio-group/radio-group-item.vue.d.ts
|
|
4
3
|
declare var __VLS_1: {
|
|
5
4
|
checked: boolean;
|
|
@@ -20,4 +19,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
//#endregion
|
|
23
|
-
export { _default };
|
|
22
|
+
export { _default as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
|
+
import "./types.js";
|
|
2
3
|
//#region src/components/radio-group/radio-group-label.vue.d.ts
|
|
3
4
|
declare var __VLS_8: {};
|
|
4
5
|
type __VLS_Slots = {} & {
|
|
@@ -13,4 +14,4 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
13
14
|
};
|
|
14
15
|
};
|
|
15
16
|
//#endregion
|
|
16
|
-
export { _default };
|
|
17
|
+
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefinedWithBooleanValue } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
2
3
|
import { RadioGroupRootProps } from "./types.js";
|
|
3
|
-
|
|
4
4
|
//#region src/components/radio-group/radio-group-root.vue.d.ts
|
|
5
5
|
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<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
|
|
@@ -17,9 +17,9 @@ declare const __VLS_export: <T extends DefinedWithBooleanValue>(__VLS_props: Non
|
|
|
17
17
|
};
|
|
18
18
|
emit: (evt: "update:modelValue", payload: T | null) => void;
|
|
19
19
|
}>) => import("vue").VNode & {
|
|
20
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
20
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
21
21
|
};
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
23
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
24
24
|
//#endregion
|
|
25
|
-
export { _default };
|
|
25
|
+
export { _default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DataOrientation, DefinedWithBooleanValue, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
3
3
|
import { BaseProps } from "../../types/vue.js";
|
|
4
|
+
import "../../types/index.js";
|
|
4
5
|
import { IconValue } from "../_icon/types.js";
|
|
5
6
|
import { PrimitiveWithBaseProps } from "../primitive/types.js";
|
|
6
7
|
import { ButtonProps } from "../button/types.js";
|
|
7
8
|
import { LabelProps } from "../label/types.js";
|
|
8
9
|
import { ComputedRef, ShallowRef } from "vue";
|
|
9
|
-
|
|
10
10
|
//#region src/components/radio-group/types.d.ts
|
|
11
11
|
/**
|
|
12
12
|
* Properties for the RadioGroupRoot component.
|
|
@@ -32,7 +32,8 @@ interface RadioGroupRootProps<T extends DefinedWithBooleanValue = DefinedWithBoo
|
|
|
32
32
|
* Events for the RadioGroupRoot component.
|
|
33
33
|
*/
|
|
34
34
|
type RadioGroupRootEmits<T extends DefinedWithBooleanValue> = {
|
|
35
|
-
/** Event handler called when the radio group value changes */
|
|
35
|
+
/** Event handler called when the radio group value changes */
|
|
36
|
+
'update:modelValue': [payload: T | null];
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Properties for the RadioGroupItem component.
|
|
@@ -50,7 +51,7 @@ type RadioSelectEvent = CustomEvent<{
|
|
|
50
51
|
/**
|
|
51
52
|
* Original event.
|
|
52
53
|
*/
|
|
53
|
-
originalEvent: MouseEvent;
|
|
54
|
+
originalEvent: MouseEvent | KeyboardEvent;
|
|
54
55
|
/**
|
|
55
56
|
* Value associated with the current item.
|
|
56
57
|
*/
|
|
@@ -60,7 +61,8 @@ type RadioSelectEvent = CustomEvent<{
|
|
|
60
61
|
* Events for the RadioGroupItem component.
|
|
61
62
|
*/
|
|
62
63
|
type RadioGroupItemEmits = {
|
|
63
|
-
/** Event handler called when the radio item is selected */
|
|
64
|
+
/** Event handler called when the radio item is selected */
|
|
65
|
+
select: [event: RadioSelectEvent];
|
|
64
66
|
};
|
|
65
67
|
/**
|
|
66
68
|
* Properties for the RadioGroupControl component.
|
|
@@ -181,4 +183,4 @@ type RadioGroupCardUiSlot = RadioGroupUiSlot | 'content' | 'textContent' | 'desc
|
|
|
181
183
|
*/
|
|
182
184
|
type RadioGroupCardUi = UiClass<RadioGroupCardUiSlot>;
|
|
183
185
|
//#endregion
|
|
184
|
-
export { RadioGroupCardCompactEmits, RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData, RadioGroupCardUi, RadioGroupCardUiSlot, RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
186
|
+
export { RadioGroupCardCompactEmits, RadioGroupCardCompactProps, RadioGroupCardCompactSlots, RadioGroupCardOptionData, RadioGroupCardUi, RadioGroupCardUiSlot, RadioGroupCompactEmits, RadioGroupCompactProps, RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, type LabelProps as RadioGroupLabelProps, RadioGroupOptionData, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import"../../composables/index.js";const[t,n]=e(`RatingRoot`);export{t as provideRatingRootContext,n as useRatingRootContext};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RatingItemEmits, RatingItemProps, RatingItemState, RatingRootContext, RatingRootEmits, RatingRootProps } from "./types.js";
|
|
2
|
+
import _default from "./rating-item.vue.js";
|
|
3
|
+
import _default$1 from "./rating-root.vue.js";
|
|
4
|
+
export { _default as RatingItem, type RatingItemEmits, type RatingItemProps, type RatingItemState, _default$1 as RatingRoot, type RatingRootContext, type RatingRootEmits, type RatingRootProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./rating-item.js";import t from"./rating-root.js";export{e as RatingItem,t as RatingRoot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{getRatingItemState as t,getRatingValueFromPointer as n}from"./shared.js";import{useRatingRootContext as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=o({name:`RatingItem`,__name:`rating-item`,props:{index:{},asChild:{type:Boolean},as:{}},setup(o){let d=o,f=r(`RatingItem`),p=i(()=>!!f.allowHalf.value),m=i(()=>!!f.disabled.value),h=i(()=>!!f.readonly.value),g=i(()=>f.dir.value??`ltr`),_=i(()=>t(f.currentModelValue.value,f.hoverValue.value,d.index,p.value)),v=i(()=>d.index+1),y=i(()=>m.value?``:void 0),b=i(()=>h.value?``:void 0);function x(e){let t=e.currentTarget.getBoundingClientRect();return n(e,t,d.index,p.value,g.value)}function S(e){m.value||h.value||f.setHover(x(e))}function C(){m.value||h.value||f.setHover(d.index+1)}function w(e){m.value||h.value||f.setValue(x(e))}return(t,n)=>(s(),a(l(e),{as:o.as,"as-child":o.asChild,"data-soybean-rating-item":``,"data-state":_.value,"data-index":o.index,"data-disabled":y.value,"data-readonly":b.value,tabindex:`-1`,onPointermove:S,onPointerenter:C,onClick:w},{default:u(()=>[c(t.$slots,`default`,{index:o.index,value:v.value,state:_.value})]),_:3},8,[`as`,`as-child`,`data-state`,`data-index`,`data-disabled`,`data-readonly`]))}});export{d as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RatingItemProps, RatingItemState } from "./types.js";
|
|
2
|
+
//#region src/components/rating/rating-item.vue.d.ts
|
|
3
|
+
declare var __VLS_12: {
|
|
4
|
+
index: number;
|
|
5
|
+
value: number;
|
|
6
|
+
state: RatingItemState;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_12) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<RatingItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RatingItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{interpolate as e}from"../../shared/string.js";import{isFormControl as t}from"../../shared/vue.js";import{useDirection as n}from"../config-provider/context.js";import{useLocaleMessages as r}from"../../locale/hooks.js";import"../../locale/index.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as o}from"../primitive/primitive.js";import"../primitive/index.js";import s from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{ARROW_KEYS as c,clampRatingValue as l,getValidRatingMax as u,isRatingBackKey as d,snapRatingToStep as f}from"./shared.js";import{provideRatingRootContext as p}from"./context.js";import{computed as m,createBlock as h,createCommentVNode as g,defineComponent as _,openBlock as v,renderSlot as y,shallowRef as b,unref as x,useAttrs as S,withCtx as C}from"vue";const w=_({name:`RatingRoot`,__name:`rating-root`,props:{modelValue:{default:void 0},defaultValue:{default:0},max:{default:5},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},orientation:{default:`horizontal`},dir:{default:void 0},name:{},required:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`hoverChange`,`valueCommit`],setup(_,{emit:w}){let T=_,E=w,D=S(),[O,k]=a(),A=r(),j=i(()=>T.modelValue,e=>{E(`update:modelValue`,e)},T.defaultValue??0),M=n(()=>T.dir),N=m(()=>T.disabled),P=m(()=>T.readonly),F=m(()=>T.allowHalf),I=m(()=>T.allowClear),L=m(()=>T.orientation===`vertical`?`vertical`:`horizontal`),R=m(()=>u(T.max)),z=m(()=>l(f(j.value??0,F.value),R.value)),B=b(null),V=m(()=>B.value),H=m(()=>L.value===`horizontal`),U=m(()=>t(O.value)),W=m(()=>N.value?``:void 0),G=m(()=>P.value?``:void 0),K=m(()=>P.value?!0:void 0),q=m(()=>N.value?!0:void 0),J=m(()=>N.value?`-1`:`0`),Y=m(()=>{let t=z.value;return t===0?A.value.rating.empty:e(A.value.rating.starN,{count:String(t),max:String(R.value)})}),X=m(()=>{let e=D[`aria-label`];return typeof e==`string`?e:A.value.rating.ariaLabel});function Z(e){if(N.value||P.value)return;let t=f(e,F.value),n=l(t,R.value),r=I.value&&n===z.value?0:n;r!==z.value&&(j.value=r,E(`valueCommit`,r))}function Q(e){if(N.value||P.value)return;let t=f(e,F.value);B.value=t,E(`hoverChange`,t)}function $(){B.value=null,E(`hoverChange`,null)}function ee(e){if(N.value||P.value)return;if(e.key===`Home`){e.preventDefault(),Z(0);return}if(e.key===`End`){e.preventDefault(),Z(R.value);return}if(!c.includes(e.key))return;e.preventDefault();let t=F.value?.5:1,n=d(e.key,M.value,L.value)?-1:1;Z(z.value+n*t)}return p({modelValue:j,currentModelValue:z,hoverValue:V,max:R,allowHalf:F,allowClear:I,readonly:P,disabled:N,dir:M,orientation:L,isHorizontal:H,setValue:Z,setHover:Q,clearHover:$}),(e,t)=>(v(),h(x(o),{ref:x(k),as:_.as,"as-child":_.asChild,"data-soybean-rating-root":``,dir:x(M),"data-disabled":W.value,"data-readonly":G.value,"data-orientation":L.value,role:`slider`,tabindex:J.value,"aria-valuenow":z.value,"aria-valuemin":0,"aria-valuemax":R.value,"aria-valuetext":Y.value,"aria-orientation":L.value,"aria-readonly":K.value,"aria-disabled":q.value,"aria-label":X.value,onKeydown:ee,onPointerleave:$},{default:C(()=>[y(e.$slots,`default`,{value:z.value,hoverValue:V.value}),U.value&&_.name?(v(),h(x(s),{key:0,type:`number`,name:_.name,value:z.value,disabled:N.value,required:_.required},null,8,[`name`,`value`,`disabled`,`required`])):g(`v-if`,!0)]),_:3},8,[`as`,`as-child`,`dir`,`data-disabled`,`data-readonly`,`data-orientation`,`tabindex`,`aria-valuenow`,`aria-valuemax`,`aria-valuetext`,`aria-orientation`,`aria-readonly`,`aria-disabled`,`aria-label`]))}});export{w as default};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
+
import { RatingRootProps } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
//#region src/components/rating/rating-root.vue.d.ts
|
|
5
|
+
declare var __VLS_11: {
|
|
6
|
+
value: number;
|
|
7
|
+
hoverValue: number | null;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_11) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<RatingRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: number) => any;
|
|
14
|
+
hoverChange: (value: number | null) => any;
|
|
15
|
+
valueCommit: (value: number) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<RatingRootProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
18
|
+
onHoverChange?: ((value: number | null) => any) | undefined;
|
|
19
|
+
onValueCommit?: ((value: number) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
dir: Direction;
|
|
23
|
+
max: number;
|
|
24
|
+
orientation: DataOrientation;
|
|
25
|
+
modelValue: number;
|
|
26
|
+
defaultValue: number;
|
|
27
|
+
allowHalf: boolean;
|
|
28
|
+
allowClear: boolean;
|
|
29
|
+
readonly: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { _default as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{clamp as e,snapValueToStep as t}from"../../shared/value.js";import"../../shared/index.js";const n=.5,r=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],i={"ltr-horizontal":[`Home`,`ArrowDown`,`ArrowLeft`],"rtl-horizontal":[`Home`,`ArrowDown`,`ArrowRight`],vertical:[`Home`,`ArrowDown`,`ArrowLeft`]};function a(e,t){return t===`vertical`?`vertical`:e===`rtl`?`rtl-horizontal`:`ltr-horizontal`}function o(e,t,n){return i[a(t,n)].includes(e)}function s(e){return typeof e==`number`&&!Number.isNaN(e)&&e>0?Math.floor(e):5}function c(t,n){return e(t,0,n)}function l(e,n){return n?t(e,0,void 0,.5):Math.round(e)}function u(e,t,n,r){let i=t??e,a=n+1;return i>=a?`full`:r&&i>=a-.5?`half`:`empty`}function d(t,n,r,i,a){let o=n.width;if(o<=0)return r+1;let s=a===`rtl`?n.right-t.clientX:t.clientX-n.left,c=e(s/o,0,1);return i?r+Math.round(c*2)/2:r+1}export{r as ARROW_KEYS,n as RATING_HALF_THRESHOLD,c as clampRatingValue,u as getRatingItemState,d as getRatingValueFromPointer,s as getValidRatingMax,o as isRatingBackKey,l as snapRatingToStep};
|