@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,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,66 +1,54 @@
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;
12
+ /**
13
+ * Disables the checkbox and shows a loading indicator.
14
+ */
15
+ loading?: boolean;
11
16
  /**
12
17
  * The message styled depending on validation state.
13
18
  */
14
- message?: string | undefined;
19
+ message?: string;
15
20
  /**
16
21
  * The validation state.
17
22
  */
18
- state?: "success" | "none" | "error" | undefined;
23
+ state?: CheckboxWrapperState;
19
24
  /**
20
25
  * Adapts the color depending on the theme.
21
26
  */
22
- theme?: "light" | "dark" | undefined;
23
- }>, {
27
+ theme?: Theme;
28
+ };
29
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCheckboxWrapperProps>, {
24
30
  hideLabel: boolean;
25
31
  label: string;
32
+ loading: boolean;
26
33
  message: string;
27
34
  state: string;
28
35
  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
- }>, {
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>, {
51
37
  hideLabel: boolean;
52
38
  label: string;
39
+ loading: boolean;
53
40
  message: string;
54
41
  state: string;
55
42
  theme: string;
56
43
  }>>>, {
57
44
  label: string;
58
- theme: Theme;
59
- state: CheckboxWrapperState;
45
+ theme: "light" | "dark";
46
+ state: "success" | "none" | "error";
60
47
  hideLabel: BreakpointCustomizable<boolean>;
48
+ loading: boolean;
61
49
  message: string;
62
50
  }>, {
63
- default: (_: {}) => any;
51
+ default?(_: {}): any;
64
52
  }>;
65
53
  export default _default;
66
54
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -73,12 +61,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
73
61
  };
74
62
  };
75
63
  type __VLS_WithDefaults<P, D> = {
76
- [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] & {
77
65
  default: D[K];
78
- } : P[K];
66
+ }> : P[K];
79
67
  };
80
68
  type __VLS_WithTemplateSlots<T, S> = T & {
81
69
  new (): {
82
70
  $slots: S;
71
+ $props: __VLS_PropsChildren<S>;
83
72
  };
84
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
+ } & {};
@@ -1,21 +1,22 @@
1
- import { defineComponent as p, ref as f, onMounted as l, onUpdated as s, openBlock as d, createBlock as c, resolveDynamicComponent as m, unref as u, withCtx as i, renderSlot as h } from "vue";
1
+ import { defineComponent as p, ref as l, onMounted as f, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as c, unref as m, withCtx as i, renderSlot as h } from "vue";
2
2
  import { getPrefixedTagName as C, syncProperties as o } from "../../utils.js";
3
3
  const k = /* @__PURE__ */ p({
4
4
  __name: "CheckboxWrapperWrapper",
5
5
  props: {
6
6
  hideLabel: { default: !1 },
7
7
  label: { default: "" },
8
+ loading: { type: Boolean, default: !1 },
8
9
  message: { default: "" },
9
10
  state: { default: "none" },
10
11
  theme: { default: "light" }
11
12
  },
12
- setup(n) {
13
- const t = n, a = C("p-checkbox-wrapper"), e = f();
14
- return l(() => {
13
+ setup(a) {
14
+ const t = a, n = C("p-checkbox-wrapper"), e = l();
15
+ return f(() => {
15
16
  o(e.value, t);
16
17
  }), s(() => {
17
18
  o(e.value, t);
18
- }), (r, _) => (d(), c(m(u(a)), {
19
+ }), (r, _) => (d(), u(c(m(n)), {
19
20
  ref_key: "pdsComponentRef",
20
21
  ref: e
21
22
  }, {
@@ -1,49 +1,36 @@
1
+ /** __vue_virtual_code_placeholder */
1
2
  import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
2
- /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ type PContentWrapperProps = {
4
4
  /**
5
5
  * Has no effect anymore
6
6
  * @deprecated since v3.0.0, will be removed with next major release
7
7
  */
8
- backgroundColor?: "default" | "transparent" | undefined;
8
+ backgroundColor?: ContentWrapperBackgroundColor;
9
9
  /**
10
10
  * Has no effect anymore
11
11
  * @deprecated since v3.0.0, will be removed with next major release
12
12
  */
13
- theme?: "light" | "dark" | undefined;
13
+ theme?: Theme;
14
14
  /**
15
15
  * Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
16
16
  */
17
- width?: "extended" | "basic" | "fluid" | "narrow" | "full" | undefined;
18
- }>, {
17
+ width?: ContentWrapperWidth;
18
+ };
19
+ /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
20
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PContentWrapperProps>, {
19
21
  backgroundColor: string;
20
22
  theme: string;
21
23
  width: 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
- * Has no effect anymore
25
- * @deprecated since v3.0.0, will be removed with next major release
26
- */
27
- backgroundColor?: "default" | "transparent" | undefined;
28
- /**
29
- * Has no effect anymore
30
- * @deprecated since v3.0.0, will be removed with next major release
31
- */
32
- theme?: "light" | "dark" | undefined;
33
- /**
34
- * Defines the outer spacings between the content area and the left and right screen sides, as well as centering its content and setting a max-width.
35
- */
36
- width?: "extended" | "basic" | "fluid" | "narrow" | "full" | undefined;
37
- }>, {
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<PContentWrapperProps>, {
38
25
  backgroundColor: string;
39
26
  theme: string;
40
27
  width: string;
41
28
  }>>>, {
42
- theme: Theme;
43
- width: ContentWrapperWidth;
44
- backgroundColor: ContentWrapperBackgroundColor;
29
+ theme: "light" | "dark";
30
+ width: "extended" | "basic" | "fluid" | "narrow" | "full";
31
+ backgroundColor: "default" | "transparent";
45
32
  }>, {
46
- default: (_: {}) => any;
33
+ default?(_: {}): any;
47
34
  }>;
48
35
  export default _default;
49
36
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -56,12 +43,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
56
43
  };
57
44
  };
58
45
  type __VLS_WithDefaults<P, D> = {
59
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
46
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
47
  default: D[K];
61
- } : P[K];
48
+ }> : P[K];
62
49
  };
63
50
  type __VLS_WithTemplateSlots<T, S> = T & {
64
51
  new (): {
65
52
  $slots: S;
53
+ $props: __VLS_PropsChildren<S>;
66
54
  };
67
55
  };
56
+ type __VLS_PropsChildren<S> = {
57
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
@@ -1,36 +1,25 @@
1
- import type { SelectedAriaAttributes, CrestTarget } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
3
+ type PCrestProps = {
3
4
  /**
4
5
  * Add ARIA attributes.
5
6
  */
6
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
7
+ aria?: SelectedAriaAttributes<CrestAriaAttribute>;
7
8
  /**
8
9
  * When providing an url then the component will be rendered as `<a>`.
9
10
  */
10
- href?: string | undefined;
11
+ href?: string;
11
12
  /**
12
13
  * Target attribute where the link should be opened.
13
14
  */
14
- target?: string | undefined;
15
- }>, {
15
+ target?: CrestTarget;
16
+ };
17
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCrestProps>, {
16
18
  target: string;
17
- }>, {}, 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<{
18
- /**
19
- * Add ARIA attributes.
20
- */
21
- aria?: SelectedAriaAttributes<"aria-label"> | undefined;
22
- /**
23
- * When providing an url then the component will be rendered as `<a>`.
24
- */
25
- href?: string | undefined;
26
- /**
27
- * Target attribute where the link should be opened.
28
- */
29
- target?: string | undefined;
30
- }>, {
19
+ }>, {}, 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<PCrestProps>, {
31
20
  target: string;
32
21
  }>>>, {
33
- target: CrestTarget;
22
+ target: string;
34
23
  }>;
35
24
  export default _default;
36
25
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -43,7 +32,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
43
32
  };
44
33
  };
45
34
  type __VLS_WithDefaults<P, D> = {
46
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
36
  default: D[K];
48
- } : P[K];
37
+ }> : P[K];
49
38
  };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -1,74 +1,51 @@
1
- import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, Theme } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, DisplayTag, Theme } from '../types';
3
+ type PDisplayProps = {
3
4
  /**
4
5
  * Text alignment of the component.
5
6
  */
6
- align?: "center" | "left" | "right" | undefined;
7
+ align?: DisplayAlign;
7
8
  /**
8
9
  * Basic text color variations depending on theme property.
9
10
  */
10
- color?: "inherit" | "primary" | undefined;
11
+ color?: DisplayColor;
11
12
  /**
12
13
  * Adds an ellipsis to a single line of text if it overflows.
13
14
  */
14
- ellipsis?: boolean | undefined;
15
+ ellipsis?: boolean;
15
16
  /**
16
17
  * Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
17
18
  */
18
- size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
19
+ size?: BreakpointCustomizable<DisplaySize>;
19
20
  /**
20
21
  * Sets a custom HTML tag depending on the usage of the display component.
21
22
  */
22
- tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
23
+ tag?: DisplayTag;
23
24
  /**
24
25
  * Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
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<PDisplayProps>, {
28
30
  align: string;
29
31
  color: string;
30
32
  ellipsis: boolean;
31
33
  size: string;
32
34
  theme: string;
33
- }>, {}, 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<{
34
- /**
35
- * Text alignment of the component.
36
- */
37
- align?: "center" | "left" | "right" | undefined;
38
- /**
39
- * Basic text color variations depending on theme property.
40
- */
41
- color?: "inherit" | "primary" | undefined;
42
- /**
43
- * Adds an ellipsis to a single line of text if it overflows.
44
- */
45
- ellipsis?: boolean | undefined;
46
- /**
47
- * Size of the component. Also defines the size for specific breakpoints, like {base: "medium", l: "large"}. You always need to provide a base value when doing this.
48
- */
49
- size?: BreakpointCustomizable<"inherit" | "small" | "medium" | "large"> | undefined;
50
- /**
51
- * Sets a custom HTML tag depending on the usage of the display component.
52
- */
53
- tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
54
- /**
55
- * Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
56
- */
57
- theme?: "light" | "dark" | undefined;
58
- }>, {
35
+ }>, {}, 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<PDisplayProps>, {
59
36
  align: string;
60
37
  color: string;
61
38
  ellipsis: boolean;
62
39
  size: string;
63
40
  theme: string;
64
41
  }>>>, {
65
- size: BreakpointCustomizable<DisplaySize>;
66
- theme: Theme;
67
- align: DisplayAlign;
68
- color: DisplayColor;
42
+ size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large">;
43
+ theme: "light" | "dark";
44
+ align: "center" | "left" | "right";
45
+ color: "inherit" | "primary";
69
46
  ellipsis: boolean;
70
47
  }>, {
71
- default: (_: {}) => any;
48
+ default?(_: {}): any;
72
49
  }>;
73
50
  export default _default;
74
51
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -81,12 +58,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
81
58
  };
82
59
  };
83
60
  type __VLS_WithDefaults<P, D> = {
84
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
61
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
85
62
  default: D[K];
86
- } : P[K];
63
+ }> : P[K];
87
64
  };
88
65
  type __VLS_WithTemplateSlots<T, S> = T & {
89
66
  new (): {
90
67
  $slots: S;
68
+ $props: __VLS_PropsChildren<S>;
91
69
  };
92
70
  };
71
+ type __VLS_PropsChildren<S> = {
72
+ [K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
73
+ };
74
+ type __VLS_Prettify<T> = {
75
+ [K in keyof T]: T[K];
76
+ } & {};
@@ -1,50 +1,35 @@
1
- import type { DividerColor, BreakpointCustomizable, DividerDirection, Theme } from '../types';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ /** __vue_virtual_code_placeholder */
2
+ import type { DividerColor, BreakpointCustomizable, DividerDirection, DividerOrientation, Theme } from '../types';
3
+ type PDividerProps = {
3
4
  /**
4
5
  * Defines color depending on theme.
5
6
  */
6
- color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
7
+ color?: DividerColor;
7
8
  /**
8
9
  * Defines direction.
9
10
  */
10
- direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
11
+ direction?: BreakpointCustomizable<DividerDirection>;
11
12
  /**
12
13
  * @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
13
14
  */
14
- orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
15
+ orientation?: BreakpointCustomizable<DividerOrientation>;
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<PDividerProps>, {
20
22
  color: string;
21
23
  direction: string;
22
24
  theme: string;
23
- }>, {}, 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<{
24
- /**
25
- * Defines color depending on theme.
26
- */
27
- color?: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | undefined;
28
- /**
29
- * Defines direction.
30
- */
31
- direction?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
32
- /**
33
- * @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
34
- */
35
- orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
36
- /**
37
- * Adapts color depending on theme.
38
- */
39
- theme?: "light" | "dark" | undefined;
40
- }>, {
25
+ }>, {}, 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<PDividerProps>, {
41
26
  color: string;
42
27
  direction: string;
43
28
  theme: string;
44
29
  }>>>, {
45
- theme: Theme;
46
- direction: BreakpointCustomizable<DividerDirection>;
47
- color: DividerColor;
30
+ theme: "light" | "dark";
31
+ direction: BreakpointCustomizable<"horizontal" | "vertical">;
32
+ color: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high";
48
33
  }>;
49
34
  export default _default;
50
35
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -57,7 +42,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
57
42
  };
58
43
  };
59
44
  type __VLS_WithDefaults<P, D> = {
60
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
46
  default: D[K];
62
- } : P[K];
47
+ }> : P[K];
63
48
  };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};