@db-ux/core-foundations 4.1.0 → 4.2.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
CHANGED
package/README.md
CHANGED
|
@@ -112,12 +112,6 @@ In CSS:
|
|
|
112
112
|
In HTML:
|
|
113
113
|
|
|
114
114
|
```html
|
|
115
|
-
<!-- With classes-->
|
|
116
|
-
<div
|
|
117
|
-
data-density="functional"
|
|
118
|
-
class="db-successful-bg-lvl-1 my-container"
|
|
119
|
-
></div>
|
|
120
|
-
|
|
121
115
|
<!-- With data attributes-->
|
|
122
116
|
<div
|
|
123
117
|
class="my-container"
|
|
@@ -126,6 +120,12 @@ In HTML:
|
|
|
126
120
|
></div>
|
|
127
121
|
```
|
|
128
122
|
|
|
123
|
+
<!-- With classes-->
|
|
124
|
+
<div
|
|
125
|
+
data-density="functional"
|
|
126
|
+
class="db-successful-bg-lvl-1 my-container"
|
|
127
|
+
></div>
|
|
128
|
+
|
|
129
129
|
> **Note:** In CSS you might to use the classes or data-attributes even more because you cannot use placeholders or mixins like we have it in **scss**. If you use a 3rd party library and cannot apply classes or data-attributes you might want to copy the content of our helper classes to apply it to the 3rd party class.
|
|
130
130
|
|
|
131
131
|
### SCSS
|
|
@@ -197,12 +197,6 @@ In SCSS with placeholder:
|
|
|
197
197
|
In HTML:
|
|
198
198
|
|
|
199
199
|
```html
|
|
200
|
-
<!-- With classes-->
|
|
201
|
-
<div
|
|
202
|
-
data-density="functional"
|
|
203
|
-
class="db-successful-bg-lvl-1 my-container"
|
|
204
|
-
></div>
|
|
205
|
-
|
|
206
200
|
<!-- With data attributes-->
|
|
207
201
|
<div
|
|
208
202
|
class="my-container"
|
|
@@ -211,6 +205,12 @@ In HTML:
|
|
|
211
205
|
></div>
|
|
212
206
|
```
|
|
213
207
|
|
|
208
|
+
<!-- With classes-->
|
|
209
|
+
<div
|
|
210
|
+
data-density="functional"
|
|
211
|
+
class="db-successful-bg-lvl-1 my-container"
|
|
212
|
+
></div>
|
|
213
|
+
|
|
214
214
|
### Tailwind
|
|
215
215
|
|
|
216
216
|
Check the required imports for [CSS](https://design-system.deutschebahn.com/core-web/review/main/foundations/readme?current=css) to enable all tokens and defaults.
|
|
@@ -2,8 +2,8 @@ import { glob } from 'glob';
|
|
|
2
2
|
import { execFile } from 'node:child_process';
|
|
3
3
|
import { promisify } from 'node:util';
|
|
4
4
|
|
|
5
|
-
import { dirname } from 'path';
|
|
6
|
-
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname } from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
7
|
|
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
|
9
9
|
const __dirname = dirname(__filename).replaceAll('\\', '/');
|
|
@@ -27,7 +27,7 @@ const generateFonts = async () => {
|
|
|
27
27
|
try {
|
|
28
28
|
const files = await glob(`${__dirname}/*.ttf`);
|
|
29
29
|
|
|
30
|
-
for (const file of files.map(f=> f.replaceAll('\\', '/'))) {
|
|
30
|
+
for (const file of files.map((f) => f.replaceAll('\\', '/'))) {
|
|
31
31
|
// Security: Validate that the file is within the expected directory
|
|
32
32
|
// and has the expected extension to prevent path traversal attacks
|
|
33
33
|
if (!file.startsWith(__dirname) || !file.endsWith('.ttf')) {
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
|
|
61
61
|
/* pre-load icon fallback font */
|
|
62
62
|
html::after {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
z-index: -1;
|
|
66
|
+
font-family: icon-font-fallback, sans-serif;
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/core-foundations",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provides basic tokens and assets based on DB UX Design System (Version 3).",
|
|
6
6
|
"repository": {
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@csstools/normalize.css": "12.1.1",
|
|
55
|
-
"@db-ux/icon-font-tools": "0.3.
|
|
55
|
+
"@db-ux/icon-font-tools": "0.3.6",
|
|
56
56
|
"@playwright/test": "1.56.1",
|
|
57
57
|
"cpr": "3.0.1",
|
|
58
|
-
"cssnano": "7.1.
|
|
58
|
+
"cssnano": "7.1.2",
|
|
59
59
|
"dotenv": "17.2.3",
|
|
60
60
|
"glob": "11.0.3",
|
|
61
|
-
"nodemon": "3.1.
|
|
61
|
+
"nodemon": "3.1.11",
|
|
62
62
|
"prettier": "3.6.2",
|
|
63
63
|
"sass": "1.85.0",
|
|
64
64
|
"tsx": "4.20.6",
|
|
65
65
|
"typescript": "5.9.3",
|
|
66
|
-
"vite": "7.1.
|
|
66
|
+
"vite": "7.1.12"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-check"><path d="M11.280 1.023 C 11.203 1.032,10.951 1.059,10.720 1.083 C 8.832 1.283,6.991 2.023,5.360 3.235 C 4.751 3.688,3.684 4.755,3.226 5.367 C 0.728 8.714,0.301 13.032,2.097 16.780 C 2.643 17.918,3.276 18.801,4.238 19.762 C 5.199 20.724,6.082 21.357,7.220 21.903 C 10.967 23.699,15.288 23.270,18.637 20.770 C 19.246 20.316,20.316 19.246,20.770 18.637 C 23.744 14.652,23.744 9.348,20.770 5.363 C 20.316 4.755,19.247 3.686,18.640 3.235 C 17.045 2.049,15.365 1.360,13.423 1.096 C 13.000 1.038,11.574 0.990,11.280 1.023 M13.320 3.101 C 15.883 3.488,18.124 4.931,19.560 7.120 C 19.863 7.583,20.303 8.479,20.492 9.020 C 20.838 10.013,20.977 10.865,20.977 12.000 C 20.977 13.493,20.720 14.621,20.080 15.940 C 19.375 17.394,18.311 18.607,16.927 19.532 C 16.138 20.060,14.876 20.588,13.908 20.797 C 11.266 21.366,8.479 20.708,6.370 19.019 C 4.857 17.807,3.722 16.029,3.267 14.160 C 3.081 13.397,3.023 12.888,3.023 12.000 C 3.023 10.507,3.280 9.379,3.920 8.060 C 4.971 5.891,6.877 4.221,9.160 3.466 C 9.865 3.233,10.432 3.118,11.340 3.024 C 11.662 2.991,12.911 3.039,13.320 3.101 M14.640 9.068 C 14.488 9.121,14.196 9.394,12.731 10.853 L 11.002 12.575 10.268 11.851 C 9.603 11.195,9.515 11.122,9.320 11.064 C 9.057 10.986,8.946 10.984,8.710 11.055 C 8.467 11.128,8.260 11.293,8.128 11.516 C 8.036 11.672,8.020 11.745,8.021 12.000 C 8.021 12.213,8.043 12.341,8.095 12.440 C 8.197 12.633,10.297 14.740,10.520 14.873 C 10.673 14.964,10.745 14.980,11.000 14.979 C 11.212 14.979,11.341 14.957,11.440 14.905 C 11.632 14.805,15.739 10.705,15.873 10.480 C 15.964 10.328,15.980 10.254,15.980 10.000 C 15.980 9.746,15.963 9.672,15.872 9.516 C 15.617 9.083,15.121 8.903,14.640 9.068 " stroke="none" fill-rule="evenodd" fill="black"></path></svg>
|