@db-ux/core-components 3.1.20 → 4.0.1-0-540218c
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 +16 -0
- package/agent/_instructions.md +7 -2
- package/build/components/accordion-item/accordion-item.css +4 -1
- package/build/components/badge/badge.css +2 -0
- package/build/components/brand/brand.css +2 -0
- package/build/components/button/button.css +2 -0
- package/build/components/checkbox/checkbox.css +28 -17
- package/build/components/checkbox/checkbox.scss +2 -52
- package/build/components/custom-select/custom-select.css +61 -1
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +2 -0
- package/build/components/custom-select-form-field/custom-select-form-field.css +2 -0
- package/build/components/custom-select-list/custom-select-list.css +2 -0
- package/build/components/custom-select-list-item/custom-select-list-item.css +2 -0
- package/build/components/header/header.css +2 -0
- package/build/components/infotext/infotext.css +10 -7
- package/build/components/infotext/infotext.scss +2 -2
- package/build/components/input/input.css +74 -1
- package/build/components/link/link.css +4 -1
- package/build/components/navigation/navigation.css +2 -0
- package/build/components/navigation-item/navigation-item.css +4 -1
- package/build/components/notification/notification.css +4 -1
- package/build/components/radio/radio.css +2 -0
- package/build/components/select/select.css +61 -1
- package/build/components/switch/switch.css +298 -439
- package/build/components/switch/switch.scss +93 -76
- package/build/components/tab-item/tab-item.css +2 -0
- package/build/components/tab-list/tab-list.css +2 -0
- package/build/components/tabs/tabs.css +2 -0
- package/build/components/tag/tag.css +4 -1
- package/build/components/textarea/textarea.css +76 -0
- package/build/components/tooltip/tooltip.css +2 -0
- package/build/styles/absolute.css +133 -31
- package/build/styles/index.css +133 -31
- package/build/styles/internal/_form-components.scss +87 -0
- package/build/styles/relative.css +133 -31
- package/build/styles/rollup.css +133 -31
- package/build/styles/webpack.css +133 -31
- package/package.json +2 -2
|
@@ -71,10 +71,35 @@ $db-min-inline-size: var(
|
|
|
71
71
|
[id$="-placeholder"] {
|
|
72
72
|
@content;
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
// Workaround until the :blank pseudo-class is widely supported; then prefer targeting that pseudo-class.
|
|
76
|
+
#{$selector} {
|
|
77
|
+
&:is(
|
|
78
|
+
[type="date"],
|
|
79
|
+
[type="datetime-local"],
|
|
80
|
+
[type="month"],
|
|
81
|
+
[type="week"],
|
|
82
|
+
[type="time"]
|
|
83
|
+
):not(:user-valid)::-webkit-datetime-edit {
|
|
84
|
+
@content;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
@mixin set-floating-label-overwrites($selector) {
|
|
77
90
|
&[data-variant="floating"] {
|
|
91
|
+
@include get-validity($selector) {
|
|
92
|
+
label {
|
|
93
|
+
color: var(--db-successful-on-bg-basic-emphasis-80-default);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include get-validity($selector, "invalid") {
|
|
98
|
+
label {
|
|
99
|
+
color: var(--db-critical-on-bg-basic-emphasis-80-default);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
78
103
|
> label {
|
|
79
104
|
@extend %db-overwrite-font-size-md;
|
|
80
105
|
|
|
@@ -182,6 +207,10 @@ $db-min-inline-size: var(
|
|
|
182
207
|
$variant: "critical";
|
|
183
208
|
}
|
|
184
209
|
|
|
210
|
+
@if $selector == textarea {
|
|
211
|
+
--db-textarea-read-only: var(--db-#{$variant}-bg-basic-level-1-default);
|
|
212
|
+
}
|
|
213
|
+
|
|
185
214
|
@if $selector != textarea {
|
|
186
215
|
@extend %db-#{$variant}-variables;
|
|
187
216
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
@@ -220,6 +249,12 @@ $db-min-inline-size: var(
|
|
|
220
249
|
caret-color: var(--db-#{$variant}-on-bg-basic-emphasis-100-default);
|
|
221
250
|
}
|
|
222
251
|
|
|
252
|
+
@if list.index($valid-read-only-form-fields, $selector) {
|
|
253
|
+
#{$selector} {
|
|
254
|
+
border-color: var(--db-#{$variant}-on-bg-basic-emphasis-70-default);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
223
258
|
@include get-validity-message($key);
|
|
224
259
|
}
|
|
225
260
|
|
|
@@ -501,6 +536,58 @@ $input-valid-types:
|
|
|
501
536
|
}
|
|
502
537
|
}
|
|
503
538
|
|
|
539
|
+
@mixin get-validity-color-checkbox($key: "valid") {
|
|
540
|
+
$variant: successful;
|
|
541
|
+
|
|
542
|
+
@if $key != "valid" {
|
|
543
|
+
$variant: critical;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
--db-check-element-border-color: var(
|
|
547
|
+
--db-#{$variant}-on-bg-basic-emphasis-70-default
|
|
548
|
+
);
|
|
549
|
+
--db-adaptive-on-bg-basic-emphasis-100-default: var(
|
|
550
|
+
--db-#{$variant}-on-bg-basic-emphasis-80-default
|
|
551
|
+
);
|
|
552
|
+
--db-adaptive-on-bg-basic-emphasis-100-hovered: var(
|
|
553
|
+
--db-#{$variant}-on-bg-basic-emphasis-80-hovered
|
|
554
|
+
);
|
|
555
|
+
--db-adaptive-on-bg-basic-emphasis-100-pressed: var(
|
|
556
|
+
--db-#{$variant}-on-bg-basic-emphasis-80-pressed
|
|
557
|
+
);
|
|
558
|
+
--db-adaptive-on-bg-inverted-default: var(
|
|
559
|
+
--db-#{$variant}-on-bg-inverted-default
|
|
560
|
+
);
|
|
561
|
+
|
|
562
|
+
@include get-validity-message($key);
|
|
563
|
+
|
|
564
|
+
input {
|
|
565
|
+
&:not(:checked) {
|
|
566
|
+
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
567
|
+
--db-#{$variant}-bg-basic-transparent-full-default
|
|
568
|
+
);
|
|
569
|
+
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
570
|
+
--db-#{$variant}-bg-basic-transparent-full-hovered
|
|
571
|
+
);
|
|
572
|
+
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
573
|
+
--db-#{$variant}-bg-basic-transparent-full-pressed
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
&:checked {
|
|
578
|
+
--db-adaptive-bg-basic-transparent-full-default: var(
|
|
579
|
+
--db-#{$variant}-bg-inverted-contrast-low-default
|
|
580
|
+
);
|
|
581
|
+
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
582
|
+
--db-#{$variant}-bg-inverted-contrast-low-hovered
|
|
583
|
+
);
|
|
584
|
+
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
585
|
+
--db-#{$variant}-bg-inverted-contrast-low-pressed
|
|
586
|
+
);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
504
591
|
@mixin set-default-check-element() {
|
|
505
592
|
@extend %db-overwrite-font-size-md;
|
|
506
593
|
|