@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,5 +1,5 @@
|
|
|
1
1
|
import { PopoverRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1540 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: vue1540.DefineComponent<PopoverRootProps, {}, {}, {}, {}, vue1540.ComponentOptionsMixin, vue1540.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (value: boolean) => any;
|
|
14
|
-
}, string,
|
|
14
|
+
}, string, vue1540.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, vue1540.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,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 vue1647 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: vue1647.DefineComponent<PopoverTriggerProps, {}, {}, {}, {}, vue1647.ComponentOptionsMixin, vue1647.ComponentOptionsMixin, {}, string, vue1647.PublicProps, Readonly<PopoverTriggerProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1647.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1647.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,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { PopperUiSlot } from "./types.js";
|
|
2
3
|
import "../../index.js";
|
|
3
|
-
import "vue";
|
|
4
|
+
import * as vue1420 from "vue";
|
|
4
5
|
import { ReferenceElement } from "@floating-ui/dom";
|
|
5
6
|
import "@floating-ui/utils";
|
|
6
7
|
|
|
7
8
|
//#region src/components/popper/context.d.ts
|
|
8
9
|
|
|
9
|
-
declare const
|
|
10
|
+
declare const providePopperUi: (ui: vue1420.ComputedRef<Partial<UiClass<PopperUiSlot>>>) => vue1420.ComputedRef<Partial<UiClass<PopperUiSlot>>>, usePopperUi: <S extends PopperUiSlot | undefined = undefined>(slot?: S | undefined) => S extends PopperUiSlot ? vue1420.ComputedRef<ClassValue> : vue1420.ComputedRef<Partial<UiClass<PopperUiSlot>>>;
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { providePopperUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as e}from"../../composables/use-context.js";import{
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps,
|
|
1
|
+
import { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps, PopperUi, PopperUiSlot } from "./types.js";
|
|
2
2
|
import { _default } from "./popper-anchor.vue.js";
|
|
3
3
|
import { _default as _default$1 } from "./popper-arrow.vue.js";
|
|
4
|
-
import {
|
|
4
|
+
import { providePopperUi } from "./context.js";
|
|
5
5
|
import { _default as _default$4 } from "./popper-root.vue.js";
|
|
6
6
|
import { _default as _default$3 } from "./popper-positioner.vue.js";
|
|
7
7
|
import { _default as _default$2 } from "./popper-popup.vue.js";
|
|
8
|
-
export { _default as PopperAnchor, type PopperAnchorProps, _default$1 as PopperArrow, type PopperArrowProps, _default$2 as PopperPopup, type PopperPopupProps, _default$3 as PopperPositioner, type PopperPositionerProps, _default$4 as PopperRoot, type
|
|
8
|
+
export { _default as PopperAnchor, type PopperAnchorProps, _default$1 as PopperArrow, type PopperArrowProps, _default$2 as PopperPopup, type PopperPopupProps, _default$3 as PopperPositioner, type PopperPositionerProps, _default$4 as PopperRoot, type PopperUi, type PopperUiSlot, providePopperUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{providePopperUi as e}from"./context.js";import t from"./popper-anchor.js";import n from"./popper-arrow.js";import r from"./popper-root.js";import i from"./popper-positioner.js";import a from"./popper-popup.js";export{t as PopperAnchor,n as PopperArrow,a as PopperPopup,i as PopperPositioner,r as PopperRoot,e as providePopperUi};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PopperAnchorProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1405 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: vue1405.DefineComponent<PopperAnchorProps, {}, {}, {}, {}, vue1405.ComponentOptionsMixin, vue1405.ComponentOptionsMixin, {}, string, vue1405.PublicProps, Readonly<PopperAnchorProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1405.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,
|
|
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";var 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 vue1415 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: vue1415.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue1415.ComponentOptionsMixin, vue1415.ComponentOptionsMixin, {}, string, vue1415.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1415.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,
|
|
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`];var 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 vue1410 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: vue1410.DefineComponent<PopperPopupProps, {}, {}, {}, {}, vue1410.ComponentOptionsMixin, vue1410.ComponentOptionsMixin, {}, string, vue1410.PublicProps, Readonly<PopperPopupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1410.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,
|
|
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";var 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,26 +1,29 @@
|
|
|
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 vue1399 from "vue";
|
|
5
5
|
import { CSSProperties } from "vue";
|
|
6
6
|
import * as _floating_ui_dom0 from "@floating-ui/dom";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _floating_ui_utils0 from "@floating-ui/utils";
|
|
8
8
|
|
|
9
9
|
//#region src/components/popper/popper-positioner.vue.d.ts
|
|
10
10
|
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: vue1399.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue1399.ComponentOptionsMixin, vue1399.ComponentOptionsMixin, {
|
|
15
15
|
placed: () => any;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, vue1399.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
|
|
17
17
|
onPlaced?: (() => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
-
|
|
19
|
+
dir: string;
|
|
20
|
+
style: string | false | CSSProperties | vue1399.StyleValue[] | null;
|
|
20
21
|
title: string;
|
|
21
22
|
contextmenu: string;
|
|
22
23
|
onInput: (payload: InputEvent) => void;
|
|
23
24
|
onSelect: (payload: Event) => void;
|
|
25
|
+
onFocus: (payload: FocusEvent) => void;
|
|
26
|
+
onError: (payload: Event) => void;
|
|
24
27
|
onProgress: (payload: ProgressEvent<EventTarget>) => void;
|
|
25
28
|
onFullscreenchange: (payload: Event) => void;
|
|
26
29
|
onFullscreenerror: (payload: Event) => void;
|
|
@@ -54,8 +57,6 @@ declare const __VLS_base: vue1534.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
54
57
|
onDurationchange: (payload: Event) => void;
|
|
55
58
|
onEmptied: (payload: Event) => void;
|
|
56
59
|
onEnded: (payload: Event) => void;
|
|
57
|
-
onError: (payload: Event) => void;
|
|
58
|
-
onFocus: (payload: FocusEvent) => void;
|
|
59
60
|
onFocusin: (payload: FocusEvent) => void;
|
|
60
61
|
onFocusout: (payload: FocusEvent) => void;
|
|
61
62
|
onFormdata: (payload: FormDataEvent) => void;
|
|
@@ -111,50 +112,15 @@ declare const __VLS_base: vue1534.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
111
112
|
onVolumechange: (payload: Event) => void;
|
|
112
113
|
onWaiting: (payload: Event) => void;
|
|
113
114
|
onWheel: (payload: WheelEvent) => void;
|
|
114
|
-
dir: string;
|
|
115
115
|
onDragexit: (payload: DragEvent) => void;
|
|
116
116
|
onEncrypted: (payload: MediaEncryptedEvent) => void;
|
|
117
117
|
innerHTML: string;
|
|
118
118
|
class: any;
|
|
119
|
-
|
|
120
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
121
|
-
draggable: boolean | "true" | "false";
|
|
122
|
-
enterkeyhint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
|
|
123
|
-
enterKeyHint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
|
|
124
|
-
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
119
|
+
color: string;
|
|
125
120
|
id: string;
|
|
126
|
-
inert: boolean | "true" | "false";
|
|
127
121
|
lang: string;
|
|
128
|
-
placeholder: string;
|
|
129
|
-
spellcheck: boolean | "true" | "false";
|
|
130
|
-
tabindex: string | number;
|
|
131
|
-
translate: "yes" | "no";
|
|
132
|
-
radiogroup: string;
|
|
133
122
|
role: string;
|
|
134
|
-
|
|
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: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
155
|
-
is: string;
|
|
156
|
-
exportparts: string;
|
|
157
|
-
part: string;
|
|
123
|
+
tabindex: string | number;
|
|
158
124
|
'aria-activedescendant': string;
|
|
159
125
|
'aria-atomic': boolean | "true" | "false";
|
|
160
126
|
'aria-autocomplete': "list" | "none" | "inline" | "both";
|
|
@@ -168,7 +134,7 @@ declare const __VLS_base: vue1534.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
168
134
|
'aria-describedby': string;
|
|
169
135
|
'aria-details': string;
|
|
170
136
|
'aria-disabled': boolean | "true" | "false";
|
|
171
|
-
'aria-dropeffect': "link" | "
|
|
137
|
+
'aria-dropeffect': "link" | "none" | "copy" | "execute" | "move" | "popup";
|
|
172
138
|
'aria-errormessage': string;
|
|
173
139
|
'aria-expanded': boolean | "true" | "false";
|
|
174
140
|
'aria-flowto': string;
|
|
@@ -190,7 +156,7 @@ declare const __VLS_base: vue1534.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
190
156
|
'aria-posinset': string | number;
|
|
191
157
|
'aria-pressed': (boolean | "true" | "false") | "mixed";
|
|
192
158
|
'aria-readonly': boolean | "true" | "false";
|
|
193
|
-
'aria-relevant': "
|
|
159
|
+
'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
|
|
194
160
|
'aria-required': boolean | "true" | "false";
|
|
195
161
|
'aria-roledescription': string;
|
|
196
162
|
'aria-rowcount': string | number;
|
|
@@ -203,25 +169,59 @@ declare const __VLS_base: vue1534.DefineComponent<PopperPositionerProps, {}, {},
|
|
|
203
169
|
'aria-valuemin': string | number;
|
|
204
170
|
'aria-valuenow': string | number;
|
|
205
171
|
'aria-valuetext': string;
|
|
172
|
+
accesskey: string;
|
|
173
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
174
|
+
draggable: boolean | "true" | "false";
|
|
175
|
+
enterkeyhint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
|
|
176
|
+
enterKeyHint: "done" | "next" | "search" | "enter" | "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: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
203
|
+
is: string;
|
|
204
|
+
exportparts: string;
|
|
205
|
+
part: string;
|
|
206
|
+
side: _floating_ui_utils0.Side;
|
|
207
|
+
sideOffset: number;
|
|
206
208
|
align: Align;
|
|
209
|
+
arrowPadding: number;
|
|
210
|
+
updatePositionStrategy: "optimized" | "always";
|
|
207
211
|
placement: Placement$1;
|
|
208
|
-
side: _floating_ui_utils3.Side;
|
|
209
|
-
sideOffset: number;
|
|
210
212
|
sideFlip: boolean;
|
|
211
213
|
alignOffset: number;
|
|
212
214
|
alignFlip: boolean;
|
|
213
215
|
avoidCollisions: boolean;
|
|
214
216
|
collisionBoundary: Element | null | Array<Element | null>;
|
|
215
|
-
collisionPadding:
|
|
216
|
-
arrowPadding: number;
|
|
217
|
+
collisionPadding: _floating_ui_utils0.Padding;
|
|
217
218
|
sticky: "partial" | "always";
|
|
218
219
|
hideWhenDetached: boolean;
|
|
219
220
|
positionStrategy: "absolute" | "fixed";
|
|
220
|
-
updatePositionStrategy: "optimized" | "always";
|
|
221
221
|
disableUpdateOnLayoutShift: boolean;
|
|
222
222
|
prioritizePosition: boolean;
|
|
223
223
|
reference: _floating_ui_dom0.ReferenceElement;
|
|
224
|
-
}, {}, {}, {}, string,
|
|
224
|
+
}, {}, {}, {}, string, vue1399.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,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue1394 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: vue1394.DefineComponent<{}, {}, {}, {}, {}, vue1394.ComponentOptionsMixin, vue1394.ComponentOptionsMixin, {}, string, vue1394.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1394.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,4 +1,4 @@
|
|
|
1
|
-
import { Align,
|
|
1
|
+
import { Align, Placement as Placement$1, UiClass } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
4
|
import { ComputedRef, HTMLAttributes } from "vue";
|
|
@@ -131,10 +131,7 @@ interface PopperPositionerProps extends /** @vue-ignore */HTMLAttributes {
|
|
|
131
131
|
}
|
|
132
132
|
interface PopperPopupProps extends /** @vue-ignore */HTMLAttributes {}
|
|
133
133
|
interface PopperArrowProps extends /** @vue-ignore */HTMLAttributes {}
|
|
134
|
-
type
|
|
135
|
-
type PopperUi =
|
|
136
|
-
interface PopperThemeContextParams {
|
|
137
|
-
ui: ComputedRef<PopperUi>;
|
|
138
|
-
}
|
|
134
|
+
type PopperUiSlot = 'positioner' | 'popup' | 'arrow';
|
|
135
|
+
type PopperUi = UiClass<PopperUiSlot>;
|
|
139
136
|
//#endregion
|
|
140
|
-
export { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps,
|
|
137
|
+
export { PopperAnchorProps, PopperArrowProps, PopperPopupProps, PopperPositionerProps, PopperUi, PopperUiSlot };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrimitiveProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue21 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/primitive/primitive.d.ts
|
|
5
|
-
declare const Primitive:
|
|
5
|
+
declare const Primitive: vue21.DefineSetupFnComponent<PrimitiveProps, {}, {}, PrimitiveProps & {}, vue21.PublicProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Primitive };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClassValue, UiClass } from "../../types/common.js";
|
|
2
|
+
import { RadioGroupUiSlot } from "./types.js";
|
|
2
3
|
import "../../index.js";
|
|
3
|
-
import "vue";
|
|
4
|
+
import * as vue1341 from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/radio-group/context.d.ts
|
|
6
7
|
|
|
7
|
-
declare const
|
|
8
|
+
declare const provideRadioGroupUi: (ui: vue1341.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue1341.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue1341.ComputedRef<ClassValue> : vue1341.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
|
|
8
9
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
+
export { provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e}from"../../shared/value.js";import{useContext as t}from"../../composables/use-context.js";import{computed as
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
|
-
import { RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupRootEmits, RadioGroupRootProps,
|
|
2
|
+
import { RadioGroupControlProps, RadioGroupIndicatorProps, RadioGroupItemEmits, RadioGroupItemProps, RadioGroupRootEmits, RadioGroupRootProps, RadioGroupUi, RadioGroupUiSlot, RadioSelectEvent } from "./types.js";
|
|
3
3
|
import { _default as _default$4 } from "./radio-group-root.vue.js";
|
|
4
4
|
import { _default as _default$2 } from "./radio-group-item.vue.js";
|
|
5
5
|
import { _default } from "./radio-group-control.vue.js";
|
|
6
6
|
import { _default as _default$1 } from "./radio-group-indicator.vue.js";
|
|
7
7
|
import { _default as _default$3 } from "./radio-group-label.vue.js";
|
|
8
|
-
import {
|
|
9
|
-
export { _default as RadioGroupControl, type RadioGroupControlProps, _default$1 as RadioGroupIndicator, type RadioGroupIndicatorProps, _default$2 as RadioGroupItem, type RadioGroupItemEmits, type RadioGroupItemProps, _default$3 as RadioGroupLabel, type LabelProps as RadioGroupLabelProps, _default$4 as RadioGroupRoot, type RadioGroupRootEmits, type RadioGroupRootProps, type
|
|
8
|
+
import { provideRadioGroupUi } from "./context.js";
|
|
9
|
+
export { _default as RadioGroupControl, type RadioGroupControlProps, _default$1 as RadioGroupIndicator, type RadioGroupIndicatorProps, _default$2 as RadioGroupItem, type RadioGroupItemEmits, type RadioGroupItemProps, _default$3 as RadioGroupLabel, type LabelProps as RadioGroupLabelProps, _default$4 as RadioGroupRoot, type RadioGroupRootEmits, type RadioGroupRootProps, type RadioGroupUi, type RadioGroupUiSlot, type RadioSelectEvent, provideRadioGroupUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{provideRadioGroupUi as e}from"./context.js";import t from"./radio-group-root.js";import n from"./radio-group-item.js";import r from"./radio-group-control.js";import i from"./radio-group-indicator.js";import a from"./radio-group-label.js";export{r as RadioGroupControl,i as RadioGroupIndicator,n as RadioGroupItem,a as RadioGroupLabel,t as RadioGroupRoot,e as provideRadioGroupUi};
|
|
@@ -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,
|
|
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`];var 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]||=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 vue1331 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: vue1331.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue1331.ComponentOptionsMixin, vue1331.ComponentOptionsMixin, {}, string, vue1331.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1331.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,
|
|
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";var g=l({name:`RadioGroupIndicator`,__name:`radio-group-indicator`,props:{asChild:{type:Boolean},as:{default:`span`},forceMount:{type:Boolean}},setup(l){let g=l,_=a(`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 vue1325 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: vue1325.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1325.ComponentOptionsMixin, vue1325.ComponentOptionsMixin, {}, string, vue1325.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1325.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1325.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,
|
|
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`];var v=d({name:`RadioGroupItem`,__name:`radio-group-item`,props:{value:{type:[String,Number,Boolean]},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`select`],setup(d,{emit:v}){let y=d,b=v,x=o(`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 vue1318 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: vue1318.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1318.ComponentOptionsMixin, vue1318.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: RadioSelectEvent) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1318.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: RadioSelectEvent) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1318.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,
|
|
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";var 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 vue1373 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: vue1373.DefineComponent<LabelProps, {}, {}, {}, {}, vue1373.ComponentOptionsMixin, vue1373.ComponentOptionsMixin, {}, string, vue1373.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1373.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"../visually-hidden/visually-hidden-input.js";import a from"../roving-focus/roving-focus-group.js";import{provideRadioGroupRootContext as o,
|
|
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"../visually-hidden/visually-hidden-input.js";import a from"../roving-focus/roving-focus-group.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`];var 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(a),{"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(i),{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};
|