@porsche-design-system/components-vue 2.20.0 → 3.0.0-alpha.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 +418 -3
- package/lib/components/AccordionWrapper.vue.d.ts +5 -5
- package/lib/components/BannerWrapper.vue.d.ts +2 -2
- package/lib/components/BannerWrapper.vue.js +9 -9
- package/lib/components/ButtonPureWrapper.vue.d.ts +14 -25
- package/lib/components/ButtonPureWrapper.vue.js +7 -8
- package/lib/components/ButtonWrapper.vue.d.ts +10 -23
- package/lib/components/ButtonWrapper.vue.js +12 -13
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/CheckboxWrapperWrapper.vue.js +13 -12
- package/lib/components/ContentWrapperWrapper.vue.d.ts +11 -6
- package/lib/components/DisplayWrapper.vue.d.ts +92 -0
- package/lib/components/DisplayWrapper.vue.js +32 -0
- package/lib/components/DisplayWrapper.vue2.js +4 -0
- package/lib/components/DividerWrapper.vue.d.ts +2 -2
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/FieldsetWrapperWrapper.vue.js +11 -10
- package/lib/components/FlexItemWrapper.vue.d.ts +3 -2
- package/lib/components/FlexWrapper.vue.d.ts +1 -0
- package/lib/components/GridItemWrapper.vue.d.ts +5 -4
- package/lib/components/GridWrapper.vue.d.ts +5 -2
- package/lib/components/HeadingWrapper.vue.d.ts +92 -0
- package/lib/components/HeadingWrapper.vue.js +32 -0
- package/lib/components/HeadingWrapper.vue2.js +4 -0
- package/lib/components/HeadlineWrapper.vue.d.ts +8 -7
- package/lib/components/HeadlineWrapper.vue.js +5 -5
- package/lib/components/IconWrapper.vue.d.ts +17 -15
- package/lib/components/IconWrapper.vue.js +7 -7
- package/lib/components/InlineNotificationWrapper.vue.d.ts +4 -4
- package/lib/components/InlineNotificationWrapper.vue.js +7 -7
- package/lib/components/LinkPureWrapper.vue.d.ts +24 -11
- package/lib/components/LinkPureWrapper.vue.js +6 -5
- package/lib/components/LinkSocialWrapper.vue.d.ts +1 -0
- package/lib/components/LinkWrapper.vue.d.ts +9 -9
- package/lib/components/LinkWrapper.vue.js +10 -10
- package/lib/components/PopoverWrapper.vue.d.ts +12 -1
- package/lib/components/PopoverWrapper.vue.js +9 -8
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/RadioButtonWrapperWrapper.vue.js +7 -6
- package/lib/components/ScrollerWrapper.vue.d.ts +4 -4
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -3
- package/lib/components/SegmentedControlWrapper.vue.d.ts +3 -6
- package/lib/components/SegmentedControlWrapper.vue.js +14 -14
- package/lib/components/SpinnerWrapper.vue.d.ts +6 -6
- package/lib/components/SwitchWrapper.vue.d.ts +5 -18
- package/lib/components/SwitchWrapper.vue.js +7 -8
- package/lib/components/TabsBarWrapper.vue.d.ts +4 -4
- package/lib/components/TabsWrapper.vue.d.ts +4 -4
- package/lib/components/TagDismissibleWrapper.vue.d.ts +14 -3
- package/lib/components/TagDismissibleWrapper.vue.js +13 -12
- package/lib/components/TagWrapper.vue.d.ts +5 -5
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/TextFieldWrapperWrapper.vue.js +8 -7
- package/lib/components/TextWrapper.vue.d.ts +9 -9
- package/lib/components/TextWrapper.vue.js +7 -7
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +12 -1
- package/lib/components/TextareaWrapperWrapper.vue.js +10 -9
- package/lib/components/index.d.ts +2 -0
- package/lib/types.d.ts +293 -42
- package/package.json +2 -2
- package/partials/esm/{partials.js → index.js} +0 -0
- package/partials/{partials.d.ts → index.d.ts} +0 -0
- package/partials/{partials.js → index.js} +0 -0
- package/partials/package.json +3 -3
- package/public-api.js +94 -90
- package/styles/esm/index.js +1 -0
- package/styles/index.d.ts +1 -0
- package/styles/index.js +12 -0
- package/styles/package.json +6 -0
- package/styles/scss.scss +1 -0
- package/{testing.d.ts → testing/index.d.ts} +0 -0
- package/testing/{testing.js → index.js} +0 -0
- package/jsdom-polyfill.d.ts +0 -1
- package/testing/package.json +0 -5
- package/testing/testing.d.ts +0 -1
- package/utilities/js/esm/js.js +0 -1
- package/utilities/js/js.d.ts +0 -1
- package/utilities/js/js.js +0 -12
- package/utilities/js/package.json +0 -6
- package/utilities/scss.scss +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,423 @@ 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-alpha.1] - 2023-02-16
|
|
13
|
+
|
|
14
|
+
#### Added
|
|
15
|
+
|
|
16
|
+
- Porsche Next font supports Vietnamese charset
|
|
17
|
+
- Prop `color` of `Icon` supports `disabled`
|
|
18
|
+
- React: `patchRemixRunProcessBrowserGlobalIdentifier` binary to support SSR components with Remix
|
|
19
|
+
|
|
20
|
+
#### Changed
|
|
21
|
+
|
|
22
|
+
- `Stepper Horizontal` matches new design language.
|
|
23
|
+
- Styles: Optimize design tokens "spacing", "typography" and "theme" provided by styles sub-package
|
|
24
|
+
`@porsche-design-system/components-{js|angular|react|vue}/styles`
|
|
25
|
+
- Styles: Use calc() instead of max() to calculate padding for `gridStyle` (JS) and `pds-grid` (SCSS)
|
|
26
|
+
- Styles: `gridStyle` (JS) and `pds-grid` (SCSS) uses optimized grid gap
|
|
27
|
+
|
|
28
|
+
### [3.0.0-alpha.0] - 2023-02-08
|
|
29
|
+
|
|
30
|
+
#### Note to the new `v3` major release of the Porsche Design System
|
|
31
|
+
|
|
32
|
+
With the new **Porsche Design Language** comes a lot of changes regarding layout and design principles. To keep
|
|
33
|
+
refactoring efforts as low as possible when upgrading from `v2` to `v3`, **breaking changes** were avoided as far as
|
|
34
|
+
possible. Nevertheless, there are a few breaking changes and some more deprecations which should receive attention.
|
|
35
|
+
|
|
36
|
+
#### 👹 Breaking Changes 👹
|
|
37
|
+
|
|
38
|
+
##### Button:
|
|
39
|
+
|
|
40
|
+
- Removed deprecated prop `tabbable`.
|
|
41
|
+
|
|
42
|
+
```diff
|
|
43
|
+
- <p-button tabbable="false">Some label</p-button>
|
|
44
|
+
+ <p-button tabindex="-1">Some label</p-button>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- Default value of prop `icon` has changed from `arrow-head-right` to `none`. Therefore, the `icon` property **must** be
|
|
48
|
+
set if the component has the `hide-label` property.
|
|
49
|
+
|
|
50
|
+
```diff
|
|
51
|
+
- <p-button hide-label="true">Some label</p-button>
|
|
52
|
+
+ <p-button hide-label="true" icon="arrow-right">Some label</p-button>
|
|
53
|
+
|
|
54
|
+
- <p-button hide-label="{ base: true, m: false }">Some label</p-button>
|
|
55
|
+
+ <p-button hide-label="{ base: true, m: false }" icon="arrow-right">Some label</p-button>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
##### Button Pure:
|
|
59
|
+
|
|
60
|
+
- Removed `subline` slot (visually not intended anymore).
|
|
61
|
+
|
|
62
|
+
```diff
|
|
63
|
+
<p-button-pure>
|
|
64
|
+
Some label
|
|
65
|
+
- <p slot="subline">Some Subline</p>
|
|
66
|
+
</p-button-pure>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- Removed deprecated prop `tabbable`.
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
- <p-button-pure tabbable="false">Some label</p-button-pure>
|
|
73
|
+
+ <p-button-pure tabindex="-1">Some label</p-button-pure>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
##### Icon:
|
|
77
|
+
|
|
78
|
+
- Value `inherit` for prop `color` works slightly different to the previous major version. A CSS filter is required to
|
|
79
|
+
apply custom coloring to take advantage of using an SVG embedded in an `<img/>` for better SSR support and loading
|
|
80
|
+
performance in general.
|
|
81
|
+
|
|
82
|
+
```diff
|
|
83
|
+
- <p-icon color="inherit" style="color: white;"></p-icon>
|
|
84
|
+
+ <p-icon color="inherit" style="filter: invert(100%);"></p-icon>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- Camel case syntax for `name` prop isn't supported, please use param case syntax instead (TypeScript typings have been
|
|
88
|
+
updated too).
|
|
89
|
+
|
|
90
|
+
```diff
|
|
91
|
+
- <p-icon name="arrowRight"></p-icon>
|
|
92
|
+
+ <p-icon name="arrow-right"></p-icon>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
##### Link:
|
|
96
|
+
|
|
97
|
+
- Default value of prop `icon` has changed from `arrow-head-right` to `none`. Therefore, the `icon` property **must** be
|
|
98
|
+
set if the component has the `hide-label` property.
|
|
99
|
+
|
|
100
|
+
```diff
|
|
101
|
+
- <p-link href="#" hide-label="true">Some label</p-link>
|
|
102
|
+
+ <p-link href="#" hide-label="true" icon="arrow-right">Some label</p-link>
|
|
103
|
+
|
|
104
|
+
- <p-link href="#" hide-label="{ base: true, m: false }">Some label</p-link>
|
|
105
|
+
+ <p-link href="#" hide-label="{ base: true, m: false }" icon="arrow-right">Some label</p-link>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
##### Link Pure:
|
|
109
|
+
|
|
110
|
+
- Removed `subline` slot (visually not intended anymore).
|
|
111
|
+
|
|
112
|
+
```diff
|
|
113
|
+
<p-link-pure href="#">
|
|
114
|
+
Some label
|
|
115
|
+
- <p slot="subline">Some Subline</p>
|
|
116
|
+
</p-link-pure>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
##### Switch:
|
|
120
|
+
|
|
121
|
+
- Removed deprecated prop `tabbable`.
|
|
122
|
+
|
|
123
|
+
```diff
|
|
124
|
+
- <p-switch tabbable="false">Some label</p-switch>
|
|
125
|
+
+ <p-switch tabindex="-1">Some label</p-switch>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
##### Partials:
|
|
129
|
+
|
|
130
|
+
- `getIconLinks()` partial accepts only param-cased icon names.
|
|
131
|
+
|
|
132
|
+
```diff
|
|
133
|
+
- require('@porsche-design-system/components-js/partials').getIconLinks({ icons: ['arrowRight'] })
|
|
134
|
+
|
|
135
|
+
+ require('@porsche-design-system/components-js/partials').getIconLinks({ icons: ['arrow-right'] })
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
##### CSS global scope:
|
|
139
|
+
|
|
140
|
+
- Changed naming of CSS global variables names.
|
|
141
|
+
|
|
142
|
+
```diff
|
|
143
|
+
- --p-animation-duration__spinner
|
|
144
|
+
- --p-animation-duration__banner
|
|
145
|
+
+ --p-animation-duration
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
#### 🤡 Component deprecations 🤡
|
|
149
|
+
|
|
150
|
+
All deprecated components are refactored to match the new design language, therefor it's technically not breaking, but
|
|
151
|
+
we highly recommend to migrate to the mentioned alternative, since those deprecated components will be removed with next
|
|
152
|
+
major version.
|
|
153
|
+
|
|
154
|
+
##### Content Wrapper:
|
|
155
|
+
|
|
156
|
+
- Component is deprecated and will be removed with the next major release. Please use **[Porsche Grid](styles/grid)**
|
|
157
|
+
instead, which is based on [CSS Grid](https://css-tricks.com/snippets/css/complete-guide-grid) covering the specific
|
|
158
|
+
layout needs for a harmonic appearance across all digital Porsche touch-points.
|
|
159
|
+
|
|
160
|
+
##### Flex:
|
|
161
|
+
|
|
162
|
+
- Component is deprecated and will be removed with the next major release. In general, please use native
|
|
163
|
+
[CSS Flex](https://css-tricks.com/snippets/css/a-guide-to-flexbox) instead for better performance and more
|
|
164
|
+
standardized layout technique.
|
|
165
|
+
|
|
166
|
+
##### Grid:
|
|
167
|
+
|
|
168
|
+
- Component is deprecated and will be removed with the next major release. In general, please use native
|
|
169
|
+
[CSS Grid](https://css-tricks.com/snippets/css/complete-guide-grid) in combination with
|
|
170
|
+
**[Porsche Grid](styles/grid)** instead for better performance and more standardized layout technique.
|
|
171
|
+
|
|
172
|
+
##### Headline:
|
|
173
|
+
|
|
174
|
+
```diff
|
|
175
|
+
- <p-headline>The quick brown fox jumps over the lazy dog</p-headline>
|
|
176
|
+
+ <p-heading>The quick brown fox jumps over the lazy dog</p-heading>
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
##### Link Social:
|
|
180
|
+
|
|
181
|
+
- Component is deprecated and will be removed with the next major release. Please use the **[Link](components/link)**
|
|
182
|
+
component instead.
|
|
183
|
+
|
|
184
|
+
#### 🤖 Property deprecations 🤖
|
|
185
|
+
|
|
186
|
+
All deprecated properties are still present without any effect, therefor it's technically not breaking, but we highly
|
|
187
|
+
recommend to migrate and remove the deprecated props since those ones will be removed with next major version.
|
|
188
|
+
|
|
189
|
+
##### Button Pure:
|
|
190
|
+
|
|
191
|
+
- Prop `weight` is deprecated, only regular font weight will be applied.
|
|
192
|
+
|
|
193
|
+
```diff
|
|
194
|
+
- <p-button-pure weight="thin">Some label</p-button-pure>
|
|
195
|
+
- <p-button-pure weight="regular">Some label</p-button-pure>
|
|
196
|
+
- <p-button-pure weight="semibold">Some label</p-button-pure>
|
|
197
|
+
- <p-button-pure weight="bold">Some label</p-button-pure>
|
|
198
|
+
+ <p-button-pure>Some label</p-button-pure>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
##### Content Wrapper (deprecated):
|
|
202
|
+
|
|
203
|
+
- Prop `theme` and `background-color` are deprecated.
|
|
204
|
+
|
|
205
|
+
```diff
|
|
206
|
+
- <p-content-wrapper theme="dark" background-color="default">Some content</p-content-wrapper>
|
|
207
|
+
+ <p-content-wrapper>Some content</p-content-wrapper>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
##### Grid (deprecated):
|
|
211
|
+
|
|
212
|
+
- The `gutter` property is deprecated and has no effect anymore. Instead, a fluid gutter depending on the viewport width
|
|
213
|
+
is used.
|
|
214
|
+
|
|
215
|
+
```diff
|
|
216
|
+
- <p-grid gutter="16">Some content</p-grid>
|
|
217
|
+
- <p-grid gutter="24">Some content</p-grid>
|
|
218
|
+
- <p-grid gutter="36">Some content</p-grid>
|
|
219
|
+
+ <p-grid>Some content</p-grid>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
##### Icon:
|
|
223
|
+
|
|
224
|
+
- Prop `lazy` is deprecated.
|
|
225
|
+
|
|
226
|
+
```diff
|
|
227
|
+
- <p-icon lazy="true"></p-icon>
|
|
228
|
+
+ <p-icon></p-icon>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
##### Link Pure:
|
|
232
|
+
|
|
233
|
+
- Prop `weight` is deprecated, only regular font weight will be applied.
|
|
234
|
+
|
|
235
|
+
```diff
|
|
236
|
+
- <p-link-pure href="#" weight="thin">Some label</p-link-pure>
|
|
237
|
+
- <p-link-pure href="#" weight="regular">Some label</p-link-pure>
|
|
238
|
+
- <p-link-pure href="#" weight="semibold">Some label</p-link-pure>
|
|
239
|
+
- <p-link-pure href="#" weight="bold">Some label</p-link-pure>
|
|
240
|
+
+ <p-link-pure href="#">Some label</p-link-pure>
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
##### Segmented Control:
|
|
244
|
+
|
|
245
|
+
- Prop `background-color` is deprecated.
|
|
246
|
+
|
|
247
|
+
```diff
|
|
248
|
+
- <p-segmented-control background-color="background-surface">
|
|
249
|
+
<p-segmented-control-item value="xs">XS</p-segmented-control-item>
|
|
250
|
+
<p-segmented-control-item value="s">S</p-segmented-control-item>
|
|
251
|
+
</p-segmented-control>
|
|
252
|
+
+ <p-segmented-control>
|
|
253
|
+
<p-segmented-control-item value="xs">XS</p-segmented-control-item>
|
|
254
|
+
<p-segmented-control-item value="s">S</p-segmented-control-item>
|
|
255
|
+
</p-segmented-control>
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
#### 👾 Property value deprecations 👾
|
|
259
|
+
|
|
260
|
+
All deprecated values are mapped to new ones, therefor it's technically not breaking, but we highly recommend to migrate
|
|
261
|
+
to the new values since those ones will be removed with next major version.
|
|
262
|
+
|
|
263
|
+
##### Banner:
|
|
264
|
+
|
|
265
|
+
- Prop value `fluid` of `width` prop is deprecated.
|
|
266
|
+
|
|
267
|
+
```diff
|
|
268
|
+
- <p-banner width="fluid"></p-banner>
|
|
269
|
+
+ <p-banner></p-banner>
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
- Prop value `neutral` of `state` prop is deprecated.
|
|
273
|
+
|
|
274
|
+
```diff
|
|
275
|
+
- <p-banner state="neutral">
|
|
276
|
+
<span slot="title">Some banner title</span>
|
|
277
|
+
<span slot="description">Some banner description. You can also add inline <a href="https://porsche.com">links</a> to route to another page.</span>
|
|
278
|
+
</p-banner>
|
|
279
|
+
+ <p-banner state="info">
|
|
280
|
+
<span slot="title">Some banner title</span>
|
|
281
|
+
<span slot="description">Some banner description. You can also add inline <a href="https://porsche.com">links</a> to route to another page.</span>
|
|
282
|
+
</p-banner>
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
##### Content Wrapper:
|
|
286
|
+
|
|
287
|
+
- Prop value `fluid` of `width` prop is deprecated.
|
|
288
|
+
|
|
289
|
+
```diff
|
|
290
|
+
- <p-content-wrapper width="fluid">Some content</p-content-wrapper>
|
|
291
|
+
+ <p-content-wrapper>Some content</p-content-wrapper>
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
##### Icon:
|
|
295
|
+
|
|
296
|
+
- Prop values
|
|
297
|
+
`brand | default | neutral-contrast-low | neutral-contrast-medium | neutral-contrast-high | notification-neutral` of
|
|
298
|
+
`color` prop are deprecated.
|
|
299
|
+
|
|
300
|
+
```diff
|
|
301
|
+
- <p-icon color="brand"></p-icon>
|
|
302
|
+
+ <p-icon color="primary"></p-icon>
|
|
303
|
+
|
|
304
|
+
- <p-icon color="default"></p-icon>
|
|
305
|
+
+ <p-icon color="primary"></p-icon>
|
|
306
|
+
|
|
307
|
+
- <p-icon color="neutral-contrast-low"></p-icon>
|
|
308
|
+
+ <p-icon color="contrast-low"></p-icon>
|
|
309
|
+
|
|
310
|
+
- <p-icon color="neutral-contrast-medium"></p-icon>
|
|
311
|
+
+ <p-icon color="contrast-medium"></p-icon>
|
|
312
|
+
|
|
313
|
+
- <p-icon color="neutral-contrast-high"></p-icon>
|
|
314
|
+
+ <p-icon color="contrast-high"></p-icon>
|
|
315
|
+
|
|
316
|
+
- <p-icon color="neutral-contrast-neutral"></p-icon>
|
|
317
|
+
+ <p-icon color="contrast-info"></p-icon>
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
##### Inline Notification:
|
|
321
|
+
|
|
322
|
+
- Prop value `neutral` of `state` prop is deprecated.
|
|
323
|
+
|
|
324
|
+
```diff
|
|
325
|
+
- <p-inline-notification state="neutral"></p-inline-notification>
|
|
326
|
+
+ <p-inline-notification state="info"></p-inline-notification>
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
##### Tag:
|
|
330
|
+
|
|
331
|
+
- Prop value `notification-neutral | neutral-contrast-high | background-default` of `color` prop is deprecated.
|
|
332
|
+
|
|
333
|
+
```diff
|
|
334
|
+
- <p-tag color="notification-neutral">Color label</p-tag>
|
|
335
|
+
+ <p-tag color="notification-info">Color label</p-tag>
|
|
336
|
+
|
|
337
|
+
- <p-tag color="neutral-contrast-high">Color label</p-tag>
|
|
338
|
+
+ <p-tag color="primary">Color label</p-tag>
|
|
339
|
+
|
|
340
|
+
- <p-tag color="background-default">Color label</p-tag>
|
|
341
|
+
+ <p-tag color="background-base">Color label</p-tag>
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
##### Tag Dismissible:
|
|
345
|
+
|
|
346
|
+
- Prop value `background-default` of `color` prop is deprecated.
|
|
347
|
+
|
|
348
|
+
```diff
|
|
349
|
+
- <p-tag-dismissible color="background-default">Color label</p-tag-dismissible>
|
|
350
|
+
+ <p-tag-dismissible color="background-base">Color label</p-tag-dismissible>
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
##### Text:
|
|
354
|
+
|
|
355
|
+
- Prop value `thin | semibold` of `weight` prop is deprecated.
|
|
356
|
+
|
|
357
|
+
```diff
|
|
358
|
+
- <p-text weight="thin">Some text</p-text>
|
|
359
|
+
+ <p-text>Some text</p-text>
|
|
360
|
+
|
|
361
|
+
- <p-text weight="semibold">Some text</p-text>
|
|
362
|
+
+ <p-text weight="semi-bold">Some text</p-text>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
- Prop value
|
|
366
|
+
`brand | default | neutral-contrast-low | neutral-contrast-medium | neutral-contrast-high | notification-neutral` of
|
|
367
|
+
`color` prop is deprecated.
|
|
368
|
+
|
|
369
|
+
```diff
|
|
370
|
+
- <p-text color="brand">Some text</p-text>
|
|
371
|
+
+ <p-text>Some text</p-text>
|
|
372
|
+
|
|
373
|
+
- <p-text color="default">Some text</p-text>
|
|
374
|
+
+ <p-text>Some text</p-text>
|
|
375
|
+
|
|
376
|
+
- <p-text color="neutral-contrast-low">Some text</p-text>
|
|
377
|
+
+ <p-text color="contrast-low">Some text</p-text>
|
|
378
|
+
|
|
379
|
+
- <p-text color="neutral-contrast-medium">Some text</p-text>
|
|
380
|
+
+ <p-text color="contrast-medium">Some text</p-text>
|
|
381
|
+
|
|
382
|
+
- <p-text color="neutral-contrast-high">Some text</p-text>
|
|
383
|
+
+ <p-text color="contrast-high">Some text</p-text>
|
|
384
|
+
|
|
385
|
+
- <p-text color="notification-neutral">Some text</p-text>
|
|
386
|
+
+ <p-text color="notification-info">Some text</p-text>
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
##### ToastManager:
|
|
390
|
+
|
|
391
|
+
- Prop value `neutral` of `state` parameter is deprecated.
|
|
392
|
+
|
|
393
|
+
```diff
|
|
394
|
+
- …addMessage({ text: `Some message`, state: 'neutral' })
|
|
395
|
+
+ …addMessage({ text: `Some message`, state: 'info' })
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
#### Added
|
|
399
|
+
|
|
400
|
+
- `Display` component
|
|
401
|
+
- `Heading` component
|
|
402
|
+
- Prop `underline` for `Link Pure`
|
|
403
|
+
- Prop `theme` for `Checkbox Wrapper`, `Radio Button Wrapper`, `Popover`, `Tag Dismissible`, `Textarea Wrapper`,
|
|
404
|
+
`Text Field Wrapper` and `Fieldset Wrapper`
|
|
405
|
+
- Prop `size` for `Icon` supports `x-small` and `x-large`
|
|
406
|
+
- Prop `size` for `Accordion` `compact="true"` supports `medium`
|
|
407
|
+
|
|
408
|
+
#### Changed
|
|
409
|
+
|
|
410
|
+
- `Spinner`, `Icon`, `Link Pure`, `Button Pure`, `Link`, `Link Social`, `Button`, `Checkbox Wrapper`,
|
|
411
|
+
`Radio Button Wrapper`, `Popover`, `Modal`, `Select Wrapper`, `Tag`, `Tag Dismissible`, `Textarea Wrapper`,
|
|
412
|
+
`Inline Notification`, `Banner`, `Toast`, `Grid`, `Flex`, `Pagination`, `Scroller`, `Accordion`, `Text`,
|
|
413
|
+
`Text Field Wrapper`, `Content Wrapper`, `Segmented Control`, `Tabs`, `Tabs Bar`, `Headline` and `Fieldset Wrapper`
|
|
414
|
+
matches new design language.
|
|
415
|
+
- `Icon` supports
|
|
416
|
+
`primary | contrast-low | contrast-medium | contrast-high | notification-success | notification-warning | notification-error | notification-info | inherit`
|
|
417
|
+
for `color` prop.
|
|
418
|
+
- Default value of prop `width` of `Banner` has changed from `basic` to `extended`
|
|
419
|
+
- Default value of prop `action-icon` of `Inline Notification` has changed from `arrow-head-right` to `arrow-right`
|
|
420
|
+
- Default value of prop `name` of `Icon` has changed from `arrow-head-right` to `arrow-right`
|
|
421
|
+
- Default value of prop `variant` of `Link` and `Button` has changed from `secondary` to `primary`
|
|
422
|
+
|
|
423
|
+
#### Removed
|
|
424
|
+
|
|
425
|
+
- Custom slotted CSS for mostly all components. Equivalent styles are now provided by `getInitialStyles()` partial
|
|
426
|
+
instead.
|
|
427
|
+
- `applyNormalizeStyles` option from `getInitialStyles()` partial which is applied by default now.
|
|
428
|
+
|
|
12
429
|
### [2.20.0] - 2023-02-06
|
|
13
430
|
|
|
14
431
|
### [2.20.0-rc.1] - 2023-02-06
|
|
@@ -925,9 +1342,7 @@ supporting `:focus-visible` otherwise it will fallback to `:focus` CSS implement
|
|
|
925
1342
|
|
|
926
1343
|
Color and outline of general focus styling has changed to `currentColor` for light/dark theme with an outline of 1px
|
|
927
1344
|
width/offset. If you have custom components build with the usage of our `@porsche-design-system/utilities` package then
|
|
928
|
-
update it to the latest version
|
|
929
|
-
[SCSS mixin](https://designsystem.porsche.com/latest/utilities/scss/functions) and
|
|
930
|
-
[JS function](https://designsystem.porsche.com/latest/utilities/js/functions)).
|
|
1345
|
+
update it to the latest version.
|
|
931
1346
|
|
|
932
1347
|
#### Improved geometry of Porsche Next font
|
|
933
1348
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccordionChangeEvent, BreakpointCustomizable, AccordionSize,
|
|
1
|
+
import type { AccordionChangeEvent, BreakpointCustomizable, AccordionSize, AccordionTag, Theme } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
/**
|
|
4
4
|
* Displays the Accordion as compact version with thinner border and smaller paddings.
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
/**
|
|
24
24
|
* Adapts the color when used on dark background.
|
|
25
25
|
*/
|
|
26
|
-
theme?: "light" | "dark" |
|
|
26
|
+
theme?: "light" | "dark" | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
size: string;
|
|
29
29
|
tag: string;
|
|
@@ -54,7 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
54
54
|
/**
|
|
55
55
|
* Adapts the color when used on dark background.
|
|
56
56
|
*/
|
|
57
|
-
theme?: "light" | "dark" |
|
|
57
|
+
theme?: "light" | "dark" | undefined;
|
|
58
58
|
}>, {
|
|
59
59
|
size: string;
|
|
60
60
|
tag: string;
|
|
@@ -63,8 +63,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
63
|
onAccordionChange?: ((value: AccordionChangeEvent) => any) | undefined;
|
|
64
64
|
}, {
|
|
65
65
|
size: BreakpointCustomizable<AccordionSize>;
|
|
66
|
-
tag:
|
|
67
|
-
theme:
|
|
66
|
+
tag: AccordionTag;
|
|
67
|
+
theme: Theme;
|
|
68
68
|
}>, {
|
|
69
69
|
default: (_: {}) => any;
|
|
70
70
|
}>;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
/**
|
|
5
5
|
* State of the banner.
|
|
6
6
|
*/
|
|
7
|
-
state?: "warning" | "error" | "neutral" | undefined;
|
|
7
|
+
state?: "warning" | "error" | "info" | "neutral" | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Adapts the banner color depending on the theme.
|
|
10
10
|
*/
|
|
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
25
25
|
/**
|
|
26
26
|
* State of the banner.
|
|
27
27
|
*/
|
|
28
|
-
state?: "warning" | "error" | "neutral" | undefined;
|
|
28
|
+
state?: "warning" | "error" | "info" | "neutral" | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Adapts the banner color depending on the theme.
|
|
31
31
|
*/
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { defineComponent as p, ref as d, onMounted as f, onUpdated as l, openBlock as i, createBlock as m, resolveDynamicComponent as u, unref as c, withCtx as _, renderSlot as C } from "vue";
|
|
2
2
|
import { getPrefixedTagName as h, syncProperties as n, addEventListenerToElementRef as v } from "../../utils.js";
|
|
3
|
-
const
|
|
3
|
+
const B = /* @__PURE__ */ p({
|
|
4
4
|
__name: "BannerWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
persistent: { type: Boolean, default: !1 },
|
|
7
|
-
state: { default: "
|
|
7
|
+
state: { default: "info" },
|
|
8
8
|
theme: { default: "light" },
|
|
9
|
-
width: { default: "
|
|
9
|
+
width: { default: "extended" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["dismiss"],
|
|
12
|
-
setup(o, { emit:
|
|
13
|
-
const t = o,
|
|
12
|
+
setup(o, { emit: r }) {
|
|
13
|
+
const t = o, s = h("p-banner"), e = d();
|
|
14
14
|
return f(() => {
|
|
15
|
-
n(e.value, t), v(e.value, "dismiss",
|
|
15
|
+
n(e.value, t), v(e.value, "dismiss", r);
|
|
16
16
|
}), l(() => {
|
|
17
17
|
n(e.value, t);
|
|
18
|
-
}), (
|
|
18
|
+
}), (a, g) => (i(), m(u(c(s)), {
|
|
19
19
|
ref_key: "pdsComponentRef",
|
|
20
20
|
ref: e
|
|
21
21
|
}, {
|
|
22
22
|
default: _(() => [
|
|
23
|
-
C(
|
|
23
|
+
C(a.$slots, "default")
|
|
24
24
|
]),
|
|
25
25
|
_: 3
|
|
26
26
|
}, 512));
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
B as default
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BreakpointCustomizable, AlignLabel, SelectedAriaAttributes,
|
|
1
|
+
import type { BreakpointCustomizable, AlignLabel, SelectedAriaAttributes, LinkButtonIconName, TextSize, Theme, 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.
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
/**
|
|
24
24
|
* The icon shown.
|
|
25
25
|
*/
|
|
26
|
-
icon?:
|
|
26
|
+
icon?: LinkButtonIconName | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* A URL path to a custom icon.
|
|
29
29
|
*/
|
|
@@ -35,28 +35,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
35
|
/**
|
|
36
36
|
* Size of the button.
|
|
37
37
|
*/
|
|
38
|
-
size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large"
|
|
38
|
+
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Stretches the area between icon and label to max available space.
|
|
41
41
|
*/
|
|
42
42
|
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* To remove the element from tab order.
|
|
45
|
-
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
46
|
-
*/
|
|
47
|
-
tabbable?: boolean | undefined;
|
|
48
43
|
/**
|
|
49
44
|
* Adapts the button color depending on the theme.
|
|
50
45
|
*/
|
|
51
|
-
theme?: "light" | "dark" |
|
|
46
|
+
theme?: "light" | "dark" | undefined;
|
|
52
47
|
/**
|
|
53
48
|
* Specifies the type of the button.
|
|
54
49
|
*/
|
|
55
50
|
type?: "reset" | "button" | "submit" | undefined;
|
|
56
51
|
/**
|
|
57
52
|
* The weight of the text (only has effect with visible label).
|
|
53
|
+
* @deprecated since v3.0.0, will be removed with next major release
|
|
58
54
|
*/
|
|
59
|
-
weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
|
|
55
|
+
weight?: "thin" | "regular" | "semibold" | "semi-bold" | "bold" | undefined;
|
|
60
56
|
}>, {
|
|
61
57
|
active: boolean;
|
|
62
58
|
alignLabel: string;
|
|
@@ -66,7 +62,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
66
62
|
loading: boolean;
|
|
67
63
|
size: string;
|
|
68
64
|
stretch: boolean;
|
|
69
|
-
tabbable: boolean;
|
|
70
65
|
theme: string;
|
|
71
66
|
type: string;
|
|
72
67
|
weight: string;
|
|
@@ -94,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
94
89
|
/**
|
|
95
90
|
* The icon shown.
|
|
96
91
|
*/
|
|
97
|
-
icon?:
|
|
92
|
+
icon?: LinkButtonIconName | undefined;
|
|
98
93
|
/**
|
|
99
94
|
* A URL path to a custom icon.
|
|
100
95
|
*/
|
|
@@ -106,28 +101,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
106
101
|
/**
|
|
107
102
|
* Size of the button.
|
|
108
103
|
*/
|
|
109
|
-
size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large"
|
|
104
|
+
size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
110
105
|
/**
|
|
111
106
|
* Stretches the area between icon and label to max available space.
|
|
112
107
|
*/
|
|
113
108
|
stretch?: BreakpointCustomizable<boolean> | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* To remove the element from tab order.
|
|
116
|
-
* @deprecated since v2.8.0, use `tabindex="-1"` instead
|
|
117
|
-
*/
|
|
118
|
-
tabbable?: boolean | undefined;
|
|
119
109
|
/**
|
|
120
110
|
* Adapts the button color depending on the theme.
|
|
121
111
|
*/
|
|
122
|
-
theme?: "light" | "dark" |
|
|
112
|
+
theme?: "light" | "dark" | undefined;
|
|
123
113
|
/**
|
|
124
114
|
* Specifies the type of the button.
|
|
125
115
|
*/
|
|
126
116
|
type?: "reset" | "button" | "submit" | undefined;
|
|
127
117
|
/**
|
|
128
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
|
|
129
120
|
*/
|
|
130
|
-
weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
|
|
121
|
+
weight?: "thin" | "regular" | "semibold" | "semi-bold" | "bold" | undefined;
|
|
131
122
|
}>, {
|
|
132
123
|
active: boolean;
|
|
133
124
|
alignLabel: string;
|
|
@@ -137,23 +128,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
137
128
|
loading: boolean;
|
|
138
129
|
size: string;
|
|
139
130
|
stretch: boolean;
|
|
140
|
-
tabbable: boolean;
|
|
141
131
|
theme: string;
|
|
142
132
|
type: string;
|
|
143
133
|
weight: string;
|
|
144
134
|
}>>>, {
|
|
145
135
|
weight: TextWeight;
|
|
146
136
|
stretch: BreakpointCustomizable<boolean>;
|
|
137
|
+
disabled: boolean;
|
|
147
138
|
size: BreakpointCustomizable<TextSize>;
|
|
148
|
-
theme:
|
|
139
|
+
theme: Theme;
|
|
149
140
|
type: ButtonType;
|
|
150
141
|
active: boolean;
|
|
151
142
|
alignLabel: BreakpointCustomizable<AlignLabel>;
|
|
152
|
-
disabled: boolean;
|
|
153
143
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
154
|
-
icon:
|
|
144
|
+
icon: LinkButtonIconName;
|
|
155
145
|
loading: boolean;
|
|
156
|
-
tabbable: boolean;
|
|
157
146
|
}>, {
|
|
158
147
|
default: (_: {}) => any;
|
|
159
148
|
}>;
|