@duskmoon-dev/core 1.19.7 → 1.19.9

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.
@@ -1,65 +1,334 @@
1
1
  /* Explicitly opt-in. Not imported by core or components/index.css. */
2
+ @property --dm-aura-angle {
3
+ syntax: '<angle>';
4
+ inherits: false;
5
+ initial-value: 0deg;
6
+ }
2
7
  @layer components {
3
8
  .aura {
9
+ --aura-padding: 0.125rem;
10
+ --aura-radius: var(--radius-box);
4
11
  position: relative;
5
12
  isolation: isolate;
6
- border-radius: var(--radius-md);
7
- outline: 1px solid var(--color-primary);
13
+ display: inline-block;
14
+ padding: var(--aura-padding);
15
+ border-radius: calc(var(--aura-radius) + var(--aura-padding));
16
+ color: var(--color-primary);
8
17
  }
9
- .aura::before {
18
+
19
+ .aura:has(> :is(.btn, .input, .select, .textarea)) { --aura-radius: var(--radius-field); }
20
+ .aura:has(> :is(.badge, .checkbox, .toggle, .chip)) { --aura-radius: var(--radius-selector); }
21
+
22
+ .aura::before,
23
+ .aura::after {
10
24
  content: '';
11
25
  position: absolute;
12
26
  inset: 0;
13
27
  z-index: -1;
14
28
  border-radius: inherit;
15
- box-shadow: 0 0 1rem color-mix(in oklch, var(--color-primary) 35%, transparent);
29
+ background-image: conic-gradient(from var(--dm-aura-angle), transparent 0deg 220deg, currentColor 300deg, transparent 360deg);
16
30
  pointer-events: none;
17
31
  }
32
+
33
+ .aura::before {
34
+ opacity: 0.75;
35
+ filter: blur(0.2rem);
36
+ }
37
+
38
+ .aura::after {
39
+ opacity: 0.35;
40
+ filter: blur(0.9rem);
41
+ }
42
+
43
+ .aura > * {
44
+ position: relative;
45
+ z-index: 1;
46
+ }
47
+
48
+ .aura-dual::before,
49
+ .aura-dual::after {
50
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), transparent 0deg 70deg, currentColor 90deg 110deg, transparent 130deg 250deg, currentColor 270deg 290deg, transparent 310deg 360deg);
51
+ }
52
+
53
+ .aura-rainbow::before,
54
+ .aura-rainbow::after {
55
+ background-image: conic-gradient(from var(--dm-aura-angle) in oklch longer hue, transparent, oklch(78% 0.18 20), oklch(82% 0.16 140), oklch(76% 0.17 260), oklch(80% 0.18 350), transparent);
56
+ }
57
+
58
+ .aura-holo::before,
59
+ .aura-holo::after {
60
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(82% 0.17 327), oklch(75% 0.12 274), oklch(82% 0.11 191), oklch(91% 0.11 105), oklch(88% 0.08 68), oklch(82% 0.17 327) 12.5%);
61
+ }
62
+
63
+ .aura-gold::before,
64
+ .aura-gold::after {
65
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(66% 0.19 72), oklch(96% 0.08 103), oklch(72% 0.17 82), oklch(61% 0.12 76) 25%);
66
+ }
67
+
68
+ .aura-silver::before,
69
+ .aura-silver::after {
70
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(35% 0 0), oklch(92% 0 0), oklch(62% 0 0), oklch(82% 0 0), oklch(35% 0 0) 25%);
71
+ }
72
+
73
+ .aura-glow::before,
74
+ .aura-glow::after {
75
+ background-image: radial-gradient(closest-side, currentColor, transparent);
76
+ }
77
+
78
+ .aura-xs { --aura-padding: 0; }
79
+ .aura-sm { --aura-padding: 0.0625rem; }
80
+ .aura-md { --aura-padding: 0.125rem; }
81
+ .aura-lg { --aura-padding: 0.1875rem; }
82
+ .aura-xl { --aura-padding: 0.25rem; }
83
+
18
84
  @media (prefers-reduced-motion: no-preference) {
19
- .aura-animated::before { animation: dm-aura 4s ease-in-out infinite; }
85
+ .aura:not(.aura-glow)::before,
86
+ .aura:not(.aura-glow)::after {
87
+ animation: dm-aura-spin var(--aura-duration, var(--tw-duration, 6s)) linear infinite;
88
+ }
89
+
90
+ .aura-glow::before,
91
+ .aura-glow::after {
92
+ animation: dm-aura-glow var(--aura-duration, var(--tw-duration, 6s)) ease-in-out infinite;
93
+ }
94
+ }
95
+
96
+ @keyframes dm-aura-spin { to { --dm-aura-angle: 360deg; } }
97
+ @keyframes dm-aura-glow { 50% { opacity: 0.8; filter: blur(1.3rem); } }
98
+
99
+ @media print {
100
+ .aura { padding: 0; }
101
+ .aura::before,
102
+ .aura::after { display: none; }
20
103
  }
21
- @keyframes dm-aura { 50% { opacity: 0.4; } }
22
- @media print { .aura::before { display: none; } }
23
104
  }
24
105
 
25
106
  @layer components {
26
- .hover-3d { border-radius: var(--radius-md); }
27
- @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
28
- .hover-3d { transition: transform 200ms ease; }
29
- .hover-3d:hover:not(:focus-within) { transform: perspective(60rem) rotateX(var(--hover-3d-x, 2deg)) rotateY(var(--hover-3d-y, -2deg)); }
107
+ .hover-3d {
108
+ --hover-3d-axis: 0, 0, 0;
109
+ --hover-3d-angle: 0deg;
110
+ --hover-3d-shadow-x: 0rem;
111
+ --hover-3d-shadow-y: 0rem;
112
+ --hover-3d-shine: 100% 100%;
113
+ --hover-3d-ease: linear(0, 0.931 13.8%, 1.196 21.4%, 1.343 29.8%, 1.378 36%, 1.365 43.2%, 1.059 78%, 1);
114
+ display: inline-grid;
115
+ perspective: 75rem;
116
+ filter: drop-shadow(var(--hover-3d-shadow-x) var(--hover-3d-shadow-y) 0.6rem color-mix(in oklch, var(--color-shadow) 18%, transparent));
117
+ }
118
+
119
+ .hover-3d > :first-child {
120
+ position: relative;
121
+ grid-area: 1 / 1 / 4 / 4;
122
+ overflow: hidden;
123
+ transform: rotate3d(var(--hover-3d-axis), var(--hover-3d-angle));
124
+ transform-style: preserve-3d;
125
+ backface-visibility: hidden;
126
+ scale: 1;
127
+ outline: 0.5px solid transparent;
128
+ outline-offset: -1px;
129
+ }
130
+
131
+ .hover-3d > :first-child::before {
132
+ content: '';
133
+ position: absolute;
134
+ inset: 0;
135
+ z-index: 1;
136
+ inline-size: 33.333%;
137
+ block-size: 33.333%;
138
+ scale: 500%;
139
+ translate: var(--hover-3d-shine);
140
+ opacity: 0;
141
+ filter: blur(0.75rem);
142
+ background: radial-gradient(circle at 50%, rgb(255 255 255 / 0.28) 10%, transparent 50%);
143
+ pointer-events: none;
144
+ }
145
+
146
+ .hover-3d > :nth-child(n + 2) {
147
+ z-index: 2;
148
+ min-inline-size: 0;
149
+ min-block-size: 0;
150
+ scale: 1.2;
151
+ }
152
+
153
+ .hover-3d > :nth-child(2) { grid-area: 1 / 1; }
154
+ .hover-3d > :nth-child(3) { grid-area: 1 / 2; }
155
+ .hover-3d > :nth-child(4) { grid-area: 1 / 3; }
156
+ .hover-3d > :nth-child(5) { grid-area: 2 / 1; }
157
+ .hover-3d > :nth-child(6) { grid-area: 2 / 3; }
158
+ .hover-3d > :nth-child(7) { grid-area: 3 / 1; }
159
+ .hover-3d > :nth-child(8) { grid-area: 3 / 2; }
160
+ .hover-3d > :nth-child(9) { grid-area: 3 / 3; }
161
+
162
+ @media (prefers-reduced-motion: no-preference) {
163
+ .hover-3d { transition: filter 400ms ease-out; }
164
+
165
+ .hover-3d > :first-child {
166
+ transition:
167
+ transform 500ms var(--hover-3d-ease),
168
+ scale 500ms var(--hover-3d-ease),
169
+ outline-color 500ms ease-out;
170
+ }
171
+
172
+ .hover-3d > :first-child::before {
173
+ transition: translate 400ms ease-out, opacity 400ms ease-out;
174
+ }
175
+
176
+ .hover-3d:hover {
177
+ --hover-3d-ease: linear(0, 0.708 15.2%, 0.927 23.6%, 1.067 33%, 1.12 41%, 1.13 50.2%, 1.019 83.2%, 1);
178
+ }
179
+
180
+ .hover-3d:hover > :first-child { scale: 1.05; outline-color: rgb(255 255 255 / 0.07); }
181
+ .hover-3d:hover > :first-child::before { opacity: 1; }
182
+
183
+ .hover-3d:has(> :nth-child(2):hover) { --hover-3d-axis: -1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 0% 0%; }
184
+ .hover-3d:has(> :nth-child(3):hover) { --hover-3d-axis: -1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 100% 0%; }
185
+ .hover-3d:has(> :nth-child(4):hover) { --hover-3d-axis: -1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 200% 0%; }
186
+ .hover-3d:has(> :nth-child(5):hover) { --hover-3d-axis: 0, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shine: 0% 100%; }
187
+ .hover-3d:has(> :nth-child(6):hover) { --hover-3d-axis: 0, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shine: 200% 100%; }
188
+ .hover-3d:has(> :nth-child(7):hover) { --hover-3d-axis: 1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 0% 200%; }
189
+ .hover-3d:has(> :nth-child(8):hover) { --hover-3d-axis: 1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 100% 200%; }
190
+ .hover-3d:has(> :nth-child(9):hover) { --hover-3d-axis: 1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 200% 200%; }
191
+ }
192
+
193
+ @media (prefers-reduced-motion: reduce), print {
194
+ .hover-3d { filter: none; transition: none; }
195
+ .hover-3d > :first-child { transform: none; scale: 1; transition: none; }
196
+ .hover-3d > :first-child::before { display: none; }
197
+ }
198
+
199
+ @media print {
200
+ .hover-3d > :nth-child(n + 2) { display: none; }
30
201
  }
31
- @media print { .hover-3d { transform: none; } }
32
202
  }
33
203
 
34
204
  @layer components {
35
- .hover-gallery { display: grid; gap: 0.5rem; min-inline-size: 0; color: var(--color-on-surface); }
36
- .hover-gallery-stage { aspect-ratio: var(--hover-gallery-ratio, 4 / 3); overflow: hidden; border-radius: var(--radius-md); }
37
- .hover-gallery-stage img { inline-size: 100%; block-size: 100%; object-fit: cover; }
38
- .hover-gallery-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
39
- .hover-gallery-controls > button { border: 1px solid currentColor; color: inherit; background: var(--color-surface-container); padding: 0.25rem; border-radius: var(--radius-sm); cursor: pointer; }
40
- .hover-gallery-controls img { display: block; inline-size: 3rem; block-size: 3rem; object-fit: cover; }
41
- .hover-gallery-controls > button[aria-pressed="true"] { color: var(--color-primary); outline: 2px solid currentColor; }
42
- .hover-gallery-controls > button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
43
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
44
- .hover-gallery-controls > button:hover { background: var(--color-primary-container); }
45
- }
46
- @media print { .hover-gallery-controls { display: none; } }
205
+ .hover-gallery {
206
+ --hover-gallery-items: 1;
207
+ display: inline-grid;
208
+ grid-template-columns: repeat(var(--hover-gallery-items), minmax(0, 1fr));
209
+ inline-size: 100%;
210
+ gap: 1px;
211
+ overflow: hidden;
212
+ }
213
+
214
+ .hover-gallery:has(> :nth-child(3)) { --hover-gallery-items: 2; }
215
+ .hover-gallery:has(> :nth-child(4)) { --hover-gallery-items: 3; }
216
+ .hover-gallery:has(> :nth-child(5)) { --hover-gallery-items: 4; }
217
+ .hover-gallery:has(> :nth-child(6)) { --hover-gallery-items: 5; }
218
+ .hover-gallery:has(> :nth-child(7)) { --hover-gallery-items: 6; }
219
+ .hover-gallery:has(> :nth-child(8)) { --hover-gallery-items: 7; }
220
+ .hover-gallery:has(> :nth-child(9)) { --hover-gallery-items: 8; }
221
+ .hover-gallery:has(> :nth-child(10)) { --hover-gallery-items: 9; }
222
+
223
+ .hover-gallery > * {
224
+ grid-row: 1;
225
+ inline-size: 100%;
226
+ block-size: 100%;
227
+ min-inline-size: 0;
228
+ opacity: 0;
229
+ object-fit: cover;
230
+ }
231
+
232
+ .hover-gallery > :first-child {
233
+ grid-column: 1 / -1;
234
+ opacity: 1;
235
+ }
236
+
237
+ .hover-gallery > :nth-child(2) { grid-column: 1; }
238
+ .hover-gallery > :nth-child(3) { grid-column: 2; }
239
+ .hover-gallery > :nth-child(4) { grid-column: 3; }
240
+ .hover-gallery > :nth-child(5) { grid-column: 4; }
241
+ .hover-gallery > :nth-child(6) { grid-column: 5; }
242
+ .hover-gallery > :nth-child(7) { grid-column: 6; }
243
+ .hover-gallery > :nth-child(8) { grid-column: 7; }
244
+ .hover-gallery > :nth-child(9) { grid-column: 8; }
245
+ .hover-gallery > :nth-child(10) { grid-column: 9; }
246
+ .hover-gallery > :nth-child(n + 11) { display: none; }
247
+
248
+ .hover-gallery > :first-child { pointer-events: none; }
249
+
250
+ .hover-gallery > :nth-child(n + 2):is(:hover, :focus-visible) {
251
+ grid-column: 1 / -1;
252
+ opacity: 1;
253
+ }
254
+
255
+ .hover-gallery:has(> :nth-child(n + 2):is(:hover, :focus-visible)) > :first-child { opacity: 0; }
256
+
257
+ @media print {
258
+ .hover-gallery > :first-child { display: block; }
259
+ .hover-gallery > :nth-child(n + 2) { display: none; }
260
+ }
47
261
  }
48
262
 
49
263
  @layer components {
50
- .text-rotate { display: inline-grid; color: var(--color-on-surface); vertical-align: baseline; }
51
- .text-rotate > span { grid-area: 1 / 1; visibility: hidden; }
52
- .text-rotate > span:first-child { visibility: visible; }
264
+ .text-rotate {
265
+ display: inline-block;
266
+ block-size: 1lh;
267
+ overflow: hidden;
268
+ vertical-align: bottom;
269
+ white-space: nowrap;
270
+ color: var(--color-on-surface);
271
+ }
272
+
273
+ .text-rotate > * {
274
+ display: grid;
275
+ justify-items: start;
276
+ will-change: transform;
277
+ }
278
+
279
+ .text-rotate > * > * {
280
+ block-size: 1lh;
281
+ align-content: baseline;
282
+ clip-path: inset(0.5px 0);
283
+ }
284
+
53
285
  @media (prefers-reduced-motion: no-preference) {
54
- .text-rotate-animated > span { animation: dm-text-rotate var(--text-rotate-duration, 6s) steps(1, end) infinite; }
55
- .text-rotate-animated > span:nth-child(2) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3); }
56
- .text-rotate-animated > span:nth-child(3) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3 * 2); }
57
- .text-rotate-animated:is(:hover, :focus-within, .text-rotate-paused) > span { animation-play-state: paused; }
286
+ .text-rotate > :has(> :nth-child(2)):not(:has(> :nth-child(3))) { animation: dm-text-rotate-2 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
287
+ .text-rotate > :has(> :nth-child(3)):not(:has(> :nth-child(4))) { animation: dm-text-rotate-3 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
288
+ .text-rotate > :has(> :nth-child(4)):not(:has(> :nth-child(5))) { animation: dm-text-rotate-4 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
289
+ .text-rotate > :has(> :nth-child(5)):not(:has(> :nth-child(6))) { animation: dm-text-rotate-5 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
290
+ .text-rotate > :has(> :nth-child(6)):not(:has(> :nth-child(7))) { animation: dm-text-rotate-6 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
291
+ .text-rotate:is(:hover, :focus-within, .text-rotate-paused) { --text-rotate-play-state: paused; }
292
+ }
293
+
294
+ @keyframes dm-text-rotate-2 {
295
+ 0%, 45% { transform: translateY(0); }
296
+ 50%, 95% { transform: translateY(-1lh); }
297
+ 100% { transform: translateY(-2lh); }
58
298
  }
59
- @keyframes dm-text-rotate { 0%, 33.32% { visibility: visible; } 33.33%, 100% { visibility: hidden; } }
299
+ @keyframes dm-text-rotate-3 {
300
+ 0%, 28% { transform: translateY(0); }
301
+ 33%, 61% { transform: translateY(-1lh); }
302
+ 66%, 94% { transform: translateY(-2lh); }
303
+ 100% { transform: translateY(-3lh); }
304
+ }
305
+ @keyframes dm-text-rotate-4 {
306
+ 0%, 20% { transform: translateY(0); }
307
+ 25%, 45% { transform: translateY(-1lh); }
308
+ 50%, 70% { transform: translateY(-2lh); }
309
+ 75%, 95% { transform: translateY(-3lh); }
310
+ 100% { transform: translateY(-4lh); }
311
+ }
312
+ @keyframes dm-text-rotate-5 {
313
+ 0%, 15% { transform: translateY(0); }
314
+ 20%, 35% { transform: translateY(-1lh); }
315
+ 40%, 55% { transform: translateY(-2lh); }
316
+ 60%, 75% { transform: translateY(-3lh); }
317
+ 80%, 95% { transform: translateY(-4lh); }
318
+ 100% { transform: translateY(-5lh); }
319
+ }
320
+ @keyframes dm-text-rotate-6 {
321
+ 0%, 12% { transform: translateY(0); }
322
+ 16.67%, 28.67% { transform: translateY(-1lh); }
323
+ 33.33%, 45.33% { transform: translateY(-2lh); }
324
+ 50%, 62% { transform: translateY(-3lh); }
325
+ 66.67%, 78.67% { transform: translateY(-4lh); }
326
+ 83.33%, 95% { transform: translateY(-5lh); }
327
+ 100% { transform: translateY(-6lh); }
328
+ }
329
+
60
330
  @media print {
61
- .text-rotate > span { animation: none; visibility: hidden; }
62
- .text-rotate > span:first-child { visibility: visible; }
331
+ .text-rotate > * { animation: none; transform: none; }
63
332
  }
64
333
  }
65
334
 
@@ -1,16 +1,71 @@
1
1
  @layer components {
2
- .text-rotate { display: inline-grid; color: var(--color-on-surface); vertical-align: baseline; }
3
- .text-rotate > span { grid-area: 1 / 1; visibility: hidden; }
4
- .text-rotate > span:first-child { visibility: visible; }
2
+ .text-rotate {
3
+ display: inline-block;
4
+ block-size: 1lh;
5
+ overflow: hidden;
6
+ vertical-align: bottom;
7
+ white-space: nowrap;
8
+ color: var(--color-on-surface);
9
+ }
10
+
11
+ .text-rotate > * {
12
+ display: grid;
13
+ justify-items: start;
14
+ will-change: transform;
15
+ }
16
+
17
+ .text-rotate > * > * {
18
+ block-size: 1lh;
19
+ align-content: baseline;
20
+ clip-path: inset(0.5px 0);
21
+ }
22
+
5
23
  @media (prefers-reduced-motion: no-preference) {
6
- .text-rotate-animated > span { animation: dm-text-rotate var(--text-rotate-duration, 6s) steps(1, end) infinite; }
7
- .text-rotate-animated > span:nth-child(2) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3); }
8
- .text-rotate-animated > span:nth-child(3) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3 * 2); }
9
- .text-rotate-animated:is(:hover, :focus-within, .text-rotate-paused) > span { animation-play-state: paused; }
24
+ .text-rotate > :has(> :nth-child(2)):not(:has(> :nth-child(3))) { animation: dm-text-rotate-2 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
25
+ .text-rotate > :has(> :nth-child(3)):not(:has(> :nth-child(4))) { animation: dm-text-rotate-3 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
26
+ .text-rotate > :has(> :nth-child(4)):not(:has(> :nth-child(5))) { animation: dm-text-rotate-4 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
27
+ .text-rotate > :has(> :nth-child(5)):not(:has(> :nth-child(6))) { animation: dm-text-rotate-5 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
28
+ .text-rotate > :has(> :nth-child(6)):not(:has(> :nth-child(7))) { animation: dm-text-rotate-6 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
29
+ .text-rotate:is(:hover, :focus-within, .text-rotate-paused) { --text-rotate-play-state: paused; }
30
+ }
31
+
32
+ @keyframes dm-text-rotate-2 {
33
+ 0%, 45% { transform: translateY(0); }
34
+ 50%, 95% { transform: translateY(-1lh); }
35
+ 100% { transform: translateY(-2lh); }
36
+ }
37
+ @keyframes dm-text-rotate-3 {
38
+ 0%, 28% { transform: translateY(0); }
39
+ 33%, 61% { transform: translateY(-1lh); }
40
+ 66%, 94% { transform: translateY(-2lh); }
41
+ 100% { transform: translateY(-3lh); }
42
+ }
43
+ @keyframes dm-text-rotate-4 {
44
+ 0%, 20% { transform: translateY(0); }
45
+ 25%, 45% { transform: translateY(-1lh); }
46
+ 50%, 70% { transform: translateY(-2lh); }
47
+ 75%, 95% { transform: translateY(-3lh); }
48
+ 100% { transform: translateY(-4lh); }
49
+ }
50
+ @keyframes dm-text-rotate-5 {
51
+ 0%, 15% { transform: translateY(0); }
52
+ 20%, 35% { transform: translateY(-1lh); }
53
+ 40%, 55% { transform: translateY(-2lh); }
54
+ 60%, 75% { transform: translateY(-3lh); }
55
+ 80%, 95% { transform: translateY(-4lh); }
56
+ 100% { transform: translateY(-5lh); }
57
+ }
58
+ @keyframes dm-text-rotate-6 {
59
+ 0%, 12% { transform: translateY(0); }
60
+ 16.67%, 28.67% { transform: translateY(-1lh); }
61
+ 33.33%, 45.33% { transform: translateY(-2lh); }
62
+ 50%, 62% { transform: translateY(-3lh); }
63
+ 66.67%, 78.67% { transform: translateY(-4lh); }
64
+ 83.33%, 95% { transform: translateY(-5lh); }
65
+ 100% { transform: translateY(-6lh); }
10
66
  }
11
- @keyframes dm-text-rotate { 0%, 33.32% { visibility: visible; } 33.33%, 100% { visibility: hidden; } }
67
+
12
68
  @media print {
13
- .text-rotate > span { animation: none; visibility: hidden; }
14
- .text-rotate > span:first-child { visibility: visible; }
69
+ .text-rotate > * { animation: none; transform: none; }
15
70
  }
16
71
  }
@@ -114,6 +114,23 @@ export const css = `/**
114
114
  background-color: var(--color-surface-container-high);
115
115
  }
116
116
 
117
+ .cascader:has(> .cascader-clear) .cascader-value {
118
+ padding-inline-end: 2rem;
119
+ }
120
+
121
+ .cascader > .cascader-clear {
122
+ position: absolute;
123
+ inset-block-start: 50%;
124
+ inset-inline-end: 2.75rem;
125
+ z-index: 1;
126
+ transform: translateY(-50%);
127
+ }
128
+
129
+ .cascader > .cascader-clear:focus-visible {
130
+ outline: 2px solid currentColor;
131
+ outline-offset: 2px;
132
+ }
133
+
117
134
  /* Cascader Dropdown */
118
135
  .cascader-dropdown {
119
136
  position: absolute;
@@ -135,7 +152,10 @@ export const css = `/**
135
152
 
136
153
  /* Popover API Support */
137
154
  .cascader-dropdown[popover] {
138
- inset: unset;
155
+ position: fixed;
156
+ inset: auto 0.5rem 0.5rem auto;
157
+ max-inline-size: calc(100dvw - 1rem);
158
+ max-block-size: min(16rem, calc(100dvh - 1rem));
139
159
  margin: 0;
140
160
  border: 1px solid var(--color-outline-variant);
141
161
  }
@@ -144,32 +164,14 @@ export const css = `/**
144
164
  display: flex;
145
165
  }
146
166
 
147
- /* CSS Anchor Positioning for modern browsers */
148
- @supports (anchor-name: --anchor) {
149
- .cascader-trigger {
150
- anchor-name: --cascader-anchor;
151
- }
152
-
167
+ /* The popovertarget invoker is the implicit anchor for its own dropdown. */
168
+ @supports (position-area: block-end) {
153
169
  .cascader-dropdown[popover] {
154
- position-anchor: --cascader-anchor;
155
- top: anchor(bottom);
156
- left: anchor(left);
157
- margin-top: 0.25rem;
158
- position-try-fallbacks: flip-block;
159
- }
160
- }
161
-
162
- /* Fallback for browsers without anchor positioning */
163
- @supports not (anchor-name: --anchor) {
164
- .cascader {
165
- position: relative;
166
- }
167
-
168
- .cascader-dropdown[popover]:popover-open {
169
- position: absolute;
170
- top: 100%;
171
- left: 0;
172
- margin-top: 0.25rem;
170
+ inset: auto;
171
+ margin-block: 0.25rem;
172
+ margin-inline: 0;
173
+ position-area: block-end span-inline-end;
174
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
173
175
  }
174
176
  }
175
177
 
@@ -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
 
@@ -1,25 +1,106 @@
1
1
  // Auto-generated from aura.css
2
- export const css = `@layer components {
2
+ export const css = `@property --dm-aura-angle {
3
+ syntax: '<angle>';
4
+ inherits: false;
5
+ initial-value: 0deg;
6
+ }
7
+ @layer components {
3
8
  .aura {
9
+ --aura-padding: 0.125rem;
10
+ --aura-radius: var(--radius-box);
4
11
  position: relative;
5
12
  isolation: isolate;
6
- border-radius: var(--radius-md);
7
- outline: 1px solid var(--color-primary);
13
+ display: inline-block;
14
+ padding: var(--aura-padding);
15
+ border-radius: calc(var(--aura-radius) + var(--aura-padding));
16
+ color: var(--color-primary);
8
17
  }
9
- .aura::before {
18
+
19
+ .aura:has(> :is(.btn, .input, .select, .textarea)) { --aura-radius: var(--radius-field); }
20
+ .aura:has(> :is(.badge, .checkbox, .toggle, .chip)) { --aura-radius: var(--radius-selector); }
21
+
22
+ .aura::before,
23
+ .aura::after {
10
24
  content: '';
11
25
  position: absolute;
12
26
  inset: 0;
13
27
  z-index: -1;
14
28
  border-radius: inherit;
15
- box-shadow: 0 0 1rem color-mix(in oklch, var(--color-primary) 35%, transparent);
29
+ background-image: conic-gradient(from var(--dm-aura-angle), transparent 0deg 220deg, currentColor 300deg, transparent 360deg);
16
30
  pointer-events: none;
17
31
  }
32
+
33
+ .aura::before {
34
+ opacity: 0.75;
35
+ filter: blur(0.2rem);
36
+ }
37
+
38
+ .aura::after {
39
+ opacity: 0.35;
40
+ filter: blur(0.9rem);
41
+ }
42
+
43
+ .aura > * {
44
+ position: relative;
45
+ z-index: 1;
46
+ }
47
+
48
+ .aura-dual::before,
49
+ .aura-dual::after {
50
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), transparent 0deg 70deg, currentColor 90deg 110deg, transparent 130deg 250deg, currentColor 270deg 290deg, transparent 310deg 360deg);
51
+ }
52
+
53
+ .aura-rainbow::before,
54
+ .aura-rainbow::after {
55
+ background-image: conic-gradient(from var(--dm-aura-angle) in oklch longer hue, transparent, oklch(78% 0.18 20), oklch(82% 0.16 140), oklch(76% 0.17 260), oklch(80% 0.18 350), transparent);
56
+ }
57
+
58
+ .aura-holo::before,
59
+ .aura-holo::after {
60
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(82% 0.17 327), oklch(75% 0.12 274), oklch(82% 0.11 191), oklch(91% 0.11 105), oklch(88% 0.08 68), oklch(82% 0.17 327) 12.5%);
61
+ }
62
+
63
+ .aura-gold::before,
64
+ .aura-gold::after {
65
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(66% 0.19 72), oklch(96% 0.08 103), oklch(72% 0.17 82), oklch(61% 0.12 76) 25%);
66
+ }
67
+
68
+ .aura-silver::before,
69
+ .aura-silver::after {
70
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(35% 0 0), oklch(92% 0 0), oklch(62% 0 0), oklch(82% 0 0), oklch(35% 0 0) 25%);
71
+ }
72
+
73
+ .aura-glow::before,
74
+ .aura-glow::after {
75
+ background-image: radial-gradient(closest-side, currentColor, transparent);
76
+ }
77
+
78
+ .aura-xs { --aura-padding: 0; }
79
+ .aura-sm { --aura-padding: 0.0625rem; }
80
+ .aura-md { --aura-padding: 0.125rem; }
81
+ .aura-lg { --aura-padding: 0.1875rem; }
82
+ .aura-xl { --aura-padding: 0.25rem; }
83
+
18
84
  @media (prefers-reduced-motion: no-preference) {
19
- .aura-animated::before { animation: dm-aura 4s ease-in-out infinite; }
85
+ .aura:not(.aura-glow)::before,
86
+ .aura:not(.aura-glow)::after {
87
+ animation: dm-aura-spin var(--aura-duration, var(--tw-duration, 6s)) linear infinite;
88
+ }
89
+
90
+ .aura-glow::before,
91
+ .aura-glow::after {
92
+ animation: dm-aura-glow var(--aura-duration, var(--tw-duration, 6s)) ease-in-out infinite;
93
+ }
94
+ }
95
+
96
+ @keyframes dm-aura-spin { to { --dm-aura-angle: 360deg; } }
97
+ @keyframes dm-aura-glow { 50% { opacity: 0.8; filter: blur(1.3rem); } }
98
+
99
+ @media print {
100
+ .aura { padding: 0; }
101
+ .aura::before,
102
+ .aura::after { display: none; }
20
103
  }
21
- @keyframes dm-aura { 50% { opacity: 0.4; } }
22
- @media print { .aura::before { display: none; } }
23
104
  }
24
105
  `;
25
106