@db-ux/core-components 4.3.2 → 4.4.0-loading-567cd0c
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 +8 -0
- package/build/components/accordion-item/accordion-item.css +6 -0
- package/build/components/button/button.css +43 -0
- package/build/components/button/button.scss +4 -0
- package/build/components/custom-select/custom-select.css +9 -9
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +2 -21
- package/build/components/custom-select-dropdown/custom-select-dropdown.scss +2 -10
- package/build/components/drawer/drawer.css +6 -0
- package/build/components/link/link.css +6 -0
- package/build/components/loading-indicator/loading-indicator.css +591 -0
- package/build/components/loading-indicator/loading-indicator.scss +515 -0
- package/build/components/navigation-item/navigation-item.css +6 -0
- package/build/components/notification/notification.css +6 -0
- package/build/components/popover/popover.css +6 -0
- package/build/components/select/select.css +2 -1
- package/build/components/select/select.scss +4 -1
- package/build/components/tab-list/tab-list.css +6 -0
- package/build/components/tag/tag.css +6 -0
- package/build/components/textarea/textarea.css +6 -0
- package/build/components/tooltip/tooltip.css +6 -0
- package/build/styles/absolute.css +18 -4
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +17 -3
- package/build/styles/index.scss +2 -0
- package/build/styles/internal/_custom-elements.scss +2 -0
- package/build/styles/internal/_form-components.scss +7 -1
- package/build/styles/internal/_loading.scss +76 -0
- package/build/styles/relative.css +18 -4
- package/build/styles/rollup.css +18 -4
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +1 -0
- package/build/styles/webpack.css +18 -4
- package/package.json +4 -4
package/build/styles/index.scss
CHANGED
|
@@ -35,3 +35,5 @@
|
|
|
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/loading-indicator/loading-indicator";
|
|
39
|
+
|
|
@@ -160,8 +160,14 @@ $db-min-inline-size: var(
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
$focus-within-selector: $selector;
|
|
164
|
+
|
|
165
|
+
@if $selector == summary {
|
|
166
|
+
$focus-within-selector: "";
|
|
167
|
+
}
|
|
168
|
+
|
|
163
169
|
&:has(
|
|
164
|
-
#{$selector}:focus-within,
|
|
170
|
+
#{$focus-within-selector}:focus-within,
|
|
165
171
|
#{$selector}:is(input, textarea):not(:placeholder-shown),
|
|
166
172
|
> select option:checked:not(.placeholder),
|
|
167
173
|
input[type="checkbox"]:checked,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
3
|
+
|
|
4
|
+
%hide-label-and-progress-text {
|
|
5
|
+
div {
|
|
6
|
+
label,
|
|
7
|
+
span {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
%interactive-element-with-loading {
|
|
14
|
+
&:has(.db-loading-indicator:not([data-overlay="true"])) {
|
|
15
|
+
// Hide icon inside button when loading indicator is present
|
|
16
|
+
&[data-icon],
|
|
17
|
+
&[data-icon-before] {
|
|
18
|
+
&::before {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-icon-after] {
|
|
24
|
+
&::after {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:has(.db-loading-indicator[data-state="inactive"]) {
|
|
31
|
+
.db-loading-indicator {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.db-loading-indicator {
|
|
37
|
+
&:not([data-state="successful"], [data-state="critical"]) {
|
|
38
|
+
--db-loading-indicator-segment-color: currentcolor;
|
|
39
|
+
--db-loading-indicator-segment-color-overlay: currentcolor;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:not([data-overlay]),
|
|
43
|
+
&:not([data-overlay="true"]) {
|
|
44
|
+
// Hide label and progress inside a button
|
|
45
|
+
@extend %hide-label-and-progress-text;
|
|
46
|
+
|
|
47
|
+
margin-inline-end: variables.$db-spacing-fixed-xs; // same margin like a icon
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-overlay="true"] {
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
|
|
53
|
+
&::before {
|
|
54
|
+
z-index: 1;
|
|
55
|
+
background-color: var(
|
|
56
|
+
--db-loading-indicator-button-overlay-color,
|
|
57
|
+
inherit
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&::after {
|
|
62
|
+
z-index: 0;
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 0;
|
|
66
|
+
border-radius: inherit;
|
|
67
|
+
background-color: colors.$db-adaptive-bg-basic-level-1-default;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
svg,
|
|
71
|
+
div {
|
|
72
|
+
z-index: 2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|