@porsche-design-system/components-vue 3.2.0 → 3.3.0-rc.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 +34 -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,53 +1,41 @@
1
- import type { ModelSignatureColor, ModelSignatureModel, ModelSignatureSize, Theme } from '../types';
2
- type PModelSignatureProps = {
3
- /**
4
- * Adapts the color of the component.
5
- */
6
- color?: ModelSignatureColor;
7
- /**
8
- * Adapts the model of the component.
9
- */
10
- model?: ModelSignatureModel;
11
- /**
12
- * Adapts the size of the component.
13
- */
14
- size?: ModelSignatureSize;
15
- /**
16
- * Adapts color depending on theme.
17
- */
18
- theme?: Theme;
19
- };
20
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PModelSignatureProps>, {
21
- color: string;
22
- model: string;
23
- size: string;
24
- theme: string;
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<PModelSignatureProps>, {
26
- color: string;
27
- model: string;
28
- size: string;
29
- theme: string;
30
- }>>>, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ size: {
3
+ type: import("vue").PropType<"inherit" | "small">;
4
+ default: string;
5
+ };
6
+ theme: {
7
+ type: import("vue").PropType<"light" | "dark">;
8
+ default: string;
9
+ };
10
+ color: {
11
+ type: import("vue").PropType<"inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high">;
12
+ default: string;
13
+ };
14
+ model: {
15
+ type: import("vue").PropType<"718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo">;
16
+ default: string;
17
+ };
18
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ size: {
20
+ type: import("vue").PropType<"inherit" | "small">;
21
+ default: string;
22
+ };
23
+ theme: {
24
+ type: import("vue").PropType<"light" | "dark">;
25
+ default: string;
26
+ };
27
+ color: {
28
+ type: import("vue").PropType<"inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high">;
29
+ default: string;
30
+ };
31
+ model: {
32
+ type: import("vue").PropType<"718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo">;
33
+ default: string;
34
+ };
35
+ }>>, {
31
36
  size: "inherit" | "small";
32
37
  theme: "light" | "dark";
33
38
  color: "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high";
34
39
  model: "718" | "911" | "boxster" | "cayenne" | "cayman" | "macan" | "panamera" | "taycan" | "turbo-s" | "turbo";
35
40
  }, {}>;
36
41
  export default _default;
37
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
- type __VLS_TypePropsToRuntimeProps<T> = {
39
- [K in keyof T]-?: {} extends Pick<T, K> ? {
40
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
- } : {
42
- type: import('vue').PropType<T[K]>;
43
- required: true;
44
- };
45
- };
46
- type __VLS_WithDefaults<P, D> = {
47
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
- default: D[K];
49
- }> : P[K];
50
- };
51
- type __VLS_Prettify<T> = {
52
- [K in keyof T]: T[K];
53
- } & {};
@@ -1,86 +1,110 @@
1
- import type { PaginationInternationalization, BreakpointCustomizable, PaginationMaxNumberOfPageLinks, PaginationUpdateEvent, Theme } from '../types';
2
- type PPaginationProps = {
3
- /**
4
- * Index of the currently active page.
5
- */
6
- activePage: number;
7
- /**
8
- * @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
- allyLabel?: string;
11
- /**
12
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.next` instead. Aria label for next page icon.
13
- */
14
- allyLabelNext?: string;
15
- /**
16
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.page` instead. Aria label for page navigation.
17
- */
18
- allyLabelPage?: string;
19
- /**
20
- * @deprecated since v3.0.0, will be removed with next major release, use `intl.prev` instead. Aria label for previous page icon.
21
- */
22
- allyLabelPrev?: string;
23
- /**
24
- * Override the default wordings that are used for aria-labels on the next/prev and page buttons.
25
- */
26
- intl?: PaginationInternationalization;
27
- /**
28
- * The total count of items which should be shown per page.
29
- */
30
- itemsPerPage?: number;
31
- /**
32
- * The maximum number of page links rendered.
33
- */
34
- maxNumberOfPageLinks?: BreakpointCustomizable<PaginationMaxNumberOfPageLinks>;
35
- /**
36
- * Show or hide the button to jump to the last page.
37
- */
38
- showLastPage?: boolean;
39
- /**
40
- * Adapts the color when used on dark background.
41
- */
42
- theme?: Theme;
43
- /**
44
- * The total count of items.
45
- */
46
- totalItemsCount: number;
47
- };
48
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPaginationProps>, {
49
- activePage: number;
50
- intl: () => {
51
- root: string;
52
- prev: string;
53
- next: string;
54
- page: string;
1
+ import type { PaginationInternationalization, BreakpointCustomizable, PaginationUpdateEvent } from '../types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ theme: {
4
+ type: import("vue").PropType<"light" | "dark">;
5
+ default: string;
55
6
  };
56
- itemsPerPage: number;
57
- maxNumberOfPageLinks: () => {
58
- base: number;
59
- xs: number;
7
+ intl: {
8
+ type: import("vue").PropType<PaginationInternationalization>;
9
+ default: () => {
10
+ root: string;
11
+ prev: string;
12
+ next: string;
13
+ page: string;
14
+ };
60
15
  };
61
- showLastPage: boolean;
62
- theme: string;
63
- totalItemsCount: number;
64
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ activePage: {
17
+ type: import("vue").PropType<number>;
18
+ required: true;
19
+ default: number;
20
+ };
21
+ allyLabel: {
22
+ type: import("vue").PropType<string>;
23
+ };
24
+ allyLabelNext: {
25
+ type: import("vue").PropType<string>;
26
+ };
27
+ allyLabelPage: {
28
+ type: import("vue").PropType<string>;
29
+ };
30
+ allyLabelPrev: {
31
+ type: import("vue").PropType<string>;
32
+ };
33
+ itemsPerPage: {
34
+ type: import("vue").PropType<number>;
35
+ default: number;
36
+ };
37
+ maxNumberOfPageLinks: {
38
+ type: import("vue").PropType<BreakpointCustomizable<7 | 5>>;
39
+ default: () => {
40
+ base: number;
41
+ xs: number;
42
+ };
43
+ };
44
+ showLastPage: {
45
+ type: import("vue").PropType<boolean>;
46
+ default: boolean;
47
+ };
48
+ totalItemsCount: {
49
+ type: import("vue").PropType<number>;
50
+ required: true;
51
+ default: number;
52
+ };
53
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
65
54
  pageChange: (value: PaginationUpdateEvent) => void;
66
55
  update: (value: PaginationUpdateEvent) => void;
67
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPaginationProps>, {
68
- activePage: number;
69
- intl: () => {
70
- root: string;
71
- prev: string;
72
- next: string;
73
- page: string;
56
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
57
+ theme: {
58
+ type: import("vue").PropType<"light" | "dark">;
59
+ default: string;
74
60
  };
75
- itemsPerPage: number;
76
- maxNumberOfPageLinks: () => {
77
- base: number;
78
- xs: number;
61
+ intl: {
62
+ type: import("vue").PropType<PaginationInternationalization>;
63
+ default: () => {
64
+ root: string;
65
+ prev: string;
66
+ next: string;
67
+ page: string;
68
+ };
79
69
  };
80
- showLastPage: boolean;
81
- theme: string;
82
- totalItemsCount: number;
83
- }>>> & {
70
+ activePage: {
71
+ type: import("vue").PropType<number>;
72
+ required: true;
73
+ default: number;
74
+ };
75
+ allyLabel: {
76
+ type: import("vue").PropType<string>;
77
+ };
78
+ allyLabelNext: {
79
+ type: import("vue").PropType<string>;
80
+ };
81
+ allyLabelPage: {
82
+ type: import("vue").PropType<string>;
83
+ };
84
+ allyLabelPrev: {
85
+ type: import("vue").PropType<string>;
86
+ };
87
+ itemsPerPage: {
88
+ type: import("vue").PropType<number>;
89
+ default: number;
90
+ };
91
+ maxNumberOfPageLinks: {
92
+ type: import("vue").PropType<BreakpointCustomizable<7 | 5>>;
93
+ default: () => {
94
+ base: number;
95
+ xs: number;
96
+ };
97
+ };
98
+ showLastPage: {
99
+ type: import("vue").PropType<boolean>;
100
+ default: boolean;
101
+ };
102
+ totalItemsCount: {
103
+ type: import("vue").PropType<number>;
104
+ required: true;
105
+ default: number;
106
+ };
107
+ }>> & {
84
108
  onUpdate?: ((value: PaginationUpdateEvent) => any) | undefined;
85
109
  onPageChange?: ((value: PaginationUpdateEvent) => any) | undefined;
86
110
  }, {
@@ -93,20 +117,3 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
93
117
  totalItemsCount: number;
94
118
  }, {}>;
95
119
  export default _default;
96
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
97
- type __VLS_TypePropsToRuntimeProps<T> = {
98
- [K in keyof T]-?: {} extends Pick<T, K> ? {
99
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
100
- } : {
101
- type: import('vue').PropType<T[K]>;
102
- required: true;
103
- };
104
- };
105
- type __VLS_WithDefaults<P, D> = {
106
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
107
- default: D[K];
108
- }> : P[K];
109
- };
110
- type __VLS_Prettify<T> = {
111
- [K in keyof T]: T[K];
112
- } & {};
@@ -1,54 +1,43 @@
1
- import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection, Theme } from '../types';
2
- type PPopoverProps = {
3
- /**
4
- * Add ARIA attributes.
5
- */
6
- aria?: SelectedAriaAttributes<PopoverAriaAttribute>;
7
- /**
8
- * Descriptive text to show additional information when popover is open
9
- */
10
- description?: string;
11
- /**
12
- * 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
- direction?: PopoverDirection;
15
- /**
16
- * Adapts the popover color depending on the theme.
17
- */
18
- theme?: Theme;
19
- };
20
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PPopoverProps>, {
21
- direction: string;
22
- 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<PPopoverProps>, {
24
- direction: string;
25
- theme: string;
26
- }>>>, {
1
+ import type { SelectedAriaAttributes } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ theme: {
4
+ type: import("vue").PropType<"light" | "dark">;
5
+ default: string;
6
+ };
7
+ description: {
8
+ type: import("vue").PropType<string>;
9
+ };
10
+ direction: {
11
+ type: import("vue").PropType<"top" | "bottom" | "left" | "right">;
12
+ default: string;
13
+ };
14
+ aria: {
15
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
16
+ };
17
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ theme: {
19
+ type: import("vue").PropType<"light" | "dark">;
20
+ default: string;
21
+ };
22
+ description: {
23
+ type: import("vue").PropType<string>;
24
+ };
25
+ direction: {
26
+ type: import("vue").PropType<"top" | "bottom" | "left" | "right">;
27
+ default: string;
28
+ };
29
+ aria: {
30
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
31
+ };
32
+ }>>, {
27
33
  theme: "light" | "dark";
28
34
  direction: "top" | "bottom" | "left" | "right";
29
35
  }, {}>, {
30
36
  default?(_: {}): any;
31
37
  }>;
32
38
  export default _default;
33
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
- type __VLS_TypePropsToRuntimeProps<T> = {
35
- [K in keyof T]-?: {} extends Pick<T, K> ? {
36
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
- } : {
38
- type: import('vue').PropType<T[K]>;
39
- required: true;
40
- };
41
- };
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
39
  type __VLS_WithTemplateSlots<T, S> = T & {
48
40
  new (): {
49
41
  $slots: S;
50
42
  };
51
43
  };
52
- type __VLS_Prettify<T> = {
53
- [K in keyof T]: T[K];
54
- } & {};
@@ -1,39 +1,47 @@
1
- import type { BreakpointCustomizable, RadioButtonWrapperState, Theme } from '../types';
2
- type PRadioButtonWrapperProps = {
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
- * The message styled depending on validation state.
13
- */
14
- message?: string;
15
- /**
16
- * The validation state.
17
- */
18
- state?: RadioButtonWrapperState;
19
- /**
20
- * Adapts the color depending on the theme.
21
- */
22
- theme?: Theme;
23
- };
24
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PRadioButtonWrapperProps>, {
25
- hideLabel: boolean;
26
- label: string;
27
- message: string;
28
- state: string;
29
- theme: string;
30
- }>, {}, 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>, {
31
- hideLabel: boolean;
32
- label: string;
33
- message: string;
34
- state: string;
35
- theme: string;
36
- }>>>, {
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
+ message: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ label: {
25
+ type: import("vue").PropType<string>;
26
+ default: string;
27
+ };
28
+ theme: {
29
+ type: import("vue").PropType<"light" | "dark">;
30
+ default: string;
31
+ };
32
+ state: {
33
+ type: import("vue").PropType<"none" | "success" | "error">;
34
+ default: string;
35
+ };
36
+ hideLabel: {
37
+ type: import("vue").PropType<BreakpointCustomizable<boolean>>;
38
+ default: boolean;
39
+ };
40
+ message: {
41
+ type: import("vue").PropType<string>;
42
+ default: string;
43
+ };
44
+ }>>, {
37
45
  label: string;
38
46
  theme: "light" | "dark";
39
47
  state: "none" | "success" | "error";
@@ -43,25 +51,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
43
51
  default?(_: {}): any;
44
52
  }>;
45
53
  export default _default;
46
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
47
- type __VLS_TypePropsToRuntimeProps<T> = {
48
- [K in keyof T]-?: {} extends Pick<T, K> ? {
49
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
50
- } : {
51
- type: import('vue').PropType<T[K]>;
52
- required: true;
53
- };
54
- };
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
54
  type __VLS_WithTemplateSlots<T, S> = T & {
61
55
  new (): {
62
56
  $slots: S;
63
57
  };
64
58
  };
65
- type __VLS_Prettify<T> = {
66
- [K in keyof T]: T[K];
67
- } & {};
@@ -1,49 +1,63 @@
1
- import type { ScrollerAlignScrollIndicator, SelectedAriaAttributes, ScrollerAriaAttribute, ScrollerGradientColor, ScrollerGradientColorScheme, ScrollerScrollIndicatorPosition, ScrollerScrollToPosition, Theme } from '../types';
2
- type PScrollerProps = {
3
- /**
4
- * Sets the vertical position of scroll indicator.
5
- */
6
- alignScrollIndicator?: ScrollerAlignScrollIndicator;
7
- /**
8
- * Add ARIA role.
9
- */
10
- aria?: SelectedAriaAttributes<ScrollerAriaAttribute>;
11
- /**
12
- * Adapts the background gradient color of prev and next button.
13
- */
14
- gradientColor?: ScrollerGradientColor;
15
- /**
16
- * @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.
17
- */
18
- gradientColorScheme?: ScrollerGradientColorScheme;
19
- /**
20
- * @deprecated since v3.0.0, will be removed with next major release, use `alignScrollIndicator` instead. Sets the vertical position of scroll indicator
21
- */
22
- scrollIndicatorPosition?: ScrollerScrollIndicatorPosition;
23
- /**
24
- * Scrolls the scroll area to the left either smooth or immediately.
25
- */
26
- scrollToPosition?: ScrollerScrollToPosition;
27
- /**
28
- * Specifies if scrollbar should be shown.
29
- */
30
- scrollbar?: boolean;
31
- /**
32
- * Adapts the color when used on dark background.
33
- */
34
- theme?: Theme;
35
- };
36
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PScrollerProps>, {
37
- alignScrollIndicator: string;
38
- gradientColor: string;
39
- scrollbar: boolean;
40
- theme: string;
41
- }>, {}, 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>, {
42
- alignScrollIndicator: string;
43
- gradientColor: string;
44
- scrollbar: boolean;
45
- theme: string;
46
- }>>>, {
1
+ import type { SelectedAriaAttributes, ScrollerScrollToPosition } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ scrollbar: {
4
+ type: import("vue").PropType<boolean>;
5
+ default: boolean;
6
+ };
7
+ theme: {
8
+ type: import("vue").PropType<"light" | "dark">;
9
+ default: string;
10
+ };
11
+ aria: {
12
+ type: import("vue").PropType<SelectedAriaAttributes<"role">>;
13
+ };
14
+ alignScrollIndicator: {
15
+ type: import("vue").PropType<"top" | "center">;
16
+ default: string;
17
+ };
18
+ gradientColor: {
19
+ type: import("vue").PropType<"background-base" | "background-surface">;
20
+ default: string;
21
+ };
22
+ gradientColorScheme: {
23
+ type: import("vue").PropType<"default" | "surface">;
24
+ };
25
+ scrollIndicatorPosition: {
26
+ type: import("vue").PropType<"top" | "center">;
27
+ };
28
+ scrollToPosition: {
29
+ type: import("vue").PropType<ScrollerScrollToPosition>;
30
+ };
31
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ scrollbar: {
33
+ type: import("vue").PropType<boolean>;
34
+ default: boolean;
35
+ };
36
+ theme: {
37
+ type: import("vue").PropType<"light" | "dark">;
38
+ default: string;
39
+ };
40
+ aria: {
41
+ type: import("vue").PropType<SelectedAriaAttributes<"role">>;
42
+ };
43
+ alignScrollIndicator: {
44
+ type: import("vue").PropType<"top" | "center">;
45
+ default: string;
46
+ };
47
+ gradientColor: {
48
+ type: import("vue").PropType<"background-base" | "background-surface">;
49
+ default: string;
50
+ };
51
+ gradientColorScheme: {
52
+ type: import("vue").PropType<"default" | "surface">;
53
+ };
54
+ scrollIndicatorPosition: {
55
+ type: import("vue").PropType<"top" | "center">;
56
+ };
57
+ scrollToPosition: {
58
+ type: import("vue").PropType<ScrollerScrollToPosition>;
59
+ };
60
+ }>>, {
47
61
  scrollbar: boolean;
48
62
  theme: "light" | "dark";
49
63
  alignScrollIndicator: "top" | "center";
@@ -52,25 +66,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
52
66
  default?(_: {}): any;
53
67
  }>;
54
68
  export default _default;
55
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
- type __VLS_TypePropsToRuntimeProps<T> = {
57
- [K in keyof T]-?: {} extends Pick<T, K> ? {
58
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
- } : {
60
- type: import('vue').PropType<T[K]>;
61
- required: true;
62
- };
63
- };
64
- type __VLS_WithDefaults<P, D> = {
65
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
66
- default: D[K];
67
- }> : P[K];
68
- };
69
69
  type __VLS_WithTemplateSlots<T, S> = T & {
70
70
  new (): {
71
71
  $slots: S;
72
72
  };
73
73
  };
74
- type __VLS_Prettify<T> = {
75
- [K in keyof T]: T[K];
76
- } & {};