@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
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Theme switching is instant and uses pure CSS custom properties.
|
|
|
96
96
|
|
|
97
97
|
## Components
|
|
98
98
|
|
|
99
|
-
@duskmoon-dev/core includes **
|
|
99
|
+
@duskmoon-dev/core includes **50+ components** organized by category:
|
|
100
100
|
|
|
101
101
|
### Core Components (6)
|
|
102
102
|
|
|
@@ -106,7 +106,7 @@ Theme switching is instant and uses pure CSS custom properties.
|
|
|
106
106
|
| Card | `.card`, `.card-body`, `.card-title`, `.card-bordered` | Content containers with headers and actions |
|
|
107
107
|
| Input | `.input`, `.input-bordered`, `.input-primary` | Text inputs with sizes and states |
|
|
108
108
|
| Form | `.form-control`, `.label`, `.checkbox`, `.radio`, `.toggle`, `.select`, `.textarea` | Form elements and layouts |
|
|
109
|
-
| Navigation | `.navbar`, `.menu`, `.breadcrumbs`, `.tabs`, `.pagination`, `.dropdown` | Navigation patterns |
|
|
109
|
+
| Navigation | `.navbar`, `.megamenu`, `.menu`, `.link`, `.breadcrumbs`, `.tabs`, `.pagination`, `.dropdown` | Navigation patterns |
|
|
110
110
|
| Modal | `.modal`, `.modal-box`, `.modal-action` | Dialog overlays |
|
|
111
111
|
|
|
112
112
|
### Data Display (5)
|
|
@@ -149,13 +149,15 @@ Theme switching is instant and uses pure CSS custom properties.
|
|
|
149
149
|
| App Bar | `.appbar`, `.appbar-title`, `.appbar-nav`, `.appbar-actions` | Top app bars |
|
|
150
150
|
| Divider | `.divider`, `.divider-vertical`, `.divider-text` | Content separators |
|
|
151
151
|
|
|
152
|
-
### Navigation (
|
|
152
|
+
### Navigation (5)
|
|
153
153
|
|
|
154
154
|
| Component | Classes | Description |
|
|
155
155
|
|-----------|---------|-------------|
|
|
156
|
-
| Bottom Navigation | `.bottom-nav`, `.bottom-nav-item`, `.bottom-nav-indicator` | Mobile navigation |
|
|
156
|
+
| Bottom Navigation (Dock) | `.bottom-nav`, `.bottom-nav-item`, `.bottom-nav-indicator` | Mobile navigation |
|
|
157
157
|
| Drawer | `.drawer`, `.drawer-content`, `.drawer-nav-item` | Side navigation |
|
|
158
|
-
|
|
|
158
|
+
| Link | `.link`, `.link-hover`, `.link-primary`, `.link-neutral` | Native text links |
|
|
159
|
+
| Megamenu | `.megamenu`, `.megamenu-trigger`, `.megamenu-panel`, `.megamenu-grid` | Grouped site navigation |
|
|
160
|
+
| Stepper (Steps) | `.stepper`, `.stepper-step`, `.stepper-indicator` | Multi-step processes |
|
|
159
161
|
|
|
160
162
|
### Surfaces (4)
|
|
161
163
|
|
|
@@ -442,4 +444,4 @@ See [specs/004-oklch-color-system/quickstart.md](./specs/004-oklch-color-system/
|
|
|
442
444
|
|
|
443
445
|
MIT
|
|
444
446
|
|
|
445
|
-
<!-- release
|
|
447
|
+
<!-- release 35521434854 -->
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
/* Base Bottom Navigation */
|
|
8
8
|
.bottom-nav {
|
|
9
9
|
position: fixed;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
|
|
11
|
+
inset-block-end: 0;
|
|
12
|
+
inset-inline: 0;
|
|
13
13
|
z-index: 1000;
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: stretch;
|
|
16
16
|
justify-content: space-around;
|
|
17
17
|
min-height: 5rem;
|
|
18
|
-
padding-
|
|
18
|
+
padding-block-end: env(safe-area-inset-bottom, 0);
|
|
19
19
|
background-color: var(--color-surface);
|
|
20
20
|
box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
|
|
21
21
|
}
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
transition: color 150ms ease-in-out;
|
|
38
38
|
text-decoration: none;
|
|
39
39
|
gap: 0.25rem;
|
|
40
|
+
position: relative;
|
|
41
|
+
border-radius: var(--radius-md);
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.bottom-nav-item:hover {
|
|
@@ -44,7 +46,8 @@
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.bottom-nav-item:focus-visible {
|
|
47
|
-
outline:
|
|
49
|
+
outline: 2px solid currentColor;
|
|
50
|
+
outline-offset: -2px;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
.bottom-nav-item:focus-visible .bottom-nav-indicator {
|
|
@@ -53,10 +56,18 @@
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
/* Active State */
|
|
56
|
-
.bottom-nav-item.active
|
|
59
|
+
.bottom-nav-item.active,
|
|
60
|
+
.bottom-nav-item-active,
|
|
61
|
+
.bottom-nav-item-active-primary,
|
|
62
|
+
.bottom-nav-item[aria-current="page"] {
|
|
57
63
|
color: var(--color-on-surface);
|
|
58
64
|
}
|
|
59
65
|
|
|
66
|
+
.bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
|
|
67
|
+
color: var(--color-on-secondary-container);
|
|
68
|
+
background-color: var(--color-secondary-container);
|
|
69
|
+
}
|
|
70
|
+
|
|
60
71
|
/* Icon Container with Indicator */
|
|
61
72
|
.bottom-nav-indicator {
|
|
62
73
|
position: relative;
|
|
@@ -73,7 +84,10 @@
|
|
|
73
84
|
background-color: var(--color-surface-container);
|
|
74
85
|
}
|
|
75
86
|
|
|
76
|
-
.bottom-nav-item.active .bottom-nav-indicator
|
|
87
|
+
.bottom-nav-item.active .bottom-nav-indicator,
|
|
88
|
+
.bottom-nav-item-active .bottom-nav-indicator,
|
|
89
|
+
.bottom-nav-item-active-primary .bottom-nav-indicator,
|
|
90
|
+
.bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
|
|
77
91
|
background-color: var(--color-secondary-container);
|
|
78
92
|
}
|
|
79
93
|
|
|
@@ -96,7 +110,10 @@
|
|
|
96
110
|
max-width: 100%;
|
|
97
111
|
}
|
|
98
112
|
|
|
99
|
-
.bottom-nav-item.active .bottom-nav-label
|
|
113
|
+
.bottom-nav-item.active .bottom-nav-label,
|
|
114
|
+
.bottom-nav-item-active .bottom-nav-label,
|
|
115
|
+
.bottom-nav-item-active-primary .bottom-nav-label,
|
|
116
|
+
.bottom-nav-item[aria-current="page"] .bottom-nav-label {
|
|
100
117
|
font-weight: 600;
|
|
101
118
|
}
|
|
102
119
|
|
|
@@ -104,7 +121,7 @@
|
|
|
104
121
|
.bottom-nav-badge {
|
|
105
122
|
position: absolute;
|
|
106
123
|
top: 0;
|
|
107
|
-
|
|
124
|
+
inset-inline-end: 0.5rem;
|
|
108
125
|
min-width: 1rem;
|
|
109
126
|
height: 1rem;
|
|
110
127
|
padding: 0 0.25rem;
|
|
@@ -123,7 +140,7 @@
|
|
|
123
140
|
height: 0.5rem;
|
|
124
141
|
padding: 0;
|
|
125
142
|
top: 0.125rem;
|
|
126
|
-
|
|
143
|
+
inset-inline-end: 0.75rem;
|
|
127
144
|
}
|
|
128
145
|
|
|
129
146
|
/* Variants */
|
|
@@ -141,23 +158,96 @@
|
|
|
141
158
|
}
|
|
142
159
|
|
|
143
160
|
/* Color Variants */
|
|
144
|
-
.bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator
|
|
161
|
+
.bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
|
|
162
|
+
.bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
|
|
163
|
+
.bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
|
|
145
164
|
background-color: var(--color-primary-container);
|
|
146
165
|
}
|
|
147
166
|
|
|
148
|
-
.bottom-nav-
|
|
167
|
+
.bottom-nav-item-active-secondary {
|
|
168
|
+
color: var(--color-on-secondary-container);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.bottom-nav-item-active-secondary .bottom-nav-indicator {
|
|
172
|
+
background-color: var(--color-secondary-container);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.bottom-nav-item-active-tertiary {
|
|
176
|
+
color: var(--color-on-tertiary-container);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.bottom-nav-item-active-tertiary .bottom-nav-indicator {
|
|
180
|
+
background-color: var(--color-tertiary-container);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.bottom-nav-surface {
|
|
184
|
+
background-color: var(--color-surface);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.bottom-nav-surface-container-low {
|
|
188
|
+
background-color: var(--color-surface-container-low);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.bottom-nav-surface-container-high {
|
|
192
|
+
background-color: var(--color-surface-container-high);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.bottom-nav-transparent {
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.bottom-nav-borderless {
|
|
200
|
+
border-block-start: 0;
|
|
201
|
+
box-shadow: none;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.bottom-nav-compact {
|
|
205
|
+
min-height: 3.5rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.bottom-nav-item-disabled,
|
|
209
|
+
.bottom-nav-item:disabled,
|
|
210
|
+
.bottom-nav-item[aria-disabled="true"] {
|
|
211
|
+
opacity: 0.38;
|
|
212
|
+
cursor: not-allowed;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.bottom-nav-primary .bottom-nav-item.active,
|
|
216
|
+
.bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
|
|
217
|
+
.bottom-nav-primary .bottom-nav-item[aria-current="page"] {
|
|
149
218
|
color: var(--color-on-primary-container);
|
|
150
219
|
}
|
|
151
220
|
|
|
152
221
|
/* Hide Labels */
|
|
153
222
|
.bottom-nav-icons-only .bottom-nav-label {
|
|
154
|
-
|
|
223
|
+
position: absolute;
|
|
224
|
+
width: 1px;
|
|
225
|
+
height: 1px;
|
|
226
|
+
padding: 0;
|
|
227
|
+
margin: -1px;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
clip: rect(0, 0, 0, 0);
|
|
230
|
+
white-space: nowrap;
|
|
231
|
+
border: 0;
|
|
155
232
|
}
|
|
156
233
|
|
|
157
234
|
.bottom-nav-icons-only .bottom-nav-item {
|
|
158
235
|
padding: 1rem 0.25rem;
|
|
159
236
|
}
|
|
160
237
|
|
|
238
|
+
.bottom-nav-labels-only .bottom-nav-icon {
|
|
239
|
+
display: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.bottom-nav-labels-only .bottom-nav-item {
|
|
243
|
+
flex-direction: row;
|
|
244
|
+
min-width: auto;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.bottom-nav-labels-only .bottom-nav-label {
|
|
248
|
+
font-size: 0.875rem;
|
|
249
|
+
}
|
|
250
|
+
|
|
161
251
|
/* Show Labels Only on Active */
|
|
162
252
|
.bottom-nav-labels-active .bottom-nav-label {
|
|
163
253
|
opacity: 0;
|
|
@@ -166,7 +256,7 @@
|
|
|
166
256
|
transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
|
|
167
257
|
}
|
|
168
258
|
|
|
169
|
-
.bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
|
|
259
|
+
.bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
|
|
170
260
|
opacity: 1;
|
|
171
261
|
max-height: 1rem;
|
|
172
262
|
}
|
|
@@ -177,7 +267,16 @@
|
|
|
177
267
|
transition: flex 200ms ease-in-out;
|
|
178
268
|
}
|
|
179
269
|
|
|
180
|
-
.bottom-nav-shifting
|
|
270
|
+
/* Legacy spelling retained; prefer .bottom-nav-shifting. */
|
|
271
|
+
.bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
|
|
272
|
+
display: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
276
|
+
min-width: 6rem;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
181
280
|
flex: 1 1 6rem;
|
|
182
281
|
}
|
|
183
282
|
|
|
@@ -187,7 +286,7 @@
|
|
|
187
286
|
transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
|
|
188
287
|
}
|
|
189
288
|
|
|
190
|
-
.bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
|
|
289
|
+
.bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
|
|
191
290
|
opacity: 1;
|
|
192
291
|
transform: translateY(0);
|
|
193
292
|
}
|
|
@@ -195,9 +294,9 @@
|
|
|
195
294
|
/* Rail Style (Side Navigation) */
|
|
196
295
|
.nav-rail {
|
|
197
296
|
position: fixed;
|
|
198
|
-
left: 0;
|
|
199
|
-
|
|
200
|
-
|
|
297
|
+
left: 0; /* Physical fallback; logical inset below controls RTL placement. */
|
|
298
|
+
inset-inline-start: 0;
|
|
299
|
+
inset-block: 0;
|
|
201
300
|
z-index: 1000;
|
|
202
301
|
display: flex;
|
|
203
302
|
flex-direction: column;
|
|
@@ -205,7 +304,11 @@
|
|
|
205
304
|
width: 5rem;
|
|
206
305
|
padding: 1rem 0;
|
|
207
306
|
background-color: var(--color-surface);
|
|
208
|
-
border-
|
|
307
|
+
border-inline-end: 1px solid var(--color-outline-variant);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.nav-rail:dir(rtl) {
|
|
311
|
+
left: auto;
|
|
209
312
|
}
|
|
210
313
|
|
|
211
314
|
.nav-rail .bottom-nav-item {
|
|
@@ -223,13 +326,13 @@
|
|
|
223
326
|
@media (min-width: 768px) {
|
|
224
327
|
.bottom-nav-responsive {
|
|
225
328
|
position: relative;
|
|
226
|
-
|
|
329
|
+
inset-block-end: auto;
|
|
227
330
|
justify-content: flex-start;
|
|
228
331
|
gap: 0.5rem;
|
|
229
332
|
min-height: 3rem;
|
|
230
333
|
padding: 0 1rem;
|
|
231
334
|
box-shadow: none;
|
|
232
|
-
border-
|
|
335
|
+
border-block-end: 1px solid var(--color-outline-variant);
|
|
233
336
|
}
|
|
234
337
|
|
|
235
338
|
.bottom-nav-responsive .bottom-nav-item {
|
|
@@ -245,8 +348,8 @@
|
|
|
245
348
|
background-color: transparent !important;
|
|
246
349
|
}
|
|
247
350
|
|
|
248
|
-
.bottom-nav-responsive .bottom-nav-item.active {
|
|
249
|
-
border-
|
|
351
|
+
.bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
|
|
352
|
+
border-block-end: 2px solid var(--color-primary);
|
|
250
353
|
}
|
|
251
354
|
}
|
|
252
355
|
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breadcrumbs Component Styles
|
|
3
|
+
* DuskMoonUI - Material Design 3 inspired breadcrumb navigation
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.breadcrumbs {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
padding: 0.5rem 0;
|
|
13
|
+
list-style: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
font-size: 0.875rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.breadcrumbs li {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 0.5rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.breadcrumbs li::after {
|
|
25
|
+
content: '/';
|
|
26
|
+
color: var(--color-on-surface-variant);
|
|
27
|
+
opacity: 0.5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.breadcrumbs li:last-child::after {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.breadcrumbs li > a {
|
|
35
|
+
color: var(--color-primary);
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
transition: color 150ms ease-in-out;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.breadcrumbs li > a:hover {
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.breadcrumbs li:last-child {
|
|
45
|
+
color: var(--color-on-surface-variant);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.breadcrumb-item {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 0.375rem;
|
|
52
|
+
color: var(--color-on-surface-variant);
|
|
53
|
+
text-decoration: none;
|
|
54
|
+
transition: color 150ms ease-in-out;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.breadcrumb-item:hover {
|
|
58
|
+
color: var(--color-on-surface);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.breadcrumb-item-active {
|
|
62
|
+
color: var(--color-on-surface);
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.breadcrumb-link {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: 0.375rem;
|
|
71
|
+
color: var(--color-on-surface-variant);
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
transition: color 150ms ease-in-out;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.breadcrumb-link:hover {
|
|
78
|
+
color: var(--color-primary);
|
|
79
|
+
text-decoration: underline;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.breadcrumb-link:focus-visible {
|
|
83
|
+
outline: none;
|
|
84
|
+
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
85
|
+
border-radius: var(--radius-xs);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.breadcrumb-separator {
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
color: var(--color-on-surface-variant);
|
|
92
|
+
font-size: 0.875rem;
|
|
93
|
+
user-select: none;
|
|
94
|
+
opacity: 0.6;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.breadcrumb-separator::before {
|
|
98
|
+
content: "/";
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.breadcrumbs-slash .breadcrumb-separator::before {
|
|
102
|
+
content: "/";
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.breadcrumbs-chevron .breadcrumb-separator::before {
|
|
106
|
+
content: "›";
|
|
107
|
+
font-size: 1.125rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.breadcrumbs-dot .breadcrumb-separator::before {
|
|
111
|
+
content: "•";
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.breadcrumbs-arrow .breadcrumb-separator::before {
|
|
115
|
+
content: "→";
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.breadcrumbs-pipe .breadcrumb-separator::before {
|
|
119
|
+
content: "|";
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.breadcrumb-icon {
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
width: 1rem;
|
|
127
|
+
height: 1rem;
|
|
128
|
+
flex-shrink: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.breadcrumb-icon svg {
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.breadcrumb-home {
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
color: var(--color-on-surface-variant);
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
transition: color 150ms ease-in-out;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.breadcrumb-home:hover {
|
|
146
|
+
color: var(--color-primary);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.breadcrumb-home-icon {
|
|
150
|
+
width: 1.125rem;
|
|
151
|
+
height: 1.125rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.breadcrumb-ellipsis {
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
padding: 0.25rem 0.5rem;
|
|
159
|
+
color: var(--color-on-surface-variant);
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
border: none;
|
|
162
|
+
border-radius: var(--radius-xs);
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
transition: background-color 150ms ease-in-out;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.breadcrumb-ellipsis::before {
|
|
168
|
+
content: "...";
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.breadcrumb-ellipsis:hover {
|
|
172
|
+
background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.breadcrumbs-primary .breadcrumb-link:hover,
|
|
176
|
+
.breadcrumbs-primary .breadcrumb-item-active {
|
|
177
|
+
color: var(--color-primary);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.breadcrumbs-secondary .breadcrumb-link:hover,
|
|
181
|
+
.breadcrumbs-secondary .breadcrumb-item-active {
|
|
182
|
+
color: var(--color-secondary);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.breadcrumbs-tertiary .breadcrumb-link:hover,
|
|
186
|
+
.breadcrumbs-tertiary .breadcrumb-item-active {
|
|
187
|
+
color: var(--color-tertiary);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.breadcrumbs-sm {
|
|
191
|
+
font-size: 0.75rem;
|
|
192
|
+
gap: 0.375rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.breadcrumbs-sm .breadcrumb-icon,
|
|
196
|
+
.breadcrumbs-sm .breadcrumb-home-icon {
|
|
197
|
+
width: 0.875rem;
|
|
198
|
+
height: 0.875rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.breadcrumbs-lg {
|
|
202
|
+
font-size: 1rem;
|
|
203
|
+
gap: 0.625rem;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.breadcrumbs-lg .breadcrumb-icon,
|
|
207
|
+
.breadcrumbs-lg .breadcrumb-home-icon {
|
|
208
|
+
width: 1.25rem;
|
|
209
|
+
height: 1.25rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.breadcrumbs-contained {
|
|
213
|
+
padding: 0.75rem 1rem;
|
|
214
|
+
background-color: var(--color-surface-container);
|
|
215
|
+
border-radius: var(--radius-sm);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.breadcrumbs-nowrap {
|
|
219
|
+
flex-wrap: nowrap;
|
|
220
|
+
overflow-x: auto;
|
|
221
|
+
overscroll-behavior-inline: contain;
|
|
222
|
+
scrollbar-width: thin;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.breadcrumbs-nowrap > * {
|
|
226
|
+
flex: 0 0 auto;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.breadcrumb-item-disabled {
|
|
230
|
+
opacity: 1;
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
cursor: not-allowed;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.breadcrumb-ellipsis:focus-visible,
|
|
236
|
+
.breadcrumb-home:focus-visible,
|
|
237
|
+
.breadcrumbs li > a:focus-visible {
|
|
238
|
+
outline: 2px solid currentColor;
|
|
239
|
+
outline-offset: 2px;
|
|
240
|
+
border-radius: var(--radius-xs);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Reduce Motion */
|
|
244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
245
|
+
.breadcrumbs a,
|
|
246
|
+
.breadcrumbs-item a,
|
|
247
|
+
.breadcrumbs-link,
|
|
248
|
+
.breadcrumbs-separator {
|
|
249
|
+
transition: none;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
@@ -113,6 +113,23 @@
|
|
|
113
113
|
background-color: var(--color-surface-container-high);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
.cascader:has(> .cascader-clear) .cascader-value {
|
|
117
|
+
padding-inline-end: 2rem;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.cascader > .cascader-clear {
|
|
121
|
+
position: absolute;
|
|
122
|
+
inset-block-start: 50%;
|
|
123
|
+
inset-inline-end: 2.75rem;
|
|
124
|
+
z-index: 1;
|
|
125
|
+
transform: translateY(-50%);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.cascader > .cascader-clear:focus-visible {
|
|
129
|
+
outline: 2px solid currentColor;
|
|
130
|
+
outline-offset: 2px;
|
|
131
|
+
}
|
|
132
|
+
|
|
116
133
|
/* Cascader Dropdown */
|
|
117
134
|
.cascader-dropdown {
|
|
118
135
|
position: absolute;
|
|
@@ -134,7 +151,10 @@
|
|
|
134
151
|
|
|
135
152
|
/* Popover API Support */
|
|
136
153
|
.cascader-dropdown[popover] {
|
|
137
|
-
|
|
154
|
+
position: fixed;
|
|
155
|
+
inset: auto 0.5rem 0.5rem auto;
|
|
156
|
+
max-inline-size: calc(100dvw - 1rem);
|
|
157
|
+
max-block-size: min(16rem, calc(100dvh - 1rem));
|
|
138
158
|
margin: 0;
|
|
139
159
|
border: 1px solid var(--color-outline-variant);
|
|
140
160
|
}
|
|
@@ -143,32 +163,14 @@
|
|
|
143
163
|
display: flex;
|
|
144
164
|
}
|
|
145
165
|
|
|
146
|
-
/*
|
|
147
|
-
@supports (
|
|
148
|
-
.cascader-trigger {
|
|
149
|
-
anchor-name: --cascader-anchor;
|
|
150
|
-
}
|
|
151
|
-
|
|
166
|
+
/* The popovertarget invoker is the implicit anchor for its own dropdown. */
|
|
167
|
+
@supports (position-area: block-end) {
|
|
152
168
|
.cascader-dropdown[popover] {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
position-try-fallbacks: flip-block;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* Fallback for browsers without anchor positioning */
|
|
162
|
-
@supports not (anchor-name: --anchor) {
|
|
163
|
-
.cascader {
|
|
164
|
-
position: relative;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.cascader-dropdown[popover]:popover-open {
|
|
168
|
-
position: absolute;
|
|
169
|
-
top: 100%;
|
|
170
|
-
left: 0;
|
|
171
|
-
margin-top: 0.25rem;
|
|
169
|
+
inset: auto;
|
|
170
|
+
margin-block: 0.25rem;
|
|
171
|
+
margin-inline: 0;
|
|
172
|
+
position-area: block-end span-inline-end;
|
|
173
|
+
position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
|