@porsche-design-system/components-vue 3.0.0-rc.0 → 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 (67) hide show
  1. package/CHANGELOG.md +87 -25
  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 +29 -34
  11. package/lib/components/CheckboxWrapperWrapper.vue.js +6 -5
  12. package/lib/components/ContentWrapperWrapper.vue.d.ts +22 -28
  13. package/lib/components/CrestWrapper.vue.d.ts +15 -23
  14. package/lib/components/DisplayWrapper.vue.d.ts +26 -42
  15. package/lib/components/DividerWrapper.vue.d.ts +18 -30
  16. package/lib/components/FieldsetWrapper.vue.d.ts +24 -40
  17. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +25 -41
  18. package/lib/components/FlexItemWrapper.vue.d.ts +28 -44
  19. package/lib/components/FlexWrapper.vue.d.ts +28 -44
  20. package/lib/components/GridItemWrapper.vue.d.ts +20 -20
  21. package/lib/components/GridWrapper.vue.d.ts +22 -27
  22. package/lib/components/HeadingWrapper.vue.d.ts +26 -42
  23. package/lib/components/HeadlineWrapper.vue.d.ts +26 -42
  24. package/lib/components/IconWrapper.vue.d.ts +22 -50
  25. package/lib/components/IconWrapper.vue.js +8 -8
  26. package/lib/components/InlineNotificationWrapper.vue.d.ts +27 -56
  27. package/lib/components/LinkPureWrapper.vue.d.ts +37 -90
  28. package/lib/components/LinkSocialWrapper.vue.d.ts +25 -45
  29. package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +26 -46
  30. package/lib/components/LinkTileWrapper.vue.d.ts +31 -75
  31. package/lib/components/LinkWrapper.vue.d.ts +30 -62
  32. package/lib/components/MarqueWrapper.vue.d.ts +19 -35
  33. package/lib/components/ModalWrapper.vue.d.ts +22 -43
  34. package/lib/components/ModelSignatureWrapper.vue.d.ts +18 -30
  35. package/lib/components/PaginationWrapper.vue.d.ts +22 -59
  36. package/lib/components/PopoverWrapper.vue.d.ts +22 -30
  37. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +22 -34
  38. package/lib/components/ScrollerWrapper.vue.d.ts +33 -49
  39. package/lib/components/ScrollerWrapper.vue.js +4 -3
  40. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +20 -31
  41. package/lib/components/SegmentedControlWrapper.vue.d.ts +20 -25
  42. package/lib/components/SelectWrapperWrapper.vue.d.ts +27 -55
  43. package/lib/components/SpinnerWrapper.vue.d.ts +16 -24
  44. package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +18 -17
  45. package/lib/components/StepperHorizontalWrapper.vue.d.ts +19 -17
  46. package/lib/components/SwitchWrapper.vue.d.ts +24 -45
  47. package/lib/components/TableBodyWrapper.vue.d.ts +6 -1
  48. package/lib/components/TableCellWrapper.vue.d.ts +16 -12
  49. package/lib/components/TableHeadCellWrapper.vue.d.ts +18 -22
  50. package/lib/components/TableHeadRowWrapper.vue.d.ts +6 -1
  51. package/lib/components/TableHeadWrapper.vue.d.ts +6 -1
  52. package/lib/components/TableRowWrapper.vue.d.ts +6 -1
  53. package/lib/components/TableWrapper.vue.d.ts +18 -19
  54. package/lib/components/TabsBarWrapper.vue.d.ts +25 -42
  55. package/lib/components/TabsItemWrapper.vue.d.ts +9 -8
  56. package/lib/components/TabsWrapper.vue.d.ts +26 -43
  57. package/lib/components/TagDismissibleWrapper.vue.d.ts +22 -30
  58. package/lib/components/TagWrapper.vue.d.ts +22 -30
  59. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +31 -71
  60. package/lib/components/TextListItemWrapper.vue.d.ts +6 -1
  61. package/lib/components/TextListWrapper.vue.d.ts +22 -30
  62. package/lib/components/TextWrapper.vue.d.ts +28 -48
  63. package/lib/components/TextareaWrapperWrapper.vue.d.ts +25 -49
  64. package/lib/components/ToastWrapper.vue.d.ts +12 -12
  65. package/lib/components/WordmarkWrapper.vue.d.ts +19 -35
  66. package/lib/types.d.ts +219 -191
  67. package/package.json +2 -2
@@ -1,59 +1,61 @@
1
- import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
3
+ type PButtonPureProps = {
3
4
  /**
4
5
  * Display button in active state.
5
6
  */
6
- active?: boolean | undefined;
7
+ active?: boolean;
7
8
  /**
8
9
  * Aligns the label.
9
10
  */
10
- alignLabel?: BreakpointCustomizable<"left" | "right"> | undefined;
11
+ alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
11
12
  /**
12
13
  * Add ARIA attributes.
13
14
  */
14
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
15
+ aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
15
16
  /**
16
17
  * Disables the button. No events will be triggered while disabled state is active.
17
18
  */
18
- disabled?: boolean | undefined;
19
+ disabled?: boolean;
19
20
  /**
20
21
  * Show or hide label. For better accessibility it is recommended to show the label.
21
22
  */
22
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
23
+ hideLabel?: BreakpointCustomizable<boolean>;
23
24
  /**
24
25
  * The icon shown.
25
26
  */
26
- icon?: import("../types").LinkButtonIconName | undefined;
27
+ icon?: ButtonPureIcon;
27
28
  /**
28
29
  * A URL path to a custom icon.
29
30
  */
30
- iconSource?: string | undefined;
31
+ iconSource?: string;
31
32
  /**
32
33
  * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
33
34
  */
34
- loading?: boolean | undefined;
35
+ loading?: boolean;
35
36
  /**
36
37
  * Size of the button.
37
38
  */
38
- size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
39
+ size?: BreakpointCustomizable<ButtonPureSize>;
39
40
  /**
40
41
  * Stretches the area between icon and label to max available space.
41
42
  */
42
- stretch?: BreakpointCustomizable<boolean> | undefined;
43
+ stretch?: BreakpointCustomizable<boolean>;
43
44
  /**
44
45
  * Adapts the button color depending on the theme.
45
46
  */
46
- theme?: "light" | "dark" | undefined;
47
+ theme?: Theme;
47
48
  /**
48
49
  * Specifies the type of the button.
49
50
  */
50
- type?: "reset" | "button" | "submit" | undefined;
51
+ type?: ButtonPureType;
51
52
  /**
52
53
  * The weight of the text (only has effect with visible label).
53
54
  * @deprecated since v3.0.0, will be removed with next major release
54
55
  */
55
- weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
56
- }>, {
56
+ weight?: ButtonPureWeight;
57
+ };
58
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonPureProps>, {
57
59
  active: boolean;
58
60
  alignLabel: string;
59
61
  disabled: boolean;
@@ -65,61 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
65
67
  theme: string;
66
68
  type: string;
67
69
  weight: string;
68
- }>, {}, 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<{
69
- /**
70
- * Display button in active state.
71
- */
72
- active?: boolean | undefined;
73
- /**
74
- * Aligns the label.
75
- */
76
- alignLabel?: BreakpointCustomizable<"left" | "right"> | undefined;
77
- /**
78
- * Add ARIA attributes.
79
- */
80
- aria?: SelectedAriaAttributes<"aria-label" | "aria-expanded" | "aria-pressed" | "aria-haspopup"> | undefined;
81
- /**
82
- * Disables the button. No events will be triggered while disabled state is active.
83
- */
84
- disabled?: boolean | undefined;
85
- /**
86
- * Show or hide label. For better accessibility it is recommended to show the label.
87
- */
88
- hideLabel?: BreakpointCustomizable<boolean> | undefined;
89
- /**
90
- * The icon shown.
91
- */
92
- icon?: import("../types").LinkButtonIconName | undefined;
93
- /**
94
- * A URL path to a custom icon.
95
- */
96
- iconSource?: string | undefined;
97
- /**
98
- * Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
99
- */
100
- loading?: boolean | undefined;
101
- /**
102
- * Size of the button.
103
- */
104
- size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
105
- /**
106
- * Stretches the area between icon and label to max available space.
107
- */
108
- stretch?: BreakpointCustomizable<boolean> | undefined;
109
- /**
110
- * Adapts the button color depending on the theme.
111
- */
112
- theme?: "light" | "dark" | undefined;
113
- /**
114
- * Specifies the type of the button.
115
- */
116
- type?: "reset" | "button" | "submit" | undefined;
117
- /**
118
- * The weight of the text (only has effect with visible label).
119
- * @deprecated since v3.0.0, will be removed with next major release
120
- */
121
- weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
122
- }>, {
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<PButtonPureProps>, {
123
71
  active: boolean;
124
72
  alignLabel: string;
125
73
  disabled: boolean;
@@ -132,19 +80,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
132
80
  type: string;
133
81
  weight: string;
134
82
  }>>>, {
135
- weight: ButtonPureWeight;
83
+ weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
136
84
  stretch: BreakpointCustomizable<boolean>;
137
- size: BreakpointCustomizable<ButtonPureSize>;
138
- theme: Theme;
139
- type: ButtonPureType;
85
+ type: "reset" | "button" | "submit";
86
+ size: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">;
87
+ theme: "light" | "dark";
140
88
  active: boolean;
141
- alignLabel: BreakpointCustomizable<ButtonPureAlignLabel>;
89
+ alignLabel: BreakpointCustomizable<"left" | "right">;
142
90
  disabled: boolean;
143
91
  hideLabel: BreakpointCustomizable<boolean>;
144
- icon: ButtonPureIcon;
92
+ icon: import("../types").LinkButtonIconName;
145
93
  loading: boolean;
146
94
  }>, {
147
- default: (_: {}) => any;
95
+ default?(_: {}): any;
148
96
  }>;
149
97
  export default _default;
150
98
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -157,12 +105,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
157
105
  };
158
106
  };
159
107
  type __VLS_WithDefaults<P, D> = {
160
- [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] & {
161
109
  default: D[K];
162
- } : P[K];
110
+ }> : P[K];
163
111
  };
164
112
  type __VLS_WithTemplateSlots<T, S> = T & {
165
113
  new (): {
166
114
  $slots: S;
115
+ $props: __VLS_PropsChildren<S>;
167
116
  };
168
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,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
+ } & {};