morya-ui 0.2.7 → 0.2.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 (40) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Renderable-DHU4Jcfw.js +20 -0
  3. package/dist/component-registry.d.ts.map +1 -1
  4. package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
  5. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
  6. package/dist/components/Loading/Loading.vue.d.ts +25 -0
  7. package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
  8. package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
  9. package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
  10. package/dist/components/Loading/directive.d.ts +12 -0
  11. package/dist/components/Loading/directive.d.ts.map +1 -0
  12. package/dist/components/Loading/index.d.ts +8 -0
  13. package/dist/components/Loading/index.d.ts.map +1 -0
  14. package/dist/components/Loading/loading.d.ts +35 -0
  15. package/dist/components/Loading/loading.d.ts.map +1 -0
  16. package/dist/components/Loading/styles.css +386 -0
  17. package/dist/components/Loading/types.d.ts +74 -0
  18. package/dist/components/Loading/types.d.ts.map +1 -0
  19. package/dist/components/Loading/useLoading.d.ts +11 -0
  20. package/dist/components/Loading/useLoading.d.ts.map +1 -0
  21. package/dist/components/Page/PageContent.vue.d.ts +2 -2
  22. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
  23. package/dist/components/Rating/Rating.vue.d.ts +1 -1
  24. package/dist/components/Table/Table.vue.d.ts +1 -1
  25. package/dist/confirm-dialog/index.js +9 -9
  26. package/dist/content-h8POj44-.js +28 -0
  27. package/dist/index.d.ts +8 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +4152 -3697
  30. package/dist/loading/index.js +467 -0
  31. package/dist/loading/style.css +1377 -0
  32. package/dist/loading/style.js +3 -0
  33. package/dist/message/index.js +7 -6
  34. package/dist/resolver-map.d.ts.map +1 -1
  35. package/dist/resolver.js +1 -0
  36. package/dist/shared/config.d.ts.map +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/toast/index.js +12 -11
  39. package/package.json +9 -2
  40. package/dist/Renderable-BaaCI4tS.js +0 -45
@@ -0,0 +1,1377 @@
1
+ :root {
2
+ --m-color-primary: #2563eb;
3
+ --m-color-primary-hover: #1d4ed8;
4
+ --m-color-surface: #ffffff;
5
+ --m-color-text: #0f172a;
6
+ --m-color-text-muted: #64748b;
7
+ --m-color-border: #e2e8f0;
8
+ --m-color-focus-ring: #2563eb;
9
+ /* Naive-inspired control sizing (tiny omitted; medium = default) */
10
+ --m-control-height-small: 28px;
11
+ --m-control-height-medium: 34px;
12
+ --m-control-height-large: 40px;
13
+ --m-control-font-small: 14px;
14
+ --m-control-font-medium: 14px;
15
+ --m-control-font-large: 15px;
16
+ --m-control-padding-x-small: 10px;
17
+ --m-control-padding-x-medium: 12px;
18
+ --m-control-padding-x-large: 14px;
19
+
20
+ --m-radius-control: 3px;
21
+ --m-border-width: 1px;
22
+ --m-focus-shadow: 0 0 0 2px
23
+ color-mix(in srgb, var(--m-color-primary) 20%, transparent);
24
+ --m-focus-shadow-danger: 0 0 0 2px
25
+ color-mix(in srgb, var(--m-color-danger) 20%, transparent);
26
+ --m-color-success: #159570;
27
+ --m-color-info: #2563eb;
28
+ --m-color-warning: #d97706;
29
+ --m-color-warn: var(--m-color-warning);
30
+ --m-color-help: #9333ea;
31
+ --m-color-danger: #dc2626;
32
+ --m-color-contrast: #0f172a;
33
+ --m-color-contrast-fg: #ffffff;
34
+ --m-color-contrast-hover: #1e293b;
35
+ --m-color-contrast-active: #020617;
36
+ --m-color-on-emphasis: #ffffff;
37
+ --m-overlay-scrim: rgb(15 23 42 / 0.55);
38
+ --m-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.25);
39
+ --m-shadow-md: 0 0.75rem 2rem rgb(15 23 42 / 0.16);
40
+ --m-shadow-lg: 0 1rem 3rem rgb(15 23 42 / 0.25);
41
+ --m-shadow-raised: 0 0.25rem 0.75rem
42
+ color-mix(in srgb, var(--m-color-text) 14%, transparent);
43
+ --m-shadow-sticky: 4px 0 8px
44
+ color-mix(in srgb, var(--m-color-text) 6%, transparent);
45
+ --m-shadow-sticky-end: -4px 0 8px
46
+ color-mix(in srgb, var(--m-color-text) 6%, transparent);
47
+
48
+ /* Typography scale (component text, not control-height fonts) */
49
+ --m-font-size-xs: 0.75rem;
50
+ --m-font-size-sm: 0.8125rem;
51
+ --m-font-size-md: 0.875rem;
52
+ --m-font-size-lg: 1.125rem;
53
+ --m-opacity-disabled: 0.55;
54
+ /* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
55
+ --m-z-base: 1000;
56
+ --m-z-overlay: var(--m-z-base);
57
+ --m-z-overlay-raised: calc(var(--m-z-base) + 1);
58
+ --m-z-dropdown: calc(var(--m-z-base) + 50);
59
+ --m-z-tooltip: calc(var(--m-z-base) + 60);
60
+ --m-z-toast: calc(var(--m-z-base) + 100);
61
+ --m-z-popper: 40;
62
+
63
+ --m-control-affix-size: 2rem;
64
+ --m-control-affix-gap: 2.35rem;
65
+ --m-control-affix-padding: 2.5rem;
66
+ --m-space-1: 0.25rem;
67
+ --m-space-2: 0.5rem;
68
+ --m-space-3: 0.75rem;
69
+ --m-space-4: 1rem;
70
+ --m-space-5: 1.25rem;
71
+ --m-space-6: 1.5rem;
72
+ --m-space-8: 2rem;
73
+ --m-radius-sm: 0.25rem;
74
+ --m-radius-md: 0.5rem;
75
+ --m-radius-lg: 0.75rem;
76
+ --m-radius-full: 9999px;
77
+ --m-font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
78
+ --m-motion-fast: 150ms;
79
+ --m-motion-normal: 250ms;
80
+ --m-motion-ease: cubic-bezier(0.2, 0, 0, 1);
81
+ --m-motion-enter: 180ms;
82
+ --m-motion-exit: 130ms;
83
+ --m-motion-distance: 0.5rem;
84
+ --m-motion-spin: 1s;
85
+ --m-motion-spin-dash: 1.5s;
86
+ --m-motion-spin-fast: 0.8s;
87
+ --m-motion-spin-medium: 0.7s;
88
+ --m-motion-skeleton: 1.4s;
89
+ --m-motion-pulse: 1.2s;
90
+ --m-motion-scrollbar-show: 340ms;
91
+ --m-motion-scrollbar-hide: 120ms;
92
+ --m-dataview-grid-min: 10rem;
93
+ --m-tree-indent: 0.7rem;
94
+ --m-tree-indent-padding: var(--m-space-3);
95
+ --m-layout-trigger-bar-height: 4.5rem;
96
+ --m-layout-trigger-bar-offset: 1.75rem;
97
+ --m-layout-trigger-bar-width: 2rem;
98
+ --m-layout-trigger-bar-top: 2.25rem;
99
+ --m-timeline-event-min-height: 4rem;
100
+ --m-timeline-marker-size: 1.5rem;
101
+ --m-tag-font-size-small: var(--m-font-size-xs);
102
+ --m-slider-tooltip-offset: 1.5rem;
103
+ --m-slider-tooltip-padding-block: 0.15rem;
104
+ --m-slider-tooltip-padding-inline: 0.4rem;
105
+ --m-rating-star-size-small: 1rem;
106
+ --m-rating-star-size-medium: 1.25rem;
107
+ --m-rating-star-size-large: 1.5rem;
108
+ --m-rating-star-padding: 0.15rem;
109
+ --m-slider-marks-inset: 0.9rem;
110
+ --m-slider-marks-side: 0.5rem;
111
+ --m-stepper-connector-color: var(--m-color-border);
112
+
113
+ /* Table (Element Plus–aligned) */
114
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
115
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 3.5%, var(--m-color-surface));
116
+ --m-table-border-color: var(--m-color-border);
117
+ --m-table-header-bg: var(--m-color-fill-light);
118
+ --m-table-header-text: var(--m-color-text);
119
+ --m-table-text: var(--m-color-text);
120
+ --m-table-row-bg: var(--m-color-surface);
121
+ --m-table-row-hover-bg: var(--m-color-fill-light);
122
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
123
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 10%, var(--m-color-surface));
124
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
125
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
126
+ --m-table-font-size: var(--m-font-size-md);
127
+ --m-table-row-height: 40px;
128
+ --m-table-cell-line-height: 23px;
129
+ --m-table-cell-padding-inline: 12px;
130
+ }
131
+
132
+ :root[data-m-motion="reduced"] {
133
+ --m-motion-fast: 80ms;
134
+ --m-motion-normal: 120ms;
135
+ --m-motion-enter: 100ms;
136
+ --m-motion-exit: 80ms;
137
+ --m-motion-distance: 0;
138
+ }
139
+
140
+ :root[data-m-motion="none"] {
141
+ --m-motion-fast: 0ms;
142
+ --m-motion-normal: 0ms;
143
+ --m-motion-enter: 0ms;
144
+ --m-motion-exit: 0ms;
145
+ --m-motion-distance: 0;
146
+ }
147
+
148
+ /* Global density: scales spacing + control heights (Vuetify-inspired, WD tokens) */
149
+ :root,
150
+ [data-m-density="comfortable"] {
151
+ --m-density-scale: 1;
152
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-2));
153
+ --m-checkbox-control-size: 1.125rem;
154
+ }
155
+
156
+ [data-m-density="compact"] {
157
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-1));
158
+ --m-control-affix-padding: 2.15rem;
159
+ --m-control-affix-gap: 2rem;
160
+ --m-checkbox-control-size: 1rem;
161
+ --m-space-1: 0.2rem;
162
+ --m-space-2: 0.4rem;
163
+ --m-space-3: 0.6rem;
164
+ --m-space-4: 0.85rem;
165
+ --m-space-5: 1.05rem;
166
+ --m-space-6: 1.25rem;
167
+ --m-space-8: 1.7rem;
168
+ --m-control-height-small: 24px;
169
+ --m-control-height-medium: 28px;
170
+ --m-control-height-large: 34px;
171
+ --m-control-font-small: 13px;
172
+ --m-control-font-medium: 13px;
173
+ --m-control-font-large: 14px;
174
+ --m-control-padding-x-small: 8px;
175
+ --m-control-padding-x-medium: 10px;
176
+ --m-control-padding-x-large: 12px;
177
+ --m-table-row-height: 36px;
178
+ --m-table-cell-line-height: 20px;
179
+ --m-table-cell-padding-inline: 10px;
180
+ --m-table-font-size: var(--m-font-size-sm);
181
+ }
182
+
183
+ [data-m-density="spacious"] {
184
+ --m-menu-item-height: calc(var(--m-control-height-medium) + var(--m-space-3));
185
+ --m-control-affix-padding: 2.85rem;
186
+ --m-control-affix-gap: 2.65rem;
187
+ --m-checkbox-control-size: 1.25rem;
188
+ --m-space-1: 0.3rem;
189
+ --m-space-2: 0.6rem;
190
+ --m-space-3: 0.9rem;
191
+ --m-space-4: 1.15rem;
192
+ --m-space-5: 1.45rem;
193
+ --m-space-6: 1.75rem;
194
+ --m-space-8: 2.35rem;
195
+ --m-control-height-small: 32px;
196
+ --m-control-height-medium: 40px;
197
+ --m-control-height-large: 46px;
198
+ --m-control-font-small: 14px;
199
+ --m-control-font-medium: 15px;
200
+ --m-control-font-large: 16px;
201
+ --m-control-padding-x-small: 12px;
202
+ --m-control-padding-x-medium: 14px;
203
+ --m-control-padding-x-large: 16px;
204
+ --m-table-row-height: 48px;
205
+ --m-table-cell-line-height: 26px;
206
+ --m-table-cell-padding-inline: 16px;
207
+ --m-table-font-size: 1rem;
208
+ }
209
+
210
+ [data-m-density="compact"] .m-layout-header {
211
+ --m-layout-header-height: 3rem;
212
+ }
213
+
214
+ [data-m-density="compact"] .m-layout-footer {
215
+ --m-layout-footer-height: 2.5rem;
216
+ }
217
+
218
+ [data-m-density="compact"] .m-layout-sider {
219
+ --m-layout-sider-width: 15rem;
220
+ --m-layout-sider-collapsed-width: 3.25rem;
221
+ }
222
+
223
+ [data-m-density="spacious"] .m-layout-header {
224
+ --m-layout-header-height: 4rem;
225
+ }
226
+
227
+ [data-m-density="spacious"] .m-layout-footer {
228
+ --m-layout-footer-height: 3.5rem;
229
+ }
230
+
231
+ [data-m-density="spacious"] .m-layout-sider {
232
+ --m-layout-sider-width: 18rem;
233
+ --m-layout-sider-collapsed-width: 4.5rem;
234
+ }
235
+
236
+ [data-theme="dark"] {
237
+ --m-color-primary: #60a5fa;
238
+ --m-color-primary-hover: #93c5fd;
239
+ --m-color-surface: #0f172a;
240
+ --m-color-text: #f8fafc;
241
+ --m-color-text-muted: #94a3b8;
242
+ --m-color-border: #334155;
243
+ --m-color-focus-ring: #93c5fd;
244
+ --m-focus-shadow: 0 0 0 2px
245
+ color-mix(in srgb, var(--m-color-primary) 28%, transparent);
246
+ --m-focus-shadow-danger: 0 0 0 2px
247
+ color-mix(in srgb, var(--m-color-danger) 28%, transparent);
248
+ /* Mid solids: keep ≥~4.5:1 with --m-color-on-emphasis on dark surfaces */
249
+ --m-color-success: #0f766e;
250
+ --m-color-info: #1d4ed8;
251
+ --m-color-warning: #b45309;
252
+ --m-color-warn: var(--m-color-warning);
253
+ --m-color-help: #7e22ce;
254
+ --m-color-danger: #dc2626;
255
+ --m-color-contrast: #f8fafc;
256
+ --m-color-contrast-fg: #0f172a;
257
+ --m-color-contrast-hover: #e2e8f0;
258
+ --m-color-contrast-active: #cbd5e1;
259
+ --m-overlay-scrim: rgb(2 6 23 / 0.72);
260
+ --m-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.45);
261
+ --m-shadow-md: 0 0.75rem 2rem rgb(0 0 0 / 0.45);
262
+ --m-shadow-lg: 0 1rem 3rem rgb(0 0 0 / 0.55);
263
+ --m-shadow-raised: 0 0.25rem 0.75rem
264
+ color-mix(in srgb, var(--m-color-text) 22%, transparent);
265
+ --m-shadow-sticky: 4px 0 8px
266
+ color-mix(in srgb, #000 35%, transparent);
267
+ --m-shadow-sticky-end: -4px 0 8px
268
+ color-mix(in srgb, #000 35%, transparent);
269
+
270
+ --m-table-border-color: color-mix(in srgb, var(--m-color-border) 88%, var(--m-color-text));
271
+ --m-color-fill-light: color-mix(in srgb, var(--m-color-text) 10%, var(--m-color-surface));
272
+ --m-color-fill-lighter: color-mix(in srgb, var(--m-color-text) 6%, var(--m-color-surface));
273
+ --m-table-header-bg: var(--m-color-fill-light);
274
+ --m-table-row-bg: var(--m-color-surface);
275
+ --m-table-row-hover-bg: color-mix(in srgb, var(--m-color-text) 8%, var(--m-color-surface));
276
+ --m-table-row-striped-bg: var(--m-color-fill-lighter);
277
+ --m-table-row-current-bg: color-mix(in srgb, var(--m-color-primary) 16%, var(--m-color-surface));
278
+ --m-table-row-selected-bg: color-mix(in srgb, var(--m-color-primary) 20%, var(--m-color-surface));
279
+ --m-table-expanded-bg: var(--m-color-fill-lighter);
280
+ }
281
+
282
+ /* Shared tokens consumption, type, focus, and mixed selectors. */
283
+
284
+ :root {
285
+ /* Shared minimum width for menu-like panels (select/orderlist/picklist) */
286
+ --m-menu-min-width: 12rem;
287
+ }
288
+
289
+ .m-button,
290
+ .m-input,
291
+ .m-card,
292
+ .m-dialog,
293
+ .m-drawer,
294
+ .m-popover,
295
+ .m-accordion,
296
+ .m-scrollbar,
297
+ .m-panel,
298
+ .m-fieldset,
299
+ .m-flex,
300
+ .m-space,
301
+ .m-grid,
302
+ .m-layout,
303
+ .m-layout-header,
304
+ .m-layout-footer,
305
+ .m-layout-sider,
306
+ .m-splitter,
307
+ .m-stepper,
308
+ .m-toolbar,
309
+ .m-page-content,
310
+ .m-page-header,
311
+ .m-page-toolbar,
312
+ .m-menu,
313
+ .m-menubar,
314
+ .m-contextmenu,
315
+ .m-tieredmenu,
316
+ .m-dropdown,
317
+ .m-breadcrumb,
318
+ .m-tabs,
319
+ .m-datepicker,
320
+ .m-listbox,
321
+ .m-togglebutton,
322
+ .m-selectbutton,
323
+ .m-inputotp,
324
+ .m-knob,
325
+ .m-autocomplete,
326
+ .m-splitbutton,
327
+ .m-tree,
328
+ .m-timeline,
329
+ .m-dataview,
330
+ .m-confirmpopup,
331
+ .m-scrolltop,
332
+ .m-blockui,
333
+ .m-inplace,
334
+ .m-message,
335
+ .m-toast,
336
+ .m-tooltip,
337
+ .m-empty,
338
+ .m-result,
339
+ .m-progress-spinner,
340
+ .m-cascadeselect,
341
+ .m-treeselect,
342
+ .m-inputcolor,
343
+ .m-inputtags,
344
+ .m-label,
345
+ .m-speeddial,
346
+ .m-orderlist,
347
+ .m-picklist,
348
+ .m-virtualscroller,
349
+ .m-treetable,
350
+ .m-megamenu,
351
+ .m-dock,
352
+ .m-sidebar,
353
+ .m-commandmenu,
354
+ .m-fileupload,
355
+ .m-carousel,
356
+ .m-gallery,
357
+ .m-metergroup,
358
+ .m-fluid,
359
+ .m-terminal {
360
+ font-family: var(--m-font-sans);
361
+ box-sizing: border-box;
362
+ }
363
+
364
+ .m-button:disabled,
365
+ .m-input:disabled,
366
+ .m-password__input:disabled,
367
+ .m-inputnumber__input:disabled,
368
+ .m-inputotp__input:disabled,
369
+ .m-inputcolor__text:disabled,
370
+ .m-inputcolor__swatch:disabled,
371
+ .m-inputtags--disabled {
372
+ cursor: not-allowed;
373
+ opacity: var(--m-opacity-disabled);
374
+ }
375
+
376
+ .m-input::placeholder,
377
+ .m-textarea::placeholder,
378
+ .m-password__input::placeholder,
379
+ .m-inputnumber__input::placeholder,
380
+ .m-inputtags__input::placeholder,
381
+ .m-inputcolor__text::placeholder {
382
+ color: var(--m-color-text-muted);
383
+ opacity: 1;
384
+ }
385
+
386
+ .m-input-field__meta,
387
+ .m-textarea-field__meta,
388
+ .m-password-field__meta {
389
+ align-items: baseline;
390
+ display: flex;
391
+ gap: var(--m-space-2);
392
+ justify-content: space-between;
393
+ }
394
+
395
+ .m-input-field__meta:not(:has(.m-input-field__help)),
396
+ .m-textarea-field__meta:not(:has(.m-textarea-field__help)),
397
+ .m-password-field__meta:not(:has(.m-password__feedback)) {
398
+ justify-content: flex-end;
399
+ }
400
+
401
+ .m-input-field__count,
402
+ .m-textarea-field__count,
403
+ .m-password-field__count {
404
+ color: var(--m-color-text-muted);
405
+ flex: 0 0 auto;
406
+ font-size: var(--m-font-size-xs);
407
+ margin-left: auto;
408
+ }
409
+
410
+ .m-dropdown__item--parent {
411
+ align-items: center;
412
+ display: flex;
413
+ justify-content: space-between;
414
+ width: 100%;
415
+ }
416
+
417
+ .m-dropdown__icon,
418
+ .m-dropdown__caret,
419
+ .m-menu__icon,
420
+ .m-menubar__icon {
421
+ flex-shrink: 0;
422
+ }
423
+
424
+ .m-dropdown__submenu-wrap {
425
+ position: relative;
426
+ }
427
+
428
+ .m-dropdown__submenu {
429
+ --m-dropdown-submenu-max-height: min(18rem, 45vh);
430
+ background: var(--m-color-surface);
431
+ border: var(--m-border-width) solid var(--m-color-border);
432
+ border-radius: var(--m-radius-md);
433
+ box-shadow: var(--m-shadow-md);
434
+ max-height: var(--m-dropdown-submenu-max-height);
435
+ min-width: 10rem;
436
+ overflow: hidden;
437
+ padding: var(--m-space-1);
438
+ }
439
+
440
+ .m-dropdown__submenu--teleported {
441
+ position: fixed;
442
+ z-index: var(--m-z-dropdown);
443
+ }
444
+
445
+ .m-dropdown__submenu-scroll {
446
+ max-height: calc(var(--m-dropdown-submenu-max-height) - var(--m-space-2));
447
+ min-height: 0;
448
+ }
449
+
450
+ .m-dropdown__submenu-view {
451
+ display: grid;
452
+ gap: var(--m-space-1);
453
+ }
454
+
455
+ .m-fade-enter-active,
456
+ .m-fade-leave-active {
457
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
458
+ }
459
+
460
+ .m-fade-enter-from,
461
+ .m-fade-leave-to {
462
+ opacity: 0;
463
+ }
464
+
465
+ .m-scale-fade-enter-active {
466
+ transition:
467
+ opacity var(--m-motion-enter) var(--m-motion-ease),
468
+ transform var(--m-motion-enter) var(--m-motion-ease);
469
+ }
470
+
471
+ .m-scale-fade-leave-active {
472
+ transition:
473
+ opacity var(--m-motion-exit) var(--m-motion-ease),
474
+ transform var(--m-motion-exit) var(--m-motion-ease);
475
+ }
476
+
477
+ .m-scale-fade-enter-from,
478
+ .m-scale-fade-leave-to {
479
+ opacity: 0;
480
+ transform: translateY(calc(var(--m-motion-distance) * -1)) scale(0.98);
481
+ }
482
+
483
+ .m-slide-fade-enter-active {
484
+ transition:
485
+ opacity var(--m-motion-enter) var(--m-motion-ease),
486
+ transform var(--m-motion-enter) var(--m-motion-ease);
487
+ }
488
+
489
+ .m-slide-fade-leave-active {
490
+ transition:
491
+ opacity var(--m-motion-exit) var(--m-motion-ease),
492
+ transform var(--m-motion-exit) var(--m-motion-ease);
493
+ }
494
+
495
+ .m-slide-fade-enter-from,
496
+ .m-slide-fade-leave-to {
497
+ opacity: 0;
498
+ transform: translateY(calc(var(--m-motion-distance) * -1));
499
+ }
500
+
501
+ @media (prefers-reduced-motion: reduce) {
502
+ html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
503
+ html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
504
+ html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
505
+ html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
506
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
507
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active {
508
+ transition: none;
509
+ }
510
+
511
+ html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
512
+ html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
513
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
514
+ html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to {
515
+ transform: none;
516
+ }
517
+ }
518
+
519
+ [data-m-motion="reduced"] .m-fade-enter-active,
520
+ [data-m-motion="reduced"] .m-fade-leave-active,
521
+ [data-m-motion="reduced"] .m-scale-fade-enter-active,
522
+ [data-m-motion="reduced"] .m-scale-fade-leave-active,
523
+ [data-m-motion="reduced"] .m-slide-fade-enter-active,
524
+ [data-m-motion="reduced"] .m-slide-fade-leave-active,
525
+ [data-m-motion="none"] .m-fade-enter-active,
526
+ [data-m-motion="none"] .m-fade-leave-active,
527
+ [data-m-motion="none"] .m-scale-fade-enter-active,
528
+ [data-m-motion="none"] .m-scale-fade-leave-active,
529
+ [data-m-motion="none"] .m-slide-fade-enter-active,
530
+ [data-m-motion="none"] .m-slide-fade-leave-active {
531
+ transition: none;
532
+ }
533
+
534
+ [data-m-motion="reduced"] .m-scale-fade-enter-from,
535
+ [data-m-motion="reduced"] .m-scale-fade-leave-to,
536
+ [data-m-motion="reduced"] .m-slide-fade-enter-from,
537
+ [data-m-motion="reduced"] .m-slide-fade-leave-to,
538
+ [data-m-motion="none"] .m-scale-fade-enter-from,
539
+ [data-m-motion="none"] .m-scale-fade-leave-to,
540
+ [data-m-motion="none"] .m-slide-fade-enter-from,
541
+ [data-m-motion="none"] .m-slide-fade-leave-to {
542
+ transform: none;
543
+ }
544
+
545
+ /* Shared loading spinner rotation (ProgressSpinner, Switch, ProgressBar, AutoComplete) */
546
+ @keyframes m-progress-spinner-rotate {
547
+ 100% {
548
+ transform: rotate(360deg);
549
+ }
550
+ }
551
+
552
+ .m-checkbox,
553
+ .m-radio,
554
+ .m-switch {
555
+ align-items: center;
556
+ color: var(--m-color-text);
557
+ cursor: pointer;
558
+ display: inline-flex;
559
+ font-family: var(--m-font-sans);
560
+ gap: var(--m-space-2);
561
+ /* 避免绝对定位 input 挂到上层 MScrollbar,聚焦时把滚动容器拽回顶部 */
562
+ position: relative;
563
+ }
564
+
565
+ .m-checkbox--disabled,
566
+ .m-radio--disabled,
567
+ .m-switch--disabled {
568
+ color: var(--m-color-text-muted);
569
+ cursor: not-allowed;
570
+ opacity: var(--m-opacity-disabled);
571
+ }
572
+
573
+ .m-checkbox--invalid .m-checkbox__control,
574
+ .m-radio--invalid .m-radio__control {
575
+ border-color: var(--m-color-danger);
576
+ }
577
+
578
+ .m-checkbox__input,
579
+ .m-radio__input,
580
+ .m-switch__input {
581
+ clip: rect(0, 0, 0, 0);
582
+ clip-path: inset(50%);
583
+ height: 1px;
584
+ margin: -1px;
585
+ overflow: hidden;
586
+ opacity: 0;
587
+ position: absolute;
588
+ white-space: nowrap;
589
+ width: 1px;
590
+ }
591
+
592
+ .m-checkbox__control,
593
+ .m-radio__control {
594
+ align-items: center;
595
+ background: var(--m-color-surface);
596
+ border: var(--m-border-width) solid var(--m-color-border);
597
+ display: inline-flex;
598
+ flex: 0 0 auto;
599
+ height: var(--m-checkbox-control-size, 1.125rem);
600
+ justify-content: center;
601
+ transition:
602
+ background-color var(--m-motion-fast) var(--m-motion-ease),
603
+ border-color var(--m-motion-fast) var(--m-motion-ease),
604
+ box-shadow var(--m-motion-fast) var(--m-motion-ease);
605
+ width: var(--m-checkbox-control-size, 1.125rem);
606
+ }
607
+
608
+ .m-checkbox__input:checked + .m-checkbox__control,
609
+ .m-radio__input:checked + .m-radio__control {
610
+ background: var(--m-color-primary);
611
+ border-color: var(--m-color-primary);
612
+ }
613
+
614
+ .m-checkbox:not(.m-checkbox--disabled):hover .m-checkbox__control,
615
+ .m-radio:not(.m-radio--disabled):hover .m-radio__control {
616
+ border-color: color-mix(in srgb, var(--m-color-primary) 45%, var(--m-color-border));
617
+ }
618
+
619
+ .m-checkbox__input:focus-visible + .m-checkbox__control,
620
+ .m-radio__input:focus-visible + .m-radio__control,
621
+ .m-switch__input:focus-visible + .m-switch__track {
622
+ box-shadow: var(--m-focus-shadow);
623
+ outline: none;
624
+ }
625
+
626
+ .m-checkbox__label,
627
+ .m-radio__label,
628
+ .m-switch__label {
629
+ font-size: var(--m-font-size-md);
630
+ }
631
+
632
+ .m-textarea-field,
633
+ .m-select-field {
634
+ display: grid;
635
+ font-family: var(--m-font-sans);
636
+ gap: var(--m-space-2);
637
+ max-width: 100%;
638
+ min-width: var(--m-menu-min-width);
639
+ position: relative;
640
+ width: fit-content;
641
+ }
642
+
643
+ .m-textarea-field--fluid,
644
+ .m-select-field--fluid {
645
+ width: 100%;
646
+ }
647
+
648
+ .m-textarea-field__label,
649
+ .m-select-field__label {
650
+ color: var(--m-color-text);
651
+ font-family: var(--m-font-sans);
652
+ font-size: var(--m-font-size-md);
653
+ font-weight: 600;
654
+ }
655
+
656
+ .m-textarea-field__help,
657
+ .m-select-field__help {
658
+ color: var(--m-color-text-muted);
659
+ font-size: var(--m-font-size-xs);
660
+ }
661
+
662
+ .m-textarea-field__help--invalid,
663
+ .m-select-field__help--invalid {
664
+ color: var(--m-color-danger);
665
+ }
666
+
667
+ .m-textarea,
668
+ .m-select {
669
+ background: var(--m-color-surface);
670
+ border: var(--m-border-width) solid var(--m-color-border);
671
+ border-radius: var(--m-radius-control);
672
+ color: var(--m-color-text);
673
+ font: inherit;
674
+ transition:
675
+ border-color var(--m-motion-fast) var(--m-motion-ease),
676
+ box-shadow var(--m-motion-fast) var(--m-motion-ease),
677
+ background-color var(--m-motion-fast) var(--m-motion-ease);
678
+ width: 100%;
679
+ }
680
+
681
+ .m-textarea--invalid:focus-visible,
682
+ .m-select--invalid.m-select--open,
683
+ .m-select--invalid:focus-visible {
684
+ border-color: var(--m-color-danger);
685
+ box-shadow: var(--m-focus-shadow-danger);
686
+ }
687
+
688
+ .m-textarea:disabled,
689
+ .m-select:disabled,
690
+ .m-select--disabled {
691
+ cursor: not-allowed;
692
+ opacity: var(--m-opacity-disabled);
693
+ }
694
+
695
+ .m-icon-field--left :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
696
+ padding-left: var(--m-control-affix-padding);
697
+ }
698
+
699
+ .m-icon-field--right :is(.m-input, .m-password__input, .m-inputnumber__input, input) {
700
+ padding-right: var(--m-control-affix-padding);
701
+ }
702
+
703
+ .m-inputgroup > .m-input,
704
+ .m-inputgroup > .m-input-field,
705
+ .m-inputgroup > .m-password-field,
706
+ .m-inputgroup > .m-inputnumber-field {
707
+ flex: 1 1 auto;
708
+ min-width: 0;
709
+ }
710
+
711
+ .m-inputgroup > .m-input-field,
712
+ .m-inputgroup > .m-password-field,
713
+ .m-inputgroup > .m-inputnumber-field {
714
+ display: flex;
715
+ flex-direction: column;
716
+ gap: 0;
717
+ }
718
+
719
+ .m-inputgroup > .m-input,
720
+ .m-inputgroup .m-input,
721
+ .m-inputgroup .m-password__input,
722
+ .m-inputgroup .m-inputnumber__input {
723
+ border-radius: 0;
724
+ width: 100%;
725
+ }
726
+
727
+ .m-inputgroup > :first-child.m-input,
728
+ .m-inputgroup > :first-child .m-input,
729
+ .m-inputgroup > :first-child .m-password__input,
730
+ .m-inputgroup > :first-child .m-inputnumber__input,
731
+ .m-inputgroup > :first-child.m-inputgroup-addon {
732
+ border-bottom-left-radius: var(--m-radius-control);
733
+ border-top-left-radius: var(--m-radius-control);
734
+ }
735
+
736
+ .m-inputgroup > :last-child.m-input,
737
+ .m-inputgroup > :last-child .m-input,
738
+ .m-inputgroup > :last-child .m-password__input,
739
+ .m-inputgroup > :last-child .m-inputnumber__input,
740
+ .m-inputgroup > :last-child.m-inputgroup-addon {
741
+ border-bottom-right-radius: var(--m-radius-control);
742
+ border-top-right-radius: var(--m-radius-control);
743
+ }
744
+
745
+ .m-inputgroup > .m-inputgroup-addon + .m-input,
746
+ .m-inputgroup > .m-inputgroup-addon + .m-input-field .m-input,
747
+ .m-inputgroup > .m-input + .m-inputgroup-addon,
748
+ .m-inputgroup > .m-input-field + .m-inputgroup-addon {
749
+ margin-left: calc(var(--m-border-width) * -1);
750
+ }
751
+
752
+ .m-layout__scrollbar > .m-scrollbar__wrap {
753
+ height: 100%;
754
+ overflow-x: hidden;
755
+ }
756
+
757
+ .m-layout-sider__scrollbar > .m-scrollbar__wrap {
758
+ height: 100%;
759
+ overflow-x: hidden;
760
+ }
761
+
762
+ .m-treetable__scrollbar > .m-scrollbar__wrap,
763
+ .m-terminal__scrollbar > .m-scrollbar__wrap {
764
+ height: 100%;
765
+ overflow-x: hidden;
766
+ }
767
+
768
+ .m-scroll-body.m-scrollbar {
769
+ min-height: 0;
770
+ min-width: 0;
771
+ }
772
+
773
+ /* fit-content scroll wrappers: grow with content; max-height only clips when set on the wrapper */
774
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) {
775
+ width: 100%;
776
+ }
777
+
778
+ .m-scrollbar--fit-content.m-scrollbar--fill:not(.m-layout__scrollbar):not(.m-layout-sider__scrollbar):not(.m-scroll-body) .m-scrollbar__wrap {
779
+ overflow: auto;
780
+ }
781
+
782
+ .m-orderlist__btn,
783
+ .m-picklist__btn {
784
+ align-items: center;
785
+ background: var(--m-color-surface);
786
+ border: var(--m-border-width) solid var(--m-color-border);
787
+ border-radius: var(--m-radius-sm);
788
+ color: var(--m-color-text);
789
+ cursor: pointer;
790
+ display: inline-flex;
791
+ font: inherit;
792
+ gap: 0;
793
+ justify-content: center;
794
+ min-height: var(--m-control-height-small, 1.75rem);
795
+ min-width: var(--m-control-affix-size);
796
+ padding: var(--m-space-1) var(--m-space-2);
797
+ }
798
+
799
+ .m-orderlist__btn:hover:not(:disabled),
800
+ .m-picklist__btn:hover:not(:disabled) {
801
+ border-color: var(--m-color-primary);
802
+ color: var(--m-color-primary);
803
+ }
804
+
805
+ .m-orderlist__btn:disabled,
806
+ .m-picklist__btn:disabled {
807
+ cursor: not-allowed;
808
+ opacity: var(--m-opacity-disabled);
809
+ }
810
+
811
+ .m-orderlist__btn:focus-visible,
812
+ .m-picklist__btn:focus-visible {
813
+ border-color: var(--m-color-primary);
814
+ box-shadow: var(--m-focus-shadow);
815
+ outline: none;
816
+ }
817
+
818
+ .m-picklist__btn .m-icon + .m-icon {
819
+ margin-left: -0.35rem;
820
+ }
821
+
822
+ .m-orderlist__scrollbar,
823
+ .m-picklist__scrollbar {
824
+ flex: 1;
825
+ max-height: 16rem;
826
+ min-height: 12rem;
827
+ min-width: var(--m-menu-min-width);
828
+ }
829
+
830
+ .m-orderlist__list,
831
+ .m-picklist__list {
832
+ background: var(--m-color-surface);
833
+ border: var(--m-border-width) solid var(--m-color-border);
834
+ border-radius: var(--m-radius-md);
835
+ padding: var(--m-space-1);
836
+ }
837
+
838
+ .m-orderlist__options,
839
+ .m-picklist__options {
840
+ list-style: none;
841
+ margin: 0;
842
+ padding: 0;
843
+ }
844
+
845
+ .m-orderlist__item,
846
+ .m-picklist__item {
847
+ border-radius: var(--m-radius-sm);
848
+ cursor: pointer;
849
+ padding: var(--m-space-2) var(--m-space-3);
850
+ }
851
+
852
+ .m-orderlist__item:hover,
853
+ .m-picklist__item:hover {
854
+ background: color-mix(in srgb, var(--m-color-primary) 8%, var(--m-color-surface));
855
+ }
856
+
857
+ .m-orderlist__item:focus-visible,
858
+ .m-picklist__item:focus-visible {
859
+ box-shadow: var(--m-focus-shadow);
860
+ outline: none;
861
+ }
862
+
863
+ .m-orderlist__item--selected,
864
+ .m-picklist__item--selected {
865
+ background: color-mix(in srgb, var(--m-color-primary) 14%, var(--m-color-surface));
866
+ color: var(--m-color-primary);
867
+ font-weight: 600;
868
+ }
869
+
870
+ .m-carousel__nav,
871
+ .m-gallery__nav {
872
+ background: var(--m-color-surface);
873
+ border: var(--m-border-width) solid var(--m-color-border);
874
+ border-radius: var(--m-radius-full, 999px);
875
+ color: var(--m-color-text);
876
+ cursor: pointer;
877
+ flex: 0 0 auto;
878
+ font: inherit;
879
+ height: var(--m-control-affix-size);
880
+ width: var(--m-control-affix-size);
881
+ }
882
+
883
+ .m-carousel__nav:disabled,
884
+ .m-gallery__nav:disabled {
885
+ cursor: not-allowed;
886
+ opacity: var(--m-opacity-disabled);
887
+ }
888
+
889
+ /* Shared Naive-like hover/focus for remaining form triggers */
890
+ .m-inputnumber__input:hover:not(:disabled):not(:focus),
891
+ .m-password__input:hover:not(:disabled):not(:focus),
892
+ .m-datepicker__input:hover:not(:disabled):not(:focus),
893
+ .m-inputotp__input:hover:not(:disabled):not(:focus),
894
+ .m-cascadeselect__trigger:hover:not(:disabled):not(:focus-visible),
895
+ .m-treeselect__trigger:hover:not(:disabled):not(:focus-visible),
896
+ .m-inputcolor__text:hover:not(:disabled):not(:focus),
897
+ .m-inputtags:hover:not(.m-inputtags--disabled),
898
+ .m-togglebutton:hover:not(:disabled):not(.m-togglebutton--checked),
899
+ .m-inplace__display:hover {
900
+ border-color: var(--m-color-primary-hover);
901
+ }
902
+
903
+ .m-inputnumber__input:focus-visible,
904
+ .m-password__input:focus-visible,
905
+ .m-datepicker__input:focus-visible,
906
+ .m-inputotp__input:focus-visible,
907
+ .m-cascadeselect__trigger:focus-visible,
908
+ .m-treeselect__trigger:focus-visible,
909
+ .m-inputcolor__text:focus-visible,
910
+ .m-inputtags:focus-within,
911
+ .m-togglebutton:focus-visible,
912
+ .m-selectbutton__button:focus-visible,
913
+ .m-splitbutton__main:focus-visible,
914
+ .m-splitbutton__trigger:focus-visible,
915
+ .m-inplace__display:focus-visible,
916
+ .m-pagination__button:focus-visible {
917
+ border-color: var(--m-color-primary-hover);
918
+ box-shadow: var(--m-focus-shadow);
919
+ outline: none;
920
+ }
921
+
922
+ .m-inputnumber--invalid .m-inputnumber__input:focus-visible,
923
+ .m-password--invalid .m-password__input:focus-visible,
924
+ .m-datepicker--invalid .m-datepicker__input:focus-visible,
925
+ .m-inputotp--invalid .m-inputotp__input:focus-visible,
926
+ .m-inputtags--invalid:focus-within,
927
+ .m-inputcolor--invalid .m-inputcolor__text:focus-visible {
928
+ border-color: var(--m-color-danger);
929
+ box-shadow: var(--m-focus-shadow-danger);
930
+ }
931
+
932
+ .m-checkbox-group,
933
+ .m-radio-group {
934
+ display: flex;
935
+ flex-wrap: wrap;
936
+ gap: var(--m-space-3);
937
+ }
938
+
939
+ .m-checkbox--small .m-checkbox__control,
940
+ .m-radio--small .m-radio__control {
941
+ height: 0.95rem;
942
+ width: 0.95rem;
943
+ }
944
+
945
+ .m-checkbox--large .m-checkbox__control,
946
+ .m-radio--large .m-radio__control {
947
+ height: 1.35rem;
948
+ width: 1.35rem;
949
+ }
950
+
951
+ .m-inputnumber__clear,
952
+ .m-autocomplete__clear {
953
+ background: transparent;
954
+ border: 0;
955
+ color: var(--m-color-text-muted);
956
+ cursor: pointer;
957
+ font: inherit;
958
+ line-height: 1;
959
+ }
960
+
961
+ [data-m-motion="none"] *,
962
+ [data-m-motion="none"] *::before,
963
+ [data-m-motion="none"] *::after {
964
+ animation-duration: 0.01ms !important;
965
+ animation-iteration-count: 1 !important;
966
+ scroll-behavior: auto !important;
967
+ transition-duration: 0.01ms !important;
968
+ }
969
+
970
+ [data-m-motion="reduced"] .m-progress-spinner,
971
+ [data-m-motion="reduced"] .m-progress-spinner__circle,
972
+ [data-m-motion="reduced"] .m-skeleton,
973
+ [data-m-motion="reduced"] .m-badge--processing,
974
+ [data-m-motion="reduced"] .m-icon--spin,
975
+ [data-m-motion="reduced"] .m-button__spinner,
976
+ [data-m-motion="reduced"] .m-select__loading-icon,
977
+ [data-m-motion="reduced"] .m-switch__loading-icon {
978
+ animation: none !important;
979
+ }
980
+
981
+ @media (prefers-reduced-motion: reduce) {
982
+ html:not([data-m-ignore-reduced-motion]) *,
983
+ html:not([data-m-ignore-reduced-motion]) *::before,
984
+ html:not([data-m-ignore-reduced-motion]) *::after {
985
+ animation-duration: 0.01ms !important;
986
+ animation-iteration-count: 1 !important;
987
+ scroll-behavior: auto !important;
988
+ transition-duration: 0.01ms !important;
989
+ }
990
+ }
991
+
992
+ /* —— Feedback: Loading —— */
993
+
994
+ .m-loading {
995
+ position: relative;
996
+ }
997
+
998
+ .m-loading--fullscreen {
999
+ inset: 0;
1000
+ position: fixed;
1001
+ z-index: var(--m-loading-z-index, calc(var(--m-z-base) + 200));
1002
+ }
1003
+
1004
+ .m-loading__content {
1005
+ position: relative;
1006
+ }
1007
+
1008
+ .m-loading--active .m-loading__content {
1009
+ pointer-events: none;
1010
+ user-select: none;
1011
+ }
1012
+
1013
+ .m-loading-parent--relative {
1014
+ position: relative;
1015
+ }
1016
+
1017
+ .m-loading-mask {
1018
+ --m-loading-z-index: calc(var(--m-z-base) + 200);
1019
+ --m-loading-mask-bg: color-mix(in srgb, var(--m-color-surface) 80%, transparent);
1020
+ align-items: center;
1021
+ background: var(--m-loading-mask-bg);
1022
+ display: flex;
1023
+ inset: 0;
1024
+ justify-content: center;
1025
+ position: absolute;
1026
+ z-index: 10;
1027
+ }
1028
+
1029
+ .m-loading-mask--fullscreen,
1030
+ .m-loading-mask--body {
1031
+ position: fixed;
1032
+ z-index: var(--m-loading-z-index);
1033
+ }
1034
+
1035
+ .m-loading-mask--body {
1036
+ inset: auto;
1037
+ }
1038
+
1039
+ .m-loading-enter-active {
1040
+ transition: opacity var(--m-motion-enter) var(--m-motion-ease);
1041
+ }
1042
+
1043
+ .m-loading-leave-active {
1044
+ transition: opacity var(--m-motion-exit) var(--m-motion-ease);
1045
+ }
1046
+
1047
+ .m-loading-enter-from,
1048
+ .m-loading-leave-to {
1049
+ opacity: 0;
1050
+ }
1051
+
1052
+ .m-loading-indicator {
1053
+ --m-loading-c1: var(--m-color-primary);
1054
+ --m-loading-c2: color-mix(in srgb, var(--m-color-primary) 62%, white);
1055
+ --m-loading-c3: var(--m-color-success);
1056
+ --m-loading-c4: var(--m-color-warning);
1057
+ --m-loading-c5: var(--m-color-danger);
1058
+ --m-loading-c6: var(--m-color-text-muted);
1059
+ --m-loading-spin: var(--m-motion-spin);
1060
+ --m-loading-aurora-glow: 3s;
1061
+ --m-loading-bounce: 0.6s;
1062
+ --m-loading-wave: var(--m-motion-spin-medium);
1063
+ --m-loading-pulse: 1.8s;
1064
+ --m-loading-stardust: 1.6s;
1065
+ --m-loading-circular-rotate: 2s;
1066
+ --m-loading-circular-dash: var(--m-motion-spin-dash);
1067
+ --m-loading-scale: 1;
1068
+
1069
+ align-items: center;
1070
+ display: inline-flex;
1071
+ flex-direction: column;
1072
+ font-family: var(--m-font-sans);
1073
+ gap: var(--m-space-3);
1074
+ justify-content: center;
1075
+ }
1076
+
1077
+ .m-loading-indicator__graphic {
1078
+ align-items: center;
1079
+ display: inline-flex;
1080
+ justify-content: center;
1081
+ transform: scale(var(--m-loading-scale));
1082
+ }
1083
+
1084
+ .m-loading-indicator__tip {
1085
+ color: var(--m-color-text-muted);
1086
+ font-size: var(--m-font-size-sm);
1087
+ line-height: 1;
1088
+ margin: 0;
1089
+ }
1090
+
1091
+ .m-loading-indicator--small {
1092
+ --m-loading-scale: 0.85;
1093
+ }
1094
+
1095
+ .m-loading-indicator--large {
1096
+ --m-loading-scale: 1.15;
1097
+ }
1098
+
1099
+ .m-loading-aurora,
1100
+ .m-loading-pulse,
1101
+ .m-loading-stardust {
1102
+ height: 3.75rem;
1103
+ position: relative;
1104
+ width: 3.75rem;
1105
+ }
1106
+
1107
+ .m-loading-aurora__ring {
1108
+ animation: m-loading-spin var(--m-loading-spin) cubic-bezier(0.5, 0, 0.5, 1) infinite;
1109
+ border: 4px solid transparent;
1110
+ border-bottom-color: var(--m-loading-c2);
1111
+ border-left-color: var(--m-loading-c3);
1112
+ border-radius: 50%;
1113
+ border-right-color: var(--m-loading-c5);
1114
+ border-top-color: var(--m-loading-c1);
1115
+ box-sizing: border-box;
1116
+ height: 100%;
1117
+ position: relative;
1118
+ width: 100%;
1119
+ z-index: 2;
1120
+ }
1121
+
1122
+ .m-loading-aurora__glow {
1123
+ animation: m-loading-spin var(--m-loading-aurora-glow) linear infinite reverse;
1124
+ background: conic-gradient(
1125
+ from 0deg,
1126
+ var(--m-loading-c1),
1127
+ var(--m-loading-c5),
1128
+ var(--m-loading-c2),
1129
+ var(--m-loading-c3),
1130
+ var(--m-loading-c1)
1131
+ );
1132
+ border-radius: 50%;
1133
+ filter: blur(10px);
1134
+ inset: -6px;
1135
+ opacity: 0.22;
1136
+ position: absolute;
1137
+ z-index: 1;
1138
+ }
1139
+
1140
+ .m-loading-bounce {
1141
+ align-items: flex-end;
1142
+ display: flex;
1143
+ gap: var(--m-space-3);
1144
+ height: 3.125rem;
1145
+ }
1146
+
1147
+ .m-loading-bounce__ball {
1148
+ animation: m-loading-bounce var(--m-loading-bounce) cubic-bezier(0.34, 1.2, 0.64, 1) infinite alternate;
1149
+ background: var(--m-loading-c1);
1150
+ border-radius: 50%;
1151
+ display: block;
1152
+ height: 1rem;
1153
+ width: 1rem;
1154
+ }
1155
+
1156
+ .m-loading-bounce__ball:nth-child(1) {
1157
+ animation-delay: 0s;
1158
+ background: var(--m-loading-c5);
1159
+ }
1160
+
1161
+ .m-loading-bounce__ball:nth-child(2) {
1162
+ animation-delay: 0.15s;
1163
+ background: var(--m-loading-c2);
1164
+ }
1165
+
1166
+ .m-loading-bounce__ball:nth-child(3) {
1167
+ animation-delay: 0.3s;
1168
+ background: var(--m-loading-c6);
1169
+ }
1170
+
1171
+ .m-loading-wave {
1172
+ align-items: center;
1173
+ display: flex;
1174
+ gap: 0.375rem;
1175
+ height: 3.125rem;
1176
+ }
1177
+
1178
+ .m-loading-wave__bar {
1179
+ animation: m-loading-wave var(--m-loading-wave) ease-in-out infinite alternate;
1180
+ background: var(--m-loading-c1);
1181
+ border-radius: 0.375rem;
1182
+ display: block;
1183
+ height: 2.875rem;
1184
+ transform-origin: center center;
1185
+ width: 0.5rem;
1186
+ }
1187
+
1188
+ .m-loading-wave__bar:nth-child(1) {
1189
+ animation-delay: 0s;
1190
+ background: var(--m-loading-c1);
1191
+ }
1192
+
1193
+ .m-loading-wave__bar:nth-child(2) {
1194
+ animation-delay: 0.09s;
1195
+ background: var(--m-loading-c5);
1196
+ }
1197
+
1198
+ .m-loading-wave__bar:nth-child(3) {
1199
+ animation-delay: 0.18s;
1200
+ background: var(--m-loading-c2);
1201
+ }
1202
+
1203
+ .m-loading-wave__bar:nth-child(4) {
1204
+ animation-delay: 0.27s;
1205
+ background: var(--m-loading-c3);
1206
+ }
1207
+
1208
+ .m-loading-wave__bar:nth-child(5) {
1209
+ animation-delay: 0.36s;
1210
+ background: var(--m-loading-c6);
1211
+ }
1212
+
1213
+ .m-loading-pulse__ring {
1214
+ animation: m-loading-pulse var(--m-loading-pulse) ease-out infinite;
1215
+ border: 3px solid var(--m-loading-c2);
1216
+ border-radius: 50%;
1217
+ box-sizing: border-box;
1218
+ inset: 0;
1219
+ position: absolute;
1220
+ }
1221
+
1222
+ .m-loading-pulse__ring:nth-child(1) {
1223
+ animation-delay: 0s;
1224
+ border-color: var(--m-loading-c1);
1225
+ }
1226
+
1227
+ .m-loading-pulse__ring:nth-child(2) {
1228
+ animation-delay: 0.45s;
1229
+ border-color: var(--m-loading-c5);
1230
+ }
1231
+
1232
+ .m-loading-pulse__ring:nth-child(3) {
1233
+ animation-delay: 0.9s;
1234
+ border-color: var(--m-loading-c2);
1235
+ }
1236
+
1237
+ .m-loading-pulse__ring:nth-child(4) {
1238
+ animation-delay: 1.35s;
1239
+ border-color: var(--m-loading-c3);
1240
+ }
1241
+
1242
+ .m-loading-stardust__dot {
1243
+ --i: 0;
1244
+ animation: m-loading-stardust var(--m-loading-stardust) ease-in-out infinite;
1245
+ background: var(--m-loading-c1);
1246
+ border-radius: 50%;
1247
+ height: 0.5rem;
1248
+ left: 50%;
1249
+ position: absolute;
1250
+ top: 50%;
1251
+ transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateX(22px);
1252
+ width: 0.5rem;
1253
+ }
1254
+
1255
+ .m-loading-stardust__dot:nth-child(1) { animation-delay: 0s; background: var(--m-loading-c1); }
1256
+ .m-loading-stardust__dot:nth-child(2) { animation-delay: 0.08s; background: var(--m-loading-c5); }
1257
+ .m-loading-stardust__dot:nth-child(3) { animation-delay: 0.16s; background: var(--m-loading-c4); }
1258
+ .m-loading-stardust__dot:nth-child(4) { animation-delay: 0.24s; background: var(--m-loading-c2); }
1259
+ .m-loading-stardust__dot:nth-child(5) { animation-delay: 0.32s; background: var(--m-loading-c3); }
1260
+ .m-loading-stardust__dot:nth-child(6) { animation-delay: 0.4s; background: var(--m-loading-c6); }
1261
+ .m-loading-stardust__dot:nth-child(7) { animation-delay: 0.48s; background: color-mix(in srgb, var(--m-loading-c1) 55%, white); }
1262
+ .m-loading-stardust__dot:nth-child(8) { animation-delay: 0.56s; background: var(--m-loading-c2); }
1263
+
1264
+ .m-loading-circular {
1265
+ align-items: center;
1266
+ display: inline-flex;
1267
+ justify-content: center;
1268
+ }
1269
+
1270
+ .m-loading-circular__svg {
1271
+ animation: m-loading-circular-rotate var(--m-loading-circular-rotate) linear infinite;
1272
+ display: inline-block;
1273
+ height: 2.625rem;
1274
+ width: 2.625rem;
1275
+ }
1276
+
1277
+ .m-loading-circular__path {
1278
+ animation: m-loading-circular-dash var(--m-loading-circular-dash) ease-in-out infinite;
1279
+ fill: none;
1280
+ stroke: var(--m-loading-c1);
1281
+ stroke-linecap: round;
1282
+ stroke-width: 2;
1283
+ }
1284
+
1285
+ @keyframes m-loading-spin {
1286
+ from { transform: rotate(0deg); }
1287
+ to { transform: rotate(360deg); }
1288
+ }
1289
+
1290
+ @keyframes m-loading-bounce {
1291
+ from { transform: translateY(0) scale(1); }
1292
+ to { transform: translateY(-34px) scale(1.1); }
1293
+ }
1294
+
1295
+ @keyframes m-loading-wave {
1296
+ from { transform: scaleY(0.26); }
1297
+ to { transform: scaleY(1); }
1298
+ }
1299
+
1300
+ @keyframes m-loading-pulse {
1301
+ from { opacity: 1; transform: scale(0.15); }
1302
+ to { opacity: 0; transform: scale(1.6); }
1303
+ }
1304
+
1305
+ @keyframes m-loading-stardust {
1306
+ 0%,
1307
+ 100% {
1308
+ opacity: 0.2;
1309
+ transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg)) translateX(22px) scale(0.3);
1310
+ }
1311
+
1312
+ 50% {
1313
+ opacity: 1;
1314
+ transform: translate(-50%, -50%) rotate(calc(var(--i) * 45deg + 180deg)) translateX(28px) scale(1.2);
1315
+ }
1316
+ }
1317
+
1318
+ @keyframes m-loading-circular-rotate {
1319
+ to { transform: rotate(360deg); }
1320
+ }
1321
+
1322
+ @keyframes m-loading-circular-dash {
1323
+ 0% {
1324
+ stroke-dasharray: 1, 200;
1325
+ stroke-dashoffset: 0;
1326
+ }
1327
+
1328
+ 50% {
1329
+ stroke-dasharray: 90, 150;
1330
+ stroke-dashoffset: -40px;
1331
+ }
1332
+
1333
+ 100% {
1334
+ stroke-dasharray: 90, 150;
1335
+ stroke-dashoffset: -120px;
1336
+ }
1337
+ }
1338
+
1339
+ @media (prefers-reduced-motion: reduce) {
1340
+ html:not([data-m-ignore-reduced-motion]) .m-loading-aurora__ring,
1341
+ html:not([data-m-ignore-reduced-motion]) .m-loading-aurora__glow,
1342
+ html:not([data-m-ignore-reduced-motion]) .m-loading-bounce__ball,
1343
+ html:not([data-m-ignore-reduced-motion]) .m-loading-wave__bar,
1344
+ html:not([data-m-ignore-reduced-motion]) .m-loading-pulse__ring,
1345
+ html:not([data-m-ignore-reduced-motion]) .m-loading-stardust__dot,
1346
+ html:not([data-m-ignore-reduced-motion]) .m-loading-circular__svg,
1347
+ html:not([data-m-ignore-reduced-motion]) .m-loading-circular__path,
1348
+ html:not([data-m-ignore-reduced-motion]) .m-loading-enter-active,
1349
+ html:not([data-m-ignore-reduced-motion]) .m-loading-leave-active {
1350
+ animation: none;
1351
+ transition: none;
1352
+ }
1353
+ }
1354
+
1355
+ [data-m-motion="reduced"] .m-loading-aurora__ring,
1356
+ [data-m-motion="reduced"] .m-loading-aurora__glow,
1357
+ [data-m-motion="reduced"] .m-loading-bounce__ball,
1358
+ [data-m-motion="reduced"] .m-loading-wave__bar,
1359
+ [data-m-motion="reduced"] .m-loading-pulse__ring,
1360
+ [data-m-motion="reduced"] .m-loading-stardust__dot,
1361
+ [data-m-motion="reduced"] .m-loading-circular__svg,
1362
+ [data-m-motion="reduced"] .m-loading-circular__path,
1363
+ [data-m-motion="reduced"] .m-loading-enter-active,
1364
+ [data-m-motion="reduced"] .m-loading-leave-active,
1365
+ [data-m-motion="none"] .m-loading-aurora__ring,
1366
+ [data-m-motion="none"] .m-loading-aurora__glow,
1367
+ [data-m-motion="none"] .m-loading-bounce__ball,
1368
+ [data-m-motion="none"] .m-loading-wave__bar,
1369
+ [data-m-motion="none"] .m-loading-pulse__ring,
1370
+ [data-m-motion="none"] .m-loading-stardust__dot,
1371
+ [data-m-motion="none"] .m-loading-circular__svg,
1372
+ [data-m-motion="none"] .m-loading-circular__path,
1373
+ [data-m-motion="none"] .m-loading-enter-active,
1374
+ [data-m-motion="none"] .m-loading-leave-active {
1375
+ animation: none;
1376
+ transition: none;
1377
+ }