@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,229 @@
|
|
|
1
|
+
import { Align, Placement, Side } from "../../types/common.js";
|
|
2
|
+
import { PopperContentProps } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import * as vue472 from "vue";
|
|
5
|
+
import { CSSProperties } from "vue";
|
|
6
|
+
import * as _floating_ui_vue0 from "@floating-ui/vue";
|
|
7
|
+
|
|
8
|
+
//#region src/components/popper/popper-content.vue.d.ts
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: vue472.DefineComponent<PopperContentProps, {}, {}, {}, {}, vue472.ComponentOptionsMixin, vue472.ComponentOptionsMixin, {
|
|
14
|
+
placed: () => any;
|
|
15
|
+
}, string, vue472.PublicProps, Readonly<PopperContentProps> & Readonly<{
|
|
16
|
+
onPlaced?: (() => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
style: string | false | CSSProperties | vue472.StyleValue[] | null;
|
|
19
|
+
title: string;
|
|
20
|
+
contextmenu: string;
|
|
21
|
+
onInput: (payload: InputEvent) => void;
|
|
22
|
+
onSelect: (payload: Event) => void;
|
|
23
|
+
onFocus: (payload: FocusEvent) => void;
|
|
24
|
+
onProgress: (payload: ProgressEvent<EventTarget>) => void;
|
|
25
|
+
onFullscreenchange: (payload: Event) => void;
|
|
26
|
+
onFullscreenerror: (payload: Event) => void;
|
|
27
|
+
onAbort: (payload: UIEvent) => void;
|
|
28
|
+
onAnimationcancel: (payload: AnimationEvent) => void;
|
|
29
|
+
onAnimationend: (payload: AnimationEvent) => void;
|
|
30
|
+
onAnimationiteration: (payload: AnimationEvent) => void;
|
|
31
|
+
onAnimationstart: (payload: AnimationEvent) => void;
|
|
32
|
+
onAuxclick: (payload: PointerEvent) => void;
|
|
33
|
+
onBeforeinput: (payload: InputEvent) => void;
|
|
34
|
+
onBeforetoggle: (payload: ToggleEvent) => void;
|
|
35
|
+
onBlur: (payload: FocusEvent) => void;
|
|
36
|
+
onCanplay: (payload: Event) => void;
|
|
37
|
+
onCanplaythrough: (payload: Event) => void;
|
|
38
|
+
onChange: (payload: Event) => void;
|
|
39
|
+
onClick: (payload: PointerEvent) => void;
|
|
40
|
+
onCompositionend: (payload: CompositionEvent) => void;
|
|
41
|
+
onCompositionstart: (payload: CompositionEvent) => void;
|
|
42
|
+
onCompositionupdate: (payload: CompositionEvent) => void;
|
|
43
|
+
onContextmenu: (payload: PointerEvent) => void;
|
|
44
|
+
onCopy: (payload: ClipboardEvent) => void;
|
|
45
|
+
onCut: (payload: ClipboardEvent) => void;
|
|
46
|
+
onDblclick: (payload: MouseEvent) => void;
|
|
47
|
+
onDrag: (payload: DragEvent) => void;
|
|
48
|
+
onDragend: (payload: DragEvent) => void;
|
|
49
|
+
onDragenter: (payload: DragEvent) => void;
|
|
50
|
+
onDragleave: (payload: DragEvent) => void;
|
|
51
|
+
onDragover: (payload: DragEvent) => void;
|
|
52
|
+
onDragstart: (payload: DragEvent) => void;
|
|
53
|
+
onDrop: (payload: DragEvent) => void;
|
|
54
|
+
onDurationchange: (payload: Event) => void;
|
|
55
|
+
onEmptied: (payload: Event) => void;
|
|
56
|
+
onEnded: (payload: Event) => void;
|
|
57
|
+
onError: (payload: Event) => void;
|
|
58
|
+
onFocusin: (payload: FocusEvent) => void;
|
|
59
|
+
onFocusout: (payload: FocusEvent) => void;
|
|
60
|
+
onFormdata: (payload: FormDataEvent) => void;
|
|
61
|
+
onGotpointercapture: (payload: PointerEvent) => void;
|
|
62
|
+
onInvalid: (payload: Event) => void;
|
|
63
|
+
onKeydown: (payload: KeyboardEvent) => void;
|
|
64
|
+
onKeypress: (payload: KeyboardEvent) => void;
|
|
65
|
+
onKeyup: (payload: KeyboardEvent) => void;
|
|
66
|
+
onLoad: (payload: Event) => void;
|
|
67
|
+
onLoadeddata: (payload: Event) => void;
|
|
68
|
+
onLoadedmetadata: (payload: Event) => void;
|
|
69
|
+
onLoadstart: (payload: Event) => void;
|
|
70
|
+
onLostpointercapture: (payload: PointerEvent) => void;
|
|
71
|
+
onMousedown: (payload: MouseEvent) => void;
|
|
72
|
+
onMouseenter: (payload: MouseEvent) => void;
|
|
73
|
+
onMouseleave: (payload: MouseEvent) => void;
|
|
74
|
+
onMousemove: (payload: MouseEvent) => void;
|
|
75
|
+
onMouseout: (payload: MouseEvent) => void;
|
|
76
|
+
onMouseover: (payload: MouseEvent) => void;
|
|
77
|
+
onMouseup: (payload: MouseEvent) => void;
|
|
78
|
+
onPaste: (payload: ClipboardEvent) => void;
|
|
79
|
+
onPause: (payload: Event) => void;
|
|
80
|
+
onPlay: (payload: Event) => void;
|
|
81
|
+
onPlaying: (payload: Event) => void;
|
|
82
|
+
onPointercancel: (payload: PointerEvent) => void;
|
|
83
|
+
onPointerdown: (payload: PointerEvent) => void;
|
|
84
|
+
onPointerenter: (payload: PointerEvent) => void;
|
|
85
|
+
onPointerleave: (payload: PointerEvent) => void;
|
|
86
|
+
onPointermove: (payload: PointerEvent) => void;
|
|
87
|
+
onPointerout: (payload: PointerEvent) => void;
|
|
88
|
+
onPointerover: (payload: PointerEvent) => void;
|
|
89
|
+
onPointerup: (payload: PointerEvent) => void;
|
|
90
|
+
onRatechange: (payload: Event) => void;
|
|
91
|
+
onReset: (payload: Event) => void;
|
|
92
|
+
onScroll: (payload: Event) => void;
|
|
93
|
+
onScrollend: (payload: Event) => void;
|
|
94
|
+
onSecuritypolicyviolation: (payload: SecurityPolicyViolationEvent) => void;
|
|
95
|
+
onSeeked: (payload: Event) => void;
|
|
96
|
+
onSeeking: (payload: Event) => void;
|
|
97
|
+
onStalled: (payload: Event) => void;
|
|
98
|
+
onSubmit: (payload: SubmitEvent) => void;
|
|
99
|
+
onSuspend: (payload: Event) => void;
|
|
100
|
+
onTimeupdate: (payload: Event) => void;
|
|
101
|
+
onToggle: (payload: ToggleEvent) => void;
|
|
102
|
+
onTouchcancel: (payload: TouchEvent) => void;
|
|
103
|
+
onTouchend: (payload: TouchEvent) => void;
|
|
104
|
+
onTouchmove: (payload: TouchEvent) => void;
|
|
105
|
+
onTouchstart: (payload: TouchEvent) => void;
|
|
106
|
+
onTransitioncancel: (payload: TransitionEvent) => void;
|
|
107
|
+
onTransitionend: (payload: TransitionEvent) => void;
|
|
108
|
+
onTransitionrun: (payload: TransitionEvent) => void;
|
|
109
|
+
onTransitionstart: (payload: TransitionEvent) => void;
|
|
110
|
+
onVolumechange: (payload: Event) => void;
|
|
111
|
+
onWaiting: (payload: Event) => void;
|
|
112
|
+
onWheel: (payload: WheelEvent) => void;
|
|
113
|
+
dir: string;
|
|
114
|
+
onDragexit: (payload: DragEvent) => void;
|
|
115
|
+
onEncrypted: (payload: MediaEncryptedEvent) => void;
|
|
116
|
+
innerHTML: string;
|
|
117
|
+
class: any;
|
|
118
|
+
accesskey: string;
|
|
119
|
+
contenteditable: "inherit" | (boolean | "true" | "false") | "plaintext-only";
|
|
120
|
+
draggable: boolean | "true" | "false";
|
|
121
|
+
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
122
|
+
id: string;
|
|
123
|
+
inert: boolean | "true" | "false";
|
|
124
|
+
lang: string;
|
|
125
|
+
placeholder: string;
|
|
126
|
+
spellcheck: boolean | "true" | "false";
|
|
127
|
+
tabindex: string | number;
|
|
128
|
+
translate: "yes" | "no";
|
|
129
|
+
radiogroup: string;
|
|
130
|
+
role: string;
|
|
131
|
+
about: string;
|
|
132
|
+
datatype: string;
|
|
133
|
+
inlist: any;
|
|
134
|
+
prefix: string;
|
|
135
|
+
property: string;
|
|
136
|
+
resource: string;
|
|
137
|
+
typeof: string;
|
|
138
|
+
vocab: string;
|
|
139
|
+
autocapitalize: string;
|
|
140
|
+
autocorrect: string;
|
|
141
|
+
autosave: string;
|
|
142
|
+
color: string;
|
|
143
|
+
itemprop: string;
|
|
144
|
+
itemscope: boolean | "true" | "false";
|
|
145
|
+
itemtype: string;
|
|
146
|
+
itemid: string;
|
|
147
|
+
itemref: string;
|
|
148
|
+
results: string | number;
|
|
149
|
+
security: string;
|
|
150
|
+
unselectable: "on" | "off";
|
|
151
|
+
inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
152
|
+
is: string;
|
|
153
|
+
'aria-activedescendant': string;
|
|
154
|
+
'aria-atomic': boolean | "true" | "false";
|
|
155
|
+
'aria-autocomplete': "list" | "none" | "inline" | "both";
|
|
156
|
+
'aria-busy': boolean | "true" | "false";
|
|
157
|
+
'aria-checked': (boolean | "true" | "false") | "mixed";
|
|
158
|
+
'aria-colcount': string | number;
|
|
159
|
+
'aria-colindex': string | number;
|
|
160
|
+
'aria-colspan': string | number;
|
|
161
|
+
'aria-controls': string;
|
|
162
|
+
'aria-current': "time" | (boolean | "true" | "false") | "page" | "step" | "location" | "date";
|
|
163
|
+
'aria-describedby': string;
|
|
164
|
+
'aria-details': string;
|
|
165
|
+
'aria-disabled': boolean | "true" | "false";
|
|
166
|
+
'aria-dropeffect': "link" | "copy" | "none" | "execute" | "move" | "popup";
|
|
167
|
+
'aria-errormessage': string;
|
|
168
|
+
'aria-expanded': boolean | "true" | "false";
|
|
169
|
+
'aria-flowto': string;
|
|
170
|
+
'aria-grabbed': boolean | "true" | "false";
|
|
171
|
+
'aria-haspopup': "dialog" | "listbox" | "menu" | "tree" | (boolean | "true" | "false") | "grid";
|
|
172
|
+
'aria-hidden': boolean | "true" | "false";
|
|
173
|
+
'aria-invalid': (boolean | "true" | "false") | "grammar" | "spelling";
|
|
174
|
+
'aria-keyshortcuts': string;
|
|
175
|
+
'aria-label': string;
|
|
176
|
+
'aria-labelledby': string;
|
|
177
|
+
'aria-level': string | number;
|
|
178
|
+
'aria-live': "off" | "assertive" | "polite";
|
|
179
|
+
'aria-modal': boolean | "true" | "false";
|
|
180
|
+
'aria-multiline': boolean | "true" | "false";
|
|
181
|
+
'aria-multiselectable': boolean | "true" | "false";
|
|
182
|
+
'aria-orientation': "horizontal" | "vertical";
|
|
183
|
+
'aria-owns': string;
|
|
184
|
+
'aria-placeholder': string;
|
|
185
|
+
'aria-posinset': string | number;
|
|
186
|
+
'aria-pressed': (boolean | "true" | "false") | "mixed";
|
|
187
|
+
'aria-readonly': boolean | "true" | "false";
|
|
188
|
+
'aria-relevant': "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
189
|
+
'aria-required': boolean | "true" | "false";
|
|
190
|
+
'aria-roledescription': string;
|
|
191
|
+
'aria-rowcount': string | number;
|
|
192
|
+
'aria-rowindex': string | number;
|
|
193
|
+
'aria-rowspan': string | number;
|
|
194
|
+
'aria-selected': boolean | "true" | "false";
|
|
195
|
+
'aria-setsize': string | number;
|
|
196
|
+
'aria-sort': "none" | "ascending" | "descending" | "other";
|
|
197
|
+
'aria-valuemax': string | number;
|
|
198
|
+
'aria-valuemin': string | number;
|
|
199
|
+
'aria-valuenow': string | number;
|
|
200
|
+
'aria-valuetext': string;
|
|
201
|
+
side: Side;
|
|
202
|
+
reference: _floating_ui_vue0.ReferenceElement;
|
|
203
|
+
floatingRef: (el: HTMLElement) => void;
|
|
204
|
+
placement: Placement;
|
|
205
|
+
sideOffset: number;
|
|
206
|
+
sideFlip: boolean;
|
|
207
|
+
align: Align;
|
|
208
|
+
alignOffset: number;
|
|
209
|
+
alignFlip: boolean;
|
|
210
|
+
avoidCollisions: boolean;
|
|
211
|
+
collisionBoundary: Element | null | Array<Element | null>;
|
|
212
|
+
collisionPadding: number | Partial<Record<Side, number>>;
|
|
213
|
+
arrowPadding: number;
|
|
214
|
+
sticky: "partial" | "always";
|
|
215
|
+
hideWhenDetached: boolean;
|
|
216
|
+
positionStrategy: "absolute" | "fixed";
|
|
217
|
+
updatePositionStrategy: "optimized" | "always";
|
|
218
|
+
disableUpdateOnLayoutShift: boolean;
|
|
219
|
+
prioritizePosition: boolean;
|
|
220
|
+
}, {}, {}, {}, string, vue472.ComponentProvideOptions, false, {}, any>;
|
|
221
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
222
|
+
declare const _default: typeof __VLS_export;
|
|
223
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
224
|
+
new (): {
|
|
225
|
+
$slots: S;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
//#endregion
|
|
229
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{providePopperRootContext as e}from"./context.js";import{defineComponent as t,renderSlot as n}from"vue";var r=t({name:`PopperRoot`,inheritAttrs:!1,__name:`popper-root`,setup(t){return e(),(e,t)=>n(e.$slots,`default`)}});export{r as default};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as vue462 from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/popper/popper-root.vue.d.ts
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: vue462.DefineComponent<{}, {}, {}, {}, {}, vue462.ComponentOptionsMixin, vue462.ComponentOptionsMixin, {}, string, vue462.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue462.ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.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/vue";const c={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`},l={start:`0%`,center:`50%`,end:`100%`},u={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 d(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,d]=f(n),p=l[d],m=(i.arrow?.x??0)+o/2,h=(i.arrow?.y??0)+s/2,g=u[c],_={isArrowHidden:a,noArrowAlign:p,arrowXCenter:m,arrowYCenter:h,arrowHeight:s,floatingWidth:r.floating.width,floatingHeight:r.floating.height};return{data:{x:g.getX(_),y:g.getY(_)}}}}}function f(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function p(e,t){let n=e;return t!==`center`&&(n+=`-${t}`),n}function m(){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}}function h(e,l,u,f){let p=g(e);return[a({mainAxis:(e.sideOffset??0)+f,alignmentAxis:e.alignOffset}),e.prioritizePosition&&e.avoidCollisions&&n({...p}),e.avoidCollisions&&o({...p,mainAxis:!0,crossAxis:!!e.prioritizePosition,limiter:e.sticky===`partial`?i():void 0}),!e.prioritizePosition&&e.avoidCollisions&&n({...p}),s({...p,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(c.availableWidth,`${n}px`),o.setProperty(c.availableHeight,`${r}px`),o.setProperty(c.anchorWidth,`${i}px`),o.setProperty(c.anchorHeight,`${a}px`)}}),l&&t({element:l,padding:e.arrowPadding}),d({arrowWidth:u,arrowHeight:f}),e.hideWhenDetached&&r({strategy:`referenceHidden`,...p})].filter(Boolean)}function g(t){let n=typeof t.collisionPadding==`number`?t.collisionPadding:{top:0,right:0,bottom:0,left:0,...t.collisionPadding},r=Array.isArray(t.collisionBoundary)?t.collisionBoundary:[t.collisionBoundary],i=r.length>0;return{mainAxis:t.sideFlip,crossAxis:t.alignFlip,padding:n,boundary:r.filter(t=>!e(t)),altBoundary:i}}export{m as createPopperContentPropsDefaultValue,h as getFloatingUIMiddleware,p as getPlacementFromSideAndAlign,f as getSideAndAlignFromPlacement,c as popperCssVars};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Align, Placement, Side } from "../../types/common.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
+
import { ArrowProps } from "../arrow/types.js";
|
|
5
|
+
import { ComputedRef, HTMLAttributes } from "vue";
|
|
6
|
+
import { ReferenceElement } from "@floating-ui/vue";
|
|
7
|
+
|
|
8
|
+
//#region src/components/popper/types.d.ts
|
|
9
|
+
interface PopperAnchorProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
|
|
10
|
+
/**
|
|
11
|
+
* The reference (or anchor) element that is being referred to for positioning. If not provided will use the current
|
|
12
|
+
* component as anchor.
|
|
13
|
+
*/
|
|
14
|
+
reference?: ReferenceElement;
|
|
15
|
+
}
|
|
16
|
+
interface PopperContentProps extends /** @vue-ignore */HTMLAttributes {
|
|
17
|
+
/**
|
|
18
|
+
* The function to set the floating element.
|
|
19
|
+
*
|
|
20
|
+
* @param el - The floating element.
|
|
21
|
+
*/
|
|
22
|
+
floatingRef?: (el: HTMLElement) => void;
|
|
23
|
+
/**
|
|
24
|
+
* The placement of the floating element.
|
|
25
|
+
*
|
|
26
|
+
* If used, it will override the `side` and `align` props.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue undefined
|
|
29
|
+
*/
|
|
30
|
+
placement?: Placement;
|
|
31
|
+
/**
|
|
32
|
+
* The preferred side of the trigger to render against when open. Will be reversed when collisions occur and
|
|
33
|
+
* avoidCollisions is enabled.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue 'bottom'
|
|
36
|
+
*/
|
|
37
|
+
side?: Side;
|
|
38
|
+
/**
|
|
39
|
+
* The distance in pixels from the trigger.
|
|
40
|
+
*
|
|
41
|
+
* @defaultValue 0
|
|
42
|
+
*/
|
|
43
|
+
sideOffset?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Flip to the opposite side when colliding with boundary.
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue true
|
|
48
|
+
*/
|
|
49
|
+
sideFlip?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The preferred alignment against the trigger. May change when collisions occur.
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue 'center'
|
|
54
|
+
*/
|
|
55
|
+
align?: Align;
|
|
56
|
+
/**
|
|
57
|
+
* An offset in pixels from the `start` or `end` alignment options.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue 0
|
|
60
|
+
*/
|
|
61
|
+
alignOffset?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Flip alignment when colliding with boundary.
|
|
64
|
+
* May only occur when `prioritizePosition` is true.
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue true
|
|
67
|
+
*/
|
|
68
|
+
alignFlip?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* When `true`, overrides the side and align preferences to prevent collisions with boundary edges.
|
|
71
|
+
*
|
|
72
|
+
* @defaultValue true
|
|
73
|
+
*/
|
|
74
|
+
avoidCollisions?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The element used as the collision boundary. By default this is the viewport, though you can provide additional
|
|
77
|
+
* element(s) to be included in this check.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue [ ]
|
|
80
|
+
*/
|
|
81
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
82
|
+
/**
|
|
83
|
+
* The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for
|
|
84
|
+
* all sides), or a partial padding object, for example: { top: 20, left: 20 }.
|
|
85
|
+
*
|
|
86
|
+
* @defaultValue 0
|
|
87
|
+
*/
|
|
88
|
+
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
89
|
+
/**
|
|
90
|
+
* The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it
|
|
91
|
+
* from overflowing the corners.
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue 0
|
|
94
|
+
*/
|
|
95
|
+
arrowPadding?: number;
|
|
96
|
+
/**
|
|
97
|
+
* The sticky behavior on the align axis. `partial` will keep the content in the boundary as long as the trigger is at
|
|
98
|
+
* least partially in the boundary whilst "always" will keep the content in the boundary regardless.
|
|
99
|
+
*
|
|
100
|
+
* @defaultValue 'partial'
|
|
101
|
+
*/
|
|
102
|
+
sticky?: 'partial' | 'always';
|
|
103
|
+
/**
|
|
104
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
105
|
+
*
|
|
106
|
+
* @defaultValue false
|
|
107
|
+
*/
|
|
108
|
+
hideWhenDetached?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* The type of CSS position property to use.
|
|
111
|
+
*
|
|
112
|
+
* @defaultValue 'fixed'
|
|
113
|
+
*/
|
|
114
|
+
positionStrategy?: 'absolute' | 'fixed';
|
|
115
|
+
/**
|
|
116
|
+
* Strategy to update the position of the floating element on every animation frame.
|
|
117
|
+
*
|
|
118
|
+
* @defaultValue 'optimized'
|
|
119
|
+
*/
|
|
120
|
+
updatePositionStrategy?: 'optimized' | 'always';
|
|
121
|
+
/**
|
|
122
|
+
* Whether to disable the update position for the content when the layout shifted.
|
|
123
|
+
*
|
|
124
|
+
* @defaultValue false
|
|
125
|
+
*/
|
|
126
|
+
disableUpdateOnLayoutShift?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Force content to be position within the viewport. Might overlap the reference element, which may not be desired.
|
|
129
|
+
*
|
|
130
|
+
* @defaultValue false
|
|
131
|
+
*/
|
|
132
|
+
prioritizePosition?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The custom element or virtual element that will be set as the reference to position the floating element. If
|
|
135
|
+
* provided, it will replace the default anchor element.
|
|
136
|
+
*/
|
|
137
|
+
reference?: ReferenceElement;
|
|
138
|
+
}
|
|
139
|
+
type PopperThemeSlot = 'content' | 'arrow';
|
|
140
|
+
type PopperUi = Record<PopperThemeSlot, string>;
|
|
141
|
+
interface PopperThemeContextParams {
|
|
142
|
+
ui: ComputedRef<PopperUi>;
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
export { PopperAnchorProps, PopperContentProps, PopperThemeContextParams, PopperThemeSlot, PopperUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./portal.js";export{e as Portal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Teleport as e,createBlock as t,createCommentVNode as n,defineComponent as r,onMounted as i,openBlock as a,renderSlot as o,shallowRef as s}from"vue";var c=r({name:`Portal`,__name:`portal`,props:{to:{default:`body`},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(r){let c=s(!1);return i(()=>{c.value=!0}),(i,s)=>c.value||r.forceMount?(a(),t(e,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[o(i.$slots,`default`)],8,[`to`,`disabled`,`defer`])):n(`v-if`,!0)}});export{c as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PortalProps } from "./types.js";
|
|
2
|
+
import * as vue27 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/portal/portal.vue.d.ts
|
|
5
|
+
declare var __VLS_6: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_6) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: vue27.DefineComponent<PortalProps, {}, {}, {}, {}, vue27.ComponentOptionsMixin, vue27.ComponentOptionsMixin, {}, string, vue27.PublicProps, Readonly<PortalProps> & Readonly<{}>, {
|
|
10
|
+
to: string | HTMLElement;
|
|
11
|
+
}, {}, {}, {}, string, vue27.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,26 @@
|
|
|
1
|
+
import { ForceMountProps } from "../../types/component.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/portal/types.d.ts
|
|
5
|
+
interface PortalProps extends ForceMountProps {
|
|
6
|
+
/**
|
|
7
|
+
* Vue native teleport component prop `:to`
|
|
8
|
+
*
|
|
9
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#basic-usage}
|
|
10
|
+
*/
|
|
11
|
+
to?: string | HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* Disable teleport and render the component inline
|
|
14
|
+
*
|
|
15
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#disabling-teleport}
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Defer the resolving of a Teleport target until other parts of the application have mounted (requires Vue 3.5.0+)
|
|
20
|
+
*
|
|
21
|
+
* {@link https://vuejs.org/guide/built-ins/teleport.html#deferred-teleport}
|
|
22
|
+
*/
|
|
23
|
+
defer?: boolean;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { PortalProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"./primitive.js";export{e as Primitive};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PrimitiveProps } from "./types.js";
|
|
2
|
+
import * as vue1 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/primitive/primitive.d.ts
|
|
5
|
+
declare const Primitive: vue1.DefineSetupFnComponent<PrimitiveProps, {}, {}, PrimitiveProps & {}, vue1.PublicProps>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Primitive };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Slot as e}from"../slot/slot.js";import{defineComponent as t,h as n}from"vue";const r=new Set([`area`,`input`,`img`]),i=t((t,{slots:i,attrs:a})=>{let o=t.asChild?`template`:t.as;return typeof o==`string`&&r.has(o)?()=>n(o,a):o===`template`?()=>n(e,a,{default:i.default}):()=>n(t.as||`div`,a,{default:i.default})},{name:`Primitive`,inheritAttrs:!1,props:[`as`,`asChild`]});export{i as Primitive};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/primitive/types.d.ts
|
|
4
|
+
type AsTag = 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | ({} & string);
|
|
5
|
+
interface PrimitiveProps {
|
|
6
|
+
/** Change the default rendered element for the one passed as a child, merging their props and behavior. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The element or component this component should render as. Can be overwrite by `asChild`
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue 'div'
|
|
12
|
+
*/
|
|
13
|
+
as?: AsTag | Component;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AsTag, PrimitiveProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RadioGroupThemeContextParams } from "./types.js";
|
|
2
|
+
import "../../index.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/radio-group/context.d.ts
|
|
6
|
+
|
|
7
|
+
declare const provideRadioGroupThemeContext: (params: RadioGroupThemeContextParams) => RadioGroupThemeContextParams, useRadioGroupThemeContext: <N extends string | null | undefined = undefined>(consumerName?: N | undefined, defaultValue?: RadioGroupThemeContextParams | undefined) => N extends null | undefined ? RadioGroupThemeContextParams | null : RadioGroupThemeContextParams;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { provideRadioGroupThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import{computed as n,shallowRef as r}from"vue";const[i,a]=t(`RadioGroupRoot`,e=>e),[o,s]=t(`RadioGroupItem`,t=>{let i=n(()=>e(t.checked.value)),a=r(``),o=e=>{a.value=e};return{...t,dataState:i,controlId:a,initControlId:o}}),[c,l]=t(`RadioGroupTheme`,e=>e);export{o as provideRadioGroupItemContext,i as provideRadioGroupRootContext,c as provideRadioGroupThemeContext,s as useRadioGroupItemContext,a as useRadioGroupRootContext,l as useRadioGroupThemeContext};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LabelProps } from "../label/types.js";
|
|
2
|
+
import { RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupThemeSlot, RadioGroupUi, RadioSelectEvent } from "./types.js";
|
|
3
|
+
import { _default as _default$4 } from "./radio-group-root.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./radio-group-item.vue.js";
|
|
5
|
+
import { _default } from "./radio-group-control.vue.js";
|
|
6
|
+
import { _default as _default$1 } from "./radio-group-indicator.vue.js";
|
|
7
|
+
import { _default as _default$3 } from "./radio-group-label.vue.js";
|
|
8
|
+
import { provideRadioGroupThemeContext } from "./context.js";
|
|
9
|
+
export { _default as RadioGroupControl, type RadioGroupControlProps, _default$1 as RadioGroupIndicator, type RadioGroupIndicatorProps, _default$2 as RadioGroupItem, type RadioGroupItemEmits, type RadioGroupItemProps, _default$3 as RadioGroupLabel, type LabelProps as RadioGroupLabelProps, _default$4 as RadioGroupRoot, type RadioGroupRootEmits, type RadioGroupRootProps, type RadioGroupThemeSlot, type RadioGroupUi, type RadioSelectEvent, provideRadioGroupThemeContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{provideRadioGroupThemeContext as e}from"./context.js";import t from"./radio-group-root.js";import n from"./radio-group-item.js";import r from"./radio-group-control.js";import i from"./radio-group-indicator.js";import a from"./radio-group-label.js";export{r as RadioGroupControl,i as RadioGroupIndicator,n as RadioGroupItem,a as RadioGroupLabel,t as RadioGroupRoot,e as provideRadioGroupThemeContext};
|
|
@@ -0,0 +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 r from"../roving-focus/roving-focus-item.js";import{useRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupThemeContext as o}from"./context.js";import{computed as s,createBlock as c,createElementVNode as l,defineComponent as u,normalizeClass as d,onBeforeMount as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,useAttrs as _,useTemplateRef as v,watchEffect as y,withCtx as b,withKeys as x,withModifiers as S}from"vue";const C=[`id`,`disabled`,`aria-checked`,`aria-label`,`data-disabled`,`data-state`,`value`,`required`,`name`];var w=u({name:`RadioGroupControl`,__name:`radio-group-control`,props:{id:{}},setup(u){let w=u,T=_(),E=o(),D=s(()=>E?.ui?.value?.control),O=v(`controlElement`),k=a(`RadioGroupControl`),{value:A,disabled:j,name:M,required:N,checked:P,dataState:F,onSelect:I,initControlId:L}=i(`RadioGroupControl`),R=s(()=>t(O.value)),z=s(()=>e(O.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){w.disabled||n(`radio.select`,t=>{I(t),!t?.defaultPrevented&&(k.modelValue.value=A.value,R.value&&e.stopPropagation())},{originalEvent:e,value:A.value})}function G(){setTimeout(()=>{V&&O.value?.click()},0)}return y(()=>{w.id&&L(w.id)}),p(()=>{document.addEventListener(`keydown`,H),document.addEventListener(`keyup`,U)}),f(()=>{document.removeEventListener(`keydown`,H),document.removeEventListener(`keyup`,U)}),(e,t)=>(m(),c(g(r),{"as-child":``,checked:g(P),focusable:!g(j),active:g(P)},{default:b(()=>[l(`button`,{id:u.id,ref_key:`controlElement`,ref:O,class:d(D.value),role:`radio`,type:`button`,disabled:g(j),"aria-checked":g(P),"aria-label":z.value,"data-disabled":g(j)?``:void 0,"data-state":g(F),value:String(g(A)),required:g(N),name:g(M),onClick:S(W,[`stop`]),onKeydown:t[0]||=x(S(()=>{},[`prevent`]),[`enter`]),onFocus:G},[h(e.$slots,`default`,{checked:g(P),required:g(N),disabled:g(j)})],42,C)]),_:3},8,[`checked`,`focusable`,`active`]))}});export{w as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RadioGroupControlProps } from "./types.js";
|
|
2
|
+
import * as vue1621 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/radio-group/radio-group-control.vue.d.ts
|
|
5
|
+
declare var __VLS_7: {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
required: boolean | undefined;
|
|
8
|
+
disabled: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_7) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: vue1621.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue1621.ComponentOptionsMixin, vue1621.ComponentOptionsMixin, {}, string, vue1621.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1621.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{getCheckedState as e}from"../../shared/value.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import{Primitive as r}from"../primitive/primitive.js";import{useRadioGroupItemContext as i,useRadioGroupThemeContext as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,withCtx as h}from"vue";var g=l({name:`RadioGroupIndicator`,__name:`radio-group-indicator`,props:{asChild:{type:Boolean},as:{default:`span`},forceMount:{type:Boolean}},setup(l){let g=l,_=a(),v=o(()=>_?.ui?.value?.indicator),[y,b]=t(),{checked:x,disabled:S}=i(`RadioGroupIndicator`),C=g.forceMount?p(!0):n(y,()=>x.value===!0),w=o(()=>e(x.value));return(e,t)=>m(C)?(d(),s(m(r),{key:0,ref:m(b),as:l.as,"as-child":l.asChild,class:u(v.value),"data-state":w.value,"data-disabled":m(S)?``:void 0},{default:h(()=>[f(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-state`,`data-disabled`])):c(`v-if`,!0)}});export{g as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import "../primitive/index.js";
|
|
3
|
+
import { RadioGroupIndicatorProps } from "./types.js";
|
|
4
|
+
import * as vue1643 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/radio-group/radio-group-indicator.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: vue1643.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1643.ComponentOptionsMixin, vue1643.ComponentOptionsMixin, {}, string, vue1643.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1643.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1643.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 r from"../visually-hidden/visually-hidden-input.js";import{provideRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupThemeContext as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g}from"vue";const _=[`data-state`];var v=d({name:`RadioGroupItem`,__name:`radio-group-item`,props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`select`],setup(d,{emit:v}){let y=d,b=v,x=o(),S=s(()=>x?.ui?.value?.item),C=a(`RadioGroupItem`),w=g(`itemElement`),T=s(()=>t(w.value)),E=s(()=>C.disabled.value||y.disabled),D=s(()=>C.required.value||y.required),O=s(()=>!e(C.modelValue.value)&&C.modelValue.value===y.value),{dataState:k}=i({...n(y,[`name`,`required`,`value`,`disabled`]),checked:O,onSelect:e=>{b(`select`,e)}});return(e,t)=>(p(),u(`div`,{ref_key:`itemElement`,ref:w,class:f(S.value),"data-state":h(k)},[m(e.$slots,`default`,{checked:O.value}),T.value&&d.name?(p(),c(h(r),{key:0,type:`radio`,tabindex:`-1`,value:d.value,checked:O.value,name:d.name,disabled:E.value,required:D.value},null,8,[`value`,`checked`,`name`,`disabled`,`required`])):l(`v-if`,!0)],10,_))}});export{v as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { RadioGroupItemProps, RadioSelectEvent } from "./types.js";
|
|
2
|
+
import * as vue1633 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/radio-group/radio-group-item.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue1633.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1633.ComponentOptionsMixin, vue1633.ComponentOptionsMixin, {
|
|
12
|
+
select: (event: RadioSelectEvent) => any;
|
|
13
|
+
}, string, vue1633.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
14
|
+
onSelect?: ((event: RadioSelectEvent) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1633.ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../label/label.js";import{useRadioGroupItemContext as t,useRadioGroupThemeContext 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:`RadioGroupLabel`,__name:`radio-group-label`,props:{for:{}},setup(a){let d=a,f=n(),p=r(()=>f?.ui?.value?.label),{controlId:m}=t(`RadioGroupLabel`),h=r(()=>d.for||m.value);return(t,n)=>(s(),i(l(e),{for:h.value,class:o(p.value)},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LabelProps } from "../label/types.js";
|
|
2
|
+
import "./types.js";
|
|
3
|
+
import * as vue1628 from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/radio-group/radio-group-label.vue.d.ts
|
|
6
|
+
declare var __VLS_7: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_7) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: vue1628.DefineComponent<LabelProps, {}, {}, {}, {}, vue1628.ComponentOptionsMixin, vue1628.ComponentOptionsMixin, {}, string, vue1628.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1628.ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { _default };
|