@porsche-design-system/components-vue 2.19.0 → 2.20.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.
- package/CHANGELOG.md +36 -2
- package/PorscheDesignSystemProvider.vue2.js +2 -3
- package/jsdom-polyfill/index.js +12 -0
- package/jsdom-polyfill.d.ts +1 -0
- package/lib/components/AccordionWrapper.vue2.js +2 -3
- package/lib/components/BannerWrapper.vue2.js +2 -3
- package/lib/components/ButtonGroupWrapper.vue.d.ts +4 -4
- package/lib/components/ButtonGroupWrapper.vue2.js +2 -3
- package/lib/components/ButtonPureWrapper.vue.d.ts +4 -4
- package/lib/components/ButtonPureWrapper.vue2.js +2 -3
- package/lib/components/ButtonWrapper.vue2.js +2 -3
- package/lib/components/CarouselWrapper.vue2.js +2 -3
- package/lib/components/CheckboxWrapperWrapper.vue2.js +2 -3
- package/lib/components/ContentWrapperWrapper.vue2.js +2 -3
- package/lib/components/DividerWrapper.vue.d.ts +4 -4
- package/lib/components/DividerWrapper.vue2.js +2 -3
- package/lib/components/FieldsetWrapperWrapper.vue2.js +2 -3
- package/lib/components/FlexItemWrapper.vue.d.ts +19 -19
- package/lib/components/FlexItemWrapper.vue2.js +2 -3
- package/lib/components/FlexWrapper.vue.d.ts +19 -19
- package/lib/components/FlexWrapper.vue2.js +2 -3
- package/lib/components/GridItemWrapper.vue.d.ts +7 -7
- package/lib/components/GridItemWrapper.vue2.js +2 -3
- package/lib/components/GridWrapper.vue.d.ts +10 -10
- package/lib/components/GridWrapper.vue2.js +2 -3
- package/lib/components/HeadlineWrapper.vue2.js +2 -3
- package/lib/components/IconWrapper.vue2.js +2 -3
- package/lib/components/InlineNotificationWrapper.vue2.js +2 -3
- package/lib/components/LinkPureWrapper.vue.d.ts +4 -4
- package/lib/components/LinkPureWrapper.vue2.js +2 -3
- package/lib/components/LinkSocialWrapper.vue2.js +2 -3
- package/lib/components/LinkTileWrapper.vue2.js +2 -3
- package/lib/components/LinkWrapper.vue2.js +2 -3
- package/lib/components/MarqueWrapper.vue2.js +2 -3
- package/lib/components/ModalWrapper.vue2.js +2 -3
- package/lib/components/PaginationWrapper.vue2.js +2 -3
- package/lib/components/PopoverWrapper.vue2.js +2 -3
- package/lib/components/RadioButtonWrapperWrapper.vue2.js +2 -3
- package/lib/components/ScrollerWrapper.vue2.js +2 -3
- package/lib/components/SegmentedControlItemWrapper.vue2.js +2 -3
- package/lib/components/SegmentedControlWrapper.vue2.js +2 -3
- package/lib/components/SelectWrapperWrapper.vue2.js +2 -3
- package/lib/components/SpinnerWrapper.vue.d.ts +4 -4
- package/lib/components/SpinnerWrapper.vue2.js +2 -3
- package/lib/components/StepperHorizontalItemWrapper.vue2.js +2 -3
- package/lib/components/StepperHorizontalWrapper.vue2.js +2 -3
- package/lib/components/SwitchWrapper.vue.d.ts +4 -4
- package/lib/components/SwitchWrapper.vue2.js +2 -3
- package/lib/components/TableBodyWrapper.vue2.js +2 -3
- package/lib/components/TableCellWrapper.vue2.js +2 -3
- package/lib/components/TableHeadCellWrapper.vue2.js +2 -3
- package/lib/components/TableHeadRowWrapper.vue2.js +2 -3
- package/lib/components/TableHeadWrapper.vue2.js +2 -3
- package/lib/components/TableRowWrapper.vue2.js +2 -3
- package/lib/components/TableWrapper.vue2.js +2 -3
- package/lib/components/TabsBarWrapper.vue2.js +2 -3
- package/lib/components/TabsItemWrapper.vue2.js +2 -3
- package/lib/components/TabsWrapper.vue2.js +2 -3
- package/lib/components/TagDismissibleWrapper.vue2.js +2 -3
- package/lib/components/TagWrapper.vue2.js +2 -3
- package/lib/components/TextFieldWrapperWrapper.vue2.js +2 -3
- package/lib/components/TextListItemWrapper.vue2.js +2 -3
- package/lib/components/TextListWrapper.vue2.js +2 -3
- package/lib/components/TextWrapper.vue2.js +2 -3
- package/lib/components/TextareaWrapperWrapper.vue2.js +2 -3
- package/lib/components/ToastWrapper.vue2.js +2 -3
- package/lib/types.d.ts +26 -47
- package/package.json +2 -2
- package/testing/package.json +5 -0
- package/testing/testing.d.ts +1 -0
- package/testing/testing.js +12 -0
- package/testing.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
9
9
|
|
|
10
10
|
### [Unreleased]
|
|
11
11
|
|
|
12
|
+
### [2.20.0-rc.0] - 2023-01-30
|
|
13
|
+
|
|
14
|
+
#### Added
|
|
15
|
+
|
|
16
|
+
- `applyNormalizeStyles` option for `getInitialStyles()` partial which includes basic css styles for Light DOM
|
|
17
|
+
|
|
18
|
+
### [2.19.1-rc.1] - 2023-01-18
|
|
19
|
+
|
|
20
|
+
#### Added
|
|
21
|
+
|
|
22
|
+
- `jsdom-polyfill` subpackage is available at `@porsche-design-system/components-{js|angular|react|vue}/jsdom-polyfill`
|
|
23
|
+
and can be used to have working web components in jsdom based tests (e.g. jest)
|
|
24
|
+
- `testing` subpackage is available at `@porsche-design-system/components-{js|angular|react|vue}/testing` to provide
|
|
25
|
+
`getByRoleShadowed`, `getByLabelTextShadowed` and `getByTextShadowed` utilities which use `@testing-library/dom`
|
|
26
|
+
queries internally to support Shadow DOM
|
|
27
|
+
- Validation if `prefix` is already reserved by a different version upon initialization of the Porsche Design System
|
|
28
|
+
|
|
29
|
+
#### Fixed
|
|
30
|
+
|
|
31
|
+
- `componentsReady()` waits for Porsche Design System being initialized before checking components which can happen in
|
|
32
|
+
certain test scenarios without partials
|
|
33
|
+
|
|
34
|
+
### [2.19.1-rc.0] - 2023-01-18
|
|
35
|
+
|
|
36
|
+
#### Fixed
|
|
37
|
+
|
|
38
|
+
- Bug in `@porsche-design-system/components-react/ssr` where in some cases during SSG an error was thrown when
|
|
39
|
+
components render their children conditionally
|
|
40
|
+
|
|
12
41
|
### [2.19.0] - 2022-12-22
|
|
13
42
|
|
|
14
43
|
### [2.19.0-rc.2] - 2022-12-22
|
|
@@ -38,7 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
38
67
|
- Validation to ensure crucial partials are used.
|
|
39
68
|
**Disclaimer:** The Porsche Design System will **not** inject its initial styles anymore. Please use the
|
|
40
69
|
`getInitialStyles()` partial to reduce flash of unstyled content (FOUC) as described here:
|
|
41
|
-
|
|
70
|
+
[getInitialStyles() documentation](https://designsystem.porsche.com/latest/partials/initial-styles)
|
|
42
71
|
|
|
43
72
|
#### Changed
|
|
44
73
|
|
|
@@ -69,11 +98,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
69
98
|
#### Added
|
|
70
99
|
|
|
71
100
|
- SSR/SSG ready components using Declarative Shadow DOM for Next JS are shipped via
|
|
72
|
-
`@porsche-design-system/components-react/ssr`. To use it simply change your imports
|
|
101
|
+
`@porsche-design-system/components-react/ssr`. To use it simply change your imports.
|
|
102
|
+
|
|
103
|
+
**Important:** make sure to apply the new `getDSRPonyfill()` partial right before your closing `</body>` tag. More
|
|
104
|
+
information can be found here:
|
|
105
|
+
[getDSRPonyfill() documentation](https://designsystem.porsche.com/latest/partials/dsr-ponyfill)
|
|
73
106
|
|
|
74
107
|
```diff
|
|
75
108
|
- import { PorscheDesignSystemProvider, PButton, ... } from '@porsche-design-system/components-react';
|
|
76
109
|
+ import { PorscheDesignSystemProvider, PButton, ... } from '@porsche-design-system/components-react/ssr';
|
|
110
|
+
+ import { getDSRPonyfill } from '@porsche-design-system/components-react/partials';
|
|
77
111
|
```
|
|
78
112
|
|
|
79
113
|
#### Changed
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsdomPolyfill = require('@porsche-design-system/components-js/jsdom-polyfill');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(jsdomPolyfill).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return jsdomPolyfill[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@porsche-design-system/components-js/jsdom-polyfill';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ButtonGroupDirection } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, ButtonGroupDirection } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
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
5
|
*/
|
|
6
|
-
direction?:
|
|
6
|
+
direction?: BreakpointCustomizable<"row" | "column"> | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
direction: () => {
|
|
9
9
|
base: string;
|
|
@@ -13,14 +13,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
/**
|
|
14
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
15
|
*/
|
|
16
|
-
direction?:
|
|
16
|
+
direction?: BreakpointCustomizable<"row" | "column"> | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
direction: () => {
|
|
19
19
|
base: string;
|
|
20
20
|
xs: string;
|
|
21
21
|
};
|
|
22
22
|
}>>>, {
|
|
23
|
-
direction: ButtonGroupDirection
|
|
23
|
+
direction: BreakpointCustomizable<ButtonGroupDirection>;
|
|
24
24
|
}>, {
|
|
25
25
|
default: (_: {}) => any;
|
|
26
26
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AlignLabel, SelectedAriaAttributes,
|
|
1
|
+
import type { BreakpointCustomizable, AlignLabel, SelectedAriaAttributes, LinkButtonPureIconName, TextSize, ThemeExtendedElectricDark, ButtonType, TextWeight } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Display button in active state.
|
|
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
7
7
|
/**
|
|
8
8
|
* Aligns the label.
|
|
9
9
|
*/
|
|
10
|
-
alignLabel?:
|
|
10
|
+
alignLabel?: BreakpointCustomizable<"left" | "right"> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Add ARIA attributes.
|
|
13
13
|
*/
|
|
@@ -78,7 +78,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
78
78
|
/**
|
|
79
79
|
* Aligns the label.
|
|
80
80
|
*/
|
|
81
|
-
alignLabel?:
|
|
81
|
+
alignLabel?: BreakpointCustomizable<"left" | "right"> | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Add ARIA attributes.
|
|
84
84
|
*/
|
|
@@ -148,7 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
148
148
|
theme: ThemeExtendedElectricDark;
|
|
149
149
|
type: ButtonType;
|
|
150
150
|
active: boolean;
|
|
151
|
-
alignLabel: AlignLabel
|
|
151
|
+
alignLabel: BreakpointCustomizable<AlignLabel>;
|
|
152
152
|
disabled: boolean;
|
|
153
153
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
154
154
|
icon: LinkButtonPureIconName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DividerColor, DividerOrientation, Theme } from '../types';
|
|
1
|
+
import type { DividerColor, BreakpointCustomizable, DividerOrientation, Theme } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines color depending on theme.
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
/**
|
|
8
8
|
* Defines orientation.
|
|
9
9
|
*/
|
|
10
|
-
orientation?:
|
|
10
|
+
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Adapts color depending on theme.
|
|
13
13
|
*/
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
24
|
/**
|
|
25
25
|
* Defines orientation.
|
|
26
26
|
*/
|
|
27
|
-
orientation?:
|
|
27
|
+
orientation?: BreakpointCustomizable<"horizontal" | "vertical"> | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Adapts color depending on theme.
|
|
30
30
|
*/
|
|
@@ -36,7 +36,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
36
36
|
}>>>, {
|
|
37
37
|
theme: Theme;
|
|
38
38
|
color: DividerColor;
|
|
39
|
-
orientation: DividerOrientation
|
|
39
|
+
orientation: BreakpointCustomizable<DividerOrientation>;
|
|
40
40
|
}>;
|
|
41
41
|
export default _default;
|
|
42
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { FlexItemAlignSelf, FlexItemFlex, FlexItemGrow, FlexItemOffset, FlexItemShrink, FlexItemWidth } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, FlexItemAlignSelf, FlexItemFlex, FlexItemGrow, FlexItemOffset, FlexItemShrink, FlexItemWidth } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
5
5
|
*/
|
|
6
|
-
alignSelf?:
|
|
6
|
+
alignSelf?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "stretch" | "baseline" | "auto"> | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* The shorthand property for the combined definition of "shrink", "grow" and "basis"
|
|
9
9
|
*/
|
|
10
|
-
flex?:
|
|
10
|
+
flex?: BreakpointCustomizable<"none" | "auto" | "initial" | "equal"> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* The ability to allow/disallow the flex child to grow.
|
|
13
13
|
*/
|
|
14
|
-
grow?:
|
|
14
|
+
grow?: BreakpointCustomizable<0 | 1> | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* The offset of the column. You can also supply values for specific breakpoints, like {base: "none", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
offset?:
|
|
18
|
+
offset?: BreakpointCustomizable<"none" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* The ability to allow/disallow the flex child to shrink.
|
|
21
21
|
*/
|
|
22
|
-
shrink?:
|
|
22
|
+
shrink?: BreakpointCustomizable<0 | 1> | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* The width of the flex item. You can also supply values for specific breakpoints, like {base: "full", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
25
25
|
*/
|
|
26
|
-
width?:
|
|
26
|
+
width?: BreakpointCustomizable<"auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters" | "full"> | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
alignSelf: string;
|
|
29
29
|
flex: string;
|
|
@@ -35,27 +35,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
/**
|
|
36
36
|
* Defines how this flex item is aligned along the cross axis. This overwrites the cross axis alignment set by the container. Corresponds to the "alignSelf" css property.
|
|
37
37
|
*/
|
|
38
|
-
alignSelf?:
|
|
38
|
+
alignSelf?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "stretch" | "baseline" | "auto"> | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* The shorthand property for the combined definition of "shrink", "grow" and "basis"
|
|
41
41
|
*/
|
|
42
|
-
flex?:
|
|
42
|
+
flex?: BreakpointCustomizable<"none" | "auto" | "initial" | "equal"> | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* The ability to allow/disallow the flex child to grow.
|
|
45
45
|
*/
|
|
46
|
-
grow?:
|
|
46
|
+
grow?: BreakpointCustomizable<0 | 1> | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* The offset of the column. You can also supply values for specific breakpoints, like {base: "none", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
49
49
|
*/
|
|
50
|
-
offset?:
|
|
50
|
+
offset?: BreakpointCustomizable<"none" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters"> | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* The ability to allow/disallow the flex child to shrink.
|
|
53
53
|
*/
|
|
54
|
-
shrink?:
|
|
54
|
+
shrink?: BreakpointCustomizable<0 | 1> | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* The width of the flex item. You can also supply values for specific breakpoints, like {base: "full", l: "one-quarter"}. You always need to provide a base value when doing this.
|
|
57
57
|
*/
|
|
58
|
-
width?:
|
|
58
|
+
width?: BreakpointCustomizable<"auto" | "one-quarter" | "one-third" | "half" | "two-thirds" | "three-quarters" | "full"> | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
alignSelf: string;
|
|
61
61
|
flex: string;
|
|
@@ -64,12 +64,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
shrink: number;
|
|
65
65
|
width: string;
|
|
66
66
|
}>>>, {
|
|
67
|
-
width: FlexItemWidth
|
|
68
|
-
alignSelf: FlexItemAlignSelf
|
|
69
|
-
flex: FlexItemFlex
|
|
70
|
-
grow: FlexItemGrow
|
|
71
|
-
offset: FlexItemOffset
|
|
72
|
-
shrink: FlexItemShrink
|
|
67
|
+
width: BreakpointCustomizable<FlexItemWidth>;
|
|
68
|
+
alignSelf: BreakpointCustomizable<FlexItemAlignSelf>;
|
|
69
|
+
flex: BreakpointCustomizable<FlexItemFlex>;
|
|
70
|
+
grow: BreakpointCustomizable<FlexItemGrow>;
|
|
71
|
+
offset: BreakpointCustomizable<FlexItemOffset>;
|
|
72
|
+
shrink: BreakpointCustomizable<FlexItemShrink>;
|
|
73
73
|
}>, {
|
|
74
74
|
default: (_: {}) => any;
|
|
75
75
|
}>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import type { FlexAlignContent, FlexAlignItems, FlexDirection, FlexInline, FlexJustifyContent, FlexWrap } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, FlexAlignContent, FlexAlignItems, FlexDirection, FlexInline, FlexJustifyContent, FlexWrap } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
5
5
|
*/
|
|
6
|
-
alignContent?:
|
|
6
|
+
alignContent?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch"> | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Defines how the flex items are aligned along the cross axis.
|
|
9
9
|
*/
|
|
10
|
-
alignItems?:
|
|
10
|
+
alignItems?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "stretch" | "baseline"> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right.
|
|
13
13
|
*/
|
|
14
|
-
direction?:
|
|
14
|
+
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Defines the flex containers content flow if 2 or more containers are siblings of each other.
|
|
17
17
|
*/
|
|
18
|
-
inline?:
|
|
18
|
+
inline?: BreakpointCustomizable<boolean> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Defines how the flex items are aligned along the main axis.
|
|
21
21
|
*/
|
|
22
|
-
justifyContent?:
|
|
22
|
+
justifyContent?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly"> | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Handles wrapping behaviour of elements.
|
|
25
25
|
*/
|
|
26
|
-
wrap?:
|
|
26
|
+
wrap?: BreakpointCustomizable<"nowrap" | "wrap" | "wrap-reverse"> | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
alignContent: string;
|
|
29
29
|
alignItems: string;
|
|
@@ -35,27 +35,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
/**
|
|
36
36
|
* This aligns a flex container's individual lines when there is extra space in the cross-axis, similar to how "justifyContent" aligns individual items along the main axis.
|
|
37
37
|
*/
|
|
38
|
-
alignContent?:
|
|
38
|
+
alignContent?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch"> | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Defines how the flex items are aligned along the cross axis.
|
|
41
41
|
*/
|
|
42
|
-
alignItems?:
|
|
42
|
+
alignItems?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "stretch" | "baseline"> | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right.
|
|
45
45
|
*/
|
|
46
|
-
direction?:
|
|
46
|
+
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* Defines the flex containers content flow if 2 or more containers are siblings of each other.
|
|
49
49
|
*/
|
|
50
|
-
inline?:
|
|
50
|
+
inline?: BreakpointCustomizable<boolean> | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Defines how the flex items are aligned along the main axis.
|
|
53
53
|
*/
|
|
54
|
-
justifyContent?:
|
|
54
|
+
justifyContent?: BreakpointCustomizable<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly"> | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* Handles wrapping behaviour of elements.
|
|
57
57
|
*/
|
|
58
|
-
wrap?:
|
|
58
|
+
wrap?: BreakpointCustomizable<"nowrap" | "wrap" | "wrap-reverse"> | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
alignContent: string;
|
|
61
61
|
alignItems: string;
|
|
@@ -64,12 +64,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
64
64
|
justifyContent: string;
|
|
65
65
|
wrap: string;
|
|
66
66
|
}>>>, {
|
|
67
|
-
inline: FlexInline
|
|
68
|
-
wrap: FlexWrap
|
|
69
|
-
direction: FlexDirection
|
|
70
|
-
alignContent: FlexAlignContent
|
|
71
|
-
alignItems: FlexAlignItems
|
|
72
|
-
justifyContent: FlexJustifyContent
|
|
67
|
+
inline: BreakpointCustomizable<FlexInline>;
|
|
68
|
+
wrap: BreakpointCustomizable<FlexWrap>;
|
|
69
|
+
direction: BreakpointCustomizable<FlexDirection>;
|
|
70
|
+
alignContent: BreakpointCustomizable<FlexAlignContent>;
|
|
71
|
+
alignItems: BreakpointCustomizable<FlexAlignItems>;
|
|
72
|
+
justifyContent: BreakpointCustomizable<FlexJustifyContent>;
|
|
73
73
|
}>, {
|
|
74
74
|
default: (_: {}) => any;
|
|
75
75
|
}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { GridItemOffset, GridItemSize } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, GridItemOffset, GridItemSize } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
5
5
|
*/
|
|
6
|
-
offset?:
|
|
6
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 10 | 5 | 7 | 1 | 8 | 9 | 11> | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
9
9
|
*/
|
|
10
|
-
size?:
|
|
10
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 10 | 5 | 7 | 1 | 12 | 8 | 9 | 11> | undefined;
|
|
11
11
|
}>, {
|
|
12
12
|
offset: number;
|
|
13
13
|
size: number;
|
|
@@ -15,17 +15,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
15
15
|
/**
|
|
16
16
|
* The offset of the column. Can be between 0 and 11. Also defines the offset of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
17
17
|
*/
|
|
18
|
-
offset?:
|
|
18
|
+
offset?: BreakpointCustomizable<0 | 3 | 4 | 6 | 2 | 10 | 5 | 7 | 1 | 8 | 9 | 11> | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* The size of the column. Can be between 1 and 12. Also defines the size of the column for specific breakpoints, like {base: 6, l: 3}. You always need to provide a base value when doing this.
|
|
21
21
|
*/
|
|
22
|
-
size?:
|
|
22
|
+
size?: BreakpointCustomizable<3 | 4 | 6 | 2 | 10 | 5 | 7 | 1 | 12 | 8 | 9 | 11> | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
offset: number;
|
|
25
25
|
size: number;
|
|
26
26
|
}>>>, {
|
|
27
|
-
size: GridItemSize
|
|
28
|
-
offset: GridItemOffset
|
|
27
|
+
size: BreakpointCustomizable<GridItemSize>;
|
|
28
|
+
offset: BreakpointCustomizable<GridItemOffset>;
|
|
29
29
|
}>, {
|
|
30
30
|
default: (_: {}) => any;
|
|
31
31
|
}>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { GridDirection, GridGutter, GridWrap } from '../types';
|
|
1
|
+
import type { BreakpointCustomizable, GridDirection, GridGutter, GridWrap } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
5
5
|
*/
|
|
6
|
-
direction?:
|
|
6
|
+
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Defines the gutter size for specific breakpoints. You always need to provide a base value when doing this.
|
|
9
9
|
*/
|
|
10
|
-
gutter?:
|
|
10
|
+
gutter?: BreakpointCustomizable<16 | 24 | 36> | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Handles wrapping behaviour of elements.
|
|
13
13
|
*/
|
|
14
|
-
wrap?:
|
|
14
|
+
wrap?: BreakpointCustomizable<"nowrap" | "wrap"> | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
direction: string;
|
|
17
17
|
gutter: () => {
|
|
@@ -24,15 +24,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
24
24
|
/**
|
|
25
25
|
* Defines the direction of the main and cross axis. The default "row" defines the main axis as horizontal left to right. Also defines the direction for specific breakpoints, like {base: "column", l: "row"}. You always need to provide a base value when doing this.
|
|
26
26
|
*/
|
|
27
|
-
direction?:
|
|
27
|
+
direction?: BreakpointCustomizable<"row" | "column" | "row-reverse" | "column-reverse"> | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Defines the gutter size for specific breakpoints. You always need to provide a base value when doing this.
|
|
30
30
|
*/
|
|
31
|
-
gutter?:
|
|
31
|
+
gutter?: BreakpointCustomizable<16 | 24 | 36> | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Handles wrapping behaviour of elements.
|
|
34
34
|
*/
|
|
35
|
-
wrap?:
|
|
35
|
+
wrap?: BreakpointCustomizable<"nowrap" | "wrap"> | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
direction: string;
|
|
38
38
|
gutter: () => {
|
|
@@ -42,9 +42,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
42
|
};
|
|
43
43
|
wrap: string;
|
|
44
44
|
}>>>, {
|
|
45
|
-
wrap: GridWrap
|
|
46
|
-
direction: GridDirection
|
|
47
|
-
gutter: GridGutter
|
|
45
|
+
wrap: BreakpointCustomizable<GridWrap>;
|
|
46
|
+
direction: BreakpointCustomizable<GridDirection>;
|
|
47
|
+
gutter: BreakpointCustomizable<GridGutter>;
|
|
48
48
|
}>, {
|
|
49
49
|
default: (_: {}) => any;
|
|
50
50
|
}>;
|