@soybeanjs/headless 0.17.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 +2 -2
- package/dist/components/accordion/types.d.ts +19 -19
- package/dist/components/affix/types.d.ts +12 -12
- package/dist/components/alert/types.d.ts +15 -15
- package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
- package/dist/components/anchor/types.d.ts +19 -19
- package/dist/components/arrow/types.d.ts +1 -1
- package/dist/components/aspect-ratio/types.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +4 -4
- package/dist/components/autocomplete/types.d.ts +23 -23
- 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 +38 -7
- package/dist/components/backtop/backtop.vue.d.ts +3 -3
- package/dist/components/backtop/types.d.ts +5 -5
- 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 +26 -6
- package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
- package/dist/components/bottom-sheet/types.d.ts +13 -13
- package/dist/components/breadcrumb/types.d.ts +21 -21
- 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 +4 -4
- package/dist/components/calendar/types.d.ts +32 -32
- package/dist/components/card/card-root.vue.d.ts +1 -1
- package/dist/components/card/types.d.ts +20 -20
- 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 +121 -29
- package/dist/components/checkbox/types.d.ts +27 -27
- package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
- package/dist/components/clipboard/types.d.ts +5 -5
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/types.d.ts +6 -6
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-area/types.d.ts +7 -7
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-field/types.d.ts +5 -5
- package/dist/components/color-picker/types.d.ts +3 -3
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-slider/types.d.ts +6 -6
- package/dist/components/color-swatch/types.d.ts +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/types.d.ts +8 -8
- 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/combobox-root.vue.d.ts +2 -2
- package/dist/components/combobox/types.d.ts +42 -42
- package/dist/components/command/command-compact.vue.d.ts +2 -2
- package/dist/components/command/types.d.ts +25 -25
- package/dist/components/config-provider/config-provider.js +12 -0
- package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
- package/dist/components/config-provider/types.d.ts +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/types.d.ts +21 -21
- package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
- package/dist/components/date-field/types.d.ts +10 -10
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-root.vue.d.ts +7 -7
- package/dist/components/date-picker/types.d.ts +18 -18
- package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
- package/dist/components/date-range-field/types.d.ts +11 -11
- 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 +7 -7
- package/dist/components/date-range-picker/types.d.ts +12 -12
- package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
- package/dist/components/dialog/types.d.ts +40 -40
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- 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.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/types.d.ts +21 -21
- package/dist/components/editable/types.d.ts +25 -25
- 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 +72 -9
- 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 +24 -24
- 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 +129 -10
- 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-root.vue.d.ts +1 -1
- package/dist/components/hover-card/types.d.ts +15 -15
- 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 +79 -8
- package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
- package/dist/components/input-number/types.d.ts +7 -7
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
- package/dist/components/input-otp/input-otp-root.vue.d.ts +4 -4
- package/dist/components/input-otp/types.d.ts +14 -14
- package/dist/components/kbd/types.d.ts +2 -2
- package/dist/components/label/types.d.ts +1 -1
- 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 +1 -1
- package/dist/components/layout/types.d.ts +28 -28
- package/dist/components/link/types.d.ts +4 -4
- package/dist/components/list/types.d.ts +7 -7
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +16 -16
- package/dist/components/menu/menu-content.vue.d.ts +2 -2
- package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
- package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
- package/dist/components/menu/types.d.ts +68 -68
- 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 +19 -19
- package/dist/components/month-picker/month-picker-root.vue.d.ts +5 -5
- package/dist/components/month-picker/types.d.ts +7 -7
- package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +5 -5
- package/dist/components/month-range-picker/types.d.ts +7 -7
- package/dist/components/navigation-menu/types.d.ts +31 -31
- package/dist/components/page-tabs/types.d.ts +8 -8
- package/dist/components/pagination/types.d.ts +21 -21
- package/dist/components/popover/popover-compact.vue.d.ts +1 -1
- package/dist/components/popover/types.d.ts +20 -20
- package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
- package/dist/components/popper/types.d.ts +7 -7
- package/dist/components/portal/types.d.ts +1 -1
- package/dist/components/primitive/types.d.ts +2 -2
- package/dist/components/progress/types.d.ts +11 -11
- package/dist/components/radio-group/types.d.ts +16 -16
- package/dist/components/range-calendar/range-calendar-root.vue.d.ts +2 -2
- package/dist/components/range-calendar/types.d.ts +30 -30
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +1 -1
- package/dist/components/roving-focus/types.d.ts +3 -3
- package/dist/components/scroll-area/types.d.ts +10 -10
- package/dist/components/segment/types.d.ts +8 -8
- package/dist/components/select/select-content.vue.d.ts +2 -2
- package/dist/components/select/types.d.ts +51 -51
- package/dist/components/separator/types.d.ts +4 -4
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +1 -1
- package/dist/components/slider/types.d.ts +10 -10
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/types.d.ts +11 -11
- package/dist/components/stepper/types.d.ts +21 -21
- package/dist/components/switch/types.d.ts +7 -7
- package/dist/components/table/types.d.ts +67 -67
- package/dist/components/tabs/types.d.ts +17 -17
- package/dist/components/tag/types.d.ts +2 -2
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/tags-input/types.d.ts +10 -10
- package/dist/components/textarea/types.d.ts +8 -8
- package/dist/components/time-field/time-field-root.vue.d.ts +1 -1
- package/dist/components/time-field/types.d.ts +7 -7
- package/dist/components/time-picker/time-picker-root.vue.d.ts +6 -6
- package/dist/components/time-picker/types.d.ts +7 -7
- package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
- package/dist/components/time-range-field/types.d.ts +11 -11
- 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 +6 -6
- package/dist/components/time-range-picker/types.d.ts +12 -12
- package/dist/components/toast/types.d.ts +25 -25
- package/dist/components/toggle/toggle.vue.d.ts +1 -1
- package/dist/components/toggle/types.d.ts +3 -3
- package/dist/components/toggle-group/types.d.ts +5 -5
- package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
- package/dist/components/toolbar/types.d.ts +12 -12
- package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
- package/dist/components/tooltip/types.d.ts +9 -9
- package/dist/components/tree/types.d.ts +13 -13
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/tree-menu/types.d.ts +14 -14
- package/dist/components/virtualizer/types.d.ts +6 -6
- package/dist/components/visually-hidden/types.d.ts +3 -3
- package/dist/components/year-picker/types.d.ts +7 -7
- package/dist/components/year-picker/year-picker-root.vue.d.ts +5 -5
- package/dist/components/year-range-picker/types.d.ts +7 -7
- package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +5 -5
- package/dist/constants/components.js +1 -1
- package/dist/date/parts.d.ts +1 -1
- package/dist/index.d.ts +416 -405
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +877 -851
- package/dist/namespaced/index.js +1 -1
- package/dist/types/common.d.ts +1 -1
- package/package.json +4 -2
- 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
|
@@ -5,35 +5,35 @@ import { HTMLAttributes } from "vue";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/breadcrumb/types.d.ts
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Properties for the BreadcrumbRoot component.
|
|
9
9
|
*/
|
|
10
10
|
interface BreadcrumbRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Properties for the BreadcrumbList component.
|
|
13
13
|
*/
|
|
14
14
|
interface BreadcrumbListProps extends /** @vue-ignore */HTMLAttributes {}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Properties for the BreadcrumbItem component.
|
|
17
17
|
*/
|
|
18
18
|
interface BreadcrumbItemProps extends /** @vue-ignore */HTMLAttributes {}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Properties for the BreadcrumbPage component.
|
|
21
21
|
*/
|
|
22
22
|
interface BreadcrumbPageProps extends /** @vue-ignore */HTMLAttributes {}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Properties for the BreadcrumbSeparator component.
|
|
25
25
|
*/
|
|
26
26
|
interface BreadcrumbSeparatorProps extends /** @vue-ignore */HTMLAttributes {}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Properties for the BreadcrumbEllipsis component.
|
|
29
29
|
*/
|
|
30
30
|
interface BreadcrumbEllipsisProps extends /** @vue-ignore */HTMLAttributes {}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Properties for the BreadcrumbLink component.
|
|
33
33
|
*/
|
|
34
34
|
interface BreadcrumbLinkProps extends LinkProps {}
|
|
35
35
|
/**
|
|
36
|
-
* Option data for the
|
|
36
|
+
* Option data for the Breadcrumb component.
|
|
37
37
|
*/
|
|
38
38
|
interface BreadcrumbOptionData extends LinkBaseProps {
|
|
39
39
|
/** The value of the option. */
|
|
@@ -46,7 +46,7 @@ interface BreadcrumbOptionData extends LinkBaseProps {
|
|
|
46
46
|
disabled?: boolean;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Properties for the BreadcrumbCompact component.
|
|
50
50
|
*/
|
|
51
51
|
interface BreadcrumbCompactProps<T extends BreadcrumbOptionData = BreadcrumbOptionData> extends Omit<BreadcrumbRootProps, 'onClick'> {
|
|
52
52
|
/**
|
|
@@ -60,32 +60,32 @@ interface BreadcrumbCompactProps<T extends BreadcrumbOptionData = BreadcrumbOpti
|
|
|
60
60
|
*/
|
|
61
61
|
ellipsis?: true | [number, number] | null;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Properties forwarded to the list element.
|
|
64
64
|
*/
|
|
65
65
|
listProps?: BreadcrumbListProps;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Properties forwarded to the item element.
|
|
68
68
|
*/
|
|
69
69
|
itemProps?: BreadcrumbItemProps;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Properties forwarded to the link element.
|
|
72
72
|
*/
|
|
73
73
|
linkProps?: BreadcrumbLinkProps;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Properties forwarded to the page element.
|
|
76
76
|
*/
|
|
77
77
|
pageProps?: BreadcrumbPageProps;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Properties forwarded to the separator element.
|
|
80
80
|
*/
|
|
81
81
|
separatorProps?: BreadcrumbSeparatorProps;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Properties forwarded to the ellipsis element.
|
|
84
84
|
*/
|
|
85
85
|
ellipsisProps?: BreadcrumbEllipsisProps;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Events for the BreadcrumbCompact component.
|
|
89
89
|
*/
|
|
90
90
|
type BreadcrumbCompactEmits<T extends BreadcrumbOptionData = BreadcrumbOptionData> = {
|
|
91
91
|
/**
|
|
@@ -94,7 +94,7 @@ type BreadcrumbCompactEmits<T extends BreadcrumbOptionData = BreadcrumbOptionDat
|
|
|
94
94
|
click: [item: T];
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
|
-
* Slot
|
|
97
|
+
* Slot properties for the BreadcrumbCompactItem component.
|
|
98
98
|
*/
|
|
99
99
|
interface BreadcrumbCompactItemSlotProps<T extends BreadcrumbOptionData = BreadcrumbOptionData> {
|
|
100
100
|
/**
|
|
@@ -107,7 +107,7 @@ interface BreadcrumbCompactItemSlotProps<T extends BreadcrumbOptionData = Breadc
|
|
|
107
107
|
index: number;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
* Slot
|
|
110
|
+
* Slot properties for the BreadcrumbCompactEllipsis component.
|
|
111
111
|
*/
|
|
112
112
|
interface BreadcrumbCompactEllipsisSlotProps<T extends BreadcrumbOptionData = BreadcrumbOptionData> {
|
|
113
113
|
/**
|
|
@@ -116,7 +116,7 @@ interface BreadcrumbCompactEllipsisSlotProps<T extends BreadcrumbOptionData = Br
|
|
|
116
116
|
ellipsisItems: T[];
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* Slots for the
|
|
119
|
+
* Slots for the BreadcrumbCompact component.
|
|
120
120
|
*/
|
|
121
121
|
type BreadcrumbCompactSlots<T extends BreadcrumbOptionData = BreadcrumbOptionData> = {
|
|
122
122
|
/**
|
|
@@ -153,11 +153,11 @@ type BreadcrumbCompactSlots<T extends BreadcrumbOptionData = BreadcrumbOptionDat
|
|
|
153
153
|
'item-trailing'?: (props: BreadcrumbCompactItemSlotProps<T>) => any;
|
|
154
154
|
};
|
|
155
155
|
/**
|
|
156
|
-
* Available UI slots for the
|
|
156
|
+
* Available UI slots for the Breadcrumb component.
|
|
157
157
|
*/
|
|
158
158
|
type BreadcrumbUiSlot = 'root' | 'list' | 'item' | 'page' | 'separator' | 'ellipsis' | 'link';
|
|
159
159
|
/**
|
|
160
|
-
* UI class overrides for the
|
|
160
|
+
* UI class overrides for the Breadcrumb component.
|
|
161
161
|
*/
|
|
162
162
|
type BreadcrumbUi = UiClass<BreadcrumbUiSlot>;
|
|
163
163
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`Button`,__name:`button`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`click`],setup(i,{emit:u}){let d=i,f=u,p=n(()=>d.disabled
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{computed as n,createBlock as r,defineComponent as i,mergeProps as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`Button`,__name:`button`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},emits:[`click`],setup(i,{emit:u}){let d=i,f=u,p=e(d,[`disabled`,`type`]),m=n(()=>d.as===`button`?d.disabled:void 0),h=n(()=>d.disabled?``:void 0),g=n(()=>d.disabled?!0:void 0),_=n(()=>{if(d.as===`button`)return d.type??`button`}),v=e=>{if(d.disabled){e.preventDefault(),e.stopPropagation();return}f(`click`,e)};return(e,n)=>(o(),r(c(t),a(c(p),{disabled:m.value,"data-disabled":h.value,"aria-disabled":g.value,tabindex:m.value?`-1`:void 0,type:_.value,onClick:v}),{default:l(()=>[s(e.$slots,`default`)]),_:3},16,[`disabled`,`data-disabled`,`aria-disabled`,`tabindex`,`type`]))}});export{u as default};
|
|
@@ -8,9 +8,9 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_10) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: _$vue.DefineComponent<ButtonProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
11
|
-
click: (event:
|
|
11
|
+
click: (event: PointerEvent) => any;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
13
|
-
onClick?: ((event:
|
|
13
|
+
onClick?: ((event: PointerEvent) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
as: AsTag | _$vue.Component;
|
|
16
16
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,9 +7,9 @@ import { ButtonHTMLAttributes } from "vue";
|
|
|
7
7
|
*/
|
|
8
8
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Properties for the Button component.
|
|
11
11
|
*/
|
|
12
|
-
interface ButtonProps extends PrimitiveProps, /** @vue-ignore */
|
|
12
|
+
interface ButtonProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
13
13
|
/**
|
|
14
14
|
* The type of the button element. Can be one of 'button', 'submit', or 'reset'.
|
|
15
15
|
* @default 'button'
|
|
@@ -21,13 +21,13 @@ interface ButtonProps extends PrimitiveProps, /** @vue-ignore */Omit<ButtonHTMLA
|
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Events for the Button component.
|
|
25
25
|
*/
|
|
26
26
|
type ButtonEmits = {
|
|
27
27
|
/**
|
|
28
28
|
* Emitted when click occurs.
|
|
29
29
|
*/
|
|
30
|
-
click: [event:
|
|
30
|
+
click: [event: PointerEvent];
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
33
|
export { ButtonEmits, ButtonProps, ButtonType };
|
|
@@ -14,7 +14,7 @@ import { DateValue } from "@internationalized/date";
|
|
|
14
14
|
*/
|
|
15
15
|
type CalendarModelValue<M extends boolean = false> = M extends true ? DateValue[] | undefined : DateValue | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Properties for the CalendarRoot component.
|
|
18
18
|
*/
|
|
19
19
|
interface CalendarRootProps<M extends boolean = false> extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
20
20
|
/**
|
|
@@ -115,7 +115,7 @@ interface CalendarRootProps<M extends boolean = false> extends PrimitiveProps, /
|
|
|
115
115
|
disableDaysOutsideCurrentView?: boolean;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Events for the CalendarRoot component.
|
|
119
119
|
*/
|
|
120
120
|
type CalendarRootEmits<M extends boolean = false> = {
|
|
121
121
|
/**
|
|
@@ -128,35 +128,35 @@ type CalendarRootEmits<M extends boolean = false> = {
|
|
|
128
128
|
'update:placeholder': [date: DateValue];
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Properties for the CalendarHeader component.
|
|
132
132
|
*/
|
|
133
133
|
interface CalendarHeaderProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* Properties for the CalendarHeading component.
|
|
136
136
|
*/
|
|
137
137
|
interface CalendarHeadingProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Properties for the CalendarGrid component.
|
|
140
140
|
*/
|
|
141
141
|
interface CalendarGridProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Properties for the CalendarGridHead component.
|
|
144
144
|
*/
|
|
145
145
|
interface CalendarGridHeadProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Properties for the CalendarGridBody component.
|
|
148
148
|
*/
|
|
149
149
|
interface CalendarGridBodyProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* Properties for the CalendarGridRow component.
|
|
152
152
|
*/
|
|
153
153
|
interface CalendarGridRowProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Properties for the CalendarHeadCell component.
|
|
156
156
|
*/
|
|
157
157
|
interface CalendarHeadCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {}
|
|
158
158
|
/**
|
|
159
|
-
*
|
|
159
|
+
* Properties for the CalendarCell component.
|
|
160
160
|
*/
|
|
161
161
|
interface CalendarCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
162
162
|
/**
|
|
@@ -165,7 +165,7 @@ interface CalendarCellProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLA
|
|
|
165
165
|
date: DateValue;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Properties for the CalendarCellTrigger component.
|
|
169
169
|
*/
|
|
170
170
|
interface CalendarCellTriggerProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
|
|
171
171
|
/**
|
|
@@ -178,7 +178,7 @@ interface CalendarCellTriggerProps extends PrimitiveProps, /** @vue-ignore */Omi
|
|
|
178
178
|
month: DateValue;
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Properties for the CalendarPrev component.
|
|
182
182
|
*/
|
|
183
183
|
interface CalendarPrevProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
184
184
|
/**
|
|
@@ -187,7 +187,7 @@ interface CalendarPrevProps extends PrimitiveProps, /** @vue-ignore */ButtonHTML
|
|
|
187
187
|
prevPage?: (placeholder: DateValue) => DateValue;
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Properties for the CalendarNext component.
|
|
191
191
|
*/
|
|
192
192
|
interface CalendarNextProps extends PrimitiveProps, /** @vue-ignore */ButtonHTMLAttributes {
|
|
193
193
|
/**
|
|
@@ -196,7 +196,7 @@ interface CalendarNextProps extends PrimitiveProps, /** @vue-ignore */ButtonHTML
|
|
|
196
196
|
nextPage?: (placeholder: DateValue) => DateValue;
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* Context for the
|
|
199
|
+
* Context for the CalendarRoot component.
|
|
200
200
|
*/
|
|
201
201
|
interface CalendarRootContext extends PropsToContext<CalendarRootProps, 'disableDaysOutsideCurrentView' | 'disabled' | 'fixedWeeks' | 'initialFocus' | 'numberOfMonths' | 'pagedNavigation' | 'preventDeselect' | 'readonly'> {
|
|
202
202
|
/**
|
|
@@ -317,7 +317,7 @@ interface CalendarRootContext extends PropsToContext<CalendarRootProps, 'disable
|
|
|
317
317
|
isNextButtonDisabled: (nextPageFunc?: (date: DateValue) => DateValue) => boolean;
|
|
318
318
|
}
|
|
319
319
|
/**
|
|
320
|
-
* Slot
|
|
320
|
+
* Slot properties for the CalendarRoot component.
|
|
321
321
|
*/
|
|
322
322
|
interface CalendarRootSlotProps<M extends boolean = false> {
|
|
323
323
|
/**
|
|
@@ -374,7 +374,7 @@ interface CalendarRootSlotProps<M extends boolean = false> {
|
|
|
374
374
|
onPlaceholderChange: (date: DateValue) => void;
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
|
-
* Slot
|
|
377
|
+
* Slot properties for the CalendarHeading component.
|
|
378
378
|
*/
|
|
379
379
|
interface CalendarHeadingSlotProps {
|
|
380
380
|
/**
|
|
@@ -415,68 +415,68 @@ interface CalendarHeadingSlotProps {
|
|
|
415
415
|
onYearChange: (value: number | undefined) => void;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
|
-
* Available UI slots for the
|
|
418
|
+
* Available UI slots for the Calendar component.
|
|
419
419
|
*/
|
|
420
420
|
type CalendarUiSlot = 'root' | 'header' | 'heading' | 'prev' | 'next' | 'grid' | 'gridHead' | 'gridBody' | 'gridRow' | 'headCell' | 'cell' | 'cellTrigger';
|
|
421
421
|
/**
|
|
422
|
-
* UI class overrides for the
|
|
422
|
+
* UI class overrides for the Calendar component.
|
|
423
423
|
*/
|
|
424
424
|
type CalendarUi = UiClass<CalendarUiSlot>;
|
|
425
425
|
/**
|
|
426
|
-
*
|
|
426
|
+
* Properties for the CalendarCompact component.
|
|
427
427
|
*/
|
|
428
428
|
interface CalendarCompactProps<M extends boolean = false> extends CalendarRootProps<M> {
|
|
429
429
|
/**
|
|
430
|
-
*
|
|
430
|
+
* Properties forwarded to the header element.
|
|
431
431
|
*/
|
|
432
432
|
headerProps?: CalendarHeaderProps;
|
|
433
433
|
/**
|
|
434
|
-
*
|
|
434
|
+
* Properties forwarded to the heading element.
|
|
435
435
|
*/
|
|
436
436
|
headingProps?: CalendarHeadingProps;
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* Properties forwarded to the prev element.
|
|
439
439
|
*/
|
|
440
440
|
prevProps?: CalendarPrevProps;
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
442
|
+
* Properties forwarded to the next element.
|
|
443
443
|
*/
|
|
444
444
|
nextProps?: CalendarNextProps;
|
|
445
445
|
/**
|
|
446
|
-
*
|
|
446
|
+
* Properties forwarded to the grid element.
|
|
447
447
|
*/
|
|
448
448
|
gridProps?: CalendarGridProps;
|
|
449
449
|
/**
|
|
450
|
-
*
|
|
450
|
+
* Properties forwarded to the grid head element.
|
|
451
451
|
*/
|
|
452
452
|
gridHeadProps?: CalendarGridHeadProps;
|
|
453
453
|
/**
|
|
454
|
-
*
|
|
454
|
+
* Properties forwarded to the grid body element.
|
|
455
455
|
*/
|
|
456
456
|
gridBodyProps?: CalendarGridBodyProps;
|
|
457
457
|
/**
|
|
458
|
-
*
|
|
458
|
+
* Properties forwarded to the grid row element.
|
|
459
459
|
*/
|
|
460
460
|
gridRowProps?: CalendarGridRowProps;
|
|
461
461
|
/**
|
|
462
|
-
*
|
|
462
|
+
* Properties forwarded to the head cell element.
|
|
463
463
|
*/
|
|
464
464
|
headCellProps?: CalendarHeadCellProps;
|
|
465
465
|
/**
|
|
466
|
-
*
|
|
466
|
+
* Properties forwarded to the cell element.
|
|
467
467
|
*/
|
|
468
468
|
cellProps?: Omit<CalendarCellProps, 'date'>;
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* Properties forwarded to the cell trigger element.
|
|
471
471
|
*/
|
|
472
472
|
cellTriggerProps?: Omit<CalendarCellTriggerProps, 'day' | 'month'>;
|
|
473
473
|
}
|
|
474
474
|
/**
|
|
475
|
-
*
|
|
475
|
+
* Events for the CalendarCompact component.
|
|
476
476
|
*/
|
|
477
477
|
type CalendarCompactEmits<M extends boolean = false> = CalendarRootEmits<M>;
|
|
478
478
|
/**
|
|
479
|
-
* Slots for the
|
|
479
|
+
* Slots for the CalendarCompact component.
|
|
480
480
|
*/
|
|
481
481
|
type CalendarCompactSlots<M extends boolean = false> = {
|
|
482
482
|
/**
|
|
@@ -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;
|
|
@@ -4,51 +4,51 @@ import { HTMLAttributes } from "vue";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/card/types.d.ts
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Properties for the CardRoot component.
|
|
8
8
|
*/
|
|
9
9
|
interface CardRootProps extends CollapsibleRootProps {}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Events for the CardRoot component.
|
|
12
12
|
*/
|
|
13
13
|
type CardRootEmits = CollapsibleRootEmits;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Properties for the CardHeader component.
|
|
16
16
|
*/
|
|
17
17
|
interface CardHeaderProps extends /** @vue-ignore */HTMLAttributes {}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Properties for the CardContent component.
|
|
20
20
|
*/
|
|
21
21
|
interface CardContentProps extends CollapsibleContentProps {}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Properties for the CardFooter component.
|
|
24
24
|
*/
|
|
25
25
|
interface CardFooterProps extends /** @vue-ignore */HTMLAttributes {}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Properties for the CardTitleRoot component.
|
|
28
28
|
*/
|
|
29
29
|
interface CardTitleRootProps extends /** @vue-ignore */HTMLAttributes {}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Properties for the CardTitle component.
|
|
32
32
|
*/
|
|
33
33
|
interface CardTitleProps extends /** @vue-ignore */HTMLAttributes {}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Properties for the CardDescription component.
|
|
36
36
|
*/
|
|
37
37
|
interface CardDescriptionProps extends /** @vue-ignore */HTMLAttributes {}
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Properties for the CardCollapsibleTrigger component.
|
|
40
40
|
*/
|
|
41
41
|
interface CardCollapsibleTriggerProps extends CollapsibleTriggerProps {}
|
|
42
42
|
/**
|
|
43
|
-
* Available UI slots for the
|
|
43
|
+
* Available UI slots for the Card component.
|
|
44
44
|
*/
|
|
45
45
|
type CardUiSlot = 'root' | 'header' | 'content' | 'footer' | 'titleRoot' | 'title' | 'description' | 'trigger';
|
|
46
46
|
/**
|
|
47
|
-
* UI class overrides for the
|
|
47
|
+
* UI class overrides for the Card component.
|
|
48
48
|
*/
|
|
49
49
|
type CardUi = UiClass<CardUiSlot>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Properties for the CardCompact component.
|
|
52
52
|
*/
|
|
53
53
|
interface CardCompactProps extends CardRootProps {
|
|
54
54
|
/**
|
|
@@ -60,36 +60,36 @@ interface CardCompactProps extends CardRootProps {
|
|
|
60
60
|
*/
|
|
61
61
|
description?: string;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Properties forwarded to the header element.
|
|
64
64
|
*/
|
|
65
65
|
headerProps?: CardHeaderProps;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Properties forwarded to the content element.
|
|
68
68
|
*/
|
|
69
69
|
contentProps?: CardContentProps;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Properties forwarded to the footer element.
|
|
72
72
|
*/
|
|
73
73
|
footerProps?: CardFooterProps;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Properties forwarded to the title root element.
|
|
76
76
|
*/
|
|
77
77
|
titleRootProps?: CardTitleRootProps;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Properties forwarded to the title element.
|
|
80
80
|
*/
|
|
81
81
|
titleProps?: CardTitleProps;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Properties forwarded to the description element.
|
|
84
84
|
*/
|
|
85
85
|
descriptionProps?: CardDescriptionProps;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Events for the CardCompact component.
|
|
89
89
|
*/
|
|
90
90
|
type CardCompactEmits = CardRootEmits;
|
|
91
91
|
/**
|
|
92
|
-
* Slots for the
|
|
92
|
+
* Slots for the CardCompact component.
|
|
93
93
|
*/
|
|
94
94
|
interface CardCompactSlots {
|
|
95
95
|
/**
|
|
@@ -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 };
|
|
@@ -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};
|