@porsche-design-system/components-angular 4.2.0-rc.4 → 4.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-angular",
3
- "version": "4.2.0-rc.4",
3
+ "version": "4.2.0",
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
  "type": "commonjs",
6
6
  "keywords": [
@@ -22,12 +22,12 @@
22
22
  "url": "https://github.com/porsche-design-system/porsche-design-system"
23
23
  },
24
24
  "dependencies": {
25
- "@porsche-design-system/components-js": "4.2.0-rc.4",
25
+ "@porsche-design-system/components-js": "4.2.0",
26
26
  "tslib": "^2.8.1"
27
27
  },
28
28
  "peerDependencies": {
29
- "@angular/common": ">=21.0.0 <22.0.0",
30
- "@angular/core": ">=21.0.0 <22.0.0",
29
+ "@angular/common": ">=22.0.0 <23.0.0",
30
+ "@angular/core": ">=22.0.0 <23.0.0",
31
31
  "ag-grid-angular": ">= 35.0.0 <36.0.0",
32
32
  "ag-grid-enterprise": ">= 35.0.0 <36.0.0",
33
33
  "rxjs": "^6.5.3 || ^7.4.0",
@@ -1,15 +1,11 @@
1
1
  @theme {
2
- /* Reset */
3
2
  --breakpoint-*: initial;
4
3
  --color-*: initial;
5
4
  --radius-*: initial;
6
5
  --shadow-*: initial;
7
6
  --text-*: initial;
8
-
9
- /* Color */
10
7
  --color-black: #000;
11
8
  --color-white: #fff;
12
-
13
9
  --color-focus: var(--_color-focus-dynamic, light-dark(#1a44ea, #1a44ea));
14
10
  --color-canvas: var(
15
11
  --_color-canvas-dynamic,
@@ -139,61 +135,47 @@
139
135
  --_color-info-frosted-soft-dynamic,
140
136
  light-dark(hsl(211 80% 95% / 0.55), hsl(210 59% 15% / 0.66))
141
137
  );
142
-
143
- /* Typography */
144
-
145
- /*
146
- This variable might be prefixed by Tailwind (e.g., --tw-font-porsche-next).
147
- By pointing it to our dynamic variable, we create a stable link.
148
- */
138
+ /* This variable might be prefixed by Tailwind (e.g., --tw-font-porsche-next). By pointing it to our dynamic variable, we create a stable link. */
149
139
  --font-porsche-next: var(--_font-porsche-next-dynamic);
150
140
  --font-sans: --theme(--font-porsche-next);
151
-
152
141
  --font-weight-normal: 400;
153
142
  --font-weight-semibold: 600;
154
143
  --font-weight-bold: 700;
155
-
156
144
  --leading-normal: calc(6px + 2.125ex);
157
-
158
145
  --text-2xs: 0.75rem;
159
- --text-2xs--line-height: calc(6px + 2.125ex);
160
146
  --text-xs: 0.875rem;
161
- --text-xs--line-height: calc(6px + 2.125ex);
147
+ --text-sm: 1rem;
148
+ --text-md: clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem);
149
+ --text-lg: clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem);
150
+ --text-xl: clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem);
151
+ --text-2xl: clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem);
152
+ --text-3xl: clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem);
153
+ --text-4xl: clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem);
154
+ --text-5xl: clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem);
162
155
  --text-base: 1rem;
163
156
  --text-base--line-height: calc(6px + 2.125ex);
164
- --text-sm: 1rem;
157
+ --text-2xs--line-height: calc(6px + 2.125ex);
158
+ --text-xs--line-height: calc(6px + 2.125ex);
165
159
  --text-sm--line-height: calc(6px + 2.125ex);
166
- --text-md: clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem);
167
160
  --text-md--line-height: calc(6px + 2.125ex);
168
- --text-lg: clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem);
169
161
  --text-lg--line-height: calc(6px + 2.125ex);
170
- --text-xl: clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem);
171
162
  --text-xl--line-height: calc(6px + 2.125ex);
172
- --text-2xl: clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem);
173
163
  --text-2xl--line-height: calc(6px + 2.125ex);
174
- --text-3xl: clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem);
175
164
  --text-3xl--line-height: calc(6px + 2.125ex);
176
- --text-4xl: clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem);
177
165
  --text-4xl--line-height: calc(6px + 2.125ex);
178
- --text-5xl: clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem);
179
166
  --text-5xl--line-height: calc(6px + 2.125ex);
180
-
181
- /* Breakpoint */
182
167
  --breakpoint-xs: 480px;
183
168
  --breakpoint-sm: 760px;
184
169
  --breakpoint-md: 1000px;
185
170
  --breakpoint-lg: 1300px;
186
171
  --breakpoint-xl: 1760px;
187
172
  --breakpoint-2xl: 1920px;
188
-
189
- /* Spacing */
190
173
  --spacing-fluid-xs: clamp(4px, 0.25vw + 3px, 8px);
191
174
  --spacing-fluid-sm: clamp(8px, 0.5vw + 6px, 16px);
192
175
  --spacing-fluid-md: clamp(16px, 1.25vw + 12px, 36px);
193
176
  --spacing-fluid-lg: clamp(32px, 2.75vw + 23px, 76px);
194
177
  --spacing-fluid-xl: clamp(48px, 3vw + 38px, 96px);
195
178
  --spacing-fluid-2xl: clamp(80px, 7.5vw + 56px, 200px);
196
-
197
179
  --spacing-static-2xs: 1px;
198
180
  --spacing-static-xs: 4px;
199
181
  --spacing-static-sm: 8px;
@@ -201,8 +183,6 @@
201
183
  --spacing-static-lg: 32px;
202
184
  --spacing-static-xl: 48px;
203
185
  --spacing-static-2xl: 80px;
204
-
205
- /* Border */
206
186
  --radius-xs: 2px;
207
187
  --radius-sm: 4px;
208
188
  --radius-md: 6px;
@@ -212,53 +192,41 @@
212
192
  --radius-3xl: 24px;
213
193
  --radius-4xl: 32px;
214
194
  --radius-full: calc(infinity * 1px);
215
-
216
195
  --default-border-width: 1px;
217
- --border-width-regular: 2px; /* alias (deprecated) */
218
- --border-width-thin: 1px; /* alias (deprecated) */
219
-
220
- /* Blur */
196
+ /* alias (deprecated) */
197
+ --border-width-regular: 2px;
198
+ /* alias (deprecated) */
199
+ --border-width-thin: 1px;
221
200
  --blur-frosted: 32px;
222
-
223
- /* Shadow */
224
201
  --shadow-sm: 0px 3px 8px rgba(0, 0, 0, 0.16);
225
- --shadow-low: --theme(--shadow-sm); /* alias (deprecated) */
226
202
  --shadow-md: 0px 4px 16px rgba(0, 0, 0, 0.16);
227
- --shadow-medium: --theme(--shadow-md); /* alias (deprecated) */
228
203
  --shadow-lg: 0px 8px 40px rgba(0, 0, 0, 0.16);
229
- --shadow-high: --theme(--shadow-lg); /* alias (deprecated) */
230
-
231
- /* Outline */
232
204
  --default-outline-width: 2px;
233
-
234
- /* Motion */
235
- --default-transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
236
- --ease-in-out: cubic-bezier(0.25, 0.1, 0.25, 1);
237
- --ease-in: cubic-bezier(0, 0, 0.2, 1);
238
- --ease-out: cubic-bezier(0.4, 0, 0.5, 1);
239
-
240
- --default-transition-duration: 0.25s;
241
205
  --transition-duration-sm: 0.25s;
242
- --transition-duration-short: --theme(
243
- --transition-duration-sm
244
- ); /* alias (deprecated) */
245
206
  --transition-duration-md: 0.4s;
246
- --transition-duration-moderate: --theme(
247
- --transition-duration-md
248
- ); /* alias (deprecated) */
249
207
  --transition-duration-lg: 0.6s;
250
- --transition-duration-long: --theme(
251
- --transition-duration-lg
252
- ); /* alias (deprecated) */
253
208
  --transition-duration-xl: 1.2s;
254
- --transition-duration-very-long: --theme(
255
- --transition-duration-xl
256
- ); /* alias (deprecated) */
257
-
258
- /* Animation */
209
+ --ease-in-out: cubic-bezier(0.25, 0.1, 0.25, 1);
210
+ --ease-in: cubic-bezier(0, 0, 0.2, 1);
211
+ --ease-out: cubic-bezier(0.4, 0, 0.5, 1);
212
+ --default-transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
213
+ --default-transition-duration: 0.25s;
214
+ /* alias (deprecated) */
215
+ --shadow-low: --theme(--shadow-sm);
216
+ /* alias (deprecated) */
217
+ --shadow-medium: --theme(--shadow-md);
218
+ /* alias (deprecated) */
219
+ --shadow-high: --theme(--shadow-lg);
220
+ /* alias (deprecated) */
221
+ --transition-duration-short: --theme(--transition-duration-sm);
222
+ /* alias (deprecated) */
223
+ --transition-duration-moderate: --theme(--transition-duration-md);
224
+ /* alias (deprecated) */
225
+ --transition-duration-long: --theme(--transition-duration-lg);
226
+ /* alias (deprecated) */
227
+ --transition-duration-very-long: --theme(--transition-duration-xl);
259
228
  --animate-skeleton: skeleton --theme(--transition-duration-xl)
260
229
  --theme(--ease-in-out) infinite;
261
-
262
230
  @keyframes skeleton {
263
231
  from {
264
232
  background-position-x: 100%;
@@ -271,17 +239,15 @@
271
239
 
272
240
  @layer base {
273
241
  /*
274
- Tailwind v4 won't add a prefix to variables defined outside the @theme block.
275
- We override the "Bridge Variable". Since the Tailwind theme variable
276
- points here, the font will update even if the utility class is prefixed.
242
+ Tailwind v4 won't add a prefix to variables defined outside the @theme block.
243
+ We override the "Bridge Variable". Since the Tailwind theme variable
244
+ points here, the font will update even if the utility class is prefixed.
277
245
  */
278
-
279
246
  :root,
280
247
  :host {
281
248
  --_font-porsche-next-dynamic:
282
249
  "Porsche Next", "Arial Narrow", Arial, "Heiti SC", SimHei, sans-serif;
283
250
  }
284
-
285
251
  /* Simplified Chinese */
286
252
  :lang(zh-Hans),
287
253
  :lang(zh-CN),
@@ -290,7 +256,6 @@
290
256
  "Porsche Next", "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
291
257
  "Arial Narrow", Arial, sans-serif;
292
258
  }
293
-
294
259
  /* Traditional Chinese */
295
260
  :lang(zh-Hant),
296
261
  :lang(zh-TW),
@@ -300,14 +265,12 @@
300
265
  "Porsche Next", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
301
266
  "Arial Narrow", Arial, sans-serif;
302
267
  }
303
-
304
268
  /* Japanese */
305
269
  :lang(ja) {
306
270
  --_font-porsche-next-dynamic:
307
271
  "Porsche Next", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
308
272
  "Arial Narrow", Arial, sans-serif;
309
273
  }
310
-
311
274
  /* Korean */
312
275
  :lang(ko) {
313
276
  --_font-porsche-next-dynamic:
@@ -324,7 +287,6 @@
324
287
  (instead of plain class selectors) ensures Tailwind applies its configured
325
288
  prefix (e.g. tw:scheme-dark).
326
289
  */
327
-
328
290
  @supports not (color: light-dark(white, black)) {
329
291
  :root,
330
292
  :host {
@@ -941,46 +903,55 @@
941
903
  --theme(--leading-normal) --theme(--font-porsche-next);
942
904
  color: --theme(--color-primary);
943
905
  }
906
+
944
907
  @utility prose-text-xs {
945
908
  font: --theme(--font-weight-normal) --theme(--text-xs) /
946
909
  --theme(--leading-normal) --theme(--font-porsche-next);
947
910
  color: --theme(--color-primary);
948
911
  }
912
+
949
913
  @utility prose-text-sm {
950
914
  font: --theme(--font-weight-normal) --theme(--text-sm) /
951
915
  --theme(--leading-normal) --theme(--font-porsche-next);
952
916
  color: --theme(--color-primary);
953
917
  }
918
+
954
919
  @utility prose-text-md {
955
920
  font: --theme(--font-weight-normal) --theme(--text-md) /
956
921
  --theme(--leading-normal) --theme(--font-porsche-next);
957
922
  color: --theme(--color-primary);
958
923
  }
924
+
959
925
  @utility prose-text-lg {
960
926
  font: --theme(--font-weight-normal) --theme(--text-lg) /
961
927
  --theme(--leading-normal) --theme(--font-porsche-next);
962
928
  color: --theme(--color-primary);
963
929
  }
930
+
964
931
  @utility prose-text-xl {
965
932
  font: --theme(--font-weight-normal) --theme(--text-xl) /
966
933
  --theme(--leading-normal) --theme(--font-porsche-next);
967
934
  color: --theme(--color-primary);
968
935
  }
936
+
969
937
  @utility prose-text-2xl {
970
938
  font: --theme(--font-weight-normal) --theme(--text-2xl) /
971
939
  --theme(--leading-normal) --theme(--font-porsche-next);
972
940
  color: --theme(--color-primary);
973
941
  }
942
+
974
943
  @utility prose-text-3xl {
975
944
  font: --theme(--font-weight-normal) --theme(--text-3xl) /
976
945
  --theme(--leading-normal) --theme(--font-porsche-next);
977
946
  color: --theme(--color-primary);
978
947
  }
948
+
979
949
  @utility prose-text-4xl {
980
950
  font: --theme(--font-weight-normal) --theme(--text-4xl) /
981
951
  --theme(--leading-normal) --theme(--font-porsche-next);
982
952
  color: --theme(--color-primary);
983
953
  }
954
+
984
955
  @utility prose-text-5xl {
985
956
  font: --theme(--font-weight-normal) --theme(--text-5xl) /
986
957
  --theme(--leading-normal) --theme(--font-porsche-next);
@@ -993,46 +964,55 @@
993
964
  --theme(--leading-normal) --theme(--font-porsche-next);
994
965
  color: --theme(--color-primary);
995
966
  }
967
+
996
968
  @utility prose-heading-xs {
997
969
  font: --theme(--font-weight-semibold) --theme(--text-xs) /
998
970
  --theme(--leading-normal) --theme(--font-porsche-next);
999
971
  color: --theme(--color-primary);
1000
972
  }
973
+
1001
974
  @utility prose-heading-sm {
1002
975
  font: --theme(--font-weight-semibold) --theme(--text-sm) /
1003
976
  --theme(--leading-normal) --theme(--font-porsche-next);
1004
977
  color: --theme(--color-primary);
1005
978
  }
979
+
1006
980
  @utility prose-heading-md {
1007
981
  font: --theme(--font-weight-normal) --theme(--text-md) /
1008
982
  --theme(--leading-normal) --theme(--font-porsche-next);
1009
983
  color: --theme(--color-primary);
1010
984
  }
985
+
1011
986
  @utility prose-heading-lg {
1012
987
  font: --theme(--font-weight-normal) --theme(--text-lg) /
1013
988
  --theme(--leading-normal) --theme(--font-porsche-next);
1014
989
  color: --theme(--color-primary);
1015
990
  }
991
+
1016
992
  @utility prose-heading-xl {
1017
993
  font: --theme(--font-weight-normal) --theme(--text-xl) /
1018
994
  --theme(--leading-normal) --theme(--font-porsche-next);
1019
995
  color: --theme(--color-primary);
1020
996
  }
997
+
1021
998
  @utility prose-heading-2xl {
1022
999
  font: --theme(--font-weight-normal) --theme(--text-2xl) /
1023
1000
  --theme(--leading-normal) --theme(--font-porsche-next);
1024
1001
  color: --theme(--color-primary);
1025
1002
  }
1003
+
1026
1004
  @utility prose-heading-3xl {
1027
1005
  font: --theme(--font-weight-normal) --theme(--text-3xl) /
1028
1006
  --theme(--leading-normal) --theme(--font-porsche-next);
1029
1007
  color: --theme(--color-primary);
1030
1008
  }
1009
+
1031
1010
  @utility prose-heading-4xl {
1032
1011
  font: --theme(--font-weight-normal) --theme(--text-4xl) /
1033
1012
  --theme(--leading-normal) --theme(--font-porsche-next);
1034
1013
  color: --theme(--color-primary);
1035
1014
  }
1015
+
1036
1016
  @utility prose-heading-5xl {
1037
1017
  font: --theme(--font-weight-normal) --theme(--text-5xl) /
1038
1018
  --theme(--leading-normal) --theme(--font-porsche-next);
@@ -1045,11 +1025,13 @@
1045
1025
  --theme(--leading-normal) --theme(--font-porsche-next);
1046
1026
  color: --theme(--color-primary);
1047
1027
  }
1028
+
1048
1029
  @utility prose-display-md {
1049
1030
  font: --theme(--font-weight-normal) --theme(--text-4xl) /
1050
1031
  --theme(--leading-normal) --theme(--font-porsche-next);
1051
1032
  color: --theme(--color-primary);
1052
1033
  }
1034
+
1053
1035
  @utility prose-display-lg {
1054
1036
  font: --theme(--font-weight-normal) --theme(--text-5xl) /
1055
1037
  --theme(--leading-normal) --theme(--font-porsche-next);