@soybeanjs/ui 0.0.1-beta.3 → 0.0.2-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.js +1 -0
- package/dist/components/accordion/accordion.vue.d.ts +48 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/accordion/types.d.ts +32 -0
- package/dist/components/alert/alert.js +1 -0
- package/dist/components/alert/alert.vue.d.ts +34 -0
- package/dist/components/alert/index.d.ts +5 -0
- package/dist/components/alert/types.d.ts +26 -0
- package/dist/components/alert-dialog/alert-dialog-action.js +1 -0
- package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +22 -0
- package/dist/components/alert-dialog/alert-dialog-cancel.js +1 -0
- package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +25 -0
- package/dist/components/alert-dialog/alert-dialog.js +1 -0
- package/dist/components/alert-dialog/alert-dialog.vue.d.ts +45 -0
- package/dist/components/alert-dialog/index.d.ts +6 -0
- package/dist/components/alert-dialog/types.d.ts +30 -0
- package/dist/components/arrow/index.d.ts +2 -0
- package/dist/components/arrow/index.js +1 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/avatar/avatar.js +1 -0
- package/dist/components/avatar/avatar.vue.d.ts +27 -0
- package/dist/components/avatar/index.d.ts +4 -0
- package/dist/components/avatar/types.d.ts +15 -0
- package/dist/components/badge/badge.js +1 -0
- package/dist/components/badge/badge.vue.d.ts +26 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/badge/types.d.ts +17 -0
- package/dist/components/breadcrumb/breadcrumb.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.vue.d.ts +49 -0
- package/dist/components/breadcrumb/index.d.ts +4 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/breadcrumb/shared.js +1 -0
- package/dist/components/breadcrumb/types.d.ts +51 -0
- package/dist/components/button/button-group.js +1 -0
- package/dist/components/button/button-group.vue.d.ts +22 -0
- package/dist/components/button/button-icon.js +1 -0
- package/dist/components/button/button-icon.vue.d.ts +16 -0
- package/dist/components/button/button-link.js +1 -0
- package/dist/components/button/button-link.vue.d.ts +28 -0
- package/dist/components/button/button-loading.js +1 -0
- package/dist/components/button/button-loading.vue.d.ts +33 -0
- package/dist/components/button/button.js +1 -0
- package/dist/components/button/button.vue.d.ts +26 -0
- package/dist/components/button/context.js +1 -0
- package/dist/components/button/index.d.ts +7 -0
- package/dist/components/button/types.d.ts +80 -0
- package/dist/components/card/card.js +1 -0
- package/dist/components/card/card.vue.d.ts +28 -0
- package/dist/components/card/index.d.ts +4 -0
- package/dist/components/card/types.d.ts +37 -0
- package/dist/components/checkbox/checkbox-card-group.js +1 -0
- package/dist/components/checkbox/checkbox-card-group.vue.d.ts +20 -0
- package/dist/components/checkbox/checkbox-card.js +1 -0
- package/dist/components/checkbox/checkbox-card.vue.d.ts +29 -0
- package/dist/components/checkbox/checkbox-group.js +1 -0
- package/dist/components/checkbox/checkbox-group.vue.d.ts +20 -0
- package/dist/components/checkbox/checkbox.js +1 -0
- package/dist/components/checkbox/checkbox.vue.d.ts +34 -0
- package/dist/components/checkbox/index.d.ts +7 -0
- package/dist/components/checkbox/types.d.ts +53 -0
- package/dist/components/collapsible/collapsible.js +1 -0
- package/dist/components/collapsible/collapsible.vue.d.ts +28 -0
- package/dist/components/collapsible/index.d.ts +4 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/collapsible/types.d.ts +12 -0
- package/dist/components/command/command-group-option.js +1 -0
- package/dist/components/command/command-option.js +1 -0
- package/dist/components/command/command-single-option.js +1 -0
- package/dist/components/command/command.js +1 -0
- package/dist/components/command/command.vue.d.ts +45 -0
- package/dist/components/command/context.js +1 -0
- package/dist/components/command/index.d.ts +2 -0
- package/dist/components/command/shared.js +1 -0
- package/dist/components/command/types.d.ts +94 -0
- package/dist/components/config-provider/config-provider.js +1 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +26 -0
- package/dist/components/config-provider/context.d.ts +6 -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/shared.js +1 -0
- package/dist/components/config-provider/types.d.ts +29 -0
- package/dist/components/context-menu/context-menu-checkbox.js +1 -0
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +37 -0
- package/dist/components/context-menu/context-menu-radio.js +1 -0
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +37 -0
- package/dist/components/context-menu/context-menu-wrapper.js +1 -0
- package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +41 -0
- package/dist/components/context-menu/context-menu.js +1 -0
- package/dist/components/context-menu/context-menu.vue.d.ts +37 -0
- package/dist/components/context-menu/index.d.ts +7 -0
- package/dist/components/context-menu/types.d.ts +25 -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-pure.js +1 -0
- package/dist/components/dialog/dialog-pure.vue.d.ts +47 -0
- package/dist/components/dialog/dialog.js +1 -0
- package/dist/components/dialog/dialog.vue.d.ts +62 -0
- package/dist/components/dialog/index.d.ts +6 -0
- package/dist/components/dialog/types.d.ts +35 -0
- package/dist/components/drawer/drawer-close.js +1 -0
- package/dist/components/drawer/drawer-close.vue.d.ts +18 -0
- package/dist/components/drawer/drawer.js +1 -0
- package/dist/components/drawer/drawer.vue.d.ts +63 -0
- package/dist/components/drawer/index.d.ts +3 -0
- package/dist/components/drawer/types.d.ts +16 -0
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +37 -0
- package/dist/components/dropdown-menu/dropdown-menu-radio.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +37 -0
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +42 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +37 -0
- package/dist/components/dropdown-menu/index.d.ts +7 -0
- package/dist/components/dropdown-menu/types.d.ts +25 -0
- package/dist/components/form/context.js +1 -0
- package/dist/components/form/form-field-array.js +1 -0
- package/dist/components/form/form-field-array.vue.d.ts +72 -0
- package/dist/components/form/form-field.js +1 -0
- package/dist/components/form/form-field.vue.d.ts +27 -0
- package/dist/components/form/form.js +1 -0
- package/dist/components/form/form.vue.d.ts +18 -0
- package/dist/components/form/index.d.ts +6 -0
- package/dist/components/form/types.d.ts +36 -0
- package/dist/components/icon/icon.js +1 -0
- package/dist/components/icon/icon.vue.d.ts +12 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/types.d.ts +10 -0
- package/dist/components/input/index.d.ts +4 -0
- package/dist/components/input/input.js +1 -0
- package/dist/components/input/input.vue.d.ts +24 -0
- package/dist/components/input/types.d.ts +26 -0
- package/dist/components/kbd/index.d.ts +3 -0
- package/dist/components/kbd/kbd.js +1 -0
- package/dist/components/kbd/kbd.vue.d.ts +10 -0
- package/dist/components/kbd/types.d.ts +12 -0
- package/dist/components/label/index.d.ts +2 -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 +10 -0
- package/dist/components/layout/index.d.ts +5 -0
- package/dist/components/layout/layout-trigger.js +1 -0
- package/dist/components/layout/layout-trigger.vue.d.ts +18 -0
- package/dist/components/layout/layout.js +1 -0
- package/dist/components/layout/layout.vue.d.ts +35 -0
- package/dist/components/layout/types.d.ts +19 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.js +1 -0
- package/dist/components/link/link.vue.d.ts +26 -0
- package/dist/components/link/types.d.ts +2 -0
- package/dist/components/list/index.d.ts +5 -0
- package/dist/components/list/list-item.js +1 -0
- package/dist/components/list/list-item.vue.d.ts +26 -0
- package/dist/components/list/list.js +1 -0
- package/dist/components/list/list.vue.d.ts +18 -0
- package/dist/components/list/types.d.ts +18 -0
- package/dist/components/menu/context.js +1 -0
- package/dist/components/menu/index.d.ts +7 -0
- package/dist/components/menu/menu-checkbox-options.js +1 -0
- package/dist/components/menu/menu-checkbox-options.vue.d.ts +26 -0
- package/dist/components/menu/menu-item-slot.js +1 -0
- package/dist/components/menu/menu-option.js +1 -0
- package/dist/components/menu/menu-option.vue.d.ts +46 -0
- package/dist/components/menu/menu-options.js +1 -0
- package/dist/components/menu/menu-options.vue.d.ts +46 -0
- package/dist/components/menu/menu-radio-options.js +1 -0
- package/dist/components/menu/menu-radio-options.vue.d.ts +26 -0
- package/dist/components/menu/shared.js +1 -0
- package/dist/components/menu/types.d.ts +92 -0
- package/dist/components/navigation-menu/context.js +1 -0
- package/dist/components/navigation-menu/index.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu-item-slot.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-option.js +1 -0
- package/dist/components/navigation-menu/navigation-menu-sub-option.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +55 -0
- package/dist/components/navigation-menu/shared.js +1 -0
- package/dist/components/navigation-menu/types.d.ts +62 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/number-input.js +1 -0
- package/dist/components/number-input/number-input.vue.d.ts +28 -0
- package/dist/components/number-input/types.d.ts +29 -0
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/pagination.js +1 -0
- package/dist/components/pagination/pagination.vue.d.ts +32 -0
- package/dist/components/pagination/types.d.ts +37 -0
- package/dist/components/password/index.d.ts +2 -0
- package/dist/components/password/password.js +1 -0
- package/dist/components/password/password.vue.d.ts +33 -0
- package/dist/components/password/types.d.ts +30 -0
- package/dist/components/popover/index.d.ts +4 -0
- package/dist/components/popover/popover.js +1 -0
- package/dist/components/popover/popover.vue.d.ts +43 -0
- package/dist/components/popover/types.d.ts +19 -0
- package/dist/components/radio-group/index.d.ts +7 -0
- package/dist/components/radio-group/radio-card-group.js +1 -0
- package/dist/components/radio-group/radio-card-group.vue.d.ts +20 -0
- package/dist/components/radio-group/radio-card.js +1 -0
- package/dist/components/radio-group/radio-card.vue.d.ts +22 -0
- package/dist/components/radio-group/radio-group.js +1 -0
- package/dist/components/radio-group/radio-group.vue.d.ts +20 -0
- package/dist/components/radio-group/radio.js +1 -0
- package/dist/components/radio-group/radio.vue.d.ts +18 -0
- package/dist/components/radio-group/types.d.ts +47 -0
- package/dist/components/segment/index.d.ts +2 -0
- package/dist/components/segment/segment.js +1 -0
- package/dist/components/segment/segment.vue.d.ts +24 -0
- package/dist/components/segment/types.d.ts +26 -0
- package/dist/components/select/index.d.ts +4 -0
- package/dist/components/select/select-group-option.js +1 -0
- package/dist/components/select/select-option.js +1 -0
- package/dist/components/select/select-single-option.js +1 -0
- package/dist/components/select/select.js +1 -0
- package/dist/components/select/select.vue.d.ts +52 -0
- package/dist/components/select/shared.js +1 -0
- package/dist/components/select/types.d.ts +74 -0
- package/dist/components/separator/index.d.ts +4 -0
- package/dist/components/separator/separator.js +1 -0
- package/dist/components/separator/separator.vue.d.ts +11 -0
- package/dist/components/separator/types.d.ts +16 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/switch.js +1 -0
- package/dist/components/switch/switch.vue.d.ts +645 -0
- package/dist/components/switch/types.d.ts +17 -0
- package/dist/components/tabs/index.d.ts +4 -0
- package/dist/components/tabs/tabs.js +1 -0
- package/dist/components/tabs/tabs.vue.d.ts +28 -0
- package/dist/components/tabs/types.d.ts +27 -0
- package/dist/components/tag/index.d.ts +3 -0
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/tag/tag.vue.d.ts +32 -0
- package/dist/components/tag/types.d.ts +16 -0
- package/dist/components/textarea/index.d.ts +5 -0
- package/dist/components/textarea/textarea.js +1 -0
- package/dist/components/textarea/textarea.vue.d.ts +27 -0
- package/dist/components/textarea/types.d.ts +36 -0
- package/dist/components/tooltip/index.d.ts +4 -0
- package/dist/components/tooltip/tooltip.js +1 -0
- package/dist/components/tooltip/tooltip.vue.d.ts +33 -0
- package/dist/components/tooltip/types.d.ts +19 -0
- package/dist/components/tree/index.d.ts +5 -0
- package/dist/components/tree/index.js +1 -0
- package/dist/components/tree/tree-virtualizer.js +1 -0
- package/dist/components/tree/tree-virtualizer.vue.d.ts +31 -0
- package/dist/components/tree/tree.js +1 -0
- package/dist/components/tree/tree.vue.d.ts +32 -0
- package/dist/components/tree/types.d.ts +10 -0
- package/dist/components/tree-menu/context.js +1 -0
- package/dist/components/tree-menu/index.d.ts +3 -0
- package/dist/components/tree-menu/shared.js +1 -0
- package/dist/components/tree-menu/tree-menu-item-wrapper.js +1 -0
- package/dist/components/tree-menu/tree-menu-item-wrapper.vue.d.ts +17 -0
- package/dist/components/tree-menu/tree-menu-item.js +1 -0
- package/dist/components/tree-menu/tree-menu.js +1 -0
- package/dist/components/tree-menu/tree-menu.vue.d.ts +44 -0
- package/dist/components/tree-menu/types.d.ts +80 -0
- package/dist/components/virtualizer/index.d.ts +4 -0
- package/dist/components/virtualizer/index.js +1 -0
- package/dist/components/virtualizer/types.d.ts +9 -0
- package/dist/components/virtualizer/virtualizer.js +1 -0
- package/dist/components/virtualizer/virtualizer.vue.d.ts +24 -0
- package/dist/headless/dist/components/accordion/accordion-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/accordion/accordion-header.vue.d.ts +2 -0
- package/dist/headless/dist/components/accordion/accordion-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/accordion/accordion-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/accordion/accordion-trigger.vue.d.ts +3 -0
- package/dist/headless/dist/components/accordion/context.d.ts +3 -0
- package/dist/headless/dist/components/accordion/index.d.ts +8 -0
- package/dist/headless/dist/components/accordion/types.d.ts +2 -0
- package/dist/headless/dist/components/alert/alert-close.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert/alert-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert/alert-description.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert/alert-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert/alert-title.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert/context.d.ts +2 -0
- package/dist/headless/dist/components/alert/index.d.ts +7 -0
- package/dist/headless/dist/components/alert/types.d.ts +2 -0
- package/dist/headless/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +3 -0
- package/dist/headless/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +4 -0
- package/dist/headless/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/alert-dialog/index.d.ts +14 -0
- package/dist/headless/dist/components/alert-dialog/types.d.ts +1 -0
- package/dist/headless/dist/components/arrow/arrow.vue.d.ts +4 -0
- package/dist/headless/dist/components/arrow/context.d.ts +1 -0
- package/dist/headless/dist/components/arrow/index.d.ts +3 -0
- package/dist/headless/dist/components/arrow/types.d.ts +2 -0
- package/dist/headless/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +2 -0
- package/dist/headless/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/headless/dist/components/aspect-ratio/types.d.ts +2 -0
- package/dist/headless/dist/components/avatar/avatar-fallback.vue.d.ts +2 -0
- package/dist/headless/dist/components/avatar/avatar-image.vue.d.ts +2 -0
- package/dist/headless/dist/components/avatar/avatar-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/avatar/context.d.ts +2 -0
- package/dist/headless/dist/components/avatar/index.d.ts +5 -0
- package/dist/headless/dist/components/avatar/types.d.ts +1 -0
- package/dist/headless/dist/components/badge/badge-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/badge/badge-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/badge/context.d.ts +1 -0
- package/dist/headless/dist/components/badge/index.d.ts +4 -0
- package/dist/headless/dist/components/badge/types.d.ts +1 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -0
- package/dist/headless/dist/components/breadcrumb/context.d.ts +1 -0
- package/dist/headless/dist/components/breadcrumb/index.d.ts +9 -0
- package/dist/headless/dist/components/breadcrumb/types.d.ts +2 -0
- package/dist/headless/dist/components/button/button.vue.d.ts +4 -0
- package/dist/headless/dist/components/button/index.d.ts +2 -0
- package/dist/headless/dist/components/button/types.d.ts +2 -0
- package/dist/headless/dist/components/card/card-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-description.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-footer.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-header.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-title-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/card-title.vue.d.ts +2 -0
- package/dist/headless/dist/components/card/context.d.ts +1 -0
- package/dist/headless/dist/components/card/index.d.ts +9 -0
- package/dist/headless/dist/components/card/types.d.ts +1 -0
- package/dist/headless/dist/components/checkbox/checkbox-control.vue.d.ts +3 -0
- package/dist/headless/dist/components/checkbox/checkbox-group-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -0
- package/dist/headless/dist/components/checkbox/checkbox-label.vue.d.ts +3 -0
- package/dist/headless/dist/components/checkbox/checkbox-root.vue.d.ts +3 -0
- package/dist/headless/dist/components/checkbox/context.d.ts +3 -0
- package/dist/headless/dist/components/checkbox/index.d.ts +8 -0
- package/dist/headless/dist/components/checkbox/types.d.ts +3 -0
- package/dist/headless/dist/components/collapsible/collapsible-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/collapsible/collapsible-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -0
- package/dist/headless/dist/components/collapsible/context.d.ts +2 -0
- package/dist/headless/dist/components/collapsible/index.d.ts +5 -0
- package/dist/headless/dist/components/collapsible/types.d.ts +2 -0
- package/dist/headless/dist/components/config-provider/config-provider.vue.d.ts +3 -0
- package/dist/headless/dist/components/config-provider/index.d.ts +2 -0
- package/dist/headless/dist/components/config-provider/types.d.ts +1 -0
- package/dist/headless/dist/components/context-menu/context-menu-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/context-menu/context-menu-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/context-menu/context-menu-trigger.vue.d.ts +5 -0
- package/dist/headless/dist/components/context-menu/index.d.ts +24 -0
- package/dist/headless/dist/components/context-menu/types.d.ts +1 -0
- package/dist/headless/dist/components/dialog/context.d.ts +3 -0
- package/dist/headless/dist/components/dialog/dialog-close.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/dialog/dialog-description.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-footer.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-header.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-overlay.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-title.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/dialog-trigger.vue.d.ts +2 -0
- package/dist/headless/dist/components/dialog/index.d.ts +12 -0
- package/dist/headless/dist/components/dialog/types.d.ts +2 -0
- package/dist/headless/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +5 -0
- package/dist/headless/dist/components/dropdown-menu/index.d.ts +24 -0
- package/dist/headless/dist/components/dropdown-menu/types.d.ts +1 -0
- package/dist/headless/dist/components/form/context.d.ts +1 -0
- package/dist/headless/dist/components/form/form-description.vue.d.ts +2 -0
- package/dist/headless/dist/components/form/form-error.vue.d.ts +2 -0
- package/dist/headless/dist/components/form/form-field-array.vue.d.ts +4 -0
- package/dist/headless/dist/components/form/form-field.vue.d.ts +3 -0
- package/dist/headless/dist/components/form/form-label.vue.d.ts +2 -0
- package/dist/headless/dist/components/form/index.d.ts +7 -0
- package/dist/headless/dist/components/form/types.d.ts +2 -0
- package/dist/headless/dist/components/input/context.d.ts +1 -0
- package/dist/headless/dist/components/input/index.d.ts +4 -0
- package/dist/headless/dist/components/input/input-control.vue.d.ts +2 -0
- package/dist/headless/dist/components/input/input-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/input/types.d.ts +1 -0
- package/dist/headless/dist/components/kbd/index.d.ts +2 -0
- package/dist/headless/dist/components/kbd/kbd.vue.d.ts +2 -0
- package/dist/headless/dist/components/kbd/types.d.ts +1 -0
- package/dist/headless/dist/components/label/index.d.ts +2 -0
- package/dist/headless/dist/components/label/label.vue.d.ts +2 -0
- package/dist/headless/dist/components/label/types.d.ts +1 -0
- package/dist/headless/dist/components/layout/context.d.ts +2 -0
- package/dist/headless/dist/components/layout/index.d.ts +11 -0
- package/dist/headless/dist/components/layout/layout-footer.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-header.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-main.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-mobile.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-rail.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-sidebar.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-tab.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/layout-trigger.vue.d.ts +2 -0
- package/dist/headless/dist/components/layout/types.d.ts +2 -0
- package/dist/headless/dist/components/link/index.d.ts +2 -0
- package/dist/headless/dist/components/link/link.vue.d.ts +4 -0
- package/dist/headless/dist/components/link/types.d.ts +3 -0
- package/dist/headless/dist/components/list/context.d.ts +1 -0
- package/dist/headless/dist/components/list/index.d.ts +7 -0
- package/dist/headless/dist/components/list/list-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/list/list-description.vue.d.ts +2 -0
- package/dist/headless/dist/components/list/list-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/list/list-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/list/list-title.vue.d.ts +2 -0
- package/dist/headless/dist/components/list/types.d.ts +1 -0
- package/dist/headless/dist/components/listbox/context.d.ts +5 -0
- package/dist/headless/dist/components/listbox/index.d.ts +10 -0
- package/dist/headless/dist/components/listbox/listbox-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/listbox/listbox-filter.vue.d.ts +2 -0
- package/dist/headless/dist/components/listbox/listbox-group-label.vue.d.ts +2 -0
- package/dist/headless/dist/components/listbox/listbox-group.vue.d.ts +2 -0
- package/dist/headless/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -0
- package/dist/headless/dist/components/listbox/listbox-item.vue.d.ts +4 -0
- package/dist/headless/dist/components/listbox/listbox-root.vue.d.ts +4 -0
- package/dist/headless/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -0
- package/dist/headless/dist/components/listbox/types.d.ts +14 -0
- package/dist/headless/dist/components/menu/context.d.ts +3 -0
- package/dist/headless/dist/components/menu/index.d.ts +22 -0
- package/dist/headless/dist/components/menu/menu-checkbox-group.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-checkbox-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/menu/menu-group-label.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-group.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-item-indicator.vue.d.ts +4 -0
- package/dist/headless/dist/components/menu/menu-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-radio-group.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-radio-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-sub-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/menu-sub.vue.d.ts +2 -0
- package/dist/headless/dist/components/menu/types.d.ts +5 -0
- package/dist/headless/dist/components/navigation-menu/context.d.ts +4 -0
- package/dist/headless/dist/components/navigation-menu/index.d.ts +11 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +2 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +3 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -0
- package/dist/headless/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -0
- package/dist/headless/dist/components/navigation-menu/types.d.ts +3 -0
- package/dist/headless/dist/components/number-input/context.d.ts +3 -0
- package/dist/headless/dist/components/number-input/index.d.ts +6 -0
- package/dist/headless/dist/components/number-input/number-input-control.vue.d.ts +2 -0
- package/dist/headless/dist/components/number-input/number-input-decrement.vue.d.ts +4 -0
- package/dist/headless/dist/components/number-input/number-input-increment.vue.d.ts +4 -0
- package/dist/headless/dist/components/number-input/number-input-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/number-input/types.d.ts +3 -0
- package/dist/headless/dist/components/pagination/context.d.ts +2 -0
- package/dist/headless/dist/components/pagination/index.d.ts +10 -0
- package/dist/headless/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-first.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-last.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-list-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-list.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-next.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-prev.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/pagination-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/pagination/types.d.ts +1 -0
- package/dist/headless/dist/components/popover/index.d.ts +11 -0
- package/dist/headless/dist/components/popover/popover-anchor.vue.d.ts +3 -0
- package/dist/headless/dist/components/popover/popover-close.vue.d.ts +4 -0
- package/dist/headless/dist/components/popover/popover-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/popover/popover-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/popover/popover-trigger.vue.d.ts +4 -0
- package/dist/headless/dist/components/popover/types.d.ts +4 -0
- package/dist/headless/dist/components/popper/context.d.ts +3 -0
- package/dist/headless/dist/components/popper/index.d.ts +7 -0
- package/dist/headless/dist/components/popper/popper-anchor.vue.d.ts +2 -0
- package/dist/headless/dist/components/popper/popper-arrow.vue.d.ts +3 -0
- package/dist/headless/dist/components/popper/popper-content.vue.d.ts +4 -0
- package/dist/headless/dist/components/popper/popper-root.vue.d.ts +1 -0
- package/dist/headless/dist/components/popper/types.d.ts +3 -0
- package/dist/headless/dist/components/portal/index.d.ts +1 -0
- package/dist/headless/dist/components/portal/portal.vue.d.ts +1 -0
- package/dist/headless/dist/components/primitive/index.d.ts +2 -0
- package/dist/headless/dist/components/primitive/primitive.d.ts +2 -0
- package/dist/headless/dist/components/primitive/types.d.ts +1 -0
- package/dist/headless/dist/components/radio-group/context.d.ts +3 -0
- package/dist/headless/dist/components/radio-group/index.d.ts +8 -0
- package/dist/headless/dist/components/radio-group/radio-group-control.vue.d.ts +2 -0
- package/dist/headless/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -0
- package/dist/headless/dist/components/radio-group/radio-group-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/radio-group/radio-group-label.vue.d.ts +3 -0
- package/dist/headless/dist/components/radio-group/radio-group-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/radio-group/types.d.ts +2 -0
- package/dist/headless/dist/components/roving-focus/index.d.ts +3 -0
- package/dist/headless/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -0
- package/dist/headless/dist/components/roving-focus/roving-focus-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/roving-focus/types.d.ts +2 -0
- package/dist/headless/dist/components/select/context.d.ts +4 -0
- package/dist/headless/dist/components/select/index.d.ts +19 -0
- package/dist/headless/dist/components/select/select-arrow.vue.d.ts +3 -0
- package/dist/headless/dist/components/select/select-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/select/select-group-label.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-group.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-item-indicator.vue.d.ts +4 -0
- package/dist/headless/dist/components/select/select-item-text.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-scroll-down-button.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-scroll-up-button.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-separator.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-trigger-icon.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/select-trigger.vue.d.ts +4 -0
- package/dist/headless/dist/components/select/select-value.vue.d.ts +3 -0
- package/dist/headless/dist/components/select/select-viewport.vue.d.ts +2 -0
- package/dist/headless/dist/components/select/types.d.ts +3 -0
- package/dist/headless/dist/components/separator/context.d.ts +1 -0
- package/dist/headless/dist/components/separator/index.d.ts +4 -0
- package/dist/headless/dist/components/separator/separator-label.vue.d.ts +2 -0
- package/dist/headless/dist/components/separator/separator-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/separator/types.d.ts +1 -0
- package/dist/headless/dist/components/slot/index.d.ts +1 -0
- package/dist/headless/dist/components/slot/slot.d.ts +1 -0
- package/dist/headless/dist/components/switch/context.d.ts +2 -0
- package/dist/headless/dist/components/switch/index.d.ts +5 -0
- package/dist/headless/dist/components/switch/switch-control.vue.d.ts +3 -0
- package/dist/headless/dist/components/switch/switch-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/switch/switch-thumb.vue.d.ts +4 -0
- package/dist/headless/dist/components/switch/types.d.ts +2 -0
- package/dist/headless/dist/components/tabs/context.d.ts +2 -0
- package/dist/headless/dist/components/tabs/index.d.ts +7 -0
- package/dist/headless/dist/components/tabs/tabs-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/tabs/tabs-indicator.vue.d.ts +2 -0
- package/dist/headless/dist/components/tabs/tabs-list.vue.d.ts +2 -0
- package/dist/headless/dist/components/tabs/tabs-root.vue.d.ts +3 -0
- package/dist/headless/dist/components/tabs/tabs-trigger.vue.d.ts +4 -0
- package/dist/headless/dist/components/tabs/types.d.ts +3 -0
- package/dist/headless/dist/components/tag/index.d.ts +2 -0
- package/dist/headless/dist/components/tag/tag.vue.d.ts +2 -0
- package/dist/headless/dist/components/tag/types.d.ts +1 -0
- package/dist/headless/dist/components/textarea/context.d.ts +1 -0
- package/dist/headless/dist/components/textarea/index.d.ts +5 -0
- package/dist/headless/dist/components/textarea/textarea-control.vue.d.ts +2 -0
- package/dist/headless/dist/components/textarea/textarea-counter.vue.d.ts +2 -0
- package/dist/headless/dist/components/textarea/textarea-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/textarea/types.d.ts +1 -0
- package/dist/headless/dist/components/tooltip/index.d.ts +9 -0
- package/dist/headless/dist/components/tooltip/tooltip-content.vue.d.ts +3 -0
- package/dist/headless/dist/components/tooltip/tooltip-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/tooltip/tooltip-trigger.vue.d.ts +5 -0
- package/dist/headless/dist/components/tooltip/types.d.ts +1 -0
- package/dist/headless/dist/components/tree/index.d.ts +5 -0
- package/dist/headless/dist/components/tree/tree-item.vue.d.ts +4 -0
- package/dist/headless/dist/components/tree/tree-root.vue.d.ts +2 -0
- package/dist/headless/dist/components/tree/tree-virtualizer-item.vue.d.ts +3 -0
- package/dist/headless/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -0
- package/dist/headless/dist/components/tree/types.d.ts +5 -0
- package/dist/headless/dist/components/virtualizer/index.d.ts +4 -0
- package/dist/headless/dist/components/virtualizer/types.d.ts +4 -0
- package/dist/headless/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -0
- package/dist/headless/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -0
- package/dist/headless/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -0
- package/dist/headless/dist/components/visually-hidden/index.d.ts +3 -0
- package/dist/headless/dist/components/visually-hidden/types.d.ts +2 -0
- package/dist/headless/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +2 -0
- package/dist/headless/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -0
- package/dist/headless/dist/composables/index.d.ts +20 -0
- package/dist/headless/dist/composables/use-collection.d.ts +2 -0
- package/dist/headless/dist/composables/use-controllable-state.d.ts +1 -0
- package/dist/headless/dist/composables/use-direction.d.ts +1 -0
- package/dist/headless/dist/composables/use-dismissable-layer.d.ts +2 -0
- package/dist/headless/dist/composables/use-escape-key-down.d.ts +1 -0
- package/dist/headless/dist/composables/use-exposed-element.d.ts +2 -0
- package/dist/headless/dist/composables/use-focus-scope.d.ts +2 -0
- package/dist/headless/dist/composables/use-forward-element.d.ts +2 -0
- package/dist/headless/dist/composables/use-grace-area.d.ts +1 -0
- package/dist/headless/dist/composables/use-hide-others.d.ts +1 -0
- package/dist/headless/dist/composables/use-image-loading-status.d.ts +1 -0
- package/dist/headless/dist/composables/use-is-using-keyboard.d.ts +1 -0
- package/dist/headless/dist/composables/use-kbd.d.ts +1 -0
- package/dist/headless/dist/composables/use-locale.d.ts +1 -0
- package/dist/headless/dist/composables/use-nonce.d.ts +1 -0
- package/dist/headless/dist/composables/use-presence.d.ts +1 -0
- package/dist/headless/dist/composables/use-props.d.ts +1 -0
- package/dist/headless/dist/composables/use-selection.d.ts +1 -0
- package/dist/headless/dist/composables/use-state-machine.d.ts +1 -0
- package/dist/headless/dist/composables/use-typeahead.d.ts +2 -0
- package/dist/headless/dist/forms/core/context.d.ts +2 -0
- package/dist/headless/dist/forms/core/hooks.d.ts +1 -0
- package/dist/headless/dist/forms/core/types.d.ts +7 -0
- package/dist/headless/dist/forms/index.d.ts +5 -0
- package/dist/headless/dist/forms/resolvers/valibot/index.d.ts +2 -0
- package/dist/headless/dist/forms/resolvers/zod/index.d.ts +2 -0
- package/dist/headless/dist/index.d.ts +301 -0
- package/dist/headless/dist/types/common.d.ts +5 -0
- package/dist/headless/dist/types/dom.d.ts +7 -0
- package/dist/headless/dist/types/vue.d.ts +1 -0
- package/dist/index.d.ts +169 -6003
- package/dist/index.js +1 -1
- package/dist/styles.css +1397 -0
- package/dist/theme/config.js +1 -0
- package/dist/theme/context.d.ts +1 -0
- package/dist/theme/context.js +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/merge.js +1 -0
- package/dist/theme/shared.js +1 -0
- package/dist/theme/types.d.ts +5 -0
- package/dist/variants/accordion.js +1 -0
- package/dist/variants/alert.d.ts +300 -0
- package/dist/variants/alert.js +1 -0
- package/dist/variants/avatar.js +1 -0
- package/dist/variants/badge.d.ts +201 -0
- package/dist/variants/badge.js +1 -0
- package/dist/variants/breadcrumb.js +1 -0
- package/dist/variants/button.d.ts +146 -0
- package/dist/variants/button.js +1 -0
- package/dist/variants/card.js +1 -0
- package/dist/variants/checkbox.d.ts +252 -0
- package/dist/variants/checkbox.js +1 -0
- package/dist/variants/collapsible.js +1 -0
- package/dist/variants/command.js +1 -0
- package/dist/variants/dialog.js +1 -0
- package/dist/variants/drawer.js +1 -0
- package/dist/variants/form.js +1 -0
- package/dist/variants/input.js +1 -0
- package/dist/variants/kbd.d.ts +51 -0
- package/dist/variants/kbd.js +1 -0
- package/dist/variants/label.js +1 -0
- package/dist/variants/layout.js +1 -0
- package/dist/variants/link.js +1 -0
- package/dist/variants/list.js +1 -0
- package/dist/variants/menu.js +1 -0
- package/dist/variants/navigation-menu.js +1 -0
- package/dist/variants/number-input.js +1 -0
- package/dist/variants/pagination.d.ts +232 -0
- package/dist/variants/pagination.js +1 -0
- package/dist/variants/popover.js +1 -0
- package/dist/variants/radio-group.d.ts +276 -0
- package/dist/variants/radio-group.js +1 -0
- package/dist/variants/select.js +1 -0
- package/dist/variants/separator.d.ts +177 -0
- package/dist/variants/separator.js +1 -0
- package/dist/variants/switch.d.ts +210 -0
- package/dist/variants/switch.js +1 -0
- package/dist/variants/tabs.d.ts +229 -0
- package/dist/variants/tabs.js +1 -0
- package/dist/variants/tag.d.ts +103 -0
- package/dist/variants/tag.js +1 -0
- package/dist/variants/textarea.d.ts +183 -0
- package/dist/variants/textarea.js +1 -0
- package/dist/variants/tooltip.js +1 -0
- package/dist/variants/tree-menu.js +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ButtonVariant } from "../../variants/button.js";
|
|
2
|
+
import { ButtonLinkProps } from "./types.js";
|
|
3
|
+
import * as vue44 from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/button/button-link.vue.d.ts
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: vue44.DefineComponent<ButtonLinkProps, {}, {}, {}, {}, vue44.ComponentOptionsMixin, vue44.ComponentOptionsMixin, {}, string, vue44.PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
replace: boolean;
|
|
13
|
+
variant: ButtonVariant;
|
|
14
|
+
viewTransition: boolean;
|
|
15
|
+
external: boolean;
|
|
16
|
+
noRel: boolean;
|
|
17
|
+
prefetch: boolean;
|
|
18
|
+
noPrefetch: boolean;
|
|
19
|
+
}, {}, {}, {}, string, vue44.ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../icon/icon.js";import t from"./button.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createVNode as s,defineComponent as c,mergeProps as l,openBlock as u,ref as d,renderSlot as f,toDisplayString as p,unref as m,useAttrs as h,watchEffect as g,withCtx as _}from"vue";import{useOmitProps as v}from"@soybeanjs/headless/composables";const y={key:0,style:{display:`contents`}},b={style:{position:`absolute`,inset:`0`,"justify-content":`center`,"align-items":`center`,display:`flex`,gap:`0.25rem`,"z-index":`1`}},x={key:0},S={style:{visibility:`hidden`,display:`contents`}};var C=c({name:`SButtonLoading`,inheritAttrs:!1,__name:`button-loading`,props:{loading:{type:Boolean},loadingText:{},loadingDuration:{},autoLoading:{type:Boolean},loadingIcon:{default:`svg-spinners:270-ring`},loadingIconProps:{},loadingPosition:{default:`start`},color:{},size:{},variant:{},shape:{},shadow:{},fitContent:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(c){let C=c,w=h(),T=d(!1),E=n(()=>C.disabled||T.value),D=async e=>{C.autoLoading&&(T.value=!0);try{(Array.isArray(w.onClick)?w.onClick:[w.onClick]).forEach(t=>t?.(e))}finally{C.autoLoading&&(C.loadingDuration&&await new Promise(e=>{setTimeout(e,C.loadingDuration)}),T.value=!1)}},O=v(C,[`loading`,`loadingText`,`loadingDuration`,`autoLoading`,`loadingIcon`,`loadingIconProps`,`loadingPosition`],w,{onClick:D});return g(()=>{T.value=C.loading}),(n,d)=>(u(),r(t,l(m(O),{disabled:E.value,style:{position:`relative`},onClick:D}),{leading:_(()=>[T.value&&c.loadingPosition===`start`?(u(),r(e,l({key:0,icon:c.loadingIcon},c.loadingIconProps),null,16,[`icon`])):f(n.$slots,`leading`,{key:1})]),trailing:_(()=>[T.value&&c.loadingPosition===`end`?(u(),r(e,l({key:0,icon:c.loadingIcon},c.loadingIconProps),null,16,[`icon`])):f(n.$slots,`trailing`,{key:1})]),default:_(()=>[T.value&&c.loadingPosition===`center`?(u(),a(`span`,y,[o(`span`,b,[s(e,l({icon:c.loadingIcon},c.loadingIconProps),null,16,[`icon`]),c.loadingText?(u(),a(`span`,x,p(c.loadingText),1)):i(`v-if`,!0)]),o(`span`,S,[f(n.$slots,`default`,{loading:T.value})])])):f(n.$slots,`default`,{key:1,loading:T.value})]),_:3},16,[`disabled`]))}});export{C as default};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ButtonLoadingProps } from "./types.js";
|
|
2
|
+
import { Align } from "../../headless/dist/types/common.js";
|
|
3
|
+
import "../../headless/dist/index.js";
|
|
4
|
+
import * as vue34 from "vue";
|
|
5
|
+
|
|
6
|
+
//#region src/components/button/button-loading.vue.d.ts
|
|
7
|
+
declare var __VLS_14: {}, __VLS_20: {
|
|
8
|
+
loading: true;
|
|
9
|
+
}, __VLS_22: {
|
|
10
|
+
loading: boolean;
|
|
11
|
+
}, __VLS_29: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
leading?: (props: typeof __VLS_14) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: typeof __VLS_20) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_22) => any;
|
|
18
|
+
} & {
|
|
19
|
+
trailing?: (props: typeof __VLS_29) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: vue34.DefineComponent<ButtonLoadingProps, {}, {}, {}, {}, vue34.ComponentOptionsMixin, vue34.ComponentOptionsMixin, {}, string, vue34.PublicProps, Readonly<ButtonLoadingProps> & Readonly<{}>, {
|
|
22
|
+
loadingIcon: string;
|
|
23
|
+
loadingPosition: Align;
|
|
24
|
+
}, {}, {}, {}, string, vue34.ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cn as e}from"../../theme/merge.js";import{buttonVariants as t}from"../../variants/button.js";import{useButtonGroupContext as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";import{useOmitProps as d}from"@soybeanjs/headless/composables";import{Button as f}from"@soybeanjs/headless";var p=a({name:`SButton`,__name:`button`,props:{color:{},size:{},variant:{},shape:{},shadow:{},fitContent:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`],setup(a,{emit:p}){let m=a,h=p,g=n(),_=d(m,[`size`,`color`,`variant`,`shape`,`shadow`,`disabled`]),v=r(()=>{let{size:n,color:r,variant:i,shape:a,shadow:o,fitContent:s}=g||{};return e(t({size:m.size||n?.value,color:m.color||r?.value,variant:m.variant||i?.value,shape:m.shape||a?.value,shadow:m.shadow||o?.value,fitContent:m.fitContent||s?.value}),m.class)}),y=r(()=>m.disabled||g?.disabled.value);return(e,t)=>(s(),i(l(f),o(l(_),{class:v.value,disabled:y.value,onClick:t[0]||=e=>h(`click`,e)}),{default:u(()=>[c(e.$slots,`leading`),c(e.$slots,`default`),c(e.$slots,`trailing`)]),_:3},16,[`class`,`disabled`]))}});export{p as default};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ButtonProps } from "./types.js";
|
|
2
|
+
import * as vue29 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/button/button.vue.d.ts
|
|
5
|
+
declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
leading?: (props: typeof __VLS_10) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_12) => any;
|
|
10
|
+
} & {
|
|
11
|
+
trailing?: (props: typeof __VLS_14) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: vue29.DefineComponent<ButtonProps, {}, {}, {}, {}, vue29.ComponentOptionsMixin, vue29.ComponentOptionsMixin, {
|
|
14
|
+
click: (event: MouseEvent) => any;
|
|
15
|
+
}, string, vue29.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
16
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue29.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 @@
|
|
|
1
|
+
import{useContext as e}from"@soybeanjs/headless/composables";const[t,n]=e(`ButtonGroup`,e=>e);export{t as provideButtonGroupContext,n as useButtonGroupContext};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonShadow, ButtonShape, ButtonVariant } from "../../variants/button.js";
|
|
2
|
+
import { ButtonEmits, ButtonGroupProps, ButtonIconProps, ButtonLinkProps, ButtonLoadingProps, ButtonProps } from "./types.js";
|
|
3
|
+
import { _default } from "./button.vue.js";
|
|
4
|
+
import { _default as _default$1 } from "./button-loading.vue.js";
|
|
5
|
+
import { _default as _default$2 } from "./button-icon.vue.js";
|
|
6
|
+
import { _default as _default$3 } from "./button-link.vue.js";
|
|
7
|
+
import { _default as _default$4 } from "./button-group.vue.js";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ThemeColor, ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import "../../theme/index.js";
|
|
3
|
+
import { IconProps } from "../icon/types.js";
|
|
4
|
+
import { ButtonShadow, ButtonShape, ButtonVariant } from "../../variants/button.js";
|
|
5
|
+
import { LinkProps as LinkProps$1 } from "../link/types.js";
|
|
6
|
+
import { Align, ButtonEmits, ButtonProps, DataOrientation, Direction, PropsToContext } from "@soybeanjs/headless";
|
|
7
|
+
|
|
8
|
+
//#region src/components/button/types.d.ts
|
|
9
|
+
interface ButtonProps$1 extends ButtonProps {
|
|
10
|
+
color?: ThemeColor;
|
|
11
|
+
size?: ThemeSize;
|
|
12
|
+
variant?: ButtonVariant;
|
|
13
|
+
shape?: ButtonShape;
|
|
14
|
+
shadow?: ButtonShadow;
|
|
15
|
+
fitContent?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface ButtonIconProps extends ButtonProps$1 {
|
|
18
|
+
/** The icon name of iconify. */
|
|
19
|
+
icon: string;
|
|
20
|
+
/** The props of the icon. */
|
|
21
|
+
iconProps?: Partial<IconProps>;
|
|
22
|
+
}
|
|
23
|
+
interface ButtonLoadingProps extends ButtonProps$1 {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the button is loading.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The text to display when the button is loading.
|
|
32
|
+
*
|
|
33
|
+
* It will be displayed when the loading position is center.
|
|
34
|
+
*/
|
|
35
|
+
loadingText?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The duration of the loading state in milliseconds.
|
|
38
|
+
*
|
|
39
|
+
* @default 150 ms
|
|
40
|
+
*/
|
|
41
|
+
loadingDuration?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Whether to automatically handle loading state during click event. When true, the button will show loading state
|
|
44
|
+
* during click event execution. When false, you need to manually control the loading state.
|
|
45
|
+
*
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
autoLoading?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The icon name of iconify to display when the button is loading.
|
|
51
|
+
*
|
|
52
|
+
* @default 'svg-spinners:270-ring'
|
|
53
|
+
*/
|
|
54
|
+
loadingIcon?: string;
|
|
55
|
+
/** The props of the loading icon. */
|
|
56
|
+
loadingIconProps?: Partial<IconProps>;
|
|
57
|
+
/**
|
|
58
|
+
* The position of the loading icon.
|
|
59
|
+
*
|
|
60
|
+
* @default 'start'
|
|
61
|
+
*/
|
|
62
|
+
loadingPosition?: Align;
|
|
63
|
+
}
|
|
64
|
+
type ButtonLinkProps = ButtonProps$1 & LinkProps$1;
|
|
65
|
+
interface ButtonGroupProps extends ButtonProps$1 {
|
|
66
|
+
/**
|
|
67
|
+
* The orientation of the button group.
|
|
68
|
+
*
|
|
69
|
+
* @default 'horizontal'
|
|
70
|
+
*/
|
|
71
|
+
orientation?: DataOrientation;
|
|
72
|
+
/**
|
|
73
|
+
* The direction of the button group.
|
|
74
|
+
*
|
|
75
|
+
* @default 'ltr'
|
|
76
|
+
*/
|
|
77
|
+
dir?: Direction;
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { type ButtonEmits, ButtonGroupProps, ButtonIconProps, ButtonLinkProps, ButtonLoadingProps, ButtonProps$1 as ButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import{cardVariants as t}from"../../variants/card.js";import{computed as n,createBlock as r,createCommentVNode as i,createTextVNode as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,toDisplayString as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useOmitProps as _}from"@soybeanjs/headless/composables";import{CardContent as v,CardDescription as y,CardFooter as b,CardHeader as x,CardRoot as S,CardTitle as C,CardTitleRoot as w,provideCardThemeContext as T}from"@soybeanjs/headless";var E=s({name:`SCard`,__name:`card`,props:{size:{},ui:{},title:{},description:{},scrollable:{type:Boolean,default:!0},split:{type:Boolean},flexHeight:{type:Boolean},headerProps:{},contentProps:{},footerProps:{},titleRootProps:{},titleProps:{},descriptionProps:{}},setup(s){let E=s,D=_(E,[`size`,`ui`,`title`,`description`,`scrollable`,`split`,`headerProps`,`contentProps`,`footerProps`,`titleRootProps`,`titleProps`,`descriptionProps`]),O=h(),k=n(()=>!!(O.header||O.title||O.description||O.extra||E.title||E.description));return T({ui:n(()=>e(t({size:E.size,scrollable:E.scrollable,split:E.split}),E.ui))}),(e,t)=>(d(),r(m(S),u(c(m(D))),{default:g(()=>[k.value?(d(),r(m(x),u(l({key:0},E.headerProps)),{default:g(()=>[o(m(w),u(c(E.titleRootProps)),{default:g(()=>[f(e.$slots,`title-leading`),o(m(C),u(c(E.titleProps)),{default:g(()=>[f(e.$slots,`title`,{},()=>[a(p(s.title),1)])]),_:3},16),f(e.$slots,`title-trailing`)]),_:3},16),f(e.$slots,`extra`),O.description||s.description?(d(),r(m(y),u(l({key:0},E.descriptionProps)),{default:g(()=>[f(e.$slots,`description`,{},()=>[a(p(s.description),1)])]),_:3},16)):i(`v-if`,!0)]),_:3},16)):i(`v-if`,!0),o(m(v),u(c(E.contentProps)),{default:g(()=>[f(e.$slots,`default`)]),_:3},16),O.footer?(d(),r(m(b),u(l({key:1},E.footerProps)),{default:g(()=>[f(e.$slots,`footer`)]),_:3},16)):i(`v-if`,!0)]),_:3},16))}});export{E as default};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CardProps } from "./types.js";
|
|
2
|
+
import * as vue24 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/card/card.vue.d.ts
|
|
5
|
+
type Slots = {
|
|
6
|
+
default: () => any;
|
|
7
|
+
header: () => any;
|
|
8
|
+
'title-root': () => any;
|
|
9
|
+
title: () => any;
|
|
10
|
+
'title-leading': () => any;
|
|
11
|
+
'title-trailing': () => any;
|
|
12
|
+
extra: () => any;
|
|
13
|
+
footer: () => any;
|
|
14
|
+
description: () => any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = Slots;
|
|
17
|
+
declare const __VLS_base: vue24.DefineComponent<CardProps, {}, {}, {}, {}, vue24.ComponentOptionsMixin, vue24.ComponentOptionsMixin, {}, string, vue24.PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
18
|
+
scrollable: boolean;
|
|
19
|
+
}, {}, {}, {}, string, vue24.ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CardProps } from "./types.js";
|
|
2
|
+
import { _default } from "./card.vue.js";
|
|
3
|
+
import { CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps, CardTitleRootProps } from "@soybeanjs/headless/card";
|
|
4
|
+
export { type CardContentProps, type CardDescriptionProps, type CardFooterProps, type CardHeaderProps, type CardRootProps, type CardTitleProps, type CardTitleRootProps };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import "../../theme/index.js";
|
|
3
|
+
import { CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardRootProps, CardTitleProps, CardTitleRootProps, CardUi } from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/card/types.d.ts
|
|
6
|
+
interface CardProps extends CardRootProps {
|
|
7
|
+
size?: ThemeSize;
|
|
8
|
+
ui?: Partial<CardUi>;
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the content will be scrollable when the root has height and content is taller than the root
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
scrollable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* If true, the card will add divider between title and content and footer
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
split?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If true, the content will be flex-grow and overflow-hidden
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
flexHeight?: boolean;
|
|
29
|
+
headerProps?: CardHeaderProps;
|
|
30
|
+
contentProps?: CardContentProps;
|
|
31
|
+
footerProps?: CardFooterProps;
|
|
32
|
+
titleRootProps?: CardTitleRootProps;
|
|
33
|
+
titleProps?: CardTitleProps;
|
|
34
|
+
descriptionProps?: CardDescriptionProps;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { CardProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import{checkboxCardVariants as t}from"../../variants/checkbox.js";import n from"./checkbox-card.js";import{Fragment as r,computed as i,createBlock as a,createElementBlock as o,defineComponent as s,mergeProps as c,openBlock as l,renderList as u,unref as d,withCtx as f}from"vue";import{useOmitProps as p}from"@soybeanjs/headless/composables";import{CheckboxGroupRoot as m}from"@soybeanjs/headless";var h=s({name:`SCheckboxCardGroup`,__name:`checkbox-card-group`,props:{ui:{},color:{},size:{},shape:{},items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(s,{emit:h}){let g=s,_=h,v=p(g,[`ui`,`color`,`size`,`shape`,`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]),y=i(()=>e(t(),g.ui));return(e,t)=>(l(),a(d(m),c(d(v),{class:y.value.groupRoot,"onUpdate:modelValue":t[0]||=e=>_(`update:modelValue`,e)}),{default:f(()=>[(l(!0),o(r,null,u(s.items,(e,t)=>(l(),a(n,c({key:t},{ref_for:!0},s.rootProps,{color:s.color,size:s.size,shape:s.shape,label:e.label,value:e.value,icon:e.icon,description:e.description,disabled:s.disabled||e.disabled,"control-props":s.controlProps,"indicator-props":s.indicatorProps,"label-props":s.labelProps}),null,16,[`color`,`size`,`shape`,`label`,`value`,`icon`,`description`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16,[`class`]))}});export{h as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CheckboxCardGroupOptionData, CheckboxCardGroupProps } from "./types.js";
|
|
2
|
+
import * as vue71 from "vue";
|
|
3
|
+
import { DefinedValue } from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/checkbox/checkbox-card-group.vue.d.ts
|
|
6
|
+
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxCardGroupOptionData<T> = CheckboxCardGroupOptionData<T>>(__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<{
|
|
7
|
+
props: __VLS_PrettifyLocal<CheckboxCardGroupProps<T, S> & {
|
|
8
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
9
|
+
}> & vue71.PublicProps;
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
14
|
+
}>) => vue71.VNode & {
|
|
15
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{checkboxCardVariants as n}from"../../variants/checkbox.js";import{Transition as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeClass as m,normalizeProps as h,openBlock as g,renderSlot as _,toDisplayString as v,unref as y,useId as b,useSlots as x,withCtx as S}from"vue";import{useOmitProps as C}from"@soybeanjs/headless/composables";import{CheckboxControl as w,CheckboxIndicator as T,CheckboxLabel as E,CheckboxRoot as D,Slot as O,provideCheckboxThemeContext as k}from"@soybeanjs/headless";const A={key:0};var j=d({name:`SCheckboxCard`,__name:`checkbox-card`,props:{ui:{},icon:{},description:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:j}){let M=d,N=j,P=x(),F=C(M,[`ui`,`color`,`size`,`shape`,`label`,`icon`,`description`,`controlProps`,`indicatorProps`,`labelProps`]),I=b(),L=i(()=>M.id||`checkbox-${I}`),R=i(()=>M.modelValue===`indeterminate`),z=i(()=>e(n({color:M.color,size:M.size,shape:M.shape}),M.ui));return k({ui:z}),(e,n)=>(g(),a(y(D),p(y(F),{"onUpdate:modelValue":n[0]||=e=>N(`update:modelValue`,e)}),{default:S(()=>[c(`div`,{class:m(z.value.content)},[d.icon?(g(),a(t,{key:0,icon:d.icon,class:m(z.value.icon)},null,8,[`icon`,`class`])):o(`v-if`,!0),c(`div`,{class:m(z.value.textContent)},[u(y(E),p(d.labelProps,{for:L.value}),{default:S(()=>[_(e.$slots,`default`,{id:L.value},()=>[l(v(d.label),1)])]),_:3},16,[`for`]),y(P).description||d.description?(g(),a(y(O),{key:0,class:m(z.value.description)},{default:S(()=>[_(e.$slots,`description`,{},()=>[d.description?(g(),s(`p`,A,v(d.description),1)):o(`v-if`,!0)])]),_:3},8,[`class`])):o(`v-if`,!0)],2)],2),u(y(w),p(d.controlProps,{id:L.value,class:`checkbox-control`}),{default:S(()=>[u(r,{"enter-active-class":`transition-50`,"enter-from-class":`opacity-0 scale-0`},{default:S(()=>[u(y(T),h(f(d.indicatorProps)),{default:S(()=>[u(t,{icon:R.value?`lucide:minus`:`lucide:check`,class:`size-full`},null,8,[`icon`])]),_:1},16)]),_:1})]),_:1},16,[`id`])]),_:3},16))}});export{j as default};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CheckboxCardProps } from "./types.js";
|
|
2
|
+
import * as vue59 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless4 from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/checkbox/checkbox-card.vue.d.ts
|
|
6
|
+
declare var __VLS_19: {
|
|
7
|
+
id: string;
|
|
8
|
+
}, __VLS_26: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_19) => any;
|
|
11
|
+
} & {
|
|
12
|
+
description?: (props: typeof __VLS_26) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: vue59.DefineComponent<CheckboxCardProps, {}, {}, {}, {}, vue59.ComponentOptionsMixin, vue59.ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: _soybeanjs_headless4.CheckedState | null) => any;
|
|
16
|
+
}, string, vue59.PublicProps, Readonly<CheckboxCardProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: _soybeanjs_headless4.CheckedState | null) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
modelValue: _soybeanjs_headless4.CheckedState | null;
|
|
20
|
+
}, {}, {}, {}, string, vue59.ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import{checkboxVariants as t}from"../../variants/checkbox.js";import n from"./checkbox.js";import{Fragment as r,computed as i,createBlock as a,createElementBlock as o,defineComponent as s,mergeProps as c,openBlock as l,renderList as u,unref as d,withCtx as f}from"vue";import{useOmitProps as p}from"@soybeanjs/headless/composables";import{CheckboxGroupRoot as m}from"@soybeanjs/headless";var h=s({name:`SCheckboxGroup`,__name:`checkbox-group`,props:{ui:{},color:{},size:{},shape:{},items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(s,{emit:h}){let g=s,_=h,v=p(g,[`ui`,`color`,`size`,`shape`,`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]),y=i(()=>e(t(),g.ui));return(e,t)=>(l(),a(d(m),c(d(v),{class:y.value.groupRoot,"onUpdate:modelValue":t[0]||=e=>_(`update:modelValue`,e)}),{default:f(()=>[(l(!0),o(r,null,u(s.items,(e,t)=>(l(),a(n,c({key:t},{ref_for:!0},s.rootProps,{color:s.color,size:s.size,shape:s.shape,label:e.label,value:e.value,disabled:s.disabled||e.disabled,"control-props":s.controlProps,"indicator-props":s.indicatorProps,"label-props":s.labelProps}),null,16,[`color`,`size`,`shape`,`label`,`value`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16,[`class`]))}});export{h as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CheckboxGroupOptionData, CheckboxGroupProps } from "./types.js";
|
|
2
|
+
import * as vue64 from "vue";
|
|
3
|
+
import { DefinedValue } from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/checkbox/checkbox-group.vue.d.ts
|
|
6
|
+
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxGroupOptionData<T> = CheckboxGroupOptionData<T>>(__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<{
|
|
7
|
+
props: __VLS_PrettifyLocal<CheckboxGroupProps<T, S> & {
|
|
8
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
9
|
+
}> & vue64.PublicProps;
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
14
|
+
}>) => vue64.VNode & {
|
|
15
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{checkboxVariants as n}from"../../variants/checkbox.js";import{Transition as r,computed as i,createBlock as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,useId as g,withCtx as _}from"vue";import{useOmitProps as v}from"@soybeanjs/headless/composables";import{CheckboxControl as y,CheckboxIndicator as b,CheckboxLabel as x,CheckboxRoot as S,provideCheckboxThemeContext as C}from"@soybeanjs/headless";var w=c({name:`SCheckbox`,__name:`checkbox`,props:{ui:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(c,{emit:w}){let T=c,E=w,D=v(T,[`color`,`size`,`ui`,`label`,`controlProps`,`indicatorProps`,`labelProps`]),O=g(),k=i(()=>T.id||`checkbox-${O}`);return C({ui:i(()=>e(n({color:T.color,size:T.size,shape:T.shape}),T.ui))}),(e,n)=>(f(),a(h(S),u(h(D),{"onUpdate:modelValue":n[0]||=e=>E(`update:modelValue`,e)}),{default:_(n=>[s(h(y),u(c.controlProps,{id:k.value}),{default:_(()=>[s(r,{"enter-active-class":`transition-50`,"enter-from-class":`opacity-0 scale-0`},{default:_(()=>[s(h(b),d(l(c.indicatorProps)),{default:_(()=>[p(e.$slots,`indicator`,d(l(n)),()=>[s(t,{icon:n.state===`indeterminate`?`lucide:minus`:`lucide:check`,class:`size-full`},null,8,[`icon`])])]),_:2},1040)]),_:2},1024)]),_:2},1040,[`id`]),s(h(x),u(c.labelProps,{for:k.value}),{default:_(()=>[p(e.$slots,`default`,u(n,{id:k.value}),()=>[o(m(c.label),1)])]),_:2},1040,[`for`])]),_:3},16))}});export{w as default};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CheckboxProps } from "./types.js";
|
|
2
|
+
import * as vue66 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless7 from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/checkbox/checkbox.vue.d.ts
|
|
6
|
+
declare var __VLS_25: {
|
|
7
|
+
modelValue: _soybeanjs_headless7.CheckedState | null | undefined;
|
|
8
|
+
state: _soybeanjs_headless7.CheckedState;
|
|
9
|
+
}, __VLS_36: {
|
|
10
|
+
id: string;
|
|
11
|
+
modelValue: _soybeanjs_headless7.CheckedState | null | undefined;
|
|
12
|
+
state: _soybeanjs_headless7.CheckedState;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
indicator?: (props: typeof __VLS_25) => any;
|
|
16
|
+
} & {
|
|
17
|
+
default?: (props: typeof __VLS_36) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: vue66.DefineComponent<CheckboxProps, {}, {}, {}, {}, vue66.ComponentOptionsMixin, vue66.ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: _soybeanjs_headless7.CheckedState | null) => any;
|
|
21
|
+
}, string, vue66.PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: _soybeanjs_headless7.CheckedState | null) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
modelValue: _soybeanjs_headless7.CheckedState | null;
|
|
25
|
+
}, {}, {}, {}, string, vue66.ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { _default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckboxCardEmits, CheckboxCardGroupEmits, CheckboxCardGroupOptionData, CheckboxCardGroupProps, CheckboxCardProps, CheckboxCardThemeSlot, CheckboxCardUi, CheckboxEmits, CheckboxGroupEmits, CheckboxGroupOptionData, CheckboxGroupProps, CheckboxProps } from "./types.js";
|
|
2
|
+
import { _default } from "./checkbox-group.vue.js";
|
|
3
|
+
import { _default as _default$1 } from "./checkbox.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./checkbox-card-group.vue.js";
|
|
5
|
+
import { _default as _default$3 } from "./checkbox-card.vue.js";
|
|
6
|
+
import { CheckboxControlProps, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxRootEmits, CheckboxRootProps } from "@soybeanjs/headless/checkbox";
|
|
7
|
+
export { type CheckboxControlProps, type CheckboxGroupRootEmits, type CheckboxGroupRootProps, type CheckboxIndicatorProps, type CheckboxLabelProps, type CheckboxRootEmits, type CheckboxRootProps };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ThemeColor, ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import "../../theme/index.js";
|
|
3
|
+
import { CheckboxShape } from "../../variants/checkbox.js";
|
|
4
|
+
import { CheckboxControlProps, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxRootEmits, CheckboxRootProps, CheckboxThemeSlot, CheckboxUi, ClassValue, DefinedValue } from "@soybeanjs/headless";
|
|
5
|
+
|
|
6
|
+
//#region src/components/checkbox/types.d.ts
|
|
7
|
+
interface CheckboxProps extends CheckboxRootProps {
|
|
8
|
+
ui?: Partial<CheckboxUi>;
|
|
9
|
+
color?: ThemeColor;
|
|
10
|
+
size?: ThemeSize;
|
|
11
|
+
shape?: CheckboxShape;
|
|
12
|
+
label?: string;
|
|
13
|
+
controlProps?: CheckboxControlProps;
|
|
14
|
+
indicatorProps?: CheckboxIndicatorProps;
|
|
15
|
+
labelProps?: CheckboxLabelProps;
|
|
16
|
+
}
|
|
17
|
+
type CheckboxEmits = CheckboxRootEmits;
|
|
18
|
+
type CheckboxCardThemeSlot = CheckboxThemeSlot | 'content' | 'textContent' | 'icon' | 'description';
|
|
19
|
+
type CheckboxCardUi = Record<CheckboxCardThemeSlot, ClassValue>;
|
|
20
|
+
interface CheckboxCardProps extends CheckboxProps {
|
|
21
|
+
ui?: Partial<CheckboxCardUi>;
|
|
22
|
+
icon?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
}
|
|
25
|
+
type CheckboxCardEmits = CheckboxEmits;
|
|
26
|
+
interface CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> {
|
|
27
|
+
value: T;
|
|
28
|
+
label: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface CheckboxGroupProps<T extends DefinedValue = DefinedValue, S extends CheckboxGroupOptionData<T> = CheckboxGroupOptionData<T>> extends CheckboxGroupRootProps<T> {
|
|
32
|
+
ui?: Partial<CheckboxUi>;
|
|
33
|
+
color?: ThemeColor;
|
|
34
|
+
size?: ThemeSize;
|
|
35
|
+
shape?: CheckboxShape;
|
|
36
|
+
items: S[];
|
|
37
|
+
rootProps?: CheckboxRootProps;
|
|
38
|
+
controlProps?: CheckboxControlProps;
|
|
39
|
+
indicatorProps?: CheckboxIndicatorProps;
|
|
40
|
+
labelProps?: CheckboxLabelProps;
|
|
41
|
+
}
|
|
42
|
+
type CheckboxGroupEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
43
|
+
interface CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> extends CheckboxGroupOptionData<T> {
|
|
44
|
+
icon?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
}
|
|
47
|
+
type CheckboxCardGroupProps<T extends DefinedValue = DefinedValue, S extends CheckboxCardGroupOptionData<T> = CheckboxCardGroupOptionData<T>> = CheckboxGroupProps<T, S> & {
|
|
48
|
+
ui?: Partial<CheckboxCardUi>;
|
|
49
|
+
items: S[];
|
|
50
|
+
};
|
|
51
|
+
type CheckboxCardGroupEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupEmits<T>;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { CheckboxCardEmits, CheckboxCardGroupEmits, CheckboxCardGroupOptionData, CheckboxCardGroupProps, CheckboxCardProps, CheckboxCardThemeSlot, CheckboxCardUi, CheckboxEmits, CheckboxGroupEmits, CheckboxGroupOptionData, CheckboxGroupProps, CheckboxProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import{collapsibleVariants as t}from"../../variants/collapsible.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";import{useOmitProps as f}from"@soybeanjs/headless/composables";import{CollapsibleRoot as p,provideCollapsibleThemeContext as m}from"@soybeanjs/headless";var h=i({name:`SCollapsible`,__name:`collapsible`,props:{size:{},ui:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(i,{emit:h}){let g=i,_=h,v=f(g,[`class`,`size`,`ui`]);return m({ui:n(()=>e(t({size:g.size}),g.ui))}),(e,t)=>(c(),r(u(p),o(u(v),{"onUpdate:open":t[0]||=e=>_(`update:open`,e)}),{default:d(t=>[l(e.$slots,`default`,s(a(t)))]),_:3},16))}});export{h as default};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CollapsibleProps } from "./types.js";
|
|
2
|
+
import * as vue75 from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/collapsible/collapsible.vue.d.ts
|
|
5
|
+
declare var __VLS_10: {
|
|
6
|
+
open: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: vue75.DefineComponent<CollapsibleProps, {}, {}, {}, {}, vue75.ComponentOptionsMixin, vue75.ComponentOptionsMixin, {
|
|
12
|
+
"update:open": (value: boolean) => any;
|
|
13
|
+
}, string, vue75.PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
14
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
open: boolean;
|
|
17
|
+
defaultOpen: boolean;
|
|
18
|
+
unmountOnHide: boolean;
|
|
19
|
+
}, {}, {}, {}, string, vue75.ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { _default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CollapsibleEmits, CollapsibleProps } from "./types.js";
|
|
2
|
+
import { _default } from "./collapsible.vue.js";
|
|
3
|
+
import { CollapsibleContent as SCollapsibleContent, CollapsibleContentProps, CollapsibleRootEmits, CollapsibleRootProps, CollapsibleTrigger as SCollapsibleTrigger, CollapsibleTriggerProps } from "@soybeanjs/headless/collapsible";
|
|
4
|
+
export { type CollapsibleContentProps, type CollapsibleRootEmits, type CollapsibleRootProps, type CollapsibleTriggerProps, SCollapsibleContent, SCollapsibleTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./collapsible.js";import{CollapsibleContent as t,CollapsibleTrigger as n}from"@soybeanjs/headless/collapsible";export{t as SCollapsibleContent,n as SCollapsibleTrigger};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import "../../theme/index.js";
|
|
3
|
+
import { CollapsibleRootEmits, CollapsibleRootProps, CollapsibleUi } from "@soybeanjs/headless";
|
|
4
|
+
|
|
5
|
+
//#region src/components/collapsible/types.d.ts
|
|
6
|
+
interface CollapsibleProps extends CollapsibleRootProps {
|
|
7
|
+
size?: ThemeSize;
|
|
8
|
+
ui?: Partial<CollapsibleUi>;
|
|
9
|
+
}
|
|
10
|
+
type CollapsibleEmits = CollapsibleRootEmits;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CollapsibleEmits, CollapsibleProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCommandExtraThemeContext as e}from"./context.js";import t from"./command-single-option.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createSlots as s,createTextVNode as c,createVNode as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toDisplayString as _,unref as v,useSlots as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{ListboxGroup as S,ListboxGroupLabel as C,SeparatorRoot as w}from"@soybeanjs/headless";var T=u({name:`SCommandGroupOption`,inheritAttrs:!1,__name:`command-group-option`,props:{item:{},groupLabelProps:{},itemProps:{},itemLabelProps:{},shortcutProps:{},separatorProps:{}},emits:[`select`],setup(u,{emit:T}){let E=u,D=T,O=x(E,[`item`,`groupLabelProps`,`itemProps`,`itemLabelProps`,`shortcutProps`,`separatorProps`]),k=y(),A=r(()=>Object.keys(k)),j=e(),M=r(()=>j?.ui?.value);return(e,r)=>(m(),o(n,null,[l(v(S),p(d(v(O))),{default:b(()=>[l(v(C),p(d(u.groupLabelProps)),{default:b(()=>[c(_(u.item.label),1)]),_:1},16),(m(!0),o(n,null,h(u.item.items,n=>(m(),i(t,f({key:String(n.value)},{ref_for:!0},u.itemProps,{item:n,"item-label-props":u.itemLabelProps,"shortcut-props":u.shortcutProps,"separator-props":u.separatorProps,onSelect:r[0]||=e=>D(`select`,e)}),s({_:2},[h(A.value,t=>({name:t,fn:b(()=>[g(e.$slots,t,{item:n})])}))]),1040,[`item`,`item-label-props`,`shortcut-props`,`separator-props`]))),128))]),_:3},16),u.item.separator?(m(),i(v(w),f({key:0},u.separatorProps,{class:M.value?.separator}),null,16,[`class`])):a(`v-if`,!0)],64))}});export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./command-single-option.js";import t from"./command-group-option.js";import{isCommandGroupOption as n}from"./shared.js";import{computed as r,createBlock as i,createSlots as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,renderSlot as u,unref as d,useSlots as f,withCtx as p}from"vue";var m=o({name:`SCommandOption`,inheritAttrs:!1,__name:`command-option`,props:{item:{},groupProps:{},groupLabelProps:{},itemProps:{},itemLabelProps:{},shortcutProps:{},separatorProps:{}},emits:[`select`],setup(o,{emit:m}){let h=m,g=f(),_=r(()=>Object.keys(g));return(r,f)=>d(n)(o.item)?(c(),i(t,s({key:0},o.groupProps,{item:o.item,"group-label-props":o.groupLabelProps,"item-props":o.itemProps,"item-label-props":o.itemLabelProps,"shortcut-props":o.shortcutProps,"separator-props":o.separatorProps,onSelect:f[0]||=e=>h(`select`,e)}),a({_:2},[l(_.value,e=>({name:e,fn:p(t=>[u(r.$slots,e,{item:t.item})])}))]),1040,[`item`,`group-label-props`,`item-props`,`item-label-props`,`shortcut-props`,`separator-props`])):(c(),i(e,s({key:1},o.itemProps,{item:o.item,"item-label-props":o.itemLabelProps,"shortcut-props":o.shortcutProps,"separator-props":o.separatorProps,onSelect:f[1]||=e=>h(`select`,e)}),a({_:2},[l(_.value,e=>({name:e,fn:p(()=>[u(r.$slots,e,{item:o.item})])}))]),1040,[`item`,`item-label-props`,`shortcut-props`,`separator-props`]))}});export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../icon/icon.js";import{useCommandExtraThemeContext as t}from"./context.js";import n from"../kbd/kbd.js";import{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,mergeProps as f,openBlock as p,renderSlot as m,toDisplayString as h,unref as g,withCtx as _}from"vue";import{useOmitProps as v}from"@soybeanjs/headless/composables";import{ListboxItem as y,SeparatorRoot as b}from"@soybeanjs/headless";var x=d({name:`SCommandSingleOption`,inheritAttrs:!1,__name:`command-single-option`,props:{item:{},itemLabelProps:{},shortcutProps:{},separatorProps:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(d,{emit:x}){let S=d,C=x,w=v(S,[`item`,`itemLabelProps`,`shortcutProps`,`separatorProps`]),T=t(),E=i(()=>T?.ui?.value);return(t,i)=>(p(),s(r,null,[u(g(y),f(g(w),{value:d.item.value,disabled:d.item.disabled,onSelect:i[0]||=e=>C(`select`,e)}),{default:_(()=>[m(t.$slots,`item-leading`,{},()=>[d.item.icon?(p(),a(e,{key:0,icon:d.item.icon},null,8,[`icon`])):o(`v-if`,!0)]),c(`span`,f({class:E.value?.itemLabel},d.itemLabelProps),[m(t.$slots,`item-label`,{},()=>[l(h(d.item.label),1)])],16),m(t.$slots,`item-trailing`),d.item.shortcut?(p(),a(n,f({key:0},d.shortcutProps,{value:d.item.shortcut,class:E.value?.shortcut}),null,16,[`value`,`class`])):o(`v-if`,!0)]),_:3},16,[`value`,`disabled`]),d.item.separator?(p(),a(g(b),f({key:0},d.separatorProps,{class:E.value?.separator}),null,16,[`class`])):o(`v-if`,!0)],64))}});export{x as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{commandVariants as n}from"../../variants/command.js";import{provideCommandExtraThemeContext as r}from"./context.js";import{getCommandHighlightSearchOption as i,getCommandItemOptions as a,getCommandSearchOptions as o}from"./shared.js";import s from"./command-option.js";import{Fragment as c,computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createTextVNode as p,createVNode as m,defineComponent as h,guardReactiveProps as g,isRef as _,mergeProps as v,normalizeClass as y,normalizeProps as b,openBlock as x,renderList as S,renderSlot as C,toDisplayString as w,unref as T,withCtx as E}from"vue";import{useControllableState as D,useOmitProps as O,usePickProps as k}from"@soybeanjs/headless/composables";import{ListboxContent as A,ListboxFilter as j,ListboxRoot as M,provideListboxThemeContext as N}from"@soybeanjs/headless";import{useFuse as P}from"@vueuse/integrations/useFuse";import{defu as F}from"defu";var I=h({name:`SCommand`,__name:`command`,props:{size:{},ui:{},items:{},listProps:{},itemProps:{},itemLabelProps:{},groupProps:{},groupLabelProps:{},shortcutProps:{},separatorProps:{},inputProps:{},searchTerm:{},clearable:{type:Boolean},fuseOptions:{},emptyProps:{},emptyLabel:{},orientation:{},dir:{},disabled:{type:Boolean},selectionBehavior:{},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`,`select`,`update:searchTerm`],setup(h,{emit:I}){let L=h,R=I,z=O(L,[`size`,`ui`,`items`,`listProps`,`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`,`inputProps`,`searchTerm`,`fuseOptions`,`emptyProps`,`emptyLabel`]),B=k(L,[`itemProps`,`itemLabelProps`,`groupProps`,`groupLabelProps`,`shortcutProps`,`separatorProps`]),V=D(()=>L.searchTerm,e=>{R(`update:searchTerm`,e)},L.inputProps?.defaultValue||``),H=l(()=>F(L.fuseOptions,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[`label`,`groupLabel`]},resultLimit:12,matchAllWhenSearchEmpty:!0})),{results:U}=P(V,l(()=>o(L.items)),H),W=l(()=>a(U.value.map(e=>i(e.item,V.value)))),G=l(()=>e(n({size:L.size}),L.ui));return N({ui:l(()=>({...G.value,content:G.value.list,filterRoot:G.value.inputRoot,filterControl:G.value.inputControl,itemIndicator:``,virtualizer:``}))}),r({ui:G}),(e,n)=>(x(),u(T(M),v(T(z),{"onUpdate:modelValue":n[2]||=e=>R(`update:modelValue`,e)}),{default:E(()=>[m(T(j),v(h.inputProps,{modelValue:T(V),"onUpdate:modelValue":n[0]||=e=>_(V)?V.value=e:null,autofocus:``}),{leading:E(()=>[C(e.$slots,`input-leading`,{},()=>[m(t,{icon:`lucide:search`,class:y(G.value.inputIcon)},null,8,[`class`])])]),trailing:E(({clear:n})=>[h.clearable?(x(),u(t,{key:0,icon:`lucide:x`,class:y(G.value.inputClearable),onClick:n},null,8,[`class`,`onClick`])):d(`v-if`,!0),C(e.$slots,`input-trailing`)]),_:3},16,[`modelValue`]),m(T(A),b(g(h.listProps)),{default:E(()=>[!W.value.length&&T(V)?(x(),f(`div`,{key:0,class:y(G.value.empty)},[C(e.$slots,`empty`,{},()=>[p(w(h.emptyLabel),1)])],2)):d(`v-if`,!0),(x(!0),f(c,null,S(W.value,(t,r)=>(x(),u(s,v({ref_for:!0},T(B),{key:r,item:t,onSelect:n[1]||=e=>R(`select`,e)}),{"item-leading":E(t=>[C(e.$slots,`item-leading`,{item:t.item})]),"item-trailing":E(t=>[C(e.$slots,`item-trailing`,{item:t.item})]),"item-label":E(t=>[C(e.$slots,`item-label`,{item:t.item})]),_:2},1040,[`item`]))),128))]),_:3},16)]),_:3},16))}});export{I as default};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ListboxCollectionItemData } from "../../headless/dist/components/listbox/types.js";
|
|
2
|
+
import { CommandOptionData, CommandProps, CommandSingleOptionData } from "./types.js";
|
|
3
|
+
import * as vue73 from "vue";
|
|
4
|
+
import * as _soybeanjs_headless_composables0 from "@soybeanjs/headless/composables";
|
|
5
|
+
import * as _soybeanjs_headless14 from "@soybeanjs/headless";
|
|
6
|
+
|
|
7
|
+
//#region src/components/command/command.vue.d.ts
|
|
8
|
+
declare const __VLS_export: <T extends CommandOptionData = CommandOptionData>(__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<{
|
|
9
|
+
props: __VLS_PrettifyLocal<CommandProps<T> & {
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
+
onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
13
|
+
onLeave?: ((event: Event) => any) | undefined;
|
|
14
|
+
onSelect?: ((event: _soybeanjs_headless14.SelectEvent<string>) => any) | undefined;
|
|
15
|
+
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
16
|
+
}> & vue73.PublicProps;
|
|
17
|
+
expose: (exposed: {}) => void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: {
|
|
20
|
+
'input-leading'?: (props: {}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
'input-trailing'?: (props: {}) => any;
|
|
23
|
+
} & {
|
|
24
|
+
empty?: (props: {}) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'item-leading'?: (props: {
|
|
27
|
+
item: CommandSingleOptionData;
|
|
28
|
+
}) => any;
|
|
29
|
+
} & {
|
|
30
|
+
'item-trailing'?: (props: {
|
|
31
|
+
item: CommandSingleOptionData;
|
|
32
|
+
}) => any;
|
|
33
|
+
} & {
|
|
34
|
+
'item-label'?: (props: {
|
|
35
|
+
item: CommandSingleOptionData;
|
|
36
|
+
}) => any;
|
|
37
|
+
};
|
|
38
|
+
emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: _soybeanjs_headless_composables0.CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "select", event: _soybeanjs_headless14.SelectEvent<string>) => void) & ((evt: "update:searchTerm", value: string) => void);
|
|
39
|
+
}>) => vue73.VNode & {
|
|
40
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
|
+
};
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext as e}from"@soybeanjs/headless/composables";const[t,n]=e(`CommandExtraTheme`,e=>e);export{t as provideCommandExtraThemeContext,n as useCommandExtraThemeContext};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CommandEmits, CommandEmptyProps, CommandExtraThemeContextParams, CommandExtraThemeSlot, CommandExtraUi, CommandGroupLabelProps, CommandGroupOptionData, CommandGroupOptionEmits, CommandGroupOptionProps, CommandGroupProps, CommandHighlightSearchOptionData, CommandInputProps, CommandItemEmits, CommandItemLabelProps, CommandItemProps, CommandListProps, CommandOptionData, CommandOptionEmits, CommandOptionProps, CommandProps, CommandRootEmits, CommandRootProps, CommandSearchOptionData, CommandSearchTermEmits, CommandSeparatorProps, CommandShortcutProps, CommandSingleOptionData, CommandSingleOptionEmits, CommandSingleOptionProps, CommandThemeSlot, CommandUi } from "./types.js";
|
|
2
|
+
import { _default } from "./command.vue.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return!!e?.items}function t(t){return t.flatMap(t=>e(t)?t.items.map(e=>({groupLabel:t.label,groupSeparator:t.separator,...e})):[t])}function n(e,t){return{...e,labelHtml:a(e,t,`label`)}}function r(e){let t=e.reduce((e,t)=>{let{groupLabel:n,groupSeparator:r,...i}=t;return n?(e[n]||(e[n]={label:n,separator:r,items:[]}),e[n].items.push(i)):e[t.label]=i,e},{});return Object.values(t)}function i(e,t){let n=``,r=0,i=!1;for(let a=e.length-1;a>=0;a--){if(e[a]===`>`)i=!0;else if(e[a]===`<`){i=!1,n=e[a]+n;continue}if(i||r++,r<=t)n=e[a]+n;else{n=`...${n}`;break}}return n}function a(e,t,n,r){function a(e,n=[]){e||=``;let r=``,a=0;n.forEach(n=>{if(n.length===2&&n[0]===n[1])return;let i=n[1]+1,o=i-n[0]>=t.length;r+=[e.substring(a,n[0]),o&&`<mark>`,e.substring(n[0],i),o&&`</mark>`].filter(Boolean).join(``),a=i}),r+=e.substring(a);let o=r.indexOf(`<mark>`);return o!==-1&&(r=i(r,r.length-o)),r}let o=e?.matches?.find(e=>(!n||e.key===n)&&!r?.includes(e.key));if(o)return a(o.value,o.indices)}export{n as getCommandHighlightSearchOption,r as getCommandItemOptions,t as getCommandSearchOptions,e as isCommandGroupOption};
|