@soybeanjs/headless 0.5.2 → 0.5.4
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 +2 -3
- package/dist/components/accordion/context.js +1 -1
- 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 +2 -3
- package/dist/components/alert/context.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-close.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
- package/dist/components/alert-dialog/alert-dialog-root.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/alert-dialog/context.js +1 -1
- package/dist/components/alert-dialog/index.js +1 -1
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +2 -2
- package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
- 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 +2 -3
- package/dist/components/avatar/context.js +1 -1
- 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 +2 -2
- package/dist/components/badge/context.js +1 -1
- 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 +2 -2
- package/dist/components/breadcrumb/context.js +1 -1
- package/dist/components/button/button.js +1 -1
- 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 +2 -2
- package/dist/components/card/context.js +1 -1
- 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 +2 -3
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/types.d.ts +2 -4
- 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 +7 -7
- 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 +2 -3
- package/dist/components/collapsible/context.js +1 -1
- package/dist/components/collapsible/types.d.ts +1 -2
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.js +1 -1
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
- package/dist/components/context-menu/context.js +1 -1
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/dialog/context.d.ts +2 -3
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-close.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.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dialog/types.d.ts +1 -2
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +6 -6
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/form/context.d.ts +2 -3
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/shared.js +1 -1
- package/dist/components/form/core/use-field-array.js +1 -1
- package/dist/components/form/core/use-form-state.js +1 -1
- package/dist/components/form/core/use-form.js +1 -1
- 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 -2
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/context.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/kbd/kbd.js +1 -1
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.js +1 -1
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/context.d.ts +2 -3
- package/dist/components/layout/context.js +1 -1
- package/dist/components/layout/layout-content.js +1 -1
- package/dist/components/layout/layout-content.vue.d.ts +2 -2
- 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-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.js +1 -1
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- 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-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- 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/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +4 -4
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/context.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/listbox/context.d.ts +2 -3
- package/dist/components/listbox/context.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.js +1 -1
- 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 +5 -5
- 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 +3 -7
- package/dist/components/menu/context.d.ts +2 -3
- package/dist/components/menu/context.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.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +8 -8
- 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-impl.js +1 -1
- 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.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
- 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.js +1 -1
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/types.d.ts +3 -6
- package/dist/components/navigation-menu/context.d.ts +2 -3
- package/dist/components/navigation-menu/context.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +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 +6 -6
- 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/number-input/context.d.ts +2 -3
- package/dist/components/number-input/context.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/shared.js +1 -1
- package/dist/components/page-tabs/context.d.ts +2 -3
- package/dist/components/page-tabs/context.js +1 -1
- package/dist/components/page-tabs/hooks.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.js +1 -1
- package/dist/components/page-tabs/page-tabs-close.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-item.js +1 -1
- package/dist/components/page-tabs/page-tabs-item.vue.d.ts +4 -4
- package/dist/components/page-tabs/page-tabs-pin.js +1 -1
- package/dist/components/page-tabs/page-tabs-pin.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-root.js +1 -1
- package/dist/components/page-tabs/page-tabs-root.vue.d.ts +6 -6
- package/dist/components/pagination/context.d.ts +2 -3
- package/dist/components/pagination/context.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 +1 -2
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/popover-anchor.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.js +1 -1
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.js +1 -1
- package/dist/components/popover/popover-popup.vue.d.ts +2 -2
- package/dist/components/popover/popover-positioner-impl.js +1 -1
- package/dist/components/popover/popover-positioner.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +4 -4
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popper/context.d.ts +2 -3
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/popper-anchor.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 +44 -44
- package/dist/components/popper/popper-root.js +1 -1
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/popper/shared.js +1 -1
- package/dist/components/portal/portal.js +1 -1
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/primitive/primitive.js +1 -1
- package/dist/components/radio-group/context.d.ts +2 -3
- package/dist/components/radio-group/context.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 +2 -4
- package/dist/components/roving-focus/context.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.js +1 -1
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +6 -6
- package/dist/components/roving-focus/roving-focus-item.js +1 -1
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.d.ts +2 -3
- package/dist/components/select/context.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-bubble-select.js +1 -1
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +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-aligned-popup.js +1 -1
- package/dist/components/select/select-item-aligned-positioner.js +1 -1
- 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-popper-popup.js +1 -1
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +3 -3
- package/dist/components/select/select-scroll-button-impl.js +1 -1
- 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-teleport-provider.js +1 -1
- 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 +1 -1
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/types.d.ts +4 -8
- package/dist/components/separator/context.d.ts +2 -2
- package/dist/components/separator/context.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/slot/slot.d.ts +2 -2
- package/dist/components/slot/slot.js +1 -1
- package/dist/components/switch/context.d.ts +2 -3
- package/dist/components/switch/context.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 +1 -2
- package/dist/components/tabs/context.d.ts +2 -3
- package/dist/components/tabs/context.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 +1 -2
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/context.d.ts +2 -2
- package/dist/components/textarea/context.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/toast/context.d.ts +0 -1
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/shared.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-announce.js +1 -1
- 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-focus-proxy.js +1 -1
- package/dist/components/toast/toast-provider.js +1 -1
- 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 +7 -7
- 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 +6 -12
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/tooltip-popup.js +1 -1
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.js +1 -1
- package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tree/context.js +1 -1
- package/dist/components/tree/hooks.js +1 -1
- package/dist/components/tree/tree-item.js +1 -1
- package/dist/components/tree/tree-item.vue.d.ts +5 -5
- package/dist/components/tree/tree-root.js +1 -1
- package/dist/components/tree/tree-root.vue.d.ts +3 -3
- package/dist/components/tree/tree-virtualizer-item.js +1 -1
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-root.js +1 -1
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
- package/dist/components/tree/types.d.ts +2 -5
- package/dist/components/tree-menu/context.d.ts +2 -3
- package/dist/components/tree-menu/context.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/virtualizer/context.js +1 -1
- package/dist/components/virtualizer/virtualizer-content.js +1 -1
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.js +1 -1
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.js +1 -1
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden-input-bubble.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.js +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.js +1 -1
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/use-body-scroll-lock.js +1 -1
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-collection.js +1 -1
- package/dist/composables/use-context.js +1 -1
- package/dist/composables/use-dismissable-layer.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-floating.js +1 -1
- package/dist/composables/use-focus-guards.js +1 -1
- package/dist/composables/use-focus-scope.js +1 -1
- package/dist/composables/use-forward-element.d.ts +2 -3
- package/dist/composables/use-forward-element.js +1 -1
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-hide-others.d.ts +0 -1
- package/dist/composables/use-hide-others.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-image-loading-status.js +1 -1
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.js +1 -1
- package/dist/composables/use-kbd.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-props.js +1 -1
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/composables/use-selection.js +1 -1
- package/dist/composables/use-typeahead.js +1 -1
- package/dist/index.js +1 -1
- package/dist/namespaced/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/comparison.d.ts +0 -1
- package/dist/shared/form.d.ts +0 -1
- package/dist/types/component.d.ts +3 -8
- package/dist/types/dom.d.ts +0 -1
- package/dist/types/path.d.ts +2 -2
- package/dist/types/vue.d.ts +1 -1
- package/package.json +14 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import n from"../popper/popper-root.js";import{providePopoverRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import n from"../popper/popper-root.js";import"../popper/index.js";import{providePopoverRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=a({name:`PopoverRoot`,inheritAttrs:!1,__name:`popover-root`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!1}},emits:[`update:open`],setup(a,{emit:u}){let d=a,f=u,p=t(()=>d.open,e=>{f(`update:open`,e??!1)},d.defaultOpen),m=()=>{p.value=!1};return r({...e(d,[`modal`]),open:p}),(e,t)=>(o(),i(c(n),null,{default:l(()=>[s(e.$slots,`default`,{open:c(p),close:m})]),_:3}))}});export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopoverRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popover/popover-root.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
@@ -9,15 +9,15 @@ declare var __VLS_8: {
|
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
12
|
+
declare const __VLS_base: vue.DefineComponent<PopoverRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (value: boolean) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue.PublicProps, Readonly<PopoverRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
open: boolean;
|
|
18
18
|
defaultOpen: boolean;
|
|
19
19
|
modal: boolean;
|
|
20
|
-
}, {}, {}, {}, string,
|
|
20
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{Primitive as t}from"../primitive/primitive.js";import n from"../popper/popper-anchor.js";import{usePopoverRootContext as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,openBlock as s,renderSlot as c,resolveDynamicComponent as l,unref as u,withCtx as d}from"vue";
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import n from"../popper/popper-anchor.js";import"../popper/index.js";import{usePopoverRootContext as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,openBlock as s,renderSlot as c,resolveDynamicComponent as l,unref as u,withCtx as d}from"vue";const f=o({name:`PopoverTrigger`,__name:`popover-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(o){let f=o,{open:p,onOpenToggle:m,dataState:h,popupId:g,initTriggerId:_,onTriggerElementChange:v,hasCustomAnchor:y}=r(`PopoverTrigger`),[b,x]=e(v),S=i(()=>f.as===`button`?`button`:void 0);return _(),(e,r)=>(s(),a(l(u(y)?u(t):u(n)),{ref:u(x),as:o.as,"as-child":o.asChild,type:S.value,"aria-haspopup":`dialog`,"aria-expanded":u(p)||!1,"aria-controls":u(p)?u(g):void 0,"data-state":u(h),onClick:u(m)},{default:d(()=>[c(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`onClick`]))}});export{f as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { PopoverTriggerProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/popover/popover-trigger.vue.d.ts
|
|
7
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:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue.DefineComponent<PopoverTriggerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PopoverTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue.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 & {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { PopperUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
import { ReferenceElement } from "@floating-ui/dom";
|
|
6
6
|
import "@floating-ui/utils";
|
|
7
7
|
|
|
8
8
|
//#region src/components/popper/context.d.ts
|
|
9
|
-
|
|
10
|
-
declare const providePopperUi: (ui: vue1395.ComputedRef<Partial<UiClass<PopperUiSlot>>>) => vue1395.ComputedRef<Partial<UiClass<PopperUiSlot>>>, usePopperUi: <S extends PopperUiSlot | undefined = undefined>(slot?: S | undefined) => S extends PopperUiSlot ? vue1395.ComputedRef<ClassValue> : vue1395.ComputedRef<Partial<UiClass<PopperUiSlot>>>;
|
|
9
|
+
declare const providePopperUi: (ui: vue.ComputedRef<Partial<UiClass<PopperUiSlot>>>) => vue.ComputedRef<Partial<UiClass<PopperUiSlot>>>, usePopperUi: <S extends PopperUiSlot | undefined = undefined>(slot?: S | undefined) => S extends PopperUiSlot ? vue.ComputedRef<ClassValue> : vue.ComputedRef<Partial<UiClass<PopperUiSlot>>>;
|
|
11
10
|
//#endregion
|
|
12
11
|
export { providePopperUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import{shallowRef as n}from"vue";const[r,i]=e(`PopperRoot`,()=>{let e=n(),t=t=>{e.value=t},r=n();return{popupElement:e,onPopupElementChange:t,anchorElement:r,onAnchorElementChange:e=>{r.value=e}}}),[a,o]=e(`PopperPositioner`,e=>{let t=n(null),r=e=>{t.value=e??null};return{...e,arrowElement:t,onArrowElementChange:r}}),[s,c]=t(`PopperUi`);export{a as providePopperPositionerContext,r as providePopperRootContext,s as providePopperUi,o as usePopperPositionerContext,i as usePopperRootContext,c as usePopperUi};
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{shallowRef as n}from"vue";const[r,i]=e(`PopperRoot`,()=>{let e=n(),t=t=>{e.value=t},r=n();return{popupElement:e,onPopupElementChange:t,anchorElement:r,onAnchorElementChange:e=>{r.value=e}}}),[a,o]=e(`PopperPositioner`,e=>{let t=n(null),r=e=>{t.value=e??null};return{...e,arrowElement:t,onArrowElementChange:r}}),[s,c]=t(`PopperUi`);export{a as providePopperPositionerContext,r as providePopperRootContext,s as providePopperUi,o as usePopperPositionerContext,i as usePopperRootContext,c as usePopperUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import{Primitive as n}from"../primitive/primitive.js";import{usePopperRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,watchEffect as u,withCtx as d}from"vue";
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as n}from"../primitive/primitive.js";import"../primitive/index.js";import{usePopperRootContext as r}from"./context.js";import{createBlock as i,defineComponent as a,mergeProps as o,openBlock as s,renderSlot as c,unref as l,watchEffect as u,withCtx as d}from"vue";const f=a({name:`PopperAnchor`,__name:`popper-anchor`,props:{reference:{},asChild:{type:Boolean},as:{}},setup(a){let f=a,p=t(f,[`reference`]),{onAnchorElementChange:m}=r(`PopperAnchor`),[h,g]=e(e=>{f.reference||m(e)});return u(()=>{f.reference&&m(f.reference)}),(e,t)=>(s(),i(l(n),o(l(p),{ref:l(g)}),{default:d(()=>[c(e.$slots,`default`)]),_:3},16))}});export{f as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PopperAnchorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popper/popper-anchor.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.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{OPPOSITE_SIDE as e}from"../../constants/common.js";import t from"../arrow/arrow.js";import{usePopperPositionerContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,createVNode as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,unref as d}from"vue";
|
|
1
|
+
import{OPPOSITE_SIDE as e}from"../../constants/common.js";import t from"../arrow/arrow.js";import"../arrow/index.js";import{usePopperPositionerContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,createVNode as o,defineComponent as s,normalizeClass as c,normalizeStyle as l,openBlock as u,unref as d}from"vue";const f=s({name:`PopperArrow`,__name:`popper-arrow`,setup(s){let f=r(`arrow`),{setArrowElement:p,arrowX:m,arrowY:h,arrowCentered:g,placedSide:_}=n(`PopperArrow`),v={top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`},y={top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`},b=i(()=>e[_.value]),x=i(()=>({position:`absolute`,left:m.value?`${m.value}px`:void 0,top:h.value?`${h.value}px`:void 0,[b.value]:0,transformOrigin:v[_.value],transform:y[_.value],visibility:g.value?void 0:`hidden`}));return(e,n)=>(u(),a(`span`,{ref:d(p),class:c(d(f)),style:l(x.value)},[o(d(t))],6))}});export{f as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PopperArrowProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popper/popper-arrow.vue.d.ts
|
|
5
|
-
declare const __VLS_export:
|
|
5
|
+
declare const __VLS_export: vue.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
6
6
|
declare const _default: typeof __VLS_export;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{usePopperPositionerContext as t,usePopperRootContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d}from"vue";const f=[`data-side`,`data-align`]
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{usePopperPositionerContext as t,usePopperRootContext as n,usePopperUi as r}from"./context.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,normalizeStyle as c,openBlock as l,renderSlot as u,unref as d}from"vue";const f=[`data-side`,`data-align`],p=o({name:`PopperPopup`,__name:`popper-popup`,setup(o){let p=r(`popup`),{onPopupElementChange:m}=n(`PopperPopup`),{placedSide:h,placedAlign:g,isPositioned:_}=t(`PopperPopup`),[v,y]=e(m),b=i(()=>({animation:_.value?void 0:`none`}));return(e,t)=>(l(),a(`div`,{ref:d(y),class:s(d(p)),"data-soybean-popper-popup":``,"data-side":d(h),"data-align":d(g),style:c(b.value)},[u(e.$slots,`default`)],14,f))}});export{p as default};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PopperPopupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/popper/popper-popup.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: vue.DefineComponent<PopperPopupProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PopperPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.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{useForwardElement as e}from"../../composables/use-forward-element.js";import{useFloating as t}from"../../composables/use-floating.js";import{providePopperPositionerContext as n,usePopperRootContext as r,usePopperUi as i}from"./context.js";import{createPopperPositionerDefaultProps as a,getFloatingUiMiddleware as o,getPlacement as s,popperCssVars as c}from"./shared.js";import{computed as l,createElementBlock as u,defineComponent as d,mergeDefaults as f,normalizeClass as p,normalizeStyle as m,openBlock as h,renderSlot as g,shallowRef as _,unref as v,watchPostEffect as y}from"vue";import{autoUpdate as b}from"@floating-ui/dom";import{getAlignment as x,getSide as S}from"@floating-ui/utils";
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useFloating as t}from"../../composables/use-floating.js";import"../../composables/index.js";import{providePopperPositionerContext as n,usePopperRootContext as r,usePopperUi as i}from"./context.js";import{createPopperPositionerDefaultProps as a,getFloatingUiMiddleware as o,getPlacement as s,popperCssVars as c}from"./shared.js";import{computed as l,createElementBlock as u,defineComponent as d,mergeDefaults as f,normalizeClass as p,normalizeStyle as m,openBlock as h,renderSlot as g,shallowRef as _,unref as v,watchPostEffect as y}from"vue";import{autoUpdate as b}from"@floating-ui/dom";import{getAlignment as x,getSide as S}from"@floating-ui/utils";const C=d({name:`PopperPositioner`,__name:`popper-positioner`,props:f({placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},a()),emits:[`placed`],setup(a,{emit:d}){let f=a,C=d,w=i(`positioner`),[T,E]=e(),[D,O]=e(),{anchorElement:k,popupElement:A}=r(`PopperPositioner`),{floatingStyles:j,placement:M,isPositioned:N,middlewareData:P}=t(l(()=>f.reference??k.value),T,{strategy:()=>f.positionStrategy,placement:()=>f.placement??s(f.side,f.align),whileElementsMounted:(...e)=>b(...e,{layoutShift:!f.disableUpdateOnLayoutShift,animationFrame:f.updatePositionStrategy===`always`}),middleware:()=>o(f,D.value)}),F=l(()=>S(M.value)),I=l(()=>x(M.value)??`center`),L=l(()=>P.value.arrow?.centerOffset===0),R=l(()=>P.value.arrow?.x??0),z=l(()=>P.value.arrow?.y??0),B=_(),V=l(()=>{let{transformOrigin:e,hide:t}=P.value;return{...j.value,zIndex:B.value,transform:N.value?j.value.transform:`translate(0, -200%)`,[c.transformOrigin]:[e?.x,e?.y].join(` `),...t?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}}});return n({arrowX:R,arrowY:z,arrowCentered:L,placedSide:F,placedAlign:I,isPositioned:l(()=>N.value),setArrowElement:O}),y(()=>{N.value&&C(`placed`)}),y(()=>{A.value&&(B.value=window.getComputedStyle(A.value).zIndex)}),(e,t)=>(h(),u(`div`,{ref:v(E),class:p(v(w)),"data-soybean-popper-positioner":``,style:m(V.value)},[g(e.$slots,`default`)],6))}});export{C as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Align, Placement as Placement$1 } from "../../types/common.js";
|
|
2
2
|
import { PopperPositionerProps } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
6
6
|
import * as _floating_ui_dom0 from "@floating-ui/dom";
|
|
7
7
|
import * as _floating_ui_utils0 from "@floating-ui/utils";
|
|
@@ -11,12 +11,12 @@ declare var __VLS_1: {};
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base:
|
|
14
|
+
declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
15
15
|
placed: () => any;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, vue.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
|
|
17
17
|
onPlaced?: (() => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
-
style: string | false | CSSProperties |
|
|
19
|
+
style: string | false | CSSProperties | vue.StyleValue[] | null;
|
|
20
20
|
title: string;
|
|
21
21
|
contextmenu: string;
|
|
22
22
|
onInput: (payload: InputEvent) => void;
|
|
@@ -115,11 +115,46 @@ declare const __VLS_base: vue1389.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
115
115
|
onEncrypted: (payload: MediaEncryptedEvent) => void;
|
|
116
116
|
innerHTML: string;
|
|
117
117
|
class: any;
|
|
118
|
-
|
|
118
|
+
accesskey: string;
|
|
119
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
120
|
+
dir: string;
|
|
121
|
+
draggable: boolean | "true" | "false";
|
|
122
|
+
enterkeyhint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
|
|
123
|
+
enterKeyHint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
|
|
124
|
+
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
119
125
|
id: string;
|
|
126
|
+
inert: boolean | "true" | "false";
|
|
120
127
|
lang: string;
|
|
121
|
-
|
|
128
|
+
placeholder: string;
|
|
129
|
+
spellcheck: boolean | "true" | "false";
|
|
122
130
|
tabindex: string | number;
|
|
131
|
+
translate: "yes" | "no";
|
|
132
|
+
radiogroup: string;
|
|
133
|
+
role: string;
|
|
134
|
+
about: string;
|
|
135
|
+
datatype: string;
|
|
136
|
+
inlist: any;
|
|
137
|
+
prefix: string;
|
|
138
|
+
property: string;
|
|
139
|
+
resource: string;
|
|
140
|
+
typeof: string;
|
|
141
|
+
vocab: string;
|
|
142
|
+
autocapitalize: string;
|
|
143
|
+
autocorrect: string;
|
|
144
|
+
autosave: string;
|
|
145
|
+
color: string;
|
|
146
|
+
itemprop: string;
|
|
147
|
+
itemscope: boolean | "true" | "false";
|
|
148
|
+
itemtype: string;
|
|
149
|
+
itemid: string;
|
|
150
|
+
itemref: string;
|
|
151
|
+
results: string | number;
|
|
152
|
+
security: string;
|
|
153
|
+
unselectable: "on" | "off";
|
|
154
|
+
inputmode: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
155
|
+
is: string;
|
|
156
|
+
exportparts: string;
|
|
157
|
+
part: string;
|
|
123
158
|
'aria-activedescendant': string;
|
|
124
159
|
'aria-atomic': boolean | "true" | "false";
|
|
125
160
|
'aria-autocomplete': "list" | "none" | "inline" | "both";
|
|
@@ -155,7 +190,7 @@ declare const __VLS_base: vue1389.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
155
190
|
'aria-posinset': string | number;
|
|
156
191
|
'aria-pressed': (boolean | "true" | "false") | "mixed";
|
|
157
192
|
'aria-readonly': boolean | "true" | "false";
|
|
158
|
-
'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text
|
|
193
|
+
'aria-relevant': "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
159
194
|
'aria-required': boolean | "true" | "false";
|
|
160
195
|
'aria-roledescription': string;
|
|
161
196
|
'aria-rowcount': string | number;
|
|
@@ -168,47 +203,12 @@ declare const __VLS_base: vue1389.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
168
203
|
'aria-valuemin': string | number;
|
|
169
204
|
'aria-valuenow': string | number;
|
|
170
205
|
'aria-valuetext': string;
|
|
171
|
-
|
|
172
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
173
|
-
dir: string;
|
|
174
|
-
draggable: boolean | "true" | "false";
|
|
175
|
-
enterkeyhint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
|
|
176
|
-
enterKeyHint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
|
|
177
|
-
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
178
|
-
inert: boolean | "true" | "false";
|
|
179
|
-
placeholder: string;
|
|
180
|
-
spellcheck: boolean | "true" | "false";
|
|
181
|
-
translate: "yes" | "no";
|
|
182
|
-
radiogroup: string;
|
|
183
|
-
about: string;
|
|
184
|
-
datatype: string;
|
|
185
|
-
inlist: any;
|
|
186
|
-
prefix: string;
|
|
187
|
-
property: string;
|
|
188
|
-
resource: string;
|
|
189
|
-
typeof: string;
|
|
190
|
-
vocab: string;
|
|
191
|
-
autocapitalize: string;
|
|
192
|
-
autocorrect: string;
|
|
193
|
-
autosave: string;
|
|
194
|
-
itemprop: string;
|
|
195
|
-
itemscope: boolean | "true" | "false";
|
|
196
|
-
itemtype: string;
|
|
197
|
-
itemid: string;
|
|
198
|
-
itemref: string;
|
|
199
|
-
results: string | number;
|
|
200
|
-
security: string;
|
|
201
|
-
unselectable: "off" | "on";
|
|
202
|
-
inputmode: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
203
|
-
is: string;
|
|
204
|
-
exportparts: string;
|
|
205
|
-
part: string;
|
|
206
|
+
align: Align;
|
|
206
207
|
reference: _floating_ui_dom0.ReferenceElement;
|
|
207
208
|
placement: Placement$1;
|
|
208
209
|
side: _floating_ui_utils0.Side;
|
|
209
210
|
sideOffset: number;
|
|
210
211
|
sideFlip: boolean;
|
|
211
|
-
align: Align;
|
|
212
212
|
alignOffset: number;
|
|
213
213
|
alignFlip: boolean;
|
|
214
214
|
avoidCollisions: boolean;
|
|
@@ -221,7 +221,7 @@ declare const __VLS_base: vue1389.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
221
221
|
updatePositionStrategy: "optimized" | "always";
|
|
222
222
|
disableUpdateOnLayoutShift: boolean;
|
|
223
223
|
prioritizePosition: boolean;
|
|
224
|
-
}, {}, {}, {}, string,
|
|
224
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
225
225
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
226
226
|
declare const _default: typeof __VLS_export;
|
|
227
227
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{providePopperRootContext as e}from"./context.js";import{defineComponent as t,renderSlot as n}from"vue";
|
|
1
|
+
import{providePopperRootContext as e}from"./context.js";import{defineComponent as t,renderSlot as n}from"vue";const r=t({name:`PopperRoot`,inheritAttrs:!1,__name:`popper-root`,setup(t){return e(),(e,t)=>n(e.$slots,`default`)}});export{r as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/components/popper/popper-root.vue.d.ts
|
|
4
4
|
declare var __VLS_1: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_base:
|
|
8
|
+
declare const __VLS_base: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
11
11
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{arrow as t,flip as n,hide as r,limitShift as i,offset as a,shift as o,size as s}from"@floating-ui/dom";import{getAlignment as c,getSide as l}from"@floating-ui/utils";const u={transformOrigin:`--soybean-popper-transform-origin`,availableWidth:`--soybean-popper-available-width`,availableHeight:`--soybean-popper-available-height`,anchorWidth:`--soybean-popper-anchor-width`,anchorHeight:`--soybean-popper-anchor-height`};function d(){return{placement:void 0,side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionPadding:0,collisionBoundary:()=>[],sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1}}const f={start:`0%`,center:`50%`,end:`100%`},p={bottom:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({arrowHeight:e})=>`${-e}px`},top:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({floatingHeight:e,arrowHeight:t})=>`${e+t}px`},right:{getX:({arrowHeight:e})=>`${-e}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`},left:{getX:({floatingWidth:e,arrowHeight:t})=>`${e+t}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`}};function m(e,d){let{sideOffset:m=0,alignOffset:g=0,sideFlip:_,alignFlip:v,prioritizePosition:y,sticky:b,avoidCollisions:x,arrowPadding:S,hideWhenDetached:C}=e,w=h(e),T=[a(()=>({mainAxis:m+(d?.clientHeight??0),crossAxis:g,alignmentAxis:g}))];if(x){let e=[o({mainAxis:!0,crossAxis:!!y,limiter:b===`partial`?i():void 0,...w})],t=n({mainAxis:_,crossAxis:v,...w});y?e.unshift(t):e.push(t),T.push(...e)}return T.push(s({...w,apply:({elements:{floating:e},rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference;e.style.setProperty(u.availableWidth,`${n}px`),e.style.setProperty(u.availableHeight,`${r}px`),e.style.setProperty(u.anchorWidth,`${i}px`),e.style.setProperty(u.anchorHeight,`${a}px`)}})),d&&T.push(t({element:d,padding:S}),{name:`transformOrigin`,fn(e){let{placement:t,rects:n,middlewareData:r}=e,i=r.arrow?.centerOffset!==0,{width:a,height:o}=d.getBoundingClientRect(),s=i?0:a,u=i?0:o,m=l(t),h=f[c(t)??`center`],g=(r.arrow?.x??0)+s/2,_=(r.arrow?.y??0)+u/2,v=p[m],y={isArrowHidden:i,noArrowAlign:h,arrowXCenter:g,arrowYCenter:_,arrowHeight:o,floatingWidth:n.floating.width,floatingHeight:n.floating.height};return{data:{x:v.getX(y),y:v.getY(y)}}}}),C&&T.push(r({strategy:`referenceHidden`,...w})),T.filter(Boolean)}function h(t){let{collisionPadding:n,collisionBoundary:r}=t,i={top:1,right:1,bottom:1,left:1};typeof n==`number`?(i.top+=n,i.right+=n,i.bottom+=n,i.left+=n):n&&(i.top+=n.top??0,i.right+=n.right??0,i.bottom+=n.bottom??0,i.left+=n.left??0);let a=Array.isArray(r)?r:[r],o=a.length>0;return{padding:i,boundary:a.filter(t=>!e(t)),altBoundary:o}}function g(e,t){let n=e;return t!==`center`&&(n+=`-${t}`),n}export{d as createPopperPositionerDefaultProps,m as getFloatingUiMiddleware,g as getPlacement,u as popperCssVars};
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import"../../shared/index.js";import{arrow as t,flip as n,hide as r,limitShift as i,offset as a,shift as o,size as s}from"@floating-ui/dom";import{getAlignment as c,getSide as l}from"@floating-ui/utils";const u={transformOrigin:`--soybean-popper-transform-origin`,availableWidth:`--soybean-popper-available-width`,availableHeight:`--soybean-popper-available-height`,anchorWidth:`--soybean-popper-anchor-width`,anchorHeight:`--soybean-popper-anchor-height`};function d(){return{placement:void 0,side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionPadding:0,collisionBoundary:()=>[],sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1}}const f={start:`0%`,center:`50%`,end:`100%`},p={bottom:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({arrowHeight:e})=>`${-e}px`},top:{getX:({isArrowHidden:e,noArrowAlign:t,arrowXCenter:n})=>e?t:`${n}px`,getY:({floatingHeight:e,arrowHeight:t})=>`${e+t}px`},right:{getX:({arrowHeight:e})=>`${-e}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`},left:{getX:({floatingWidth:e,arrowHeight:t})=>`${e+t}px`,getY:({isArrowHidden:e,noArrowAlign:t,arrowYCenter:n})=>e?t:`${n}px`}};function m(e,d){let{sideOffset:m=0,alignOffset:g=0,sideFlip:_,alignFlip:v,prioritizePosition:y,sticky:b,avoidCollisions:x,arrowPadding:S,hideWhenDetached:C}=e,w=h(e),T=[a(()=>({mainAxis:m+(d?.clientHeight??0),crossAxis:g,alignmentAxis:g}))];if(x){let e=[o({mainAxis:!0,crossAxis:!!y,limiter:b===`partial`?i():void 0,...w})],t=n({mainAxis:_,crossAxis:v,...w});y?e.unshift(t):e.push(t),T.push(...e)}return T.push(s({...w,apply:({elements:{floating:e},rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference;e.style.setProperty(u.availableWidth,`${n}px`),e.style.setProperty(u.availableHeight,`${r}px`),e.style.setProperty(u.anchorWidth,`${i}px`),e.style.setProperty(u.anchorHeight,`${a}px`)}})),d&&T.push(t({element:d,padding:S}),{name:`transformOrigin`,fn(e){let{placement:t,rects:n,middlewareData:r}=e,i=r.arrow?.centerOffset!==0,{width:a,height:o}=d.getBoundingClientRect(),s=i?0:a,u=i?0:o,m=l(t),h=f[c(t)??`center`],g=(r.arrow?.x??0)+s/2,_=(r.arrow?.y??0)+u/2,v=p[m],y={isArrowHidden:i,noArrowAlign:h,arrowXCenter:g,arrowYCenter:_,arrowHeight:o,floatingWidth:n.floating.width,floatingHeight:n.floating.height};return{data:{x:v.getX(y),y:v.getY(y)}}}}),C&&T.push(r({strategy:`referenceHidden`,...w})),T.filter(Boolean)}function h(t){let{collisionPadding:n,collisionBoundary:r}=t,i={top:1,right:1,bottom:1,left:1};typeof n==`number`?(i.top+=n,i.right+=n,i.bottom+=n,i.left+=n):n&&(i.top+=n.top??0,i.right+=n.right??0,i.bottom+=n.bottom??0,i.left+=n.left??0);let a=Array.isArray(r)?r:[r],o=a.length>0;return{padding:i,boundary:a.filter(t=>!e(t)),altBoundary:o}}function g(e,t){let n=e;return t!==`center`&&(n+=`-${t}`),n}export{d as createPopperPositionerDefaultProps,m as getFloatingUiMiddleware,g as getPlacement,u as popperCssVars};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Teleport as e,createBlock as t,createCommentVNode as n,defineComponent as r,onMounted as i,openBlock as a,renderSlot as o,shallowRef as s}from"vue";
|
|
1
|
+
import{Teleport as e,createBlock as t,createCommentVNode as n,defineComponent as r,onMounted as i,openBlock as a,renderSlot as o,shallowRef as s}from"vue";const c=r({name:`Portal`,__name:`portal`,props:{to:{default:`body`},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(r){let c=s(!1);return i(()=>{c.value=!0}),(i,s)=>c.value||r.forceMount?(a(),t(e,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[o(i.$slots,`default`)],8,[`to`,`disabled`,`defer`])):n(`v-if`,!0)}});export{c as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PortalProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/portal/portal.vue.d.ts
|
|
5
5
|
declare var __VLS_7: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_7) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue.DefineComponent<PortalProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<PortalProps> & Readonly<{}>, {
|
|
10
10
|
to: string | HTMLElement;
|
|
11
|
-
}, {}, {}, {}, string,
|
|
11
|
+
}, {}, {}, {}, string, vue.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
1
|
import { PrimitiveProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/primitive/primitive.d.ts
|
|
5
|
-
declare const Primitive:
|
|
5
|
+
declare const Primitive: vue.DefineSetupFnComponent<PrimitiveProps, {}, {}, PrimitiveProps & {}, vue.PublicProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Primitive };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Slot as e}from"../slot/slot.js";import{defineComponent as t,h as n}from"vue";const r=new Set([`area`,`input`,`img`]),i=t((t,{slots:i,attrs:a})=>{let o=t.asChild?`template`:t.as;return typeof o==`string`&&r.has(o)?()=>n(o,a):o===`template`?()=>n(e,a,{default:i.default}):()=>n(t.as||`div`,a,{default:i.default})},{name:`Primitive`,inheritAttrs:!1,props:[`as`,`asChild`]});export{i as Primitive};
|
|
1
|
+
import{Slot as e}from"../slot/slot.js";import"../slot/index.js";import{defineComponent as t,h as n}from"vue";const r=new Set([`area`,`input`,`img`]),i=t((t,{slots:i,attrs:a})=>{let o=t.asChild?`template`:t.as;return typeof o==`string`&&r.has(o)?()=>n(o,a):o===`template`?()=>n(e,a,{default:i.default}):()=>n(t.as||`div`,a,{default:i.default})},{name:`Primitive`,inheritAttrs:!1,props:[`as`,`asChild`]});export{i as Primitive};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
2
|
import { RadioGroupUiSlot } from "./types.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/context.d.ts
|
|
7
|
-
|
|
8
|
-
declare const provideRadioGroupUi: (ui: vue877.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue877.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue877.ComputedRef<ClassValue> : vue877.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
|
|
7
|
+
declare const provideRadioGroupUi: (ui: vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue.ComputedRef<ClassValue> : vue.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import{computed as r,shallowRef as i}from"vue";const[a,o]=t(`RadioGroupRoot`,e=>e),[s,c]=t(`RadioGroupItem`,t=>{let n=r(()=>e(t.checked.value)),a=i(``),o=e=>{a.value=e};return{...t,dataState:n,controlId:a,initControlId:o}}),[l,u]=n(`RadioGroupUi`);export{s as provideRadioGroupItemContext,a as provideRadioGroupRootContext,l as provideRadioGroupUi,c as useRadioGroupItemContext,o as useRadioGroupRootContext,u as useRadioGroupUi};
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import"../../shared/index.js";import{useContext as t}from"../../composables/use-context.js";import{useUiContext as n}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as r,shallowRef as i}from"vue";const[a,o]=t(`RadioGroupRoot`,e=>e),[s,c]=t(`RadioGroupItem`,t=>{let n=r(()=>e(t.checked.value)),a=i(``),o=e=>{a.value=e};return{...t,dataState:n,controlId:a,initControlId:o}}),[l,u]=n(`RadioGroupUi`);export{s as provideRadioGroupItemContext,a as provideRadioGroupRootContext,l as provideRadioGroupUi,c as useRadioGroupItemContext,o as useRadioGroupRootContext,u as useRadioGroupUi};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAriaLabel as e}from"../../shared/dom.js";import{isFormControl as t}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import r from"../roving-focus/roving-focus-item.js";import{useRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createElementVNode as l,defineComponent as u,normalizeClass as d,onBeforeMount as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,useAttrs as _,useTemplateRef as v,watchEffect as y,withCtx as b,withKeys as x,withModifiers as S}from"vue";const C=[`id`,`disabled`,`aria-checked`,`aria-label`,`data-disabled`,`data-state`,`value`,`required`,`name`]
|
|
1
|
+
import{getAriaLabel as e}from"../../shared/dom.js";import{isFormControl as t}from"../../shared/vue.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import"../../shared/index.js";import r from"../roving-focus/roving-focus-item.js";import"../roving-focus/index.js";import{useRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createElementVNode as l,defineComponent as u,normalizeClass as d,onBeforeMount as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,useAttrs as _,useTemplateRef as v,watchEffect as y,withCtx as b,withKeys as x,withModifiers as S}from"vue";const C=[`id`,`disabled`,`aria-checked`,`aria-label`,`data-disabled`,`data-state`,`value`,`required`,`name`],w=u({name:`RadioGroupControl`,__name:`radio-group-control`,props:{id:{}},setup(u){let w=u,T=_(),E=o(`control`),D=v(`controlElement`),O=a(`RadioGroupControl`),{value:k,disabled:A,name:j,required:M,checked:N,dataState:P,onSelect:F,initControlId:I}=i(`RadioGroupControl`),L=s(()=>t(D.value)),R=s(()=>e(D.value,w.id,T[`aria-label`])),z=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],B=!1;function V(e){z.includes(e.key)&&(B=!0)}function H(){B=!1}function U(e){w.disabled||n(`radio.select`,t=>{F(t),!t?.defaultPrevented&&(O.modelValue.value=k.value,L.value&&e.stopPropagation())},{originalEvent:e,value:k.value})}function W(){setTimeout(()=>{B&&D.value?.click()},0)}return y(()=>{w.id&&I(w.id)}),p(()=>{document.addEventListener(`keydown`,V),document.addEventListener(`keyup`,H)}),f(()=>{document.removeEventListener(`keydown`,V),document.removeEventListener(`keyup`,H)}),(e,t)=>(m(),c(g(r),{"as-child":``,checked:g(N),focusable:!g(A),active:g(N)},{default:b(()=>[l(`button`,{id:u.id,ref_key:`controlElement`,ref:D,class:d(g(E)),role:`radio`,type:`button`,disabled:g(A),"aria-checked":g(N),"aria-label":R.value,"data-disabled":g(A)?``:void 0,"data-state":g(P),value:String(g(k)),required:g(M),name:g(j),onClick:S(U,[`stop`]),onKeydown:t[0]||(t[0]=x(S(()=>{},[`prevent`]),[`enter`])),onFocus:W},[h(e.$slots,`default`,{checked:g(N),required:g(M),disabled:g(A)})],42,C)]),_:3},8,[`checked`,`focusable`,`active`]))}});export{w as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioGroupControlProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group/radio-group-control.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
@@ -10,7 +10,7 @@ declare var __VLS_8: {
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_8) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.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 & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import{Primitive as r}from"../primitive/primitive.js";import{useRadioGroupItemContext as i,useRadioGroupUi as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,withCtx as h}from"vue";
|
|
1
|
+
import{getCheckedState as e}from"../../shared/value.js";import"../../shared/index.js";import{useForwardElement as t}from"../../composables/use-forward-element.js";import{usePresence as n}from"../../composables/use-presence.js";import"../../composables/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import{useRadioGroupItemContext as i,useRadioGroupUi as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,renderSlot as f,shallowRef as p,unref as m,withCtx as h}from"vue";const g=l({name:`RadioGroupIndicator`,__name:`radio-group-indicator`,props:{asChild:{type:Boolean},as:{default:`span`},forceMount:{type:Boolean}},setup(l){let g=l,_=a(`indicator`),[v,y]=t(),{checked:b,disabled:x}=i(`RadioGroupIndicator`),S=g.forceMount?p(!0):n(v,()=>b.value===!0),C=o(()=>e(b.value));return(e,t)=>m(S)?(d(),s(m(r),{key:0,ref:m(y),as:l.as,"as-child":l.asChild,class:u(m(_)),"data-state":C.value,"data-disabled":m(x)?``:void 0},{default:h(()=>[f(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`data-state`,`data-disabled`])):c(`v-if`,!0)}});export{g as default};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { RadioGroupIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/radio-group-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: vue.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue.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 & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import r from"../visually-hidden/visually-hidden-input.js";import{provideRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g}from"vue";const _=[`data-state`]
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import r from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideRadioGroupItemContext as i,useRadioGroupRootContext as a,useRadioGroupUi as o}from"./context.js";import{computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,defineComponent as d,normalizeClass as f,openBlock as p,renderSlot as m,unref as h,useTemplateRef as g}from"vue";const _=[`data-state`],v=d({name:`RadioGroupItem`,__name:`radio-group-item`,props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`select`],setup(d,{emit:v}){let y=d,b=v,x=o(`item`),S=a(`RadioGroupItem`),C=g(`itemElement`),w=s(()=>t(C.value)),T=s(()=>S.disabled.value||y.disabled),E=s(()=>S.required.value||y.required),D=s(()=>!e(S.modelValue.value)&&S.modelValue.value===y.value),{dataState:O}=i({...n(y,[`name`,`required`,`value`,`disabled`]),checked:D,onSelect:e=>{b(`select`,e)}});return(e,t)=>(p(),u(`div`,{ref_key:`itemElement`,ref:C,class:f(h(x)),"data-state":h(O)},[m(e.$slots,`default`,{checked:D.value}),w.value&&d.name?(p(),c(h(r),{key:0,type:`radio`,tabindex:`-1`,value:d.value,checked:D.value,name:d.name,disabled:T.value,required:E.value},null,8,[`value`,`checked`,`name`,`disabled`,`required`])):l(`v-if`,!0)],10,_))}});export{v as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioGroupItemProps, RadioSelectEvent } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/radio-group/radio-group-item.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {
|
|
@@ -8,11 +8,11 @@ declare var __VLS_1: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: RadioSelectEvent) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: RadioSelectEvent) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../label/label.js";import{useRadioGroupItemContext as t,useRadioGroupUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";
|
|
1
|
+
import e from"../label/label.js";import"../label/index.js";import{useRadioGroupItemContext as t,useRadioGroupUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`RadioGroupLabel`,__name:`radio-group-label`,props:{for:{}},setup(a){let d=a,f=n(`label`),{controlId:p}=t(`RadioGroupLabel`),m=r(()=>d.for||p.value);return(t,n)=>(s(),i(l(e),{for:m.value,class:o(l(f))},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`for`,`class`]))}});export{d as default};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
2
|
import "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/radio-group/radio-group-label.vue.d.ts
|
|
6
6
|
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base:
|
|
10
|
+
declare const __VLS_base: vue.DefineComponent<LabelProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import i from"../roving-focus/roving-focus-group.js";import a from"../visually-hidden/visually-hidden-input.js";import{provideRadioGroupRootContext as o,useRadioGroupUi as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,useTemplateRef as _,withCtx as v}from"vue";const y=[`data-disabled`,`aria-orientation`,`aria-required`]
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isFormControl as t,transformPropsToContext as n}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as r}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import i from"../roving-focus/roving-focus-group.js";import"../roving-focus/index.js";import a from"../visually-hidden/visually-hidden-input.js";import"../visually-hidden/index.js";import{provideRadioGroupRootContext as o,useRadioGroupUi as s}from"./context.js";import{computed as c,createBlock as l,createCommentVNode as u,createElementVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,renderSlot as h,unref as g,useTemplateRef as _,withCtx as v}from"vue";const y=[`data-disabled`,`aria-orientation`,`aria-required`],b=f({name:`RadioGroupRoot`,__name:`radio-group-root`,props:{modelValue:{default:void 0},defaultValue:{},disabled:{type:Boolean,default:!1},orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!0},name:{},required:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(f,{emit:b}){let x=f,S=b,C=s(`root`),w=_(`rootElement`),T=r(()=>x.modelValue,t=>{e(t)||S(`update:modelValue`,t)},x.defaultValue),E=c(()=>t(w.value));return o({...n(x,[`disabled`,`orientation`,`dir`,`loop`,`name`,`required`]),modelValue:T}),(e,t)=>(m(),l(g(i),{"as-child":``,orientation:f.orientation,dir:f.dir,loop:f.loop},{default:v(()=>[d(`div`,{ref_key:`rootElement`,ref:w,class:p(g(C)),role:`radiogroup`,"data-disabled":f.disabled?``:void 0,"aria-orientation":f.orientation,"aria-required":f.required},[h(e.$slots,`default`,{modelValue:g(T)}),E.value&&f.name?(m(),l(g(a),{key:0,required:f.required,disabled:f.disabled,value:g(T),name:f.name},null,8,[`required`,`disabled`,`value`,`name`])):u(`v-if`,!0)],10,y)]),_:3},8,[`orientation`,`dir`,`loop`]))}});export{b as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { RadioGroupRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/radio-group/radio-group-root.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
20
|
emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
|
|
21
|
-
}>) =>
|
|
21
|
+
}>) => vue.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -24,8 +24,7 @@ interface RadioGroupRootProps<T extends AcceptableBooleanValue = AcceptableBoole
|
|
|
24
24
|
loop?: boolean;
|
|
25
25
|
}
|
|
26
26
|
type RadioGroupRootEmits<T extends AcceptableBooleanValue = AcceptableBooleanValue> = {
|
|
27
|
-
/** Event handler called when the radio group value changes */
|
|
28
|
-
'update:modelValue': [payload: NonNullable<T>];
|
|
27
|
+
/** Event handler called when the radio group value changes */'update:modelValue': [payload: NonNullable<T>];
|
|
29
28
|
};
|
|
30
29
|
interface RadioGroupItemProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
31
30
|
/** The value given as data when submitted with a `name`. */
|
|
@@ -38,8 +37,7 @@ type RadioSelectEvent = CustomEvent<{
|
|
|
38
37
|
value: NonNullable<AcceptableBooleanValue>;
|
|
39
38
|
}>;
|
|
40
39
|
type RadioGroupItemEmits = {
|
|
41
|
-
/** Event handler called when the radio item is selected */
|
|
42
|
-
select: [event: RadioSelectEvent];
|
|
40
|
+
/** Event handler called when the radio item is selected */select: [event: RadioSelectEvent];
|
|
43
41
|
};
|
|
44
42
|
interface RadioGroupControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
45
43
|
/** Id of the element */
|