@db-ux/core-components 4.10.2 → 4.11.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/CHANGELOG.md +10 -0
- package/build/components/checkbox/checkbox.css +1 -1
- package/build/components/custom-button/custom-button.css +0 -5
- package/build/components/custom-select-list-item/custom-select-list-item.css +0 -5
- package/build/components/infotext/infotext.css +4 -1
- package/build/components/infotext/infotext.scss +3 -1
- package/build/components/input/input.css +0 -5
- package/build/components/link/link.css +4 -2
- package/build/components/notification/notification.css +4 -2
- package/build/components/radio/radio.css +1 -1
- package/build/components/switch/switch.css +1 -1
- package/build/components/tab-item/tab-item.css +0 -5
- package/build/components/tab-list/tab-list.css +4 -2
- package/build/components/table/table.css +591 -0
- package/build/components/table/table.scss +293 -0
- package/build/components/table-body/table-body.css +8 -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 +144 -0
- package/build/components/table-data-cell/table-data-cell.scss +5 -0
- package/build/components/table-footer/table-footer.css +8 -0
- package/build/components/table-footer/table-footer.scss +5 -0
- package/build/components/table-head/table-head.css +19 -0
- package/build/components/table-head/table-head.scss +17 -0
- package/build/components/table-header-cell/table-header-cell.css +148 -0
- package/build/components/table-header-cell/table-header-cell.scss +9 -0
- package/build/components/table-row/table-row.css +230 -0
- package/build/components/table-row/table-row.scss +116 -0
- package/build/components/tag/tag.css +4 -2
- package/build/components/textarea/textarea.css +4 -2
- package/build/styles/absolute.css +8 -8
- package/build/styles/bundle.css +8 -8
- package/build/styles/component-animations.css +1 -1
- 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 +64 -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 +4 -4
package/build/styles/index.scss
CHANGED
|
@@ -35,4 +35,12 @@
|
|
|
35
35
|
@forward "../components/custom-select-dropdown/custom-select-dropdown";
|
|
36
36
|
@forward "../components/custom-select-list/custom-select-list";
|
|
37
37
|
@forward "../components/custom-select-list-item/custom-select-list-item";
|
|
38
|
+
@forward "../components/table/table";
|
|
39
|
+
@forward "../components/table-caption/table-caption";
|
|
40
|
+
@forward "../components/table-head/table-head";
|
|
41
|
+
@forward "../components/table-body/table-body";
|
|
42
|
+
@forward "../components/table-footer/table-footer";
|
|
43
|
+
@forward "../components/table-row/table-row";
|
|
44
|
+
@forward "../components/table-header-cell/table-header-cell";
|
|
45
|
+
@forward "../components/table-data-cell/table-data-cell";
|
|
38
46
|
@forward "../components/custom-button/custom-button";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
$custom-elements: //hygen-insert
|
|
2
2
|
|
|
3
|
-
db-
|
|
3
|
+
db-table-data-cell, db-table-header-cell, db-table-row, db-table-footer,
|
|
4
|
+
db-table-body, db-table-head, db-table-caption, db-table, db-custom-button,
|
|
5
|
+
db-custom-select-list-item, db-custom-select-list,
|
|
4
6
|
db-custom-select-dropdown, db-custom-select-form-field, db-custom-select,
|
|
5
7
|
db-stack, db-switch, db-tab-panel, db-tabs, db-tab-list, db-tab-item,
|
|
6
8
|
db-tab-bar, db-tooltip, db-popover, db-textarea, db-navigation,
|
|
@@ -626,7 +626,6 @@ $input-valid-types:
|
|
|
626
626
|
@include helpers.display(flex);
|
|
627
627
|
|
|
628
628
|
align-items: flex-start;
|
|
629
|
-
position: relative;
|
|
630
629
|
color: var(
|
|
631
630
|
--db-check-element-label-color,
|
|
632
631
|
#{colors.$db-adaptive-on-bg-basic-emphasis-100-default}
|
|
@@ -660,6 +659,7 @@ $input-valid-types:
|
|
|
660
659
|
|
|
661
660
|
&[data-hide-label="true"] {
|
|
662
661
|
font-size: 0;
|
|
662
|
+
inline-size: fit-content;
|
|
663
663
|
|
|
664
664
|
input {
|
|
665
665
|
margin-inline-end: 0;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
3
|
+
|
|
4
|
+
%table-section-grid {
|
|
5
|
+
display: var(--db-table-section-display, grid);
|
|
6
|
+
grid-template-columns: subgrid;
|
|
7
|
+
grid-column: 1 / -1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
%table-cell {
|
|
11
|
+
display: flex;
|
|
12
|
+
|
|
13
|
+
@for $span from 2 through 20 {
|
|
14
|
+
&[colspan="#{$span}"] {
|
|
15
|
+
grid-column: span var(--db-table-cell-span, #{$span});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// NOTE: rowspan with CSS Grid/subgrid has limited support since each <tr>
|
|
19
|
+
// is an independent grid container. This rule provides visual row height
|
|
20
|
+
// expansion within a single row only. For full native rowspan behavior,
|
|
21
|
+
// consumers should use the slotted (children) approach with native table elements.
|
|
22
|
+
&[rowspan="#{$span}"] {
|
|
23
|
+
grid-row: span var(--db-table-cell-span, #{$span});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:not([data-horizontal-alignment]),
|
|
28
|
+
&[data-horizontal-alignment="start"] {
|
|
29
|
+
text-align: start;
|
|
30
|
+
justify-content: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-horizontal-alignment="center"] {
|
|
34
|
+
text-align: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-horizontal-alignment="end"] {
|
|
39
|
+
text-align: end;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-vertical-alignment="start"] {
|
|
44
|
+
vertical-align: top;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:not([data-vertical-alignment]),
|
|
49
|
+
&[data-vertical-alignment="center"] {
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-vertical-alignment="end"] {
|
|
55
|
+
vertical-align: bottom;
|
|
56
|
+
align-items: flex-end;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
%sub-header-strong {
|
|
61
|
+
background-color: colors.$db-adaptive-bg-vibrant-default;
|
|
62
|
+
color: colors.$db-adaptive-on-bg-vibrant-default;
|
|
63
|
+
border-color: colors.$db-adaptive-on-bg-basic-emphasis-70-default;
|
|
64
|
+
}
|