@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
|
@@ -9,146 +9,509 @@ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "v
|
|
|
9
9
|
import { DateValue } from "@internationalized/date";
|
|
10
10
|
|
|
11
11
|
//#region src/components/calendar/types.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Model value type for the calendar component.
|
|
14
|
+
*/
|
|
12
15
|
type CalendarModelValue<M extends boolean = false> = M extends true ? DateValue[] | undefined : DateValue | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Properties for the CalendarRoot component.
|
|
18
|
+
*/
|
|
13
19
|
interface CalendarRootProps<M extends boolean = false> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
20
|
+
/**
|
|
21
|
+
* Default value.
|
|
22
|
+
*/
|
|
14
23
|
defaultValue?: CalendarModelValue<M>;
|
|
24
|
+
/**
|
|
25
|
+
* Default placeholder.
|
|
26
|
+
*/
|
|
15
27
|
defaultPlaceholder?: DateValue;
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder.
|
|
30
|
+
*/
|
|
16
31
|
placeholder?: DateValue;
|
|
32
|
+
/**
|
|
33
|
+
* Whether paged navigation.
|
|
34
|
+
*/
|
|
17
35
|
pagedNavigation?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether prevent deselect.
|
|
38
|
+
*/
|
|
18
39
|
preventDeselect?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Week starts on.
|
|
42
|
+
*/
|
|
19
43
|
weekStartsOn?: WeekStartsOn;
|
|
44
|
+
/**
|
|
45
|
+
* Weekday format.
|
|
46
|
+
*/
|
|
20
47
|
weekdayFormat?: WeekDayFormat;
|
|
48
|
+
/**
|
|
49
|
+
* Calendar label.
|
|
50
|
+
*/
|
|
21
51
|
calendarLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether fixed weeks.
|
|
54
|
+
*/
|
|
22
55
|
fixedWeeks?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Max value.
|
|
58
|
+
*/
|
|
23
59
|
maxValue?: DateValue;
|
|
60
|
+
/**
|
|
61
|
+
* Min value.
|
|
62
|
+
*/
|
|
24
63
|
minValue?: DateValue;
|
|
64
|
+
/**
|
|
65
|
+
* Locale.
|
|
66
|
+
*/
|
|
25
67
|
locale?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Number of months.
|
|
70
|
+
*/
|
|
26
71
|
numberOfMonths?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the component is disabled.
|
|
74
|
+
*/
|
|
27
75
|
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the component is readonly.
|
|
78
|
+
*/
|
|
28
79
|
readonly?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Whether initial focus.
|
|
82
|
+
*/
|
|
29
83
|
initialFocus?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the date is disabled.
|
|
86
|
+
*/
|
|
30
87
|
isDateDisabled?: Matcher;
|
|
88
|
+
/**
|
|
89
|
+
* Whether the date is unavailable.
|
|
90
|
+
*/
|
|
31
91
|
isDateUnavailable?: Matcher;
|
|
92
|
+
/**
|
|
93
|
+
* Reading direction of the component.
|
|
94
|
+
*/
|
|
32
95
|
dir?: Direction;
|
|
96
|
+
/**
|
|
97
|
+
* Next page.
|
|
98
|
+
*/
|
|
33
99
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
100
|
+
/**
|
|
101
|
+
* Prev page.
|
|
102
|
+
*/
|
|
34
103
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
104
|
+
/**
|
|
105
|
+
* Current model value.
|
|
106
|
+
*/
|
|
35
107
|
modelValue?: CalendarModelValue<M>;
|
|
108
|
+
/**
|
|
109
|
+
* Whether multiple values are supported.
|
|
110
|
+
*/
|
|
36
111
|
multiple?: M;
|
|
112
|
+
/**
|
|
113
|
+
* Whether to disable days outside current view.
|
|
114
|
+
*/
|
|
37
115
|
disableDaysOutsideCurrentView?: boolean;
|
|
38
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Events for the CalendarRoot component.
|
|
119
|
+
*/
|
|
39
120
|
type CalendarRootEmits<M extends boolean = false> = {
|
|
121
|
+
/**
|
|
122
|
+
* Emitted when the model value changes.
|
|
123
|
+
*/
|
|
40
124
|
'update:modelValue': [date: CalendarModelValue<M>];
|
|
125
|
+
/**
|
|
126
|
+
* Emitted when the placeholder value changes.
|
|
127
|
+
*/
|
|
41
128
|
'update:placeholder': [date: DateValue];
|
|
42
129
|
};
|
|
130
|
+
/**
|
|
131
|
+
* Properties for the CalendarHeader component.
|
|
132
|
+
*/
|
|
43
133
|
interface CalendarHeaderProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
134
|
+
/**
|
|
135
|
+
* Properties for the CalendarHeading component.
|
|
136
|
+
*/
|
|
44
137
|
interface CalendarHeadingProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
138
|
+
/**
|
|
139
|
+
* Properties for the CalendarGrid component.
|
|
140
|
+
*/
|
|
45
141
|
interface CalendarGridProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
142
|
+
/**
|
|
143
|
+
* Properties for the CalendarGridHead component.
|
|
144
|
+
*/
|
|
46
145
|
interface CalendarGridHeadProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
146
|
+
/**
|
|
147
|
+
* Properties for the CalendarGridBody component.
|
|
148
|
+
*/
|
|
47
149
|
interface CalendarGridBodyProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
150
|
+
/**
|
|
151
|
+
* Properties for the CalendarGridRow component.
|
|
152
|
+
*/
|
|
48
153
|
interface CalendarGridRowProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
154
|
+
/**
|
|
155
|
+
* Properties for the CalendarHeadCell component.
|
|
156
|
+
*/
|
|
49
157
|
interface CalendarHeadCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
158
|
+
/**
|
|
159
|
+
* Properties for the CalendarCell component.
|
|
160
|
+
*/
|
|
50
161
|
interface CalendarCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
162
|
+
/**
|
|
163
|
+
* Date.
|
|
164
|
+
*/
|
|
51
165
|
date: DateValue;
|
|
52
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Properties for the CalendarCellTrigger component.
|
|
169
|
+
*/
|
|
53
170
|
interface CalendarCellTriggerProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
171
|
+
/**
|
|
172
|
+
* Day.
|
|
173
|
+
*/
|
|
54
174
|
day: DateValue;
|
|
175
|
+
/**
|
|
176
|
+
* Month.
|
|
177
|
+
*/
|
|
55
178
|
month: DateValue;
|
|
56
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Properties for the CalendarPrev component.
|
|
182
|
+
*/
|
|
57
183
|
interface CalendarPrevProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
184
|
+
/**
|
|
185
|
+
* Prev page.
|
|
186
|
+
*/
|
|
58
187
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
59
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Properties for the CalendarNext component.
|
|
191
|
+
*/
|
|
60
192
|
interface CalendarNextProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
193
|
+
/**
|
|
194
|
+
* Next page.
|
|
195
|
+
*/
|
|
61
196
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
62
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Context for the CalendarRoot component.
|
|
200
|
+
*/
|
|
63
201
|
interface CalendarRootContext extends PropsToContext<CalendarRootProps, 'disableDaysOutsideCurrentView' | 'disabled' | 'fixedWeeks' | 'initialFocus' | 'numberOfMonths' | 'pagedNavigation' | 'preventDeselect' | 'readonly'> {
|
|
202
|
+
/**
|
|
203
|
+
* Locale used by the component context.
|
|
204
|
+
*/
|
|
64
205
|
locale: ComputedRef<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Reading direction of the component.
|
|
208
|
+
*/
|
|
65
209
|
dir: ComputedRef<Direction>;
|
|
210
|
+
/**
|
|
211
|
+
* Week starts on used by the component context.
|
|
212
|
+
*/
|
|
66
213
|
weekStartsOn: ComputedRef<WeekStartsOn>;
|
|
214
|
+
/**
|
|
215
|
+
* Weekday format used by the component context.
|
|
216
|
+
*/
|
|
67
217
|
weekdayFormat: ComputedRef<WeekDayFormat>;
|
|
218
|
+
/**
|
|
219
|
+
* Current model value.
|
|
220
|
+
*/
|
|
68
221
|
modelValue: ShallowRef<DateValue | DateValue[] | undefined>;
|
|
222
|
+
/**
|
|
223
|
+
* Whether multiple values are supported.
|
|
224
|
+
*/
|
|
69
225
|
multiple: ComputedRef<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* Placeholder used by the component context.
|
|
228
|
+
*/
|
|
70
229
|
placeholder: ShallowRef<DateValue>;
|
|
230
|
+
/**
|
|
231
|
+
* Grid used by the component context.
|
|
232
|
+
*/
|
|
71
233
|
grid: ShallowRef<Grid<DateValue>[]>;
|
|
234
|
+
/**
|
|
235
|
+
* Parent element used by the component context.
|
|
236
|
+
*/
|
|
72
237
|
parentElement: ShallowRef<HTMLElement | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Full calendar label used by the component context.
|
|
240
|
+
*/
|
|
73
241
|
fullCalendarLabel: ComputedRef<string>;
|
|
242
|
+
/**
|
|
243
|
+
* Heading value used by the component context.
|
|
244
|
+
*/
|
|
74
245
|
headingValue: ComputedRef<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Whether the current value is invalid.
|
|
248
|
+
*/
|
|
75
249
|
isInvalid: ComputedRef<boolean>;
|
|
250
|
+
/**
|
|
251
|
+
* Min value used by the component context.
|
|
252
|
+
*/
|
|
76
253
|
minValue: ComputedRef<DateValue | undefined>;
|
|
254
|
+
/**
|
|
255
|
+
* Max value used by the component context.
|
|
256
|
+
*/
|
|
77
257
|
maxValue: ComputedRef<DateValue | undefined>;
|
|
258
|
+
/**
|
|
259
|
+
* Whether the placeholder is focusable.
|
|
260
|
+
*/
|
|
78
261
|
isPlaceholderFocusable: ComputedRef<boolean>;
|
|
262
|
+
/**
|
|
263
|
+
* First focusable date used by the component context.
|
|
264
|
+
*/
|
|
79
265
|
firstFocusableDate: ComputedRef<DateValue | undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* Whether the component has selected date.
|
|
268
|
+
*/
|
|
80
269
|
hasSelectedDate: ComputedRef<boolean>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the selected date is disabled.
|
|
272
|
+
*/
|
|
81
273
|
isSelectedDateDisabled: ComputedRef<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* Formatter used by the component context.
|
|
276
|
+
*/
|
|
82
277
|
formatter: Formatter;
|
|
278
|
+
/**
|
|
279
|
+
* Callback invoked when the date changes.
|
|
280
|
+
*/
|
|
83
281
|
onDateChange: (date: DateValue) => void;
|
|
282
|
+
/**
|
|
283
|
+
* Callback invoked when the placeholder changes.
|
|
284
|
+
*/
|
|
84
285
|
onPlaceholderChange: (date: DateValue) => void;
|
|
286
|
+
/**
|
|
287
|
+
* Whether the date is disabled.
|
|
288
|
+
*/
|
|
85
289
|
isDateDisabled: Matcher;
|
|
290
|
+
/**
|
|
291
|
+
* Whether the date is selected.
|
|
292
|
+
*/
|
|
86
293
|
isDateSelected: Matcher;
|
|
294
|
+
/**
|
|
295
|
+
* Whether the date is unavailable.
|
|
296
|
+
*/
|
|
87
297
|
isDateUnavailable?: Matcher;
|
|
298
|
+
/**
|
|
299
|
+
* Whether an outside visible view.
|
|
300
|
+
*/
|
|
88
301
|
isOutsideVisibleView: (date: DateValue) => boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Prev page used by the component context.
|
|
304
|
+
*/
|
|
89
305
|
prevPage: (prevPageFunc?: (date: DateValue) => DateValue) => void;
|
|
306
|
+
/**
|
|
307
|
+
* Next page used by the component context.
|
|
308
|
+
*/
|
|
90
309
|
nextPage: (nextPageFunc?: (date: DateValue) => DateValue) => void;
|
|
310
|
+
/**
|
|
311
|
+
* Whether the previous button is disabled.
|
|
312
|
+
*/
|
|
91
313
|
isPrevButtonDisabled: (prevPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Whether the next button is disabled.
|
|
316
|
+
*/
|
|
92
317
|
isNextButtonDisabled: (nextPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
93
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Slot properties for the CalendarRoot component.
|
|
321
|
+
*/
|
|
94
322
|
interface CalendarRootSlotProps<M extends boolean = false> {
|
|
323
|
+
/**
|
|
324
|
+
* Date exposed in the slot scope.
|
|
325
|
+
*/
|
|
95
326
|
date: DateValue;
|
|
327
|
+
/**
|
|
328
|
+
* Placeholder exposed in the slot scope.
|
|
329
|
+
*/
|
|
96
330
|
placeholder: DateValue;
|
|
331
|
+
/**
|
|
332
|
+
* Grid exposed in the slot scope.
|
|
333
|
+
*/
|
|
97
334
|
grid: Grid<DateValue>[];
|
|
335
|
+
/**
|
|
336
|
+
* Week days exposed in the slot scope.
|
|
337
|
+
*/
|
|
98
338
|
weekDays: string[];
|
|
339
|
+
/**
|
|
340
|
+
* Week starts on exposed in the slot scope.
|
|
341
|
+
*/
|
|
99
342
|
weekStartsOn: number;
|
|
343
|
+
/**
|
|
344
|
+
* Locale exposed in the slot scope.
|
|
345
|
+
*/
|
|
100
346
|
locale: string;
|
|
347
|
+
/**
|
|
348
|
+
* Whether fixed weeks.
|
|
349
|
+
*/
|
|
101
350
|
fixedWeeks: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Current model value.
|
|
353
|
+
*/
|
|
102
354
|
modelValue: CalendarModelValue<M>;
|
|
355
|
+
/**
|
|
356
|
+
* Formatter exposed in the slot scope.
|
|
357
|
+
*/
|
|
103
358
|
formatter: Formatter;
|
|
359
|
+
/**
|
|
360
|
+
* Min value exposed in the slot scope.
|
|
361
|
+
*/
|
|
104
362
|
minValue: DateValue | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* Max value exposed in the slot scope.
|
|
365
|
+
*/
|
|
105
366
|
maxValue: DateValue | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* Whether the component is disabled.
|
|
369
|
+
*/
|
|
106
370
|
disabled: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Callback invoked when the placeholder changes.
|
|
373
|
+
*/
|
|
107
374
|
onPlaceholderChange: (date: DateValue) => void;
|
|
108
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Slot properties for the CalendarHeading component.
|
|
378
|
+
*/
|
|
109
379
|
interface CalendarHeadingSlotProps {
|
|
380
|
+
/**
|
|
381
|
+
* Heading value exposed in the slot scope.
|
|
382
|
+
*/
|
|
110
383
|
headingValue: string;
|
|
384
|
+
/**
|
|
385
|
+
* Month value exposed in the slot scope.
|
|
386
|
+
*/
|
|
111
387
|
monthValue: string;
|
|
388
|
+
/**
|
|
389
|
+
* Year value exposed in the slot scope.
|
|
390
|
+
*/
|
|
112
391
|
yearValue: string;
|
|
392
|
+
/**
|
|
393
|
+
* Selected month exposed in the slot scope.
|
|
394
|
+
*/
|
|
113
395
|
selectedMonth: number;
|
|
396
|
+
/**
|
|
397
|
+
* Selected year exposed in the slot scope.
|
|
398
|
+
*/
|
|
114
399
|
selectedYear: number;
|
|
400
|
+
/**
|
|
401
|
+
* Month options exposed in the slot scope.
|
|
402
|
+
*/
|
|
115
403
|
monthOptions: SelectOptionData<number>[];
|
|
404
|
+
/**
|
|
405
|
+
* Year options exposed in the slot scope.
|
|
406
|
+
*/
|
|
116
407
|
yearOptions: SelectOptionData<number>[];
|
|
408
|
+
/**
|
|
409
|
+
* Callback invoked when the month changes.
|
|
410
|
+
*/
|
|
117
411
|
onMonthChange: (value: number | undefined) => void;
|
|
412
|
+
/**
|
|
413
|
+
* Callback invoked when the year changes.
|
|
414
|
+
*/
|
|
118
415
|
onYearChange: (value: number | undefined) => void;
|
|
119
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Available UI slots for the Calendar component.
|
|
419
|
+
*/
|
|
120
420
|
type CalendarUiSlot = 'root' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'gridHead' | 'gridBody' | 'gridRow' | 'headCell' | 'cell' | 'cellTrigger';
|
|
421
|
+
/**
|
|
422
|
+
* UI class overrides for the Calendar component.
|
|
423
|
+
*/
|
|
121
424
|
type CalendarUi = UiClass<CalendarUiSlot>;
|
|
425
|
+
/**
|
|
426
|
+
* Properties for the CalendarCompact component.
|
|
427
|
+
*/
|
|
122
428
|
interface CalendarCompactProps<M extends boolean = false> extends CalendarRootProps<M> {
|
|
429
|
+
/**
|
|
430
|
+
* Properties forwarded to the header element.
|
|
431
|
+
*/
|
|
123
432
|
headerProps?: CalendarHeaderProps;
|
|
433
|
+
/**
|
|
434
|
+
* Properties forwarded to the heading element.
|
|
435
|
+
*/
|
|
124
436
|
headingProps?: CalendarHeadingProps;
|
|
437
|
+
/**
|
|
438
|
+
* Properties forwarded to the prev element.
|
|
439
|
+
*/
|
|
125
440
|
prevProps?: CalendarPrevProps;
|
|
441
|
+
/**
|
|
442
|
+
* Properties forwarded to the next element.
|
|
443
|
+
*/
|
|
126
444
|
nextProps?: CalendarNextProps;
|
|
445
|
+
/**
|
|
446
|
+
* Properties forwarded to the grid element.
|
|
447
|
+
*/
|
|
127
448
|
gridProps?: CalendarGridProps;
|
|
449
|
+
/**
|
|
450
|
+
* Properties forwarded to the grid head element.
|
|
451
|
+
*/
|
|
128
452
|
gridHeadProps?: CalendarGridHeadProps;
|
|
453
|
+
/**
|
|
454
|
+
* Properties forwarded to the grid body element.
|
|
455
|
+
*/
|
|
129
456
|
gridBodyProps?: CalendarGridBodyProps;
|
|
457
|
+
/**
|
|
458
|
+
* Properties forwarded to the grid row element.
|
|
459
|
+
*/
|
|
130
460
|
gridRowProps?: CalendarGridRowProps;
|
|
461
|
+
/**
|
|
462
|
+
* Properties forwarded to the head cell element.
|
|
463
|
+
*/
|
|
131
464
|
headCellProps?: CalendarHeadCellProps;
|
|
465
|
+
/**
|
|
466
|
+
* Properties forwarded to the cell element.
|
|
467
|
+
*/
|
|
132
468
|
cellProps?: Omit<CalendarCellProps, 'date'>;
|
|
469
|
+
/**
|
|
470
|
+
* Properties forwarded to the cell trigger element.
|
|
471
|
+
*/
|
|
133
472
|
cellTriggerProps?: Omit<CalendarCellTriggerProps, 'day' | 'month'>;
|
|
134
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Events for the CalendarCompact component.
|
|
476
|
+
*/
|
|
135
477
|
type CalendarCompactEmits<M extends boolean = false> = CalendarRootEmits<M>;
|
|
478
|
+
/**
|
|
479
|
+
* Slots for the CalendarCompact component.
|
|
480
|
+
*/
|
|
136
481
|
type CalendarCompactSlots<M extends boolean = false> = {
|
|
482
|
+
/**
|
|
483
|
+
* Custom content for the default slot.
|
|
484
|
+
*/
|
|
137
485
|
default?: (props: {
|
|
138
486
|
modelValue: CalendarModelValue<M>;
|
|
139
487
|
}) => any;
|
|
488
|
+
/**
|
|
489
|
+
* Custom content for the prev slot.
|
|
490
|
+
*/
|
|
140
491
|
prev?: (props: {
|
|
141
492
|
disabled: boolean;
|
|
142
493
|
}) => any;
|
|
494
|
+
/**
|
|
495
|
+
* Custom content for the heading slot.
|
|
496
|
+
*/
|
|
143
497
|
heading?: (props: CalendarHeadingSlotProps) => any;
|
|
498
|
+
/**
|
|
499
|
+
* Custom content for the next slot.
|
|
500
|
+
*/
|
|
144
501
|
next?: (props: {
|
|
145
502
|
disabled: boolean;
|
|
146
503
|
}) => any;
|
|
504
|
+
/**
|
|
505
|
+
* Custom content for the head cell slot.
|
|
506
|
+
*/
|
|
147
507
|
'head-cell'?: (props: {
|
|
148
508
|
date: DateValue;
|
|
149
509
|
index: number;
|
|
150
510
|
label: string;
|
|
151
511
|
}) => any;
|
|
512
|
+
/**
|
|
513
|
+
* Custom content for the day slot.
|
|
514
|
+
*/
|
|
152
515
|
day?: (props: {
|
|
153
516
|
day: DateValue;
|
|
154
517
|
month: DateValue;
|
|
@@ -11,8 +11,8 @@ declare const __VLS_base: _$vue.DefineComponent<CardRootProps, {}, {}, {}, {}, _
|
|
|
11
11
|
}, string, _$vue.PublicProps, Readonly<CardRootProps> & Readonly<{
|
|
12
12
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
open: boolean;
|
|
15
14
|
defaultOpen: boolean;
|
|
15
|
+
open: boolean;
|
|
16
16
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,36 +3,126 @@ import { CollapsibleContentProps, CollapsibleRootEmits, CollapsibleRootProps, Co
|
|
|
3
3
|
import { HTMLAttributes } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/card/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Properties for the CardRoot component.
|
|
8
|
+
*/
|
|
6
9
|
interface CardRootProps extends CollapsibleRootProps {}
|
|
10
|
+
/**
|
|
11
|
+
* Events for the CardRoot component.
|
|
12
|
+
*/
|
|
7
13
|
type CardRootEmits = CollapsibleRootEmits;
|
|
14
|
+
/**
|
|
15
|
+
* Properties for the CardHeader component.
|
|
16
|
+
*/
|
|
8
17
|
interface CardHeaderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
18
|
+
/**
|
|
19
|
+
* Properties for the CardContent component.
|
|
20
|
+
*/
|
|
9
21
|
interface CardContentProps extends CollapsibleContentProps {}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for the CardFooter component.
|
|
24
|
+
*/
|
|
10
25
|
interface CardFooterProps extends /** @vue-ignore */HTMLAttributes {}
|
|
26
|
+
/**
|
|
27
|
+
* Properties for the CardTitleRoot component.
|
|
28
|
+
*/
|
|
11
29
|
interface CardTitleRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
30
|
+
/**
|
|
31
|
+
* Properties for the CardTitle component.
|
|
32
|
+
*/
|
|
12
33
|
interface CardTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
34
|
+
/**
|
|
35
|
+
* Properties for the CardDescription component.
|
|
36
|
+
*/
|
|
13
37
|
interface CardDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
38
|
+
/**
|
|
39
|
+
* Properties for the CardCollapsibleTrigger component.
|
|
40
|
+
*/
|
|
14
41
|
interface CardCollapsibleTriggerProps extends CollapsibleTriggerProps {}
|
|
42
|
+
/**
|
|
43
|
+
* Available UI slots for the Card component.
|
|
44
|
+
*/
|
|
15
45
|
type CardUiSlot = 'root' | 'header' | 'content' | 'footer' | 'titleRoot' | 'title' | 'description' | 'trigger';
|
|
46
|
+
/**
|
|
47
|
+
* UI class overrides for the Card component.
|
|
48
|
+
*/
|
|
16
49
|
type CardUi = UiClass<CardUiSlot>;
|
|
50
|
+
/**
|
|
51
|
+
* Properties for the CardCompact component.
|
|
52
|
+
*/
|
|
17
53
|
interface CardCompactProps extends CardRootProps {
|
|
54
|
+
/**
|
|
55
|
+
* Title text rendered by the component.
|
|
56
|
+
*/
|
|
18
57
|
title?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Description text rendered by the component.
|
|
60
|
+
*/
|
|
19
61
|
description?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Properties forwarded to the header element.
|
|
64
|
+
*/
|
|
20
65
|
headerProps?: CardHeaderProps;
|
|
66
|
+
/**
|
|
67
|
+
* Properties forwarded to the content element.
|
|
68
|
+
*/
|
|
21
69
|
contentProps?: CardContentProps;
|
|
70
|
+
/**
|
|
71
|
+
* Properties forwarded to the footer element.
|
|
72
|
+
*/
|
|
22
73
|
footerProps?: CardFooterProps;
|
|
74
|
+
/**
|
|
75
|
+
* Properties forwarded to the title root element.
|
|
76
|
+
*/
|
|
23
77
|
titleRootProps?: CardTitleRootProps;
|
|
78
|
+
/**
|
|
79
|
+
* Properties forwarded to the title element.
|
|
80
|
+
*/
|
|
24
81
|
titleProps?: CardTitleProps;
|
|
82
|
+
/**
|
|
83
|
+
* Properties forwarded to the description element.
|
|
84
|
+
*/
|
|
25
85
|
descriptionProps?: CardDescriptionProps;
|
|
26
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Events for the CardCompact component.
|
|
89
|
+
*/
|
|
27
90
|
type CardCompactEmits = CardRootEmits;
|
|
91
|
+
/**
|
|
92
|
+
* Slots for the CardCompact component.
|
|
93
|
+
*/
|
|
28
94
|
interface CardCompactSlots {
|
|
95
|
+
/**
|
|
96
|
+
* Custom content for the default slot.
|
|
97
|
+
*/
|
|
29
98
|
default?: () => any;
|
|
99
|
+
/**
|
|
100
|
+
* Custom content for the header slot.
|
|
101
|
+
*/
|
|
30
102
|
header?: () => any;
|
|
103
|
+
/**
|
|
104
|
+
* Custom content for the title slot.
|
|
105
|
+
*/
|
|
31
106
|
title?: () => any;
|
|
107
|
+
/**
|
|
108
|
+
* Custom content for the title leading slot.
|
|
109
|
+
*/
|
|
32
110
|
'title-leading'?: () => any;
|
|
111
|
+
/**
|
|
112
|
+
* Custom content for the title trailing slot.
|
|
113
|
+
*/
|
|
33
114
|
'title-trailing'?: () => any;
|
|
115
|
+
/**
|
|
116
|
+
* Custom content for the extra slot.
|
|
117
|
+
*/
|
|
34
118
|
extra?: () => any;
|
|
119
|
+
/**
|
|
120
|
+
* Custom content for the footer slot.
|
|
121
|
+
*/
|
|
35
122
|
footer?: () => any;
|
|
123
|
+
/**
|
|
124
|
+
* Custom content for the description slot.
|
|
125
|
+
*/
|
|
36
126
|
description?: () => any;
|
|
37
127
|
}
|
|
38
128
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.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{Fragment as l,createBlock as u,createElementBlock as d,createVNode as f,defineComponent as p,guardReactiveProps as m,mergeProps as h,normalizeProps as g,openBlock as _,renderList as v,renderSlot as y,unref as b,withCtx as x}from"vue";const S=p({name:`CarouselCompact`,__name:`carousel-compact`,props:{slides:{},contentProps:{},containerProps:{},itemProps:{},controlProps:{},navigationProps:{},previousProps:{},nextProps:{},dir:{},orientation:{},options:{},plugins:{}},emits:[`init`],setup(p,{emit:S}){let C=p,w=S,T=e(C,[`slides`,`contentProps`,`containerProps`,`itemProps`,`controlProps`,`navigationProps`,`previousProps`,`nextProps`]);return(e,S)=>(_(),u(t,h(b(T),{onInit:S[0]||(S[0]=e=>w(`init`,e))}),{default:x(t=>[f(n,g(m(p.contentProps)),{default:x(()=>[f(r,g(m(p.containerProps)),{default:x(()=>[(_(!0),d(l,null,v(p.slides,(n,r)=>(_(),u(i,h({key:r},{ref_for:!0},p.itemProps),{default:x(()=>[y(e.$slots,`item`,h({ref_for:!0},t,{slide:n,index:r,selected:r===t.selectedIndex}))]),_:2},1040))),128))]),_:2},1040)]),_:2},1040),f(a,g(m(p.controlProps)),{default:x(()=>[f(o,g(m(p.navigationProps)),{default:x(()=>[f(s,g(m(p.previousProps)),{default:x(()=>[y(e.$slots,`previous`,g(m(t)))]),_:2},1040),f(c,g(m(p.nextProps)),{default:x(()=>[y(e.$slots,`next`,g(m(t)))]),_:2},1040)]),_:2},1040),y(e.$slots,`control`,g(m(t)))]),_:2},1040)]),_:3},16))}});export{S as default};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DefinedValue } from "../../types/common.js";
|
|
2
|
+
import { CarouselCompactProps, CarouselCompactSlots } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$embla_carousel0 from "embla-carousel";
|
|
5
|
+
|
|
6
|
+
//#region src/components/carousel/carousel-compact.vue.d.ts
|
|
7
|
+
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<CarouselCompactProps<T> & {
|
|
9
|
+
onInit?: ((carousel: _$embla_carousel0.EmblaCarouselType) => any) | undefined;
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
+
} ? P : {});
|
|
13
|
+
expose: (exposed: {}) => void;
|
|
14
|
+
attrs: any;
|
|
15
|
+
slots: CarouselCompactSlots<T>;
|
|
16
|
+
emit: (evt: "init", carousel: _$embla_carousel0.EmblaCarouselType) => void;
|
|
17
|
+
}>) => _$vue.VNode & {
|
|
18
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { _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:`CarouselContainer`,__name:`carousel-container`,setup(n){let s=e(`container`);return(e,n)=>(i(),t(`div`,{class:r(o(s)),"data-soybean-carousel-container":``},[a(e.$slots,`default`)],2))}});export{s as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CarouselContainerProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/carousel/carousel-container.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<CarouselContainerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselContainerProps> & 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 };
|