@db-ux/core-components 4.5.4-table-c758ae7 → 4.5.4-tailwind-inline-5d37a00
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 +5 -1
- package/agent/Best-Practise_Common-AI-Mistakes.md +79 -1
- package/build/assets/icons/LICENCES.json +0 -12
- 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/components/checkbox/checkbox.css +1 -1
- package/build/components/radio/radio.css +1 -1
- package/build/components/switch/switch.css +1 -1
- package/build/styles/absolute.css +14 -42
- package/build/styles/dialog-init.css +1 -1
- package/build/styles/index.css +12 -40
- package/build/styles/index.scss +0 -8
- package/build/styles/internal/_custom-elements.scss +1 -3
- package/build/styles/internal/_form-components.scss +1 -1
- package/build/styles/relative.css +14 -42
- package/build/styles/rollup.css +14 -42
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/webpack.css +14 -42
- package/package.json +5 -5
- package/build/assets/icons/arrows_vertical.svg +0 -1
- package/build/assets/icons/more_vertical.svg +0 -1
- package/build/components/table/table.css +0 -701
- package/build/components/table/table.scss +0 -297
- package/build/components/table-body/table-body.css +0 -40
- package/build/components/table-body/table-body.scss +0 -5
- package/build/components/table-caption/table-caption.css +0 -3
- package/build/components/table-caption/table-caption.scss +0 -3
- package/build/components/table-data-cell/table-data-cell.css +0 -176
- package/build/components/table-data-cell/table-data-cell.scss +0 -5
- package/build/components/table-footer/table-footer.css +0 -40
- package/build/components/table-footer/table-footer.scss +0 -5
- package/build/components/table-head/table-head.css +0 -51
- package/build/components/table-head/table-head.scss +0 -17
- package/build/components/table-header-cell/table-header-cell.css +0 -180
- package/build/components/table-header-cell/table-header-cell.scss +0 -9
- package/build/components/table-row/table-row.css +0 -128
- package/build/components/table-row/table-row.scss +0 -106
- package/build/styles/internal/_table-components.scss +0 -60
package/README.md
CHANGED
|
@@ -95,7 +95,11 @@ import browserslist from "browserslist";
|
|
|
95
95
|
export default defineConfig({
|
|
96
96
|
css: {
|
|
97
97
|
lightningcss: {
|
|
98
|
-
targets: browserslistToTargets(
|
|
98
|
+
targets: browserslistToTargets(
|
|
99
|
+
browserslist(
|
|
100
|
+
">= 0.5%, last 2 major versions, Firefox ESR, not dead"
|
|
101
|
+
)
|
|
102
|
+
)
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
});
|
|
@@ -6,10 +6,88 @@
|
|
|
6
6
|
- always use variant `outlined` as default
|
|
7
7
|
- use variant `brand` as CTA or primary action
|
|
8
8
|
- if `noText`/`no-text` property is used add a `DBTooltip` or `db-tooltip` inside the Button
|
|
9
|
-
-
|
|
9
|
+
- if `noText`/`no-text` property is used, an icon attribute (`icon`, `iconLeading`, or `iconTrailing`) is also required
|
|
10
|
+
- always add a `type` as property as best practise (`button`, `submit`, or `reset`)
|
|
10
11
|
- there is no `size=large` button
|
|
12
|
+
- only use one icon attribute at a time: `icon`, `iconLeading`, or `iconTrailing` — never combine them
|
|
11
13
|
|
|
12
14
|
## `DBStack` or `db-stack`
|
|
13
15
|
|
|
14
16
|
- there is no property `gap="fix-md"`, available values are `small`, `medium`, etc.
|
|
15
17
|
- there is no property `direction="horizontal"`, available values are `row`, `column`, etc.
|
|
18
|
+
|
|
19
|
+
## `DBAccordion` or `db-accordion`
|
|
20
|
+
|
|
21
|
+
- never nest a `DBAccordion`/`db-accordion` inside another `DBAccordion`/`db-accordion` — it confuses users
|
|
22
|
+
|
|
23
|
+
## `DBAccordionItem` or `db-accordion-item`
|
|
24
|
+
|
|
25
|
+
- always provide either a `headline`, `headlinePlain` attribute, or a headline slot
|
|
26
|
+
- must have children content (text or child elements)
|
|
27
|
+
|
|
28
|
+
## `DBBadge` or `db-badge`
|
|
29
|
+
|
|
30
|
+
- when using corner placement (`corner-top-left`, `corner-top-right`, `corner-bottom-left`, `corner-bottom-right`), text/children must be max 3 characters
|
|
31
|
+
- when using corner placement, a `label` attribute is required for accessibility
|
|
32
|
+
- inside interactive elements (`DBButton`, `DBLink`, `button`, `a`), do not use `placement="inline"` — use corner placement instead
|
|
33
|
+
- when no `placement` is set, the default is `inline`
|
|
34
|
+
|
|
35
|
+
## `DBLink` or `db-link`
|
|
36
|
+
|
|
37
|
+
- when using `content="external"`, always add `target="_blank"` and `referrerPolicy` (e.g. `"no-referrer"`)
|
|
38
|
+
- when using `target="_blank"`, always set `content="external"`
|
|
39
|
+
|
|
40
|
+
## `DBInput` or `db-input`
|
|
41
|
+
|
|
42
|
+
- always add a `type` attribute (e.g. `text`, `email`, `password`, `file`) for better developer experience
|
|
43
|
+
- when `type="file"`, always add an `accept` attribute (e.g. `".pdf"`, `"image/*"`)
|
|
44
|
+
- `multiple` and `accept` attributes are only valid for `type="file"` — do not use them with other types
|
|
45
|
+
|
|
46
|
+
## `DBSelect` or `db-select`
|
|
47
|
+
|
|
48
|
+
- must have either an `options` property or `<option>` children — never leave it empty
|
|
49
|
+
|
|
50
|
+
## `DBCustomSelect` or `db-custom-select`
|
|
51
|
+
|
|
52
|
+
- always provide `mobileCloseButtonText` for accessibility
|
|
53
|
+
- when using `selectedType="tag"`, always provide `removeTagsTexts` attribute for accessibility
|
|
54
|
+
|
|
55
|
+
## `DBNotification` or `db-notification`
|
|
56
|
+
|
|
57
|
+
- always provide `closeButtonText` attribute for accessibility
|
|
58
|
+
- must have children content (text or child elements)
|
|
59
|
+
|
|
60
|
+
## `DBDrawer` or `db-drawer`
|
|
61
|
+
|
|
62
|
+
- always provide `closeButtonText` attribute for accessibility
|
|
63
|
+
|
|
64
|
+
## `DBHeader` or `db-header`
|
|
65
|
+
|
|
66
|
+
- always provide `burgerMenuLabel` attribute for accessibility
|
|
67
|
+
|
|
68
|
+
## `DBNavigationItem` or `db-navigation-item`
|
|
69
|
+
|
|
70
|
+
- always provide `backButtonText` attribute for accessibility
|
|
71
|
+
- must have children content (text or child elements)
|
|
72
|
+
|
|
73
|
+
## `DBTag` or `db-tag`
|
|
74
|
+
|
|
75
|
+
- when using `behavior="removable"`, always provide `removeButton` attribute for accessibility
|
|
76
|
+
|
|
77
|
+
## `DBTooltip` or `db-tooltip`
|
|
78
|
+
|
|
79
|
+
- must not contain interactive elements (buttons, links, inputs, etc.) — use `DBPopover` for interactive content
|
|
80
|
+
- must be a child of an interactive element (`button`, `a`, `DBButton`, `DBLink`, `DBNavigationItem`, `DBTabItem`, `input`, `select`, `textarea`, etc.) for accessibility
|
|
81
|
+
|
|
82
|
+
## `DBIcon` or `db-icon`
|
|
83
|
+
|
|
84
|
+
- prefer using the `icon` attribute on the parent component (`DBButton`, `DBInput`, `DBLink`, `DBTag`, etc.) instead of nesting a `DBIcon`/`db-icon` child
|
|
85
|
+
|
|
86
|
+
## Form components (`DBInput`, `DBTextarea`, `DBSelect`, `DBCustomSelect`, `DBCheckbox`, `DBRadio`, `DBSwitch`)
|
|
87
|
+
|
|
88
|
+
- always provide a `label` attribute for accessibility (for `DBCheckbox`, `DBRadio`, `DBSwitch` children text content also counts as label)
|
|
89
|
+
- when using validation attributes (`required`, `minLength`, `maxLength`, `min`, `max`, `pattern`), always provide an `invalidMessage` attribute for better UX (exception: `DBRadio` with `required` does not need `invalidMessage`)
|
|
90
|
+
|
|
91
|
+
## Content components (`DBButton`, `DBLink`, `DBBadge`, `DBIcon`, `DBInfotext`, `DBNavigationItem`, `DBNotification`, `DBAccordionItem`)
|
|
92
|
+
|
|
93
|
+
- must have either a `text` property or children content — never leave them empty
|
|
@@ -1,16 +1,4 @@
|
|
|
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
|
-
},
|
|
14
2
|
{
|
|
15
3
|
"name": "arrow_down.svg",
|
|
16
4
|
"type": "lucide",
|
|
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
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
.db-checkbox:is(label),
|
|
210
210
|
.db-checkbox > label {
|
|
211
211
|
align-items: flex-start;
|
|
212
|
+
position: relative;
|
|
212
213
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
213
214
|
}
|
|
214
215
|
.db-checkbox:is(label):not([hidden]),
|
|
@@ -232,7 +233,6 @@
|
|
|
232
233
|
}
|
|
233
234
|
.db-checkbox[data-hide-label=true] {
|
|
234
235
|
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,6 +150,7 @@
|
|
|
150
150
|
.db-radio:is(label),
|
|
151
151
|
.db-radio > label {
|
|
152
152
|
align-items: flex-start;
|
|
153
|
+
position: relative;
|
|
153
154
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
154
155
|
}
|
|
155
156
|
.db-radio:is(label):not([hidden]),
|
|
@@ -173,7 +174,6 @@
|
|
|
173
174
|
}
|
|
174
175
|
.db-radio[data-hide-label=true] {
|
|
175
176
|
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,6 +222,7 @@
|
|
|
222
222
|
.db-switch:is(label),
|
|
223
223
|
.db-switch > label {
|
|
224
224
|
align-items: flex-start;
|
|
225
|
+
position: relative;
|
|
225
226
|
color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
226
227
|
}
|
|
227
228
|
.db-switch:is(label):not([hidden]),
|
|
@@ -245,7 +246,6 @@
|
|
|
245
246
|
}
|
|
246
247
|
.db-switch[data-hide-label=true] {
|
|
247
248
|
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;
|