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