@db-ux/core-components 4.5.4-mcp-e4cd7e6 → 4.5.4-table-c758ae7
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/README.md +30 -0
- package/build/assets/icons/LICENCES.json +12 -0
- package/build/assets/icons/arrows_vertical.svg +1 -0
- package/build/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/assets/icons/more_vertical.svg +1 -0
- package/build/components/checkbox/checkbox.css +1 -1
- package/build/components/radio/radio.css +1 -1
- package/build/components/switch/switch.css +1 -1
- package/build/components/table/table.css +701 -0
- package/build/components/table/table.scss +297 -0
- package/build/components/table-body/table-body.css +40 -0
- package/build/components/table-body/table-body.scss +5 -0
- package/build/components/table-caption/table-caption.css +3 -0
- package/build/components/table-caption/table-caption.scss +3 -0
- package/build/components/table-data-cell/table-data-cell.css +176 -0
- package/build/components/table-data-cell/table-data-cell.scss +5 -0
- package/build/components/table-footer/table-footer.css +40 -0
- package/build/components/table-footer/table-footer.scss +5 -0
- package/build/components/table-head/table-head.css +51 -0
- package/build/components/table-head/table-head.scss +17 -0
- package/build/components/table-header-cell/table-header-cell.css +180 -0
- package/build/components/table-header-cell/table-header-cell.scss +9 -0
- package/build/components/table-row/table-row.css +128 -0
- package/build/components/table-row/table-row.scss +106 -0
- package/build/styles/absolute.css +8 -8
- package/build/styles/index.css +7 -7
- package/build/styles/index.scss +8 -0
- package/build/styles/internal/_custom-elements.scss +3 -1
- package/build/styles/internal/_form-components.scss +1 -1
- package/build/styles/internal/_table-components.scss +60 -0
- package/build/styles/relative.css +8 -8
- package/build/styles/rollup.css +8 -8
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/webpack.css +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -71,6 +71,36 @@ Or within your JavaScript files, with the related bundler as a prefix (in this c
|
|
|
71
71
|
import "@db-ux/core-components/build/styles/rollup.css";
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
+
> **Vite 8 Note:** Starting with Vite 8, the default CSS minifier was changed to [LightningCSS](https://lightningcss.dev/), which provides buggy transformations for modern CSS features used by the DB UX Design System (e.g. `light-dark()` CSS function). We might provide a specific configuration necessary to mitigate those problems in the near future. To keep CSS output stable in the meantime, configure `vite.config.ts` like this:
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
// vite.config.ts
|
|
78
|
+
export default defineConfig({
|
|
79
|
+
build: {
|
|
80
|
+
cssMinify: "esbuild"
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
> Alternatively, you could define a [browserslist](https://browsersl.ist/) based on your individual browser support strategy — which might be totally different from the list Vite 8 defines by default (targeting browsers from the early 2020s):
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// Note: You need to install the required packages first:
|
|
89
|
+
// npm install -D lightningcss browserslist
|
|
90
|
+
|
|
91
|
+
// vite.config.ts
|
|
92
|
+
import { browserslistToTargets } from "lightningcss";
|
|
93
|
+
import browserslist from "browserslist";
|
|
94
|
+
|
|
95
|
+
export default defineConfig({
|
|
96
|
+
css: {
|
|
97
|
+
lightningcss: {
|
|
98
|
+
targets: browserslistToTargets(browserslist(">= 0.5%, last 2 major versions, Firefox ESR, not dead"))
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
74
104
|
### DB Theme
|
|
75
105
|
|
|
76
106
|
In case that you're building a website or application for Deutsche Bahn, you'll additionally have to install the DB Theme via the [`@db-ux/db-theme`](https://www.npmjs.com/package/@db-ux/db-theme) node package (even also available as an inner source node package, as described within that packages README).
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"name": "arrows_vertical.svg",
|
|
4
|
+
"type": "lucide",
|
|
5
|
+
"licence": "https://lucide.dev/license#lucide-license",
|
|
6
|
+
"origin": "arrow-down-up"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "more_vertical.svg",
|
|
10
|
+
"type": "lucide",
|
|
11
|
+
"licence": "https://lucide.dev/license#lucide-license",
|
|
12
|
+
"origin": "ellipsis-vertical"
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"name": "arrow_down.svg",
|
|
4
16
|
"type": "lucide",
|
|
@@ -0,0 +1 @@
|
|
|
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-arrow-down-up-icon lucide-arrow-down-up"><path d="m3 16 4 4 4-4"/><path d="M7 20V4"/><path d="m21 8-4-4-4 4"/><path d="M17 4v16"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
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-ellipsis-vertical-icon lucide-ellipsis-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>
|
|
@@ -209,7 +209,6 @@
|
|
|
209
209
|
.db-checkbox:is(label),
|
|
210
210
|
.db-checkbox > label {
|
|
211
211
|
align-items: flex-start;
|
|
212
|
-
position: relative;
|
|
213
212
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
214
213
|
}
|
|
215
214
|
.db-checkbox:is(label):not([hidden]),
|
|
@@ -233,6 +232,7 @@
|
|
|
233
232
|
}
|
|
234
233
|
.db-checkbox[data-hide-label=true] {
|
|
235
234
|
font-size: 0;
|
|
235
|
+
inline-size: fit-content;
|
|
236
236
|
}
|
|
237
237
|
.db-checkbox[data-hide-label=true] input {
|
|
238
238
|
margin-inline-end: 0;
|
|
@@ -150,7 +150,6 @@
|
|
|
150
150
|
.db-radio:is(label),
|
|
151
151
|
.db-radio > label {
|
|
152
152
|
align-items: flex-start;
|
|
153
|
-
position: relative;
|
|
154
153
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
155
154
|
}
|
|
156
155
|
.db-radio:is(label):not([hidden]),
|
|
@@ -174,6 +173,7 @@
|
|
|
174
173
|
}
|
|
175
174
|
.db-radio[data-hide-label=true] {
|
|
176
175
|
font-size: 0;
|
|
176
|
+
inline-size: fit-content;
|
|
177
177
|
}
|
|
178
178
|
.db-radio[data-hide-label=true] input {
|
|
179
179
|
margin-inline-end: 0;
|
|
@@ -222,7 +222,6 @@
|
|
|
222
222
|
.db-switch:is(label),
|
|
223
223
|
.db-switch > label {
|
|
224
224
|
align-items: flex-start;
|
|
225
|
-
position: relative;
|
|
226
225
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
227
226
|
}
|
|
228
227
|
.db-switch:is(label):not([hidden]),
|
|
@@ -246,6 +245,7 @@
|
|
|
246
245
|
}
|
|
247
246
|
.db-switch[data-hide-label=true] {
|
|
248
247
|
font-size: 0;
|
|
248
|
+
inline-size: fit-content;
|
|
249
249
|
}
|
|
250
250
|
.db-switch[data-hide-label=true] input {
|
|
251
251
|
margin-inline-end: 0;
|