@porsche-design-system/components-vue 3.0.0-rc.1 → 3.0.0-rc.2

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/PorscheDesignSystemProvider.vue.d.ts +11 -3
  3. package/lib/components/AccordionWrapper.vue.d.ts +24 -41
  4. package/lib/components/BannerWrapper.vue.d.ts +25 -50
  5. package/lib/components/ButtonGroupWrapper.vue.d.ts +17 -13
  6. package/lib/components/ButtonPureWrapper.vue.d.ts +35 -80
  7. package/lib/components/ButtonTileWrapper.vue.d.ts +34 -82
  8. package/lib/components/ButtonWrapper.vue.d.ts +29 -57
  9. package/lib/components/CarouselWrapper.vue.d.ts +32 -74
  10. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +23 -39
  11. package/lib/components/ContentWrapperWrapper.vue.d.ts +22 -28
  12. package/lib/components/CrestWrapper.vue.d.ts +15 -23
  13. package/lib/components/DisplayWrapper.vue.d.ts +26 -42
  14. package/lib/components/DividerWrapper.vue.d.ts +18 -30
  15. package/lib/components/FieldsetWrapper.vue.d.ts +24 -40
  16. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +25 -41
  17. package/lib/components/FlexItemWrapper.vue.d.ts +28 -44
  18. package/lib/components/FlexWrapper.vue.d.ts +28 -44
  19. package/lib/components/GridItemWrapper.vue.d.ts +20 -20
  20. package/lib/components/GridWrapper.vue.d.ts +22 -27
  21. package/lib/components/HeadingWrapper.vue.d.ts +26 -42
  22. package/lib/components/HeadlineWrapper.vue.d.ts +26 -42
  23. package/lib/components/IconWrapper.vue.d.ts +22 -50
  24. package/lib/components/IconWrapper.vue.js +8 -8
  25. package/lib/components/InlineNotificationWrapper.vue.d.ts +27 -56
  26. package/lib/components/LinkPureWrapper.vue.d.ts +37 -90
  27. package/lib/components/LinkSocialWrapper.vue.d.ts +25 -45
  28. package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +26 -46
  29. package/lib/components/LinkTileWrapper.vue.d.ts +31 -75
  30. package/lib/components/LinkWrapper.vue.d.ts +30 -62
  31. package/lib/components/MarqueWrapper.vue.d.ts +19 -35
  32. package/lib/components/ModalWrapper.vue.d.ts +22 -43
  33. package/lib/components/ModelSignatureWrapper.vue.d.ts +18 -30
  34. package/lib/components/PaginationWrapper.vue.d.ts +22 -59
  35. package/lib/components/PopoverWrapper.vue.d.ts +22 -30
  36. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +22 -34
  37. package/lib/components/ScrollerWrapper.vue.d.ts +33 -49
  38. package/lib/components/ScrollerWrapper.vue.js +4 -3
  39. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +20 -31
  40. package/lib/components/SegmentedControlWrapper.vue.d.ts +20 -25
  41. package/lib/components/SelectWrapperWrapper.vue.d.ts +27 -55
  42. package/lib/components/SpinnerWrapper.vue.d.ts +16 -24
  43. package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +18 -17
  44. package/lib/components/StepperHorizontalWrapper.vue.d.ts +19 -17
  45. package/lib/components/SwitchWrapper.vue.d.ts +24 -45
  46. package/lib/components/TableBodyWrapper.vue.d.ts +6 -1
  47. package/lib/components/TableCellWrapper.vue.d.ts +16 -12
  48. package/lib/components/TableHeadCellWrapper.vue.d.ts +18 -22
  49. package/lib/components/TableHeadRowWrapper.vue.d.ts +6 -1
  50. package/lib/components/TableHeadWrapper.vue.d.ts +6 -1
  51. package/lib/components/TableRowWrapper.vue.d.ts +6 -1
  52. package/lib/components/TableWrapper.vue.d.ts +18 -19
  53. package/lib/components/TabsBarWrapper.vue.d.ts +25 -42
  54. package/lib/components/TabsItemWrapper.vue.d.ts +9 -8
  55. package/lib/components/TabsWrapper.vue.d.ts +26 -43
  56. package/lib/components/TagDismissibleWrapper.vue.d.ts +22 -30
  57. package/lib/components/TagWrapper.vue.d.ts +22 -30
  58. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +31 -71
  59. package/lib/components/TextListItemWrapper.vue.d.ts +6 -1
  60. package/lib/components/TextListWrapper.vue.d.ts +22 -30
  61. package/lib/components/TextWrapper.vue.d.ts +28 -48
  62. package/lib/components/TextareaWrapperWrapper.vue.d.ts +25 -49
  63. package/lib/components/ToastWrapper.vue.d.ts +12 -12
  64. package/lib/components/WordmarkWrapper.vue.d.ts +19 -35
  65. package/lib/types.d.ts +210 -191
  66. package/package.json +2 -2
@@ -1,21 +1,22 @@
1
- import type { ButtonTileAlign, SelectedAriaAttributes, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
3
+ type PButtonTileProps = {
3
4
  /**
4
5
  * Alignment of button and description.
5
6
  */
6
- align?: "top" | "bottom" | undefined;
7
+ align?: ButtonTileAlign;
7
8
  /**
8
9
  * Add ARIA attributes.
9
10
  */
10
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
11
+ aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
11
12
  /**
12
13
  * Aspect ratio of the button-tile.
13
14
  */
14
- aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
15
+ aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
15
16
  /**
16
17
  * Displays the button-tile as compact version with description and button icon only.
17
18
  */
18
- compact?: BreakpointCustomizable<boolean> | undefined;
19
+ compact?: BreakpointCustomizable<boolean>;
19
20
  /**
20
21
  * Description text.
21
22
  */
@@ -23,19 +24,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
24
  /**
24
25
  * Disables the button. No events will be triggered while disabled state is active.
25
26
  */
26
- disabled?: boolean | undefined;
27
+ disabled?: boolean;
27
28
  /**
28
29
  * Show gradient.
29
30
  */
30
- gradient?: boolean | undefined;
31
+ gradient?: boolean;
31
32
  /**
32
33
  * The icon shown. By choosing 'none', no icon is displayed.
33
34
  */
34
- icon?: import("../types").LinkButtonIconName | undefined;
35
+ icon?: ButtonTileIcon;
35
36
  /**
36
37
  * A URL path to a custom icon.
37
38
  */
38
- iconSource?: string | undefined;
39
+ iconSource?: string;
39
40
  /**
40
41
  * Label of the button.
41
42
  */
@@ -43,20 +44,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
44
  /**
44
45
  * Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
45
46
  */
46
- loading?: boolean | undefined;
47
+ loading?: boolean;
47
48
  /**
48
49
  * Font size of the description.
49
50
  */
50
- size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
51
+ size?: BreakpointCustomizable<ButtonTileSize>;
51
52
  /**
52
53
  * Specifies the type of the button.
53
54
  */
54
- type?: "reset" | "button" | "submit" | undefined;
55
+ type?: ButtonTileType;
55
56
  /**
56
57
  * Font weight of the description.
57
58
  */
58
- weight?: BreakpointCustomizable<"regular" | "semi-bold"> | undefined;
59
- }>, {
59
+ weight?: BreakpointCustomizable<ButtonTileWeight>;
60
+ };
61
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonTileProps>, {
60
62
  align: string;
61
63
  aspectRatio: string;
62
64
  compact: boolean;
@@ -67,64 +69,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
67
69
  size: string;
68
70
  type: string;
69
71
  weight: string;
70
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
71
- /**
72
- * Alignment of button and description.
73
- */
74
- align?: "top" | "bottom" | undefined;
75
- /**
76
- * Add ARIA attributes.
77
- */
78
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
79
- /**
80
- * Aspect ratio of the button-tile.
81
- */
82
- aspectRatio?: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16"> | undefined;
83
- /**
84
- * Displays the button-tile as compact version with description and button icon only.
85
- */
86
- compact?: BreakpointCustomizable<boolean> | undefined;
87
- /**
88
- * Description text.
89
- */
90
- description: string;
91
- /**
92
- * Disables the button. No events will be triggered while disabled state is active.
93
- */
94
- disabled?: boolean | undefined;
95
- /**
96
- * Show gradient.
97
- */
98
- gradient?: boolean | undefined;
99
- /**
100
- * The icon shown. By choosing 'none', no icon is displayed.
101
- */
102
- icon?: import("../types").LinkButtonIconName | undefined;
103
- /**
104
- * A URL path to a custom icon.
105
- */
106
- iconSource?: string | undefined;
107
- /**
108
- * Label of the button.
109
- */
110
- label: string;
111
- /**
112
- * Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
113
- */
114
- loading?: boolean | undefined;
115
- /**
116
- * Font size of the description.
117
- */
118
- size?: BreakpointCustomizable<"default" | "inherit"> | undefined;
119
- /**
120
- * Specifies the type of the button.
121
- */
122
- type?: "reset" | "button" | "submit" | undefined;
123
- /**
124
- * Font weight of the description.
125
- */
126
- weight?: BreakpointCustomizable<"regular" | "semi-bold"> | undefined;
127
- }>, {
72
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonTileProps>, {
128
73
  align: string;
129
74
  aspectRatio: string;
130
75
  compact: boolean;
@@ -136,18 +81,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
136
81
  type: string;
137
82
  weight: string;
138
83
  }>>>, {
139
- weight: BreakpointCustomizable<ButtonTileWeight>;
84
+ weight: BreakpointCustomizable<"regular" | "semi-bold">;
85
+ type: "reset" | "button" | "submit";
140
86
  compact: BreakpointCustomizable<boolean>;
141
- size: BreakpointCustomizable<ButtonTileSize>;
142
- type: ButtonTileType;
87
+ size: BreakpointCustomizable<"default" | "inherit">;
143
88
  disabled: boolean;
144
- icon: ButtonTileIcon;
89
+ icon: import("../types").LinkButtonIconName;
145
90
  loading: boolean;
146
- align: ButtonTileAlign;
147
- aspectRatio: BreakpointCustomizable<ButtonTileAspectRatio>;
91
+ align: "top" | "bottom";
92
+ aspectRatio: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">;
148
93
  gradient: boolean;
149
94
  }>, {
150
- default: (_: {}) => any;
95
+ default?(_: {}): any;
151
96
  }>;
152
97
  export default _default;
153
98
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -160,12 +105,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
160
105
  };
161
106
  };
162
107
  type __VLS_WithDefaults<P, D> = {
163
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
108
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
164
109
  default: D[K];
165
- } : P[K];
110
+ }> : P[K];
166
111
  };
167
112
  type __VLS_WithTemplateSlots<T, S> = T & {
168
113
  new (): {
169
114
  $slots: S;
115
+ $props: __VLS_PropsChildren<S>;
170
116
  };
171
117
  };
118
+ type __VLS_PropsChildren<S> = {
119
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
120
+ };
121
+ type __VLS_Prettify<T> = {
122
+ [K in keyof T]: T[K];
123
+ } & {};
@@ -1,42 +1,44 @@
1
- import type { SelectedAriaAttributes, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
3
+ type PButtonProps = {
3
4
  /**
4
5
  * Add ARIA attributes.
5
6
  */
6
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
7
+ aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
7
8
  /**
8
9
  * Disables the button. No events will be triggered while disabled state is active.
9
10
  */
10
- disabled?: boolean | undefined;
11
+ disabled?: boolean;
11
12
  /**
12
13
  * Show or hide label. For better accessibility it is recommended to show the label.
13
14
  */
14
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
15
+ hideLabel?: BreakpointCustomizable<boolean>;
15
16
  /**
16
17
  * The icon shown. By choosing 'none', no icon is displayed.
17
18
  */
18
- icon?: import("../types").LinkButtonIconName | undefined;
19
+ icon?: ButtonIcon;
19
20
  /**
20
21
  * A URL path to a custom icon.
21
22
  */
22
- iconSource?: string | undefined;
23
+ iconSource?: string;
23
24
  /**
24
25
  * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
25
26
  */
26
- loading?: boolean | undefined;
27
+ loading?: boolean;
27
28
  /**
28
29
  * Adapts the button color depending on the theme.
29
30
  */
30
- theme?: "light" | "dark" | undefined;
31
+ theme?: Theme;
31
32
  /**
32
33
  * Specifies the type of the button.
33
34
  */
34
- type?: "reset" | "button" | "submit" | undefined;
35
+ type?: ButtonType;
35
36
  /**
36
37
  * The style variant of the button.
37
38
  */
38
- variant?: "primary" | "secondary" | "tertiary" | undefined;
39
- }>, {
39
+ variant?: ButtonVariant;
40
+ };
41
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonProps>, {
40
42
  disabled: boolean;
41
43
  hideLabel: boolean;
42
44
  icon: string;
@@ -44,44 +46,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
46
  theme: string;
45
47
  type: string;
46
48
  variant: string;
47
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
48
- /**
49
- * Add ARIA attributes.
50
- */
51
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
52
- /**
53
- * Disables the button. No events will be triggered while disabled state is active.
54
- */
55
- disabled?: boolean | undefined;
56
- /**
57
- * Show or hide label. For better accessibility it is recommended to show the label.
58
- */
59
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
60
- /**
61
- * The icon shown. By choosing 'none', no icon is displayed.
62
- */
63
- icon?: import("../types").LinkButtonIconName | undefined;
64
- /**
65
- * A URL path to a custom icon.
66
- */
67
- iconSource?: string | undefined;
68
- /**
69
- * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
70
- */
71
- loading?: boolean | undefined;
72
- /**
73
- * Adapts the button color depending on the theme.
74
- */
75
- theme?: "light" | "dark" | undefined;
76
- /**
77
- * Specifies the type of the button.
78
- */
79
- type?: "reset" | "button" | "submit" | undefined;
80
- /**
81
- * The style variant of the button.
82
- */
83
- variant?: "primary" | "secondary" | "tertiary" | undefined;
84
- }>, {
49
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonProps>, {
85
50
  disabled: boolean;
86
51
  hideLabel: boolean;
87
52
  icon: string;
@@ -90,15 +55,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
90
55
  type: string;
91
56
  variant: string;
92
57
  }>>>, {
93
- theme: Theme;
94
- type: ButtonType;
58
+ type: "reset" | "button" | "submit";
59
+ theme: "light" | "dark";
95
60
  disabled: boolean;
96
61
  hideLabel: BreakpointCustomizable<boolean>;
97
- icon: ButtonIcon;
62
+ icon: import("../types").LinkButtonIconName;
98
63
  loading: boolean;
99
- variant: ButtonVariant;
64
+ variant: "primary" | "secondary" | "tertiary";
100
65
  }>, {
101
- default: (_: {}) => any;
66
+ default?(_: {}): any;
102
67
  }>;
103
68
  export default _default;
104
69
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -111,12 +76,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
111
76
  };
112
77
  };
113
78
  type __VLS_WithDefaults<P, D> = {
114
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
79
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
115
80
  default: D[K];
116
- } : P[K];
81
+ }> : P[K];
117
82
  };
118
83
  type __VLS_WithTemplateSlots<T, S> = T & {
119
84
  new (): {
120
85
  $slots: S;
86
+ $props: __VLS_PropsChildren<S>;
121
87
  };
122
88
  };
89
+ type __VLS_PropsChildren<S> = {
90
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
91
+ };
92
+ type __VLS_Prettify<T> = {
93
+ [K in keyof T]: T[K];
94
+ } & {};
@@ -1,55 +1,57 @@
1
- import type { CarouselAlignHeader, BreakpointCustomizable, CarouselUpdateEvent, Theme, CarouselWidth } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { CarouselAlignHeader, BreakpointCustomizable, CarouselInternationalization, CarouselUpdateEvent, Theme, CarouselWidth } from '../types';
3
+ type PCarouselProps = {
3
4
  /**
4
5
  * Defines which slide to be active (zero-based numbering).
5
6
  */
6
- activeSlideIndex?: number | undefined;
7
+ activeSlideIndex?: number;
7
8
  /**
8
9
  * Alignment of heading and description
9
10
  */
10
- alignHeader?: "center" | "left" | undefined;
11
+ alignHeader?: CarouselAlignHeader;
11
12
  /**
12
13
  * Defines the description used in the carousel.
13
14
  */
14
- description?: string | undefined;
15
+ description?: string;
15
16
  /**
16
17
  * @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
17
18
  */
18
- disablePagination?: BreakpointCustomizable<boolean> | undefined;
19
+ disablePagination?: BreakpointCustomizable<boolean>;
19
20
  /**
20
21
  * Defines the heading used in the carousel.
21
22
  */
22
- heading?: string | undefined;
23
+ heading?: string;
23
24
  /**
24
25
  * Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
25
26
  */
26
- intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
27
+ intl?: CarouselInternationalization;
27
28
  /**
28
29
  * If false, the carousel will not show pagination bullets at the bottom.
29
30
  */
30
- pagination?: BreakpointCustomizable<boolean> | undefined;
31
+ pagination?: BreakpointCustomizable<boolean>;
31
32
  /**
32
33
  * Whether the slides should rewind from last to first slide and vice versa.
33
34
  */
34
- rewind?: boolean | undefined;
35
+ rewind?: boolean;
35
36
  /**
36
37
  * Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
37
38
  */
38
- slidesPerPage?: "auto" | BreakpointCustomizable<number> | undefined;
39
+ slidesPerPage?: BreakpointCustomizable<number> | "auto";
39
40
  /**
40
41
  * Adapts the color when used on dark background.
41
42
  */
42
- theme?: "light" | "dark" | undefined;
43
+ theme?: Theme;
43
44
  /**
44
45
  * Defines the outer spacings between the carousel and the left and right screen sides.
45
46
  */
46
- width?: "extended" | "basic" | undefined;
47
+ width?: CarouselWidth;
47
48
  /**
48
49
  * Has no effect anymore
49
50
  * @deprecated since v3.0.0, will be removed with next major release
50
51
  */
51
- wrapContent?: boolean | undefined;
52
- }>, {
52
+ wrapContent?: boolean;
53
+ };
54
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCarouselProps>, {
53
55
  activeSlideIndex: number;
54
56
  alignHeader: string;
55
57
  pagination: boolean;
@@ -59,59 +61,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
59
61
  width: string;
60
62
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
61
63
  carouselChange: (value: CarouselUpdateEvent) => void;
62
- } & {
63
64
  update: (value: CarouselUpdateEvent) => void;
64
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
65
- /**
66
- * Defines which slide to be active (zero-based numbering).
67
- */
68
- activeSlideIndex?: number | undefined;
69
- /**
70
- * Alignment of heading and description
71
- */
72
- alignHeader?: "center" | "left" | undefined;
73
- /**
74
- * Defines the description used in the carousel.
75
- */
76
- description?: string | undefined;
77
- /**
78
- * @deprecated since v3.0.0, will be removed with next major release, use `pagination` instead. If true, the carousel will not show pagination bullets at the bottom.
79
- */
80
- disablePagination?: BreakpointCustomizable<boolean> | undefined;
81
- /**
82
- * Defines the heading used in the carousel.
83
- */
84
- heading?: string | undefined;
85
- /**
86
- * Override the default wordings that are used for aria-labels on the next/prev buttons and pagination.
87
- */
88
- intl?: Partial<Record<"prev" | "next" | "first" | "last" | "slideLabel" | "slide", string>> | undefined;
89
- /**
90
- * If false, the carousel will not show pagination bullets at the bottom.
91
- */
92
- pagination?: BreakpointCustomizable<boolean> | undefined;
93
- /**
94
- * Whether the slides should rewind from last to first slide and vice versa.
95
- */
96
- rewind?: boolean | undefined;
97
- /**
98
- * Sets the amount of slides visible at the same time. Can be set to `auto` if you want to define different widths per slide via CSS.
99
- */
100
- slidesPerPage?: "auto" | BreakpointCustomizable<number> | undefined;
101
- /**
102
- * Adapts the color when used on dark background.
103
- */
104
- theme?: "light" | "dark" | undefined;
105
- /**
106
- * Defines the outer spacings between the carousel and the left and right screen sides.
107
- */
108
- width?: "extended" | "basic" | undefined;
109
- /**
110
- * Has no effect anymore
111
- * @deprecated since v3.0.0, will be removed with next major release
112
- */
113
- wrapContent?: boolean | undefined;
114
- }>, {
65
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCarouselProps>, {
115
66
  activeSlideIndex: number;
116
67
  alignHeader: string;
117
68
  pagination: boolean;
@@ -123,15 +74,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
123
74
  onUpdate?: ((value: CarouselUpdateEvent) => any) | undefined;
124
75
  onCarouselChange?: ((value: CarouselUpdateEvent) => any) | undefined;
125
76
  }, {
126
- theme: Theme;
127
- width: CarouselWidth;
77
+ theme: "light" | "dark";
78
+ width: "extended" | "basic";
128
79
  activeSlideIndex: number;
129
- alignHeader: CarouselAlignHeader;
80
+ alignHeader: "center" | "left";
130
81
  pagination: BreakpointCustomizable<boolean>;
131
82
  rewind: boolean;
132
- slidesPerPage: BreakpointCustomizable<number> | "auto";
83
+ slidesPerPage: BreakpointCustomizable<number>;
133
84
  }>, {
134
- default: (_: {}) => any;
85
+ default?(_: {}): any;
135
86
  }>;
136
87
  export default _default;
137
88
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -144,12 +95,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
144
95
  };
145
96
  };
146
97
  type __VLS_WithDefaults<P, D> = {
147
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
98
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
148
99
  default: D[K];
149
- } : P[K];
100
+ }> : P[K];
150
101
  };
151
102
  type __VLS_WithTemplateSlots<T, S> = T & {
152
103
  new (): {
153
104
  $slots: S;
105
+ $props: __VLS_PropsChildren<S>;
154
106
  };
155
107
  };
108
+ type __VLS_PropsChildren<S> = {
109
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
110
+ };
111
+ type __VLS_Prettify<T> = {
112
+ [K in keyof T]: T[K];
113
+ } & {};
@@ -1,62 +1,39 @@
1
+ /** __vue_virtual_code_placeholder */
1
2
  import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type PCheckboxWrapperProps = {
3
4
  /**
4
5
  * Show or hide label. For better accessibility it's recommended to show the label.
5
6
  */
6
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
7
+ hideLabel?: BreakpointCustomizable<boolean>;
7
8
  /**
8
9
  * The label text.
9
10
  */
10
- label?: string | undefined;
11
+ label?: string;
11
12
  /**
12
13
  * Disables the checkbox and shows a loading indicator.
13
14
  */
14
- loading?: boolean | undefined;
15
+ loading?: boolean;
15
16
  /**
16
17
  * The message styled depending on validation state.
17
18
  */
18
- message?: string | undefined;
19
+ message?: string;
19
20
  /**
20
21
  * The validation state.
21
22
  */
22
- state?: "success" | "none" | "error" | undefined;
23
+ state?: CheckboxWrapperState;
23
24
  /**
24
25
  * Adapts the color depending on the theme.
25
26
  */
26
- theme?: "light" | "dark" | undefined;
27
- }>, {
27
+ theme?: Theme;
28
+ };
29
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCheckboxWrapperProps>, {
28
30
  hideLabel: boolean;
29
31
  label: string;
30
32
  loading: boolean;
31
33
  message: string;
32
34
  state: string;
33
35
  theme: string;
34
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
35
- /**
36
- * Show or hide label. For better accessibility it's recommended to show the label.
37
- */
38
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
39
- /**
40
- * The label text.
41
- */
42
- label?: string | undefined;
43
- /**
44
- * Disables the checkbox and shows a loading indicator.
45
- */
46
- loading?: boolean | undefined;
47
- /**
48
- * The message styled depending on validation state.
49
- */
50
- message?: string | undefined;
51
- /**
52
- * The validation state.
53
- */
54
- state?: "success" | "none" | "error" | undefined;
55
- /**
56
- * Adapts the color depending on the theme.
57
- */
58
- theme?: "light" | "dark" | undefined;
59
- }>, {
36
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCheckboxWrapperProps>, {
60
37
  hideLabel: boolean;
61
38
  label: string;
62
39
  loading: boolean;
@@ -65,13 +42,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
42
  theme: string;
66
43
  }>>>, {
67
44
  label: string;
68
- theme: Theme;
69
- state: CheckboxWrapperState;
45
+ theme: "light" | "dark";
46
+ state: "success" | "none" | "error";
70
47
  hideLabel: BreakpointCustomizable<boolean>;
71
48
  loading: boolean;
72
49
  message: string;
73
50
  }>, {
74
- default: (_: {}) => any;
51
+ default?(_: {}): any;
75
52
  }>;
76
53
  export default _default;
77
54
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -84,12 +61,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
84
61
  };
85
62
  };
86
63
  type __VLS_WithDefaults<P, D> = {
87
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
88
65
  default: D[K];
89
- } : P[K];
66
+ }> : P[K];
90
67
  };
91
68
  type __VLS_WithTemplateSlots<T, S> = T & {
92
69
  new (): {
93
70
  $slots: S;
71
+ $props: __VLS_PropsChildren<S>;
94
72
  };
95
73
  };
74
+ type __VLS_PropsChildren<S> = {
75
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
76
+ };
77
+ type __VLS_Prettify<T> = {
78
+ [K in keyof T]: T[K];
79
+ } & {};