@db-ux/core-components 3.1.16 → 3.1.18

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 (72) hide show
  1. package/README.md +1 -1
  2. package/agent/_instructions.md +9 -0
  3. package/build/components/accordion-item/accordion-item.css +3 -1
  4. package/build/components/accordion-item/accordion-item.scss +3 -1
  5. package/build/components/badge/badge.css +3 -1
  6. package/build/components/brand/brand.css +3 -1
  7. package/build/components/brand/brand.scss +2 -1
  8. package/build/components/button/button.css +3 -1
  9. package/build/components/card/card.css +3 -1
  10. package/build/components/card/card.scss +1 -1
  11. package/build/components/checkbox/checkbox.css +29 -24
  12. package/build/components/checkbox/checkbox.scss +2 -1
  13. package/build/components/custom-select/custom-select.css +34 -26
  14. package/build/components/custom-select/custom-select.scss +1 -1
  15. package/build/components/custom-select-dropdown/custom-select-dropdown.css +3 -3
  16. package/build/components/custom-select-dropdown/custom-select-dropdown.scss +1 -1
  17. package/build/components/custom-select-form-field/custom-select-form-field.css +6 -2
  18. package/build/components/custom-select-form-field/custom-select-form-field.scss +5 -2
  19. package/build/components/custom-select-list/custom-select-list.css +3 -1
  20. package/build/components/custom-select-list/custom-select-list.scss +4 -1
  21. package/build/components/custom-select-list-item/custom-select-list-item.css +3 -1
  22. package/build/components/custom-select-list-item/custom-select-list-item.scss +2 -1
  23. package/build/components/drawer/drawer.css +8 -4
  24. package/build/components/drawer/drawer.scss +29 -5
  25. package/build/components/header/header.css +46 -24
  26. package/build/components/header/header.scss +27 -18
  27. package/build/components/icon/icon.css +1 -1
  28. package/build/components/icon/icon.scss +2 -1
  29. package/build/components/infotext/infotext.css +2 -0
  30. package/build/components/infotext/infotext.scss +2 -2
  31. package/build/components/input/input.css +30 -26
  32. package/build/components/link/link.css +2 -2
  33. package/build/components/navigation/navigation.css +4 -2
  34. package/build/components/navigation/navigation.scss +4 -2
  35. package/build/components/navigation-item/navigation-item.css +15 -6
  36. package/build/components/navigation-item/navigation-item.scss +10 -6
  37. package/build/components/notification/notification-grid-non-overlay.scss +3 -1
  38. package/build/components/notification/notification.css +6 -4
  39. package/build/components/notification/notification.scss +2 -1
  40. package/build/components/page/page.css +12 -4
  41. package/build/components/page/page.scss +8 -3
  42. package/build/components/popover/popover.css +3 -1
  43. package/build/components/popover/popover.scss +4 -1
  44. package/build/components/radio/radio.css +4 -1
  45. package/build/components/select/select.css +34 -26
  46. package/build/components/select/select.scss +2 -1
  47. package/build/components/stack/stack-web-component.css +3 -1
  48. package/build/components/stack/stack.css +3 -1
  49. package/build/components/switch/switch.css +7 -2
  50. package/build/components/switch/switch.scss +3 -1
  51. package/build/components/tab-item/tab-item.css +6 -2
  52. package/build/components/tab-item/tab-item.scss +6 -2
  53. package/build/components/tab-list/tab-list.css +3 -1
  54. package/build/components/tab-list/tab-list.scss +2 -1
  55. package/build/components/tab-panel/tab-panel.css +1 -1
  56. package/build/components/tab-panel/tab-panel.scss +2 -1
  57. package/build/components/tabs/tabs.css +58 -56
  58. package/build/components/tabs/tabs.scss +4 -3
  59. package/build/components/tag/tag.css +11 -5
  60. package/build/components/tag/tag.scss +5 -3
  61. package/build/components/textarea/textarea.css +27 -25
  62. package/build/styles/absolute.css +16 -16
  63. package/build/styles/index.css +15 -15
  64. package/build/styles/internal/_button-components.scss +5 -1
  65. package/build/styles/internal/_form-components.scss +8 -6
  66. package/build/styles/internal/_link-components.scss +2 -2
  67. package/build/styles/internal/_select-components.scss +9 -0
  68. package/build/styles/internal/_stack-components.scss +2 -1
  69. package/build/styles/relative.css +16 -16
  70. package/build/styles/rollup.css +16 -16
  71. package/build/styles/webpack.css +16 -16
  72. package/package.json +6 -2
@@ -1,9 +1,13 @@
1
+ @use "@db-ux/core-foundations/build/styles/helpers/display";
2
+
1
3
  %default-button {
2
4
  font-weight: 700;
3
5
  white-space: nowrap; // we don't want to break buttons
4
6
  justify-content: center;
5
7
  text-align: center;
6
- display: inline-flex;
8
+
9
+ @include display.display(inline-flex);
10
+
7
11
  align-items: center; // Centering the content vertically and horizontally
8
12
  vertical-align: top; // Alignment of inline-flex buttons with different content
9
13
  }
@@ -61,7 +61,7 @@ $db-min-inline-size: var(
61
61
  margin-block-start: variables.$db-spacing-fixed-2xs;
62
62
 
63
63
  &:is([data-semantic="successful"], [data-semantic="critical"]) {
64
- display: none;
64
+ @include helpers.display(none);
65
65
  }
66
66
  }
67
67
  }
@@ -160,17 +160,17 @@ $db-min-inline-size: var(
160
160
  > .db-infotext {
161
161
  @if $key == "valid" {
162
162
  &[data-semantic="successful"] {
163
- display: flex;
163
+ @include helpers.display(flex);
164
164
  }
165
165
  /* stylelint-disable-next-line at-rule-empty-line-before */
166
166
  } @else {
167
167
  &[data-semantic="critical"] {
168
- display: flex;
168
+ @include helpers.display(flex);
169
169
  }
170
170
  }
171
171
 
172
172
  &:not([data-semantic]) {
173
- display: none;
173
+ @include helpers.display(none);
174
174
  }
175
175
  }
176
176
  }
@@ -312,8 +312,9 @@ $input-valid-types:
312
312
 
313
313
  // we use absolute icons
314
314
  position: relative;
315
- display: flex;
316
315
  flex-direction: column;
316
+
317
+ @include helpers.display(flex);
317
318
  }
318
319
 
319
320
  &[data-variant="floating"],
@@ -513,7 +514,8 @@ $input-valid-types:
513
514
 
514
515
  &:is(label),
515
516
  > label {
516
- display: flex;
517
+ @include helpers.display(flex);
518
+
517
519
  align-items: flex-start;
518
520
  position: relative;
519
521
  color: var(
@@ -5,7 +5,7 @@
5
5
  @use "./component";
6
6
 
7
7
  %db-link-height {
8
- display: inline-block;
8
+ @include helpers.display(inline-block);
9
9
 
10
10
  &:not([data-wrap="true"]) {
11
11
  block-size: variables.$db-sizing-sm;
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  &[data-variant="inline"] {
53
- display: inline;
53
+ @include helpers.display(inline);
54
54
  }
55
55
 
56
56
  &:focus-visible {
@@ -23,6 +23,15 @@ $select-icon-padding: calc(
23
23
  position: absolute;
24
24
  inset-block-start: 0;
25
25
  inset-inline-start: 0;
26
+ opacity: 0;
27
+
28
+ @media screen and (prefers-reduced-motion: no-preference) {
29
+ transition:
30
+ opacity #{variables.$db-transition-straight-emotional},
31
+ outline #{variables.$db-transition-duration-extra-fast},
32
+ border-color #{variables.$db-transition-straight-emotional},
33
+ background-color #{variables.$db-transition-straight-emotional};
34
+ }
26
35
  }
27
36
 
28
37
  %select-placeholder {
@@ -68,7 +68,8 @@ $stack-gaps: (
68
68
  }
69
69
 
70
70
  %default-stack {
71
- display: flex;
71
+ @include helpers.display(flex);
72
+
72
73
  gap: variables.$db-spacing-fixed-sm;
73
74
  justify-content: flex-start;
74
75
  block-size: 100%;