@porsche-design-system/components-vue 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/PorscheDesignSystemProvider.vue.d.ts +11 -26
  3. package/lib/components/AccordionWrapper.vue.d.ts +47 -54
  4. package/lib/components/BannerWrapper.vue.d.ts +66 -69
  5. package/lib/components/ButtonGroupWrapper.vue.d.ts +16 -33
  6. package/lib/components/ButtonPureWrapper.vue.d.ts +104 -98
  7. package/lib/components/ButtonTileWrapper.vue.d.ts +112 -99
  8. package/lib/components/ButtonWrapper.vue.d.ts +72 -73
  9. package/lib/components/CarouselWrapper.vue.d.ts +97 -91
  10. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +52 -59
  11. package/lib/components/ContentWrapperWrapper.vue.d.ts +27 -43
  12. package/lib/components/CrestWrapper.vue.d.ts +24 -37
  13. package/lib/components/DisplayWrapper.vue.d.ts +50 -57
  14. package/lib/components/DividerWrapper.vue.d.ts +34 -45
  15. package/lib/components/FieldsetWrapper.vue.d.ts +51 -59
  16. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +51 -59
  17. package/lib/components/FlexItemWrapper.vue.d.ts +52 -59
  18. package/lib/components/FlexWrapper.vue.d.ts +52 -59
  19. package/lib/components/FlyoutWrapper.vue.d.ts +37 -46
  20. package/lib/components/GridItemWrapper.vue.d.ts +20 -35
  21. package/lib/components/GridWrapper.vue.d.ts +34 -48
  22. package/lib/components/HeadingWrapper.vue.d.ts +50 -57
  23. package/lib/components/HeadlineWrapper.vue.d.ts +50 -57
  24. package/lib/components/IconWrapper.vue.d.ts +54 -60
  25. package/lib/components/InlineNotificationWrapper.vue.d.ts +72 -74
  26. package/lib/components/LinkPureWrapper.vue.d.ts +114 -104
  27. package/lib/components/LinkSocialWrapper.vue.d.ts +52 -57
  28. package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +62 -65
  29. package/lib/components/LinkTileWrapper.vue.d.ts +102 -89
  30. package/lib/components/LinkWrapper.vue.d.ts +74 -73
  31. package/lib/components/MarqueWrapper.vue.d.ts +48 -55
  32. package/lib/components/ModalWrapper.vue.d.ts +57 -60
  33. package/lib/components/ModelSignatureWrapper.vue.d.ts +35 -47
  34. package/lib/components/PaginationWrapper.vue.d.ts +101 -94
  35. package/lib/components/PopoverWrapper.vue.d.ts +32 -43
  36. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +44 -53
  37. package/lib/components/ScrollerWrapper.vue.d.ts +60 -63
  38. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +37 -45
  39. package/lib/components/SegmentedControlWrapper.vue.d.ts +25 -38
  40. package/lib/components/SelectWrapperWrapper.vue.d.ts +76 -77
  41. package/lib/components/SpinnerWrapper.vue.d.ts +26 -39
  42. package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +17 -33
  43. package/lib/components/StepperHorizontalWrapper.vue.d.ts +21 -33
  44. package/lib/components/SwitchWrapper.vue.d.ts +61 -66
  45. package/lib/components/TableCellWrapper.vue.d.ts +11 -28
  46. package/lib/components/TableHeadCellWrapper.vue.d.ts +25 -38
  47. package/lib/components/TableWrapper.vue.d.ts +18 -34
  48. package/lib/components/TabsBarWrapper.vue.d.ts +49 -56
  49. package/lib/components/TabsItemWrapper.vue.d.ts +11 -16
  50. package/lib/components/TabsWrapper.vue.d.ts +51 -58
  51. package/lib/components/TagDismissibleWrapper.vue.d.ts +32 -43
  52. package/lib/components/TagWrapper.vue.d.ts +31 -43
  53. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +105 -98
  54. package/lib/components/TextListWrapper.vue.d.ts +31 -43
  55. package/lib/components/TextWrapper.vue.d.ts +60 -65
  56. package/lib/components/TextareaWrapperWrapper.vue.d.ts +66 -69
  57. package/lib/components/ToastWrapper.vue.d.ts +11 -29
  58. package/lib/components/WordmarkWrapper.vue.d.ts +40 -49
  59. package/lib/types.d.ts +27 -2
  60. package/package.json +2 -2
@@ -1,45 +1,55 @@
1
- import type { BreakpointCustomizable, CheckboxWrapperState, Theme } from '../types';
2
- type PCheckboxWrapperProps = {
3
- /**
4
- * Show or hide label. For better accessibility it's recommended to show the label.
5
- */
6
- hideLabel?: BreakpointCustomizable<boolean>;
7
- /**
8
- * The label text.
9
- */
10
- label?: string;
11
- /**
12
- * __Experimental__: Disables the checkbox and shows a loading indicator.
13
- */
14
- loading?: boolean;
15
- /**
16
- * The message styled depending on validation state.
17
- */
18
- message?: string;
19
- /**
20
- * The validation state.
21
- */
22
- state?: CheckboxWrapperState;
23
- /**
24
- * Adapts the color depending on the theme.
25
- */
26
- theme?: Theme;
27
- };
28
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCheckboxWrapperProps>, {
29
- hideLabel: boolean;
30
- label: string;
31
- loading: boolean;
32
- message: string;
33
- state: string;
34
- theme: string;
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<PCheckboxWrapperProps>, {
36
- hideLabel: boolean;
37
- label: string;
38
- loading: boolean;
39
- message: string;
40
- state: string;
41
- theme: string;
42
- }>>>, {
1
+ import type { BreakpointCustomizable } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ label: {
4
+ type: import("vue").PropType<string>;
5
+ default: string;
6
+ };
7
+ theme: {
8
+ type: import("vue").PropType<"light" | "dark">;
9
+ default: string;
10
+ };
11
+ state: {
12
+ type: import("vue").PropType<"none" | "success" | "error">;
13
+ default: string;
14
+ };
15
+ hideLabel: {
16
+ type: import("vue").PropType<BreakpointCustomizable<boolean>>;
17
+ default: boolean;
18
+ };
19
+ loading: {
20
+ type: import("vue").PropType<boolean>;
21
+ default: boolean;
22
+ };
23
+ message: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ label: {
29
+ type: import("vue").PropType<string>;
30
+ default: string;
31
+ };
32
+ theme: {
33
+ type: import("vue").PropType<"light" | "dark">;
34
+ default: string;
35
+ };
36
+ state: {
37
+ type: import("vue").PropType<"none" | "success" | "error">;
38
+ default: string;
39
+ };
40
+ hideLabel: {
41
+ type: import("vue").PropType<BreakpointCustomizable<boolean>>;
42
+ default: boolean;
43
+ };
44
+ loading: {
45
+ type: import("vue").PropType<boolean>;
46
+ default: boolean;
47
+ };
48
+ message: {
49
+ type: import("vue").PropType<string>;
50
+ default: string;
51
+ };
52
+ }>>, {
43
53
  label: string;
44
54
  theme: "light" | "dark";
45
55
  state: "none" | "success" | "error";
@@ -50,25 +60,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
60
  default?(_: {}): any;
51
61
  }>;
52
62
  export default _default;
53
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
- type __VLS_TypePropsToRuntimeProps<T> = {
55
- [K in keyof T]-?: {} extends Pick<T, K> ? {
56
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
- } : {
58
- type: import('vue').PropType<T[K]>;
59
- required: true;
60
- };
61
- };
62
- type __VLS_WithDefaults<P, D> = {
63
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
- default: D[K];
65
- }> : P[K];
66
- };
67
63
  type __VLS_WithTemplateSlots<T, S> = T & {
68
64
  new (): {
69
65
  $slots: S;
70
66
  };
71
67
  };
72
- type __VLS_Prettify<T> = {
73
- [K in keyof T]: T[K];
74
- } & {};
@@ -1,30 +1,31 @@
1
- import type { ContentWrapperBackgroundColor, Theme, ContentWrapperWidth } from '../types';
2
- type PContentWrapperProps = {
3
- /**
4
- * Has no effect anymore
5
- * @deprecated since v3.0.0, will be removed with next major release
6
- */
7
- backgroundColor?: ContentWrapperBackgroundColor;
8
- /**
9
- * Has no effect anymore
10
- * @deprecated since v3.0.0, will be removed with next major release
11
- */
12
- theme?: Theme;
13
- /**
14
- * 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.
15
- */
16
- width?: ContentWrapperWidth;
17
- };
18
1
  /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
19
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PContentWrapperProps>, {
20
- backgroundColor: string;
21
- theme: string;
22
- width: 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<PContentWrapperProps>, {
24
- backgroundColor: string;
25
- theme: string;
26
- width: string;
27
- }>>>, {
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ theme: {
4
+ type: import("vue").PropType<"light" | "dark">;
5
+ default: string;
6
+ };
7
+ width: {
8
+ type: import("vue").PropType<"extended" | "basic" | "fluid" | "narrow" | "full">;
9
+ default: string;
10
+ };
11
+ backgroundColor: {
12
+ type: import("vue").PropType<"default" | "transparent">;
13
+ default: string;
14
+ };
15
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
+ theme: {
17
+ type: import("vue").PropType<"light" | "dark">;
18
+ default: string;
19
+ };
20
+ width: {
21
+ type: import("vue").PropType<"extended" | "basic" | "fluid" | "narrow" | "full">;
22
+ default: string;
23
+ };
24
+ backgroundColor: {
25
+ type: import("vue").PropType<"default" | "transparent">;
26
+ default: string;
27
+ };
28
+ }>>, {
28
29
  theme: "light" | "dark";
29
30
  width: "extended" | "basic" | "fluid" | "narrow" | "full";
30
31
  backgroundColor: "default" | "transparent";
@@ -32,25 +33,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
33
  default?(_: {}): any;
33
34
  }>;
34
35
  export default _default;
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
44
- type __VLS_WithDefaults<P, D> = {
45
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
- default: D[K];
47
- }> : P[K];
48
- };
49
36
  type __VLS_WithTemplateSlots<T, S> = T & {
50
37
  new (): {
51
38
  $slots: S;
52
39
  };
53
40
  };
54
- type __VLS_Prettify<T> = {
55
- [K in keyof T]: T[K];
56
- } & {};
@@ -1,40 +1,27 @@
1
- import type { SelectedAriaAttributes, CrestAriaAttribute, CrestTarget } from '../types';
2
- type PCrestProps = {
3
- /**
4
- * Add ARIA attributes.
5
- */
6
- aria?: SelectedAriaAttributes<CrestAriaAttribute>;
7
- /**
8
- * When providing an url then the component will be rendered as `<a>`.
9
- */
10
- href?: string;
11
- /**
12
- * Target attribute where the link should be opened.
13
- */
14
- target?: CrestTarget;
15
- };
16
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PCrestProps>, {
17
- target: string;
18
- }>, {}, 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>, {
19
- target: string;
20
- }>>>, {
1
+ import type { SelectedAriaAttributes } from '../types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ aria: {
4
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
5
+ };
6
+ href: {
7
+ type: import("vue").PropType<string>;
8
+ };
9
+ target: {
10
+ type: import("vue").PropType<string>;
11
+ default: string;
12
+ };
13
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ aria: {
15
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
16
+ };
17
+ href: {
18
+ type: import("vue").PropType<string>;
19
+ };
20
+ target: {
21
+ type: import("vue").PropType<string>;
22
+ default: string;
23
+ };
24
+ }>>, {
21
25
  target: string;
22
26
  }, {}>;
23
27
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
@@ -1,43 +1,53 @@
1
- import type { DisplayAlign, DisplayColor, BreakpointCustomizable, DisplaySize, DisplayTag, Theme } from '../types';
2
- type PDisplayProps = {
3
- /**
4
- * Text alignment of the component.
5
- */
6
- align?: DisplayAlign;
7
- /**
8
- * Basic text color variations depending on theme property.
9
- */
10
- color?: DisplayColor;
11
- /**
12
- * Adds an ellipsis to a single line of text if it overflows.
13
- */
14
- ellipsis?: boolean;
15
- /**
16
- * 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
- size?: BreakpointCustomizable<DisplaySize>;
19
- /**
20
- * Sets a custom HTML tag depending on the usage of the display component.
21
- */
22
- tag?: DisplayTag;
23
- /**
24
- * Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
25
- */
26
- theme?: Theme;
27
- };
28
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PDisplayProps>, {
29
- align: string;
30
- color: string;
31
- ellipsis: boolean;
32
- size: string;
33
- 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<PDisplayProps>, {
35
- align: string;
36
- color: string;
37
- ellipsis: boolean;
38
- size: string;
39
- theme: string;
40
- }>>>, {
1
+ import type { BreakpointCustomizable } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ size: {
4
+ type: import("vue").PropType<BreakpointCustomizable<"inherit" | "small" | "medium" | "large">>;
5
+ default: string;
6
+ };
7
+ tag: {
8
+ type: import("vue").PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
9
+ };
10
+ theme: {
11
+ type: import("vue").PropType<"light" | "dark">;
12
+ default: string;
13
+ };
14
+ align: {
15
+ type: import("vue").PropType<"center" | "left" | "right">;
16
+ default: string;
17
+ };
18
+ color: {
19
+ type: import("vue").PropType<"inherit" | "primary">;
20
+ default: string;
21
+ };
22
+ ellipsis: {
23
+ type: import("vue").PropType<boolean>;
24
+ default: boolean;
25
+ };
26
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ size: {
28
+ type: import("vue").PropType<BreakpointCustomizable<"inherit" | "small" | "medium" | "large">>;
29
+ default: string;
30
+ };
31
+ tag: {
32
+ type: import("vue").PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
33
+ };
34
+ theme: {
35
+ type: import("vue").PropType<"light" | "dark">;
36
+ default: string;
37
+ };
38
+ align: {
39
+ type: import("vue").PropType<"center" | "left" | "right">;
40
+ default: string;
41
+ };
42
+ color: {
43
+ type: import("vue").PropType<"inherit" | "primary">;
44
+ default: string;
45
+ };
46
+ ellipsis: {
47
+ type: import("vue").PropType<boolean>;
48
+ default: boolean;
49
+ };
50
+ }>>, {
41
51
  size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large">;
42
52
  theme: "light" | "dark";
43
53
  align: "center" | "left" | "right";
@@ -47,25 +57,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
47
57
  default?(_: {}): any;
48
58
  }>;
49
59
  export default _default;
50
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
- type __VLS_TypePropsToRuntimeProps<T> = {
52
- [K in keyof T]-?: {} extends Pick<T, K> ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- } : {
55
- type: import('vue').PropType<T[K]>;
56
- required: true;
57
- };
58
- };
59
- type __VLS_WithDefaults<P, D> = {
60
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
- default: D[K];
62
- }> : P[K];
63
- };
64
60
  type __VLS_WithTemplateSlots<T, S> = T & {
65
61
  new (): {
66
62
  $slots: S;
67
63
  };
68
64
  };
69
- type __VLS_Prettify<T> = {
70
- [K in keyof T]: T[K];
71
- } & {};
@@ -1,50 +1,39 @@
1
- import type { DividerColor, BreakpointCustomizable, DividerDirection, DividerOrientation, Theme } from '../types';
2
- type PDividerProps = {
3
- /**
4
- * Defines color depending on theme.
5
- */
6
- color?: DividerColor;
7
- /**
8
- * Defines direction.
9
- */
10
- direction?: BreakpointCustomizable<DividerDirection>;
11
- /**
12
- * @deprecated since v3.0.0, will be removed with next major release, use `direction` instead. Defines orientation.
13
- */
14
- orientation?: BreakpointCustomizable<DividerOrientation>;
15
- /**
16
- * Adapts color depending on theme.
17
- */
18
- theme?: Theme;
19
- };
20
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PDividerProps>, {
21
- color: string;
22
- direction: string;
23
- 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<PDividerProps>, {
25
- color: string;
26
- direction: string;
27
- theme: string;
28
- }>>>, {
1
+ import type { BreakpointCustomizable } from '../types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ theme: {
4
+ type: import("vue").PropType<"light" | "dark">;
5
+ default: string;
6
+ };
7
+ direction: {
8
+ type: import("vue").PropType<BreakpointCustomizable<"horizontal" | "vertical">>;
9
+ default: string;
10
+ };
11
+ color: {
12
+ type: import("vue").PropType<"contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high">;
13
+ default: string;
14
+ };
15
+ orientation: {
16
+ type: import("vue").PropType<BreakpointCustomizable<"horizontal" | "vertical">>;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ theme: {
20
+ type: import("vue").PropType<"light" | "dark">;
21
+ default: string;
22
+ };
23
+ direction: {
24
+ type: import("vue").PropType<BreakpointCustomizable<"horizontal" | "vertical">>;
25
+ default: string;
26
+ };
27
+ color: {
28
+ type: import("vue").PropType<"contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high">;
29
+ default: string;
30
+ };
31
+ orientation: {
32
+ type: import("vue").PropType<BreakpointCustomizable<"horizontal" | "vertical">>;
33
+ };
34
+ }>>, {
29
35
  theme: "light" | "dark";
30
36
  direction: BreakpointCustomizable<"horizontal" | "vertical">;
31
37
  color: "contrast-low" | "contrast-medium" | "contrast-high" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high";
32
38
  }, {}>;
33
39
  export default _default;
34
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
- type __VLS_TypePropsToRuntimeProps<T> = {
36
- [K in keyof T]-?: {} extends Pick<T, K> ? {
37
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
- } : {
39
- type: import('vue').PropType<T[K]>;
40
- required: true;
41
- };
42
- };
43
- type __VLS_WithDefaults<P, D> = {
44
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
- default: D[K];
46
- }> : P[K];
47
- };
48
- type __VLS_Prettify<T> = {
49
- [K in keyof T]: T[K];
50
- } & {};
@@ -1,45 +1,54 @@
1
- import type { FieldsetLabelSize, FieldsetState, Theme } from '../types';
2
- type PFieldsetProps = {
3
- /**
4
- * The label text.
5
- */
6
- label?: string;
7
- /**
8
- * The size of the label text.
9
- */
10
- labelSize?: FieldsetLabelSize;
11
- /**
12
- * The message styled depending on validation state.
13
- */
14
- message?: string;
15
- /**
16
- * Marks the Fieldset as required.
17
- */
18
- required?: boolean;
19
- /**
20
- * The validation state.
21
- */
22
- state?: FieldsetState;
23
- /**
24
- * Adapts color depending on theme.
25
- */
26
- theme?: Theme;
27
- };
28
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PFieldsetProps>, {
29
- label: string;
30
- labelSize: string;
31
- message: string;
32
- required: boolean;
33
- state: string;
34
- theme: string;
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<PFieldsetProps>, {
36
- label: string;
37
- labelSize: string;
38
- message: string;
39
- required: boolean;
40
- state: string;
41
- theme: string;
42
- }>>>, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ label: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ theme: {
7
+ type: import("vue").PropType<"light" | "dark">;
8
+ default: string;
9
+ };
10
+ state: {
11
+ type: import("vue").PropType<"none" | "success" | "error">;
12
+ default: string;
13
+ };
14
+ required: {
15
+ type: import("vue").PropType<boolean>;
16
+ default: boolean;
17
+ };
18
+ message: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ labelSize: {
23
+ type: import("vue").PropType<"small" | "medium">;
24
+ default: string;
25
+ };
26
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ label: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
31
+ theme: {
32
+ type: import("vue").PropType<"light" | "dark">;
33
+ default: string;
34
+ };
35
+ state: {
36
+ type: import("vue").PropType<"none" | "success" | "error">;
37
+ default: string;
38
+ };
39
+ required: {
40
+ type: import("vue").PropType<boolean>;
41
+ default: boolean;
42
+ };
43
+ message: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ labelSize: {
48
+ type: import("vue").PropType<"small" | "medium">;
49
+ default: string;
50
+ };
51
+ }>>, {
43
52
  label: string;
44
53
  theme: "light" | "dark";
45
54
  state: "none" | "success" | "error";
@@ -50,25 +59,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
59
  default?(_: {}): any;
51
60
  }>;
52
61
  export default _default;
53
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
- type __VLS_TypePropsToRuntimeProps<T> = {
55
- [K in keyof T]-?: {} extends Pick<T, K> ? {
56
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
- } : {
58
- type: import('vue').PropType<T[K]>;
59
- required: true;
60
- };
61
- };
62
- type __VLS_WithDefaults<P, D> = {
63
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
- default: D[K];
65
- }> : P[K];
66
- };
67
62
  type __VLS_WithTemplateSlots<T, S> = T & {
68
63
  new (): {
69
64
  $slots: S;
70
65
  };
71
66
  };
72
- type __VLS_Prettify<T> = {
73
- [K in keyof T]: T[K];
74
- } & {};