@soybeanjs/headless 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -5
- package/README.zh-CN.md +10 -5
- package/dist/components/_icon/types.d.ts +9 -0
- package/dist/components/accordion/types.d.ts +87 -0
- package/dist/components/affix/types.d.ts +39 -0
- package/dist/components/alert/types.d.ts +78 -0
- package/dist/components/anchor/anchor-compact.js +1 -1
- package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
- package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
- package/dist/components/anchor/anchor-link.js +1 -1
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +122 -10
- package/dist/components/arrow/types.d.ts +3 -0
- package/dist/components/aspect-ratio/types.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -1
- package/dist/components/autocomplete/types.d.ts +141 -0
- package/dist/components/avatar/avatar-compact.js +1 -0
- package/dist/components/avatar/avatar-compact.vue.d.ts +20 -0
- package/dist/components/avatar/avatar-fallback.js +1 -1
- package/dist/components/avatar/avatar-image.js +1 -1
- package/dist/components/avatar/avatar-root.js +1 -1
- package/dist/components/avatar/index.d.ts +6 -5
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/types.d.ts +50 -1
- package/dist/components/backtop/backtop.vue.d.ts +10 -4
- package/dist/components/backtop/index.d.ts +2 -2
- package/dist/components/backtop/types.d.ts +19 -12
- package/dist/components/badge/badge-compact.js +1 -0
- package/dist/components/badge/badge-compact.vue.d.ts +21 -0
- package/dist/components/badge/badge-content.js +1 -1
- package/dist/components/badge/badge-root.js +1 -1
- package/dist/components/badge/index.d.ts +5 -4
- package/dist/components/badge/index.js +1 -1
- package/dist/components/badge/types.d.ts +42 -1
- package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
- package/dist/components/bottom-sheet/types.d.ts +99 -0
- package/dist/components/breadcrumb/index.d.ts +2 -2
- package/dist/components/breadcrumb/types.d.ts +103 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.vue.d.ts +2 -2
- package/dist/components/button/types.d.ts +18 -3
- package/dist/components/calendar/calendar-root.js +1 -1
- package/dist/components/calendar/types.d.ts +363 -0
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/types.d.ts +90 -0
- package/dist/components/carousel/carousel-compact.js +1 -0
- package/dist/components/carousel/carousel-compact.vue.d.ts +23 -0
- package/dist/components/carousel/carousel-container.js +1 -0
- package/dist/components/carousel/carousel-container.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-content.js +1 -1
- package/dist/components/carousel/carousel-control.js +1 -0
- package/dist/components/carousel/carousel-control.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-item.js +1 -1
- package/dist/components/carousel/carousel-navigation.js +1 -0
- package/dist/components/carousel/carousel-navigation.vue.d.ts +18 -0
- package/dist/components/carousel/carousel-next.js +1 -1
- package/dist/components/carousel/carousel-next.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-previous.js +1 -1
- package/dist/components/carousel/carousel-previous.vue.d.ts +2 -12
- package/dist/components/carousel/carousel-root.js +1 -1
- package/dist/components/carousel/carousel-root.vue.d.ts +6 -28
- package/dist/components/carousel/context.d.ts +0 -1
- package/dist/components/carousel/context.js +1 -1
- package/dist/components/carousel/hooks.js +1 -0
- package/dist/components/carousel/index.d.ts +11 -9
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/types.d.ts +146 -12
- package/dist/components/checkbox/types.d.ts +111 -0
- package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
- package/dist/components/clipboard/types.d.ts +43 -1
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/types.d.ts +18 -0
- package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
- package/dist/components/color-area/types.d.ts +60 -0
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/types.d.ts +51 -0
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-picker/types.d.ts +39 -0
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-slider/types.d.ts +60 -0
- package/dist/components/color-swatch/types.d.ts +9 -0
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/types.d.ts +27 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-content.vue.d.ts +1 -1
- package/dist/components/combobox/types.d.ts +237 -0
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +147 -0
- package/dist/components/config-provider/config-provider.js +12 -0
- package/dist/components/config-provider/types.d.ts +3 -0
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/types.d.ts +78 -0
- package/dist/components/date-field/types.d.ts +147 -0
- package/dist/components/date-picker/context.js +1 -1
- package/dist/components/date-picker/date-picker-compact.js +1 -0
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
- package/dist/components/date-picker/date-picker-content.js +1 -0
- package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
- package/dist/components/date-picker/date-picker-root.js +1 -1
- package/dist/components/date-picker/date-picker-root.vue.d.ts +3 -8
- package/dist/components/date-picker/index.d.ts +8 -5
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-picker/types.d.ts +236 -10
- package/dist/components/date-range-field/types.d.ts +192 -0
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +3 -3
- package/dist/components/date-range-picker/types.d.ts +189 -0
- package/dist/components/dialog/dialog-compact.js +1 -1
- package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/types.d.ts +196 -2
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/types.d.ts +84 -0
- package/dist/components/editable/types.d.ts +123 -0
- package/dist/components/empty/empty-compact.js +1 -0
- package/dist/components/empty/empty-compact.vue.d.ts +15 -0
- package/dist/components/empty/empty-content.js +1 -1
- package/dist/components/empty/empty-description.js +1 -1
- package/dist/components/empty/empty-header.js +1 -1
- package/dist/components/empty/empty-media.js +1 -1
- package/dist/components/empty/empty-root.js +1 -1
- package/dist/components/empty/empty-title.js +1 -1
- package/dist/components/empty/index.d.ts +9 -8
- package/dist/components/empty/index.js +1 -1
- package/dist/components/empty/types.d.ts +88 -1
- package/dist/components/form/context.d.ts +3 -2
- package/dist/components/form/context.js +1 -1
- package/dist/components/form/core/types.d.ts +399 -16
- package/dist/components/form/core/use-form.js +1 -1
- package/dist/components/form/form-compact.js +1 -0
- package/dist/components/form/form-compact.vue.d.ts +21 -0
- package/dist/components/form/form-control.js +1 -1
- package/dist/components/form/form-description.js +1 -1
- package/dist/components/form/form-error.js +1 -1
- package/dist/components/form/form-field-array-compact.js +1 -0
- package/dist/components/form/form-field-array-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field-base-compact.js +1 -0
- package/dist/components/form/form-field-base-compact.vue.d.ts +26 -0
- package/dist/components/form/form-field-compact.js +1 -0
- package/dist/components/form/form-field-compact.vue.d.ts +16 -0
- package/dist/components/form/form-field.js +1 -1
- package/dist/components/form/form-label.js +1 -1
- package/dist/components/form/index.d.ts +14 -10
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/shared.js +1 -0
- package/dist/components/form/types.d.ts +149 -3
- package/dist/components/form/use-form.d.ts +8 -0
- package/dist/components/form/use-form.js +1 -0
- package/dist/components/hover-card/hover-card-compact.vue.d.ts +1 -1
- package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +57 -0
- package/dist/components/input/index.d.ts +6 -4
- package/dist/components/input/index.js +1 -1
- package/dist/components/input/input-clear.js +1 -0
- package/dist/components/input/input-clear.vue.d.ts +22 -0
- package/dist/components/input/input-compact.js +1 -0
- package/dist/components/input/input-compact.vue.d.ts +21 -0
- package/dist/components/input/input-control.js +1 -1
- package/dist/components/input/input-root.js +1 -1
- package/dist/components/input/types.d.ts +94 -2
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-number/types.d.ts +30 -0
- package/dist/components/input-otp/index.d.ts +1 -2
- package/dist/components/input-otp/index.js +1 -1
- package/dist/components/input-otp/input-otp-root.vue.d.ts +1 -1
- package/dist/components/input-otp/types.d.ts +186 -0
- package/dist/components/kbd/types.d.ts +6 -0
- package/dist/components/label/types.d.ts +3 -0
- package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-compact.vue.d.ts +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +2 -2
- package/dist/components/layout/types.d.ts +124 -10
- package/dist/components/link/types.d.ts +12 -0
- package/dist/components/list/types.d.ts +21 -0
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +66 -0
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.js +1 -1
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/types.d.ts +266 -2
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
- package/dist/components/menubar/types.d.ts +72 -0
- package/dist/components/month-picker/month-picker-root.vue.d.ts +1 -1
- package/dist/components/month-picker/types.d.ts +141 -0
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +3 -3
- package/dist/components/month-range-picker/types.d.ts +165 -0
- package/dist/components/navigation-menu/types.d.ts +96 -9
- package/dist/components/page-tabs/types.d.ts +24 -0
- package/dist/components/pagination/types.d.ts +96 -0
- package/dist/components/popover/context.d.ts +9 -0
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +6 -6
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-compact.js +1 -1
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +0 -2
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/types.d.ts +94 -6
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/popper/types.d.ts +21 -0
- package/dist/components/portal/types.d.ts +3 -0
- package/dist/components/primitive/types.d.ts +6 -0
- package/dist/components/progress/types.d.ts +81 -0
- package/dist/components/radio-group/types.d.ts +66 -0
- package/dist/components/range-calendar/types.d.ts +330 -0
- package/dist/components/roving-focus/types.d.ts +18 -0
- package/dist/components/scroll-area/types.d.ts +33 -0
- package/dist/components/segment/types.d.ts +36 -0
- package/dist/components/select/select-content.vue.d.ts +1 -1
- package/dist/components/select/types.d.ts +240 -0
- package/dist/components/separator/types.d.ts +12 -0
- package/dist/components/skeleton/types.d.ts +3 -0
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/slider/types.d.ts +90 -0
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/types.d.ts +114 -0
- package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +96 -0
- package/dist/components/switch/types.d.ts +21 -0
- package/dist/components/table/types.d.ts +819 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +75 -0
- package/dist/components/tag/types.d.ts +12 -0
- package/dist/components/tags-input/types.d.ts +63 -0
- package/dist/components/textarea/types.d.ts +27 -0
- package/dist/components/time-field/types.d.ts +138 -0
- package/dist/components/time-picker/time-picker-root.vue.d.ts +1 -1
- package/dist/components/time-picker/types.d.ts +156 -0
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/types.d.ts +192 -0
- package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
- package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +3 -3
- package/dist/components/time-range-picker/types.d.ts +201 -0
- package/dist/components/toast/toaster.vue.d.ts +2 -2
- package/dist/components/toast/types.d.ts +224 -4
- package/dist/components/toggle/types.d.ts +9 -0
- package/dist/components/toggle-group/types.d.ts +15 -0
- package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
- package/dist/components/toolbar/types.d.ts +48 -0
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +27 -0
- package/dist/components/tree/types.d.ts +75 -0
- package/dist/components/tree-menu/types.d.ts +60 -0
- package/dist/components/virtualizer/types.d.ts +33 -0
- package/dist/components/visually-hidden/types.d.ts +30 -0
- package/dist/components/year-picker/types.d.ts +144 -0
- package/dist/components/year-picker/year-picker-root.vue.d.ts +1 -1
- package/dist/components/year-range-picker/types.d.ts +168 -0
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +3 -3
- package/dist/composables/use-collection.js +1 -1
- package/dist/constants/components.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.js +1 -1
- package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +440 -428
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +903 -872
- package/dist/namespaced/index.js +1 -1
- package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
- package/dist/resolver/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/string.d.ts +1 -34
- package/dist/shared/string.js +1 -1
- package/dist/types/common.d.ts +10 -2
- package/dist/types/dom.d.ts +3 -1
- package/dist/types/event.d.ts +10 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.js +0 -0
- package/dist/types/vue.d.ts +4 -1
- package/package.json +9 -2
- package/dist/components/date-picker/date-picker-popup.js +0 -1
- package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
- package/dist/components/date-picker/date-picker-trigger.js +0 -1
- package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
- package/dist/components/form/core/use-form.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
- /package/dist/{components/input-otp → constants}/regexp.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useCarouselRootContext as e,useCarouselUi as t}from"./context.js";import{computed as n,createElementBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,useAttrs as l,useId as u,watch as d}from"vue";const f=[`id`],p=i({name:`CarouselContent`,__name:`carousel-content`,setup(i){let p=l(),m=t(`content`),{setCarouselRef:h,contentId:g,setContentId:_}=e(`CarouselContent`),v=`soybean-carousel-content-${u()}`,y=n(()=>p.id||g.value||v);return d(y,e=>{_(e)},{immediate:!0}),(e,t)=>(o(),r(`div`,{id:y.value,ref:c(h),class:a(c(m)),"data-soybean-carousel-content":``},[s(e.$slots,`default`)],10,f))}});export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCarouselUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`CarouselControl`,__name:`carousel-control`,setup(n){let s=e(`control`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),"data-soybean-carousel-control":``},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CarouselControlProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/carousel/carousel-control.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselControlProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselControlProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useCarouselUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`CarouselItem`,__name:`carousel-item`,setup(n){let s=e(`item`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),"data-soybean-carousel-item":``,role:`group`,"aria-roledescription":`slide`},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCarouselUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`CarouselNavigation`,__name:`carousel-navigation`,setup(n){let s=e(`navigation`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),"data-soybean-carousel-navigation":``},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CarouselNavigationProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/carousel/carousel-navigation.vue.d.ts
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselNavigationProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNavigationProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import{useCarouselRootContext as r,useCarouselUi as i}from"./context.js";import{computed as a,createBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,unref as p,useAttrs as m,withCtx as h}from"vue";const g=l({name:`CarouselNext`,__name:`carousel-next`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(l){let g=l,_=m(),v=e(g,[`disabled`]),y=i(`next`),{canScrollNext:b,contentId:x,scrollNext:S}=r(`CarouselNext`),C=a(()=>g.disabled||!b.value),w=a(()=>_[`aria-label`]??`Next slide`);return(e,r)=>(d(),o(n,u(p(v),{class:p(y),disabled:C.value,"aria-controls":p(x)||void 0,"aria-label":w.value,"data-soybean-carousel-next":``,onClick:p(S)}),{default:h(()=>[f(e.$slots,`default`,{},()=>[c(t,{icon:`lucide:arrow-right`,"aria-hidden":!0}),r[0]||(r[0]=s(`span`,{class:`soybean-headless-sr-only`},`Next slide`,-1))])]),_:3},16,[`class`,`disabled`,`aria-controls`,`aria-label`,`onClick`]))}});export{g as default};
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
-
import { AsTag } from "../primitive/types.js";
|
|
3
|
-
import { ButtonType } from "../button/types.js";
|
|
4
1
|
import { CarouselNextProps } from "./types.js";
|
|
5
2
|
import * as _$vue from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/carousel/carousel-next.vue.d.ts
|
|
8
|
-
declare var __VLS_10: {
|
|
9
|
-
dir: Direction;
|
|
10
|
-
orientation: DataOrientation;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare var __VLS_10: {};
|
|
13
6
|
type __VLS_Slots = {} & {
|
|
14
7
|
default?: (props: typeof __VLS_10) => any;
|
|
15
8
|
};
|
|
16
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNextProps> & Readonly<{}>, {
|
|
17
|
-
type: ButtonType;
|
|
18
|
-
as: AsTag | _$vue.Component;
|
|
19
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNextProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
11
|
declare const _default: typeof __VLS_export;
|
|
22
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../button/button.js";import"../button/index.js";import{useCarouselRootContext as
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import"../button/index.js";import{useCarouselRootContext as r,useCarouselUi as i}from"./context.js";import{computed as a,createBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,unref as p,useAttrs as m,withCtx as h}from"vue";const g=l({name:`CarouselPrevious`,__name:`carousel-previous`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(l){let g=l,_=m(),v=e(g,[`disabled`]),y=i(`previous`),{canScrollPrev:b,contentId:x,scrollPrev:S}=r(`CarouselPrevious`),C=a(()=>g.disabled||!b.value),w=a(()=>_[`aria-label`]??`Previous slide`);return(e,r)=>(d(),o(p(n),u(p(v),{class:p(y),disabled:C.value,"aria-controls":p(x)||void 0,"aria-label":w.value,"data-soybean-carousel-previous":``,onClick:p(S)}),{default:h(()=>[f(e.$slots,`default`,{},()=>[c(t,{icon:`lucide:arrow-left`,"aria-hidden":!0}),r[0]||(r[0]=s(`span`,{class:`soybean-headless-sr-only`},`Previous slide`,-1))])]),_:3},16,[`class`,`disabled`,`aria-controls`,`aria-label`,`onClick`]))}});export{g as default};
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
-
import { AsTag } from "../primitive/types.js";
|
|
3
|
-
import { ButtonType } from "../button/types.js";
|
|
4
1
|
import { CarouselPreviousProps } from "./types.js";
|
|
5
2
|
import * as _$vue from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/carousel/carousel-previous.vue.d.ts
|
|
8
|
-
declare var __VLS_10: {
|
|
9
|
-
dir: Direction;
|
|
10
|
-
orientation: DataOrientation;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare var __VLS_10: {};
|
|
13
6
|
type __VLS_Slots = {} & {
|
|
14
7
|
default?: (props: typeof __VLS_10) => any;
|
|
15
8
|
};
|
|
16
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselPreviousProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselPreviousProps> & Readonly<{}>, {
|
|
17
|
-
type: ButtonType;
|
|
18
|
-
as: AsTag | _$vue.Component;
|
|
19
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselPreviousProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselPreviousProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
11
|
declare const _default: typeof __VLS_export;
|
|
22
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useDirection as t}from"../config-provider/context.js";import{provideCarouselRootContext as n,useCarouselUi as r}from"./context.js";import{useEmblaCarousel as i}from"./hooks.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,useAttrs as m,watch as h,watchEffect as g}from"vue";const _=[`dir`,`data-orientation`,`aria-label`,`tabindex`],v=s({name:`CarouselRoot`,__name:`carousel-root`,props:{dir:{},orientation:{default:`horizontal`},options:{},plugins:{}},emits:[`init`],setup(s,{expose:v,emit:y}){let b=s,x=y,S=m(),C=r(`root`),[w,T]=e(),E=f({}),D=f([]),O=i(w,E,D),k=t(()=>b.dir),A=a(()=>S[`aria-labelledby`]?void 0:S[`aria-label`]??`Carousel`),j=a(()=>b.tabindex??0),M=f(!1),N=f(!1),P=f(0),F=f([]),I=f(0);function L(e){M.value=e?.canScrollNext()??!1,N.value=e?.canScrollPrev()??!1,P.value=e?.selectedScrollSnap()??0,F.value=e?.scrollSnapList()??[],I.value=R()}function R(){return F.value.length<=1?0:P.value/(F.value.length-1)*100}function z(){O.value?.scrollNext()}function B(){O.value?.scrollPrev()}function V(e,t){O.value?.scrollTo(e,t)}function H(e){if(e.target!==e.currentTarget)return;let t=b.orientation===`vertical`?`ArrowUp`:k.value===`rtl`?`ArrowRight`:`ArrowLeft`,n=b.orientation===`vertical`?`ArrowDown`:k.value===`rtl`?`ArrowLeft`:`ArrowRight`;if(e.key===t){e.preventDefault(),B();return}e.key===n&&(e.preventDefault(),z())}return g(()=>{E.value={...b.options,axis:b.orientation===`horizontal`?`x`:`y`,direction:k.value}}),g(()=>{D.value=b.plugins??[]}),h(O,e=>{if(L(e),!e)return;let t=e=>{L(e)},n=e=>{L(e)};e.on(`select`,t),e.on(`reInit`,n),x(`init`,e),l(()=>{e.off(`select`,t),e.off(`reInit`,n)})},{immediate:!0}),n({carousel:O,canScrollNext:M,canScrollPrev:N,selectedIndex:P,scrollSnaps:F,progress:I,setCarouselRef:T,scrollNext:z,scrollPrev:B,scrollTo:V}),v({carousel:O,scrollNext:z,scrollPrev:B,scrollTo:V}),(e,t)=>(u(),o(`div`,{class:c(p(C)),dir:p(k),"data-orientation":s.orientation,"aria-label":A.value,tabindex:j.value,"data-soybean-carousel-root":``,role:`region`,"aria-roledescription":`carousel`,onKeydown:H},[d(e.$slots,`default`,{carousel:p(O),canScrollNext:M.value,canScrollPrev:N.value,selectedIndex:P.value,scrollSnaps:F.value,progress:I.value,scrollNext:z,scrollPrev:B,scrollTo:V})],42,_))}});export{v as default};
|
|
@@ -1,43 +1,21 @@
|
|
|
1
|
-
import { DataOrientation
|
|
2
|
-
import { EmblaCarouselType } from "
|
|
3
|
-
import { CarouselRootProps } from "./types.js";
|
|
1
|
+
import { DataOrientation } from "../../types/common.js";
|
|
2
|
+
import { CarouselRootProps, CarouselRootSlots, EmblaCarouselType } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
6
5
|
//#region src/components/carousel/carousel-root.vue.d.ts
|
|
6
|
+
type __VLS_Slots = CarouselRootSlots;
|
|
7
7
|
declare function scrollNext(): void;
|
|
8
8
|
declare function scrollPrev(): void;
|
|
9
9
|
declare function scrollTo(index: number, jump?: boolean): void;
|
|
10
|
-
declare var __VLS_1: {
|
|
11
|
-
carouselApi: EmblaCarouselType | undefined;
|
|
12
|
-
canScrollNext: boolean;
|
|
13
|
-
canScrollPrev: boolean;
|
|
14
|
-
selectedIndex: number;
|
|
15
|
-
scrollSnaps: number[];
|
|
16
|
-
scrollNext: typeof scrollNext;
|
|
17
|
-
scrollPrev: typeof scrollPrev;
|
|
18
|
-
scrollTo: typeof scrollTo;
|
|
19
|
-
orientation: DataOrientation;
|
|
20
|
-
dir: Direction;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_Slots = {} & {
|
|
23
|
-
default?: (props: typeof __VLS_1) => any;
|
|
24
|
-
};
|
|
25
10
|
declare const __VLS_base: _$vue.DefineComponent<CarouselRootProps, {
|
|
26
|
-
|
|
27
|
-
orientation: _$vue.ComputedRef<DataOrientation>;
|
|
28
|
-
carouselApi: _$vue.Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
29
|
-
carouselRef: _$vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
30
|
-
canScrollNext: _$vue.ShallowRef<boolean, boolean>;
|
|
31
|
-
canScrollPrev: _$vue.ShallowRef<boolean, boolean>;
|
|
32
|
-
selectedIndex: _$vue.ShallowRef<number, number>;
|
|
33
|
-
scrollSnaps: _$vue.ShallowRef<number[], number[]>;
|
|
11
|
+
carousel: _$vue.ShallowRef<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
34
12
|
scrollNext: typeof scrollNext;
|
|
35
13
|
scrollPrev: typeof scrollPrev;
|
|
36
14
|
scrollTo: typeof scrollTo;
|
|
37
15
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
38
|
-
|
|
16
|
+
init: (carousel: EmblaCarouselType) => any;
|
|
39
17
|
}, string, _$vue.PublicProps, Readonly<CarouselRootProps> & Readonly<{
|
|
40
|
-
|
|
18
|
+
onInit?: ((carousel: EmblaCarouselType) => any) | undefined;
|
|
41
19
|
}>, {
|
|
42
20
|
orientation: DataOrientation;
|
|
43
21
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { CarouselUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/carousel/context.d.ts
|
|
7
6
|
declare const provideCarouselUi: (ui: _$vue.ComputedRef<Partial<UiClass<CarouselUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CarouselUiSlot>>>, useCarouselUi: UseUiConsumer<CarouselUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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(`CarouselRoot`,e=>{let t=n(``),r=e=>{t.value=e};return{...e,contentId:t,setContentId:r}}),[a,o]=t(`CarouselUi`);export{r as provideCarouselRootContext,a as provideCarouselUi,i as useCarouselRootContext,o as useCarouselUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{onBeforeUnmount as e,shallowRef as t,toRef as n,unref as r,watch as i}from"vue";import a from"embla-carousel";import{areOptionsEqual as o,arePluginsEqual as s}from"embla-carousel-reactive-utils";function c(c,l={},u=[]){let d=n(()=>r(l)),f=n(()=>r(u)),p=d.value,m=f.value,h=t();function g(){h.value&&h.value.reInit(p,m)}function _(){h.value&&(h.value.destroy(),h.value=void 0)}return i(c,e=>{_(),e&&(h.value=a(e,p,m))},{flush:`post`,immediate:!0}),i(d,e=>{o(p,e)||(p=e,g())}),i(f,e=>{s(m,e)||(m=e,g())}),e(()=>{_()}),h}export{c as useEmblaCarousel};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { EmblaPluginType } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _default } from "./carousel-content.vue.js";
|
|
5
|
-
import { _default as _default$1 } from "./carousel-
|
|
6
|
-
import { _default as _default$
|
|
7
|
-
import { _default as _default$3 } from "./carousel-
|
|
8
|
-
import { _default as _default$
|
|
1
|
+
import { CarouselCompactEmits, CarouselCompactProps, CarouselCompactSlots, CarouselContainerProps, CarouselContentProps, CarouselControlProps, CarouselItemProps, CarouselNavigationProps, CarouselNextProps, CarouselPreviousProps, CarouselRootEmits, CarouselRootProps, CarouselRootSlotProps, CarouselRootSlots, CarouselUi, CarouselUiSlot, EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "./types.js";
|
|
2
|
+
import { _default } from "./carousel-compact.vue.js";
|
|
3
|
+
import { _default as _default$8 } from "./carousel-root.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./carousel-content.vue.js";
|
|
5
|
+
import { _default as _default$1 } from "./carousel-container.vue.js";
|
|
6
|
+
import { _default as _default$4 } from "./carousel-item.vue.js";
|
|
7
|
+
import { _default as _default$3 } from "./carousel-control.vue.js";
|
|
8
|
+
import { _default as _default$5 } from "./carousel-navigation.vue.js";
|
|
9
|
+
import { _default as _default$6 } from "./carousel-next.vue.js";
|
|
10
|
+
import { _default as _default$7 } from "./carousel-previous.vue.js";
|
|
9
11
|
import { provideCarouselUi } from "./context.js";
|
|
10
|
-
export { type
|
|
12
|
+
export { _default as CarouselCompact, type CarouselCompactEmits, type CarouselCompactProps, type CarouselCompactSlots, _default$1 as CarouselContainer, type CarouselContainerProps, _default$2 as CarouselContent, type CarouselContentProps, _default$3 as CarouselControl, type CarouselControlProps, _default$4 as CarouselItem, type CarouselItemProps, _default$5 as CarouselNavigation, type CarouselNavigationProps, _default$6 as CarouselNext, type CarouselNextProps, _default$7 as CarouselPrevious, type CarouselPreviousProps, _default$8 as CarouselRoot, type CarouselRootEmits, type CarouselRootProps, type CarouselRootSlotProps, type CarouselRootSlots, type CarouselUi, type CarouselUiSlot, type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType, provideCarouselUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideCarouselUi as e}from"./context.js";import t from"./carousel-
|
|
1
|
+
import{provideCarouselUi as e}from"./context.js";import t from"./carousel-root.js";import n from"./carousel-content.js";import r from"./carousel-container.js";import i from"./carousel-item.js";import a from"./carousel-control.js";import o from"./carousel-navigation.js";import s from"./carousel-previous.js";import c from"./carousel-next.js";import l from"./carousel-compact.js";export{l as CarouselCompact,r as CarouselContainer,n as CarouselContent,a as CarouselControl,i as CarouselItem,o as CarouselNavigation,c as CarouselNext,s as CarouselPrevious,t as CarouselRoot,e as provideCarouselUi};
|
|
@@ -1,26 +1,160 @@
|
|
|
1
|
-
import { DataOrientation, Direction, UiClass } from "../../types/common.js";
|
|
1
|
+
import { DataOrientation, DefinedValue, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { ButtonProps } from "../button/types.js";
|
|
3
|
-
import {
|
|
4
|
-
import { EmblaOptionsType } from "
|
|
5
|
-
import { ComputedRef, HTMLAttributes, Ref, ShallowRef } from "vue";
|
|
6
|
-
import { EmblaCarouselVueType } from "embla-carousel-vue";
|
|
3
|
+
import { HTMLAttributes, ShallowRef } from "vue";
|
|
4
|
+
import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "embla-carousel";
|
|
7
5
|
|
|
8
6
|
//#region src/components/carousel/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Properties for the CarouselRoot component.
|
|
9
|
+
*/
|
|
9
10
|
interface CarouselRootProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Reading direction of the component.
|
|
13
|
+
*/
|
|
13
14
|
dir?: Direction;
|
|
15
|
+
/**
|
|
16
|
+
* Orientation of the component.
|
|
17
|
+
*/
|
|
18
|
+
orientation?: DataOrientation;
|
|
19
|
+
/**
|
|
20
|
+
* Options.
|
|
21
|
+
*/
|
|
22
|
+
options?: EmblaOptionsType;
|
|
23
|
+
/**
|
|
24
|
+
* Plugins.
|
|
25
|
+
*/
|
|
26
|
+
plugins?: EmblaPluginType[];
|
|
14
27
|
}
|
|
15
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Events for the CarouselRoot component.
|
|
30
|
+
*/
|
|
16
31
|
type CarouselRootEmits = {
|
|
17
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Emitted when init occurs.
|
|
34
|
+
*/
|
|
35
|
+
init: [carousel: EmblaCarouselType];
|
|
18
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* Slot properties for the CarouselRoot component.
|
|
39
|
+
*/
|
|
40
|
+
interface CarouselRootSlotProps {
|
|
41
|
+
carousel: EmblaCarouselType | undefined;
|
|
42
|
+
canScrollNext: boolean;
|
|
43
|
+
canScrollPrev: boolean;
|
|
44
|
+
selectedIndex: number;
|
|
45
|
+
scrollSnaps: number[];
|
|
46
|
+
progress: number;
|
|
47
|
+
scrollNext: () => void;
|
|
48
|
+
scrollPrev: () => void;
|
|
49
|
+
scrollTo: (index: number, jump?: boolean) => void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Slots for the CarouselRoot component.
|
|
53
|
+
*/
|
|
54
|
+
type CarouselRootSlots = {
|
|
55
|
+
default?: (props: CarouselRootSlotProps) => any;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Properties for the CarouselContent component.
|
|
59
|
+
*/
|
|
19
60
|
interface CarouselContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
61
|
+
/**
|
|
62
|
+
* Properties for the CarouselContainer component.
|
|
63
|
+
*/
|
|
64
|
+
interface CarouselContainerProps extends /** @vue-ignore */HTMLAttributes {}
|
|
65
|
+
/**
|
|
66
|
+
* Properties for the CarouselItem component.
|
|
67
|
+
*/
|
|
20
68
|
interface CarouselItemProps extends /** @vue-ignore */HTMLAttributes {}
|
|
69
|
+
/**
|
|
70
|
+
* Properties for the CarouselControl component.
|
|
71
|
+
*/
|
|
72
|
+
interface CarouselControlProps extends /** @vue-ignore */HTMLAttributes {}
|
|
73
|
+
/**
|
|
74
|
+
* Properties for the CarouselNavigation component.
|
|
75
|
+
*/
|
|
76
|
+
interface CarouselNavigationProps extends /** @vue-ignore */HTMLAttributes {}
|
|
77
|
+
/**
|
|
78
|
+
* Properties for the CarouselPrevious component.
|
|
79
|
+
*/
|
|
21
80
|
interface CarouselPreviousProps extends ButtonProps {}
|
|
81
|
+
/**
|
|
82
|
+
* Properties for the CarouselNext component.
|
|
83
|
+
*/
|
|
22
84
|
interface CarouselNextProps extends ButtonProps {}
|
|
23
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Properties for the CarouselCompact component.
|
|
87
|
+
*/
|
|
88
|
+
interface CarouselCompactProps<T extends DefinedValue = DefinedValue> extends CarouselRootProps {
|
|
89
|
+
/**
|
|
90
|
+
* Slides to be rendered in the carousel.
|
|
91
|
+
*/
|
|
92
|
+
slides: T[];
|
|
93
|
+
/**
|
|
94
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
95
|
+
*/
|
|
96
|
+
contentProps?: CarouselContentProps;
|
|
97
|
+
/**
|
|
98
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
99
|
+
*/
|
|
100
|
+
containerProps?: CarouselContainerProps;
|
|
101
|
+
/**
|
|
102
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
103
|
+
*/
|
|
104
|
+
itemProps?: CarouselItemProps;
|
|
105
|
+
/**
|
|
106
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
107
|
+
*/
|
|
108
|
+
controlProps?: CarouselControlProps;
|
|
109
|
+
/**
|
|
110
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
111
|
+
*/
|
|
112
|
+
navigationProps?: CarouselNavigationProps;
|
|
113
|
+
/**
|
|
114
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
115
|
+
*/
|
|
116
|
+
previousProps?: CarouselPreviousProps;
|
|
117
|
+
/**
|
|
118
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
119
|
+
*/
|
|
120
|
+
nextProps?: CarouselNextProps;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Events for the CarouselCompact component.
|
|
124
|
+
*/
|
|
125
|
+
type CarouselCompactEmits = CarouselRootEmits;
|
|
126
|
+
/**
|
|
127
|
+
* Slots for the CarouselCompact component.
|
|
128
|
+
*/
|
|
129
|
+
type CarouselCompactSlots<T extends DefinedValue = DefinedValue> = {
|
|
130
|
+
/**
|
|
131
|
+
* Default slot for the carousel component, which can be used to render custom content in the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
132
|
+
*/
|
|
133
|
+
item?: (props: CarouselRootSlotProps & {
|
|
134
|
+
slide: T;
|
|
135
|
+
index: number;
|
|
136
|
+
selected: boolean;
|
|
137
|
+
}) => any;
|
|
138
|
+
/**
|
|
139
|
+
* Control slot for the carousel component, which can be used to render custom controls for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
140
|
+
*/
|
|
141
|
+
control?: (props: CarouselRootSlotProps) => any;
|
|
142
|
+
/**
|
|
143
|
+
* Navigation slot for the carousel component, which can be used to render custom navigation for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
144
|
+
*/
|
|
145
|
+
previous?: (props: CarouselRootSlotProps) => any;
|
|
146
|
+
/**
|
|
147
|
+
* Next slot for the carousel component, which can be used to render custom next controls for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
148
|
+
*/
|
|
149
|
+
next?: (props: CarouselRootSlotProps) => any;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Available UI slots for the Carousel component.
|
|
153
|
+
*/
|
|
154
|
+
type CarouselUiSlot = 'root' | 'content' | 'container' | 'item' | 'control' | 'navigation' | 'previous' | 'next';
|
|
155
|
+
/**
|
|
156
|
+
* UI class overrides for the Carousel component.
|
|
157
|
+
*/
|
|
24
158
|
type CarouselUi = UiClass<CarouselUiSlot>;
|
|
25
159
|
//#endregion
|
|
26
|
-
export {
|
|
160
|
+
export { CarouselCompactEmits, CarouselCompactProps, CarouselCompactSlots, CarouselContainerProps, CarouselContentProps, CarouselControlProps, CarouselItemProps, CarouselNavigationProps, CarouselNextProps, CarouselPreviousProps, CarouselRootEmits, CarouselRootProps, CarouselRootSlotProps, CarouselRootSlots, CarouselUi, CarouselUiSlot, type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType };
|
|
@@ -7,7 +7,13 @@ import { RovingFocusGroupProps } from "../roving-focus/types.js";
|
|
|
7
7
|
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
8
8
|
|
|
9
9
|
//#region src/components/checkbox/types.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Properties for the CheckboxRoot component.
|
|
12
|
+
*/
|
|
10
13
|
interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
14
|
+
/**
|
|
15
|
+
* Id.
|
|
16
|
+
*/
|
|
11
17
|
id?: string;
|
|
12
18
|
/** The controlled value of the checkbox. Can be bound with v-model. */
|
|
13
19
|
modelValue?: CheckedState | null;
|
|
@@ -26,23 +32,56 @@ interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTML
|
|
|
26
32
|
*/
|
|
27
33
|
disabled?: boolean;
|
|
28
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Events for the CheckboxRoot component.
|
|
37
|
+
*/
|
|
29
38
|
type CheckboxRootEmits = {
|
|
30
39
|
/** Event handler called when the value of the checkbox changes. */'update:modelValue': [value: CheckedState | null];
|
|
31
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Properties for the CheckboxControl component.
|
|
43
|
+
*/
|
|
32
44
|
interface CheckboxControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
33
45
|
/** Id of the element */
|
|
34
46
|
id?: string;
|
|
35
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Properties for the CheckboxIndicator component.
|
|
50
|
+
*/
|
|
36
51
|
interface CheckboxIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
52
|
+
/**
|
|
53
|
+
* Option data for the CheckboxGroup component.
|
|
54
|
+
*/
|
|
37
55
|
type CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> = {
|
|
56
|
+
/**
|
|
57
|
+
* Value associated with the current item.
|
|
58
|
+
*/
|
|
38
59
|
value: T;
|
|
60
|
+
/**
|
|
61
|
+
* Label text rendered by the component.
|
|
62
|
+
*/
|
|
39
63
|
label: string;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the component is disabled.
|
|
66
|
+
*/
|
|
40
67
|
disabled?: boolean;
|
|
41
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Option data for the CheckboxCardGroup component.
|
|
71
|
+
*/
|
|
42
72
|
type CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> = CheckboxGroupOptionData<T> & {
|
|
73
|
+
/**
|
|
74
|
+
* Icon rendered by the component.
|
|
75
|
+
*/
|
|
43
76
|
icon?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Description text rendered by the component.
|
|
79
|
+
*/
|
|
44
80
|
description?: string;
|
|
45
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Properties for the CheckboxGroupRoot component.
|
|
84
|
+
*/
|
|
46
85
|
interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus' | 'as' | 'asChild'>, FormFieldCommonProps {
|
|
47
86
|
/** The controlled value of the checkbox. Can be bound with v-model. */
|
|
48
87
|
modelValue?: T[];
|
|
@@ -61,34 +100,106 @@ interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends
|
|
|
61
100
|
*/
|
|
62
101
|
disabled?: boolean;
|
|
63
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Events for the CheckboxGroupRoot component.
|
|
105
|
+
*/
|
|
64
106
|
type CheckboxGroupRootEmits<T extends DefinedValue = DefinedValue> = {
|
|
65
107
|
/** Event handler called when the value of the checkbox group changes. */'update:modelValue': [value: T[]];
|
|
66
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* Properties for the CheckboxCompact component.
|
|
111
|
+
*/
|
|
67
112
|
interface CheckboxCompactProps extends CheckboxRootProps {
|
|
113
|
+
/**
|
|
114
|
+
* Label text rendered by the component.
|
|
115
|
+
*/
|
|
68
116
|
label?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Properties forwarded to the control element.
|
|
119
|
+
*/
|
|
69
120
|
controlProps?: CheckboxControlProps;
|
|
121
|
+
/**
|
|
122
|
+
* Properties forwarded to the indicator element.
|
|
123
|
+
*/
|
|
70
124
|
indicatorProps?: CheckboxIndicatorProps;
|
|
125
|
+
/**
|
|
126
|
+
* Properties forwarded to the label element.
|
|
127
|
+
*/
|
|
71
128
|
labelProps?: LabelProps;
|
|
72
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Events for the CheckboxCompact component.
|
|
132
|
+
*/
|
|
73
133
|
type CheckboxCompactEmits = CheckboxRootEmits;
|
|
134
|
+
/**
|
|
135
|
+
* Properties for the CheckboxCardCompact component.
|
|
136
|
+
*/
|
|
74
137
|
interface CheckboxCardCompactProps extends CheckboxCompactProps {
|
|
138
|
+
/**
|
|
139
|
+
* Icon rendered by the component.
|
|
140
|
+
*/
|
|
75
141
|
icon?: IconValue;
|
|
142
|
+
/**
|
|
143
|
+
* Description text rendered by the component.
|
|
144
|
+
*/
|
|
76
145
|
description?: string;
|
|
77
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Events for the CheckboxCardCompact component.
|
|
149
|
+
*/
|
|
78
150
|
type CheckboxCardCompactEmits = CheckboxCompactEmits;
|
|
151
|
+
/**
|
|
152
|
+
* Properties for the CheckboxGroupCompact component.
|
|
153
|
+
*/
|
|
79
154
|
interface CheckboxGroupCompactProps<T extends CheckboxGroupOptionData = CheckboxGroupOptionData> extends CheckboxGroupRootProps<T['value']> {
|
|
155
|
+
/**
|
|
156
|
+
* Items rendered by the component.
|
|
157
|
+
*/
|
|
80
158
|
items: T[];
|
|
159
|
+
/**
|
|
160
|
+
* Properties forwarded to the root element.
|
|
161
|
+
*/
|
|
81
162
|
rootProps?: CheckboxRootProps;
|
|
163
|
+
/**
|
|
164
|
+
* Properties forwarded to the control element.
|
|
165
|
+
*/
|
|
82
166
|
controlProps?: CheckboxControlProps;
|
|
167
|
+
/**
|
|
168
|
+
* Properties forwarded to the indicator element.
|
|
169
|
+
*/
|
|
83
170
|
indicatorProps?: CheckboxIndicatorProps;
|
|
171
|
+
/**
|
|
172
|
+
* Properties forwarded to the label element.
|
|
173
|
+
*/
|
|
84
174
|
labelProps?: LabelProps;
|
|
85
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Properties for the CheckboxCardGroupCompact component.
|
|
178
|
+
*/
|
|
86
179
|
interface CheckboxCardGroupCompactProps<T extends CheckboxCardGroupOptionData = CheckboxCardGroupOptionData> extends CheckboxGroupCompactProps<T> {}
|
|
180
|
+
/**
|
|
181
|
+
* Events for the CheckboxGroupCompact component.
|
|
182
|
+
*/
|
|
87
183
|
type CheckboxGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
184
|
+
/**
|
|
185
|
+
* Events for the CheckboxCardGroupCompact component.
|
|
186
|
+
*/
|
|
88
187
|
type CheckboxCardGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
188
|
+
/**
|
|
189
|
+
* Available UI slots for the Checkbox component.
|
|
190
|
+
*/
|
|
89
191
|
type CheckboxUiSlot = 'groupRoot' | 'root' | 'indicator' | 'indicator-icon' | 'label' | 'control';
|
|
192
|
+
/**
|
|
193
|
+
* Available UI slots for the CheckboxCard component.
|
|
194
|
+
*/
|
|
90
195
|
type CheckboxCardUiSlot = CheckboxUiSlot | 'content' | 'icon' | 'textContent' | 'description';
|
|
196
|
+
/**
|
|
197
|
+
* UI class overrides for the Checkbox component.
|
|
198
|
+
*/
|
|
91
199
|
type CheckboxUi = UiClass<CheckboxUiSlot>;
|
|
200
|
+
/**
|
|
201
|
+
* UI class overrides for the CheckboxCard component.
|
|
202
|
+
*/
|
|
92
203
|
type CheckboxCardUi = UiClass<CheckboxCardUiSlot>;
|
|
93
204
|
//#endregion
|
|
94
205
|
export { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCardUiSlot, CheckboxCompactEmits, CheckboxCompactProps, CheckboxControlProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot };
|
|
@@ -36,11 +36,11 @@ type __VLS_Slots = {} & {
|
|
|
36
36
|
trailing?: (props: typeof __VLS_19) => any;
|
|
37
37
|
};
|
|
38
38
|
declare const __VLS_base: _$vue.DefineComponent<ClipboardProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
39
|
-
click: (event:
|
|
39
|
+
click: (event: PointerEvent) => any;
|
|
40
40
|
copied: (value: string) => any;
|
|
41
41
|
copyError: (error: unknown) => any;
|
|
42
42
|
}, string, _$vue.PublicProps, Readonly<ClipboardProps> & Readonly<{
|
|
43
|
-
onClick?: ((event:
|
|
43
|
+
onClick?: ((event: PointerEvent) => any) | undefined;
|
|
44
44
|
onCopied?: ((value: string) => any) | undefined;
|
|
45
45
|
onCopyError?: ((error: unknown) => any) | undefined;
|
|
46
46
|
}>, {
|