@db-ux/core-components 2.4.4 → 3.0.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.
- package/README.md +1 -1
- package/build/components/accordion/accordion.css +2 -0
- package/build/components/accordion-item/accordion-item.css +12 -10
- package/build/components/badge/badge.css +2 -0
- package/build/components/brand/brand.css +2 -0
- package/build/components/button/button.css +43 -31
- package/build/components/button/button.scss +16 -19
- package/build/components/card/card.css +54 -60
- package/build/components/card/card.scss +37 -33
- package/build/components/checkbox/checkbox.css +46 -44
- package/build/components/checkbox/checkbox.scss +11 -11
- package/build/components/custom-select/custom-select.css +49 -32
- package/build/components/custom-select/custom-select.scss +5 -7
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +14 -6
- 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 +8 -6
- package/build/components/custom-select-list-item/custom-select-list-item.scss +6 -6
- package/build/components/divider/divider.css +2 -0
- package/build/components/drawer/drawer.css +2 -0
- package/build/components/header/header.css +10 -8
- package/build/components/icon/icon.css +2 -0
- package/build/components/infotext/infotext.css +8 -6
- package/build/components/input/input.css +55 -41
- package/build/components/input/input.scss +6 -6
- package/build/components/link/link.css +24 -26
- package/build/components/link/link.scss +7 -14
- package/build/components/navigation/navigation.css +4 -2
- package/build/components/navigation/navigation.scss +2 -2
- package/build/components/navigation-item/navigation-item.css +25 -23
- package/build/components/navigation-item/navigation-item.scss +3 -3
- package/build/components/notification/notification.css +56 -22
- package/build/components/page/page.css +2 -0
- package/build/components/popover/popover.css +3 -2
- package/build/components/radio/radio.css +28 -26
- package/build/components/radio/radio.scss +6 -6
- package/build/components/section/section.css +3 -1
- package/build/components/select/select.css +35 -21
- package/build/components/select/select.scss +1 -1
- package/build/components/stack/stack-web-component.css +2 -0
- package/build/components/stack/stack.css +2 -0
- package/build/components/switch/switch.css +42 -28
- package/build/components/switch/switch.scss +3 -3
- package/build/components/tab-item/tab-item.css +6 -4
- package/build/components/tab-item/tab-item.scss +3 -3
- package/build/components/tab-list/tab-list.css +6 -4
- package/build/components/tab-panel/tab-panel.css +2 -0
- package/build/components/tabs/tabs.css +2 -0
- package/build/components/tag/tag.css +72 -40
- package/build/components/tag/tag.scss +1 -1
- package/build/components/textarea/textarea.css +48 -22
- package/build/components/textarea/textarea.scss +1 -1
- package/build/components/tooltip/tooltip.css +3 -2
- package/build/styles/absolute.css +238 -154
- package/build/styles/index.css +141 -105
- package/build/styles/internal/_form-components.scss +12 -6
- package/build/styles/internal/_icon-passing.scss +1 -1
- package/build/styles/internal/_link-components.scss +5 -2
- package/build/styles/internal/_popover-component.scss +1 -4
- package/build/styles/internal/_scrollbar.scss +4 -4
- package/build/styles/internal/_select-components.scss +1 -1
- package/build/styles/relative.css +238 -154
- package/build/styles/rollup.css +238 -154
- package/build/styles/webpack.css +238 -154
- package/package.json +24 -24
|
@@ -195,11 +195,17 @@ $db-min-inline-size: var(
|
|
|
195
195
|
--db-adaptive-bg-basic-transparent-semi-default: var(
|
|
196
196
|
--db-#{$variant}-bg-basic-transparent-semi-default
|
|
197
197
|
);
|
|
198
|
-
--db-adaptive-bg-basic-transparent-hovered: var(
|
|
199
|
-
--db-#{$variant}-bg-basic-transparent-hovered
|
|
198
|
+
--db-adaptive-bg-basic-transparent-full-hovered: var(
|
|
199
|
+
--db-#{$variant}-bg-basic-transparent-full-hovered
|
|
200
200
|
);
|
|
201
|
-
--db-adaptive-bg-basic-transparent-pressed: var(
|
|
202
|
-
--db-#{$variant}-bg-basic-transparent-pressed
|
|
201
|
+
--db-adaptive-bg-basic-transparent-full-pressed: var(
|
|
202
|
+
--db-#{$variant}-bg-basic-transparent-full-pressed
|
|
203
|
+
);
|
|
204
|
+
--db-adaptive-bg-basic-transparent-semi-hovered: var(
|
|
205
|
+
--db-#{$variant}-bg-basic-transparent-semi-hovered
|
|
206
|
+
);
|
|
207
|
+
--db-adaptive-bg-basic-transparent-semi-pressed: var(
|
|
208
|
+
--db-#{$variant}-bg-basic-transparent-semi-pressed
|
|
203
209
|
);
|
|
204
210
|
--db-adaptive-on-bg-basic-emphasis-100-default: var(
|
|
205
211
|
--db-#{$variant}-on-bg-basic-emphasis-100-default
|
|
@@ -363,7 +369,7 @@ $input-valid-types:
|
|
|
363
369
|
);
|
|
364
370
|
|
|
365
371
|
@include helpers.hover {
|
|
366
|
-
background-color: colors.$db-adaptive-bg-basic-transparent-hovered;
|
|
372
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-semi-hovered;
|
|
367
373
|
}
|
|
368
374
|
|
|
369
375
|
&:is(input, textarea) {
|
|
@@ -485,7 +491,7 @@ $input-valid-types:
|
|
|
485
491
|
input {
|
|
486
492
|
cursor: helpers.$cursor-pointer;
|
|
487
493
|
background-color: var(
|
|
488
|
-
--db-adaptive-bg-basic-transparent-#{$variant}
|
|
494
|
+
--db-adaptive-bg-basic-transparent-full-#{$variant}
|
|
489
495
|
);
|
|
490
496
|
@content;
|
|
491
497
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use "@db-ux/core-foundations/build/styles/icons";
|
|
3
3
|
|
|
4
4
|
@mixin icon-passing($inline-start: variables.$db-spacing-fixed-sm) {
|
|
5
|
-
&[data-icon]:not([data-
|
|
5
|
+
&[data-icon]:not([data-show-icon="false"]) {
|
|
6
6
|
&::before {
|
|
7
7
|
position: absolute;
|
|
8
8
|
inset-block-start: calc(50% - 0.5em);
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
%db-link-height {
|
|
8
8
|
display: inline-block;
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
&:not([data-wrap="true"]) {
|
|
11
|
+
block-size: variables.$db-sizing-sm;
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
%db-link-default-color {
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
text-decoration-thickness: helpers.px-to-rem($pxValue: 1);
|
|
43
46
|
text-decoration-line: underline;
|
|
44
47
|
|
|
45
|
-
&:not([data-variant="inline"]) {
|
|
48
|
+
&:not([data-wrap="true"], [data-variant="inline"]) {
|
|
46
49
|
white-space: nowrap;
|
|
47
50
|
}
|
|
48
51
|
|
|
@@ -225,8 +225,6 @@ $popover-gap-inset: calc(-1 * #{$popover-gap-size});
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
$max-mobile-size: calc(100vw - 2 * #{variables.$db-spacing-fixed-md});
|
|
229
|
-
|
|
230
228
|
%default-popover {
|
|
231
229
|
@extend %default-card;
|
|
232
230
|
@extend %popover-placement;
|
|
@@ -238,13 +236,12 @@ $max-mobile-size: calc(100vw - 2 * #{variables.$db-spacing-fixed-md});
|
|
|
238
236
|
z-index: 1337;
|
|
239
237
|
// revert this if popover is included in button
|
|
240
238
|
white-space: normal;
|
|
241
|
-
max-inline-size:
|
|
239
|
+
max-inline-size: variables.$db-container-xs;
|
|
242
240
|
block-size: fit-content;
|
|
243
241
|
inline-size: fit-content;
|
|
244
242
|
|
|
245
243
|
&[data-width="fixed"] {
|
|
246
244
|
inline-size: max-content;
|
|
247
|
-
max-inline-size: min(#{variables.$db-sizing-3xl}, #{$max-mobile-size});
|
|
248
245
|
text-align: initial;
|
|
249
246
|
}
|
|
250
247
|
}
|
|
@@ -29,7 +29,7 @@ $scrollbar-width: helpers.px-to-rem(8);
|
|
|
29
29
|
&:is(:hover, :focus) {
|
|
30
30
|
&::-webkit-scrollbar-track,
|
|
31
31
|
&::-webkit-scrollbar-button:single-button {
|
|
32
|
-
background-color: colors.$db-adaptive-bg-basic-transparent-hovered;
|
|
32
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-hovered;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -45,7 +45,7 @@ $scrollbar-width: helpers.px-to-rem(8);
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&::-webkit-scrollbar-thumb {
|
|
48
|
-
background-color: colors.$db-adaptive-bg-basic-transparent-pressed;
|
|
48
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-pressed;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/* Buttons */
|
|
@@ -57,11 +57,11 @@ $scrollbar-width: helpers.px-to-rem(8);
|
|
|
57
57
|
block-size: form-components.$floating-label-size-calc;
|
|
58
58
|
|
|
59
59
|
&:is(:hover, :focus) {
|
|
60
|
-
background-color: colors.$db-adaptive-bg-basic-transparent-hovered;
|
|
60
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-hovered;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&:active {
|
|
64
|
-
background-color: colors.$db-adaptive-bg-basic-transparent-pressed;
|
|
64
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-pressed;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|