@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
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
-
import { AsTag } from "../primitive/types.js";
|
|
3
|
-
import { ButtonType } from "../button/types.js";
|
|
4
1
|
import { CarouselNextProps } from "./types.js";
|
|
5
2
|
import * as _$vue from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/carousel/carousel-next.vue.d.ts
|
|
8
|
-
declare var __VLS_10: {
|
|
9
|
-
dir: Direction;
|
|
10
|
-
orientation: DataOrientation;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare var __VLS_10: {};
|
|
13
6
|
type __VLS_Slots = {} & {
|
|
14
7
|
default?: (props: typeof __VLS_10) => any;
|
|
15
8
|
};
|
|
16
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNextProps> & Readonly<{}>, {
|
|
17
|
-
type: ButtonType;
|
|
18
|
-
as: AsTag | _$vue.Component;
|
|
19
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselNextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselNextProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
11
|
declare const _default: typeof __VLS_export;
|
|
22
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../button/button.js";import"../button/index.js";import{useCarouselRootContext as
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import"../button/index.js";import{useCarouselRootContext as r,useCarouselUi as i}from"./context.js";import{computed as a,createBlock as o,createElementVNode as s,createVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,unref as p,useAttrs as m,withCtx as h}from"vue";const g=l({name:`CarouselPrevious`,__name:`carousel-previous`,props:{type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(l){let g=l,_=m(),v=e(g,[`disabled`]),y=i(`previous`),{canScrollPrev:b,contentId:x,scrollPrev:S}=r(`CarouselPrevious`),C=a(()=>g.disabled||!b.value),w=a(()=>_[`aria-label`]??`Previous slide`);return(e,r)=>(d(),o(p(n),u(p(v),{class:p(y),disabled:C.value,"aria-controls":p(x)||void 0,"aria-label":w.value,"data-soybean-carousel-previous":``,onClick:p(S)}),{default:h(()=>[f(e.$slots,`default`,{},()=>[c(t,{icon:`lucide:arrow-left`,"aria-hidden":!0}),r[0]||(r[0]=s(`span`,{class:`soybean-headless-sr-only`},`Previous slide`,-1))])]),_:3},16,[`class`,`disabled`,`aria-controls`,`aria-label`,`onClick`]))}});export{g as default};
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import { DataOrientation, Direction } from "../../types/common.js";
|
|
2
|
-
import { AsTag } from "../primitive/types.js";
|
|
3
|
-
import { ButtonType } from "../button/types.js";
|
|
4
1
|
import { CarouselPreviousProps } from "./types.js";
|
|
5
2
|
import * as _$vue from "vue";
|
|
6
3
|
|
|
7
4
|
//#region src/components/carousel/carousel-previous.vue.d.ts
|
|
8
|
-
declare var __VLS_10: {
|
|
9
|
-
dir: Direction;
|
|
10
|
-
orientation: DataOrientation;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
5
|
+
declare var __VLS_10: {};
|
|
13
6
|
type __VLS_Slots = {} & {
|
|
14
7
|
default?: (props: typeof __VLS_10) => any;
|
|
15
8
|
};
|
|
16
|
-
declare const __VLS_base: _$vue.DefineComponent<CarouselPreviousProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselPreviousProps> & Readonly<{}>, {
|
|
17
|
-
type: ButtonType;
|
|
18
|
-
as: AsTag | _$vue.Component;
|
|
19
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<CarouselPreviousProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<CarouselPreviousProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
20
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
11
|
declare const _default: typeof __VLS_export;
|
|
22
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useDirection as t}from"../config-provider/context.js";import{provideCarouselRootContext as n,useCarouselUi as r}from"./context.js";import{useEmblaCarousel as i}from"./hooks.js";import{computed as a,createElementBlock as o,defineComponent as s,normalizeClass as c,onWatcherCleanup as l,openBlock as u,renderSlot as d,shallowRef as f,unref as p,useAttrs as m,watch as h,watchEffect as g}from"vue";const _=[`dir`,`data-orientation`,`aria-label`,`tabindex`],v=s({name:`CarouselRoot`,__name:`carousel-root`,props:{dir:{},orientation:{default:`horizontal`},options:{},plugins:{}},emits:[`init`],setup(s,{expose:v,emit:y}){let b=s,x=y,S=m(),C=r(`root`),[w,T]=e(),E=f({}),D=f([]),O=i(w,E,D),k=t(()=>b.dir),A=a(()=>S[`aria-labelledby`]?void 0:S[`aria-label`]??`Carousel`),j=a(()=>b.tabindex??0),M=f(!1),N=f(!1),P=f(0),F=f([]),I=f(0);function L(e){M.value=e?.canScrollNext()??!1,N.value=e?.canScrollPrev()??!1,P.value=e?.selectedScrollSnap()??0,F.value=e?.scrollSnapList()??[],I.value=R()}function R(){return F.value.length<=1?0:P.value/(F.value.length-1)*100}function z(){O.value?.scrollNext()}function B(){O.value?.scrollPrev()}function V(e,t){O.value?.scrollTo(e,t)}function H(e){if(e.target!==e.currentTarget)return;let t=b.orientation===`vertical`?`ArrowUp`:k.value===`rtl`?`ArrowRight`:`ArrowLeft`,n=b.orientation===`vertical`?`ArrowDown`:k.value===`rtl`?`ArrowLeft`:`ArrowRight`;if(e.key===t){e.preventDefault(),B();return}e.key===n&&(e.preventDefault(),z())}return g(()=>{E.value={...b.options,axis:b.orientation===`horizontal`?`x`:`y`,direction:k.value}}),g(()=>{D.value=b.plugins??[]}),h(O,e=>{if(L(e),!e)return;let t=e=>{L(e)},n=e=>{L(e)};e.on(`select`,t),e.on(`reInit`,n),x(`init`,e),l(()=>{e.off(`select`,t),e.off(`reInit`,n)})},{immediate:!0}),n({carousel:O,canScrollNext:M,canScrollPrev:N,selectedIndex:P,scrollSnaps:F,progress:I,setCarouselRef:T,scrollNext:z,scrollPrev:B,scrollTo:V}),v({carousel:O,scrollNext:z,scrollPrev:B,scrollTo:V}),(e,t)=>(u(),o(`div`,{class:c(p(C)),dir:p(k),"data-orientation":s.orientation,"aria-label":A.value,tabindex:j.value,"data-soybean-carousel-root":``,role:`region`,"aria-roledescription":`carousel`,onKeydown:H},[d(e.$slots,`default`,{carousel:p(O),canScrollNext:M.value,canScrollPrev:N.value,selectedIndex:P.value,scrollSnaps:F.value,progress:I.value,scrollNext:z,scrollPrev:B,scrollTo:V})],42,_))}});export{v as default};
|
|
@@ -1,43 +1,21 @@
|
|
|
1
|
-
import { DataOrientation
|
|
2
|
-
import { EmblaCarouselType } from "
|
|
3
|
-
import { CarouselRootProps } from "./types.js";
|
|
1
|
+
import { DataOrientation } from "../../types/common.js";
|
|
2
|
+
import { CarouselRootProps, CarouselRootSlots, EmblaCarouselType } from "./types.js";
|
|
4
3
|
import * as _$vue from "vue";
|
|
5
4
|
|
|
6
5
|
//#region src/components/carousel/carousel-root.vue.d.ts
|
|
6
|
+
type __VLS_Slots = CarouselRootSlots;
|
|
7
7
|
declare function scrollNext(): void;
|
|
8
8
|
declare function scrollPrev(): void;
|
|
9
9
|
declare function scrollTo(index: number, jump?: boolean): void;
|
|
10
|
-
declare var __VLS_1: {
|
|
11
|
-
carouselApi: EmblaCarouselType | undefined;
|
|
12
|
-
canScrollNext: boolean;
|
|
13
|
-
canScrollPrev: boolean;
|
|
14
|
-
selectedIndex: number;
|
|
15
|
-
scrollSnaps: number[];
|
|
16
|
-
scrollNext: typeof scrollNext;
|
|
17
|
-
scrollPrev: typeof scrollPrev;
|
|
18
|
-
scrollTo: typeof scrollTo;
|
|
19
|
-
orientation: DataOrientation;
|
|
20
|
-
dir: Direction;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_Slots = {} & {
|
|
23
|
-
default?: (props: typeof __VLS_1) => any;
|
|
24
|
-
};
|
|
25
10
|
declare const __VLS_base: _$vue.DefineComponent<CarouselRootProps, {
|
|
26
|
-
|
|
27
|
-
orientation: _$vue.ComputedRef<DataOrientation>;
|
|
28
|
-
carouselApi: _$vue.Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
29
|
-
carouselRef: _$vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
30
|
-
canScrollNext: _$vue.ShallowRef<boolean, boolean>;
|
|
31
|
-
canScrollPrev: _$vue.ShallowRef<boolean, boolean>;
|
|
32
|
-
selectedIndex: _$vue.ShallowRef<number, number>;
|
|
33
|
-
scrollSnaps: _$vue.ShallowRef<number[], number[]>;
|
|
11
|
+
carousel: _$vue.ShallowRef<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
|
|
34
12
|
scrollNext: typeof scrollNext;
|
|
35
13
|
scrollPrev: typeof scrollPrev;
|
|
36
14
|
scrollTo: typeof scrollTo;
|
|
37
15
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
38
|
-
|
|
16
|
+
init: (carousel: EmblaCarouselType) => any;
|
|
39
17
|
}, string, _$vue.PublicProps, Readonly<CarouselRootProps> & Readonly<{
|
|
40
|
-
|
|
18
|
+
onInit?: ((carousel: EmblaCarouselType) => any) | undefined;
|
|
41
19
|
}>, {
|
|
42
20
|
orientation: DataOrientation;
|
|
43
21
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,7 +2,6 @@ import { UiClass } from "../../types/common.js";
|
|
|
2
2
|
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
3
|
import { CarouselUiSlot } from "./types.js";
|
|
4
4
|
import * as _$vue from "vue";
|
|
5
|
-
|
|
6
5
|
//#region src/components/carousel/context.d.ts
|
|
7
6
|
declare const provideCarouselUi: (ui: _$vue.ComputedRef<Partial<UiClass<CarouselUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CarouselUiSlot>>>, useCarouselUi: UseUiConsumer<CarouselUiSlot>;
|
|
8
7
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{
|
|
1
|
+
import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{shallowRef as n}from"vue";const[r,i]=e(`CarouselRoot`,e=>{let t=n(``),r=e=>{t.value=e};return{...e,contentId:t,setContentId:r}}),[a,o]=t(`CarouselUi`);export{r as provideCarouselRootContext,a as provideCarouselUi,i as useCarouselRootContext,o as useCarouselUi};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{onBeforeUnmount as e,shallowRef as t,toRef as n,unref as r,watch as i}from"vue";import a from"embla-carousel";import{areOptionsEqual as o,arePluginsEqual as s}from"embla-carousel-reactive-utils";function c(c,l={},u=[]){let d=n(()=>r(l)),f=n(()=>r(u)),p=d.value,m=f.value,h=t();function g(){h.value&&h.value.reInit(p,m)}function _(){h.value&&(h.value.destroy(),h.value=void 0)}return i(c,e=>{_(),e&&(h.value=a(e,p,m))},{flush:`post`,immediate:!0}),i(d,e=>{o(p,e)||(p=e,g())}),i(f,e=>{s(m,e)||(m=e,g())}),e(()=>{_()}),h}export{c as useEmblaCarousel};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { EmblaPluginType } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { _default } from "./carousel-content.vue.js";
|
|
5
|
-
import { _default as _default$1 } from "./carousel-
|
|
6
|
-
import { _default as _default$
|
|
7
|
-
import { _default as _default$3 } from "./carousel-
|
|
8
|
-
import { _default as _default$
|
|
1
|
+
import { CarouselCompactEmits, CarouselCompactProps, CarouselCompactSlots, CarouselContainerProps, CarouselContentProps, CarouselControlProps, CarouselItemProps, CarouselNavigationProps, CarouselNextProps, CarouselPreviousProps, CarouselRootEmits, CarouselRootProps, CarouselRootSlotProps, CarouselRootSlots, CarouselUi, CarouselUiSlot, EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "./types.js";
|
|
2
|
+
import { _default } from "./carousel-compact.vue.js";
|
|
3
|
+
import { _default as _default$8 } from "./carousel-root.vue.js";
|
|
4
|
+
import { _default as _default$2 } from "./carousel-content.vue.js";
|
|
5
|
+
import { _default as _default$1 } from "./carousel-container.vue.js";
|
|
6
|
+
import { _default as _default$4 } from "./carousel-item.vue.js";
|
|
7
|
+
import { _default as _default$3 } from "./carousel-control.vue.js";
|
|
8
|
+
import { _default as _default$5 } from "./carousel-navigation.vue.js";
|
|
9
|
+
import { _default as _default$6 } from "./carousel-next.vue.js";
|
|
10
|
+
import { _default as _default$7 } from "./carousel-previous.vue.js";
|
|
9
11
|
import { provideCarouselUi } from "./context.js";
|
|
10
|
-
export { type
|
|
12
|
+
export { _default as CarouselCompact, type CarouselCompactEmits, type CarouselCompactProps, type CarouselCompactSlots, _default$1 as CarouselContainer, type CarouselContainerProps, _default$2 as CarouselContent, type CarouselContentProps, _default$3 as CarouselControl, type CarouselControlProps, _default$4 as CarouselItem, type CarouselItemProps, _default$5 as CarouselNavigation, type CarouselNavigationProps, _default$6 as CarouselNext, type CarouselNextProps, _default$7 as CarouselPrevious, type CarouselPreviousProps, _default$8 as CarouselRoot, type CarouselRootEmits, type CarouselRootProps, type CarouselRootSlotProps, type CarouselRootSlots, type CarouselUi, type CarouselUiSlot, type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType, provideCarouselUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideCarouselUi as e}from"./context.js";import t from"./carousel-
|
|
1
|
+
import{provideCarouselUi as e}from"./context.js";import t from"./carousel-root.js";import n from"./carousel-content.js";import r from"./carousel-container.js";import i from"./carousel-item.js";import a from"./carousel-control.js";import o from"./carousel-navigation.js";import s from"./carousel-previous.js";import c from"./carousel-next.js";import l from"./carousel-compact.js";export{l as CarouselCompact,r as CarouselContainer,n as CarouselContent,a as CarouselControl,i as CarouselItem,o as CarouselNavigation,c as CarouselNext,s as CarouselPrevious,t as CarouselRoot,e as provideCarouselUi};
|
|
@@ -1,68 +1,160 @@
|
|
|
1
|
-
import { DataOrientation, Direction, UiClass } from "../../types/common.js";
|
|
1
|
+
import { DataOrientation, DefinedValue, Direction, UiClass } from "../../types/common.js";
|
|
2
2
|
import { ButtonProps } from "../button/types.js";
|
|
3
|
-
import {
|
|
4
|
-
import { EmblaOptionsType } from "
|
|
5
|
-
import { ComputedRef, HTMLAttributes, Ref, ShallowRef } from "vue";
|
|
6
|
-
import { EmblaCarouselVueType } from "embla-carousel-vue";
|
|
3
|
+
import { HTMLAttributes, ShallowRef } from "vue";
|
|
4
|
+
import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "embla-carousel";
|
|
7
5
|
|
|
8
6
|
//#region src/components/carousel/types.d.ts
|
|
9
7
|
/**
|
|
10
|
-
*
|
|
8
|
+
* Properties for the CarouselRoot component.
|
|
11
9
|
*/
|
|
12
10
|
interface CarouselRootProps extends /** @vue-ignore */Omit<HTMLAttributes, 'onSelect'> {
|
|
13
11
|
/**
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
opts?: EmblaOptionsType;
|
|
17
|
-
/**
|
|
18
|
-
* Plugins.
|
|
12
|
+
* Reading direction of the component.
|
|
19
13
|
*/
|
|
20
|
-
|
|
14
|
+
dir?: Direction;
|
|
21
15
|
/**
|
|
22
16
|
* Orientation of the component.
|
|
23
17
|
*/
|
|
24
18
|
orientation?: DataOrientation;
|
|
25
19
|
/**
|
|
26
|
-
*
|
|
20
|
+
* Options.
|
|
27
21
|
*/
|
|
28
|
-
|
|
22
|
+
options?: EmblaOptionsType;
|
|
23
|
+
/**
|
|
24
|
+
* Plugins.
|
|
25
|
+
*/
|
|
26
|
+
plugins?: EmblaPluginType[];
|
|
29
27
|
}
|
|
30
28
|
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
type CarouselApi = NonNullable<EmblaCarouselVueType[1]['value']>;
|
|
34
|
-
/**
|
|
35
|
-
* Emits for the carousel root component.
|
|
29
|
+
* Events for the CarouselRoot component.
|
|
36
30
|
*/
|
|
37
31
|
type CarouselRootEmits = {
|
|
38
32
|
/**
|
|
39
|
-
* Emitted when init
|
|
33
|
+
* Emitted when init occurs.
|
|
40
34
|
*/
|
|
41
|
-
|
|
35
|
+
init: [carousel: EmblaCarouselType];
|
|
42
36
|
};
|
|
43
37
|
/**
|
|
44
|
-
*
|
|
38
|
+
* Slot properties for the CarouselRoot component.
|
|
39
|
+
*/
|
|
40
|
+
interface CarouselRootSlotProps {
|
|
41
|
+
carousel: EmblaCarouselType | undefined;
|
|
42
|
+
canScrollNext: boolean;
|
|
43
|
+
canScrollPrev: boolean;
|
|
44
|
+
selectedIndex: number;
|
|
45
|
+
scrollSnaps: number[];
|
|
46
|
+
progress: number;
|
|
47
|
+
scrollNext: () => void;
|
|
48
|
+
scrollPrev: () => void;
|
|
49
|
+
scrollTo: (index: number, jump?: boolean) => void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Slots for the CarouselRoot component.
|
|
53
|
+
*/
|
|
54
|
+
type CarouselRootSlots = {
|
|
55
|
+
default?: (props: CarouselRootSlotProps) => any;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Properties for the CarouselContent component.
|
|
45
59
|
*/
|
|
46
60
|
interface CarouselContentProps extends /** @vue-ignore */HTMLAttributes {}
|
|
47
61
|
/**
|
|
48
|
-
*
|
|
62
|
+
* Properties for the CarouselContainer component.
|
|
63
|
+
*/
|
|
64
|
+
interface CarouselContainerProps extends /** @vue-ignore */HTMLAttributes {}
|
|
65
|
+
/**
|
|
66
|
+
* Properties for the CarouselItem component.
|
|
49
67
|
*/
|
|
50
68
|
interface CarouselItemProps extends /** @vue-ignore */HTMLAttributes {}
|
|
51
69
|
/**
|
|
52
|
-
*
|
|
70
|
+
* Properties for the CarouselControl component.
|
|
71
|
+
*/
|
|
72
|
+
interface CarouselControlProps extends /** @vue-ignore */HTMLAttributes {}
|
|
73
|
+
/**
|
|
74
|
+
* Properties for the CarouselNavigation component.
|
|
75
|
+
*/
|
|
76
|
+
interface CarouselNavigationProps extends /** @vue-ignore */HTMLAttributes {}
|
|
77
|
+
/**
|
|
78
|
+
* Properties for the CarouselPrevious component.
|
|
53
79
|
*/
|
|
54
80
|
interface CarouselPreviousProps extends ButtonProps {}
|
|
55
81
|
/**
|
|
56
|
-
*
|
|
82
|
+
* Properties for the CarouselNext component.
|
|
57
83
|
*/
|
|
58
84
|
interface CarouselNextProps extends ButtonProps {}
|
|
59
85
|
/**
|
|
60
|
-
*
|
|
86
|
+
* Properties for the CarouselCompact component.
|
|
87
|
+
*/
|
|
88
|
+
interface CarouselCompactProps<T extends DefinedValue = DefinedValue> extends CarouselRootProps {
|
|
89
|
+
/**
|
|
90
|
+
* Slides to be rendered in the carousel.
|
|
91
|
+
*/
|
|
92
|
+
slides: T[];
|
|
93
|
+
/**
|
|
94
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
95
|
+
*/
|
|
96
|
+
contentProps?: CarouselContentProps;
|
|
97
|
+
/**
|
|
98
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
99
|
+
*/
|
|
100
|
+
containerProps?: CarouselContainerProps;
|
|
101
|
+
/**
|
|
102
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
103
|
+
*/
|
|
104
|
+
itemProps?: CarouselItemProps;
|
|
105
|
+
/**
|
|
106
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
107
|
+
*/
|
|
108
|
+
controlProps?: CarouselControlProps;
|
|
109
|
+
/**
|
|
110
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
111
|
+
*/
|
|
112
|
+
navigationProps?: CarouselNavigationProps;
|
|
113
|
+
/**
|
|
114
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
115
|
+
*/
|
|
116
|
+
previousProps?: CarouselPreviousProps;
|
|
117
|
+
/**
|
|
118
|
+
* Per-slot properties for the component, allowing you to pass props directly to the sub components without needing to use the `v-slot` API. This is useful for quickly customizing the sub components without needing to use the full flexibility of slots.
|
|
119
|
+
*/
|
|
120
|
+
nextProps?: CarouselNextProps;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Events for the CarouselCompact component.
|
|
124
|
+
*/
|
|
125
|
+
type CarouselCompactEmits = CarouselRootEmits;
|
|
126
|
+
/**
|
|
127
|
+
* Slots for the CarouselCompact component.
|
|
128
|
+
*/
|
|
129
|
+
type CarouselCompactSlots<T extends DefinedValue = DefinedValue> = {
|
|
130
|
+
/**
|
|
131
|
+
* Default slot for the carousel component, which can be used to render custom content in the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
132
|
+
*/
|
|
133
|
+
item?: (props: CarouselRootSlotProps & {
|
|
134
|
+
slide: T;
|
|
135
|
+
index: number;
|
|
136
|
+
selected: boolean;
|
|
137
|
+
}) => any;
|
|
138
|
+
/**
|
|
139
|
+
* Control slot for the carousel component, which can be used to render custom controls for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
140
|
+
*/
|
|
141
|
+
control?: (props: CarouselRootSlotProps) => any;
|
|
142
|
+
/**
|
|
143
|
+
* Navigation slot for the carousel component, which can be used to render custom navigation for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
144
|
+
*/
|
|
145
|
+
previous?: (props: CarouselRootSlotProps) => any;
|
|
146
|
+
/**
|
|
147
|
+
* Next slot for the carousel component, which can be used to render custom next controls for the carousel. The slot props include all the necessary information and methods to control the carousel, such as the carousel instance, whether it can scroll next or prev, the selected index, scroll snaps, progress, and methods to scroll next, prev, or to a specific index.
|
|
148
|
+
*/
|
|
149
|
+
next?: (props: CarouselRootSlotProps) => any;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Available UI slots for the Carousel component.
|
|
61
153
|
*/
|
|
62
|
-
type CarouselUiSlot = 'root' | 'content' | 'container' | 'item' | 'previous' | 'next';
|
|
154
|
+
type CarouselUiSlot = 'root' | 'content' | 'container' | 'item' | 'control' | 'navigation' | 'previous' | 'next';
|
|
63
155
|
/**
|
|
64
|
-
* UI class overrides for the
|
|
156
|
+
* UI class overrides for the Carousel component.
|
|
65
157
|
*/
|
|
66
158
|
type CarouselUi = UiClass<CarouselUiSlot>;
|
|
67
159
|
//#endregion
|
|
68
|
-
export {
|
|
160
|
+
export { CarouselCompactEmits, CarouselCompactProps, CarouselCompactSlots, CarouselContainerProps, CarouselContentProps, CarouselControlProps, CarouselItemProps, CarouselNavigationProps, CarouselNextProps, CarouselPreviousProps, CarouselRootEmits, CarouselRootProps, CarouselRootSlotProps, CarouselRootSlots, CarouselUi, CarouselUiSlot, type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType };
|
|
@@ -8,7 +8,7 @@ import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "v
|
|
|
8
8
|
|
|
9
9
|
//#region src/components/checkbox/types.d.ts
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Properties for the CheckboxRoot component.
|
|
12
12
|
*/
|
|
13
13
|
interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
14
14
|
/**
|
|
@@ -33,24 +33,24 @@ interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTML
|
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Events for the CheckboxRoot component.
|
|
37
37
|
*/
|
|
38
38
|
type CheckboxRootEmits = {
|
|
39
39
|
/** Event handler called when the value of the checkbox changes. */'update:modelValue': [value: CheckedState | null];
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Properties for the CheckboxControl component.
|
|
43
43
|
*/
|
|
44
44
|
interface CheckboxControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
45
45
|
/** Id of the element */
|
|
46
46
|
id?: string;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Properties for the CheckboxIndicator component.
|
|
50
50
|
*/
|
|
51
51
|
interface CheckboxIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
52
52
|
/**
|
|
53
|
-
* Option data for the
|
|
53
|
+
* Option data for the CheckboxGroup component.
|
|
54
54
|
*/
|
|
55
55
|
type CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> = {
|
|
56
56
|
/**
|
|
@@ -67,7 +67,7 @@ type CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> = {
|
|
|
67
67
|
disabled?: boolean;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
|
-
* Option data for the
|
|
70
|
+
* Option data for the CheckboxCardGroup component.
|
|
71
71
|
*/
|
|
72
72
|
type CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> = CheckboxGroupOptionData<T> & {
|
|
73
73
|
/**
|
|
@@ -80,7 +80,7 @@ type CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> = Checkb
|
|
|
80
80
|
description?: string;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Properties for the CheckboxGroupRoot component.
|
|
84
84
|
*/
|
|
85
85
|
interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus' | 'as' | 'asChild'>, FormFieldCommonProps {
|
|
86
86
|
/** The controlled value of the checkbox. Can be bound with v-model. */
|
|
@@ -101,13 +101,13 @@ interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends
|
|
|
101
101
|
disabled?: boolean;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Events for the CheckboxGroupRoot component.
|
|
105
105
|
*/
|
|
106
106
|
type CheckboxGroupRootEmits<T extends DefinedValue = DefinedValue> = {
|
|
107
107
|
/** Event handler called when the value of the checkbox group changes. */'update:modelValue': [value: T[]];
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Properties for the CheckboxCompact component.
|
|
111
111
|
*/
|
|
112
112
|
interface CheckboxCompactProps extends CheckboxRootProps {
|
|
113
113
|
/**
|
|
@@ -115,24 +115,24 @@ interface CheckboxCompactProps extends CheckboxRootProps {
|
|
|
115
115
|
*/
|
|
116
116
|
label?: string;
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Properties forwarded to the control element.
|
|
119
119
|
*/
|
|
120
120
|
controlProps?: CheckboxControlProps;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Properties forwarded to the indicator element.
|
|
123
123
|
*/
|
|
124
124
|
indicatorProps?: CheckboxIndicatorProps;
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Properties forwarded to the label element.
|
|
127
127
|
*/
|
|
128
128
|
labelProps?: LabelProps;
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Events for the CheckboxCompact component.
|
|
132
132
|
*/
|
|
133
133
|
type CheckboxCompactEmits = CheckboxRootEmits;
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* Properties for the CheckboxCardCompact component.
|
|
136
136
|
*/
|
|
137
137
|
interface CheckboxCardCompactProps extends CheckboxCompactProps {
|
|
138
138
|
/**
|
|
@@ -145,11 +145,11 @@ interface CheckboxCardCompactProps extends CheckboxCompactProps {
|
|
|
145
145
|
description?: string;
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Events for the CheckboxCardCompact component.
|
|
149
149
|
*/
|
|
150
150
|
type CheckboxCardCompactEmits = CheckboxCompactEmits;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Properties for the CheckboxGroupCompact component.
|
|
153
153
|
*/
|
|
154
154
|
interface CheckboxGroupCompactProps<T extends CheckboxGroupOptionData = CheckboxGroupOptionData> extends CheckboxGroupRootProps<T['value']> {
|
|
155
155
|
/**
|
|
@@ -157,48 +157,48 @@ interface CheckboxGroupCompactProps<T extends CheckboxGroupOptionData = Checkbox
|
|
|
157
157
|
*/
|
|
158
158
|
items: T[];
|
|
159
159
|
/**
|
|
160
|
-
*
|
|
160
|
+
* Properties forwarded to the root element.
|
|
161
161
|
*/
|
|
162
162
|
rootProps?: CheckboxRootProps;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Properties forwarded to the control element.
|
|
165
165
|
*/
|
|
166
166
|
controlProps?: CheckboxControlProps;
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
168
|
+
* Properties forwarded to the indicator element.
|
|
169
169
|
*/
|
|
170
170
|
indicatorProps?: CheckboxIndicatorProps;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Properties forwarded to the label element.
|
|
173
173
|
*/
|
|
174
174
|
labelProps?: LabelProps;
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
177
|
+
* Properties for the CheckboxCardGroupCompact component.
|
|
178
178
|
*/
|
|
179
179
|
interface CheckboxCardGroupCompactProps<T extends CheckboxCardGroupOptionData = CheckboxCardGroupOptionData> extends CheckboxGroupCompactProps<T> {}
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Events for the CheckboxGroupCompact component.
|
|
182
182
|
*/
|
|
183
183
|
type CheckboxGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Events for the CheckboxCardGroupCompact component.
|
|
186
186
|
*/
|
|
187
187
|
type CheckboxCardGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
188
188
|
/**
|
|
189
|
-
* Available UI slots for the
|
|
189
|
+
* Available UI slots for the Checkbox component.
|
|
190
190
|
*/
|
|
191
191
|
type CheckboxUiSlot = 'groupRoot' | 'root' | 'indicator' | 'indicator-icon' | 'label' | 'control';
|
|
192
192
|
/**
|
|
193
|
-
* Available UI slots for the
|
|
193
|
+
* Available UI slots for the CheckboxCard component.
|
|
194
194
|
*/
|
|
195
195
|
type CheckboxCardUiSlot = CheckboxUiSlot | 'content' | 'icon' | 'textContent' | 'description';
|
|
196
196
|
/**
|
|
197
|
-
* UI class overrides for the
|
|
197
|
+
* UI class overrides for the Checkbox component.
|
|
198
198
|
*/
|
|
199
199
|
type CheckboxUi = UiClass<CheckboxUiSlot>;
|
|
200
200
|
/**
|
|
201
|
-
* UI class overrides for the
|
|
201
|
+
* UI class overrides for the CheckboxCard component.
|
|
202
202
|
*/
|
|
203
203
|
type CheckboxCardUi = UiClass<CheckboxCardUiSlot>;
|
|
204
204
|
//#endregion
|
|
@@ -36,11 +36,11 @@ type __VLS_Slots = {} & {
|
|
|
36
36
|
trailing?: (props: typeof __VLS_19) => any;
|
|
37
37
|
};
|
|
38
38
|
declare const __VLS_base: _$vue.DefineComponent<ClipboardProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
39
|
-
click: (event:
|
|
39
|
+
click: (event: PointerEvent) => any;
|
|
40
40
|
copied: (value: string) => any;
|
|
41
41
|
copyError: (error: unknown) => any;
|
|
42
42
|
}, string, _$vue.PublicProps, Readonly<ClipboardProps> & Readonly<{
|
|
43
|
-
onClick?: ((event:
|
|
43
|
+
onClick?: ((event: PointerEvent) => any) | undefined;
|
|
44
44
|
onCopied?: ((value: string) => any) | undefined;
|
|
45
45
|
onCopyError?: ((error: unknown) => any) | undefined;
|
|
46
46
|
}>, {
|
|
@@ -3,11 +3,11 @@ import { ButtonProps } from "../button/types.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/clipboard/types.d.ts
|
|
5
5
|
/**
|
|
6
|
-
* State values for
|
|
6
|
+
* State values for ClipboardState.
|
|
7
7
|
*/
|
|
8
8
|
type ClipboardState = 'ready' | 'copied' | 'unsupported';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Properties for the Clipboard component.
|
|
11
11
|
*/
|
|
12
12
|
interface ClipboardProps extends ButtonProps {
|
|
13
13
|
/**
|
|
@@ -52,7 +52,7 @@ interface ClipboardProps extends ButtonProps {
|
|
|
52
52
|
copiedText?: string;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Slot
|
|
55
|
+
* Slot properties for the Clipboard component.
|
|
56
56
|
*/
|
|
57
57
|
interface ClipboardSlotProps {
|
|
58
58
|
/**
|
|
@@ -85,13 +85,13 @@ interface ClipboardSlotProps {
|
|
|
85
85
|
copy: () => Promise<void>;
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Events for the Clipboard component.
|
|
89
89
|
*/
|
|
90
90
|
type ClipboardEmits = {
|
|
91
91
|
/**
|
|
92
92
|
* Emitted when click occurs.
|
|
93
93
|
*/
|
|
94
|
-
click: [event:
|
|
94
|
+
click: [event: PointerEvent];
|
|
95
95
|
/**
|
|
96
96
|
* Emitted when copied occurs.
|
|
97
97
|
*/
|
|
@@ -15,8 +15,8 @@ declare const __VLS_base: _$vue.DefineComponent<CollapsibleRootProps, {
|
|
|
15
15
|
}, string, _$vue.PublicProps, Readonly<CollapsibleRootProps> & Readonly<{
|
|
16
16
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
open: boolean;
|
|
19
18
|
defaultOpen: boolean;
|
|
19
|
+
open: boolean;
|
|
20
20
|
unmountOnHide: boolean;
|
|
21
21
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|