@duskmoon-dev/core 1.19.6 → 1.19.8
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 +8 -6
- package/dist/components/bottom-navigation.css +127 -24
- package/dist/components/breadcrumbs.css +252 -0
- package/dist/components/cascader.css +28 -26
- package/dist/components/index.css +731 -234
- package/dist/components/link.css +43 -0
- package/dist/components/megamenu.css +298 -0
- package/dist/components/menu.css +175 -0
- package/dist/components/navbar.css +283 -0
- package/dist/components/navigation.css +513 -149
- package/dist/components/nested-menu.css +19 -4
- package/dist/components/pagination.css +216 -0
- package/dist/components/stepper.css +33 -19
- package/dist/components/tabs.css +101 -0
- package/dist/components/tree-select.css +12 -13
- package/dist/esm/components/bottom-navigation.js +127 -24
- package/dist/esm/components/breadcrumbs.d.ts +5 -0
- package/dist/esm/components/breadcrumbs.js +261 -0
- package/dist/esm/components/cascader.js +28 -26
- package/dist/esm/components/link.d.ts +5 -0
- package/dist/esm/components/link.js +52 -0
- package/dist/esm/components/megamenu.d.ts +5 -0
- package/dist/esm/components/megamenu.js +307 -0
- package/dist/esm/components/menu.d.ts +5 -0
- package/dist/esm/components/menu.js +184 -0
- package/dist/esm/components/navbar.d.ts +5 -0
- package/dist/esm/components/navbar.js +292 -0
- package/dist/esm/components/navigation.js +513 -149
- package/dist/esm/components/nested-menu.js +19 -4
- package/dist/esm/components/pagination.d.ts +5 -0
- package/dist/esm/components/pagination.js +225 -0
- package/dist/esm/components/stepper.js +33 -19
- package/dist/esm/components/tabs.d.ts +5 -0
- package/dist/esm/components/tabs.js +110 -0
- package/dist/esm/components/tree-select.js +12 -13
- package/dist/index.css +731 -234
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +1 -1
- package/dist/standalone/duskmoonui.css +733 -236
- package/dist/standalone/duskmoonui.js +11 -8
- package/dist/standalone/duskmoonui.mjs +11 -8
- package/package.json +43 -1
|
@@ -88,8 +88,12 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.nested-menu li.disabled > a,
|
|
91
|
-
.nested-menu li.disabled > button
|
|
91
|
+
.nested-menu li.disabled > button,
|
|
92
|
+
.nested-menu li > button:disabled,
|
|
93
|
+
.nested-menu li > a[aria-disabled="true"] {
|
|
92
94
|
color: var(--color-on-surface-variant);
|
|
95
|
+
opacity: 0.5;
|
|
96
|
+
cursor: not-allowed;
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
/* ============================================
|
|
@@ -139,7 +143,7 @@
|
|
|
139
143
|
.nested-menu summary::after {
|
|
140
144
|
content: "";
|
|
141
145
|
display: inline-block;
|
|
142
|
-
margin-
|
|
146
|
+
margin-inline-start: auto;
|
|
143
147
|
width: 0.375rem;
|
|
144
148
|
height: 0.375rem;
|
|
145
149
|
border-right: 1.5px solid currentColor;
|
|
@@ -154,11 +158,22 @@
|
|
|
154
158
|
transform: rotate(45deg);
|
|
155
159
|
}
|
|
156
160
|
|
|
161
|
+
.nested-menu:dir(rtl) summary::after {
|
|
162
|
+
border-right: 0;
|
|
163
|
+
border-left: 1.5px solid currentColor;
|
|
164
|
+
transform: rotate(135deg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nested-menu:dir(rtl) details[open] > summary::after {
|
|
168
|
+
transform: rotate(45deg);
|
|
169
|
+
}
|
|
170
|
+
|
|
157
171
|
/* Nested <ul> inside details — auto-indentation */
|
|
158
172
|
.nested-menu details > ul {
|
|
159
173
|
list-style: none;
|
|
160
174
|
margin: 0;
|
|
161
|
-
padding: 0.125rem
|
|
175
|
+
padding-block: 0.125rem;
|
|
176
|
+
padding-inline: 1rem 0;
|
|
162
177
|
display: flex;
|
|
163
178
|
flex-direction: column;
|
|
164
179
|
gap: 0.125rem;
|
|
@@ -248,7 +263,7 @@
|
|
|
248
263
|
}
|
|
249
264
|
|
|
250
265
|
.nested-menu-compact details > ul {
|
|
251
|
-
padding: 0 0
|
|
266
|
+
padding-inline: 0.75rem 0;
|
|
252
267
|
}
|
|
253
268
|
|
|
254
269
|
/* ============================================
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination Component Styles
|
|
3
|
+
* DuskMoonUI - Material Design 3 inspired pagination
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.pagination {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 0.25rem;
|
|
11
|
+
list-style: none;
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pagination-item,
|
|
17
|
+
.pagination-prev,
|
|
18
|
+
.pagination-next,
|
|
19
|
+
.pagination li > a,
|
|
20
|
+
.pagination li > button {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: 0.25rem;
|
|
25
|
+
min-width: 2.5rem;
|
|
26
|
+
height: 2.5rem;
|
|
27
|
+
padding: 0 0.75rem;
|
|
28
|
+
font-size: 0.875rem;
|
|
29
|
+
color: var(--color-on-surface);
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
border: 1px solid var(--color-outline);
|
|
32
|
+
border-radius: var(--radius-sm);
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
transition: all 150ms ease-in-out;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.pagination-item:hover,
|
|
39
|
+
.pagination-prev:hover,
|
|
40
|
+
.pagination-next:hover,
|
|
41
|
+
.pagination li > a:hover,
|
|
42
|
+
.pagination li > button:hover {
|
|
43
|
+
background-color: var(--color-surface-container);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.pagination-item-active,
|
|
47
|
+
.pagination-item-active-primary,
|
|
48
|
+
.pagination-item[aria-current="page"],
|
|
49
|
+
.pagination li > a.active,
|
|
50
|
+
.pagination li > button.active,
|
|
51
|
+
.pagination li > a[aria-current="page"],
|
|
52
|
+
.pagination li > button[aria-current="page"] {
|
|
53
|
+
background-color: var(--color-primary);
|
|
54
|
+
color: var(--color-primary-content);
|
|
55
|
+
border-color: var(--color-primary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pagination-item-active-secondary {
|
|
59
|
+
background-color: var(--color-secondary);
|
|
60
|
+
color: var(--color-secondary-content);
|
|
61
|
+
border-color: var(--color-secondary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.pagination-item-active-tertiary {
|
|
65
|
+
background-color: var(--color-tertiary);
|
|
66
|
+
color: var(--color-tertiary-content);
|
|
67
|
+
border-color: var(--color-tertiary);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pagination-item-active:hover,
|
|
71
|
+
.pagination-item-active-primary:hover,
|
|
72
|
+
.pagination-item[aria-current="page"]:hover,
|
|
73
|
+
.pagination li > a[aria-current="page"]:hover,
|
|
74
|
+
.pagination li > button[aria-current="page"]:hover {
|
|
75
|
+
background-color: color-mix(in oklch, var(--color-primary), black 10%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pagination-item:focus-visible,
|
|
79
|
+
.pagination-prev:focus-visible,
|
|
80
|
+
.pagination-next:focus-visible,
|
|
81
|
+
.pagination li > a:focus-visible,
|
|
82
|
+
.pagination li > button:focus-visible {
|
|
83
|
+
outline: none;
|
|
84
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pagination-item:disabled,
|
|
88
|
+
.pagination-item-disabled,
|
|
89
|
+
.pagination-prev:disabled,
|
|
90
|
+
.pagination-next:disabled,
|
|
91
|
+
.pagination li > a:disabled,
|
|
92
|
+
.pagination li > button:disabled,
|
|
93
|
+
.pagination a[aria-disabled="true"] {
|
|
94
|
+
opacity: 0.5;
|
|
95
|
+
cursor: not-allowed;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.pagination-ellipsis {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
min-width: 2.5rem;
|
|
103
|
+
height: 2.5rem;
|
|
104
|
+
color: var(--color-on-surface-variant);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.pagination-ellipsis::before {
|
|
108
|
+
content: '…';
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.pagination-info {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: row;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 0.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pagination-info-text {
|
|
119
|
+
font-size: 0.875rem;
|
|
120
|
+
color: var(--color-on-surface-variant);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.pagination-input {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
gap: 0.5rem;
|
|
127
|
+
font-size: 0.875rem;
|
|
128
|
+
color: var(--color-on-surface-variant);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.pagination-input input {
|
|
132
|
+
width: 3.5rem;
|
|
133
|
+
padding: 0.375rem 0.5rem;
|
|
134
|
+
font-size: 0.875rem;
|
|
135
|
+
text-align: center;
|
|
136
|
+
color: var(--color-on-surface);
|
|
137
|
+
background-color: var(--color-surface);
|
|
138
|
+
border: 1px solid var(--color-outline);
|
|
139
|
+
border-radius: var(--radius-xs);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.pagination-input input:focus {
|
|
143
|
+
outline: none;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.pagination-input input:focus-visible {
|
|
147
|
+
border-color: var(--color-primary);
|
|
148
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.pagination-outlined .pagination-item,
|
|
152
|
+
.pagination-outlined .pagination-prev,
|
|
153
|
+
.pagination-outlined .pagination-next {
|
|
154
|
+
border: 1px solid var(--color-outline);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.pagination-tonal .pagination-item-active,
|
|
158
|
+
.pagination-tonal .pagination-item-active-primary {
|
|
159
|
+
background-color: var(--color-primary-container);
|
|
160
|
+
color: var(--color-on-primary-container);
|
|
161
|
+
border-color: var(--color-primary-container);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.pagination-sm .pagination-item,
|
|
165
|
+
.pagination-sm .pagination-prev,
|
|
166
|
+
.pagination-sm .pagination-next {
|
|
167
|
+
min-width: 2rem;
|
|
168
|
+
height: 2rem;
|
|
169
|
+
padding: 0 0.5rem;
|
|
170
|
+
font-size: 0.75rem;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pagination-lg .pagination-item,
|
|
174
|
+
.pagination-lg .pagination-prev,
|
|
175
|
+
.pagination-lg .pagination-next {
|
|
176
|
+
min-width: 3rem;
|
|
177
|
+
height: 3rem;
|
|
178
|
+
padding: 0 1rem;
|
|
179
|
+
font-size: 1rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.pagination-compact {
|
|
183
|
+
gap: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.pagination-compact .pagination-item,
|
|
187
|
+
.pagination-compact .pagination-prev,
|
|
188
|
+
.pagination-compact .pagination-next {
|
|
189
|
+
border-radius: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.pagination-compact .pagination-item:first-child,
|
|
193
|
+
.pagination-compact .pagination-prev {
|
|
194
|
+
border-start-start-radius: var(--radius-sm);
|
|
195
|
+
border-end-start-radius: var(--radius-sm);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.pagination-compact .pagination-item:last-child,
|
|
199
|
+
.pagination-compact .pagination-next {
|
|
200
|
+
border-start-end-radius: var(--radius-sm);
|
|
201
|
+
border-end-end-radius: var(--radius-sm);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.pagination-responsive {
|
|
205
|
+
flex-wrap: wrap;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@media (prefers-reduced-motion: reduce) {
|
|
210
|
+
.pagination-item,
|
|
211
|
+
.pagination-prev,
|
|
212
|
+
.pagination-next {
|
|
213
|
+
transition: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
.stepper-step-connector {
|
|
25
25
|
position: absolute;
|
|
26
26
|
top: 1.25rem;
|
|
27
|
-
|
|
27
|
+
inset-inline-start: calc(50% + 1.25rem);
|
|
28
28
|
width: calc(100% - 2.5rem);
|
|
29
29
|
height: 2px;
|
|
30
30
|
background-color: var(--color-outline-variant);
|
|
@@ -49,10 +49,13 @@
|
|
|
49
49
|
background: none;
|
|
50
50
|
border: none;
|
|
51
51
|
padding: 0;
|
|
52
|
+
color: inherit;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.stepper-step-button:focus-visible {
|
|
55
|
-
outline:
|
|
56
|
+
outline: 2px solid currentColor;
|
|
57
|
+
outline-offset: 0.25rem;
|
|
58
|
+
border-radius: var(--radius-sm);
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
.stepper-step-button:focus-visible .stepper-step-icon {
|
|
@@ -76,7 +79,8 @@
|
|
|
76
79
|
transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
.stepper-step-active .stepper-step-icon
|
|
82
|
+
.stepper-step-active .stepper-step-icon,
|
|
83
|
+
.stepper-step[aria-current="step"] .stepper-step-icon {
|
|
80
84
|
background-color: var(--color-primary);
|
|
81
85
|
border-color: var(--color-primary);
|
|
82
86
|
color: var(--color-primary-content);
|
|
@@ -107,7 +111,8 @@
|
|
|
107
111
|
text-align: center;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
.stepper-step-active .stepper-step-label
|
|
114
|
+
.stepper-step-active .stepper-step-label,
|
|
115
|
+
.stepper-step[aria-current="step"] .stepper-step-label {
|
|
111
116
|
color: var(--color-primary);
|
|
112
117
|
}
|
|
113
118
|
|
|
@@ -118,14 +123,14 @@
|
|
|
118
123
|
.stepper-step-description {
|
|
119
124
|
font-size: 0.75rem;
|
|
120
125
|
color: var(--color-on-surface-variant);
|
|
121
|
-
margin-
|
|
126
|
+
margin-block-start: 0.125rem;
|
|
122
127
|
text-align: center;
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
/* Step Content (for vertical stepper) */
|
|
126
131
|
.stepper-step-content {
|
|
127
|
-
margin-
|
|
128
|
-
padding:
|
|
132
|
+
margin-block-start: 1.5rem;
|
|
133
|
+
padding-inline: 1rem;
|
|
129
134
|
width: 100%;
|
|
130
135
|
}
|
|
131
136
|
|
|
@@ -135,7 +140,7 @@
|
|
|
135
140
|
display: block;
|
|
136
141
|
font-size: 0.6875rem;
|
|
137
142
|
color: var(--color-on-surface-variant);
|
|
138
|
-
margin-
|
|
143
|
+
margin-block-start: 0.125rem;
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
/* Vertical Stepper */
|
|
@@ -152,7 +157,7 @@
|
|
|
152
157
|
|
|
153
158
|
.stepper-vertical .stepper-step-connector {
|
|
154
159
|
top: 2.5rem;
|
|
155
|
-
|
|
160
|
+
inset-inline-start: 1.25rem;
|
|
156
161
|
width: 2px;
|
|
157
162
|
height: calc(100% - 2.5rem);
|
|
158
163
|
transform: translateX(-50%);
|
|
@@ -165,18 +170,19 @@
|
|
|
165
170
|
|
|
166
171
|
.stepper-vertical .stepper-step-label,
|
|
167
172
|
.stepper-vertical .stepper-step-description {
|
|
168
|
-
text-align:
|
|
169
|
-
margin-
|
|
173
|
+
text-align: start;
|
|
174
|
+
margin-inline-start: 1rem;
|
|
170
175
|
}
|
|
171
176
|
|
|
172
177
|
.stepper-vertical .stepper-step-content {
|
|
173
|
-
margin-
|
|
174
|
-
margin-
|
|
175
|
-
padding: 1rem
|
|
178
|
+
margin-block-start: 0;
|
|
179
|
+
margin-inline-start: 3.5rem;
|
|
180
|
+
padding-block: 1rem 1.5rem;
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
/* Color Variants */
|
|
179
184
|
.stepper-secondary .stepper-step-active .stepper-step-icon,
|
|
185
|
+
.stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
|
|
180
186
|
.stepper-secondary .stepper-step-completed .stepper-step-icon {
|
|
181
187
|
background-color: var(--color-secondary);
|
|
182
188
|
border-color: var(--color-secondary);
|
|
@@ -187,11 +193,13 @@
|
|
|
187
193
|
background-color: var(--color-secondary);
|
|
188
194
|
}
|
|
189
195
|
|
|
190
|
-
.stepper-secondary .stepper-step-active .stepper-step-label
|
|
196
|
+
.stepper-secondary .stepper-step-active .stepper-step-label,
|
|
197
|
+
.stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
|
|
191
198
|
color: var(--color-secondary);
|
|
192
199
|
}
|
|
193
200
|
|
|
194
201
|
.stepper-tertiary .stepper-step-active .stepper-step-icon,
|
|
202
|
+
.stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
|
|
195
203
|
.stepper-tertiary .stepper-step-completed .stepper-step-icon {
|
|
196
204
|
background-color: var(--color-tertiary);
|
|
197
205
|
border-color: var(--color-tertiary);
|
|
@@ -202,7 +210,8 @@
|
|
|
202
210
|
background-color: var(--color-tertiary);
|
|
203
211
|
}
|
|
204
212
|
|
|
205
|
-
.stepper-tertiary .stepper-step-active .stepper-step-label
|
|
213
|
+
.stepper-tertiary .stepper-step-active .stepper-step-label,
|
|
214
|
+
.stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
|
|
206
215
|
color: var(--color-tertiary);
|
|
207
216
|
}
|
|
208
217
|
|
|
@@ -215,7 +224,7 @@
|
|
|
215
224
|
|
|
216
225
|
.stepper-sm .stepper-step-connector {
|
|
217
226
|
top: 1rem;
|
|
218
|
-
|
|
227
|
+
inset-inline-start: calc(50% + 1rem);
|
|
219
228
|
width: calc(100% - 2rem);
|
|
220
229
|
}
|
|
221
230
|
|
|
@@ -236,14 +245,14 @@
|
|
|
236
245
|
|
|
237
246
|
.stepper-lg .stepper-step-connector {
|
|
238
247
|
top: 1.5rem;
|
|
239
|
-
|
|
248
|
+
inset-inline-start: calc(50% + 1.5rem);
|
|
240
249
|
width: calc(100% - 3rem);
|
|
241
250
|
}
|
|
242
251
|
|
|
243
252
|
/* Alternative Label Positioning */
|
|
244
253
|
.stepper-alt-labels .stepper-step-connector {
|
|
245
254
|
top: 1.25rem;
|
|
246
|
-
|
|
255
|
+
inset-inline-start: calc(50% + 2rem);
|
|
247
256
|
width: calc(100% - 4rem);
|
|
248
257
|
}
|
|
249
258
|
|
|
@@ -298,6 +307,11 @@
|
|
|
298
307
|
opacity: 0.7;
|
|
299
308
|
}
|
|
300
309
|
|
|
310
|
+
.stepper-step-button:disabled {
|
|
311
|
+
cursor: not-allowed;
|
|
312
|
+
opacity: 0.7;
|
|
313
|
+
}
|
|
314
|
+
|
|
301
315
|
/* Icon Stepper */
|
|
302
316
|
.stepper-icons .stepper-step-icon {
|
|
303
317
|
font-size: 1.25rem;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/** DuskMoonUI tabs and tab-panel presentation. Interaction remains application-owned. */
|
|
2
|
+
@layer components {
|
|
3
|
+
.tabs {
|
|
4
|
+
display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.25rem;
|
|
5
|
+
border-block-end: 1px solid var(--color-outline); color: var(--color-on-surface);
|
|
6
|
+
}
|
|
7
|
+
.tab {
|
|
8
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
|
|
9
|
+
min-width: 0; padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
|
|
10
|
+
font-weight: 500; line-height: 1.25rem; color: var(--color-on-surface-variant);
|
|
11
|
+
text-decoration: none; white-space: nowrap; background-color: transparent;
|
|
12
|
+
border: none; border-block-end: 2px solid transparent; cursor: pointer;
|
|
13
|
+
transition: background-color 150ms ease-in-out, color 150ms ease-in-out,
|
|
14
|
+
border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
|
|
15
|
+
position: relative; margin-block-end: -1px;
|
|
16
|
+
}
|
|
17
|
+
.tab:hover:not(:disabled, [aria-disabled="true"]) {
|
|
18
|
+
color: var(--color-on-surface); background-color: var(--color-surface-container);
|
|
19
|
+
}
|
|
20
|
+
.tab:focus-visible {
|
|
21
|
+
outline: 2px solid currentColor; outline-offset: -2px;
|
|
22
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent); z-index: 1;
|
|
23
|
+
}
|
|
24
|
+
.tab:disabled,
|
|
25
|
+
.tab[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
|
|
26
|
+
.tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
27
|
+
color: var(--color-primary); border-block-end-color: var(--color-primary);
|
|
28
|
+
}
|
|
29
|
+
.tab.tab-active-secondary { color: var(--color-secondary); border-block-end-color: var(--color-secondary); }
|
|
30
|
+
.tab.tab-active-tertiary { color: var(--color-tertiary); border-block-end-color: var(--color-tertiary); }
|
|
31
|
+
|
|
32
|
+
.tabs-pill,
|
|
33
|
+
.tabs-tonal,
|
|
34
|
+
.tabs-boxed { padding: 0.25rem; border: none; border-radius: var(--radius-lg); }
|
|
35
|
+
.tabs-pill .tab,
|
|
36
|
+
.tabs-tonal .tab,
|
|
37
|
+
.tabs-boxed .tab { margin-block-end: 0; border: none; border-radius: var(--radius-lg); }
|
|
38
|
+
.tabs-pill .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
39
|
+
color: var(--color-primary-content); background-color: var(--color-primary);
|
|
40
|
+
}
|
|
41
|
+
.tabs-pill .tab.tab-active-secondary { color: var(--color-secondary-content); background-color: var(--color-secondary); }
|
|
42
|
+
.tabs-pill .tab.tab-active-tertiary { color: var(--color-tertiary-content); background-color: var(--color-tertiary); }
|
|
43
|
+
.tabs-tonal .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
|
|
44
|
+
color: var(--color-on-primary-container); background-color: var(--color-primary-container);
|
|
45
|
+
}
|
|
46
|
+
.tabs-tonal .tab.tab-active-secondary { color: var(--color-on-secondary-container); background-color: var(--color-secondary-container); }
|
|
47
|
+
.tabs-tonal .tab.tab-active-tertiary { color: var(--color-on-tertiary-container); background-color: var(--color-tertiary-container); }
|
|
48
|
+
.tabs-boxed { background-color: var(--color-surface-container); border-radius: var(--radius-sm); }
|
|
49
|
+
.tabs-boxed .tab { border-radius: var(--radius-xs); }
|
|
50
|
+
.tabs-boxed .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
51
|
+
color: var(--color-on-surface); background-color: var(--color-surface); box-shadow: var(--shadow-xs);
|
|
52
|
+
}
|
|
53
|
+
.tabs-lifted { border: none; }
|
|
54
|
+
.tabs-lifted .tab {
|
|
55
|
+
border: 1px solid transparent; border-block-end: none;
|
|
56
|
+
border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-block-end: -1px;
|
|
57
|
+
}
|
|
58
|
+
.tabs-lifted .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
|
|
59
|
+
background-color: var(--color-surface); border-color: var(--color-outline);
|
|
60
|
+
border-block-end-color: var(--color-surface);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tabs-vertical {
|
|
64
|
+
flex-direction: column; flex-wrap: nowrap; align-items: stretch;
|
|
65
|
+
border-block-end: none; border-inline-end: 1px solid var(--color-outline);
|
|
66
|
+
}
|
|
67
|
+
.tabs-vertical .tab {
|
|
68
|
+
justify-content: flex-start; width: 100%; margin: 0;
|
|
69
|
+
border-block-end: none; border-inline-end: 2px solid transparent;
|
|
70
|
+
}
|
|
71
|
+
.tabs-vertical .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) { border-inline-end-color: var(--color-primary); }
|
|
72
|
+
.tabs-vertical .tab.tab-active-secondary { border-inline-end-color: var(--color-secondary); }
|
|
73
|
+
.tabs-vertical .tab.tab-active-tertiary { border-inline-end-color: var(--color-tertiary); }
|
|
74
|
+
.tabs-scrollable {
|
|
75
|
+
flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden;
|
|
76
|
+
overscroll-behavior-inline: contain; scrollbar-width: thin;
|
|
77
|
+
}
|
|
78
|
+
.tabs-full .tab { flex: 1 1 0; }
|
|
79
|
+
.tabs-center { justify-content: center; }
|
|
80
|
+
.tabs-end { justify-content: flex-end; }
|
|
81
|
+
|
|
82
|
+
.tabs-sm .tab,
|
|
83
|
+
.tab-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
|
|
84
|
+
.tabs-md .tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
|
|
85
|
+
.tabs-lg .tab,
|
|
86
|
+
.tab-lg { padding: 1rem 1.5rem; font-size: 1rem; }
|
|
87
|
+
.tab-xs { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
|
|
88
|
+
.tab-icon { flex: 0 0 auto; font-size: 1.25em; }
|
|
89
|
+
.tab-icon-only { aspect-ratio: 1; padding-inline: 0.75rem; }
|
|
90
|
+
.tab-badge {
|
|
91
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
92
|
+
min-width: 1.25rem; min-height: 1.25rem; padding-inline: 0.375rem;
|
|
93
|
+
font-size: 0.6875rem; font-weight: 600; color: var(--color-error-content);
|
|
94
|
+
background-color: var(--color-error); border-radius: var(--radius-full);
|
|
95
|
+
}
|
|
96
|
+
.tab-panel { display: none; padding: 1rem; color: var(--color-on-surface); }
|
|
97
|
+
.tab-panel:is(.tab-panel-show, [data-active="true"]):not([hidden]) { display: block; }
|
|
98
|
+
.tab-panel[hidden] { display: none !important; }
|
|
99
|
+
|
|
100
|
+
@media (prefers-reduced-motion: reduce) { .tab { scroll-behavior: auto; transition: none; } }
|
|
101
|
+
}
|
|
@@ -145,8 +145,10 @@
|
|
|
145
145
|
/* Popover API Support */
|
|
146
146
|
.tree-select-dropdown[popover] {
|
|
147
147
|
/* Reset browser defaults for proper positioning */
|
|
148
|
-
position:
|
|
149
|
-
inset:
|
|
148
|
+
position: fixed;
|
|
149
|
+
inset: auto 0.5rem 0.5rem auto;
|
|
150
|
+
max-inline-size: calc(100dvw - 1rem);
|
|
151
|
+
max-block-size: min(20rem, calc(100dvh - 1rem));
|
|
150
152
|
margin: 0;
|
|
151
153
|
border: 1px solid var(--color-outline-variant);
|
|
152
154
|
}
|
|
@@ -155,18 +157,15 @@
|
|
|
155
157
|
display: block;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
/*
|
|
159
|
-
@supports (
|
|
160
|
-
.tree-select {
|
|
161
|
-
anchor-name: --tree-select;
|
|
162
|
-
}
|
|
163
|
-
|
|
160
|
+
/* The popovertarget invoker is the implicit anchor for its own dropdown. */
|
|
161
|
+
@supports (position-area: block-end) {
|
|
164
162
|
.tree-select-dropdown[popover] {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
position-
|
|
163
|
+
inset: auto;
|
|
164
|
+
inline-size: anchor-size(width);
|
|
165
|
+
margin-block: 0.25rem;
|
|
166
|
+
margin-inline: 0;
|
|
167
|
+
position-area: block-end span-inline-end;
|
|
168
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
|