@db-ux/core-components 2.1.0 → 2.1.2

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 (55) hide show
  1. package/build/components/accordion/accordion.css +1 -0
  2. package/build/components/accordion-item/accordion-item.css +2 -1
  3. package/build/components/accordion-item/accordion-item.scss +1 -1
  4. package/build/components/badge/badge.css +1 -0
  5. package/build/components/brand/brand.css +1 -0
  6. package/build/components/button/button.css +2 -1
  7. package/build/components/button/button.scss +1 -1
  8. package/build/components/card/card.css +1 -0
  9. package/build/components/checkbox/checkbox.css +2 -1
  10. package/build/components/custom-select/custom-select.css +12 -12
  11. package/build/components/custom-select/custom-select.scss +2 -2
  12. package/build/components/custom-select-dropdown/custom-select-dropdown.css +1 -0
  13. package/build/components/custom-select-form-field/custom-select-form-field.css +1 -0
  14. package/build/components/custom-select-list/custom-select-list.css +1 -0
  15. package/build/components/custom-select-list-item/custom-select-list-item.css +4 -3
  16. package/build/components/divider/divider.css +1 -0
  17. package/build/components/drawer/drawer.css +4 -4
  18. package/build/components/header/header.css +1 -0
  19. package/build/components/icon/icon.css +1 -0
  20. package/build/components/infotext/infotext.css +1 -0
  21. package/build/components/input/input.css +41 -21
  22. package/build/components/input/input.scss +31 -8
  23. package/build/components/link/link.css +2 -1
  24. package/build/components/navigation/navigation.css +1 -0
  25. package/build/components/navigation-item/navigation-item.css +2 -1
  26. package/build/components/navigation-item/navigation-item.scss +1 -1
  27. package/build/components/notification/notification.css +2 -1
  28. package/build/components/page/page.css +1 -0
  29. package/build/components/popover/popover.css +1 -0
  30. package/build/components/radio/radio.css +2 -1
  31. package/build/components/section/section.css +1 -0
  32. package/build/components/select/select.css +5 -4
  33. package/build/components/stack/stack-web-component.css +1 -0
  34. package/build/components/stack/stack.css +1 -0
  35. package/build/components/switch/switch.css +2 -1
  36. package/build/components/tab-item/tab-item.css +5 -4
  37. package/build/components/tab-item/tab-item.scss +1 -1
  38. package/build/components/tab-list/tab-list.css +1 -0
  39. package/build/components/tab-panel/tab-panel.css +1 -0
  40. package/build/components/tabs/tabs.css +1 -0
  41. package/build/components/tag/tag.css +2 -1
  42. package/build/components/tag/tag.scss +1 -1
  43. package/build/components/textarea/textarea.css +5 -4
  44. package/build/components/tooltip/tooltip.css +1 -0
  45. package/build/styles/absolute.css +7 -7
  46. package/build/styles/dialog-init.css +1 -1
  47. package/build/styles/dialog-init.scss +12 -7
  48. package/build/styles/index.css +7 -7
  49. package/build/styles/internal/_component.scss +0 -3
  50. package/build/styles/internal/_form-components.scss +5 -5
  51. package/build/styles/internal/_link-components.scss +1 -1
  52. package/build/styles/relative.css +7 -7
  53. package/build/styles/rollup.css +7 -7
  54. package/build/styles/webpack.css +7 -7
  55. package/package.json +3 -3
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  .db-select[data-hide-label=true] > label, .db-visually-hidden,
@@ -618,7 +619,7 @@ input[type=radio]:checked) > label {
618
619
  --db-label-visible-above: 0;
619
620
  }
620
621
  .db-select[data-variant=floating] > label {
621
- opacity: 0.75;
622
+ opacity: var(--db-opacity-xl);
622
623
  position: absolute;
623
624
  z-index: 2;
624
625
  inset-block-start: calc((var(--db-sizing-md) - var(--db-icon-font-size)) / 2);
@@ -657,7 +658,7 @@ select:is(input, textarea):not(:placeholder-shown),
657
658
  > select option:checked:not([hidden]),
658
659
  input[type=checkbox]:checked,
659
660
  input[type=radio]:checked) [id$=-placeholder] {
660
- opacity: 0.75;
661
+ opacity: var(--db-opacity-xl);
661
662
  font-family: var(--db-font-family-sans);
662
663
  font-style: italic;
663
664
  /* stylelint-disable-next-line db-ux/use-spacings */
@@ -799,7 +800,7 @@ input[type=radio]:checked) [id$=-placeholder] {
799
800
  }
800
801
  .db-select select::placeholder,
801
802
  .db-select [id$=-placeholder] {
802
- opacity: 0.75;
803
+ opacity: var(--db-opacity-xl);
803
804
  font-family: var(--db-font-family-sans);
804
805
  font-style: italic;
805
806
  }
@@ -845,7 +846,7 @@ input[type=radio]:checked) [id$=-placeholder] {
845
846
  .db-select:has(select:disabled,
846
847
  select[data-disabled=true],
847
848
  select[aria-disabled=true]) {
848
- opacity: 0.4;
849
+ opacity: var(--db-opacity-md);
849
850
  pointer-events: none;
850
851
  }
851
852
  .db-select::after, .db-select::before {
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  @layer variables {}
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  @layer variables {}
@@ -5,6 +5,7 @@
5
5
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
6
6
  /* Elevation */
7
7
  /* Border */
8
+ /* Opacity */
8
9
  /* Transitions */
9
10
  /* Variants for adaptive components like input, select, notification, ... */
10
11
  .db-visually-hidden,
@@ -513,7 +514,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
513
514
  }
514
515
  }
515
516
  .db-switch:has(input:disabled) {
516
- opacity: 0.4;
517
+ opacity: var(--db-opacity-md);
517
518
  }
518
519
  .db-switch:is(label),
519
520
  .db-switch > label {
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  .db-visually-hidden,
@@ -64,14 +65,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
64
65
  outline-offset: var(--db-border-width-xs);
65
66
  box-shadow: 0 0 0 var(--db-border-width-xs) var(--db-focus-box-shadow-bg-color, transparent);
66
67
  }
67
- .db-tab-item input:not([data-disable-focus=true]):not([type=radio], [role=switch]):focus-visible::before {
68
- border-radius: var(--db-border-radius-xs);
69
- }
70
68
  @media screen and (prefers-reduced-motion: no-preference) {
71
69
  .db-tab-item input:not([data-disable-focus=true]):focus-visible::before {
72
70
  transition: outline var(--db-transition-duration-extra-fast), box-shadow var(--db-transition-duration-extra-fast);
73
71
  }
74
72
  }
73
+ .db-tab-item input:not([data-disable-focus=true]):not([type=radio], [role=switch]):focus-visible::before {
74
+ border-radius: var(--db-border-radius-xs);
75
+ }
75
76
 
76
77
  /**
77
78
  * @mixin screen-min-max
@@ -144,7 +145,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
144
145
  border-radius: var(--db-border-radius-sm);
145
146
  }
146
147
  .db-tab-item:has(input:disabled) {
147
- opacity: 0.4;
148
+ opacity: var(--db-opacity-md);
148
149
  }
149
150
  .db-tab-item label {
150
151
  background-color: var(--db-adaptive-bg-basic-transparent-full-default);
@@ -18,7 +18,7 @@ $with-icon-padding-calc: calc(
18
18
  border-radius: variables.$db-border-radius-sm;
19
19
 
20
20
  &:has(input:disabled) {
21
- opacity: component.$default-disabled;
21
+ opacity: variables.$db-opacity-md;
22
22
  }
23
23
 
24
24
  label {
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  .db-visually-hidden,
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  .db-tab-panel {
9
10
  display: none;
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  .db-visually-hidden,
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  .db-tag label, .db-tag a {
9
10
  transition: outline var(--db-transition-duration-extra-fast), border-color var(--db-transition-straight-emotional), background-color var(--db-transition-straight-emotional);
@@ -1512,7 +1513,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
1512
1513
  block-size: inherit;
1513
1514
  }
1514
1515
  .db-tag:has(:disabled), .db-tag[data-disabled=true] {
1515
- opacity: 0.4;
1516
+ opacity: var(--db-opacity-md);
1516
1517
  pointer-events: none;
1517
1518
  }
1518
1519
  .db-tag[data-overflow=true] {
@@ -209,7 +209,7 @@
209
209
 
210
210
  &:has(:disabled),
211
211
  &[data-disabled="true"] {
212
- opacity: component.$default-disabled;
212
+ opacity: variables.$db-opacity-md;
213
213
  pointer-events: none;
214
214
  }
215
215
 
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  .db-textarea[data-hide-label=true] > label, .db-visually-hidden,
9
10
  [data-visually-hidden=true] {
@@ -372,7 +373,7 @@ input[type=radio]:checked) > label {
372
373
  --db-label-visible-above: 0;
373
374
  }
374
375
  .db-textarea[data-variant=floating] > label {
375
- opacity: 0.75;
376
+ opacity: var(--db-opacity-xl);
376
377
  position: absolute;
377
378
  z-index: 2;
378
379
  inset-block-start: calc((var(--db-sizing-md) - var(--db-icon-font-size)) / 2);
@@ -411,7 +412,7 @@ textarea:is(input, textarea):not(:placeholder-shown),
411
412
  > select option:checked:not([hidden]),
412
413
  input[type=checkbox]:checked,
413
414
  input[type=radio]:checked) [id$=-placeholder] {
414
- opacity: 0.75;
415
+ opacity: var(--db-opacity-xl);
415
416
  font-family: var(--db-font-family-sans);
416
417
  font-style: italic;
417
418
  }
@@ -623,7 +624,7 @@ input[type=radio]:checked) [id$=-placeholder] {
623
624
  }
624
625
  .db-textarea textarea::placeholder,
625
626
  .db-textarea [id$=-placeholder] {
626
- opacity: 0.75;
627
+ opacity: var(--db-opacity-xl);
627
628
  font-family: var(--db-font-family-sans);
628
629
  font-style: italic;
629
630
  }
@@ -669,7 +670,7 @@ input[type=radio]:checked) [id$=-placeholder] {
669
670
  .db-textarea:has(textarea:disabled,
670
671
  textarea[data-disabled=true],
671
672
  textarea[aria-disabled=true]) {
672
- opacity: 0.4;
673
+ opacity: var(--db-opacity-md);
673
674
  pointer-events: none;
674
675
  }
675
676
  .db-textarea::after, .db-textarea::before {
@@ -4,6 +4,7 @@
4
4
  paddings/gaps in an application e.g. the <main> should have a responsive padding. */
5
5
  /* Elevation */
6
6
  /* Border */
7
+ /* Opacity */
7
8
  /* Transitions */
8
9
  /* Variants for adaptive components like input, select, notification, ... */
9
10
  @layer variables {}