@db-ux/core-components 4.7.0-tabs-34782eb → 4.7.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/CHANGELOG.md +6 -0
- package/build/components/custom-select/custom-select.css +6 -6
- package/build/components/drawer/drawer.css +6 -6
- package/build/components/drawer/drawer.scss +8 -2
- package/build/components/navigation-item/navigation-item.css +6 -18
- package/build/components/navigation-item/navigation-item.scss +12 -9
- package/build/components/tab-item/tab-item.css +165 -133
- package/build/components/tab-item/tab-item.scss +103 -105
- package/build/components/tab-list/tab-list.css +34 -36
- package/build/components/tab-list/tab-list.scss +9 -11
- package/build/components/tab-panel/tab-panel.css +2 -1
- package/build/components/tab-panel/tab-panel.scss +5 -2
- package/build/components/tabs/tabs.css +239 -224
- package/build/components/tabs/tabs.scss +234 -214
- package/build/styles/absolute.css +3 -3
- package/build/styles/bundle.css +3 -3
- package/build/styles/dialog-init.css +1 -1
- package/build/styles/dialog-init.scss +1 -1
- package/build/styles/index.css +3 -3
- package/build/styles/relative.css +3 -3
- package/build/styles/rollup.css +3 -3
- package/build/styles/webpack.css +3 -3
- package/package.json +2 -2
|
@@ -1,140 +1,138 @@
|
|
|
1
1
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
2
|
@use "@db-ux/core-foundations/build/styles/colors";
|
|
3
|
-
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
4
3
|
@use "@db-ux/core-foundations/build/styles/icons";
|
|
5
|
-
@use "@db-ux/core-foundations/build/styles/
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
5
|
+
@use "../../styles/internal/component";
|
|
6
6
|
@use "../../styles/internal/db-puls";
|
|
7
|
+
@use "../../styles/internal/form-components";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
$with-icon-padding-calc: calc(
|
|
10
|
+
#{variables.$db-spacing-fixed-xs} + #{variables.$db-spacing-fixed-sm} +
|
|
11
|
+
#{form-components.$font-size-height}
|
|
12
|
+
);
|
|
13
13
|
|
|
14
14
|
.db-tab-item {
|
|
15
15
|
position: relative;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
justify-content: center;
|
|
21
|
-
white-space: nowrap;
|
|
22
|
-
border: 0;
|
|
16
|
+
|
|
17
|
+
@include helpers.display(inline-flex);
|
|
18
|
+
|
|
19
|
+
list-style-type: "";
|
|
23
20
|
border-radius: variables.$db-border-radius-sm;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
font: inherit;
|
|
26
|
-
color: inherit;
|
|
27
|
-
flex-shrink: 0;
|
|
28
|
-
z-index: 2;
|
|
29
|
-
max-inline-size: variables.$db-sizing-2xl;
|
|
30
|
-
|
|
31
|
-
@media screen and (forced-colors: active) {
|
|
32
|
-
// Windows High Contrast mode forces transparent borders to become visible,
|
|
33
|
-
// creating boundaries for the button when backgrounds are stripped.
|
|
34
|
-
border: variables.$db-border-width-xs solid transparent;
|
|
35
|
-
}
|
|
36
21
|
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
&:has(input:disabled) {
|
|
23
|
+
opacity: variables.$db-opacity-md;
|
|
39
24
|
}
|
|
40
25
|
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
label {
|
|
27
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
28
|
+
padding: variables.$db-spacing-fixed-xs;
|
|
29
|
+
align-items: center;
|
|
43
30
|
|
|
44
|
-
@include helpers.display(block);
|
|
31
|
+
@include helpers.display(inline-block);
|
|
45
32
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
font-size: 0;
|
|
52
|
-
line-height: 0;
|
|
53
|
-
padding: 0;
|
|
54
|
-
margin: 0;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
visibility: hidden;
|
|
57
|
-
}
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
border: 0;
|
|
35
|
+
border-radius: variables.$db-border-radius-sm;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
58
38
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
39
|
+
@include helpers.hover {
|
|
40
|
+
&:has(:not(input:disabled)) {
|
|
41
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-hovered;
|
|
42
|
+
}
|
|
62
43
|
|
|
63
|
-
|
|
64
|
-
|
|
44
|
+
&:has(input:disabled) {
|
|
45
|
+
cursor: initial;
|
|
65
46
|
}
|
|
66
47
|
}
|
|
67
|
-
}
|
|
68
48
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
@include helpers.hover {
|
|
50
|
+
&:has(:not(input:disabled)) {
|
|
51
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-hovered;
|
|
52
|
+
}
|
|
73
53
|
|
|
74
|
-
|
|
75
|
-
|
|
54
|
+
&:has(input:disabled) {
|
|
55
|
+
cursor: initial;
|
|
56
|
+
}
|
|
76
57
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
[data-orientation="vertical"] & .db-tab-label {
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
text-overflow: ellipsis;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@extend %db-puls;
|
|
86
|
-
@include helpers.display(flex);
|
|
87
|
-
|
|
88
|
-
[data-density="functional"] & {
|
|
89
|
-
padding: variables.$db-spacing-fixed-2xs;
|
|
90
58
|
|
|
91
|
-
|
|
92
|
-
|
|
59
|
+
&:has(input:checked) {
|
|
60
|
+
font-weight: 700;
|
|
61
|
+
}
|
|
93
62
|
|
|
94
|
-
|
|
95
|
-
|
|
63
|
+
&[data-icon] {
|
|
64
|
+
padding-inline-start: $with-icon-padding-calc;
|
|
96
65
|
|
|
97
|
-
|
|
98
|
-
|
|
66
|
+
&::before {
|
|
67
|
+
position: absolute;
|
|
68
|
+
transform: translateY(-50%);
|
|
69
|
+
inset-block-start: 50%;
|
|
70
|
+
inset-inline-start: calc(
|
|
71
|
+
0% + #{variables.$db-spacing-fixed-xs}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
99
75
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
block-size: variables.$db-border-width-xs;
|
|
76
|
+
&[data-icon-trailing] {
|
|
77
|
+
padding-inline-end: $with-icon-padding-calc;
|
|
103
78
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
inline-
|
|
109
|
-
|
|
79
|
+
&::after {
|
|
80
|
+
position: absolute;
|
|
81
|
+
transform: translateY(-50%);
|
|
82
|
+
inset-block-start: 50%;
|
|
83
|
+
inset-inline-end: calc(0% + #{variables.$db-spacing-fixed-xs});
|
|
84
|
+
}
|
|
110
85
|
}
|
|
111
86
|
|
|
112
|
-
[data-
|
|
113
|
-
|
|
114
|
-
block-size: 0;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
87
|
+
&:is([data-no-text], [data-no-text="true"]) {
|
|
88
|
+
@include icons.is-icon-text-replace;
|
|
117
89
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
90
|
+
padding: 0;
|
|
91
|
+
inline-size: calc(
|
|
92
|
+
#{$with-icon-padding-calc} - #{variables.$db-spacing-fixed-2xs}
|
|
93
|
+
);
|
|
94
|
+
block-size: calc(
|
|
95
|
+
#{form-components.$font-size-height} +
|
|
96
|
+
#{variables.$db-spacing-fixed-xs}
|
|
97
|
+
);
|
|
122
98
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
99
|
+
&::before {
|
|
100
|
+
margin-inline-end: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
126
103
|
}
|
|
127
104
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
105
|
+
input {
|
|
106
|
+
position: absolute;
|
|
107
|
+
appearance: none;
|
|
108
|
+
inline-size: 100%;
|
|
109
|
+
margin-inline-end: initial;
|
|
110
|
+
inset: 0;
|
|
111
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
112
|
+
border-radius: variables.$db-border-radius-sm;
|
|
113
|
+
z-index: -1;
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
focus must be set on input:
|
|
117
|
+
- parent label tag may use before AND after for displaying icons
|
|
118
|
+
- placed on li.db-tab-item focus would get cut off partially by by overflow hidden (orientation vertical)
|
|
119
|
+
*/
|
|
120
|
+
&:focus-visible {
|
|
121
|
+
&:is(input[type="radio"]) {
|
|
122
|
+
outline: none;
|
|
123
|
+
box-shadow: none;
|
|
124
|
+
}
|
|
132
125
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
126
|
+
&::before {
|
|
127
|
+
@extend %focus-placeholder;
|
|
128
|
+
|
|
129
|
+
content: "";
|
|
130
|
+
position: absolute;
|
|
131
|
+
inset: 0;
|
|
132
|
+
border-radius: variables.$db-border-radius-sm;
|
|
133
|
+
z-index: 10;
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
139
137
|
}
|
|
140
138
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
1
2
|
.db-visually-hidden,
|
|
2
3
|
[data-visually-hidden=true] {
|
|
3
4
|
clip: rect(0, 0, 0, 0) !important;
|
|
@@ -17,15 +18,7 @@
|
|
|
17
18
|
pointer-events: none !important;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
.db-tab-list {
|
|
22
|
-
font: var(--db-type-body-md);
|
|
23
|
-
/* Those variables are only for components to calculate heights and change icons */
|
|
24
|
-
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
25
|
-
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.db-tab-list::-webkit-scrollbar, .db-tab-list::-webkit-scrollbar-corner {
|
|
21
|
+
.db-tab-list > ul::-webkit-scrollbar, .db-tab-list > ul::-webkit-scrollbar-corner {
|
|
29
22
|
transition: outline var(--db-transition-duration-extra-fast), border-color var(--db-transition-straight-emotional), background-color var(--db-transition-straight-emotional);
|
|
30
23
|
}
|
|
31
24
|
|
|
@@ -46,79 +39,86 @@
|
|
|
46
39
|
transform: rotate(1turn);
|
|
47
40
|
}
|
|
48
41
|
}
|
|
42
|
+
.db-tab-list {
|
|
43
|
+
font: var(--db-type-body-md);
|
|
44
|
+
/* Those variables are only for components to calculate heights and change icons */
|
|
45
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
46
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
49
|
@supports (field-sizing: content) {
|
|
50
|
-
[data-field-sizing=content]
|
|
50
|
+
.db-tab-list > ul[data-field-sizing=content]:is([data-hide-resizer=true], [data-resize=none]) {
|
|
51
51
|
/* We don't show a scrollbar if we use field-sizing: content and no resizer is available */
|
|
52
52
|
scrollbar-width: none;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
.db-tab-list::-webkit-scrollbar {
|
|
55
|
+
.db-tab-list > ul::-webkit-scrollbar {
|
|
56
56
|
z-index: 3;
|
|
57
57
|
inline-size: 0.5rem;
|
|
58
58
|
block-size: 0.5rem;
|
|
59
59
|
background-color: var(--db-adaptive-bg-basic-level-1-default);
|
|
60
60
|
border-start-end-radius: var(--db-border-radius-xs);
|
|
61
61
|
}
|
|
62
|
-
.db-tab-list:is(:hover, :focus)::-webkit-scrollbar-track, .db-tab-list:is(:hover, :focus)::-webkit-scrollbar-button:single-button {
|
|
62
|
+
.db-tab-list > ul:is(:hover, :focus)::-webkit-scrollbar-track, .db-tab-list > ul:is(:hover, :focus)::-webkit-scrollbar-button:single-button {
|
|
63
63
|
background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
|
|
64
64
|
}
|
|
65
|
-
.db-tab-list:read-only::-webkit-scrollbar-track, .db-tab-list:read-only::-webkit-scrollbar-button:single-button {
|
|
65
|
+
.db-tab-list > ul:read-only::-webkit-scrollbar-track, .db-tab-list > ul:read-only::-webkit-scrollbar-button:single-button {
|
|
66
66
|
background-color: var(--db-adaptive-bg-basic-level-1-default);
|
|
67
67
|
}
|
|
68
|
-
.db-tab-list::-webkit-scrollbar-track {
|
|
68
|
+
.db-tab-list > ul::-webkit-scrollbar-track {
|
|
69
69
|
background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
|
|
70
70
|
}
|
|
71
|
-
.db-tab-list::-webkit-scrollbar-thumb {
|
|
71
|
+
.db-tab-list > ul::-webkit-scrollbar-thumb {
|
|
72
72
|
background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
|
|
73
73
|
}
|
|
74
|
-
.db-tab-list {
|
|
74
|
+
.db-tab-list > ul {
|
|
75
75
|
/* Buttons */
|
|
76
76
|
}
|
|
77
|
-
.db-tab-list::-webkit-scrollbar-button:single-button {
|
|
77
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button {
|
|
78
78
|
background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
|
|
79
79
|
background-size: 0.5rem;
|
|
80
80
|
background-repeat: no-repeat;
|
|
81
81
|
background-position: center;
|
|
82
82
|
block-size: calc(var(--db-spacing-fixed-3xs) + var(--db-spacing-fixed-2xs) + var(--db-base-body-icon-font-size-2xs));
|
|
83
83
|
}
|
|
84
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:is(:hover, :focus) {
|
|
84
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:is(:hover, :focus) {
|
|
85
85
|
background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
|
|
86
86
|
}
|
|
87
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:active {
|
|
87
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:active {
|
|
88
88
|
background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
|
|
89
89
|
}
|
|
90
|
-
.db-tab-list {
|
|
90
|
+
.db-tab-list > ul {
|
|
91
91
|
/* Up */
|
|
92
92
|
}
|
|
93
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
93
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:vertical:decrement {
|
|
94
94
|
border-start-end-radius: var(--db-border-radius-xs);
|
|
95
95
|
background-image: var(--db-scrollbar-button-vertical-decrement);
|
|
96
96
|
}
|
|
97
|
-
.db-tab-list {
|
|
97
|
+
.db-tab-list > ul {
|
|
98
98
|
/* Down */
|
|
99
99
|
}
|
|
100
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:vertical:increment {
|
|
100
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:vertical:increment {
|
|
101
101
|
background-image: var(--db-scrollbar-button-vertical-increment);
|
|
102
102
|
}
|
|
103
|
-
.db-tab-list {
|
|
103
|
+
.db-tab-list > ul {
|
|
104
104
|
/* Left */
|
|
105
105
|
}
|
|
106
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:horizontal:decrement {
|
|
106
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:horizontal:decrement {
|
|
107
107
|
background-image: var(--db-scrollbar-button-horizontal-decrement);
|
|
108
108
|
}
|
|
109
|
-
.db-tab-list {
|
|
109
|
+
.db-tab-list > ul {
|
|
110
110
|
/* Right */
|
|
111
111
|
}
|
|
112
|
-
.db-tab-list::-webkit-scrollbar-button:single-button:horizontal:increment {
|
|
112
|
+
.db-tab-list > ul::-webkit-scrollbar-button:single-button:horizontal:increment {
|
|
113
113
|
background-image: var(--db-scrollbar-button-horizontal-increment);
|
|
114
114
|
}
|
|
115
|
-
[data-variant=floating]
|
|
115
|
+
.db-tab-list > ul[data-variant=floating]::-webkit-resizer {
|
|
116
116
|
background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
|
|
117
117
|
}
|
|
118
|
-
[data-variant=floating]
|
|
118
|
+
.db-tab-list > ul[data-variant=floating]::-webkit-scrollbar-corner {
|
|
119
119
|
background-color: var(--db-adaptive-bg-basic-level-1-default);
|
|
120
120
|
}
|
|
121
|
-
.db-tab-list::-webkit-resizer {
|
|
121
|
+
.db-tab-list > ul::-webkit-resizer {
|
|
122
122
|
background-color: var(--db-adaptive-bg-basic-transparent-full-default);
|
|
123
123
|
background-size: 0.5rem;
|
|
124
124
|
background-repeat: no-repeat;
|
|
@@ -126,19 +126,17 @@
|
|
|
126
126
|
background-image: var(--db-textarea-resizer-image);
|
|
127
127
|
border-end-end-radius: var(--db-border-radius-xs);
|
|
128
128
|
}
|
|
129
|
-
.db-tab-list::-webkit-scrollbar-corner {
|
|
129
|
+
.db-tab-list > ul::-webkit-scrollbar-corner {
|
|
130
130
|
border-end-end-radius: var(--db-border-radius-xs);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.db-tab-list {
|
|
134
134
|
position: relative;
|
|
135
|
+
}
|
|
136
|
+
.db-tab-list > ul {
|
|
135
137
|
display: flex;
|
|
136
|
-
gap: var(--db-spacing-fixed-
|
|
138
|
+
gap: var(--db-spacing-fixed-sm);
|
|
137
139
|
scroll-behavior: smooth;
|
|
138
140
|
padding: 0;
|
|
139
141
|
margin: 0;
|
|
140
142
|
}
|
|
141
|
-
[data-orientation=vertical] .db-tab-list {
|
|
142
|
-
flex-direction: column;
|
|
143
|
-
align-items: flex-start;
|
|
144
|
-
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
-
@use "@db-ux/core-foundations/build/styles/fonts";
|
|
3
2
|
@use "../../styles/internal/scrollbar";
|
|
4
3
|
|
|
5
4
|
.db-tab-list {
|
|
5
|
+
@extend %db-overwrite-font-size-md;
|
|
6
|
+
|
|
6
7
|
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: variables.$db-spacing-fixed-2xs;
|
|
9
|
-
scroll-behavior: smooth;
|
|
10
|
-
padding: 0;
|
|
11
|
-
margin: 0;
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
> ul {
|
|
10
|
+
@extend %scrollbar;
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
display: flex;
|
|
13
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
14
|
+
scroll-behavior: smooth;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0;
|
|
19
17
|
}
|
|
20
18
|
}
|