@db-ux/core-components 4.14.0 → 5.0.0
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 +28 -0
- package/build/components/accordion-item/accordion-item.css +0 -1
- package/build/components/brand/brand.css +0 -1
- package/build/components/brand/brand.scss +0 -1
- package/build/components/button/button.css +4 -9
- package/build/components/checkbox/checkbox.css +0 -3
- package/build/components/checkbox/checkbox.scss +0 -2
- package/build/components/custom-button/custom-button.css +8 -13
- package/build/components/custom-button/custom-button.scss +2 -3
- package/build/components/custom-select/custom-select.css +0 -1
- package/build/components/custom-select-list-item/custom-select-list-item.css +6 -2
- package/build/components/custom-select-list-item/custom-select-list-item.scss +8 -3
- package/build/components/drawer/drawer.css +94 -166
- package/build/components/drawer/drawer.scss +160 -176
- package/build/components/drawer-footer/drawer-footer.css +34 -0
- package/build/components/drawer-footer/drawer-footer.scss +11 -0
- package/build/components/drawer-header/drawer-header.css +38 -0
- package/build/components/drawer-header/drawer-header.scss +17 -0
- package/build/components/header/header.css +50 -40
- package/build/components/header/header.scss +35 -21
- package/build/components/icon/icon.css +0 -6
- package/build/components/infotext/infotext.css +0 -4
- package/build/components/infotext/infotext.scss +0 -2
- package/build/components/input/input.css +0 -5
- package/build/components/link/link.css +5 -5
- package/build/components/link/link.scss +8 -3
- package/build/components/navigation/navigation.css +1 -2
- package/build/components/navigation/navigation.scss +2 -2
- package/build/components/navigation-item/navigation-item.css +15 -27
- package/build/components/navigation-item/navigation-item.scss +17 -21
- package/build/components/notification/notification.css +0 -1
- package/build/components/notification/notification.scss +0 -2
- package/build/components/select/select.css +0 -1
- package/build/components/switch/switch.css +0 -3
- package/build/components/switch/switch.scss +0 -1
- package/build/components/tab-item/tab-item.css +120 -98
- package/build/components/tab-item/tab-item.scss +89 -90
- package/build/components/tab-list/tab-list.css +38 -36
- package/build/components/tab-list/tab-list.scss +11 -9
- package/build/components/tab-panel/tab-panel.css +30 -4
- package/build/components/tab-panel/tab-panel.scss +60 -2
- package/build/components/table/table.css +0 -4
- package/build/components/table-row/table-row.css +0 -4
- package/build/components/table-row/table-row.scss +0 -5
- package/build/components/tabs/tabs.css +152 -263
- package/build/components/tabs/tabs.scss +243 -198
- package/build/components/tag/tag.css +2 -21
- package/build/components/tag/tag.scss +5 -7
- package/build/styles/absolute.css +11 -11
- package/build/styles/bundle.css +11 -11
- package/build/styles/index.css +10 -10
- package/build/styles/index.scss +3 -1
- package/build/styles/internal/_button-components.scss +7 -4
- package/build/styles/internal/_component.scss +4 -0
- package/build/styles/internal/_custom-elements.scss +3 -2
- package/build/styles/internal/_icon-passing.scss +9 -10
- package/build/styles/relative.css +11 -11
- package/build/styles/rollup.css +11 -11
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/webpack.css +11 -11
- package/package.json +5 -5
package/build/styles/index.scss
CHANGED
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
@forward "../components/navigation/navigation";
|
|
25
25
|
@forward "../components/popover/popover";
|
|
26
26
|
@forward "../components/tooltip/tooltip";
|
|
27
|
+
@forward "../components/drawer-header/drawer-header";
|
|
28
|
+
@forward "../components/drawer-footer/drawer-footer";
|
|
27
29
|
@forward "../components/tab-item/tab-item";
|
|
28
30
|
@forward "../components/tab-list/tab-list";
|
|
29
|
-
@forward "../components/tabs/tabs";
|
|
30
31
|
@forward "../components/tab-panel/tab-panel";
|
|
32
|
+
@forward "../components/tabs/tabs";
|
|
31
33
|
@forward "../components/switch/switch";
|
|
32
34
|
@forward "../components/stack/stack";
|
|
33
35
|
@forward "../components/custom-select/custom-select";
|
|
@@ -76,6 +76,12 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
&:not([data-no-text="true"]) {
|
|
80
|
+
#{$selector} {
|
|
81
|
+
gap: variables.$db-spacing-fixed-xs;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
79
85
|
&[data-wrap="false"] {
|
|
80
86
|
#{$selector} {
|
|
81
87
|
white-space: nowrap;
|
|
@@ -92,10 +98,7 @@
|
|
|
92
98
|
&:not([data-no-text="true"]) {
|
|
93
99
|
// stylelint-disable-next-line db-ux/use-spacings
|
|
94
100
|
padding: 1px variables.$db-spacing-fixed-sm;
|
|
95
|
-
|
|
96
|
-
&::before {
|
|
97
|
-
margin-inline-end: variables.$db-spacing-fixed-2xs;
|
|
98
|
-
}
|
|
101
|
+
gap: variables.$db-spacing-fixed-2xs;
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
// Square icon only buttons
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
$min-mobile-header-height: calc(
|
|
7
7
|
#{variables.$db-sizing-md} + 2 * #{variables.$db-spacing-fixed-xs}
|
|
8
8
|
);
|
|
9
|
+
$drawer-content-padding-inline: max(
|
|
10
|
+
#{variables.$db-spacing-fixed-sm},
|
|
11
|
+
max(env(safe-area-inset-left), env(safe-area-inset-right))
|
|
12
|
+
);
|
|
9
13
|
$component-border: variables.$db-border-width-3xs solid
|
|
10
14
|
colors.$db-adaptive-on-bg-basic-emphasis-60-default;
|
|
11
15
|
|
|
@@ -8,5 +8,6 @@ $custom-elements: //hygen-insert
|
|
|
8
8
|
db-tab-bar, db-tooltip, db-popover, db-textarea, db-navigation,
|
|
9
9
|
db-accordion-item, db-accordion, db-badge, db-navigation-item, db-tag,
|
|
10
10
|
db-radio, db-select, db-notification, db-brand, db-button, db-card,
|
|
11
|
-
db-checkbox, db-divider, db-drawer, db-
|
|
12
|
-
db-input, db-link, db-page, db-section,
|
|
11
|
+
db-checkbox, db-divider, db-drawer, db-drawer-footer, db-drawer-header,
|
|
12
|
+
db-header, db-icon, db-infotext, db-input, db-link, db-page, db-section,
|
|
13
|
+
db-tab;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
-
@use "@db-ux/core-foundations/build/styles/icons";
|
|
3
2
|
|
|
4
3
|
$interactive-button-selectors: "label,button,a";
|
|
5
4
|
|
|
6
5
|
@mixin icon-passing(
|
|
7
6
|
$inline-start: variables.$db-spacing-fixed-sm,
|
|
8
|
-
$
|
|
7
|
+
$gap: variables.$db-spacing-fixed-xs
|
|
9
8
|
) {
|
|
10
9
|
&[data-icon-leading]:not([data-show-icon-leading="false"]),
|
|
11
10
|
&[data-icon]:not([data-show-icon="false"]) {
|
|
@@ -13,7 +12,7 @@ $interactive-button-selectors: "label,button,a";
|
|
|
13
12
|
position: absolute;
|
|
14
13
|
inset-block-start: var(
|
|
15
14
|
--db-icon-passing-inset-block-start,
|
|
16
|
-
|
|
15
|
+
calc(50% - 0.5em)
|
|
17
16
|
);
|
|
18
17
|
inset-inline-start: var(
|
|
19
18
|
--db-icon-passing-inset-inline-start,
|
|
@@ -28,10 +27,7 @@ $interactive-button-selectors: "label,button,a";
|
|
|
28
27
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
29
28
|
padding-inline-start: var(
|
|
30
29
|
--db-icon-passing-padding-inline-start,
|
|
31
|
-
calc(
|
|
32
|
-
#{$inline-start} + #{icons.$default-icon-margin-end} +
|
|
33
|
-
var(--db-icon-font-size)
|
|
34
|
-
)
|
|
30
|
+
calc(#{$inline-start} + #{$gap} + var(--db-icon-font-size, 1lh))
|
|
35
31
|
);
|
|
36
32
|
}
|
|
37
33
|
}
|
|
@@ -41,7 +37,10 @@ $interactive-button-selectors: "label,button,a";
|
|
|
41
37
|
&[data-icon-trailing]:not([data-show-icon-trailing="false"]) {
|
|
42
38
|
&::after {
|
|
43
39
|
position: absolute;
|
|
44
|
-
inset-block-start:
|
|
40
|
+
inset-block-start: var(
|
|
41
|
+
--db-icon-passing-inset-block-start,
|
|
42
|
+
calc(50% - 0.5em)
|
|
43
|
+
);
|
|
45
44
|
inset-inline-end: $inline-end;
|
|
46
45
|
pointer-events: none;
|
|
47
46
|
z-index: 1;
|
|
@@ -50,8 +49,8 @@ $interactive-button-selectors: "label,button,a";
|
|
|
50
49
|
> :is(#{$interactive-button-selectors}),
|
|
51
50
|
> * > :is(#{$interactive-button-selectors}) {
|
|
52
51
|
padding-inline-end: calc(
|
|
53
|
-
#{$inline-end} + #{
|
|
54
|
-
var(--db-icon-font-size)
|
|
52
|
+
#{$inline-end} + #{variables.$db-spacing-fixed-xs} +
|
|
53
|
+
var(--db-icon-font-size, 1lh)
|
|
55
54
|
);
|
|
56
55
|
}
|
|
57
56
|
}
|