@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,72 +1,44 @@
1
- import type { SelectedAriaAttributes, BreakpointCustomizable } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { SelectedAriaAttributes, ModalAriaAttribute, BreakpointCustomizable } from '../types';
3
+ type PModalProps = {
3
4
  /**
4
5
  * Add ARIA attributes.
5
6
  */
6
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
7
+ aria?: SelectedAriaAttributes<ModalAriaAttribute>;
7
8
  /**
8
9
  * If true, the modal will not be closable via backdrop click.
9
10
  */
10
- disableBackdropClick?: boolean | undefined;
11
+ disableBackdropClick?: boolean;
11
12
  /**
12
13
  * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. If true, the modal will not have a dismiss button.
13
14
  */
14
- disableCloseButton?: boolean | undefined;
15
+ disableCloseButton?: boolean;
15
16
  /**
16
17
  * If false, the modal will not have a dismiss button.
17
18
  */
18
- dismissButton?: boolean | undefined;
19
+ dismissButton?: boolean;
19
20
  /**
20
21
  * If true the modal uses max viewport height and width. Should only be used for mobile.
21
22
  */
22
- fullscreen?: BreakpointCustomizable<boolean> | undefined;
23
+ fullscreen?: BreakpointCustomizable<boolean>;
23
24
  /**
24
25
  * The title of the modal
25
26
  */
26
- heading?: string | undefined;
27
+ heading?: string;
27
28
  /**
28
29
  * If true, the modal is open.
29
30
  */
30
31
  open: boolean;
31
- }>, {
32
+ };
33
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PModalProps>, {
32
34
  disableBackdropClick: boolean;
33
35
  dismissButton: boolean;
34
36
  fullscreen: boolean;
35
37
  open: boolean;
36
38
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
39
  close: (value?: void | undefined) => void;
38
- } & {
39
40
  dismiss: (value?: void | undefined) => void;
40
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
41
- /**
42
- * Add ARIA attributes.
43
- */
44
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
45
- /**
46
- * If true, the modal will not be closable via backdrop click.
47
- */
48
- disableBackdropClick?: boolean | undefined;
49
- /**
50
- * @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. If true, the modal will not have a dismiss button.
51
- */
52
- disableCloseButton?: boolean | undefined;
53
- /**
54
- * If false, the modal will not have a dismiss button.
55
- */
56
- dismissButton?: boolean | undefined;
57
- /**
58
- * If true the modal uses max viewport height and width. Should only be used for mobile.
59
- */
60
- fullscreen?: BreakpointCustomizable<boolean> | undefined;
61
- /**
62
- * The title of the modal
63
- */
64
- heading?: string | undefined;
65
- /**
66
- * If true, the modal is open.
67
- */
68
- open: boolean;
69
- }>, {
41
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PModalProps>, {
70
42
  disableBackdropClick: boolean;
71
43
  dismissButton: boolean;
72
44
  fullscreen: boolean;
@@ -80,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
80
52
  disableBackdropClick: boolean;
81
53
  fullscreen: BreakpointCustomizable<boolean>;
82
54
  }>, {
83
- default: (_: {}) => any;
55
+ default?(_: {}): any;
84
56
  }>;
85
57
  export default _default;
86
58
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -93,12 +65,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
93
65
  };
94
66
  };
95
67
  type __VLS_WithDefaults<P, D> = {
96
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
68
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
97
69
  default: D[K];
98
- } : P[K];
70
+ }> : P[K];
99
71
  };
100
72
  type __VLS_WithTemplateSlots<T, S> = T & {
101
73
  new (): {
102
74
  $slots: S;
75
+ $props: __VLS_PropsChildren<S>;
103
76
  };
104
77
  };
78
+ type __VLS_PropsChildren<S> = {
79
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
80
+ };
81
+ type __VLS_Prettify<T> = {
82
+ [K in keyof T]: T[K];
83
+ } & {};
@@ -1,53 +1,38 @@
1
+ /** __vue_virtual_code_placeholder */
1
2
  import type { ModelSignatureColor, ModelSignatureModel, ModelSignatureSize, Theme } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type PModelSignatureProps = {
3
4
  /**
4
5
  * Adapts the color of the component.
5
6
  */
6
- color?: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | undefined;
7
+ color?: ModelSignatureColor;
7
8
  /**
8
9
  * Adapts the model of the component.
9
10
  */
10
- model?: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
11
+ model?: ModelSignatureModel;
11
12
  /**
12
13
  * Adapts the size of the component.
13
14
  */
14
- size?: "inherit" | "small" | undefined;
15
+ size?: ModelSignatureSize;
15
16
  /**
16
17
  * Adapts color depending on theme.
17
18
  */
18
- theme?: "light" | "dark" | undefined;
19
- }>, {
19
+ theme?: Theme;
20
+ };
21
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PModelSignatureProps>, {
20
22
  color: string;
21
23
  model: string;
22
24
  size: string;
23
25
  theme: string;
24
- }>, {}, 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<{
25
- /**
26
- * Adapts the color of the component.
27
- */
28
- color?: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | undefined;
29
- /**
30
- * Adapts the model of the component.
31
- */
32
- model?: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo" | undefined;
33
- /**
34
- * Adapts the size of the component.
35
- */
36
- size?: "inherit" | "small" | undefined;
37
- /**
38
- * Adapts color depending on theme.
39
- */
40
- theme?: "light" | "dark" | undefined;
41
- }>, {
26
+ }>, {}, 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<PModelSignatureProps>, {
42
27
  color: string;
43
28
  model: string;
44
29
  size: string;
45
30
  theme: string;
46
31
  }>>>, {
47
- size: ModelSignatureSize;
48
- theme: Theme;
49
- color: ModelSignatureColor;
50
- model: ModelSignatureModel;
32
+ size: "inherit" | "small";
33
+ theme: "light" | "dark";
34
+ color: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high";
35
+ model: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo";
51
36
  }>;
52
37
  export default _default;
53
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -60,7 +45,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
60
45
  };
61
46
  };
62
47
  type __VLS_WithDefaults<P, D> = {
63
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
49
  default: D[K];
65
- } : P[K];
50
+ }> : P[K];
66
51
  };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
@@ -1,5 +1,6 @@
1
- import type { BreakpointCustomizable, PaginationMaxNumberOfPageLinks, PaginationUpdateEvent, Theme } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { PaginationInternationalization, BreakpointCustomizable, PaginationMaxNumberOfPageLinks, PaginationUpdateEvent, Theme } from '../types';
3
+ type PPaginationProps = {
3
4
  /**
4
5
  * Index of the currently active page.
5
6
  */
@@ -7,40 +8,41 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
8
  /**
8
9
  * @deprecated since v3.0.0, will be removed with next major release, use `intl.root` instead. Aria label what the pagination is used for.
9
10
  */
10
- allyLabel?: string | undefined;
11
+ allyLabel?: string;
11
12
  /**
12
13
  * @deprecated since v3.0.0, will be removed with next major release, use `intl.next` instead. Aria label for next page icon.
13
14
  */
14
- allyLabelNext?: string | undefined;
15
+ allyLabelNext?: string;
15
16
  /**
16
17
  * @deprecated since v3.0.0, will be removed with next major release, use `intl.page` instead. Aria label for page navigation.
17
18
  */
18
- allyLabelPage?: string | undefined;
19
+ allyLabelPage?: string;
19
20
  /**
20
21
  * @deprecated since v3.0.0, will be removed with next major release, use `intl.prev` instead. Aria label for previous page icon.
21
22
  */
22
- allyLabelPrev?: string | undefined;
23
+ allyLabelPrev?: string;
23
24
  /**
24
25
  * Override the default wordings that are used for aria-labels on the next/prev and page buttons.
25
26
  */
26
- intl?: Partial<Record<"page" | "prev" | "next" | "root", string>> | undefined;
27
+ intl?: PaginationInternationalization;
27
28
  /**
28
29
  * The total count of items which should be shown per page.
29
30
  */
30
- itemsPerPage?: number | undefined;
31
+ itemsPerPage?: number;
31
32
  /**
32
33
  * The maximum number of page links rendered
33
34
  */
34
- maxNumberOfPageLinks?: BreakpointCustomizable<7 | 5> | undefined;
35
+ maxNumberOfPageLinks?: BreakpointCustomizable<PaginationMaxNumberOfPageLinks>;
35
36
  /**
36
37
  * Adapts the color when used on dark background.
37
38
  */
38
- theme?: "light" | "dark" | undefined;
39
+ theme?: Theme;
39
40
  /**
40
41
  * The total count of items.
41
42
  */
42
43
  totalItemsCount: number;
43
- }>, {
44
+ };
45
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPaginationProps>, {
44
46
  activePage: number;
45
47
  intl: () => {
46
48
  root: string;
@@ -57,50 +59,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
57
59
  totalItemsCount: number;
58
60
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
61
  pageChange: (value: PaginationUpdateEvent) => void;
60
- } & {
61
62
  update: (value: PaginationUpdateEvent) => void;
62
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
63
- /**
64
- * Index of the currently active page.
65
- */
66
- activePage: number;
67
- /**
68
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.root` instead. Aria label what the pagination is used for.
69
- */
70
- allyLabel?: string | undefined;
71
- /**
72
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.next` instead. Aria label for next page icon.
73
- */
74
- allyLabelNext?: string | undefined;
75
- /**
76
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.page` instead. Aria label for page navigation.
77
- */
78
- allyLabelPage?: string | undefined;
79
- /**
80
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.prev` instead. Aria label for previous page icon.
81
- */
82
- allyLabelPrev?: string | undefined;
83
- /**
84
- * Override the default wordings that are used for aria-labels on the next/prev and page buttons.
85
- */
86
- intl?: Partial<Record<"page" | "prev" | "next" | "root", string>> | undefined;
87
- /**
88
- * The total count of items which should be shown per page.
89
- */
90
- itemsPerPage?: number | undefined;
91
- /**
92
- * The maximum number of page links rendered
93
- */
94
- maxNumberOfPageLinks?: BreakpointCustomizable<7 | 5> | undefined;
95
- /**
96
- * Adapts the color when used on dark background.
97
- */
98
- theme?: "light" | "dark" | undefined;
99
- /**
100
- * The total count of items.
101
- */
102
- totalItemsCount: number;
103
- }>, {
63
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPaginationProps>, {
104
64
  activePage: number;
105
65
  intl: () => {
106
66
  root: string;
@@ -119,11 +79,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
119
79
  onUpdate?: ((value: PaginationUpdateEvent) => any) | undefined;
120
80
  onPageChange?: ((value: PaginationUpdateEvent) => any) | undefined;
121
81
  }, {
122
- theme: Theme;
123
- intl: Partial<Record<"page" | "prev" | "next" | "root", string>>;
82
+ theme: "light" | "dark";
83
+ intl: PaginationInternationalization;
124
84
  activePage: number;
125
85
  itemsPerPage: number;
126
- maxNumberOfPageLinks: BreakpointCustomizable<PaginationMaxNumberOfPageLinks>;
86
+ maxNumberOfPageLinks: BreakpointCustomizable<7 | 5>;
127
87
  totalItemsCount: number;
128
88
  }>;
129
89
  export default _default;
@@ -137,7 +97,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
137
97
  };
138
98
  };
139
99
  type __VLS_WithDefaults<P, D> = {
140
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
100
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
141
101
  default: D[K];
142
- } : P[K];
102
+ }> : P[K];
143
103
  };
104
+ type __VLS_Prettify<T> = {
105
+ [K in keyof T]: T[K];
106
+ } & {};
@@ -1,49 +1,34 @@
1
- import type { SelectedAriaAttributes, PopoverDirection, Theme } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection, Theme } from '../types';
3
+ type PPopoverProps = {
3
4
  /**
4
5
  * Add ARIA attributes.
5
6
  */
6
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
7
+ aria?: SelectedAriaAttributes<PopoverAriaAttribute>;
7
8
  /**
8
9
  * Descriptive text to show additional information when popover is open
9
10
  */
10
- description?: string | undefined;
11
+ description?: string;
11
12
  /**
12
13
  * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
13
14
  */
14
- direction?: "top" | "bottom" | "left" | "right" | undefined;
15
+ direction?: PopoverDirection;
15
16
  /**
16
17
  * Adapts the popover color depending on the theme.
17
18
  */
18
- theme?: "light" | "dark" | undefined;
19
- }>, {
19
+ theme?: Theme;
20
+ };
21
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPopoverProps>, {
20
22
  direction: string;
21
23
  theme: string;
22
- }>, {}, 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<{
23
- /**
24
- * Add ARIA attributes.
25
- */
26
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
27
- /**
28
- * Descriptive text to show additional information when popover is open
29
- */
30
- description?: string | undefined;
31
- /**
32
- * Preferred direction in which popover should open, given there is enough space in viewport. Otherwise, it will be opened in the direction with most available space.
33
- */
34
- direction?: "top" | "bottom" | "left" | "right" | undefined;
35
- /**
36
- * Adapts the popover color depending on the theme.
37
- */
38
- theme?: "light" | "dark" | undefined;
39
- }>, {
24
+ }>, {}, 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<PPopoverProps>, {
40
25
  direction: string;
41
26
  theme: string;
42
27
  }>>>, {
43
- theme: Theme;
44
- direction: PopoverDirection;
28
+ theme: "light" | "dark";
29
+ direction: "top" | "bottom" | "left" | "right";
45
30
  }>, {
46
- default: (_: {}) => any;
31
+ default?(_: {}): any;
47
32
  }>;
48
33
  export default _default;
49
34
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -56,12 +41,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
56
41
  };
57
42
  };
58
43
  type __VLS_WithDefaults<P, D> = {
59
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
45
  default: D[K];
61
- } : P[K];
46
+ }> : P[K];
62
47
  };
63
48
  type __VLS_WithTemplateSlots<T, S> = T & {
64
49
  new (): {
65
50
  $slots: S;
51
+ $props: __VLS_PropsChildren<S>;
66
52
  };
67
53
  };
54
+ type __VLS_PropsChildren<S> = {
55
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
@@ -1,53 +1,34 @@
1
+ /** __vue_virtual_code_placeholder */
1
2
  import type { BreakpointCustomizable, RadioButtonWrapperState, Theme } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type PRadioButtonWrapperProps = {
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
  * The message styled depending on validation state.
13
14
  */
14
- message?: string | undefined;
15
+ message?: string;
15
16
  /**
16
17
  * The validation state.
17
18
  */
18
- state?: "success" | "none" | "error" | undefined;
19
+ state?: RadioButtonWrapperState;
19
20
  /**
20
21
  * Adapts the color depending on the theme.
21
22
  */
22
- theme?: "light" | "dark" | undefined;
23
- }>, {
23
+ theme?: Theme;
24
+ };
25
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PRadioButtonWrapperProps>, {
24
26
  hideLabel: boolean;
25
27
  label: string;
26
28
  message: string;
27
29
  state: string;
28
30
  theme: string;
29
- }>, {}, 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<{
30
- /**
31
- * Show or hide label. For better accessibility it's recommended to show the label.
32
- */
33
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
34
- /**
35
- * The label text.
36
- */
37
- label?: string | undefined;
38
- /**
39
- * The message styled depending on validation state.
40
- */
41
- message?: string | undefined;
42
- /**
43
- * The validation state.
44
- */
45
- state?: "success" | "none" | "error" | undefined;
46
- /**
47
- * Adapts the color depending on the theme.
48
- */
49
- theme?: "light" | "dark" | undefined;
50
- }>, {
31
+ }>, {}, 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<PRadioButtonWrapperProps>, {
51
32
  hideLabel: boolean;
52
33
  label: string;
53
34
  message: string;
@@ -55,12 +36,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
55
36
  theme: string;
56
37
  }>>>, {
57
38
  label: string;
58
- theme: Theme;
59
- state: RadioButtonWrapperState;
39
+ theme: "light" | "dark";
40
+ state: "success" | "none" | "error";
60
41
  hideLabel: BreakpointCustomizable<boolean>;
61
42
  message: string;
62
43
  }>, {
63
- default: (_: {}) => any;
44
+ default?(_: {}): any;
64
45
  }>;
65
46
  export default _default;
66
47
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -73,12 +54,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
73
54
  };
74
55
  };
75
56
  type __VLS_WithDefaults<P, D> = {
76
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
57
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
77
58
  default: D[K];
78
- } : P[K];
59
+ }> : P[K];
79
60
  };
80
61
  type __VLS_WithTemplateSlots<T, S> = T & {
81
62
  new (): {
82
63
  $slots: S;
64
+ $props: __VLS_PropsChildren<S>;
83
65
  };
84
66
  };
67
+ type __VLS_PropsChildren<S> = {
68
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
@@ -1,79 +1,56 @@
1
- import type { ScrollerAlignScrollIndicator, ScrollerGradientColor, ScrollerScrollToPosition, Theme } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAriaAttribute, ScrollerGradientColor, ScrollerGradientColorScheme, ScrollerScrollIndicatorPosition, ScrollerScrollToPosition, Theme } from '../types';
3
+ type PScrollerProps = {
3
4
  /**
4
- * Sets the vertical position of scroll indicator
5
+ * Sets the vertical position of scroll indicator.
5
6
  */
6
- alignScrollIndicator?: "top" | "center" | undefined;
7
+ alignScrollIndicator?: ScrollerAlignScrollIndicator;
8
+ /**
9
+ * Add ARIA role.
10
+ */
11
+ aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
7
12
  /**
8
13
  * Adapts the background gradient color of prev and next button.
9
14
  */
10
- gradientColor?: "background-base" | "background-surface" | undefined;
15
+ gradientColor?: ScrollerGradientColor;
11
16
  /**
12
17
  * @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
13
18
  */
14
- gradientColorScheme?: "default" | "surface" | undefined;
19
+ gradientColorScheme?: ScrollerGradientColorScheme;
15
20
  /**
16
21
  * @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
17
22
  */
18
- scrollIndicatorPosition?: "top" | "center" | undefined;
23
+ scrollIndicatorPosition?: ScrollerScrollIndicatorPosition;
19
24
  /**
20
- * Scrolls the scroll area to the left either smooth or immediately
25
+ * Scrolls the scroll area to the left either smooth or immediately.
21
26
  */
22
- scrollToPosition?: ScrollerScrollToPosition | undefined;
27
+ scrollToPosition?: ScrollerScrollToPosition;
23
28
  /**
24
- * Specifies if scrollbar should be shown
29
+ * Specifies if scrollbar should be shown.
25
30
  */
26
- scrollbar?: boolean | undefined;
31
+ scrollbar?: boolean;
27
32
  /**
28
33
  * Adapts the color when used on dark background.
29
34
  */
30
- theme?: "light" | "dark" | undefined;
31
- }>, {
35
+ theme?: Theme;
36
+ };
37
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PScrollerProps>, {
32
38
  alignScrollIndicator: string;
33
39
  gradientColor: string;
34
40
  scrollbar: boolean;
35
41
  theme: string;
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<{
37
- /**
38
- * Sets the vertical position of scroll indicator
39
- */
40
- alignScrollIndicator?: "top" | "center" | undefined;
41
- /**
42
- * Adapts the background gradient color of prev and next button.
43
- */
44
- gradientColor?: "background-base" | "background-surface" | undefined;
45
- /**
46
- * @deprecated since v3.0.0, will be removed with next major release, use `gradientColor` instead. Adapts the background gradient color of prev and next button.
47
- */
48
- gradientColorScheme?: "default" | "surface" | undefined;
49
- /**
50
- * @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
51
- */
52
- scrollIndicatorPosition?: "top" | "center" | undefined;
53
- /**
54
- * Scrolls the scroll area to the left either smooth or immediately
55
- */
56
- scrollToPosition?: ScrollerScrollToPosition | undefined;
57
- /**
58
- * Specifies if scrollbar should be shown
59
- */
60
- scrollbar?: boolean | undefined;
61
- /**
62
- * Adapts the color when used on dark background.
63
- */
64
- theme?: "light" | "dark" | undefined;
65
- }>, {
42
+ }>, {}, 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<PScrollerProps>, {
66
43
  alignScrollIndicator: string;
67
44
  gradientColor: string;
68
45
  scrollbar: boolean;
69
46
  theme: string;
70
47
  }>>>, {
71
- theme: Theme;
72
- alignScrollIndicator: ScrollerAlignScrollIndicator;
73
- gradientColor: ScrollerGradientColor;
74
48
  scrollbar: boolean;
49
+ theme: "light" | "dark";
50
+ alignScrollIndicator: "top" | "center";
51
+ gradientColor: "background-base" | "background-surface";
75
52
  }>, {
76
- default: (_: {}) => any;
53
+ default?(_: {}): any;
77
54
  }>;
78
55
  export default _default;
79
56
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -86,12 +63,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
86
63
  };
87
64
  };
88
65
  type __VLS_WithDefaults<P, D> = {
89
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
90
67
  default: D[K];
91
- } : P[K];
68
+ }> : P[K];
92
69
  };
93
70
  type __VLS_WithTemplateSlots<T, S> = T & {
94
71
  new (): {
95
72
  $slots: S;
73
+ $props: __VLS_PropsChildren<S>;
96
74
  };
97
75
  };
76
+ type __VLS_PropsChildren<S> = {
77
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
78
+ };
79
+ type __VLS_Prettify<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};