@duskmoon-dev/core 1.19.5 → 1.19.7

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 (51) 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/dialog.css +29 -3
  5. package/dist/components/dropdown.css +91 -0
  6. package/dist/components/fab.css +182 -0
  7. package/dist/components/index.css +1167 -302
  8. package/dist/components/link.css +43 -0
  9. package/dist/components/megamenu.css +298 -0
  10. package/dist/components/menu.css +175 -0
  11. package/dist/components/modal.css +4 -3
  12. package/dist/components/navbar.css +283 -0
  13. package/dist/components/navigation.css +606 -202
  14. package/dist/components/nested-menu.css +19 -4
  15. package/dist/components/pagination.css +216 -0
  16. package/dist/components/stepper.css +33 -19
  17. package/dist/components/swap.css +116 -0
  18. package/dist/components/tabs.css +101 -0
  19. package/dist/esm/components/bottom-navigation.js +127 -24
  20. package/dist/esm/components/breadcrumbs.d.ts +5 -0
  21. package/dist/esm/components/breadcrumbs.js +261 -0
  22. package/dist/esm/components/dialog.js +29 -3
  23. package/dist/esm/components/dropdown.d.ts +5 -0
  24. package/dist/esm/components/dropdown.js +100 -0
  25. package/dist/esm/components/fab.d.ts +5 -0
  26. package/dist/esm/components/fab.js +191 -0
  27. package/dist/esm/components/link.d.ts +5 -0
  28. package/dist/esm/components/link.js +52 -0
  29. package/dist/esm/components/megamenu.d.ts +5 -0
  30. package/dist/esm/components/megamenu.js +307 -0
  31. package/dist/esm/components/menu.d.ts +5 -0
  32. package/dist/esm/components/menu.js +184 -0
  33. package/dist/esm/components/modal.js +4 -3
  34. package/dist/esm/components/navbar.d.ts +5 -0
  35. package/dist/esm/components/navbar.js +292 -0
  36. package/dist/esm/components/navigation.js +606 -202
  37. package/dist/esm/components/nested-menu.js +19 -4
  38. package/dist/esm/components/pagination.d.ts +5 -0
  39. package/dist/esm/components/pagination.js +225 -0
  40. package/dist/esm/components/stepper.js +33 -19
  41. package/dist/esm/components/swap.d.ts +5 -0
  42. package/dist/esm/components/swap.js +125 -0
  43. package/dist/esm/components/tabs.d.ts +5 -0
  44. package/dist/esm/components/tabs.js +110 -0
  45. package/dist/index.css +1167 -302
  46. package/dist/index.min.css +1 -1
  47. package/dist/standalone/duskmoonui-themes.css +1 -1
  48. package/dist/standalone/duskmoonui.css +1168 -303
  49. package/dist/standalone/duskmoonui.js +23 -7
  50. package/dist/standalone/duskmoonui.mjs +23 -7
  51. package/package.json +61 -1
@@ -8,15 +8,15 @@ export const css = `/**
8
8
  /* Base Bottom Navigation */
9
9
  .bottom-nav {
10
10
  position: fixed;
11
- bottom: 0;
12
- left: 0;
13
- right: 0;
11
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
12
+ inset-block-end: 0;
13
+ inset-inline: 0;
14
14
  z-index: 1000;
15
15
  display: flex;
16
16
  align-items: stretch;
17
17
  justify-content: space-around;
18
18
  min-height: 5rem;
19
- padding-bottom: env(safe-area-inset-bottom, 0);
19
+ padding-block-end: env(safe-area-inset-bottom, 0);
20
20
  background-color: var(--color-surface);
21
21
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
22
22
  }
@@ -38,6 +38,8 @@ export const css = `/**
38
38
  transition: color 150ms ease-in-out;
39
39
  text-decoration: none;
40
40
  gap: 0.25rem;
41
+ position: relative;
42
+ border-radius: var(--radius-md);
41
43
  }
42
44
 
43
45
  .bottom-nav-item:hover {
@@ -45,7 +47,8 @@ export const css = `/**
45
47
  }
46
48
 
47
49
  .bottom-nav-item:focus-visible {
48
- outline: none;
50
+ outline: 2px solid currentColor;
51
+ outline-offset: -2px;
49
52
  }
50
53
 
51
54
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -54,10 +57,18 @@ export const css = `/**
54
57
  }
55
58
 
56
59
  /* Active State */
57
- .bottom-nav-item.active {
60
+ .bottom-nav-item.active,
61
+ .bottom-nav-item-active,
62
+ .bottom-nav-item-active-primary,
63
+ .bottom-nav-item[aria-current="page"] {
58
64
  color: var(--color-on-surface);
59
65
  }
60
66
 
67
+ .bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
68
+ color: var(--color-on-secondary-container);
69
+ background-color: var(--color-secondary-container);
70
+ }
71
+
61
72
  /* Icon Container with Indicator */
62
73
  .bottom-nav-indicator {
63
74
  position: relative;
@@ -74,7 +85,10 @@ export const css = `/**
74
85
  background-color: var(--color-surface-container);
75
86
  }
76
87
 
77
- .bottom-nav-item.active .bottom-nav-indicator {
88
+ .bottom-nav-item.active .bottom-nav-indicator,
89
+ .bottom-nav-item-active .bottom-nav-indicator,
90
+ .bottom-nav-item-active-primary .bottom-nav-indicator,
91
+ .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
78
92
  background-color: var(--color-secondary-container);
79
93
  }
80
94
 
@@ -97,7 +111,10 @@ export const css = `/**
97
111
  max-width: 100%;
98
112
  }
99
113
 
100
- .bottom-nav-item.active .bottom-nav-label {
114
+ .bottom-nav-item.active .bottom-nav-label,
115
+ .bottom-nav-item-active .bottom-nav-label,
116
+ .bottom-nav-item-active-primary .bottom-nav-label,
117
+ .bottom-nav-item[aria-current="page"] .bottom-nav-label {
101
118
  font-weight: 600;
102
119
  }
103
120
 
@@ -105,7 +122,7 @@ export const css = `/**
105
122
  .bottom-nav-badge {
106
123
  position: absolute;
107
124
  top: 0;
108
- right: 0.5rem;
125
+ inset-inline-end: 0.5rem;
109
126
  min-width: 1rem;
110
127
  height: 1rem;
111
128
  padding: 0 0.25rem;
@@ -124,7 +141,7 @@ export const css = `/**
124
141
  height: 0.5rem;
125
142
  padding: 0;
126
143
  top: 0.125rem;
127
- right: 0.75rem;
144
+ inset-inline-end: 0.75rem;
128
145
  }
129
146
 
130
147
  /* Variants */
@@ -142,23 +159,96 @@ export const css = `/**
142
159
  }
143
160
 
144
161
  /* Color Variants */
145
- .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator {
162
+ .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
163
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
164
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
146
165
  background-color: var(--color-primary-container);
147
166
  }
148
167
 
149
- .bottom-nav-primary .bottom-nav-item.active {
168
+ .bottom-nav-item-active-secondary {
169
+ color: var(--color-on-secondary-container);
170
+ }
171
+
172
+ .bottom-nav-item-active-secondary .bottom-nav-indicator {
173
+ background-color: var(--color-secondary-container);
174
+ }
175
+
176
+ .bottom-nav-item-active-tertiary {
177
+ color: var(--color-on-tertiary-container);
178
+ }
179
+
180
+ .bottom-nav-item-active-tertiary .bottom-nav-indicator {
181
+ background-color: var(--color-tertiary-container);
182
+ }
183
+
184
+ .bottom-nav-surface {
185
+ background-color: var(--color-surface);
186
+ }
187
+
188
+ .bottom-nav-surface-container-low {
189
+ background-color: var(--color-surface-container-low);
190
+ }
191
+
192
+ .bottom-nav-surface-container-high {
193
+ background-color: var(--color-surface-container-high);
194
+ }
195
+
196
+ .bottom-nav-transparent {
197
+ background-color: transparent;
198
+ }
199
+
200
+ .bottom-nav-borderless {
201
+ border-block-start: 0;
202
+ box-shadow: none;
203
+ }
204
+
205
+ .bottom-nav-compact {
206
+ min-height: 3.5rem;
207
+ }
208
+
209
+ .bottom-nav-item-disabled,
210
+ .bottom-nav-item:disabled,
211
+ .bottom-nav-item[aria-disabled="true"] {
212
+ opacity: 0.38;
213
+ cursor: not-allowed;
214
+ }
215
+
216
+ .bottom-nav-primary .bottom-nav-item.active,
217
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
218
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] {
150
219
  color: var(--color-on-primary-container);
151
220
  }
152
221
 
153
222
  /* Hide Labels */
154
223
  .bottom-nav-icons-only .bottom-nav-label {
155
- display: none;
224
+ position: absolute;
225
+ width: 1px;
226
+ height: 1px;
227
+ padding: 0;
228
+ margin: -1px;
229
+ overflow: hidden;
230
+ clip: rect(0, 0, 0, 0);
231
+ white-space: nowrap;
232
+ border: 0;
156
233
  }
157
234
 
158
235
  .bottom-nav-icons-only .bottom-nav-item {
159
236
  padding: 1rem 0.25rem;
160
237
  }
161
238
 
239
+ .bottom-nav-labels-only .bottom-nav-icon {
240
+ display: none;
241
+ }
242
+
243
+ .bottom-nav-labels-only .bottom-nav-item {
244
+ flex-direction: row;
245
+ min-width: auto;
246
+ }
247
+
248
+ .bottom-nav-labels-only .bottom-nav-label {
249
+ font-size: 0.875rem;
250
+ }
251
+
162
252
  /* Show Labels Only on Active */
163
253
  .bottom-nav-labels-active .bottom-nav-label {
164
254
  opacity: 0;
@@ -167,7 +257,7 @@ export const css = `/**
167
257
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
168
258
  }
169
259
 
170
- .bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
260
+ .bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
171
261
  opacity: 1;
172
262
  max-height: 1rem;
173
263
  }
@@ -178,7 +268,16 @@ export const css = `/**
178
268
  transition: flex 200ms ease-in-out;
179
269
  }
180
270
 
181
- .bottom-nav-shifting .bottom-nav-item.active {
271
+ /* Legacy spelling retained; prefer .bottom-nav-shifting. */
272
+ .bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
273
+ display: none;
274
+ }
275
+
276
+ .bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
277
+ min-width: 6rem;
278
+ }
279
+
280
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
182
281
  flex: 1 1 6rem;
183
282
  }
184
283
 
@@ -188,7 +287,7 @@ export const css = `/**
188
287
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
189
288
  }
190
289
 
191
- .bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
290
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
192
291
  opacity: 1;
193
292
  transform: translateY(0);
194
293
  }
@@ -196,9 +295,9 @@ export const css = `/**
196
295
  /* Rail Style (Side Navigation) */
197
296
  .nav-rail {
198
297
  position: fixed;
199
- left: 0;
200
- top: 0;
201
- bottom: 0;
298
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
299
+ inset-inline-start: 0;
300
+ inset-block: 0;
202
301
  z-index: 1000;
203
302
  display: flex;
204
303
  flex-direction: column;
@@ -206,7 +305,11 @@ export const css = `/**
206
305
  width: 5rem;
207
306
  padding: 1rem 0;
208
307
  background-color: var(--color-surface);
209
- border-right: 1px solid var(--color-outline-variant);
308
+ border-inline-end: 1px solid var(--color-outline-variant);
309
+ }
310
+
311
+ .nav-rail:dir(rtl) {
312
+ left: auto;
210
313
  }
211
314
 
212
315
  .nav-rail .bottom-nav-item {
@@ -224,13 +327,13 @@ export const css = `/**
224
327
  @media (min-width: 768px) {
225
328
  .bottom-nav-responsive {
226
329
  position: relative;
227
- bottom: auto;
330
+ inset-block-end: auto;
228
331
  justify-content: flex-start;
229
332
  gap: 0.5rem;
230
333
  min-height: 3rem;
231
334
  padding: 0 1rem;
232
335
  box-shadow: none;
233
- border-bottom: 1px solid var(--color-outline-variant);
336
+ border-block-end: 1px solid var(--color-outline-variant);
234
337
  }
235
338
 
236
339
  .bottom-nav-responsive .bottom-nav-item {
@@ -246,8 +349,8 @@ export const css = `/**
246
349
  background-color: transparent !important;
247
350
  }
248
351
 
249
- .bottom-nav-responsive .bottom-nav-item.active {
250
- border-bottom: 2px solid var(--color-primary);
352
+ .bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
353
+ border-block-end: 2px solid var(--color-primary);
251
354
  }
252
355
  }
253
356
 
@@ -0,0 +1,5 @@
1
+ // Auto-generated type declaration for breadcrumbs
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,261 @@
1
+ // Auto-generated from breadcrumbs.css
2
+ export const css = `/**
3
+ * Breadcrumbs Component Styles
4
+ * DuskMoonUI - Material Design 3 inspired breadcrumb navigation
5
+ */
6
+
7
+ @layer components {
8
+ .breadcrumbs {
9
+ display: flex;
10
+ align-items: center;
11
+ flex-wrap: wrap;
12
+ gap: 0.5rem;
13
+ padding: 0.5rem 0;
14
+ list-style: none;
15
+ margin: 0;
16
+ font-size: 0.875rem;
17
+ }
18
+
19
+ .breadcrumbs li {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: 0.5rem;
23
+ }
24
+
25
+ .breadcrumbs li::after {
26
+ content: '/';
27
+ color: var(--color-on-surface-variant);
28
+ opacity: 0.5;
29
+ }
30
+
31
+ .breadcrumbs li:last-child::after {
32
+ display: none;
33
+ }
34
+
35
+ .breadcrumbs li > a {
36
+ color: var(--color-primary);
37
+ text-decoration: none;
38
+ transition: color 150ms ease-in-out;
39
+ }
40
+
41
+ .breadcrumbs li > a:hover {
42
+ text-decoration: underline;
43
+ }
44
+
45
+ .breadcrumbs li:last-child {
46
+ color: var(--color-on-surface-variant);
47
+ }
48
+
49
+ .breadcrumb-item {
50
+ display: inline-flex;
51
+ align-items: center;
52
+ gap: 0.375rem;
53
+ color: var(--color-on-surface-variant);
54
+ text-decoration: none;
55
+ transition: color 150ms ease-in-out;
56
+ }
57
+
58
+ .breadcrumb-item:hover {
59
+ color: var(--color-on-surface);
60
+ }
61
+
62
+ .breadcrumb-item-active {
63
+ color: var(--color-on-surface);
64
+ font-weight: 500;
65
+ pointer-events: none;
66
+ }
67
+
68
+ .breadcrumb-link {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ gap: 0.375rem;
72
+ color: var(--color-on-surface-variant);
73
+ text-decoration: none;
74
+ transition: color 150ms ease-in-out;
75
+ cursor: pointer;
76
+ }
77
+
78
+ .breadcrumb-link:hover {
79
+ color: var(--color-primary);
80
+ text-decoration: underline;
81
+ }
82
+
83
+ .breadcrumb-link:focus-visible {
84
+ outline: none;
85
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
86
+ border-radius: var(--radius-xs);
87
+ }
88
+
89
+ .breadcrumb-separator {
90
+ display: inline-flex;
91
+ align-items: center;
92
+ color: var(--color-on-surface-variant);
93
+ font-size: 0.875rem;
94
+ user-select: none;
95
+ opacity: 0.6;
96
+ }
97
+
98
+ .breadcrumb-separator::before {
99
+ content: "/";
100
+ }
101
+
102
+ .breadcrumbs-slash .breadcrumb-separator::before {
103
+ content: "/";
104
+ }
105
+
106
+ .breadcrumbs-chevron .breadcrumb-separator::before {
107
+ content: "›";
108
+ font-size: 1.125rem;
109
+ }
110
+
111
+ .breadcrumbs-dot .breadcrumb-separator::before {
112
+ content: "•";
113
+ }
114
+
115
+ .breadcrumbs-arrow .breadcrumb-separator::before {
116
+ content: "→";
117
+ }
118
+
119
+ .breadcrumbs-pipe .breadcrumb-separator::before {
120
+ content: "|";
121
+ }
122
+
123
+ .breadcrumb-icon {
124
+ display: inline-flex;
125
+ align-items: center;
126
+ justify-content: center;
127
+ width: 1rem;
128
+ height: 1rem;
129
+ flex-shrink: 0;
130
+ }
131
+
132
+ .breadcrumb-icon svg {
133
+ width: 100%;
134
+ height: 100%;
135
+ }
136
+
137
+ .breadcrumb-home {
138
+ display: inline-flex;
139
+ align-items: center;
140
+ justify-content: center;
141
+ color: var(--color-on-surface-variant);
142
+ text-decoration: none;
143
+ transition: color 150ms ease-in-out;
144
+ }
145
+
146
+ .breadcrumb-home:hover {
147
+ color: var(--color-primary);
148
+ }
149
+
150
+ .breadcrumb-home-icon {
151
+ width: 1.125rem;
152
+ height: 1.125rem;
153
+ }
154
+
155
+ .breadcrumb-ellipsis {
156
+ display: inline-flex;
157
+ align-items: center;
158
+ justify-content: center;
159
+ padding: 0.25rem 0.5rem;
160
+ color: var(--color-on-surface-variant);
161
+ background-color: transparent;
162
+ border: none;
163
+ border-radius: var(--radius-xs);
164
+ cursor: pointer;
165
+ transition: background-color 150ms ease-in-out;
166
+ }
167
+
168
+ .breadcrumb-ellipsis::before {
169
+ content: "...";
170
+ }
171
+
172
+ .breadcrumb-ellipsis:hover {
173
+ background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
174
+ }
175
+
176
+ .breadcrumbs-primary .breadcrumb-link:hover,
177
+ .breadcrumbs-primary .breadcrumb-item-active {
178
+ color: var(--color-primary);
179
+ }
180
+
181
+ .breadcrumbs-secondary .breadcrumb-link:hover,
182
+ .breadcrumbs-secondary .breadcrumb-item-active {
183
+ color: var(--color-secondary);
184
+ }
185
+
186
+ .breadcrumbs-tertiary .breadcrumb-link:hover,
187
+ .breadcrumbs-tertiary .breadcrumb-item-active {
188
+ color: var(--color-tertiary);
189
+ }
190
+
191
+ .breadcrumbs-sm {
192
+ font-size: 0.75rem;
193
+ gap: 0.375rem;
194
+ }
195
+
196
+ .breadcrumbs-sm .breadcrumb-icon,
197
+ .breadcrumbs-sm .breadcrumb-home-icon {
198
+ width: 0.875rem;
199
+ height: 0.875rem;
200
+ }
201
+
202
+ .breadcrumbs-lg {
203
+ font-size: 1rem;
204
+ gap: 0.625rem;
205
+ }
206
+
207
+ .breadcrumbs-lg .breadcrumb-icon,
208
+ .breadcrumbs-lg .breadcrumb-home-icon {
209
+ width: 1.25rem;
210
+ height: 1.25rem;
211
+ }
212
+
213
+ .breadcrumbs-contained {
214
+ padding: 0.75rem 1rem;
215
+ background-color: var(--color-surface-container);
216
+ border-radius: var(--radius-sm);
217
+ }
218
+
219
+ .breadcrumbs-nowrap {
220
+ flex-wrap: nowrap;
221
+ overflow-x: auto;
222
+ overscroll-behavior-inline: contain;
223
+ scrollbar-width: thin;
224
+ }
225
+
226
+ .breadcrumbs-nowrap > * {
227
+ flex: 0 0 auto;
228
+ }
229
+
230
+ .breadcrumb-item-disabled {
231
+ opacity: 1;
232
+ pointer-events: none;
233
+ cursor: not-allowed;
234
+ }
235
+
236
+ .breadcrumb-ellipsis:focus-visible,
237
+ .breadcrumb-home:focus-visible,
238
+ .breadcrumbs li > a:focus-visible {
239
+ outline: 2px solid currentColor;
240
+ outline-offset: 2px;
241
+ border-radius: var(--radius-xs);
242
+ }
243
+
244
+ /* Reduce Motion */
245
+ @media (prefers-reduced-motion: reduce) {
246
+ .breadcrumbs a,
247
+ .breadcrumbs-item a,
248
+ .breadcrumbs-link,
249
+ .breadcrumbs-separator {
250
+ transition: none;
251
+ }
252
+ }
253
+ }
254
+ `;
255
+
256
+ const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
257
+ if (sheet) {
258
+ sheet.replaceSync(css);
259
+ }
260
+ export const styles = sheet;
261
+ export default sheet;
@@ -12,9 +12,10 @@ export const css = `/**
12
12
  margin: auto;
13
13
  padding: 0;
14
14
  border: none;
15
- width: 100%;
15
+ width: calc(100% - 2rem);
16
16
  max-width: 28rem;
17
- max-height: calc(100vh - 4rem);
17
+ max-height: calc(100dvh - 2rem);
18
+ box-sizing: border-box;
18
19
  background-color: var(--color-surface);
19
20
  color: var(--color-on-surface);
20
21
  border-radius: var(--radius-2xl);
@@ -31,7 +32,7 @@ export const css = `/**
31
32
  .dialog-box {
32
33
  display: flex;
33
34
  flex-direction: column;
34
- max-height: calc(100vh - 4rem);
35
+ max-height: calc(100dvh - 2rem);
35
36
  overflow: hidden;
36
37
  }
37
38
 
@@ -90,6 +91,7 @@ export const css = `/**
90
91
  /* Dialog Footer */
91
92
  .dialog-footer {
92
93
  display: flex;
94
+ flex-wrap: wrap;
93
95
  justify-content: flex-end;
94
96
  gap: 0.5rem;
95
97
  padding: 1rem 1.5rem 1.5rem;
@@ -129,6 +131,30 @@ export const css = `/**
129
131
  margin: 0;
130
132
  }
131
133
 
134
+ @media (max-width: 640px) {
135
+ dialog.dialog {
136
+ width: calc(100% - 1rem);
137
+ max-height: calc(100dvh - 1rem);
138
+ border-radius: var(--radius-lg);
139
+ }
140
+
141
+ .dialog-box {
142
+ max-height: calc(100dvh - 1rem);
143
+ }
144
+
145
+ .dialog-header {
146
+ padding: 1rem 1rem 0;
147
+ }
148
+
149
+ .dialog-body {
150
+ padding: 1rem;
151
+ }
152
+
153
+ .dialog-footer {
154
+ padding: 0.75rem 1rem 1rem;
155
+ }
156
+ }
157
+
132
158
  dialog.dialog.dialog-fullscreen .dialog-box {
133
159
  max-height: 100%;
134
160
  }
@@ -0,0 +1,5 @@
1
+ // Auto-generated type declaration for dropdown
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,100 @@
1
+ // Auto-generated from dropdown.css
2
+ export const css = `/**
3
+ * Dropdown Component Styles
4
+ * Native Popover disclosure with logical CSS anchor positioning.
5
+ */
6
+
7
+ @layer components {
8
+ .dropdown {
9
+ position: relative;
10
+ display: inline-block;
11
+ }
12
+
13
+ .dropdown > .dropdown-content[popover] {
14
+ display: none;
15
+ position: fixed;
16
+ inset-block-start: auto;
17
+ inset-block-end: max(0.5rem, env(safe-area-inset-bottom, 0px));
18
+ inset-inline-start: auto;
19
+ inset-inline-end: max(
20
+ 0.5rem,
21
+ env(safe-area-inset-left, 0px),
22
+ env(safe-area-inset-right, 0px)
23
+ );
24
+ z-index: 50;
25
+ min-inline-size: 12rem;
26
+ max-inline-size: min(24rem, calc(100dvw - 1rem));
27
+ max-block-size: calc(100dvh - 1rem);
28
+ margin: 0;
29
+ padding: 0.5rem;
30
+ overflow: auto;
31
+ color: var(--color-on-surface);
32
+ background-color: var(--color-surface);
33
+ border: 1px solid var(--color-outline);
34
+ border-radius: var(--radius-sm);
35
+ box-shadow: var(--shadow-lg);
36
+ opacity: 0;
37
+ visibility: hidden;
38
+ pointer-events: none;
39
+ transform: translateY(-0.5rem);
40
+ transition:
41
+ opacity 150ms ease-out,
42
+ transform 150ms ease-out,
43
+ overlay 150ms ease-out allow-discrete,
44
+ display 150ms ease-out allow-discrete;
45
+ }
46
+
47
+ .dropdown > .dropdown-content[popover]:popover-open {
48
+ display: block;
49
+ opacity: 1;
50
+ visibility: visible;
51
+ pointer-events: auto;
52
+ transform: translateY(0);
53
+ }
54
+
55
+ @starting-style {
56
+ .dropdown > .dropdown-content[popover]:popover-open {
57
+ opacity: 0;
58
+ transform: translateY(-0.5rem);
59
+ }
60
+ }
61
+
62
+ @supports (position-area: block-end) {
63
+ .dropdown > .dropdown-content[popover] {
64
+ inset: auto;
65
+ margin: 0.25rem;
66
+ position-area: block-end span-inline-end;
67
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
68
+ }
69
+
70
+ .dropdown.dropdown-block-start > .dropdown-content[popover] {
71
+ position-area: block-start span-inline-end;
72
+ }
73
+
74
+ .dropdown.dropdown-block-end > .dropdown-content[popover] {
75
+ position-area: block-end span-inline-end;
76
+ }
77
+
78
+ .dropdown.dropdown-inline-start > .dropdown-content[popover] {
79
+ position-area: inline-start span-block-end;
80
+ }
81
+
82
+ .dropdown.dropdown-inline-end > .dropdown-content[popover] {
83
+ position-area: inline-end span-block-end;
84
+ }
85
+ }
86
+
87
+ @media (prefers-reduced-motion: reduce) {
88
+ .dropdown > .dropdown-content[popover] {
89
+ transition: none;
90
+ }
91
+ }
92
+ }
93
+ `;
94
+
95
+ const sheet = typeof CSSStyleSheet !== 'undefined' ? new CSSStyleSheet() : null;
96
+ if (sheet) {
97
+ sheet.replaceSync(css);
98
+ }
99
+ export const styles = sheet;
100
+ export default sheet;