@soybeanjs/headless 0.0.9 → 0.0.10
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-content.js +1 -1
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.js +1 -1
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
- package/dist/components/accordion/accordion-trigger.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/accordion/context.d.ts +5 -4
- package/dist/components/accordion/context.js +1 -1
- package/dist/components/accordion/index.d.ts +3 -3
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/types.d.ts +4 -7
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.js +1 -1
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.js +1 -1
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.js +1 -1
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.js +1 -1
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert/context.d.ts +6 -4
- package/dist/components/alert/context.js +1 -1
- package/dist/components/alert/index.d.ts +3 -3
- package/dist/components/alert/index.js +1 -1
- package/dist/components/alert/types.d.ts +5 -8
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/alert-dialog/index.d.ts +3 -3
- package/dist/components/alert-dialog/index.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +6 -4
- package/dist/components/avatar/context.js +1 -1
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/types.d.ts +5 -8
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/badge/context.d.ts +6 -3
- package/dist/components/badge/context.js +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/types.d.ts +5 -8
- package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-list.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/breadcrumb/context.d.ts +6 -3
- package/dist/components/breadcrumb/context.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +3 -3
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/types.d.ts +5 -8
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.js +1 -1
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.js +1 -1
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.js +1 -1
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.js +1 -1
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.js +1 -1
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/card/context.d.ts +6 -3
- package/dist/components/card/context.js +1 -1
- package/dist/components/card/index.d.ts +3 -3
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/types.d.ts +5 -8
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.js +1 -1
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/checkbox/context.d.ts +5 -4
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/index.d.ts +3 -3
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/types.d.ts +4 -7
- package/dist/components/collapsible/collapsible-content.js +1 -1
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.js +1 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.js +1 -1
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/collapsible/context.d.ts +6 -4
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collapsible/types.d.ts +5 -8
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +6 -6
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/context-menu/index.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +5 -4
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content-impl.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-description.js +1 -1
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.js +1 -1
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-title.js +1 -1
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/types.d.ts +5 -8
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.d.ts +2 -2
- package/dist/components/form/context.d.ts +6 -3
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/shared.js +1 -0
- package/dist/components/form/core/standard.js +1 -0
- package/dist/components/form/core/types.d.ts +117 -0
- package/dist/components/form/core/use-field-array.js +1 -0
- package/dist/components/form/core/use-form-state.js +1 -0
- package/dist/components/form/core/use-form.d.ts +7 -0
- package/dist/components/form/core/use-form.js +1 -0
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-field.vue.d.ts +2 -13
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/form/index.d.ts +7 -5
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/types.d.ts +6 -11
- package/dist/components/input/context.d.ts +6 -3
- package/dist/components/input/context.js +1 -1
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/input/types.d.ts +5 -8
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +6 -4
- package/dist/components/layout/context.js +1 -1
- package/dist/components/layout/index.d.ts +3 -3
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-footer.js +1 -1
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.js +1 -1
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
- package/dist/components/layout/layout-rail.js +1 -1
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +5 -5
- package/dist/components/layout/layout-sidebar.js +1 -1
- package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
- package/dist/components/layout/layout-tab.js +1 -1
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.js +1 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +13 -14
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +6 -3
- package/dist/components/list/context.js +1 -1
- package/dist/components/list/index.d.ts +3 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/list-content.js +1 -1
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.js +1 -1
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.js +1 -1
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.js +1 -1
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.js +1 -1
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/list/types.d.ts +5 -8
- package/dist/components/listbox/context.d.ts +5 -4
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/index.d.ts +3 -3
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/listbox/listbox-content.js +1 -1
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-group-label.js +1 -1
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.js +1 -1
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.js +1 -1
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.js +1 -1
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
- package/dist/components/listbox/listbox-virtualizer.js +1 -1
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +4 -7
- package/dist/components/menu/context.d.ts +5 -4
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +3 -3
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-group.js +1 -1
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-checkbox-item.js +1 -1
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-group-label.js +1 -1
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.js +1 -1
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-indicator.js +1 -1
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item.js +1 -1
- package/dist/components/menu/menu-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-group.js +1 -1
- package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-item.js +1 -1
- package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.vue.d.ts +6 -6
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/types.d.ts +4 -7
- package/dist/components/navigation-menu/context.d.ts +5 -4
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/navigation-menu/types.d.ts +5 -8
- package/dist/components/number-input/context.d.ts +5 -4
- package/dist/components/number-input/context.js +1 -1
- package/dist/components/number-input/index.d.ts +3 -3
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input-control.js +1 -1
- package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.js +1 -1
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.js +1 -1
- package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-root.js +1 -1
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/number-input/types.d.ts +5 -8
- package/dist/components/pagination/context.d.ts +6 -4
- package/dist/components/pagination/context.js +1 -1
- package/dist/components/pagination/index.d.ts +3 -3
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination-ellipsis.js +1 -1
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.js +1 -1
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.js +1 -1
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.js +1 -1
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.js +1 -1
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.js +1 -1
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.js +1 -1
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.js +1 -1
- package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
- package/dist/components/pagination/types.d.ts +5 -8
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner.vue.d.ts +4 -4
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +5 -4
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/index.d.ts +3 -3
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
- package/dist/components/popper/popper-popup.js +1 -1
- package/dist/components/popper/popper-popup.vue.d.ts +2 -2
- package/dist/components/popper/popper-positioner.js +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +52 -52
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/popper/types.d.ts +4 -7
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/context.d.ts +5 -4
- package/dist/components/radio-group/context.js +1 -1
- package/dist/components/radio-group/index.d.ts +3 -3
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-control.js +1 -1
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.js +1 -1
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.js +1 -1
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
- package/dist/components/radio-group/types.d.ts +4 -7
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.d.ts +5 -4
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-arrow.vue.d.ts +2 -2
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +4 -4
- package/dist/components/select/select-group-label.js +1 -1
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.js +1 -1
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-indicator.js +1 -1
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.js +1 -1
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.js +1 -1
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-root.vue.d.ts +3 -3
- package/dist/components/select/select-scroll-down-button.js +1 -1
- package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
- package/dist/components/select/select-scroll-up-button.js +1 -1
- package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
- package/dist/components/select/select-separator.js +1 -1
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-trigger-icon.js +1 -1
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.js +1 -1
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.js +2 -2
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/select/types.d.ts +4 -7
- package/dist/components/separator/context.d.ts +6 -3
- package/dist/components/separator/context.js +1 -1
- package/dist/components/separator/index.d.ts +3 -3
- package/dist/components/separator/index.js +1 -1
- package/dist/components/separator/separator-label.js +1 -1
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.js +1 -1
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/separator/types.d.ts +5 -8
- package/dist/components/slot/slot.d.ts +2 -2
- package/dist/components/switch/context.d.ts +6 -4
- package/dist/components/switch/context.js +1 -1
- package/dist/components/switch/index.d.ts +3 -3
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch-control.js +1 -1
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.js +1 -1
- package/dist/components/switch/switch-root.vue.d.ts +3 -3
- package/dist/components/switch/switch-thumb.js +1 -1
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/switch/types.d.ts +5 -8
- package/dist/components/tabs/context.d.ts +5 -3
- package/dist/components/tabs/context.js +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs-content.js +1 -1
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.js +1 -1
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.js +1 -1
- package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
- package/dist/components/tabs/tabs-trigger.js +1 -1
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tabs/types.d.ts +5 -8
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/context.d.ts +6 -3
- package/dist/components/textarea/context.js +1 -1
- package/dist/components/textarea/index.d.ts +3 -3
- package/dist/components/textarea/index.js +1 -1
- package/dist/components/textarea/textarea-control.js +1 -1
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.js +1 -1
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.js +1 -1
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/textarea/types.d.ts +4 -7
- package/dist/components/toast/context.d.ts +5 -5
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/index.d.ts +3 -3
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/toast-action.js +1 -1
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.js +1 -1
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.js +1 -1
- package/dist/components/toast/toast-description.vue.d.ts +2 -2
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.js +1 -1
- package/dist/components/toast/toast-root.vue.d.ts +5 -5
- package/dist/components/toast/toast-title.js +1 -1
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.js +1 -1
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/toast/types.d.ts +5 -8
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tree/tree-item.vue.d.ts +5 -5
- package/dist/components/tree/tree-root.vue.d.ts +3 -3
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
- package/dist/components/tree-menu/context.d.ts +6 -4
- package/dist/components/tree-menu/context.js +1 -1
- package/dist/components/tree-menu/index.d.ts +3 -3
- package/dist/components/tree-menu/index.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.js +1 -1
- package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-collapsible.js +1 -1
- package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-label.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-group.js +1 -1
- package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-item.js +1 -1
- package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-root.js +1 -1
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
- package/dist/components/tree-menu/tree-menu-sub.js +1 -1
- package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
- package/dist/components/tree-menu/types.d.ts +4 -5
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-locale.d.ts +2 -2
- package/dist/composables/use-nonce.d.ts +2 -2
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/composables/use-selection.js +1 -1
- package/dist/composables/use-ui-context.d.ts +8 -0
- package/dist/composables/use-ui-context.js +1 -0
- package/dist/index.d.ts +183 -181
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +220 -222
- package/dist/namespaced/index.js +1 -1
- package/dist/types/common.d.ts +3 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -17
- package/dist/components/form/form-field-array.js +0 -1
- package/dist/components/form/form-field-array.vue.d.ts +0 -36
- package/dist/forms/core/context.d.ts +0 -21
- package/dist/forms/core/context.js +0 -1
- package/dist/forms/core/hooks.d.ts +0 -6
- package/dist/forms/core/hooks.js +0 -1
- package/dist/forms/core/index.d.ts +0 -3
- package/dist/forms/core/shared.js +0 -1
- package/dist/forms/core/types.d.ts +0 -88
- package/dist/forms/index.d.ts +0 -8
- package/dist/forms/index.js +0 -1
- package/dist/forms/resolvers/index.d.ts +0 -2
- package/dist/forms/resolvers/valibot/index.d.ts +0 -8
- package/dist/forms/resolvers/valibot/index.js +0 -1
- package/dist/forms/resolvers/zod/index.d.ts +0 -8
- package/dist/forms/resolvers/zod/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{provideLayoutRootContext as n,
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{provideLayoutRootContext as n,useLayoutUi as r}from"./context.js";import{layoutCssVars as i}from"./shared.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p}from"vue";import{useMediaQuery as m}from"@vueuse/core";const h=[`data-collapsible`,`data-side`,`data-state`,`data-variant`];var g=s({name:`LayoutRoot`,__name:`layout-root`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},side:{},variant:{},collapsible:{},sidebarWidth:{default:240},collapsedSidebarWidth:{default:50},mobileMediaQuery:{default:`(max-width: 768px)`},mobileSidebarWidth:{default:240},pxToRem:{type:Function,default:e=>e/16}},emits:[`update:open`],setup(s,{emit:g}){let _=s,v=g,y=r(`root`),b=t(()=>_.open,e=>{v(`update:open`,e??!1)},_.defaultOpen),x=m(()=>_.mobileMediaQuery),S=f(!1),C=a(()=>b.value?`expanded`:`collapsed`),w=a(()=>C.value===`collapsed`?_.collapsible:``),T=a(()=>{let e=_.pxToRem(_.sidebarWidth),t=_.pxToRem(_.collapsedSidebarWidth);return{[i.sidebarWidth]:`${e}rem`,[i.collapsedSidebarWidth]:`${t}rem`}}),E=a(()=>_.pxToRem(_.mobileSidebarWidth));return n({...e(_,[`sidebarWidth`,`collapsedSidebarWidth`]),open:b,isMobile:x,mobileOpen:S,mobileSidebarWidth:E,sidebarState:C}),(e,t)=>(u(),o(`div`,{class:c(p(y)),"data-collapsible":w.value,"data-side":s.side,"data-state":C.value,"data-variant":s.variant,style:l(T.value)},[d(e.$slots,`default`,{open:p(b),collapsedSidebarWidth:s.collapsedSidebarWidth})],14,h))}});export{g as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1212 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/layout-root.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -9,9 +9,9 @@ declare var __VLS_1: {
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_1) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
12
|
+
declare const __VLS_base: vue1212.DefineComponent<LayoutRootProps, {}, {}, {}, {}, vue1212.ComponentOptionsMixin, vue1212.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (open: boolean) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue1212.PublicProps, Readonly<LayoutRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
open: boolean;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_base: vue1207.DefineComponent<LayoutRootProps, {}, {}, {}, {
|
|
|
20
20
|
collapsedSidebarWidth: number;
|
|
21
21
|
mobileMediaQuery: string;
|
|
22
22
|
mobileSidebarWidth: number;
|
|
23
|
-
|
|
24
|
-
}, {}, {}, {}, string,
|
|
23
|
+
pxToRem: (px: number) => number;
|
|
24
|
+
}, {}, {}, {}, string, vue1212.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useLayoutRootContext as e,
|
|
1
|
+
import{useLayoutRootContext as e,useLayoutUi as t}from"./context.js";import n from"./layout-mobile.js";import{createBlock as r,createElementBlock as i,createElementVNode as a,defineComponent as o,mergeProps as s,normalizeClass as c,normalizeProps as l,openBlock as u,renderSlot as d,unref as f,useAttrs as p,withCtx as m}from"vue";var h=o({name:`LayoutSidebar`,inheritAttrs:!1,__name:`layout-sidebar`,setup(o){let h=p(),{isMobile:g}=e(`LayoutSidebar`),_=t();return(e,t)=>f(g)?(u(),r(n,l(s({key:0},f(h))),{default:m(()=>[d(e.$slots,`default`)]),_:3},16)):(u(),i(`div`,{key:1,class:c(f(_).sidebarRoot)},[a(`div`,{class:c(f(_).sidebarGapHandler)},null,2),a(`div`,{class:c(f(_).sidebarWrapper)},[a(`div`,s(f(h),{class:f(_).sidebar,"data-sidebar":`sidebar`}),[d(e.$slots,`default`)],16)],2)],2))}});export{h as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutSidebarProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1217 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/layout-sidebar.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {}, __VLS_10: {};
|
|
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1217.DefineComponent<LayoutSidebarProps, {}, {}, {}, {}, vue1217.ComponentOptionsMixin, vue1217.ComponentOptionsMixin, {}, string, vue1217.PublicProps, Readonly<LayoutSidebarProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1217.ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useLayoutUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`LayoutTab`,__name:`layout-tab`,setup(n){let s=e(`tab`);return(e,n)=>(i(),t(`div`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LayoutTabProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1232 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/layout-tab.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1232.DefineComponent<LayoutTabProps, {}, {}, {}, {}, vue1232.ComponentOptionsMixin, vue1232.ComponentOptionsMixin, {}, string, vue1232.PublicProps, Readonly<LayoutTabProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1232.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import{useLayoutRootContext as t,
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{useLayoutRootContext as t,useLayoutUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";var u=i({name:`LayoutTrigger`,__name:`layout-trigger`,props:{asChild:{type:Boolean},as:{}},setup(i){let{open:u,toggleSidebar:d}=t(`LayoutTrigger`),f=n(`trigger`);return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,class:a(c(f)),"data-sidebar":`trigger`,onClick:c(d)},{default:l(()=>[s(t.$slots,`default`,{open:c(u)})]),_:3},8,[`as`,`as-child`,`class`,`onClick`]))}});export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LayoutTriggerProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1247 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/layout-trigger.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
@@ -8,7 +8,7 @@ declare var __VLS_10: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1247.DefineComponent<LayoutTriggerProps, {}, {}, {}, {}, vue1247.ComponentOptionsMixin, vue1247.ComponentOptionsMixin, {}, string, vue1247.PublicProps, Readonly<LayoutTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1247.ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HorizontalSide, UiClass } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/layout/types.d.ts
|
|
7
7
|
type LayoutVariant = 'sidebar' | 'floating' | 'inset';
|
|
@@ -23,13 +23,13 @@ interface LayoutRootProps extends /* @vue-ignore */HTMLAttributes {
|
|
|
23
23
|
/** The collapsible state of the layout. */
|
|
24
24
|
collapsible?: LayoutCollapsible;
|
|
25
25
|
/**
|
|
26
|
-
* The width of the sidebar.
|
|
26
|
+
* The width of the sidebar. (px)
|
|
27
27
|
*
|
|
28
28
|
* @default 240
|
|
29
29
|
*/
|
|
30
30
|
sidebarWidth?: number;
|
|
31
31
|
/**
|
|
32
|
-
* The width of the sidebar when it is collapsed.
|
|
32
|
+
* The width of the sidebar when it is collapsed. (px)
|
|
33
33
|
*
|
|
34
34
|
* @default 50
|
|
35
35
|
*/
|
|
@@ -43,17 +43,19 @@ interface LayoutRootProps extends /* @vue-ignore */HTMLAttributes {
|
|
|
43
43
|
*/
|
|
44
44
|
mobileMediaQuery?: string;
|
|
45
45
|
/**
|
|
46
|
-
* The width of the sidebar in the mobile view.
|
|
46
|
+
* The width of the sidebar in the mobile view. (px)
|
|
47
47
|
*
|
|
48
48
|
* @default 240
|
|
49
49
|
*/
|
|
50
50
|
mobileSidebarWidth?: number;
|
|
51
51
|
/**
|
|
52
|
-
* The
|
|
52
|
+
* The function to convert pixels to rem.
|
|
53
53
|
*
|
|
54
|
-
* @
|
|
54
|
+
* @param px - The width in pixels
|
|
55
|
+
* @default (px: number) => px / 16 (16 is the base font size)
|
|
56
|
+
* @returns The width in rem
|
|
55
57
|
*/
|
|
56
|
-
|
|
58
|
+
pxToRem?: (px: number) => number;
|
|
57
59
|
}
|
|
58
60
|
type LayoutRootEmits = {
|
|
59
61
|
'update:open': [open: boolean];
|
|
@@ -66,10 +68,7 @@ interface LayoutFooterProps extends /* @vue-ignore */HTMLAttributes {}
|
|
|
66
68
|
interface LayoutRailProps extends /* @vue-ignore */HTMLAttributes {}
|
|
67
69
|
interface LayoutTriggerProps extends PrimitiveProps, /* @vue-ignore */HTMLAttributes {}
|
|
68
70
|
interface LayoutMobileProps extends /* @vue-ignore */HTMLAttributes {}
|
|
69
|
-
type
|
|
70
|
-
type LayoutUi =
|
|
71
|
-
interface LayoutThemeContextParams {
|
|
72
|
-
ui: ComputedRef<LayoutUi>;
|
|
73
|
-
}
|
|
71
|
+
type LayoutUiSlot = 'root' | 'sidebar' | 'sidebarRoot' | 'sidebarWrapper' | 'sidebarGapHandler' | 'header' | 'main' | 'tab' | 'footer' | 'rail' | 'trigger' | 'mobile' | 'mobileDrawer' | 'mobileOverlay';
|
|
72
|
+
type LayoutUi = UiClass<LayoutUiSlot>;
|
|
74
73
|
//#endregion
|
|
75
|
-
export { LayoutCollapsible, LayoutFooterProps, LayoutHeaderProps, LayoutMainProps, LayoutMobileProps, LayoutRailProps, LayoutRootEmits, LayoutRootProps, LayoutSide, LayoutSidebarProps, LayoutSidebarState, LayoutTabProps,
|
|
74
|
+
export { LayoutCollapsible, LayoutFooterProps, LayoutHeaderProps, LayoutMainProps, LayoutMobileProps, LayoutRailProps, LayoutRootEmits, LayoutRootProps, LayoutSide, LayoutSidebarProps, LayoutSidebarState, LayoutTabProps, LayoutTriggerProps, LayoutUi, LayoutUiSlot, LayoutVariant };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import { LinkProps } from "./types.js";
|
|
3
3
|
import "../primitive/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1378 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/link/link.vue.d.ts
|
|
7
7
|
declare var __VLS_10: {
|
|
@@ -14,9 +14,9 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
default?: (props: typeof __VLS_21) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
18
|
-
as: AsTag | vue454.Component;
|
|
17
|
+
declare const __VLS_base: vue1378.DefineComponent<LinkProps, {}, {}, {}, {}, vue1378.ComponentOptionsMixin, vue1378.ComponentOptionsMixin, {}, string, vue1378.PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
19
18
|
replace: boolean;
|
|
19
|
+
as: AsTag | vue1378.Component;
|
|
20
20
|
disabled: boolean;
|
|
21
21
|
viewTransition: boolean;
|
|
22
22
|
external: boolean;
|
|
@@ -24,7 +24,7 @@ declare const __VLS_base: vue454.DefineComponent<LinkProps, {}, {}, {}, {}, vue4
|
|
|
24
24
|
noRel: boolean;
|
|
25
25
|
prefetch: boolean;
|
|
26
26
|
noPrefetch: boolean;
|
|
27
|
-
}, {}, {}, {}, string,
|
|
27
|
+
}, {}, {}, {}, string, vue1378.ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { ListUiSlot } from "./types.js";
|
|
3
|
+
import "../../index.js";
|
|
4
|
+
import * as vue1309 from "vue";
|
|
2
5
|
|
|
3
6
|
//#region src/components/list/context.d.ts
|
|
4
|
-
declare const
|
|
7
|
+
declare const provideListUi: (ui: vue1309.ComputedRef<Partial<UiClass<ListUiSlot>>>) => vue1309.ComputedRef<Partial<UiClass<ListUiSlot>>>, useListUi: <S extends ListUiSlot | undefined = undefined>(slot?: S | undefined) => S extends ListUiSlot ? vue1309.ComputedRef<ClassValue> : vue1309.ComputedRef<Partial<UiClass<ListUiSlot>>>;
|
|
5
8
|
//#endregion
|
|
6
|
-
export {
|
|
9
|
+
export { provideListUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useUiContext as e}from"../../composables/use-ui-context.js";const[t,n]=e(`ListUi`);export{t as provideListUi,n as useListUi};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ListContentProps, ListDescriptionProps, ListItemProps, ListRootProps,
|
|
1
|
+
import { ListContentProps, ListDescriptionProps, ListItemProps, ListRootProps, ListTitleProps, ListUi, ListUiSlot } from "./types.js";
|
|
2
2
|
import { _default as _default$3 } from "./list-root.vue.js";
|
|
3
3
|
import { _default as _default$2 } from "./list-item.vue.js";
|
|
4
4
|
import { _default } from "./list-content.vue.js";
|
|
5
5
|
import { _default as _default$4 } from "./list-title.vue.js";
|
|
6
6
|
import { _default as _default$1 } from "./list-description.vue.js";
|
|
7
|
-
import {
|
|
8
|
-
export { _default as ListContent, type ListContentProps, _default$1 as ListDescription, type ListDescriptionProps, _default$2 as ListItem, type ListItemProps, _default$3 as ListRoot, type ListRootProps,
|
|
7
|
+
import { provideListUi } from "./context.js";
|
|
8
|
+
export { _default as ListContent, type ListContentProps, _default$1 as ListDescription, type ListDescriptionProps, _default$2 as ListItem, type ListItemProps, _default$3 as ListRoot, type ListRootProps, _default$4 as ListTitle, type ListTitleProps, type ListUi, type ListUiSlot, provideListUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{provideListUi as e}from"./context.js";import t from"./list-root.js";import n from"./list-item.js";import r from"./list-content.js";import i from"./list-title.js";import a from"./list-description.js";export{r as ListContent,a as ListDescription,n as ListItem,t as ListRoot,i as ListTitle,e as provideListUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useListUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`ListContent`,__name:`list-content`,setup(n){let s=e(`content`);return(e,n)=>(i(),t(`div`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1304 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1304.DefineComponent<ListContentProps, {}, {}, {}, {}, vue1304.ComponentOptionsMixin, vue1304.ComponentOptionsMixin, {}, string, vue1304.PublicProps, Readonly<ListContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1304.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useListUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`ListDescription`,__name:`list-description`,setup(n){let s=e(`description`);return(e,n)=>(i(),t(`p`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListDescriptionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1313 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-description.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1313.DefineComponent<ListDescriptionProps, {}, {}, {}, {}, vue1313.ComponentOptionsMixin, vue1313.ComponentOptionsMixin, {}, string, vue1313.PublicProps, Readonly<ListDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1313.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useListUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`ListItem`,__name:`list-item`,setup(n){let s=e(`item`);return(e,n)=>(i(),t(`li`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1289 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-item.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1289.DefineComponent<ListItemProps, {}, {}, {}, {}, vue1289.ComponentOptionsMixin, vue1289.ComponentOptionsMixin, {}, string, vue1289.PublicProps, Readonly<ListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1289.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useListUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`ListRoot`,__name:`list-root`,setup(n){let s=e(`root`);return(e,n)=>(i(),t(`ul`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1294 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-root.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1294.DefineComponent<ListRootProps, {}, {}, {}, {}, vue1294.ComponentOptionsMixin, vue1294.ComponentOptionsMixin, {}, string, vue1294.PublicProps, Readonly<ListRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1294.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useListUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=n({name:`ListTitle`,__name:`list-title`,setup(n){let s=e(`title`);return(e,n)=>(i(),t(`h3`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListTitleProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1299 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-title.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1299.DefineComponent<ListTitleProps, {}, {}, {}, {}, vue1299.ComponentOptionsMixin, vue1299.ComponentOptionsMixin, {}, string, vue1299.PublicProps, Readonly<ListTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1299.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { HTMLAttributes } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/list/types.d.ts
|
|
6
6
|
interface ListRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
@@ -8,10 +8,7 @@ interface ListItemProps extends /** @vue-ignore */HTMLAttributes {}
|
|
|
8
8
|
interface ListContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
9
9
|
interface ListTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
10
10
|
interface ListDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
11
|
-
type
|
|
12
|
-
type ListUi =
|
|
13
|
-
interface ListThemeContextParams {
|
|
14
|
-
ui: ComputedRef<ListUi>;
|
|
15
|
-
}
|
|
11
|
+
type ListUiSlot = 'root' | 'item' | 'content' | 'title' | 'description';
|
|
12
|
+
type ListUi = UiClass<ListUiSlot>;
|
|
16
13
|
//#endregion
|
|
17
|
-
export { ListContentProps, ListDescriptionProps, ListItemProps, ListRootProps,
|
|
14
|
+
export { ListContentProps, ListDescriptionProps, ListItemProps, ListRootProps, ListTitleProps, ListUi, ListUiSlot };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
1
2
|
import "../../composables/index.js";
|
|
2
|
-
import {
|
|
3
|
+
import { ListboxUiSlot } from "./types.js";
|
|
3
4
|
import "../../index.js";
|
|
4
|
-
import "vue";
|
|
5
|
+
import * as vue691 from "vue";
|
|
5
6
|
import "@vueuse/shared";
|
|
6
7
|
|
|
7
8
|
//#region src/components/listbox/context.d.ts
|
|
8
9
|
|
|
9
|
-
declare const
|
|
10
|
+
declare const provideListboxUi: (ui: vue691.ComputedRef<Partial<UiClass<ListboxUiSlot>>>) => vue691.ComputedRef<Partial<UiClass<ListboxUiSlot>>>, useListboxUi: <S extends ListboxUiSlot | undefined = undefined>(slot?: S | undefined) => S extends ListboxUiSlot ? vue691.ComputedRef<ClassValue> : vue691.ComputedRef<Partial<UiClass<ListboxUiSlot>>>;
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { provideListboxUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findValuesBetween as e}from"../../shared/object.js";import{getFocusIntent as t}from"../../shared/focus.js";import{useContext as n}from"../../composables/use-context.js";import{useCollection as r}from"../../composables/use-collection.js";import{useDirection as i}from"../../composables/use-direction.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import{useTypeahead as o}from"../../composables/use-typeahead.js";import{
|
|
1
|
+
import{findValuesBetween as e}from"../../shared/object.js";import{getFocusIntent as t}from"../../shared/focus.js";import{useContext as n}from"../../composables/use-context.js";import{useCollection as r}from"../../composables/use-collection.js";import{useDirection as i}from"../../composables/use-direction.js";import{useForwardElement as a}from"../../composables/use-forward-element.js";import{useTypeahead as o}from"../../composables/use-typeahead.js";import{useUiContext as s}from"../../composables/use-ui-context.js";import{provideInputUi as c}from"../input/context.js";import{computed as l,nextTick as u,shallowRef as d,useId as f}from"vue";import{createEventHook as p}from"@vueuse/core";const{provideCollectionContext:m,useCollectionContext:h,useCollectionItem:g}=r(`Listbox`),[_,v]=n(`ListboxRoot`,n=>{let[r,s]=a(),{getOrderedItems:c,getOrderedElements:l}=m(),{handleTypeaheadSearch:f}=o(),{modelValue:h,orientation:g,selectionBehavior:_,isMultiple:v,onHighlight:y,onEntryFocus:b}=n,x=i(n.dir),S=d(),C=d(!1),w=d(!0),T=d(null),E=d(null),D=d(!1),O=d(!1),k=p(),A=p(),j=p(),M=e=>{if(C.value=!0,v.value){let t=Array.isArray(h.value)?[...h.value]:[],n=t.findIndex(t=>t===e);_.value===`toggle`?(n===-1?t.push(e):t.splice(n,1),h.value=t):(h.value=[e],S.value=e)}else _.value===`toggle`?h.value=h.value===e?void 0:e:h.value=e;setTimeout(()=>{C.value=!1},1)},N=(e,t=!0)=>{e&&(T.value=e,w.value&&T.value.focus(),t&&T.value.scrollIntoView({block:`nearest`}),y(c().find(t=>t.element===e)))},P=e=>{if(D.value)j.trigger(e);else{let t=c().find(t=>t.data.value===e);t&&(T.value=t.element,N(t.element))}},F=e=>{T.value?.isConnected&&(e.preventDefault(),e.stopPropagation(),!O.value&&T.value.click())},I=e=>{if(C.value=!0,D.value)A.trigger(e);else{let t=e.altKey||e.ctrlKey||e.metaKey,n=c();if(t&&e.key===`a`&&v.value){h.value=[...n.map(e=>e.data.value)],e.preventDefault();let t=n[n.length-1]?.element;t&&N(t)}else if(!t){let t=f(e.key,n);t&&N(t)}}setTimeout(()=>{C.value=!1},1)},L=()=>{O.value=!0},R=()=>{u(()=>{O.value=!1})},z=e=>{let t=T.value;t?.isConnected&&(E.value=t),T.value=null,n.onLeave(e)},B=e=>{let t=new CustomEvent(`listbox.entryFocus`,{bubbles:!1,cancelable:!0});if(e.currentTarget?.dispatchEvent(t),b(t),!t.defaultPrevented)if(E.value)N(E.value);else{let e=l()?.[0];e&&N(e)}},V=e=>{let n=t(e,g.value,x.value);if(!n)return;let r=l();if(T.value){if(n===`last`)r.reverse();else if(n===`prev`||n===`next`){n===`prev`&&r.reverse();let e=r.indexOf(T.value);r=r.slice(e+1)}let t=r[0];t&&U(e,t)}if(r.length){let e=!T.value&&n===`prev`?r.length-1:0,t=r[e];t&&N(t)}D.value&&A.trigger(e)},H=()=>{u(()=>{V(new KeyboardEvent(`keydown`,{key:`PageUp`}))})};function U(t,n){if(D.value||_.value!==`replace`||!v.value||!Array.isArray(h.value)||(t.altKey||t.ctrlKey||t.metaKey)&&!t.shiftKey||!t.shiftKey)return;let r=c(),i=r.find(e=>e.element===n)?.data?.value;t.key===`End`?i=r[r.length-1]?.data?.value:t.key===`Home`&&(i=r[0]?.data?.value),!(!i||!S.value)&&(h.value=e(r.map(e=>e.data.value),S.value,i))}let W=async e=>{if(await u(),D.value)k.trigger(e);else{let e=l(),t=e.find(e=>e.dataset.state===`checked`);t?N(t):e[0]&&N(e[0])}},G=async e=>{let t=e.relatedTarget||e.target;await u(),!(!T.value||r.value?.contains(t))&&z(e)};return{...n,rootElement:r,setRootElement:s,isUserAction:C,isVirtual:D,virtualFocusHook:k,virtualKeydownHook:A,virtualHighlightHook:j,firstValue:S,focusable:w,onModelValueChange:M,onLeave:z,onEnter:B,highlightedElement:T,changeHighlight:N,highlightItem:P,highlightSelected:W,highlightFirstItem:H,onKeydownEnter:F,onKeydownNavigation:V,onKeydownTypeahead:I,onCompositionStart:L,onCompositionEnd:R,onFocusOut:G,getItems:c}}),[y,b]=n(`ListboxGroup`,()=>({id:`soybean-listbox-group-${f()}`})),[x,S]=n(`ListboxItem`,e=>e),[C,w]=s(`ListboxUi`,e=>(c(l(()=>({root:e.value?.filterRoot,control:e.value?.filterControl}))),e));export{y as provideListboxGroupContext,x as provideListboxItemContext,_ as provideListboxRootContext,C as provideListboxUi,h as useCollectionContext,g as useCollectionItem,b as useListboxGroupContext,S as useListboxItemContext,v as useListboxRootContext,w as useListboxUi};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListboxCollectionItemData, ListboxContentProps, ListboxFilterEmits, ListboxFilterProps, ListboxGroupLabelProps, ListboxGroupProps, ListboxItemEmits, ListboxItemIndicatorProps, ListboxItemProps, ListboxRootEmits, ListboxRootProps,
|
|
1
|
+
import { ListboxCollectionItemData, ListboxContentProps, ListboxFilterEmits, ListboxFilterProps, ListboxGroupLabelProps, ListboxGroupProps, ListboxItemEmits, ListboxItemIndicatorProps, ListboxItemProps, ListboxRootEmits, ListboxRootProps, ListboxUi, ListboxUiSlot, ListboxVirtualizerProps } from "./types.js";
|
|
2
2
|
import { _default as _default$6 } from "./listbox-root.vue.js";
|
|
3
3
|
import { _default } from "./listbox-content.vue.js";
|
|
4
4
|
import { _default as _default$1 } from "./listbox-filter.vue.js";
|
|
@@ -7,5 +7,5 @@ import { _default as _default$5 } from "./listbox-item-indicator.vue.js";
|
|
|
7
7
|
import { _default as _default$2 } from "./listbox-group.vue.js";
|
|
8
8
|
import { _default as _default$3 } from "./listbox-group-label.vue.js";
|
|
9
9
|
import { _default as _default$7 } from "./listbox-virtualizer.vue.js";
|
|
10
|
-
import {
|
|
11
|
-
export { type ListboxCollectionItemData, _default as ListboxContent, type ListboxContentProps, _default$1 as ListboxFilter, type ListboxFilterEmits, type ListboxFilterProps, _default$2 as ListboxGroup, _default$3 as ListboxGroupLabel, type ListboxGroupLabelProps, type ListboxGroupProps, _default$4 as ListboxItem, type ListboxItemEmits, _default$5 as ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, _default$6 as ListboxRoot, type ListboxRootEmits, type ListboxRootProps, type
|
|
10
|
+
import { provideListboxUi } from "./context.js";
|
|
11
|
+
export { type ListboxCollectionItemData, _default as ListboxContent, type ListboxContentProps, _default$1 as ListboxFilter, type ListboxFilterEmits, type ListboxFilterProps, _default$2 as ListboxGroup, _default$3 as ListboxGroupLabel, type ListboxGroupLabelProps, type ListboxGroupProps, _default$4 as ListboxItem, type ListboxItemEmits, _default$5 as ListboxItemIndicator, type ListboxItemIndicatorProps, type ListboxItemProps, _default$6 as ListboxRoot, type ListboxRootEmits, type ListboxRootProps, type ListboxUi, type ListboxUiSlot, _default$7 as ListboxVirtualizer, type ListboxVirtualizerProps, provideListboxUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{provideListboxUi as e}from"./context.js";import t from"./listbox-root.js";import n from"./listbox-content.js";import r from"./listbox-filter.js";import i from"./listbox-item.js";import a from"./listbox-item-indicator.js";import o from"./listbox-group.js";import s from"./listbox-group-label.js";import c from"./listbox-virtualizer.js";export{n as ListboxContent,r as ListboxFilter,o as ListboxGroup,s as ListboxGroupLabel,i as ListboxItem,a as ListboxItemIndicator,t as ListboxRoot,c as ListboxVirtualizer,e as provideListboxUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useCollectionContext as t,useListboxRootContext as n,
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useCollectionContext as t,useListboxRootContext as n,useListboxUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u,withKeys as d,withModifiers as f}from"vue";import{refAutoReset as p}from"@vueuse/shared";const m=[`tabindex`,`aria-orientation`,`aria-multiselectable`,`data-orientation`,`onKeydown`];var h=o({name:`ListboxContent`,__name:`listbox-content`,setup(o){let{orientation:h,focusable:g,highlightedElement:_,isMultiple:v,onEnter:y,onKeydownNavigation:b,onKeydownEnter:x,onKeydownTypeahead:S}=n(`ListboxContent`),{onContainerElementChange:C}=t(`ListboxContent`),[w,T]=e(e=>{C(e)}),E=r(`content`),D=p(!1,10),O=i(()=>g.value?_.value?`-1`:`0`:`-1`),k=e=>{D.value||y(e)},A=e=>{h.value===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(e.key)||h.value===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(e.key)||(e.preventDefault(),g.value&&b(e))},j=()=>{D.value=!0};return(e,t)=>(c(),a(`div`,{ref:u(T),class:s(u(E)),role:`listbox`,tabindex:O.value,"aria-orientation":u(h),"aria-multiselectable":u(v),"data-orientation":u(h),onMousedown:f(j,[`left`]),onFocus:k,onKeydown:[d(f(A,[`prevent`]),[`down`,`up`,`left`,`right`,`home`,`end`]),t[0]||=d((...e)=>u(x)&&u(x)(...e),[`enter`]),t[1]||=(...e)=>u(S)&&u(S)(...e)]},[l(e.$slots,`default`)],42,m))}});export{h as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue669 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue669.DefineComponent<ListboxContentProps, {}, {}, {}, {}, vue669.ComponentOptionsMixin, vue669.ComponentOptionsMixin, {}, string, vue669.PublicProps, Readonly<ListboxContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue669.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListboxFilterProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue660 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-filter.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
@@ -12,11 +12,11 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
trailing?: (props: typeof __VLS_21) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue660.DefineComponent<ListboxFilterProps, {}, {}, {}, {}, vue660.ComponentOptionsMixin, vue660.ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (value: string) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue660.PublicProps, Readonly<ListboxFilterProps> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue660.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useListboxGroupContext as e,
|
|
1
|
+
import{useListboxGroupContext as e,useListboxUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`id`];var l=r({name:`ListboxGroupLabel`,__name:`listbox-group-label`,setup(r){let{id:l}=e(`ListboxGroupLabel`),u=t(`groupLabel`);return(e,t)=>(a(),n(`div`,{id:s(l),class:i(s(u))},[o(e.$slots,`default`)],10,c))}});export{l as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue794 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-group-label.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue794.DefineComponent<ListboxGroupLabelProps, {}, {}, {}, {}, vue794.ComponentOptionsMixin, vue794.ComponentOptionsMixin, {}, string, vue794.PublicProps, Readonly<ListboxGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue794.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideListboxGroupContext as e,
|
|
1
|
+
import{provideListboxGroupContext as e,useListboxUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`aria-labelledby`];var l=r({name:`ListboxGroup`,__name:`listbox-group`,setup(r){let{id:l}=e(),u=t(`group`);return(e,t)=>(a(),n(`div`,{"aria-labelledby":s(l),role:`group`,class:i(s(u))},[o(e.$slots,`default`)],10,c))}});export{l as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue686 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-group.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue686.DefineComponent<ListboxGroupProps, {}, {}, {}, {}, vue686.ComponentOptionsMixin, vue686.ComponentOptionsMixin, {}, string, vue686.PublicProps, Readonly<ListboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue686.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Primitive as e}from"../primitive/primitive.js";import{useListboxItemContext as t,
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import{useListboxItemContext as t,useListboxUi as n}from"./context.js";import{createBlock as r,createCommentVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";var d=a({name:`ListboxItemIndicator`,__name:`listbox-item-indicator`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(a){let{isSelected:d}=t(`ListboxItemIndicator`),f=n(`itemIndicator`);return(t,n)=>l(d)?(s(),r(l(e),{key:0,as:a.as,"as-child":a.asChild,class:o(l(f)),"aria-hidden":`true`},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`])):i(`v-if`,!0)}});export{d as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { ListboxItemIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue674 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/listbox-item-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue674.DefineComponent<ListboxItemIndicatorProps, {}, {}, {}, {}, vue674.ComponentOptionsMixin, vue674.ComponentOptionsMixin, {}, string, vue674.PublicProps, Readonly<ListboxItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue674.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue674.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|