@porsche-design-system/components-vue 3.15.0-rc.0 → 3.15.0-rc.1
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 +9 -0
- package/package.json +2 -2
- package/esm/PorscheDesignSystemProvider.vue.d.ts +0 -41
- package/esm/lib/components/AccordionWrapper.vue.d.ts +0 -68
- package/esm/lib/components/BannerWrapper.vue.d.ts +0 -82
- package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +0 -45
- package/esm/lib/components/ButtonPureWrapper.vue.d.ts +0 -123
- package/esm/lib/components/ButtonTileWrapper.vue.d.ts +0 -125
- package/esm/lib/components/ButtonWrapper.vue.d.ts +0 -94
- package/esm/lib/components/CarouselWrapper.vue.d.ts +0 -120
- package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +0 -71
- package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +0 -53
- package/esm/lib/components/CrestWrapper.vue.d.ts +0 -40
- package/esm/lib/components/DisplayWrapper.vue.d.ts +0 -68
- package/esm/lib/components/DividerWrapper.vue.d.ts +0 -47
- package/esm/lib/components/FieldsetWrapper.vue.d.ts +0 -71
- package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +0 -72
- package/esm/lib/components/FlexItemWrapper.vue.d.ts +0 -75
- package/esm/lib/components/FlexWrapper.vue.d.ts +0 -75
- package/esm/lib/components/FlyoutNavigationItemWrapper.vue.d.ts +0 -28
- package/esm/lib/components/FlyoutNavigationWrapper.vue.d.ts +0 -53
- package/esm/lib/components/FlyoutWrapper.vue.d.ts +0 -56
- package/esm/lib/components/GridItemWrapper.vue.d.ts +0 -47
- package/esm/lib/components/GridWrapper.vue.d.ts +0 -63
- package/esm/lib/components/HeadingWrapper.vue.d.ts +0 -68
- package/esm/lib/components/HeadlineWrapper.vue.d.ts +0 -69
- package/esm/lib/components/IconWrapper.vue.d.ts +0 -63
- package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +0 -88
- package/esm/lib/components/LinkPureWrapper.vue.d.ts +0 -120
- package/esm/lib/components/LinkSocialWrapper.vue.d.ts +0 -67
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +0 -81
- package/esm/lib/components/LinkTileProductWrapper.vue.d.ts +0 -92
- package/esm/lib/components/LinkTileWrapper.vue.d.ts +0 -112
- package/esm/lib/components/LinkWrapper.vue.d.ts +0 -84
- package/esm/lib/components/MarqueWrapper.vue.d.ts +0 -62
- package/esm/lib/components/ModalWrapper.vue.d.ts +0 -86
- package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +0 -78
- package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +0 -42
- package/esm/lib/components/MultiSelectWrapper.vue.d.ts +0 -107
- package/esm/lib/components/PaginationWrapper.vue.d.ts +0 -101
- package/esm/lib/components/PinCodeWrapper.vue.d.ts +0 -121
- package/esm/lib/components/PopoverWrapper.vue.d.ts +0 -51
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +0 -71
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +0 -73
- package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +0 -55
- package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +0 -57
- package/esm/lib/components/SelectOptionWrapper.vue.d.ts +0 -42
- package/esm/lib/components/SelectWrapper.vue.d.ts +0 -104
- package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +0 -92
- package/esm/lib/components/SpinnerWrapper.vue.d.ts +0 -40
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +0 -43
- package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +0 -46
- package/esm/lib/components/SwitchWrapper.vue.d.ts +0 -84
- package/esm/lib/components/TableBodyWrapper.vue.d.ts +0 -9
- package/esm/lib/components/TableCellWrapper.vue.d.ts +0 -38
- package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +0 -50
- package/esm/lib/components/TableHeadRowWrapper.vue.d.ts +0 -9
- package/esm/lib/components/TableHeadWrapper.vue.d.ts +0 -9
- package/esm/lib/components/TableRowWrapper.vue.d.ts +0 -9
- package/esm/lib/components/TableWrapper.vue.d.ts +0 -35
- package/esm/lib/components/TabsBarWrapper.vue.d.ts +0 -71
- package/esm/lib/components/TabsItemWrapper.vue.d.ts +0 -24
- package/esm/lib/components/TabsWrapper.vue.d.ts +0 -74
- package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +0 -51
- package/esm/lib/components/TagWrapper.vue.d.ts +0 -51
- package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +0 -123
- package/esm/lib/components/TextListItemWrapper.vue.d.ts +0 -9
- package/esm/lib/components/TextListWrapper.vue.d.ts +0 -51
- package/esm/lib/components/TextWrapper.vue.d.ts +0 -78
- package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +0 -82
- package/esm/lib/components/ToastWrapper.vue.d.ts +0 -18
- package/esm/lib/components/WordmarkWrapper.vue.d.ts +0 -51
- package/esm/lib/components/index.d.ts +0 -69
- package/esm/lib/types.d.ts +0 -1356
- package/esm/plugin.d.ts +0 -14
- package/esm/public-api.d.ts +0 -6
- package/esm/utils.d.ts +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
### [Unreleased]
|
|
16
16
|
|
|
17
|
+
### [3.15.0-rc.1] - 2024-04-17
|
|
18
|
+
|
|
19
|
+
#### Added
|
|
20
|
+
|
|
21
|
+
- Partials: `getMetaTagsAndIconLinks`, `getComponentChunkLinks`, `getIconLinks` and `getFontLinks` support new format option `js`
|
|
22
|
+
([#3179](https://github.com/porsche-design-system/porsche-design-system/pull/3179))
|
|
23
|
+
|
|
17
24
|
### [3.15.0-rc.0] - 2024-04-05
|
|
18
25
|
|
|
19
26
|
#### Changed
|
|
@@ -23,6 +30,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
23
30
|
|
|
24
31
|
### Fixed
|
|
25
32
|
|
|
33
|
+
- `Modal`: Missing box-shadow on sticky footer when slotted content changes
|
|
34
|
+
([#3154](https://github.com/porsche-design-system/porsche-design-system/pull/3154))
|
|
26
35
|
- `Select`: Hydration error in Next.js when using slotted `img`
|
|
27
36
|
([#3162](https://github.com/porsche-design-system/porsche-design-system/pull/3162))
|
|
28
37
|
- `Text Field Wrapper`, `Textarea Wrapper`: Dynamic changes of `showCounter` and `maxLength` are reflected. The counter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.15.0-rc.
|
|
3
|
+
"version": "3.15.0-rc.1",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE",
|
|
18
18
|
"homepage": "https://designsystem.porsche.com",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@porsche-design-system/components-js": "3.15.0-rc.
|
|
20
|
+
"@porsche-design-system/components-js": "3.15.0-rc.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"vue": ">=3.0.0 <4.0.0"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Theme } from './lib/types';
|
|
2
|
-
type Props = {
|
|
3
|
-
prefix?: string;
|
|
4
|
-
cdn?: 'auto' | 'cn';
|
|
5
|
-
theme?: Theme;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
8
|
-
prefix: string;
|
|
9
|
-
theme: string;
|
|
10
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
11
|
-
prefix: string;
|
|
12
|
-
theme: string;
|
|
13
|
-
}>>>, {
|
|
14
|
-
prefix: string;
|
|
15
|
-
theme: "light" | "dark" | "auto";
|
|
16
|
-
}, {}>, {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
}>;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithDefaults<P, D> = {
|
|
21
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
22
|
-
default: D[K];
|
|
23
|
-
}> : P[K];
|
|
24
|
-
};
|
|
25
|
-
type __VLS_Prettify<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
-
type __VLS_TypePropsToOption<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
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
2
|
-
type PAccordionProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
5
|
-
*/
|
|
6
|
-
compact?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Defines the heading used in accordion.
|
|
9
|
-
*/
|
|
10
|
-
heading?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Defines if accordion is open.
|
|
13
|
-
*/
|
|
14
|
-
open?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The text size.
|
|
17
|
-
*/
|
|
18
|
-
size?: BreakpointCustomizable<AccordionSize>;
|
|
19
|
-
/**
|
|
20
|
-
* Sets a headline tag, so it fits correctly within the outline of the page.
|
|
21
|
-
*/
|
|
22
|
-
tag?: AccordionTag;
|
|
23
|
-
/**
|
|
24
|
-
* Adapts the color when used on dark background.
|
|
25
|
-
*/
|
|
26
|
-
theme?: Theme;
|
|
27
|
-
};
|
|
28
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PAccordionProps>, {
|
|
29
|
-
size: string;
|
|
30
|
-
tag: string;
|
|
31
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
-
accordionChange: (value: import("../types").AccordionUpdateEvent) => void;
|
|
33
|
-
update: (value: import("../types").AccordionUpdateEvent) => void;
|
|
34
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PAccordionProps>, {
|
|
35
|
-
size: string;
|
|
36
|
-
tag: string;
|
|
37
|
-
}>>> & {
|
|
38
|
-
onAccordionChange?: ((value: import("../types").AccordionUpdateEvent) => any) | undefined;
|
|
39
|
-
onUpdate?: ((value: import("../types").AccordionUpdateEvent) => any) | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
size: BreakpointCustomizable<"small" | "medium">;
|
|
42
|
-
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
43
|
-
}, {}>, {
|
|
44
|
-
default?(_: {}): any;
|
|
45
|
-
}>;
|
|
46
|
-
export default _default;
|
|
47
|
-
type __VLS_WithDefaults<P, D> = {
|
|
48
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
-
default: D[K];
|
|
50
|
-
}> : P[K];
|
|
51
|
-
};
|
|
52
|
-
type __VLS_Prettify<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
55
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
-
new (): {
|
|
57
|
-
$slots: S;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { BannerState, Theme, BannerWidth } from '../types';
|
|
2
|
-
type PBannerProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Description of the banner.
|
|
5
|
-
*/
|
|
6
|
-
description?: string;
|
|
7
|
-
/**
|
|
8
|
-
* If false, the banner will not have a dismiss button.
|
|
9
|
-
*/
|
|
10
|
-
dismissButton?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Heading of the banner.
|
|
13
|
-
*/
|
|
14
|
-
heading?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If true, the banner is open.
|
|
17
|
-
*/
|
|
18
|
-
open: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @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
|
-
persistent?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* State of the banner.
|
|
25
|
-
*/
|
|
26
|
-
state?: BannerState;
|
|
27
|
-
/**
|
|
28
|
-
* Adapts the banner color depending on the theme.
|
|
29
|
-
*/
|
|
30
|
-
theme?: Theme;
|
|
31
|
-
/**
|
|
32
|
-
* Has no effect anymore
|
|
33
|
-
* @deprecated since v3.0.0, will be removed with next major release
|
|
34
|
-
*/
|
|
35
|
-
width?: BannerWidth;
|
|
36
|
-
};
|
|
37
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PBannerProps>, {
|
|
38
|
-
description: string;
|
|
39
|
-
dismissButton: boolean;
|
|
40
|
-
heading: string;
|
|
41
|
-
open: boolean;
|
|
42
|
-
state: string;
|
|
43
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
-
[x: string]: (...args: unknown[]) => void;
|
|
45
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PBannerProps>, {
|
|
46
|
-
description: string;
|
|
47
|
-
dismissButton: boolean;
|
|
48
|
-
heading: string;
|
|
49
|
-
open: boolean;
|
|
50
|
-
state: string;
|
|
51
|
-
}>>>, {
|
|
52
|
-
heading: string;
|
|
53
|
-
open: boolean;
|
|
54
|
-
description: string;
|
|
55
|
-
dismissButton: boolean;
|
|
56
|
-
state: "warning" | "error" | "info" | "neutral";
|
|
57
|
-
}, {}>, {
|
|
58
|
-
default?(_: {}): any;
|
|
59
|
-
}>;
|
|
60
|
-
export default _default;
|
|
61
|
-
type __VLS_WithDefaults<P, D> = {
|
|
62
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
63
|
-
default: D[K];
|
|
64
|
-
}> : P[K];
|
|
65
|
-
};
|
|
66
|
-
type __VLS_Prettify<T> = {
|
|
67
|
-
[K in keyof T]: T[K];
|
|
68
|
-
} & {};
|
|
69
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
70
|
-
new (): {
|
|
71
|
-
$slots: S;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
75
|
-
type __VLS_TypePropsToOption<T> = {
|
|
76
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
77
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
78
|
-
} : {
|
|
79
|
-
type: import('vue').PropType<T[K]>;
|
|
80
|
-
required: true;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, ButtonGroupDirection } from '../types';
|
|
2
|
-
type PButtonGroupProps = {
|
|
3
|
-
/**
|
|
4
|
-
* 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
|
-
direction?: BreakpointCustomizable<ButtonGroupDirection>;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonGroupProps>, {
|
|
9
|
-
direction: () => {
|
|
10
|
-
base: string;
|
|
11
|
-
xs: string;
|
|
12
|
-
};
|
|
13
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonGroupProps>, {
|
|
14
|
-
direction: () => {
|
|
15
|
-
base: string;
|
|
16
|
-
xs: string;
|
|
17
|
-
};
|
|
18
|
-
}>>>, {
|
|
19
|
-
direction: BreakpointCustomizable<"row" | "column">;
|
|
20
|
-
}, {}>, {
|
|
21
|
-
default?(_: {}): any;
|
|
22
|
-
}>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
-
default: D[K];
|
|
27
|
-
}> : P[K];
|
|
28
|
-
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<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
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, ButtonPureAlignLabel, SelectedAriaAttributes, ButtonPureAriaAttribute, ButtonPureIcon, ButtonPureSize, Theme, ButtonPureType, ButtonPureWeight } from '../types';
|
|
2
|
-
type PButtonPureProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Display button in active state.
|
|
5
|
-
*/
|
|
6
|
-
active?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Aligns the label.
|
|
9
|
-
*/
|
|
10
|
-
alignLabel?: BreakpointCustomizable<ButtonPureAlignLabel>;
|
|
11
|
-
/**
|
|
12
|
-
* Add ARIA attributes.
|
|
13
|
-
*/
|
|
14
|
-
aria?: SelectedAriaAttributes<ButtonPureAriaAttribute>;
|
|
15
|
-
/**
|
|
16
|
-
* Disables the button. No events will be triggered while disabled state is active.
|
|
17
|
-
*/
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
21
|
-
*/
|
|
22
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
23
|
-
/**
|
|
24
|
-
* The icon shown.
|
|
25
|
-
*/
|
|
26
|
-
icon?: ButtonPureIcon;
|
|
27
|
-
/**
|
|
28
|
-
* A URL path to a custom icon.
|
|
29
|
-
*/
|
|
30
|
-
iconSource?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
33
|
-
*/
|
|
34
|
-
loading?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
|
|
37
|
-
*/
|
|
38
|
-
name?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Size of the button.
|
|
41
|
-
*/
|
|
42
|
-
size?: BreakpointCustomizable<ButtonPureSize>;
|
|
43
|
-
/**
|
|
44
|
-
* Stretches the area between icon and label to max available space.
|
|
45
|
-
*/
|
|
46
|
-
stretch?: BreakpointCustomizable<boolean>;
|
|
47
|
-
/**
|
|
48
|
-
* Adapts the button color depending on the theme.
|
|
49
|
-
*/
|
|
50
|
-
theme?: Theme;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies the type of the button.
|
|
53
|
-
*/
|
|
54
|
-
type?: ButtonPureType;
|
|
55
|
-
/**
|
|
56
|
-
* Defines the value associated with the button's name when it's submitted with the form data. This value is passed to the server in params when the form is submitted using this button.
|
|
57
|
-
*/
|
|
58
|
-
value?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The weight of the text (only has effect with visible label).
|
|
61
|
-
* @deprecated since v3.0.0, will be removed with next major release
|
|
62
|
-
*/
|
|
63
|
-
weight?: ButtonPureWeight;
|
|
64
|
-
};
|
|
65
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonPureProps>, {
|
|
66
|
-
active: boolean;
|
|
67
|
-
alignLabel: string;
|
|
68
|
-
disabled: boolean;
|
|
69
|
-
hideLabel: boolean;
|
|
70
|
-
icon: string;
|
|
71
|
-
loading: boolean;
|
|
72
|
-
size: string;
|
|
73
|
-
stretch: boolean;
|
|
74
|
-
type: string;
|
|
75
|
-
weight: string;
|
|
76
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonPureProps>, {
|
|
77
|
-
active: boolean;
|
|
78
|
-
alignLabel: string;
|
|
79
|
-
disabled: boolean;
|
|
80
|
-
hideLabel: boolean;
|
|
81
|
-
icon: string;
|
|
82
|
-
loading: boolean;
|
|
83
|
-
size: string;
|
|
84
|
-
stretch: boolean;
|
|
85
|
-
type: string;
|
|
86
|
-
weight: string;
|
|
87
|
-
}>>>, {
|
|
88
|
-
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
89
|
-
stretch: BreakpointCustomizable<boolean>;
|
|
90
|
-
type: "button" | "reset" | "submit";
|
|
91
|
-
size: BreakpointCustomizable<"inherit" | "small" | "medium" | "large" | "x-large" | "xx-small" | "x-small">;
|
|
92
|
-
active: boolean;
|
|
93
|
-
alignLabel: BreakpointCustomizable<"start" | "end" | "left" | "right">;
|
|
94
|
-
disabled: boolean;
|
|
95
|
-
hideLabel: BreakpointCustomizable<boolean>;
|
|
96
|
-
icon: import("../types").LinkButtonIconName;
|
|
97
|
-
loading: boolean;
|
|
98
|
-
}, {}>, {
|
|
99
|
-
default?(_: {}): any;
|
|
100
|
-
}>;
|
|
101
|
-
export default _default;
|
|
102
|
-
type __VLS_WithDefaults<P, D> = {
|
|
103
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
104
|
-
default: D[K];
|
|
105
|
-
}> : P[K];
|
|
106
|
-
};
|
|
107
|
-
type __VLS_Prettify<T> = {
|
|
108
|
-
[K in keyof T]: T[K];
|
|
109
|
-
} & {};
|
|
110
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
111
|
-
new (): {
|
|
112
|
-
$slots: S;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
116
|
-
type __VLS_TypePropsToOption<T> = {
|
|
117
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
118
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
119
|
-
} : {
|
|
120
|
-
type: import('vue').PropType<T[K]>;
|
|
121
|
-
required: true;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type { ButtonTileAlign, SelectedAriaAttributes, ButtonTileAriaAttribute, BreakpointCustomizable, ButtonTileAspectRatio, ButtonTileBackground, ButtonTileIcon, ButtonTileSize, ButtonTileType, ButtonTileWeight } from '../types';
|
|
2
|
-
type PButtonTileProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Alignment of button and description.
|
|
5
|
-
*/
|
|
6
|
-
align?: ButtonTileAlign;
|
|
7
|
-
/**
|
|
8
|
-
* Add ARIA attributes.
|
|
9
|
-
*/
|
|
10
|
-
aria?: SelectedAriaAttributes<ButtonTileAriaAttribute>;
|
|
11
|
-
/**
|
|
12
|
-
* Aspect ratio of the button-tile.
|
|
13
|
-
*/
|
|
14
|
-
aspectRatio?: BreakpointCustomizable<ButtonTileAspectRatio>;
|
|
15
|
-
/**
|
|
16
|
-
* Adapts the description and button theme when used on light background image.
|
|
17
|
-
*/
|
|
18
|
-
background?: ButtonTileBackground;
|
|
19
|
-
/**
|
|
20
|
-
* Displays the button-tile as compact version with description and button icon only.
|
|
21
|
-
*/
|
|
22
|
-
compact?: BreakpointCustomizable<boolean>;
|
|
23
|
-
/**
|
|
24
|
-
* Description text.
|
|
25
|
-
*/
|
|
26
|
-
description: string;
|
|
27
|
-
/**
|
|
28
|
-
* Disables the button. No events will be triggered while disabled state is active.
|
|
29
|
-
*/
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Show gradient.
|
|
33
|
-
*/
|
|
34
|
-
gradient?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* The icon shown. By choosing 'none', no icon is displayed.
|
|
37
|
-
*/
|
|
38
|
-
icon?: ButtonTileIcon;
|
|
39
|
-
/**
|
|
40
|
-
* A URL path to a custom icon.
|
|
41
|
-
*/
|
|
42
|
-
iconSource?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Label of the button.
|
|
45
|
-
*/
|
|
46
|
-
label: string;
|
|
47
|
-
/**
|
|
48
|
-
* Disables the button-tile and shows a loading indicator. No events will be triggered while loading state is active.
|
|
49
|
-
*/
|
|
50
|
-
loading?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Font size of the description.
|
|
53
|
-
*/
|
|
54
|
-
size?: BreakpointCustomizable<ButtonTileSize>;
|
|
55
|
-
/**
|
|
56
|
-
* Specifies the type of the button.
|
|
57
|
-
*/
|
|
58
|
-
type?: ButtonTileType;
|
|
59
|
-
/**
|
|
60
|
-
* Font weight of the description.
|
|
61
|
-
*/
|
|
62
|
-
weight?: BreakpointCustomizable<ButtonTileWeight>;
|
|
63
|
-
};
|
|
64
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonTileProps>, {
|
|
65
|
-
align: string;
|
|
66
|
-
aspectRatio: string;
|
|
67
|
-
background: string;
|
|
68
|
-
compact: boolean;
|
|
69
|
-
disabled: boolean;
|
|
70
|
-
gradient: boolean;
|
|
71
|
-
icon: string;
|
|
72
|
-
loading: boolean;
|
|
73
|
-
size: string;
|
|
74
|
-
type: string;
|
|
75
|
-
weight: string;
|
|
76
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonTileProps>, {
|
|
77
|
-
align: string;
|
|
78
|
-
aspectRatio: string;
|
|
79
|
-
background: string;
|
|
80
|
-
compact: boolean;
|
|
81
|
-
disabled: boolean;
|
|
82
|
-
gradient: boolean;
|
|
83
|
-
icon: string;
|
|
84
|
-
loading: boolean;
|
|
85
|
-
size: string;
|
|
86
|
-
type: string;
|
|
87
|
-
weight: string;
|
|
88
|
-
}>>>, {
|
|
89
|
-
weight: BreakpointCustomizable<"regular" | "semi-bold">;
|
|
90
|
-
type: "button" | "reset" | "submit";
|
|
91
|
-
compact: BreakpointCustomizable<boolean>;
|
|
92
|
-
size: BreakpointCustomizable<"default" | "inherit">;
|
|
93
|
-
disabled: boolean;
|
|
94
|
-
icon: import("../types").LinkButtonIconName;
|
|
95
|
-
loading: boolean;
|
|
96
|
-
align: "top" | "bottom";
|
|
97
|
-
aspectRatio: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">;
|
|
98
|
-
background: "light" | "dark" | "auto";
|
|
99
|
-
gradient: boolean;
|
|
100
|
-
}, {}>, {
|
|
101
|
-
default?(_: {}): any;
|
|
102
|
-
}>;
|
|
103
|
-
export default _default;
|
|
104
|
-
type __VLS_WithDefaults<P, D> = {
|
|
105
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
106
|
-
default: D[K];
|
|
107
|
-
}> : P[K];
|
|
108
|
-
};
|
|
109
|
-
type __VLS_Prettify<T> = {
|
|
110
|
-
[K in keyof T]: T[K];
|
|
111
|
-
} & {};
|
|
112
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
-
new (): {
|
|
114
|
-
$slots: S;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
118
|
-
type __VLS_TypePropsToOption<T> = {
|
|
119
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
120
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
121
|
-
} : {
|
|
122
|
-
type: import('vue').PropType<T[K]>;
|
|
123
|
-
required: true;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes, ButtonAriaAttribute, BreakpointCustomizable, ButtonIcon, Theme, ButtonType, ButtonVariant } from '../types';
|
|
2
|
-
type PButtonProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Add ARIA attributes.
|
|
5
|
-
*/
|
|
6
|
-
aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
|
|
7
|
-
/**
|
|
8
|
-
* Disables the button. No events will be triggered while disabled state is active.
|
|
9
|
-
*/
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
13
|
-
*/
|
|
14
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
15
|
-
/**
|
|
16
|
-
* The icon shown. By choosing 'none', no icon is displayed.
|
|
17
|
-
*/
|
|
18
|
-
icon?: ButtonIcon;
|
|
19
|
-
/**
|
|
20
|
-
* A URL path to a custom icon.
|
|
21
|
-
*/
|
|
22
|
-
iconSource?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Disables the button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
25
|
-
*/
|
|
26
|
-
loading?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form.
|
|
29
|
-
*/
|
|
30
|
-
name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Adapts the button color depending on the theme.
|
|
33
|
-
*/
|
|
34
|
-
theme?: Theme;
|
|
35
|
-
/**
|
|
36
|
-
* Specifies the type of the button.
|
|
37
|
-
*/
|
|
38
|
-
type?: ButtonType;
|
|
39
|
-
/**
|
|
40
|
-
* Defines the value associated with the button's name when it's submitted with the form data. This value is passed to the server in params when the form is submitted using this button.
|
|
41
|
-
*/
|
|
42
|
-
value?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The style variant of the button.
|
|
45
|
-
*/
|
|
46
|
-
variant?: ButtonVariant;
|
|
47
|
-
};
|
|
48
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonProps>, {
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
hideLabel: boolean;
|
|
51
|
-
icon: string;
|
|
52
|
-
loading: boolean;
|
|
53
|
-
type: string;
|
|
54
|
-
variant: string;
|
|
55
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonProps>, {
|
|
56
|
-
disabled: boolean;
|
|
57
|
-
hideLabel: boolean;
|
|
58
|
-
icon: string;
|
|
59
|
-
loading: boolean;
|
|
60
|
-
type: string;
|
|
61
|
-
variant: string;
|
|
62
|
-
}>>>, {
|
|
63
|
-
type: "button" | "reset" | "submit";
|
|
64
|
-
disabled: boolean;
|
|
65
|
-
hideLabel: BreakpointCustomizable<boolean>;
|
|
66
|
-
icon: import("../types").LinkButtonIconName;
|
|
67
|
-
loading: boolean;
|
|
68
|
-
variant: "primary" | "secondary" | "tertiary";
|
|
69
|
-
}, {}>, {
|
|
70
|
-
default?(_: {}): any;
|
|
71
|
-
}>;
|
|
72
|
-
export default _default;
|
|
73
|
-
type __VLS_WithDefaults<P, D> = {
|
|
74
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
|
-
default: D[K];
|
|
76
|
-
}> : P[K];
|
|
77
|
-
};
|
|
78
|
-
type __VLS_Prettify<T> = {
|
|
79
|
-
[K in keyof T]: T[K];
|
|
80
|
-
} & {};
|
|
81
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
-
new (): {
|
|
83
|
-
$slots: S;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
87
|
-
type __VLS_TypePropsToOption<T> = {
|
|
88
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
89
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
90
|
-
} : {
|
|
91
|
-
type: import('vue').PropType<T[K]>;
|
|
92
|
-
required: true;
|
|
93
|
-
};
|
|
94
|
-
};
|