@db-ux/core-components 4.10.2 → 4.11.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/components/checkbox/checkbox.css +1 -1
  3. package/build/components/custom-button/custom-button.css +0 -5
  4. package/build/components/custom-select-list-item/custom-select-list-item.css +0 -5
  5. package/build/components/infotext/infotext.css +4 -1
  6. package/build/components/infotext/infotext.scss +3 -1
  7. package/build/components/input/input.css +0 -5
  8. package/build/components/link/link.css +4 -2
  9. package/build/components/navigation/navigation.css +1 -1
  10. package/build/components/notification/notification.css +4 -2
  11. package/build/components/radio/radio.css +1 -1
  12. package/build/components/switch/switch.css +1 -1
  13. package/build/components/tab-item/tab-item.css +0 -5
  14. package/build/components/tab-list/tab-list.css +4 -2
  15. package/build/components/table/table.css +591 -0
  16. package/build/components/table/table.scss +293 -0
  17. package/build/components/table-body/table-body.css +8 -0
  18. package/build/components/table-body/table-body.scss +5 -0
  19. package/build/components/table-caption/table-caption.css +3 -0
  20. package/build/components/table-caption/table-caption.scss +3 -0
  21. package/build/components/table-data-cell/table-data-cell.css +144 -0
  22. package/build/components/table-data-cell/table-data-cell.scss +5 -0
  23. package/build/components/table-footer/table-footer.css +8 -0
  24. package/build/components/table-footer/table-footer.scss +5 -0
  25. package/build/components/table-head/table-head.css +19 -0
  26. package/build/components/table-head/table-head.scss +17 -0
  27. package/build/components/table-header-cell/table-header-cell.css +148 -0
  28. package/build/components/table-header-cell/table-header-cell.scss +9 -0
  29. package/build/components/table-row/table-row.css +230 -0
  30. package/build/components/table-row/table-row.scss +116 -0
  31. package/build/components/tabs/tabs.css +1 -1
  32. package/build/components/tag/tag.css +4 -2
  33. package/build/components/textarea/textarea.css +4 -2
  34. package/build/styles/absolute.css +8 -8
  35. package/build/styles/bundle.css +8 -8
  36. package/build/styles/component-animations.css +1 -1
  37. package/build/styles/index.css +7 -7
  38. package/build/styles/index.scss +8 -0
  39. package/build/styles/internal/_custom-elements.scss +3 -1
  40. package/build/styles/internal/_db-puls.scss +2 -2
  41. package/build/styles/internal/_form-components.scss +1 -1
  42. package/build/styles/internal/_table-components.scss +64 -0
  43. package/build/styles/relative.css +8 -8
  44. package/build/styles/rollup.css +8 -8
  45. package/build/styles/wc-workarounds.css +1 -1
  46. package/build/styles/webpack.css +8 -8
  47. package/package.json +8 -8
@@ -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-custom-button, db-custom-select-list-item, db-custom-select-list,
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,
@@ -32,9 +32,9 @@
32
32
 
33
33
  @media (prefers-reduced-motion: no-preference) {
34
34
  transition:
35
- height variables.$db-transition-duration-fast
35
+ block-size variables.$db-transition-duration-fast
36
36
  variables.$db-transition-timing-emotional,
37
- width variables.$db-transition-duration-fast
37
+ inline-size variables.$db-transition-duration-fast
38
38
  variables.$db-transition-timing-emotional;
39
39
  }
40
40
  }
@@ -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
+ }