@porsche-design-system/components-vue 3.0.0-rc.1 → 3.0.0-rc.3
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.
- package/CHANGELOG.md +54 -0
- package/PorscheDesignSystemProvider.vue.d.ts +11 -3
- package/lib/components/AccordionWrapper.vue.d.ts +24 -41
- package/lib/components/BannerWrapper.vue.d.ts +25 -50
- package/lib/components/ButtonGroupWrapper.vue.d.ts +17 -13
- package/lib/components/ButtonPureWrapper.vue.d.ts +35 -80
- package/lib/components/ButtonTileWrapper.vue.d.ts +34 -82
- package/lib/components/ButtonWrapper.vue.d.ts +29 -57
- package/lib/components/CarouselWrapper.vue.d.ts +32 -74
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +23 -39
- package/lib/components/ContentWrapperWrapper.vue.d.ts +22 -28
- package/lib/components/CrestWrapper.vue.d.ts +15 -23
- package/lib/components/DisplayWrapper.vue.d.ts +26 -42
- package/lib/components/DividerWrapper.vue.d.ts +18 -30
- package/lib/components/FieldsetWrapper.vue.d.ts +24 -40
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +25 -41
- package/lib/components/FlexItemWrapper.vue.d.ts +28 -44
- package/lib/components/FlexWrapper.vue.d.ts +28 -44
- package/lib/components/GridItemWrapper.vue.d.ts +20 -20
- package/lib/components/GridWrapper.vue.d.ts +22 -27
- package/lib/components/HeadingWrapper.vue.d.ts +26 -42
- package/lib/components/HeadlineWrapper.vue.d.ts +26 -42
- package/lib/components/IconWrapper.vue.d.ts +22 -50
- package/lib/components/IconWrapper.vue.js +8 -8
- package/lib/components/InlineNotificationWrapper.vue.d.ts +27 -56
- package/lib/components/LinkPureWrapper.vue.d.ts +37 -90
- package/lib/components/LinkSocialWrapper.vue.d.ts +25 -45
- package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +26 -46
- package/lib/components/LinkTileWrapper.vue.d.ts +31 -75
- package/lib/components/LinkWrapper.vue.d.ts +30 -62
- package/lib/components/MarqueWrapper.vue.d.ts +19 -35
- package/lib/components/ModalWrapper.vue.d.ts +22 -43
- package/lib/components/ModelSignatureWrapper.vue.d.ts +18 -30
- package/lib/components/PaginationWrapper.vue.d.ts +22 -59
- package/lib/components/PopoverWrapper.vue.d.ts +22 -30
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +22 -34
- package/lib/components/ScrollerWrapper.vue.d.ts +33 -49
- package/lib/components/ScrollerWrapper.vue.js +4 -3
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +20 -31
- package/lib/components/SegmentedControlWrapper.vue.d.ts +20 -25
- package/lib/components/SelectWrapperWrapper.vue.d.ts +27 -55
- package/lib/components/SpinnerWrapper.vue.d.ts +16 -24
- package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +18 -17
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +19 -17
- package/lib/components/SwitchWrapper.vue.d.ts +24 -45
- package/lib/components/TableBodyWrapper.vue.d.ts +6 -1
- package/lib/components/TableCellWrapper.vue.d.ts +16 -12
- package/lib/components/TableHeadCellWrapper.vue.d.ts +18 -22
- package/lib/components/TableHeadRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableHeadWrapper.vue.d.ts +6 -1
- package/lib/components/TableRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableWrapper.vue.d.ts +18 -19
- package/lib/components/TabsBarWrapper.vue.d.ts +25 -42
- package/lib/components/TabsItemWrapper.vue.d.ts +9 -8
- package/lib/components/TabsWrapper.vue.d.ts +26 -43
- package/lib/components/TagDismissibleWrapper.vue.d.ts +22 -30
- package/lib/components/TagWrapper.vue.d.ts +22 -30
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +31 -71
- package/lib/components/TextListItemWrapper.vue.d.ts +6 -1
- package/lib/components/TextListWrapper.vue.d.ts +22 -30
- package/lib/components/TextWrapper.vue.d.ts +28 -48
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +25 -49
- package/lib/components/ToastWrapper.vue.d.ts +12 -12
- package/lib/components/WordmarkWrapper.vue.d.ts +19 -35
- package/lib/types.d.ts +210 -191
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,60 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
|
|
10
10
|
### [Unreleased]
|
|
11
11
|
|
|
12
|
+
### [3.0.0-rc.3] - 2023-05-10
|
|
13
|
+
|
|
14
|
+
#### Fixed
|
|
15
|
+
|
|
16
|
+
- `Tabs Bar` focus behavior via keyboard navigation
|
|
17
|
+
([#2546](https://github.com/porsche-design-system/porsche-design-system/pull/2546))
|
|
18
|
+
- Rendering of `Wordmark` in Safari ([#2542](https://github.com/porsche-design-system/porsche-design-system/pull/2542))
|
|
19
|
+
- Disabled dragging/ghosting of icons
|
|
20
|
+
([#2536](https://github.com/porsche-design-system/porsche-design-system/pull/2536))
|
|
21
|
+
|
|
22
|
+
#### Changed
|
|
23
|
+
|
|
24
|
+
- Styles: `dropShadow{Low|Medium|High}Style`s use `box-shadow` instead of `filter: drop-shadow()` to fix glitches
|
|
25
|
+
together with `frostedGlassStyle` in Firefox
|
|
26
|
+
([#2545](https://github.com/porsche-design-system/porsche-design-system/pull/2545))
|
|
27
|
+
- Size of icon and height of `Accordion`
|
|
28
|
+
([#2536](https://github.com/porsche-design-system/porsche-design-system/pull/2536))
|
|
29
|
+
|
|
30
|
+
### [3.0.0-rc.2] - 2023-05-09
|
|
31
|
+
|
|
32
|
+
#### Fixed
|
|
33
|
+
|
|
34
|
+
- `Checkbox Wrapper` Safari visual state change while hovering
|
|
35
|
+
([#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508))
|
|
36
|
+
- `Checkbox Wrapper` keyboard arrow navigation
|
|
37
|
+
([#2508](https://github.com/porsche-design-system/porsche-design-system/pull/2508))
|
|
38
|
+
- `Modal` fix hover state of dismiss button
|
|
39
|
+
([#2510](https://github.com/porsche-design-system/porsche-design-system/pull/2510))
|
|
40
|
+
- `Link Pure`, `Button Pure`: adjust offset of `:hover` and `active` styles
|
|
41
|
+
([#2511](https://github.com/porsche-design-system/porsche-design-system/pull/2511))
|
|
42
|
+
- `Tabs Bar`, `Tabs` ([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521)):
|
|
43
|
+
- `focus` state of tabpanel
|
|
44
|
+
- Indicator bar height
|
|
45
|
+
- Optimize icon/text alignment of `Link Pure` and `Button Pure` in Safari
|
|
46
|
+
- `Select Wrapper` multiline option height and scaling behavior
|
|
47
|
+
([#2524](https://github.com/porsche-design-system/porsche-design-system/pull/2524))
|
|
48
|
+
- Fixed accessibility issues of `Tabs`, `Tabs Bar` and `Stepper Horizontal` to comply with v.4.7.0 of `axe-core`
|
|
49
|
+
([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
|
|
50
|
+
- React: `patchRemixRunProcessBrowserGlobalIdentifier` binary now supports Remix 1.16.0
|
|
51
|
+
([#2537](https://github.com/porsche-design-system/porsche-design-system/pull/2537))
|
|
52
|
+
- Angular: added optional modifier to optional properties for better type checking in strict mode
|
|
53
|
+
([#2544](https://github.com/porsche-design-system/porsche-design-system/pull/2544))
|
|
54
|
+
|
|
55
|
+
#### Added
|
|
56
|
+
|
|
57
|
+
- Deprecation warning to `Icon` component if `lazy` prop is used
|
|
58
|
+
([#2521](https://github.com/porsche-design-system/porsche-design-system/pull/2521))
|
|
59
|
+
- `aria` prop to `Scroller` component
|
|
60
|
+
([#2530](https://github.com/porsche-design-system/porsche-design-system/pull/2530))
|
|
61
|
+
|
|
62
|
+
#### Changed
|
|
63
|
+
|
|
64
|
+
- Model signature asset of 718 model ([#2532](https://github.com/porsche-design-system/porsche-design-system/pull/2532))
|
|
65
|
+
|
|
12
66
|
### [3.0.0-rc.1] - 2023-04-19
|
|
13
67
|
|
|
14
68
|
#### Added
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
3
|
prefix?: string | undefined;
|
|
3
4
|
}>, {
|
|
@@ -9,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
9
10
|
}>>>, {
|
|
10
11
|
prefix: string;
|
|
11
12
|
}>, {
|
|
12
|
-
default
|
|
13
|
+
default?(_: {}): any;
|
|
13
14
|
}>;
|
|
14
15
|
export default _default;
|
|
15
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -22,12 +23,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
26
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
27
|
default: D[K];
|
|
27
|
-
} : P[K];
|
|
28
|
+
}> : P[K];
|
|
28
29
|
};
|
|
29
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
31
|
new (): {
|
|
31
32
|
$slots: S;
|
|
33
|
+
$props: __VLS_PropsChildren<S>;
|
|
32
34
|
};
|
|
33
35
|
};
|
|
36
|
+
type __VLS_PropsChildren<S> = {
|
|
37
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -1,63 +1,39 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { AccordionUpdateEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
2
|
-
|
|
3
|
+
type PAccordionProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
5
6
|
*/
|
|
6
|
-
compact?: boolean
|
|
7
|
+
compact?: boolean;
|
|
7
8
|
/**
|
|
8
9
|
* Defines the heading used in accordion.
|
|
9
10
|
*/
|
|
10
|
-
heading?: string
|
|
11
|
+
heading?: string;
|
|
11
12
|
/**
|
|
12
13
|
* Defines if accordion is open.
|
|
13
14
|
*/
|
|
14
|
-
open?: boolean
|
|
15
|
+
open?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* The text size.
|
|
17
18
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<
|
|
19
|
+
size?: BreakpointCustomizable<AccordionSize>;
|
|
19
20
|
/**
|
|
20
21
|
* Sets a headline tag, so it fits correctly within the outline of the page.
|
|
21
22
|
*/
|
|
22
|
-
tag?:
|
|
23
|
+
tag?: AccordionTag;
|
|
23
24
|
/**
|
|
24
25
|
* Adapts the color when used on dark background.
|
|
25
26
|
*/
|
|
26
|
-
theme?:
|
|
27
|
-
}
|
|
27
|
+
theme?: Theme;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PAccordionProps>, {
|
|
28
30
|
size: string;
|
|
29
31
|
tag: string;
|
|
30
32
|
theme: string;
|
|
31
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
34
|
accordionChange: (value: AccordionUpdateEvent) => void;
|
|
33
|
-
} & {
|
|
34
35
|
update: (value: AccordionUpdateEvent) => void;
|
|
35
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
36
|
-
/**
|
|
37
|
-
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
38
|
-
*/
|
|
39
|
-
compact?: boolean | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Defines the heading used in accordion.
|
|
42
|
-
*/
|
|
43
|
-
heading?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Defines if accordion is open.
|
|
46
|
-
*/
|
|
47
|
-
open?: boolean | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* The text size.
|
|
50
|
-
*/
|
|
51
|
-
size?: BreakpointCustomizable<"small" | "medium"> | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Sets a headline tag, so it fits correctly within the outline of the page.
|
|
54
|
-
*/
|
|
55
|
-
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Adapts the color when used on dark background.
|
|
58
|
-
*/
|
|
59
|
-
theme?: "light" | "dark" | undefined;
|
|
60
|
-
}>, {
|
|
36
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PAccordionProps>, {
|
|
61
37
|
size: string;
|
|
62
38
|
tag: string;
|
|
63
39
|
theme: string;
|
|
@@ -65,11 +41,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
65
41
|
onAccordionChange?: ((value: AccordionUpdateEvent) => any) | undefined;
|
|
66
42
|
onUpdate?: ((value: AccordionUpdateEvent) => any) | undefined;
|
|
67
43
|
}, {
|
|
68
|
-
size: BreakpointCustomizable<
|
|
69
|
-
tag:
|
|
70
|
-
theme:
|
|
44
|
+
size: BreakpointCustomizable<"small" | "medium">;
|
|
45
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
46
|
+
theme: "light" | "dark";
|
|
71
47
|
}>, {
|
|
72
|
-
default
|
|
48
|
+
default?(_: {}): any;
|
|
73
49
|
}>;
|
|
74
50
|
export default _default;
|
|
75
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -82,12 +58,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
82
58
|
};
|
|
83
59
|
};
|
|
84
60
|
type __VLS_WithDefaults<P, D> = {
|
|
85
|
-
[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] & {
|
|
86
62
|
default: D[K];
|
|
87
|
-
} : P[K];
|
|
63
|
+
}> : P[K];
|
|
88
64
|
};
|
|
89
65
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
90
66
|
new (): {
|
|
91
67
|
$slots: S;
|
|
68
|
+
$props: __VLS_PropsChildren<S>;
|
|
92
69
|
};
|
|
93
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,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { BannerState, Theme, BannerWidth } from '../types';
|
|
3
|
+
type PBannerProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Description of the banner.
|
|
5
6
|
*/
|
|
6
|
-
description?: string
|
|
7
|
+
description?: string;
|
|
7
8
|
/**
|
|
8
9
|
* If false, the banner will not have a dismiss button.
|
|
9
10
|
*/
|
|
10
|
-
dismissButton?: boolean
|
|
11
|
+
dismissButton?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* Heading of the banner.
|
|
13
14
|
*/
|
|
14
|
-
heading?: string
|
|
15
|
+
heading?: string;
|
|
15
16
|
/**
|
|
16
17
|
* If true, the banner is open.
|
|
17
18
|
*/
|
|
@@ -19,21 +20,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
20
|
/**
|
|
20
21
|
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the banner can be closed/removed by the user.
|
|
21
22
|
*/
|
|
22
|
-
persistent?: boolean
|
|
23
|
+
persistent?: boolean;
|
|
23
24
|
/**
|
|
24
25
|
* State of the banner.
|
|
25
26
|
*/
|
|
26
|
-
state?:
|
|
27
|
+
state?: BannerState;
|
|
27
28
|
/**
|
|
28
29
|
* Adapts the banner color depending on the theme.
|
|
29
30
|
*/
|
|
30
|
-
theme?:
|
|
31
|
+
theme?: Theme;
|
|
31
32
|
/**
|
|
32
33
|
* Has no effect anymore
|
|
33
34
|
* @deprecated since v3.0.0, will be removed with next major release
|
|
34
35
|
*/
|
|
35
|
-
width?:
|
|
36
|
-
}
|
|
36
|
+
width?: BannerWidth;
|
|
37
|
+
};
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PBannerProps>, {
|
|
37
39
|
description: string;
|
|
38
40
|
dismissButton: boolean;
|
|
39
41
|
heading: string;
|
|
@@ -42,41 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
44
|
theme: string;
|
|
43
45
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
46
|
dismiss: (value?: void | undefined) => void;
|
|
45
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
46
|
-
/**
|
|
47
|
-
* Description of the banner.
|
|
48
|
-
*/
|
|
49
|
-
description?: string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* If false, the banner will not have a dismiss button.
|
|
52
|
-
*/
|
|
53
|
-
dismissButton?: boolean | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Heading of the banner.
|
|
56
|
-
*/
|
|
57
|
-
heading?: string | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* If true, the banner is open.
|
|
60
|
-
*/
|
|
61
|
-
open: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `dismissButton` instead. Defines if the banner can be closed/removed by the user.
|
|
64
|
-
*/
|
|
65
|
-
persistent?: boolean | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* State of the banner.
|
|
68
|
-
*/
|
|
69
|
-
state?: "warning" | "error" | "info" | "neutral" | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Adapts the banner color depending on the theme.
|
|
72
|
-
*/
|
|
73
|
-
theme?: "light" | "dark" | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Has no effect anymore
|
|
76
|
-
* @deprecated since v3.0.0, will be removed with next major release
|
|
77
|
-
*/
|
|
78
|
-
width?: "extended" | "basic" | "fluid" | undefined;
|
|
79
|
-
}>, {
|
|
47
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PBannerProps>, {
|
|
80
48
|
description: string;
|
|
81
49
|
dismissButton: boolean;
|
|
82
50
|
heading: string;
|
|
@@ -88,12 +56,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
88
56
|
}, {
|
|
89
57
|
heading: string;
|
|
90
58
|
open: boolean;
|
|
91
|
-
theme:
|
|
59
|
+
theme: "light" | "dark";
|
|
92
60
|
description: string;
|
|
93
61
|
dismissButton: boolean;
|
|
94
|
-
state:
|
|
62
|
+
state: "warning" | "error" | "info" | "neutral";
|
|
95
63
|
}>, {
|
|
96
|
-
default
|
|
64
|
+
default?(_: {}): any;
|
|
97
65
|
}>;
|
|
98
66
|
export default _default;
|
|
99
67
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -106,12 +74,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
106
74
|
};
|
|
107
75
|
};
|
|
108
76
|
type __VLS_WithDefaults<P, D> = {
|
|
109
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
77
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
110
78
|
default: D[K];
|
|
111
|
-
} : P[K];
|
|
79
|
+
}> : P[K];
|
|
112
80
|
};
|
|
113
81
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
114
82
|
new (): {
|
|
115
83
|
$slots: S;
|
|
84
|
+
$props: __VLS_PropsChildren<S>;
|
|
116
85
|
};
|
|
117
86
|
};
|
|
87
|
+
type __VLS_PropsChildren<S> = {
|
|
88
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
89
|
+
};
|
|
90
|
+
type __VLS_Prettify<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { BreakpointCustomizable, ButtonGroupDirection } from '../types';
|
|
2
|
-
|
|
3
|
+
type PButtonGroupProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
5
6
|
*/
|
|
6
|
-
direction?: BreakpointCustomizable<
|
|
7
|
-
}
|
|
7
|
+
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PButtonGroupProps>, {
|
|
8
10
|
direction: () => {
|
|
9
11
|
base: string;
|
|
10
12
|
xs: string;
|
|
11
13
|
};
|
|
12
|
-
}>, {}, 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<{
|
|
13
|
-
/**
|
|
14
|
-
* Defines the direction of the main and cross axis. The default is ’{base: ‘column’, xs: ‘row’}' showing buttons vertically stacked on mobile viewports and side-by-side in a horizontal row from breakpoint ‘xs’. You always need to provide a base value when using breakpoints.
|
|
15
|
-
*/
|
|
16
|
-
direction?: BreakpointCustomizable<"row" | "column"> | undefined;
|
|
17
|
-
}>, {
|
|
14
|
+
}>, {}, 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<PButtonGroupProps>, {
|
|
18
15
|
direction: () => {
|
|
19
16
|
base: string;
|
|
20
17
|
xs: string;
|
|
21
18
|
};
|
|
22
19
|
}>>>, {
|
|
23
|
-
direction: BreakpointCustomizable<
|
|
20
|
+
direction: BreakpointCustomizable<"row" | "column">;
|
|
24
21
|
}>, {
|
|
25
|
-
default
|
|
22
|
+
default?(_: {}): any;
|
|
26
23
|
}>;
|
|
27
24
|
export default _default;
|
|
28
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -35,12 +32,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
35
32
|
};
|
|
36
33
|
};
|
|
37
34
|
type __VLS_WithDefaults<P, D> = {
|
|
38
|
-
[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] & {
|
|
39
36
|
default: D[K];
|
|
40
|
-
} : P[K];
|
|
37
|
+
}> : P[K];
|
|
41
38
|
};
|
|
42
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
40
|
new (): {
|
|
44
41
|
$slots: S;
|
|
42
|
+
$props: __VLS_PropsChildren<S>;
|
|
45
43
|
};
|
|
46
44
|
};
|
|
45
|
+
type __VLS_PropsChildren<S> = {
|
|
46
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
47
|
+
};
|
|
48
|
+
type __VLS_Prettify<T> = {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} & {};
|
|
@@ -1,59 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
7
|
+
active?: boolean;
|
|
7
8
|
/**
|
|
8
9
|
* Aligns the label.
|
|
9
10
|
*/
|
|
10
|
-
alignLabel?: BreakpointCustomizable<
|
|
11
|
+
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
11
12
|
/**
|
|
12
13
|
* Add ARIA attributes.
|
|
13
14
|
*/
|
|
14
|
-
aria?: SelectedAriaAttributes<
|
|
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
|
|
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
|
|
23
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
23
24
|
/**
|
|
24
25
|
* The icon shown.
|
|
25
26
|
*/
|
|
26
|
-
icon?:
|
|
27
|
+
icon?: ButtonPureIcon;
|
|
27
28
|
/**
|
|
28
29
|
* A URL path to a custom icon.
|
|
29
30
|
*/
|
|
30
|
-
iconSource?: string
|
|
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
|
|
35
|
+
loading?: boolean;
|
|
35
36
|
/**
|
|
36
37
|
* Size of the button.
|
|
37
38
|
*/
|
|
38
|
-
size?: BreakpointCustomizable<
|
|
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
|
|
43
|
+
stretch?: BreakpointCustomizable<boolean>;
|
|
43
44
|
/**
|
|
44
45
|
* Adapts the button color depending on the theme.
|
|
45
46
|
*/
|
|
46
|
-
theme?:
|
|
47
|
+
theme?: Theme;
|
|
47
48
|
/**
|
|
48
49
|
* Specifies the type of the button.
|
|
49
50
|
*/
|
|
50
|
-
type?:
|
|
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?:
|
|
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:
|
|
83
|
+
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
136
84
|
stretch: BreakpointCustomizable<boolean>;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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<
|
|
89
|
+
alignLabel: BreakpointCustomizable<"left" | "right">;
|
|
142
90
|
disabled: boolean;
|
|
143
91
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
144
|
-
icon:
|
|
92
|
+
icon: import("../types").LinkButtonIconName;
|
|
145
93
|
loading: boolean;
|
|
146
94
|
}>, {
|
|
147
|
-
default
|
|
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
|
+
} & {};
|