@soybeanjs/headless 0.0.1-beta.3
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 +143 -0
- package/dist/components/accordion/accordion-content.js +1 -0
- package/dist/components/accordion/accordion-content.vue.d.ts +19 -0
- package/dist/components/accordion/accordion-header.js +1 -0
- package/dist/components/accordion/accordion-header.vue.d.ts +18 -0
- package/dist/components/accordion/accordion-item.js +1 -0
- package/dist/components/accordion/accordion-item.vue.d.ts +23 -0
- package/dist/components/accordion/accordion-root.js +1 -0
- package/dist/components/accordion/accordion-root.vue.d.ts +23 -0
- package/dist/components/accordion/accordion-trigger.js +1 -0
- package/dist/components/accordion/accordion-trigger.vue.d.ts +19 -0
- package/dist/components/accordion/context.d.ts +10 -0
- package/dist/components/accordion/context.js +1 -0
- package/dist/components/accordion/index.d.ts +9 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/shared.js +1 -0
- package/dist/components/accordion/types.d.ts +53 -0
- package/dist/components/alert/alert-close.js +1 -0
- package/dist/components/alert/alert-close.vue.d.ts +18 -0
- package/dist/components/alert/alert-content.js +1 -0
- package/dist/components/alert/alert-content.vue.d.ts +18 -0
- package/dist/components/alert/alert-description.js +1 -0
- package/dist/components/alert/alert-description.vue.d.ts +18 -0
- package/dist/components/alert/alert-root.js +1 -0
- package/dist/components/alert/alert-root.vue.d.ts +24 -0
- package/dist/components/alert/alert-title.js +1 -0
- package/dist/components/alert/alert-title.vue.d.ts +18 -0
- package/dist/components/alert/context.d.ts +8 -0
- package/dist/components/alert/context.js +1 -0
- package/dist/components/alert/index.d.ts +8 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert/types.d.ts +28 -0
- package/dist/components/alert-dialog/alert-dialog-close.js +1 -0
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +19 -0
- package/dist/components/alert-dialog/alert-dialog-content.js +1 -0
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +35 -0
- package/dist/components/alert-dialog/alert-dialog-root.js +1 -0
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +28 -0
- package/dist/components/alert-dialog/context.js +1 -0
- package/dist/components/alert-dialog/index.d.ts +16 -0
- package/dist/components/alert-dialog/index.js +1 -0
- package/dist/components/alert-dialog/types.d.ts +7 -0
- package/dist/components/arrow/arrow.js +1 -0
- package/dist/components/arrow/arrow.vue.d.ts +24 -0
- package/dist/components/arrow/context.d.ts +8 -0
- package/dist/components/arrow/context.js +1 -0
- package/dist/components/arrow/index.d.ts +4 -0
- package/dist/components/arrow/index.js +1 -0
- package/dist/components/arrow/types.d.ts +20 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +22 -0
- package/dist/components/aspect-ratio/index.d.ts +3 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/aspect-ratio/types.d.ts +14 -0
- package/dist/components/avatar/avatar-fallback.js +1 -0
- package/dist/components/avatar/avatar-fallback.vue.d.ts +18 -0
- package/dist/components/avatar/avatar-image.js +1 -0
- package/dist/components/avatar/avatar-image.vue.d.ts +14 -0
- package/dist/components/avatar/avatar-root.js +1 -0
- package/dist/components/avatar/avatar-root.vue.d.ts +18 -0
- package/dist/components/avatar/context.d.ts +9 -0
- package/dist/components/avatar/context.js +1 -0
- package/dist/components/avatar/index.d.ts +6 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/types.d.ts +37 -0
- package/dist/components/badge/badge-content.js +1 -0
- package/dist/components/badge/badge-content.vue.d.ts +18 -0
- package/dist/components/badge/badge-root.js +1 -0
- package/dist/components/badge/badge-root.vue.d.ts +24 -0
- package/dist/components/badge/context.d.ts +6 -0
- package/dist/components/badge/context.js +1 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/types.d.ts +19 -0
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +18 -0
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +18 -0
- package/dist/components/breadcrumb/context.d.ts +6 -0
- package/dist/components/breadcrumb/context.js +1 -0
- package/dist/components/breadcrumb/index.d.ts +10 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/breadcrumb/types.d.ts +20 -0
- package/dist/components/button/button.js +1 -0
- package/dist/components/button/button.vue.d.ts +26 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/types.d.ts +12 -0
- package/dist/components/card/card-content.js +1 -0
- package/dist/components/card/card-content.vue.d.ts +18 -0
- package/dist/components/card/card-description.js +1 -0
- package/dist/components/card/card-description.vue.d.ts +18 -0
- package/dist/components/card/card-footer.js +1 -0
- package/dist/components/card/card-footer.vue.d.ts +18 -0
- package/dist/components/card/card-header.js +1 -0
- package/dist/components/card/card-header.vue.d.ts +18 -0
- package/dist/components/card/card-root.js +1 -0
- package/dist/components/card/card-root.vue.d.ts +18 -0
- package/dist/components/card/card-title-root.js +1 -0
- package/dist/components/card/card-title-root.vue.d.ts +18 -0
- package/dist/components/card/card-title.js +1 -0
- package/dist/components/card/card-title.vue.d.ts +18 -0
- package/dist/components/card/context.d.ts +6 -0
- package/dist/components/card/context.js +1 -0
- package/dist/components/card/index.d.ts +10 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/types.d.ts +19 -0
- package/dist/components/checkbox/checkbox-control.js +1 -0
- package/dist/components/checkbox/checkbox-control.vue.d.ts +23 -0
- package/dist/components/checkbox/checkbox-group-root.js +1 -0
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +23 -0
- package/dist/components/checkbox/checkbox-indicator.js +1 -0
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +22 -0
- package/dist/components/checkbox/checkbox-label.js +1 -0
- package/dist/components/checkbox/checkbox-label.vue.d.ts +19 -0
- package/dist/components/checkbox/checkbox-root.js +1 -0
- package/dist/components/checkbox/checkbox-root.vue.d.ts +31 -0
- package/dist/components/checkbox/context.d.ts +9 -0
- package/dist/components/checkbox/context.js +1 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/types.d.ts +65 -0
- package/dist/components/collapsible/collapsible-content.js +1 -0
- package/dist/components/collapsible/collapsible-content.vue.d.ts +18 -0
- package/dist/components/collapsible/collapsible-root.js +1 -0
- package/dist/components/collapsible/collapsible-root.vue.d.ts +30 -0
- package/dist/components/collapsible/collapsible-trigger.js +1 -0
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +22 -0
- package/dist/components/collapsible/context.d.ts +9 -0
- package/dist/components/collapsible/context.js +1 -0
- package/dist/components/collapsible/index.d.ts +6 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/collapsible/shared.js +1 -0
- package/dist/components/collapsible/types.d.ts +34 -0
- package/dist/components/config-provider/config-provider.js +1 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +27 -0
- package/dist/components/config-provider/context.js +1 -0
- package/dist/components/config-provider/index.d.ts +3 -0
- package/dist/components/config-provider/index.js +1 -0
- package/dist/components/config-provider/types.d.ts +47 -0
- package/dist/components/context-menu/context-menu-content.js +1 -0
- package/dist/components/context-menu/context-menu-content.vue.d.ts +38 -0
- package/dist/components/context-menu/context-menu-root.js +1 -0
- package/dist/components/context-menu/context-menu-root.vue.d.ts +27 -0
- package/dist/components/context-menu/context-menu-trigger.js +1 -0
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +23 -0
- package/dist/components/context-menu/context.js +1 -0
- package/dist/components/context-menu/index.d.ts +26 -0
- package/dist/components/context-menu/index.js +1 -0
- package/dist/components/context-menu/types.d.ts +18 -0
- package/dist/components/dialog/context.d.ts +10 -0
- package/dist/components/dialog/context.js +1 -0
- package/dist/components/dialog/dialog-close.js +1 -0
- package/dist/components/dialog/dialog-close.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-content-impl.js +1 -0
- package/dist/components/dialog/dialog-content.js +1 -0
- package/dist/components/dialog/dialog-content.vue.d.ts +34 -0
- package/dist/components/dialog/dialog-description.js +1 -0
- package/dist/components/dialog/dialog-description.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-footer.js +1 -0
- package/dist/components/dialog/dialog-footer.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-header.js +1 -0
- package/dist/components/dialog/dialog-header.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-overlay.js +1 -0
- package/dist/components/dialog/dialog-overlay.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-root.js +1 -0
- package/dist/components/dialog/dialog-root.vue.d.ts +29 -0
- package/dist/components/dialog/dialog-title.js +1 -0
- package/dist/components/dialog/dialog-title.vue.d.ts +18 -0
- package/dist/components/dialog/dialog-trigger.js +1 -0
- package/dist/components/dialog/dialog-trigger.vue.d.ts +18 -0
- package/dist/components/dialog/index.d.ts +14 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/dialog/shared.js +1 -0
- package/dist/components/dialog/types.d.ts +50 -0
- package/dist/components/dropdown-menu/context.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +42 -0
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +30 -0
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +23 -0
- package/dist/components/dropdown-menu/index.d.ts +26 -0
- package/dist/components/dropdown-menu/index.js +1 -0
- package/dist/components/dropdown-menu/shared.js +1 -0
- package/dist/components/dropdown-menu/types.d.ts +33 -0
- package/dist/components/form/context.d.ts +7 -0
- package/dist/components/form/context.js +1 -0
- package/dist/components/form/form-description.js +1 -0
- package/dist/components/form/form-description.vue.d.ts +18 -0
- package/dist/components/form/form-error.js +1 -0
- package/dist/components/form/form-error.vue.d.ts +18 -0
- package/dist/components/form/form-field-array.js +1 -0
- package/dist/components/form/form-field-array.vue.d.ts +36 -0
- package/dist/components/form/form-field.js +1 -0
- package/dist/components/form/form-field.vue.d.ts +32 -0
- package/dist/components/form/form-label.js +1 -0
- package/dist/components/form/form-label.vue.d.ts +18 -0
- package/dist/components/form/index.d.ts +8 -0
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/types.d.ts +22 -0
- package/dist/components/input/context.d.ts +6 -0
- package/dist/components/input/context.js +1 -0
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input-control.js +1 -0
- package/dist/components/input/input-control.vue.d.ts +8 -0
- package/dist/components/input/input-root.js +1 -0
- package/dist/components/input/input-root.vue.d.ts +27 -0
- package/dist/components/input/types.d.ts +41 -0
- package/dist/components/kbd/index.d.ts +3 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/kbd.js +1 -0
- package/dist/components/kbd/kbd.vue.d.ts +18 -0
- package/dist/components/kbd/types.d.ts +20 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/index.js +1 -0
- package/dist/components/label/label.js +1 -0
- package/dist/components/label/label.vue.d.ts +18 -0
- package/dist/components/label/types.d.ts +9 -0
- package/dist/components/layout/context.d.ts +8 -0
- package/dist/components/layout/context.js +1 -0
- package/dist/components/layout/index.d.ts +12 -0
- package/dist/components/layout/index.js +1 -0
- package/dist/components/layout/layout-footer.js +1 -0
- package/dist/components/layout/layout-footer.vue.d.ts +18 -0
- package/dist/components/layout/layout-header.js +1 -0
- package/dist/components/layout/layout-header.vue.d.ts +18 -0
- package/dist/components/layout/layout-main.js +1 -0
- package/dist/components/layout/layout-main.vue.d.ts +18 -0
- package/dist/components/layout/layout-mobile.js +1 -0
- package/dist/components/layout/layout-mobile.vue.d.ts +18 -0
- package/dist/components/layout/layout-rail.js +1 -0
- package/dist/components/layout/layout-rail.vue.d.ts +18 -0
- package/dist/components/layout/layout-root.js +1 -0
- package/dist/components/layout/layout-root.vue.d.ts +33 -0
- package/dist/components/layout/layout-sidebar.js +1 -0
- package/dist/components/layout/layout-sidebar.vue.d.ts +20 -0
- package/dist/components/layout/layout-tab.js +1 -0
- package/dist/components/layout/layout-tab.vue.d.ts +18 -0
- package/dist/components/layout/layout-trigger.js +1 -0
- package/dist/components/layout/layout-trigger.vue.d.ts +20 -0
- package/dist/components/layout/shared.js +1 -0
- package/dist/components/layout/types.d.ts +75 -0
- package/dist/components/link/index.d.ts +3 -0
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/link.js +1 -0
- package/dist/components/link/link.vue.d.ts +32 -0
- package/dist/components/link/types.d.ts +65 -0
- package/dist/components/list/context.d.ts +6 -0
- package/dist/components/list/context.js +1 -0
- package/dist/components/list/index.d.ts +8 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/list/list-content.js +1 -0
- package/dist/components/list/list-content.vue.d.ts +18 -0
- package/dist/components/list/list-description.js +1 -0
- package/dist/components/list/list-description.vue.d.ts +18 -0
- package/dist/components/list/list-item.js +1 -0
- package/dist/components/list/list-item.vue.d.ts +18 -0
- package/dist/components/list/list-root.js +1 -0
- package/dist/components/list/list-root.vue.d.ts +18 -0
- package/dist/components/list/list-title.js +1 -0
- package/dist/components/list/list-title.vue.d.ts +18 -0
- package/dist/components/list/types.d.ts +17 -0
- package/dist/components/listbox/context.d.ts +11 -0
- package/dist/components/listbox/context.js +1 -0
- package/dist/components/listbox/index.d.ts +11 -0
- package/dist/components/listbox/index.js +1 -0
- package/dist/components/listbox/listbox-content.js +1 -0
- package/dist/components/listbox/listbox-content.vue.d.ts +18 -0
- package/dist/components/listbox/listbox-filter.js +1 -0
- package/dist/components/listbox/listbox-filter.vue.d.ts +28 -0
- package/dist/components/listbox/listbox-group-label.js +1 -0
- package/dist/components/listbox/listbox-group-label.vue.d.ts +18 -0
- package/dist/components/listbox/listbox-group.js +1 -0
- package/dist/components/listbox/listbox-group.vue.d.ts +18 -0
- package/dist/components/listbox/listbox-item-indicator.js +1 -0
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +22 -0
- package/dist/components/listbox/listbox-item.js +1 -0
- package/dist/components/listbox/listbox-item.vue.d.ts +28 -0
- package/dist/components/listbox/listbox-root.js +1 -0
- package/dist/components/listbox/listbox-root.vue.d.ts +34 -0
- package/dist/components/listbox/listbox-virtualizer.js +1 -0
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +15 -0
- package/dist/components/listbox/shared.js +1 -0
- package/dist/components/listbox/types.d.ts +94 -0
- package/dist/components/menu/context.d.ts +10 -0
- package/dist/components/menu/context.js +1 -0
- package/dist/components/menu/index.d.ts +24 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/menu-checkbox-group.js +1 -0
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +25 -0
- package/dist/components/menu/menu-checkbox-item.js +1 -0
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +28 -0
- package/dist/components/menu/menu-content-impl.js +1 -0
- package/dist/components/menu/menu-content.js +1 -0
- package/dist/components/menu/menu-content.vue.d.ts +37 -0
- package/dist/components/menu/menu-group-label.js +1 -0
- package/dist/components/menu/menu-group-label.vue.d.ts +18 -0
- package/dist/components/menu/menu-group.js +1 -0
- package/dist/components/menu/menu-group.vue.d.ts +18 -0
- package/dist/components/menu/menu-item-impl.js +1 -0
- package/dist/components/menu/menu-item-indicator.js +1 -0
- package/dist/components/menu/menu-item-indicator.vue.d.ts +22 -0
- package/dist/components/menu/menu-item.js +1 -0
- package/dist/components/menu/menu-item.vue.d.ts +22 -0
- package/dist/components/menu/menu-radio-group.js +1 -0
- package/dist/components/menu/menu-radio-group.vue.d.ts +25 -0
- package/dist/components/menu/menu-radio-item.js +1 -0
- package/dist/components/menu/menu-radio-item.vue.d.ts +24 -0
- package/dist/components/menu/menu-root.js +1 -0
- package/dist/components/menu/menu-root.vue.d.ts +27 -0
- package/dist/components/menu/menu-sub-content.js +1 -0
- package/dist/components/menu/menu-sub-content.vue.d.ts +39 -0
- package/dist/components/menu/menu-sub-trigger.js +1 -0
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +18 -0
- package/dist/components/menu/menu-sub.js +1 -0
- package/dist/components/menu/menu-sub.vue.d.ts +24 -0
- package/dist/components/menu/shared.js +1 -0
- package/dist/components/menu/types.d.ts +116 -0
- package/dist/components/navigation-menu/context.d.ts +10 -0
- package/dist/components/navigation-menu/context.js +1 -0
- package/dist/components/navigation-menu/index.d.ts +12 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +30 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +18 -0
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +18 -0
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +26 -0
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +18 -0
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +31 -0
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +18 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +22 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +22 -0
- package/dist/components/navigation-menu/shared.js +1 -0
- package/dist/components/navigation-menu/types.d.ts +100 -0
- package/dist/components/number-input/context.d.ts +9 -0
- package/dist/components/number-input/context.js +1 -0
- package/dist/components/number-input/index.d.ts +7 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/number-input-control.js +1 -0
- package/dist/components/number-input/number-input-control.vue.d.ts +8 -0
- package/dist/components/number-input/number-input-decrement.js +1 -0
- package/dist/components/number-input/number-input-decrement.vue.d.ts +22 -0
- package/dist/components/number-input/number-input-increment.js +1 -0
- package/dist/components/number-input/number-input-increment.vue.d.ts +22 -0
- package/dist/components/number-input/number-input-root.js +1 -0
- package/dist/components/number-input/number-input-root.vue.d.ts +29 -0
- package/dist/components/number-input/shared.js +1 -0
- package/dist/components/number-input/types.d.ts +50 -0
- package/dist/components/pagination/context.d.ts +8 -0
- package/dist/components/pagination/context.js +1 -0
- package/dist/components/pagination/index.d.ts +11 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/pagination-ellipsis.js +1 -0
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-first.js +1 -0
- package/dist/components/pagination/pagination-first.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-last.js +1 -0
- package/dist/components/pagination/pagination-last.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-list-item.js +1 -0
- package/dist/components/pagination/pagination-list-item.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-list.js +1 -0
- package/dist/components/pagination/pagination-list.vue.d.ts +20 -0
- package/dist/components/pagination/pagination-next.js +1 -0
- package/dist/components/pagination/pagination-next.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-prev.js +1 -0
- package/dist/components/pagination/pagination-prev.vue.d.ts +18 -0
- package/dist/components/pagination/pagination-root.js +1 -0
- package/dist/components/pagination/pagination-root.vue.d.ts +30 -0
- package/dist/components/pagination/shared.js +1 -0
- package/dist/components/pagination/types.d.ts +50 -0
- package/dist/components/popover/context.js +1 -0
- package/dist/components/popover/index.d.ts +13 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover-anchor.js +1 -0
- package/dist/components/popover/popover-anchor.vue.d.ts +19 -0
- package/dist/components/popover/popover-close.js +1 -0
- package/dist/components/popover/popover-close.vue.d.ts +22 -0
- package/dist/components/popover/popover-content-impl.js +1 -0
- package/dist/components/popover/popover-content.js +1 -0
- package/dist/components/popover/popover-content.vue.d.ts +34 -0
- package/dist/components/popover/popover-root.js +1 -0
- package/dist/components/popover/popover-root.vue.d.ts +28 -0
- package/dist/components/popover/popover-trigger.js +1 -0
- package/dist/components/popover/popover-trigger.vue.d.ts +22 -0
- package/dist/components/popover/shared.js +1 -0
- package/dist/components/popover/types.d.ts +17 -0
- package/dist/components/popper/context.d.ts +21 -0
- package/dist/components/popper/context.js +1 -0
- package/dist/components/popper/index.d.ts +8 -0
- package/dist/components/popper/index.js +1 -0
- package/dist/components/popper/popper-anchor.js +1 -0
- package/dist/components/popper/popper-anchor.vue.d.ts +18 -0
- package/dist/components/popper/popper-arrow.js +1 -0
- package/dist/components/popper/popper-arrow.vue.d.ts +19 -0
- package/dist/components/popper/popper-content.js +1 -0
- package/dist/components/popper/popper-content.vue.d.ts +229 -0
- package/dist/components/popper/popper-root.js +1 -0
- package/dist/components/popper/popper-root.vue.d.ts +17 -0
- package/dist/components/popper/shared.js +1 -0
- package/dist/components/popper/types.d.ts +145 -0
- package/dist/components/portal/index.d.ts +3 -0
- package/dist/components/portal/index.js +1 -0
- package/dist/components/portal/portal.js +1 -0
- package/dist/components/portal/portal.vue.d.ts +20 -0
- package/dist/components/portal/types.d.ts +26 -0
- package/dist/components/primitive/index.d.ts +3 -0
- package/dist/components/primitive/index.js +1 -0
- package/dist/components/primitive/primitive.d.ts +7 -0
- package/dist/components/primitive/primitive.js +1 -0
- package/dist/components/primitive/types.d.ts +16 -0
- package/dist/components/radio-group/context.d.ts +9 -0
- package/dist/components/radio-group/context.js +1 -0
- package/dist/components/radio-group/index.d.ts +9 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/radio-group-control.js +1 -0
- package/dist/components/radio-group/radio-group-control.vue.d.ts +22 -0
- package/dist/components/radio-group/radio-group-indicator.js +1 -0
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +22 -0
- package/dist/components/radio-group/radio-group-item.js +1 -0
- package/dist/components/radio-group/radio-group-item.vue.d.ts +24 -0
- package/dist/components/radio-group/radio-group-label.js +1 -0
- package/dist/components/radio-group/radio-group-label.vue.d.ts +19 -0
- package/dist/components/radio-group/radio-group-root.js +1 -0
- package/dist/components/radio-group/radio-group-root.vue.d.ts +25 -0
- package/dist/components/radio-group/types.d.ts +55 -0
- package/dist/components/roving-focus/context.js +1 -0
- package/dist/components/roving-focus/index.d.ts +4 -0
- package/dist/components/roving-focus/index.js +1 -0
- package/dist/components/roving-focus/roving-focus-group.js +1 -0
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +34 -0
- package/dist/components/roving-focus/roving-focus-item.js +1 -0
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +20 -0
- package/dist/components/roving-focus/types.d.ts +49 -0
- package/dist/components/select/bubble-select.js +1 -0
- package/dist/components/select/context.d.ts +11 -0
- package/dist/components/select/context.js +1 -0
- package/dist/components/select/index.d.ts +21 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select-arrow.js +1 -0
- package/dist/components/select/select-arrow.vue.d.ts +19 -0
- package/dist/components/select/select-content-impl.js +1 -0
- package/dist/components/select/select-content.js +1 -0
- package/dist/components/select/select-content.vue.d.ts +35 -0
- package/dist/components/select/select-group-label.js +1 -0
- package/dist/components/select/select-group-label.vue.d.ts +18 -0
- package/dist/components/select/select-group.js +1 -0
- package/dist/components/select/select-group.vue.d.ts +18 -0
- package/dist/components/select/select-item-aligned-position.js +1 -0
- package/dist/components/select/select-item-indicator.js +1 -0
- package/dist/components/select/select-item-indicator.vue.d.ts +22 -0
- package/dist/components/select/select-item-text.js +1 -0
- package/dist/components/select/select-item-text.vue.d.ts +18 -0
- package/dist/components/select/select-item.js +1 -0
- package/dist/components/select/select-item.vue.d.ts +24 -0
- package/dist/components/select/select-popper-position.js +1 -0
- package/dist/components/select/select-root.js +1 -0
- package/dist/components/select/select-root.vue.d.ts +27 -0
- package/dist/components/select/select-scroll-button-impl.js +1 -0
- package/dist/components/select/select-scroll-down-button.js +1 -0
- package/dist/components/select/select-scroll-down-button.vue.d.ts +18 -0
- package/dist/components/select/select-scroll-up-button.js +1 -0
- package/dist/components/select/select-scroll-up-button.vue.d.ts +18 -0
- package/dist/components/select/select-separator.js +1 -0
- package/dist/components/select/select-separator.vue.d.ts +18 -0
- package/dist/components/select/select-teleport-provider.js +1 -0
- package/dist/components/select/select-trigger-icon.js +1 -0
- package/dist/components/select/select-trigger-icon.vue.d.ts +18 -0
- package/dist/components/select/select-trigger.js +1 -0
- package/dist/components/select/select-trigger.vue.d.ts +22 -0
- package/dist/components/select/select-value.js +1 -0
- package/dist/components/select/select-value.vue.d.ts +26 -0
- package/dist/components/select/select-viewport.js +9 -0
- package/dist/components/select/select-viewport.vue.d.ts +18 -0
- package/dist/components/select/shared.js +1 -0
- package/dist/components/select/types.d.ts +104 -0
- package/dist/components/separator/context.d.ts +6 -0
- package/dist/components/separator/context.js +1 -0
- package/dist/components/separator/index.d.ts +5 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/separator-label.js +1 -0
- package/dist/components/separator/separator-label.vue.d.ts +18 -0
- package/dist/components/separator/separator-root.js +1 -0
- package/dist/components/separator/separator-root.vue.d.ts +23 -0
- package/dist/components/separator/types.d.ts +26 -0
- package/dist/components/slot/index.d.ts +2 -0
- package/dist/components/slot/index.js +1 -0
- package/dist/components/slot/slot.d.ts +6 -0
- package/dist/components/slot/slot.js +1 -0
- package/dist/components/switch/context.d.ts +9 -0
- package/dist/components/switch/context.js +1 -0
- package/dist/components/switch/index.d.ts +6 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/switch-control.js +1 -0
- package/dist/components/switch/switch-control.vue.d.ts +22 -0
- package/dist/components/switch/switch-root.js +1 -0
- package/dist/components/switch/switch-root.vue.d.ts +25 -0
- package/dist/components/switch/switch-thumb.js +1 -0
- package/dist/components/switch/switch-thumb.vue.d.ts +22 -0
- package/dist/components/switch/types.d.ts +47 -0
- package/dist/components/tabs/context.d.ts +10 -0
- package/dist/components/tabs/context.js +1 -0
- package/dist/components/tabs/index.d.ts +8 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/shared.js +1 -0
- package/dist/components/tabs/tabs-content.js +1 -0
- package/dist/components/tabs/tabs-content.vue.d.ts +20 -0
- package/dist/components/tabs/tabs-indicator.js +1 -0
- package/dist/components/tabs/tabs-indicator.vue.d.ts +18 -0
- package/dist/components/tabs/tabs-list.js +1 -0
- package/dist/components/tabs/tabs-list.vue.d.ts +18 -0
- package/dist/components/tabs/tabs-root.js +1 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +33 -0
- package/dist/components/tabs/tabs-trigger.js +1 -0
- package/dist/components/tabs/tabs-trigger.vue.d.ts +25 -0
- package/dist/components/tabs/types.d.ts +53 -0
- package/dist/components/tag/index.d.ts +3 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/tag/tag.vue.d.ts +27 -0
- package/dist/components/tag/types.d.ts +11 -0
- package/dist/components/textarea/context.d.ts +6 -0
- package/dist/components/textarea/context.js +1 -0
- package/dist/components/textarea/index.d.ts +6 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/shared.js +1 -0
- package/dist/components/textarea/textarea-control.js +1 -0
- package/dist/components/textarea/textarea-control.vue.d.ts +8 -0
- package/dist/components/textarea/textarea-counter.js +1 -0
- package/dist/components/textarea/textarea-counter.vue.d.ts +21 -0
- package/dist/components/textarea/textarea-root.js +1 -0
- package/dist/components/textarea/textarea-root.vue.d.ts +27 -0
- package/dist/components/textarea/types.d.ts +48 -0
- package/dist/components/tooltip/context.js +1 -0
- package/dist/components/tooltip/index.d.ts +11 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/shared.js +1 -0
- package/dist/components/tooltip/tooltip-content-impl.js +1 -0
- package/dist/components/tooltip/tooltip-content.js +1 -0
- package/dist/components/tooltip/tooltip-content.vue.d.ts +26 -0
- package/dist/components/tooltip/tooltip-root.js +1 -0
- package/dist/components/tooltip/tooltip-root.vue.d.ts +27 -0
- package/dist/components/tooltip/tooltip-trigger.js +1 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +23 -0
- package/dist/components/tooltip/types.d.ts +71 -0
- package/dist/components/tree/context.js +1 -0
- package/dist/components/tree/hooks.js +1 -0
- package/dist/components/tree/index.d.ts +6 -0
- package/dist/components/tree/index.js +1 -0
- package/dist/components/tree/shared.js +1 -0
- package/dist/components/tree/tree-item.js +1 -0
- package/dist/components/tree/tree-item.vue.d.ts +34 -0
- package/dist/components/tree/tree-root.js +1 -0
- package/dist/components/tree/tree-root.vue.d.ts +30 -0
- package/dist/components/tree/tree-virtualizer-item.js +1 -0
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +30 -0
- package/dist/components/tree/tree-virtualizer-root.js +1 -0
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +30 -0
- package/dist/components/tree/types.d.ts +101 -0
- package/dist/components/virtualizer/context.js +1 -0
- package/dist/components/virtualizer/index.d.ts +5 -0
- package/dist/components/virtualizer/index.js +1 -0
- package/dist/components/virtualizer/shared.js +1 -0
- package/dist/components/virtualizer/types.d.ts +27 -0
- package/dist/components/virtualizer/virtualizer-content.js +1 -0
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +20 -0
- package/dist/components/virtualizer/virtualizer-item.js +1 -0
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +18 -0
- package/dist/components/virtualizer/virtualizer-root.js +1 -0
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +23 -0
- package/dist/components/visually-hidden/index.d.ts +4 -0
- package/dist/components/visually-hidden/index.js +1 -0
- package/dist/components/visually-hidden/types.d.ts +18 -0
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -0
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -0
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +17 -0
- package/dist/components/visually-hidden/visually-hidden.js +1 -0
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +23 -0
- package/dist/composables/index.d.ts +26 -0
- package/dist/composables/index.js +1 -0
- package/dist/composables/use-arrow-navigation.d.ts +71 -0
- package/dist/composables/use-arrow-navigation.js +1 -0
- package/dist/composables/use-body-scroll-lock.d.ts +9 -0
- package/dist/composables/use-body-scroll-lock.js +18 -0
- package/dist/composables/use-collection.d.ts +54 -0
- package/dist/composables/use-collection.js +1 -0
- package/dist/composables/use-context.d.ts +4 -0
- package/dist/composables/use-context.js +1 -0
- package/dist/composables/use-controllable-state.d.ts +6 -0
- package/dist/composables/use-controllable-state.js +1 -0
- package/dist/composables/use-direction.d.ts +9 -0
- package/dist/composables/use-direction.js +1 -0
- package/dist/composables/use-dismissable-layer.d.ts +60 -0
- package/dist/composables/use-dismissable-layer.js +1 -0
- package/dist/composables/use-escape-key-down.d.ts +6 -0
- package/dist/composables/use-escape-key-down.js +1 -0
- package/dist/composables/use-exposed-element.d.ts +9 -0
- package/dist/composables/use-exposed-element.js +1 -0
- package/dist/composables/use-focus-guards.d.ts +4 -0
- package/dist/composables/use-focus-guards.js +1 -0
- package/dist/composables/use-focus-scope.d.ts +29 -0
- package/dist/composables/use-focus-scope.js +1 -0
- package/dist/composables/use-forward-element.d.ts +14 -0
- package/dist/composables/use-forward-element.js +1 -0
- package/dist/composables/use-forward-listeners.d.ts +4 -0
- package/dist/composables/use-forward-listeners.js +1 -0
- package/dist/composables/use-grace-area.d.ts +39 -0
- package/dist/composables/use-grace-area.js +1 -0
- package/dist/composables/use-hide-others.d.ts +15 -0
- package/dist/composables/use-hide-others.js +1 -0
- package/dist/composables/use-image-loading-status.d.ts +20 -0
- package/dist/composables/use-image-loading-status.js +1 -0
- package/dist/composables/use-is-using-keyboard.d.ts +6 -0
- package/dist/composables/use-is-using-keyboard.js +1 -0
- package/dist/composables/use-kbd.d.ts +13 -0
- package/dist/composables/use-kbd.js +1 -0
- package/dist/composables/use-locale.d.ts +7 -0
- package/dist/composables/use-locale.js +1 -0
- package/dist/composables/use-nonce.d.ts +7 -0
- package/dist/composables/use-nonce.js +1 -0
- package/dist/composables/use-presence.d.ts +7 -0
- package/dist/composables/use-presence.js +1 -0
- package/dist/composables/use-props.d.ts +8 -0
- package/dist/composables/use-props.js +1 -0
- package/dist/composables/use-selection.d.ts +13 -0
- package/dist/composables/use-selection.js +1 -0
- package/dist/composables/use-state-machine.d.ts +14 -0
- package/dist/composables/use-state-machine.js +1 -0
- package/dist/composables/use-typeahead.d.ts +11 -0
- package/dist/composables/use-typeahead.js +1 -0
- package/dist/constants/attr.d.ts +5 -0
- package/dist/constants/attr.js +1 -0
- package/dist/constants/common.d.ts +11 -0
- package/dist/constants/common.js +1 -0
- package/dist/constants/components.d.ts +50 -0
- package/dist/constants/components.js +1 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +1 -0
- package/dist/forms/core/context.d.ts +21 -0
- package/dist/forms/core/context.js +1 -0
- package/dist/forms/core/hooks.d.ts +6 -0
- package/dist/forms/core/hooks.js +1 -0
- package/dist/forms/core/index.d.ts +3 -0
- package/dist/forms/core/shared.js +1 -0
- package/dist/forms/core/types.d.ts +88 -0
- package/dist/forms/index.d.ts +8 -0
- package/dist/forms/index.js +1 -0
- package/dist/forms/resolvers/index.d.ts +2 -0
- package/dist/forms/resolvers/valibot/index.d.ts +8 -0
- package/dist/forms/resolvers/valibot/index.js +1 -0
- package/dist/forms/resolvers/zod/index.d.ts +8 -0
- package/dist/forms/resolvers/zod/index.js +1 -0
- package/dist/index.d.ts +306 -0
- package/dist/index.js +1 -0
- package/dist/namespaced/index.d.ts +473 -0
- package/dist/namespaced/index.js +1 -0
- package/dist/nuxt/index.d.ts +11 -0
- package/dist/nuxt/index.js +1 -0
- package/dist/resolver/index.d.ts +18 -0
- package/dist/resolver/index.js +1 -0
- package/dist/shared/comparison.d.ts +15 -0
- package/dist/shared/comparison.js +1 -0
- package/dist/shared/dom.d.ts +19 -0
- package/dist/shared/dom.js +1 -0
- package/dist/shared/env.d.ts +7 -0
- package/dist/shared/env.js +1 -0
- package/dist/shared/event.d.ts +7 -0
- package/dist/shared/event.js +1 -0
- package/dist/shared/focus.d.ts +38 -0
- package/dist/shared/focus.js +1 -0
- package/dist/shared/form.d.ts +67 -0
- package/dist/shared/form.js +1 -0
- package/dist/shared/geometry.d.ts +39 -0
- package/dist/shared/geometry.js +1 -0
- package/dist/shared/guard.d.ts +51 -0
- package/dist/shared/guard.js +1 -0
- package/dist/shared/index.d.ts +13 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/object.d.ts +73 -0
- package/dist/shared/object.js +1 -0
- package/dist/shared/string.d.ts +50 -0
- package/dist/shared/string.js +1 -0
- package/dist/shared/value.d.ts +65 -0
- package/dist/shared/value.js +1 -0
- package/dist/shared/vue.d.ts +12 -0
- package/dist/shared/vue.js +1 -0
- package/dist/types/common.d.ts +57 -0
- package/dist/types/component.d.ts +58 -0
- package/dist/types/dom.d.ts +5 -0
- package/dist/types/event.d.ts +27 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/path.d.ts +12 -0
- package/dist/types/vue.d.ts +9 -0
- package/package.json +131 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectSeparatorProps } from "./types.js";
|
|
2
|
+
import * as vue1033 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/select/select-separator.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: vue1033.DefineComponent<SelectSeparatorProps, {}, {}, {}, {}, vue1033.ComponentOptionsMixin, vue1033.ComponentOptionsMixin, {}, string, vue1033.PublicProps, Readonly<SelectSeparatorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1033.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideSelectContentContext as e,useSelectRootContext as t}from"./context.js";import{computed as n,defineComponent as r,renderSlot as i,shallowRef as a}from"vue";var o=r({name:`SelectTeleportProvider`,__name:`select-teleport-provider`,props:{position:{}},setup(r){let o=r,{modelValue:s,isMultiple:c}=t(`SelectTeleportProvider`);return e({search:a(``),position:n(()=>o.position),modelValue:s,isMultiple:c}),(e,t)=>i(e.$slots,`default`)}});export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSelectThemeContext as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o}from"vue";var s=r({name:`SelectTriggerIcon`,__name:`select-trigger-icon`,setup(r){let s=e(),c=t(()=>s?.ui?.value?.triggerIcon);return(e,t)=>(a(),n(`span`,{class:i(c.value),"aria-hidden":`true`},[o(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectTriggerIconProps } from "./types.js";
|
|
2
|
+
import * as vue1023 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/select/select-trigger-icon.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: vue1023.DefineComponent<SelectTriggerIconProps, {}, {}, {}, {}, vue1023.ComponentOptionsMixin, vue1023.ComponentOptionsMixin, {}, string, vue1023.PublicProps, Readonly<SelectTriggerIconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1023.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useTypeahead as t}from"../../composables/use-typeahead.js";import{Primitive as n}from"../primitive/primitive.js";import r from"../popper/popper-anchor.js";import{useCollectionContext as i,useSelectRootContext as a,useSelectThemeContext as o}from"./context.js";import{OPEN_KEYS as s,shouldShowPlaceholder as c}from"./shared.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,withCtx as _,withModifiers as v}from"vue";var y=f({name:`SelectTrigger`,__name:`select-trigger`,props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{default:`button`}},setup(f){let y=f,{open:b,dataState:x,modelValue:S,disabled:C,required:w,contentId:T,dir:E,initContentId:D,onTriggerElementChange:O,onOpenChange:k,setTriggerPointerDownPosition:A}=a(`SelectTrigger`),[j,M]=e(O),{getOrderedItems:N}=i(`SelectTrigger`),{search:P,handleTypeaheadSearch:F,resetTypeahead:I}=t(),L=o(),R=l(()=>L?.ui?.value?.trigger),z=l(()=>C.value||y.disabled),B=l(()=>c(S.value)?``:void 0),V=l(()=>y.as===`button`?`button`:void 0),H=()=>{z.value||(k(!0),I())},U=e=>{H();let{pageX:t,pageY:n}=e;A({x:Math.round(t),y:Math.round(n)})},W=e=>{e.currentTarget?.focus()},G=e=>{if(e.pointerType===`touch`){e.preventDefault();return}let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(U(e),e.preventDefault())},K=e=>{e.pointerType===`touch`&&U(e)},q=e=>{let t=P.value!==``;if(!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&t&&e.key===` `)return;let n=N();F(e.key,n),s.includes(e.key)&&(H(),e.preventDefault())};return D(),(e,t)=>(m(),u(g(r),{"as-child":``,reference:f.reference},{default:_(()=>[d(g(n),{ref:g(M),as:f.as,"as-child":f.asChild,class:p(R.value),"aria-controls":g(T),"aria-expanded":g(b)||!1,"aria-required":g(w),"aria-autocomplete":`none`,disabled:z.value,dir:g(E),"data-state":g(x),"data-disabled":z.value?``:void 0,"data-placeholder":B.value,role:`combobox`,type:V.value,onClick:W,onPointerdown:G,onPointerup:v(K,[`prevent`]),onKeydown:q},{default:_(()=>[h(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`aria-controls`,`aria-expanded`,`aria-required`,`disabled`,`dir`,`data-state`,`data-disabled`,`data-placeholder`,`type`])]),_:3},8,[`reference`]))}});export{y as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import "../primitive/index.js";
|
|
3
|
+
import { SelectTriggerProps } from "./types.js";
|
|
4
|
+
import * as vue1012 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/select/select-trigger.vue.d.ts
|
|
7
|
+
declare var __VLS_18: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_18) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue1012.DefineComponent<SelectTriggerProps, {}, {}, {}, {}, vue1012.ComponentOptionsMixin, vue1012.ComponentOptionsMixin, {}, string, vue1012.PublicProps, Readonly<SelectTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1012.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1012.ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectRootContext as t,useSelectThemeContext as n}from"./context.js";import{computed as r,createElementBlock as i,createTextVNode as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,toDisplayString as u,unref as d}from"vue";const f=[`data-placeholder`];var p=o({name:`SelectValue`,__name:`select-value`,props:{placeholder:{default:``}},setup(o){let p=o,{modelValue:m,options:h,onValueElementChange:g}=t(`SelectValue`),[_,v]=e(g),y=n(),b=r(()=>y?.ui?.value?.value),x=r(()=>{let e=[],t=e=>h.value.find(t=>e===t.value);return e=Array.isArray(m.value)?m.value.map(e=>t(e)?.textContent??``):[t(m.value)?.textContent??``],e.filter(Boolean)}),S=r(()=>x.value.length?x.value.join(`, `):p.placeholder);return(e,t)=>(c(),i(`span`,{ref:d(v),class:s(b.value),"data-placeholder":x.value.length?void 0:p.placeholder,style:{"pointer-events":`none`}},[l(e.$slots,`default`,{modelValue:d(m),selectedLabel:x.value,slotText:S.value},()=>[a(u(S.value),1)])],10,f))}});export{p as default};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefinedValue, MaybeArray } from "../../types/common.js";
|
|
2
|
+
import { SelectValueProps } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import * as vue1038 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/select/select-value.vue.d.ts
|
|
7
|
+
declare var __VLS_1: {
|
|
8
|
+
modelValue: MaybeArray<DefinedValue> | undefined;
|
|
9
|
+
selectedLabel: string[];
|
|
10
|
+
slotText: string;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: vue1038.DefineComponent<SelectValueProps, {}, {}, {}, {}, vue1038.ComponentOptionsMixin, vue1038.ComponentOptionsMixin, {}, string, vue1038.PublicProps, Readonly<SelectValueProps> & Readonly<{}>, {
|
|
16
|
+
placeholder: string;
|
|
17
|
+
}, {}, {}, {}, string, vue1038.ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { _default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useNonce as t}from"../../composables/use-nonce.js";import{Primitive as n}from"../primitive/primitive.js";import{useSelectContentContext as r,useSelectItemAlignedPositionContext as i,useSelectThemeContext as a}from"./context.js";import{CONTENT_MARGIN as o}from"./shared.js";import{Fragment as s,computed as c,createElementBlock as l,createElementVNode as u,createTextVNode as d,createVNode as f,defineComponent as p,mergeProps as m,openBlock as h,renderSlot as g,toDisplayString as _,unref as v,useAttrs as y,withCtx as b}from"vue";var x=p({name:`SelectViewport`,inheritAttrs:!1,__name:`select-viewport`,props:{nonce:{}},setup(p){let x=p,S=y(),{onViewportElementChange:C}=r(`SelectViewport`),[w,T]=e(C),E=i(),D=t(()=>x.nonce),O=a(),k=c(()=>O?.ui?.value?.viewport),A=0;function j(e){let t=e.currentTarget,{contentWrapperElement:n,shouldExpandOnScroll:r}=E??{};if(!n?.value||!r?.value){A=t.scrollTop;return}let i=Math.abs(A-t.scrollTop);if(i<=0)return;let a=window.innerHeight-o*2,s=Number.parseFloat(n.value.style.minHeight),c=Number.parseFloat(n.value.style.height),l=Math.max(s,c);if(l<a){let e=l+i,r=Math.min(a,e),o=e-r;n.value.style.height=`${r}px`,n.value.style.bottom===`0px`&&(t.scrollTop=o>0?o:0,n.value.style.justifyContent=`flex-end`)}A=t.scrollTop}return(e,t)=>(h(),l(s,null,[u(`div`,m(v(S),{ref:v(T),class:k.value,"data-soybean-select-viewport":``,role:`presentation`,style:`position:relative;flex:1;overflow:hidden auto;`,onScroll:j}),[g(e.$slots,`default`)],16),f(v(n),{as:`style`,nonce:v(D)},{default:b(()=>[d(_(`
|
|
2
|
+
[data-soybean-select-viewport] {
|
|
3
|
+
scrollbar-width: none;
|
|
4
|
+
-ms-overflow-style: none;
|
|
5
|
+
-webkit-overflow-scrolling: touch;
|
|
6
|
+
}
|
|
7
|
+
[data-soybean-select-viewport]::-webkit-scrollbar {
|
|
8
|
+
display: none;
|
|
9
|
+
}`))]),_:1},8,[`nonce`])],64))}});export{x as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectViewportProps } from "./types.js";
|
|
2
|
+
import * as vue1007 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/select/select-viewport.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: vue1007.DefineComponent<SelectViewportProps, {}, {}, {}, {}, vue1007.ComponentOptionsMixin, vue1007.ComponentOptionsMixin, {}, string, vue1007.PublicProps, Readonly<SelectViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1007.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";const t={contentTransformOrigin:`--soybean-select-content-transform-origin`,contentAvailableWidth:`--soybean-select-content-available-width`,contentAvailableHeight:`--soybean-select-content-available-height`,triggerWidth:`--soybean-select-trigger-width`,triggerHeight:`--soybean-select-trigger-height`},n=[` `,`Enter`,`ArrowUp`,`ArrowDown`],r=[` `,`Enter`],i=10,a=`select.select`;function o(t){return e(t)||t===``||Array.isArray(t)&&t.length===0}export{i as CONTENT_MARGIN,n as OPEN_KEYS,r as SELECTION_KEYS,a as SELECT_EVENT,t as selectCssVars,o as shouldShowPlaceholder};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ClassValue, DefinedValue, Direction, SelectionEmits, SelectionProps } from "../../types/common.js";
|
|
2
|
+
import { PointerDownOutsideEvent } from "../../types/event.js";
|
|
3
|
+
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
6
|
+
import { ArrowProps } from "../arrow/types.js";
|
|
7
|
+
import { PopperAnchorProps, PopperContentProps } from "../popper/types.js";
|
|
8
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
9
|
+
|
|
10
|
+
//#region src/components/select/types.d.ts
|
|
11
|
+
interface SelectRootProps<T extends DefinedValue = DefinedValue, M extends boolean = false> extends SelectionProps<M, T>, FormFieldCommonProps {
|
|
12
|
+
/** The controlled open state of the Select. Can be bind as `v-model:open`. */
|
|
13
|
+
open?: boolean;
|
|
14
|
+
/** The open state of the select when it is initially rendered. Use when you do not need to control its open state. */
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The reading direction of the combobox when applicable. <br> If omitted, inherits globally from `ConfigProvider` or
|
|
18
|
+
* assumes LTR (left-to-right) reading mode.
|
|
19
|
+
*/
|
|
20
|
+
dir?: Direction;
|
|
21
|
+
/** Native html input `autocomplete` attribute. */
|
|
22
|
+
autocomplete?: string;
|
|
23
|
+
/** When `true`, prevents the user from interacting with Select */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
type SelectRootEmits<T extends DefinedValue = DefinedValue, M extends boolean = false> = SelectionEmits<M, T> & {
|
|
27
|
+
/** Event handler called when the open state of the context menu changes. */
|
|
28
|
+
'update:open': [value: boolean];
|
|
29
|
+
};
|
|
30
|
+
type SelectPosition = 'item-aligned' | 'popper';
|
|
31
|
+
interface SelectContentImplProps extends PopperContentProps {
|
|
32
|
+
/**
|
|
33
|
+
* The positioning mode to use
|
|
34
|
+
*
|
|
35
|
+
* `item-aligned (default)` - behaves similarly to a native MacOS menu by positioning content relative to the active
|
|
36
|
+
* item. <br> `popper` - positions content in the same way as our other primitives, for example `Popover` or
|
|
37
|
+
* `DropdownMenu`.
|
|
38
|
+
*/
|
|
39
|
+
position?: SelectPosition;
|
|
40
|
+
/**
|
|
41
|
+
* The document.body will be lock, and scrolling will be disabled.
|
|
42
|
+
*
|
|
43
|
+
* @defaultValue true
|
|
44
|
+
*/
|
|
45
|
+
bodyLock?: boolean;
|
|
46
|
+
}
|
|
47
|
+
type SelectContentImplEmits = {
|
|
48
|
+
closeAutoFocus: [event: Event];
|
|
49
|
+
/** Event handler called when the escape key is down. Can be prevented. */
|
|
50
|
+
escapeKeyDown: [event: KeyboardEvent];
|
|
51
|
+
/** Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`. Can be prevented. */
|
|
52
|
+
pointerDownOutside: [event: PointerDownOutsideEvent];
|
|
53
|
+
};
|
|
54
|
+
interface SelectContentProps extends SelectContentImplProps, ForceMountProps {}
|
|
55
|
+
type SelectContentEmits = SelectContentImplEmits;
|
|
56
|
+
interface SelectViewportProps extends /** @vue-ignore */HTMLAttributes {
|
|
57
|
+
/**
|
|
58
|
+
* Will add `nonce` attribute to the style tag which can be used by Content Security Policy. <br> If omitted, inherits
|
|
59
|
+
* globally from `ConfigProvider`.
|
|
60
|
+
*/
|
|
61
|
+
nonce?: string;
|
|
62
|
+
}
|
|
63
|
+
interface SelectGroupProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {}
|
|
64
|
+
interface SelectGroupLabelProps extends /** @vue-ignore */HTMLAttributes {}
|
|
65
|
+
interface SelectTriggerProps extends PopperAnchorProps {
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
}
|
|
68
|
+
interface SelectTriggerIconProps extends /** @vue-ignore */HTMLAttributes {}
|
|
69
|
+
interface SelectItemProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {
|
|
70
|
+
/** The value given as data when submitted with a `name`. */
|
|
71
|
+
value: DefinedValue;
|
|
72
|
+
/** When `true`, prevents the user from interacting with the item. */
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the
|
|
76
|
+
* `SelectItemText` part. Use this when the content is complex, or you have non-textual content inside.
|
|
77
|
+
*/
|
|
78
|
+
textValue?: string;
|
|
79
|
+
}
|
|
80
|
+
type SelectItemEvent<T extends DefinedValue = DefinedValue> = CustomEvent<{
|
|
81
|
+
originalEvent: PointerEvent | KeyboardEvent;
|
|
82
|
+
value: T;
|
|
83
|
+
}>;
|
|
84
|
+
type SelectItemEmits<T extends DefinedValue = DefinedValue> = {
|
|
85
|
+
/** Event handler called when the selecting item. <br> It can be prevented by calling `event.preventDefault`. */
|
|
86
|
+
select: [event: SelectItemEvent<T>];
|
|
87
|
+
};
|
|
88
|
+
interface SelectItemTextProps extends /** @vue-ignore */HTMLAttributes {}
|
|
89
|
+
interface SelectItemIndicatorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
90
|
+
interface SelectValueProps extends /** @vue-ignore */HTMLAttributes {
|
|
91
|
+
/** The content that will be rendered inside the `SelectValue` when no `value` or `defaultValue` is set. */
|
|
92
|
+
placeholder?: string;
|
|
93
|
+
}
|
|
94
|
+
interface SelectSeparatorProps extends /** @vue-ignore */HTMLAttributes {}
|
|
95
|
+
interface SelectScrollButtonImplProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {}
|
|
96
|
+
interface SelectScrollDownButtonProps extends SelectScrollButtonImplProps {}
|
|
97
|
+
interface SelectScrollUpButtonProps extends SelectScrollButtonImplProps {}
|
|
98
|
+
type SelectThemeSlot = 'trigger' | 'triggerIcon' | 'value' | 'content' | 'viewport' | 'group' | 'groupLabel' | 'item' | 'itemText' | 'itemIndicator' | 'separator' | 'scrollUpButton' | 'scrollDownButton' | 'arrow';
|
|
99
|
+
type SelectUi = Record<SelectThemeSlot, ClassValue>;
|
|
100
|
+
interface SelectThemeContextParams {
|
|
101
|
+
ui: ComputedRef<SelectUi>;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { SelectContentEmits, SelectContentProps, SelectGroupLabelProps, SelectGroupProps, SelectItemEmits, SelectItemEvent, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectPosition, SelectRootEmits, SelectRootProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectThemeContextParams, SelectThemeSlot, SelectTriggerIconProps, SelectTriggerProps, SelectUi, SelectValueProps, SelectViewportProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SeparatorThemeContextParams } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/separator/context.d.ts
|
|
4
|
+
declare const provideSeparatorThemeContext: (params: SeparatorThemeContextParams) => SeparatorThemeContextParams, useSeparatorThemeContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: SeparatorThemeContextParams | undefined) => N extends null | undefined ? SeparatorThemeContextParams | null : SeparatorThemeContextParams;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { provideSeparatorThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";const[t,n]=e(`SeparatorTheme`,e=>e);export{t as provideSeparatorThemeContext,n as useSeparatorThemeContext};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SeparatorLabelProps, SeparatorRootProps, SeparatorThemeSlot, SeparatorUi } from "./types.js";
|
|
2
|
+
import { _default as _default$1 } from "./separator-root.vue.js";
|
|
3
|
+
import { _default } from "./separator-label.vue.js";
|
|
4
|
+
import { provideSeparatorThemeContext } from "./context.js";
|
|
5
|
+
export { _default as SeparatorLabel, type SeparatorLabelProps, _default$1 as SeparatorRoot, type SeparatorRootProps, type SeparatorThemeSlot, type SeparatorUi, provideSeparatorThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideSeparatorThemeContext as e}from"./context.js";import t from"./separator-root.js";import n from"./separator-label.js";export{n as SeparatorLabel,t as SeparatorRoot,e as provideSeparatorThemeContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSeparatorThemeContext as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o}from"vue";var s=r({name:`SeparatorLabel`,__name:`separator-label`,setup(r){let s=e(),c=t(()=>s?.ui?.value?.label);return(e,t)=>(a(),n(`span`,{class:i(c.value)},[o(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SeparatorLabelProps } from "./types.js";
|
|
2
|
+
import * as vue49 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/separator/separator-label.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: vue49.DefineComponent<SeparatorLabelProps, {}, {}, {}, {}, vue49.ComponentOptionsMixin, vue49.ComponentOptionsMixin, {}, string, vue49.PublicProps, Readonly<SeparatorLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue49.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useSeparatorThemeContext as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o}from"vue";const s=[`data-orientation`,`aria-orientation`,`role`];var c=r({name:`SeparatorRoot`,__name:`separator-root`,props:{orientation:{default:`horizontal`},decorative:{type:Boolean,default:!1}},setup(r){let c=r,l=e(),u=t(()=>l?.ui?.value?.root),d=[`horizontal`,`vertical`],f=t(()=>d.includes(c.orientation)?c.orientation:`horizontal`),p=t(()=>f.value===`vertical`?c.orientation:void 0);return(e,t)=>(a(),n(`div`,{class:i(u.value),"data-orientation":f.value,"aria-orientation":p.value,role:r.decorative?`none`:`separator`},[o(e.$slots,`default`)],10,s))}});export{c as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DataOrientation } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { SeparatorRootProps } from "./types.js";
|
|
4
|
+
import * as vue44 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/separator/separator-root.vue.d.ts
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue44.DefineComponent<SeparatorRootProps, {}, {}, {}, {}, vue44.ComponentOptionsMixin, vue44.ComponentOptionsMixin, {}, string, vue44.PublicProps, Readonly<SeparatorRootProps> & Readonly<{}>, {
|
|
12
|
+
orientation: DataOrientation;
|
|
13
|
+
decorative: boolean;
|
|
14
|
+
}, {}, {}, {}, string, vue44.ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { _default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ClassValue, DataOrientation } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/separator/types.d.ts
|
|
6
|
+
interface SeparatorLabelProps extends /** @vue-ignore */HTMLAttributes {}
|
|
7
|
+
interface SeparatorRootProps extends /** @vue-ignore */HTMLAttributes {
|
|
8
|
+
/**
|
|
9
|
+
* Orientation of the component.
|
|
10
|
+
*
|
|
11
|
+
* Either `vertical` or `horizontal`. Defaults to `horizontal`.
|
|
12
|
+
*/
|
|
13
|
+
orientation?: DataOrientation;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not the component is purely decorative. <br>When `true`, accessibility-related attributes are updated so
|
|
16
|
+
* that that the rendered element is removed from the accessibility tree.
|
|
17
|
+
*/
|
|
18
|
+
decorative?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type SeparatorThemeSlot = 'root' | 'label';
|
|
21
|
+
type SeparatorUi = Record<SeparatorThemeSlot, ClassValue>;
|
|
22
|
+
interface SeparatorThemeContextParams {
|
|
23
|
+
ui: ComputedRef<SeparatorUi>;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { SeparatorLabelProps, SeparatorRootProps, SeparatorThemeContextParams, SeparatorThemeSlot, SeparatorUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Slot as e}from"./slot.js";export{e as Slot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getRawChildren as e}from"../../shared/vue.js";import{Comment as t,cloneVNode as n,defineComponent as r,warn as i}from"vue";const a=r((r,{slots:a,attrs:o})=>()=>{if(!a.default)return null;let r=e(a.default());if(!r?.length)return null;let s=r.find(e=>e.type!==t);return import.meta.env.DEV&&r.filter(e=>e.type!==t).length>1&&i(`<Slot> can only be used on a single element or component.`),s?n(s,o,!0):null},{name:`Slot`});export{a as Slot};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../types/index.js";
|
|
2
|
+
import { SwitchThemeContextParams } from "./types.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/switch/context.d.ts
|
|
6
|
+
|
|
7
|
+
declare const provideSwitchThemeContext: (params: SwitchThemeContextParams) => SwitchThemeContextParams, useSwitchThemeContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: SwitchThemeContextParams | undefined) => N extends null | undefined ? SwitchThemeContextParams | null : SwitchThemeContextParams;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { provideSwitchThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{useContext as t}from"../../composables/use-context.js";import{computed as n}from"vue";const[r,i]=t(`SwitchRoot`,t=>{let{modelValue:r,disabled:i,trueValue:a,falseValue:o}=t;function s(){i.value||(e(r.value)?r.value=a.value:r.value=r.value===a.value?o.value:a.value)}let c=n(()=>r?.value===a.value?`checked`:`unchecked`),l=n(()=>i.value?``:void 0);return{...t,toggleCheck:s,dataState:c,dataDisabled:l}}),[a,o]=t(`SwitchTheme`,e=>e);export{r as provideSwitchRootContext,a as provideSwitchThemeContext,i as useSwitchRootContext,o as useSwitchThemeContext};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SwitchControlProps, SwitchRootEmits, SwitchRootProps, SwitchThemeSlot, SwitchThumbProps, SwitchUi } from "./types.js";
|
|
2
|
+
import { _default as _default$1 } from "./switch-root.vue.js";
|
|
3
|
+
import { _default } from "./switch-control.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./switch-thumb.vue.js";
|
|
5
|
+
import { provideSwitchThemeContext } from "./context.js";
|
|
6
|
+
export { _default as SwitchControl, type SwitchControlProps, _default$1 as SwitchRoot, type SwitchRootEmits, type SwitchRootProps, type SwitchThemeSlot, _default$2 as SwitchThumb, type SwitchThumbProps, type SwitchUi, provideSwitchThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideSwitchThemeContext as e}from"./context.js";import t from"./switch-root.js";import n from"./switch-control.js";import r from"./switch-thumb.js";export{n as SwitchControl,t as SwitchRoot,r as SwitchThumb,e as provideSwitchThemeContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getAriaLabel as e}from"../../shared/dom.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{useSwitchRootContext as n,useSwitchThemeContext as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,useAttrs as d,withKeys as f,withModifiers as p}from"vue";const m=[`id`,`aria-checked`,`aria-label`,`aria-required`,`data-disabled`,`data-state`];var h=o({name:`SwitchControl`,__name:`switch-control`,props:{id:{}},setup(o){let h=o,g=d(),{modelValue:_,dataDisabled:v,dataState:y,toggleCheck:b,required:x}=n(`SwitchControl`),[S,C]=t(),w=r(),T=i(()=>w?.ui?.value?.control),E=i(()=>e(S.value,h.id,g[`aria-label`]));return(e,t)=>(c(),a(`button`,{id:o.id,ref:u(C),class:s(T.value),"aria-checked":u(y)===`checked`,"aria-label":E.value,"aria-required":u(x),"data-disabled":u(v),"data-state":u(y),role:`switch`,onClick:t[0]||=(...e)=>u(b)&&u(b)(...e),onKeydown:t[1]||=f(p((...e)=>u(b)&&u(b)(...e),[`prevent`]),[`enter`])},[l(e.$slots,`default`,{modelValue:u(_)})],42,m))}});export{h as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
|
+
import { SwitchControlProps } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import * as vue423 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/switch-control.vue.d.ts
|
|
7
|
+
declare var __VLS_1: {
|
|
8
|
+
modelValue: AcceptableBooleanValue;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: vue423.DefineComponent<SwitchControlProps, {}, {}, {}, {}, vue423.ComponentOptionsMixin, vue423.ComponentOptionsMixin, {}, string, vue423.PublicProps, Readonly<SwitchControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue423.ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import{useForwardElement as i}from"../../composables/use-forward-element.js";import a from"../visually-hidden/visually-hidden-input.js";import{provideSwitchRootContext as o,useSwitchThemeContext as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g}from"vue";const _=[`data-state`];var v=f({name:`SwitchRoot`,__name:`switch-root`,props:{defaultValue:{},modelValue:{default:void 0},disabled:{type:Boolean},value:{default:`on`},name:{},required:{type:Boolean},trueValue:{default:!0},falseValue:{default:!1}},emits:[`update:modelValue`],setup(f,{emit:v}){let y=f,b=v,[x,S]=i(),C=s(),w=c(()=>C?.ui?.value?.root),T=r(()=>y.modelValue,e=>{b(`update:modelValue`,e)},y.defaultValue),E=c(()=>t(x.value));function D(){if(e(y.trueValue)||e(y.falseValue))throw Error(`trueValue and falseValue cannot be nullish`)}D();let{dataState:O}=o({...n(y,[`modelValue`,`disabled`,`required`,`trueValue`,`falseValue`]),modelValue:T});return(e,t)=>(m(),d(`div`,{ref:g(S),class:p(w.value),"data-state":g(O)},[h(e.$slots,`default`,{modelValue:g(T)}),E.value&&f.name?(m(),l(g(a),{key:0,type:`checkbox`,name:f.name,disabled:f.disabled,required:f.required,value:f.value,checked:!!g(T)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):u(`v-if`,!0)],10,_))}});export{v as default};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { SwitchRootProps } from "./types.js";
|
|
4
|
+
import * as vue421 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/switch-root.vue.d.ts
|
|
7
|
+
declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: __VLS_PrettifyLocal<SwitchRootProps<T> & {
|
|
9
|
+
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
|
+
}> & vue421.PublicProps;
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
default?: (props: {
|
|
15
|
+
modelValue: T | undefined;
|
|
16
|
+
}) => any;
|
|
17
|
+
};
|
|
18
|
+
emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
|
|
19
|
+
}>) => vue421.VNode & {
|
|
20
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{useSwitchRootContext as t,useSwitchThemeContext as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";var d=a({name:`SwitchThumb`,__name:`switch-thumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(a){let{dataState:d,dataDisabled:f}=t(`SwitchThumb`),p=n(),m=r(()=>p?.ui?.value?.thumb);return(t,n)=>(s(),i(l(e),{as:a.as,"as-child":a.asChild,class:o(m.value),"data-disabled":l(f),"data-state":l(d)},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-state`]))}});export{d as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import "../primitive/index.js";
|
|
3
|
+
import { SwitchThumbProps } from "./types.js";
|
|
4
|
+
import * as vue428 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/switch/switch-thumb.vue.d.ts
|
|
7
|
+
declare var __VLS_7: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue428.DefineComponent<SwitchThumbProps, {}, {}, {}, {}, vue428.ComponentOptionsMixin, vue428.ComponentOptionsMixin, {}, string, vue428.PublicProps, Readonly<SwitchThumbProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue428.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue428.ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { _default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AcceptableBooleanValue, ClassValue } from "../../types/common.js";
|
|
2
|
+
import { FormFieldCommonProps } from "../../types/component.js";
|
|
3
|
+
import "../../types/index.js";
|
|
4
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
5
|
+
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, HtmlHTMLAttributes, ShallowRef } from "vue";
|
|
6
|
+
|
|
7
|
+
//#region src/components/switch/types.d.ts
|
|
8
|
+
interface SwitchValueConfig<T extends AcceptableBooleanValue = boolean> {
|
|
9
|
+
/**
|
|
10
|
+
* The value given as data when submitted with a `name`.
|
|
11
|
+
*
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
trueValue?: NonNullable<T>;
|
|
15
|
+
/**
|
|
16
|
+
* The value given as data when submitted with a `name`.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
falseValue?: NonNullable<T>;
|
|
21
|
+
}
|
|
22
|
+
interface SwitchRootProps<T extends AcceptableBooleanValue> extends FormFieldCommonProps, SwitchValueConfig<T>, /** @vue-ignore */HtmlHTMLAttributes {
|
|
23
|
+
/** The state of the switch when it is initially rendered. Use when you do not need to control its state. */
|
|
24
|
+
defaultValue?: NonNullable<T>;
|
|
25
|
+
/** The controlled state of the switch. Can be bind as `v-model`. */
|
|
26
|
+
modelValue?: T;
|
|
27
|
+
/** When `true`, prevents the user from interacting with the switch. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** The value given as data when submitted with a `name`. */
|
|
30
|
+
value?: string;
|
|
31
|
+
}
|
|
32
|
+
type SwitchRootEmits<T extends AcceptableBooleanValue = boolean> = {
|
|
33
|
+
/** Event handler called when the value of the switch changes. */
|
|
34
|
+
'update:modelValue': [payload: NonNullable<T>];
|
|
35
|
+
};
|
|
36
|
+
interface SwitchControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
37
|
+
/** Id of the element */
|
|
38
|
+
id?: string;
|
|
39
|
+
}
|
|
40
|
+
interface SwitchThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
|
|
41
|
+
type SwitchThemeSlot = 'root' | 'control' | 'thumb';
|
|
42
|
+
type SwitchUi = Record<SwitchThemeSlot, ClassValue>;
|
|
43
|
+
interface SwitchThemeContextParams {
|
|
44
|
+
ui: ComputedRef<SwitchUi>;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { SwitchControlProps, SwitchRootEmits, SwitchRootProps, SwitchThemeContextParams, SwitchThemeSlot, SwitchThumbProps, SwitchUi };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../types/index.js";
|
|
2
|
+
import { TabsThemeContextParams } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import { MaybeRefOrGetter } from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/tabs/context.d.ts
|
|
7
|
+
|
|
8
|
+
declare const provideTabsThemeContext: (params: TabsThemeContextParams) => TabsThemeContextParams, useTabsThemeContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: TabsThemeContextParams | undefined) => N extends null | undefined ? TabsThemeContextParams | null : TabsThemeContextParams;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { provideTabsThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{useContext as t}from"../../composables/use-context.js";import{useDirection as n}from"../../composables/use-direction.js";import{computed as r,shallowRef as i,toValue as a}from"vue";const[o,s]=t(`TabsRoot`,t=>{let o=n(t.dir),s=i(),c=e=>{s.value=e},l=n=>{e(n)||(t.modelValue.value=n)},u=e=>{let t=a(e);return{contentId:r(()=>`soybean-tabs-content-${t}`),triggerId:r(()=>`soybean-tabs-trigger-${t}`)}};return{...t,dir:o,changeModelValue:l,listElement:s,onListElementChange:c,getId:u}}),[c,l]=t(`TabsTheme`,e=>e);export{o as provideTabsRootContext,c as provideTabsThemeContext,s as useTabsRootContext,l as useTabsThemeContext};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TabsContentProps, TabsIndicatorProps, TabsListProps, TabsRootEmits, TabsRootProps, TabsThemeSlot, TabsTriggerProps, TabsUi } from "./types.js";
|
|
2
|
+
import { _default as _default$3 } from "./tabs-root.vue.js";
|
|
3
|
+
import { _default } from "./tabs-content.vue.js";
|
|
4
|
+
import { _default as _default$1 } from "./tabs-indicator.vue.js";
|
|
5
|
+
import { _default as _default$2 } from "./tabs-list.vue.js";
|
|
6
|
+
import { _default as _default$4 } from "./tabs-trigger.vue.js";
|
|
7
|
+
import { provideTabsThemeContext } from "./context.js";
|
|
8
|
+
export { _default as TabsContent, type TabsContentProps, _default$1 as TabsIndicator, type TabsIndicatorProps, _default$2 as TabsList, type TabsListProps, _default$3 as TabsRoot, type TabsRootEmits, type TabsRootProps, type TabsThemeSlot, _default$4 as TabsTrigger, type TabsTriggerProps, type TabsUi, provideTabsThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideTabsThemeContext as e}from"./context.js";import t from"./tabs-root.js";import n from"./tabs-content.js";import r from"./tabs-indicator.js";import i from"./tabs-list.js";import a from"./tabs-trigger.js";export{n as TabsContent,r as TabsIndicator,i as TabsList,t as TabsRoot,a as TabsTrigger,e as provideTabsThemeContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={indicatorSize:`--soybean-tabs-indicator-size`,indicatorPosition:`--soybean-tabs-indicator-position`};export{e as tabsCssVars};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePresence as t}from"../../composables/use-presence.js";import{useTabsRootContext as n,useTabsThemeContext as r}from"./context.js";import{computed as i,createCommentVNode as a,createElementBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,onMounted as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m}from"vue";const h=[`id`,`aria-labelledby`,`data-state`,`hidden`];var g=s({name:`TabsContent`,__name:`tabs-content`,props:{value:{},forceMount:{type:Boolean}},setup(s){let g=s,{modelValue:_,unmountOnHide:v,getId:y}=n(`TabsContent`),[b,x]=e(),S=r(),C=i(()=>S?.ui?.value?.content),{contentId:w,triggerId:T}=y(g.value),E=i(()=>g.value===_.value),D=i(()=>E.value?`active`:`inactive`),O=g.forceMount?p(!0):t(b,E),k=p(E.value),A=i(()=>({animationDuration:k.value?`0s`:void 0}));return u(()=>{requestAnimationFrame(()=>{k.value=!1})}),(e,t)=>(d(),o(`div`,{id:m(w),ref:m(x),class:c(C.value),"aria-labelledby":m(T),"data-state":D.value,hidden:!m(O),role:`tabpanel`,tabindex:`0`,style:l(A.value)},[!m(v)||m(O)?f(e.$slots,`default`,{key:0,active:E.value}):a(`v-if`,!0)],14,h))}});export{g as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TabsContentProps } from "./types.js";
|
|
2
|
+
import * as vue924 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/tabs/tabs-content.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {
|
|
6
|
+
active: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue924.DefineComponent<TabsContentProps, {}, {}, {}, {}, vue924.ComponentOptionsMixin, vue924.ComponentOptionsMixin, {}, string, vue924.PublicProps, Readonly<TabsContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue924.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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{useTabsRootContext as t,useTabsThemeContext as n}from"./context.js";import{tabsCssVars as r}from"./shared.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,nextTick as c,normalizeClass as l,normalizeStyle as u,openBlock as d,ref as f,renderSlot as p,unref as m,watch as h,withCtx as g}from"vue";import{useResizeObserver as _}from"@vueuse/core";var v=s({name:`TabsIndicator`,__name:`tabs-indicator`,props:{asChild:{type:Boolean},as:{}},setup(s){let{listElement:v,modelValue:y,dir:b,orientation:x}=t(`TabsIndicator`),S=n(),C=i(()=>S?.ui?.value?.indicator),w=f(),T=f({size:null,position:null}),E=i(()=>({[r.indicatorSize]:`${T.value.size}px`,[r.indicatorPosition]:`${T.value.position}px`}));function D(){w.value=v.value?.querySelector(`[role="tab"][data-state="active"]`),w.value&&(x.value===`horizontal`?T.value={size:w.value.offsetWidth,position:w.value.offsetLeft}:T.value={size:w.value.offsetHeight,position:w.value.offsetTop})}return _([v,w],D),h(()=>[y.value,b.value],async()=>{await c(),D()},{immediate:!0}),(t,n)=>typeof T.value.size==`number`?(d(),a(m(e),{key:0,as:s.as,"as-child":s.asChild,class:l(C.value),style:u(E.value)},{default:g(()=>[p(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`style`])):o(`v-if`,!0)}});export{v as default};
|