@getcortexlabs/mavis-web 0.1.0-alpha.8 → 0.1.0-alpha.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.
Files changed (106) hide show
  1. package/README.md +4 -2
  2. package/dist/components/DateCalendar.d.ts +1 -1
  3. package/dist/components/LoadingDecoration.d.ts +2 -2
  4. package/dist/components/MAccordion.d.ts +1 -1
  5. package/dist/components/MAlert.d.ts +2 -2
  6. package/dist/components/MAvatar.d.ts +1 -1
  7. package/dist/components/MBadge.d.ts +1 -1
  8. package/dist/components/MButton.d.ts +5 -5
  9. package/dist/components/MButton.d.ts.map +1 -1
  10. package/dist/components/MButton.js +14 -8
  11. package/dist/components/MButton.js.map +1 -1
  12. package/dist/components/MCard.d.ts +3 -3
  13. package/dist/components/MCard.d.ts.map +1 -1
  14. package/dist/components/MCard.js +3 -2
  15. package/dist/components/MCard.js.map +1 -1
  16. package/dist/components/MCheckbox.d.ts +1 -1
  17. package/dist/components/MChip.d.ts +2 -2
  18. package/dist/components/MCombobox.d.ts +1 -1
  19. package/dist/components/MDatePicker.d.ts +56 -8
  20. package/dist/components/MDatePicker.d.ts.map +1 -1
  21. package/dist/components/MDatePicker.js +2 -10
  22. package/dist/components/MDatePicker.js.map +1 -1
  23. package/dist/components/MEmptyState.d.ts +2 -2
  24. package/dist/components/MGrid.d.ts +163 -0
  25. package/dist/components/MGrid.d.ts.map +1 -0
  26. package/dist/components/MGrid.js +32 -0
  27. package/dist/components/MGrid.js.map +1 -0
  28. package/dist/components/MIcon.d.ts +1 -1
  29. package/dist/components/MIcon.d.ts.map +1 -1
  30. package/dist/components/MIcon.js +7 -4
  31. package/dist/components/MIcon.js.map +1 -1
  32. package/dist/components/MImage.d.ts +48 -3
  33. package/dist/components/MImage.d.ts.map +1 -1
  34. package/dist/components/MImage.js +23 -8
  35. package/dist/components/MImage.js.map +1 -1
  36. package/dist/components/MInput.d.ts +7 -7
  37. package/dist/components/MInput.d.ts.map +1 -1
  38. package/dist/components/MInput.js +7 -0
  39. package/dist/components/MInput.js.map +1 -1
  40. package/dist/components/MLink.d.ts +1 -1
  41. package/dist/components/MLink.d.ts.map +1 -1
  42. package/dist/components/MLink.js +5 -33
  43. package/dist/components/MLink.js.map +1 -1
  44. package/dist/components/MListItem.d.ts +1 -1
  45. package/dist/components/MProgress.d.ts +2 -2
  46. package/dist/components/MRadioGroup.d.ts +1 -1
  47. package/dist/components/MReveal.d.ts +3 -3
  48. package/dist/components/MSegmentedControl.d.ts +1 -1
  49. package/dist/components/MSelect.d.ts +1 -1
  50. package/dist/components/MSheet.d.ts +10 -1
  51. package/dist/components/MSheet.d.ts.map +1 -1
  52. package/dist/components/MSheet.js +45 -14
  53. package/dist/components/MSheet.js.map +1 -1
  54. package/dist/components/MSkeleton.d.ts +1 -1
  55. package/dist/components/MStack.d.ts +3 -3
  56. package/dist/components/MStack.d.ts.map +1 -1
  57. package/dist/components/MStack.js +3 -13
  58. package/dist/components/MStack.js.map +1 -1
  59. package/dist/components/MSwitch.d.ts +1 -1
  60. package/dist/components/MTabs.d.ts +1 -1
  61. package/dist/components/MText.d.ts +2 -2
  62. package/dist/components/configurator.d.ts +3 -3
  63. package/dist/components/layout.d.ts +12 -12
  64. package/dist/content-width.d.ts +4 -0
  65. package/dist/content-width.d.ts.map +1 -0
  66. package/dist/content-width.js +62 -0
  67. package/dist/content-width.js.map +1 -0
  68. package/dist/date-format.d.ts +6 -0
  69. package/dist/date-format.d.ts.map +1 -0
  70. package/dist/date-format.js +23 -0
  71. package/dist/date-format.js.map +1 -0
  72. package/dist/icons.d.ts +14 -0
  73. package/dist/icons.d.ts.map +1 -0
  74. package/dist/icons.js +23 -0
  75. package/dist/icons.js.map +1 -0
  76. package/dist/image-effects.d.ts.map +1 -1
  77. package/dist/image-effects.js +2 -0
  78. package/dist/image-effects.js.map +1 -1
  79. package/dist/index.d.ts +11 -8
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +13 -10
  82. package/dist/index.js.map +1 -1
  83. package/dist/services.d.ts +16 -0
  84. package/dist/services.d.ts.map +1 -0
  85. package/dist/services.js +18 -0
  86. package/dist/services.js.map +1 -0
  87. package/package.json +21 -3
  88. package/src/base.css +992 -0
  89. package/src/components/MButton.ts +28 -25
  90. package/src/components/MCard.ts +3 -1
  91. package/src/components/MDatePicker.ts +1 -9
  92. package/src/components/MGrid.ts +45 -0
  93. package/src/components/MIcon.ts +7 -8
  94. package/src/components/MImage.ts +26 -11
  95. package/src/components/MInput.ts +9 -3
  96. package/src/components/MLink.ts +10 -32
  97. package/src/components/MSheet.ts +47 -14
  98. package/src/components/MStack.ts +3 -20
  99. package/src/content-width.ts +70 -0
  100. package/src/date-format.ts +36 -0
  101. package/src/icons.css +7 -0
  102. package/src/icons.ts +28 -0
  103. package/src/image-effects.ts +2 -0
  104. package/src/index.ts +63 -63
  105. package/src/services.ts +33 -0
  106. package/src/style.css +2 -1000
package/src/base.css ADDED
@@ -0,0 +1,992 @@
1
+ .m-screen {
2
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
3
+ -webkit-font-smoothing: antialiased;
4
+ }
5
+
6
+ .m-box > * {
7
+ grid-area: 1 / 1;
8
+ }
9
+ .m-screen-overlay > * {
10
+ grid-area: 1 / 1;
11
+ }
12
+
13
+ .m-button,
14
+ .m-card[role='button'] {
15
+ cursor: pointer;
16
+ touch-action: manipulation;
17
+ }
18
+
19
+ .m-button:disabled,
20
+ .m-button[aria-disabled='true'],
21
+ .m-card[role='button'][aria-disabled='true'],
22
+ .m-slider:disabled {
23
+ cursor: not-allowed;
24
+ }
25
+
26
+ .m-slider {
27
+ appearance: none;
28
+ background: transparent;
29
+ cursor: pointer;
30
+ }
31
+
32
+ .m-slider:disabled {
33
+ opacity: 0.45;
34
+ }
35
+
36
+ .m-slider::-webkit-slider-runnable-track {
37
+ height: 6px;
38
+ border-radius: 999px;
39
+ background: linear-gradient(
40
+ to right,
41
+ var(--m-slider-color) var(--m-slider-progress),
42
+ var(--m-slider-track) var(--m-slider-progress)
43
+ );
44
+ }
45
+
46
+ .m-slider::-webkit-slider-thumb {
47
+ appearance: none;
48
+ width: 20px;
49
+ height: 20px;
50
+ margin-top: -7px;
51
+ border: 0;
52
+ border-radius: 50%;
53
+ background: var(--m-slider-color);
54
+ }
55
+
56
+ .m-slider::-moz-range-track {
57
+ height: 6px;
58
+ border-radius: 999px;
59
+ background: var(--m-slider-track);
60
+ }
61
+
62
+ .m-slider::-moz-range-progress {
63
+ height: 6px;
64
+ border-radius: 999px;
65
+ background: var(--m-slider-color);
66
+ }
67
+
68
+ .m-slider::-moz-range-thumb {
69
+ width: 20px;
70
+ height: 20px;
71
+ border: 0;
72
+ border-radius: 50%;
73
+ background: var(--m-slider-color);
74
+ }
75
+
76
+ .m-button:focus-visible,
77
+ .m-card[role='button']:focus-visible,
78
+ .m-slider:focus-visible {
79
+ outline: 2px solid var(--m-focus, currentColor);
80
+ outline-offset: 4px;
81
+ }
82
+
83
+ .m-screen:focus {
84
+ outline: none;
85
+ }
86
+
87
+ .m-screen[tabindex='0']:focus-visible {
88
+ outline: 2px solid var(--m-focus, currentColor);
89
+ outline-offset: -4px;
90
+ }
91
+
92
+ .m-input-editor::placeholder {
93
+ color: var(--m-input-placeholder);
94
+ opacity: 1;
95
+ }
96
+
97
+ .m-input-editor:disabled {
98
+ -webkit-text-fill-color: currentColor;
99
+ opacity: 1;
100
+ }
101
+
102
+ .m-icon {
103
+ font-style: normal;
104
+ font-weight: normal;
105
+ font-variant: normal;
106
+ text-transform: none;
107
+ user-select: none;
108
+ -webkit-font-smoothing: antialiased;
109
+ }
110
+
111
+ .m-sheet {
112
+ position: fixed;
113
+ inset: 0;
114
+ width: 100%;
115
+ max-width: 560px;
116
+ height: 100dvh;
117
+ max-height: none;
118
+ margin: 0 auto;
119
+ padding: 0;
120
+ border: 0;
121
+ border-radius: 0;
122
+ background: transparent;
123
+ overflow: clip;
124
+ }
125
+
126
+ .m-sheet[open] {
127
+ display: flex;
128
+ flex-direction: column;
129
+ }
130
+
131
+ .m-sheet:focus {
132
+ outline: none;
133
+ }
134
+
135
+ .m-sheet::backdrop {
136
+ background: rgba(0, 0, 0, 0);
137
+ transition: background-color 240ms ease-out;
138
+ }
139
+
140
+ .m-sheet.m-sheet-open::backdrop {
141
+ background: rgba(0, 0, 0, 0.45);
142
+ }
143
+
144
+ .m-sheet-full {
145
+ max-width: none;
146
+ max-height: none;
147
+ height: var(--m-sheet-viewport-height, 100dvh);
148
+ border-radius: 0;
149
+ }
150
+
151
+ .m-sheet-panel {
152
+ background: var(--m-sheet-surface);
153
+ border-radius: var(--m-sheet-radius) var(--m-sheet-radius) 0 0;
154
+ transform-origin: 0 0;
155
+ display: flex;
156
+ flex: none;
157
+ flex-direction: column;
158
+ min-height: 0;
159
+ box-sizing: border-box;
160
+ }
161
+
162
+ .m-sheet-full .m-sheet-panel {
163
+ border-radius: 0;
164
+ }
165
+ .m-sheet-content {
166
+ display: flex;
167
+ flex-direction: column;
168
+ min-height: 0;
169
+ max-height: 100%;
170
+ box-sizing: border-box;
171
+ }
172
+ .m-sheet-full .m-sheet-content {
173
+ height: 100%;
174
+ }
175
+
176
+ .m-sheet-handle {
177
+ display: flex;
178
+ justify-content: center;
179
+ align-items: center;
180
+ min-height: 24px;
181
+ flex-shrink: 0;
182
+ cursor: grab;
183
+ touch-action: pan-x;
184
+ user-select: none;
185
+ }
186
+
187
+ .m-sheet-handle:active {
188
+ cursor: grabbing;
189
+ }
190
+ .m-sheet-handle span {
191
+ width: 40px;
192
+ height: 4px;
193
+ border-radius: 2px;
194
+ background: currentColor;
195
+ opacity: 0.25;
196
+ pointer-events: none;
197
+ }
198
+
199
+ .m-sheet-body {
200
+ min-height: 0;
201
+ overflow: auto;
202
+ overscroll-behavior: contain;
203
+ }
204
+
205
+ html:has(.m-sheet[open]) {
206
+ overflow: hidden;
207
+ }
208
+
209
+ @media (prefers-reduced-motion: reduce) {
210
+ .m-sheet,
211
+ .m-sheet::backdrop {
212
+ transition: none;
213
+ }
214
+ }
215
+
216
+ .m-switch {
217
+ cursor: pointer;
218
+ -webkit-tap-highlight-color: transparent;
219
+ touch-action: pan-y;
220
+ }
221
+ .m-switch:disabled {
222
+ cursor: default;
223
+ }
224
+ .m-switch:focus-visible {
225
+ outline: 3px solid var(--m-focus);
226
+ outline-offset: 4px;
227
+ }
228
+ .m-switch-track {
229
+ display: block;
230
+ position: relative;
231
+ width: 52px;
232
+ height: 32px;
233
+ flex-shrink: 0;
234
+ border-radius: 999px;
235
+ background: var(--m-switch-track);
236
+ }
237
+ .m-switch-thumb {
238
+ display: block;
239
+ position: absolute;
240
+ inset-block-start: 4px;
241
+ inset-inline-start: 4px;
242
+ width: 24px;
243
+ height: 24px;
244
+ border-radius: 50%;
245
+ background: var(--m-switch-thumb);
246
+ box-shadow: 0 1px 3px #0003;
247
+ transition:
248
+ inset-inline-start 180ms ease,
249
+ transform 120ms ease;
250
+ }
251
+ .m-switch[aria-checked='true'] .m-switch-thumb {
252
+ inset-inline-start: 24px;
253
+ }
254
+ .m-switch:active:not(:disabled) .m-switch-thumb {
255
+ transform: scale(0.9);
256
+ }
257
+ @media (prefers-reduced-motion: reduce) {
258
+ .m-switch-track,
259
+ .m-switch-thumb {
260
+ transition: none;
261
+ }
262
+ .m-switch:active:not(:disabled) .m-switch-thumb {
263
+ transform: none;
264
+ }
265
+ }
266
+ @media (forced-colors: active) {
267
+ .m-switch-track {
268
+ border: 1px solid ButtonText;
269
+ box-sizing: border-box;
270
+ }
271
+ .m-switch-thumb {
272
+ background: ButtonText;
273
+ }
274
+ }
275
+
276
+ .m-checkbox-input {
277
+ position: absolute;
278
+ inset: 0;
279
+ width: 100%;
280
+ height: 100%;
281
+ margin: 0;
282
+ opacity: 0;
283
+ cursor: pointer;
284
+ z-index: 1;
285
+ touch-action: pan-y;
286
+ }
287
+ .m-checkbox-input:disabled {
288
+ cursor: default;
289
+ }
290
+ .m-checkbox:has(.m-checkbox-input:focus-visible) {
291
+ outline: 3px solid var(--m-focus);
292
+ outline-offset: 2px;
293
+ }
294
+ .m-checkbox-box {
295
+ position: relative;
296
+ --m-choice-border: 2px;
297
+ display: flex;
298
+ align-items: center;
299
+ justify-content: center;
300
+ box-sizing: border-box;
301
+ width: 24px;
302
+ height: 24px;
303
+ flex-shrink: 0;
304
+ border: 2px solid var(--m-checkbox-border);
305
+ border-radius: 7px;
306
+ transition: transform 120ms ease;
307
+ }
308
+ .m-checkbox-mark {
309
+ display: none;
310
+ width: 12px;
311
+ height: 7px;
312
+ border-left: 2px solid var(--m-checkbox-mark);
313
+ border-bottom: 2px solid var(--m-checkbox-mark);
314
+ transform: translateY(-1px) rotate(-45deg);
315
+ box-sizing: border-box;
316
+ }
317
+ .m-checkbox-input[aria-checked='true'] ~ .m-checkbox-box,
318
+ .m-checkbox-input[aria-checked='mixed'] ~ .m-checkbox-box {
319
+ background: var(--m-checkbox-fill);
320
+ border-color: var(--m-checkbox-fill);
321
+ }
322
+ .m-checkbox-input[aria-checked='true'] ~ .m-checkbox-box .m-checkbox-mark,
323
+ .m-checkbox-input[aria-checked='mixed'] ~ .m-checkbox-box .m-checkbox-mark {
324
+ display: block;
325
+ }
326
+ .m-checkbox-input[aria-checked='mixed'] ~ .m-checkbox-box .m-checkbox-mark {
327
+ height: 2px;
328
+ border: 0;
329
+ border-radius: 1px;
330
+ background: var(--m-checkbox-mark);
331
+ transform: none;
332
+ }
333
+ .m-checkbox-input:active:not(:disabled) ~ .m-checkbox-box {
334
+ transform: scale(0.9);
335
+ }
336
+ .m-checkbox-help {
337
+ position: absolute;
338
+ width: 1px;
339
+ height: 1px;
340
+ padding: 0;
341
+ overflow: hidden;
342
+ clip-path: inset(50%);
343
+ white-space: nowrap;
344
+ }
345
+ @media (prefers-reduced-motion: reduce) {
346
+ .m-checkbox-box {
347
+ transition: none;
348
+ }
349
+ .m-checkbox-input:active:not(:disabled) ~ .m-checkbox-box {
350
+ transform: none;
351
+ }
352
+ }
353
+ @media (forced-colors: active) {
354
+ .m-checkbox-box {
355
+ forced-color-adjust: none;
356
+ border-color: ButtonText;
357
+ }
358
+ .m-checkbox-input[aria-checked='true'] ~ .m-checkbox-box,
359
+ .m-checkbox-input[aria-checked='mixed'] ~ .m-checkbox-box {
360
+ background: Highlight;
361
+ border-color: Highlight;
362
+ }
363
+ .m-checkbox-mark {
364
+ border-color: HighlightText;
365
+ }
366
+ .m-checkbox-input[aria-checked='mixed'] ~ .m-checkbox-box .m-checkbox-mark {
367
+ background: HighlightText;
368
+ }
369
+ }
370
+
371
+ .m-radio-input {
372
+ appearance: none;
373
+ border: 0;
374
+ border-radius: 0;
375
+ padding: 0;
376
+ position: absolute;
377
+ inset: 0;
378
+ width: 100%;
379
+ height: 100%;
380
+ margin: 0;
381
+ opacity: 0;
382
+ z-index: 1;
383
+ cursor: pointer;
384
+ touch-action: pan-y;
385
+ }
386
+ .m-radio-input:disabled {
387
+ cursor: default;
388
+ }
389
+ .m-radio-option:has(.m-radio-input:focus-visible) {
390
+ outline: 3px solid var(--m-focus);
391
+ outline-offset: 2px;
392
+ }
393
+ .m-radio-indicator {
394
+ position: relative;
395
+ --m-choice-border: 2px;
396
+ width: 24px;
397
+ height: 24px;
398
+ flex-shrink: 0;
399
+ box-sizing: border-box;
400
+ border: 2px solid var(--m-radio-border);
401
+ border-radius: 50%;
402
+ display: flex;
403
+ align-items: center;
404
+ justify-content: center;
405
+ transition: transform 120ms ease;
406
+ }
407
+ .m-radio-dot {
408
+ width: 12px;
409
+ height: 12px;
410
+ border-radius: 50%;
411
+ background: var(--m-radio-fill);
412
+ visibility: hidden;
413
+ }
414
+ .m-radio-input[aria-checked='true'] ~ .m-radio-indicator {
415
+ border-color: var(--m-radio-fill);
416
+ }
417
+ .m-radio-input[aria-checked='true'] ~ .m-radio-indicator .m-radio-dot {
418
+ visibility: visible;
419
+ }
420
+ .m-radio-input:active:not(:disabled) ~ .m-radio-indicator {
421
+ transform: scale(0.9);
422
+ }
423
+ @media (prefers-reduced-motion: reduce) {
424
+ .m-radio-indicator {
425
+ transition: none;
426
+ }
427
+ .m-radio-input:active:not(:disabled) ~ .m-radio-indicator {
428
+ transform: none;
429
+ }
430
+ }
431
+ @media (forced-colors: active) {
432
+ .m-radio-indicator {
433
+ forced-color-adjust: none;
434
+ border-color: ButtonText;
435
+ }
436
+ .m-radio-input[aria-checked='true'] ~ .m-radio-indicator {
437
+ border-color: Highlight;
438
+ }
439
+ .m-radio-dot {
440
+ background: Highlight;
441
+ }
442
+ }
443
+
444
+ .m-select-trigger {
445
+ cursor: pointer;
446
+ touch-action: pan-y;
447
+ transition:
448
+ box-shadow 150ms,
449
+ background-color 150ms;
450
+ }
451
+ .m-select-trigger:focus-visible {
452
+ outline: 2px solid var(--m-focus);
453
+ outline-offset: 2px;
454
+ }
455
+ .m-select-trigger:active:not(:disabled) {
456
+ box-shadow: inset 0 0 0 1px var(--m-focus);
457
+ }
458
+ .m-select-trigger:disabled {
459
+ cursor: default;
460
+ }
461
+ .m-select-list {
462
+ display: flex;
463
+ flex-direction: column;
464
+ gap: 6px;
465
+ outline: none;
466
+ }
467
+ .m-select-option {
468
+ cursor: pointer;
469
+ touch-action: pan-y;
470
+ border: 2px solid transparent;
471
+ }
472
+ .m-select-option[aria-disabled='true'] {
473
+ cursor: default;
474
+ }
475
+ .m-select-list:focus-visible .m-select-option[data-active='true'] {
476
+ border-color: var(--m-focus);
477
+ }
478
+ .m-select-list:focus-visible:not(:has(.m-select-option[data-active='true'])) {
479
+ outline: 2px solid var(--m-focus);
480
+ outline-offset: 2px;
481
+ }
482
+ .m-select-option:active:not([aria-disabled='true']) {
483
+ border-color: var(--m-focus);
484
+ }
485
+ @media (prefers-reduced-motion: reduce) {
486
+ .m-select-trigger {
487
+ transition: none;
488
+ }
489
+ }
490
+ @media (forced-colors: active) {
491
+ .m-select-trigger {
492
+ border-color: ButtonText !important;
493
+ }
494
+ .m-select-option[aria-selected='true'] {
495
+ border-color: Highlight;
496
+ }
497
+ .m-select-list:focus-visible .m-select-option[data-active='true'] {
498
+ outline: 2px solid Highlight;
499
+ }
500
+ }
501
+
502
+ .m-toast-host {
503
+ position: fixed;
504
+ inset-inline: 16px;
505
+ margin-inline: auto;
506
+ width: auto;
507
+ max-width: 440px;
508
+ z-index: 1000;
509
+ pointer-events: none;
510
+ font-family: inherit;
511
+ }
512
+ .m-toast-host[hidden] {
513
+ display: none;
514
+ }
515
+ .m-toast {
516
+ display: grid;
517
+ grid-template-columns: 40px minmax(0, 1fr) 44px;
518
+ gap: 12px;
519
+ align-items: start;
520
+ box-sizing: border-box;
521
+ padding: 16px;
522
+ border: 1px solid;
523
+ pointer-events: auto;
524
+ box-shadow: 0 8px 28px #160d241a;
525
+ line-height: 1.5;
526
+ }
527
+ .m-toast-icon {
528
+ display: grid;
529
+ place-items: center;
530
+ width: 40px;
531
+ height: 40px;
532
+ border-radius: 50%;
533
+ }
534
+ .m-toast-copy {
535
+ min-width: 0;
536
+ max-height: calc(
537
+ 100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
538
+ );
539
+ overflow-y: auto;
540
+ overflow-wrap: anywhere;
541
+ }
542
+ .m-toast-title,
543
+ .m-toast-message {
544
+ margin: 0;
545
+ font: inherit;
546
+ }
547
+ .m-toast-title {
548
+ margin-bottom: 4px;
549
+ font-weight: 600;
550
+ }
551
+ .m-toast-close {
552
+ display: grid;
553
+ place-items: center;
554
+ width: 44px;
555
+ height: 44px;
556
+ padding: 0;
557
+ border: 0;
558
+ border-radius: 12px;
559
+ background: transparent;
560
+ cursor: pointer;
561
+ }
562
+ .m-toast-close:hover {
563
+ background: color-mix(in srgb, currentColor 8%, transparent);
564
+ }
565
+ .m-toast-close:active {
566
+ transform: scale(0.95);
567
+ }
568
+ .m-toast-close:focus-visible {
569
+ outline: 2px solid var(--m-focus);
570
+ outline-offset: 2px;
571
+ }
572
+ .m-toast-announcement {
573
+ position: absolute;
574
+ width: 1px;
575
+ height: 1px;
576
+ overflow: hidden;
577
+ clip-path: inset(50%);
578
+ white-space: nowrap;
579
+ }
580
+ .m-toast-enter-active {
581
+ transition:
582
+ opacity 180ms ease,
583
+ transform 180ms ease;
584
+ }
585
+ .m-toast-leave-active {
586
+ transition:
587
+ opacity 120ms ease,
588
+ transform 120ms ease;
589
+ }
590
+ .m-toast-enter-from {
591
+ opacity: 0;
592
+ transform: translateY(-8px);
593
+ }
594
+ .m-toast-leave-to {
595
+ opacity: 0;
596
+ transform: translateY(-4px);
597
+ }
598
+ @media (prefers-reduced-motion: reduce) {
599
+ .m-toast-enter-active,
600
+ .m-toast-leave-active {
601
+ transition: none;
602
+ }
603
+ .m-toast-enter-from,
604
+ .m-toast-leave-to,
605
+ .m-toast-close:active {
606
+ transform: none;
607
+ }
608
+ }
609
+ @media (forced-colors: active) {
610
+ .m-toast {
611
+ border-color: CanvasText;
612
+ }
613
+ .m-toast-close:focus-visible {
614
+ outline-color: Highlight;
615
+ }
616
+ }
617
+
618
+ .m-dialog {
619
+ position: fixed;
620
+ inset: 0;
621
+ width: 100%;
622
+ height: 100%;
623
+ max-width: none;
624
+ max-height: none;
625
+ margin: 0;
626
+ padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
627
+ max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
628
+ border: 0;
629
+ box-sizing: border-box;
630
+ background: transparent;
631
+ overflow: hidden;
632
+ overscroll-behavior: contain;
633
+ }
634
+ .m-dialog[open] {
635
+ display: grid;
636
+ place-items: center;
637
+ }
638
+ .m-dialog::backdrop {
639
+ background: #100b1c80;
640
+ }
641
+ .m-dialog-panel {
642
+ display: grid;
643
+ grid-template-rows: minmax(0, 1fr) auto;
644
+ gap: 24px;
645
+ width: min(100%, 440px);
646
+ max-height: 100%;
647
+ min-height: 0;
648
+ box-sizing: border-box;
649
+ padding: 24px;
650
+ border: 1px solid;
651
+ box-shadow: 0 24px 80px #100b1c26;
652
+ outline: none;
653
+ }
654
+ .m-dialog-body {
655
+ min-height: 0;
656
+ overflow: auto;
657
+ overflow-wrap: anywhere;
658
+ }
659
+ .m-dialog-symbol {
660
+ display: grid;
661
+ place-items: center;
662
+ width: 48px;
663
+ height: 48px;
664
+ border-radius: 16px;
665
+ margin-bottom: 20px;
666
+ }
667
+ .m-dialog-title {
668
+ margin: 0 0 12px;
669
+ font: inherit;
670
+ font-size: 1.5em;
671
+ font-weight: 650;
672
+ line-height: 1.2;
673
+ }
674
+ .m-dialog-description {
675
+ margin: 0;
676
+ line-height: 1.5;
677
+ white-space: pre-wrap;
678
+ }
679
+ .m-dialog-actions {
680
+ padding: 4px;
681
+ margin: -4px;
682
+ display: flex;
683
+ gap: 12px;
684
+ max-height: 40dvh;
685
+ overflow-y: auto;
686
+ }
687
+ .m-dialog-actions > button {
688
+ flex: 1;
689
+ min-width: 0;
690
+ overflow-wrap: anywhere;
691
+ }
692
+ .m-dialog-enter-active {
693
+ transition: opacity 180ms ease;
694
+ }
695
+ .m-dialog-leave-active {
696
+ transition: opacity 120ms ease;
697
+ }
698
+ .m-dialog-enter-active .m-dialog-panel,
699
+ .m-dialog-leave-active .m-dialog-panel {
700
+ transition: transform 180ms ease;
701
+ }
702
+ .m-dialog-enter-from,
703
+ .m-dialog-leave-to {
704
+ opacity: 0;
705
+ }
706
+ .m-dialog-enter-from .m-dialog-panel,
707
+ .m-dialog-leave-to .m-dialog-panel {
708
+ transform: translateY(8px) scale(0.98);
709
+ }
710
+ @media (prefers-reduced-motion: reduce) {
711
+ .m-dialog-enter-active,
712
+ .m-dialog-leave-active,
713
+ .m-dialog-enter-active .m-dialog-panel,
714
+ .m-dialog-leave-active .m-dialog-panel {
715
+ transition: none;
716
+ }
717
+ .m-dialog-enter-from .m-dialog-panel,
718
+ .m-dialog-leave-to .m-dialog-panel {
719
+ transform: none;
720
+ }
721
+ }
722
+ @media (forced-colors: active) {
723
+ .m-dialog-panel {
724
+ border-color: CanvasText;
725
+ }
726
+ }
727
+
728
+ .m-tabs-scroll {
729
+ min-width: 0;
730
+ overflow-x: auto;
731
+ overscroll-behavior-x: contain;
732
+ scrollbar-width: thin;
733
+ padding-top: 4px;
734
+ }
735
+ .m-tabs-track {
736
+ display: flex;
737
+ position: relative;
738
+ width: max-content;
739
+ min-width: 100%;
740
+ border-bottom: 1px solid;
741
+ }
742
+ .m-tab {
743
+ appearance: none;
744
+ flex: none;
745
+ min-height: 52px;
746
+ padding: 14px 20px 17px;
747
+ margin: 0;
748
+ border: 0;
749
+ border-radius: 12px 12px 0 0;
750
+ background: transparent;
751
+ font: inherit;
752
+ font-weight: 600;
753
+ line-height: 1.4;
754
+ white-space: nowrap;
755
+ cursor: pointer;
756
+ }
757
+ .m-tab:disabled {
758
+ opacity: 0.4;
759
+ cursor: default;
760
+ }
761
+ .m-tab:not(:disabled):hover,
762
+ .m-tab:not(:disabled):active {
763
+ background: var(--m-tab-active);
764
+ }
765
+ .m-tab:focus-visible {
766
+ outline: 2px solid var(--m-focus);
767
+ outline-offset: -4px;
768
+ }
769
+ .m-tabs-indicator {
770
+ position: absolute;
771
+ bottom: -1px;
772
+ left: 0;
773
+ height: 3px;
774
+ border-radius: 999px;
775
+ pointer-events: none;
776
+ transition:
777
+ transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
778
+ width 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
779
+ }
780
+ .m-tab-panel {
781
+ min-width: 0;
782
+ }
783
+ .m-tab-panel:focus-visible {
784
+ outline: 2px solid var(--m-focus);
785
+ outline-offset: 4px;
786
+ border-radius: 8px;
787
+ }
788
+ @media (prefers-reduced-motion: reduce) {
789
+ .m-tabs-indicator {
790
+ transition: none;
791
+ }
792
+ }
793
+ @media (forced-colors: active) {
794
+ .m-tabs-indicator {
795
+ background: Highlight !important;
796
+ }
797
+ }
798
+
799
+ .m-skeleton[data-animated='true'] {
800
+ animation: m-skeleton-pulse 1600ms ease-in-out infinite;
801
+ }
802
+ @keyframes m-skeleton-pulse {
803
+ 0%,
804
+ 100% {
805
+ opacity: 1;
806
+ }
807
+ 50% {
808
+ opacity: 0.45;
809
+ }
810
+ }
811
+ @media (prefers-reduced-motion: reduce) {
812
+ .m-skeleton[data-animated='true'] {
813
+ animation: none;
814
+ }
815
+ }
816
+ @media (forced-colors: active) {
817
+ .m-skeleton {
818
+ background-color: GrayText !important;
819
+ }
820
+ }
821
+
822
+ .m-progress[data-indeterminate='true'] .m-progress-fill {
823
+ animation: m-progress-travel var(--m-progress-duration) ease-in-out infinite;
824
+ }
825
+ @keyframes m-progress-travel {
826
+ 0%,
827
+ 100% {
828
+ transform: translateX(0);
829
+ }
830
+ 50% {
831
+ transform: translateX(var(--m-progress-travel));
832
+ }
833
+ }
834
+ @media (prefers-reduced-motion: reduce) {
835
+ .m-progress[data-indeterminate='true'] .m-progress-fill {
836
+ animation: none;
837
+ transform: translateX(var(--m-progress-rest));
838
+ }
839
+ }
840
+
841
+ .m-accordion-heading {
842
+ margin: 0;
843
+ font: inherit;
844
+ }
845
+ .m-accordion-trigger {
846
+ display: flex;
847
+ align-items: center;
848
+ width: 100%;
849
+ min-height: 48px;
850
+ box-sizing: border-box;
851
+ margin: 0;
852
+ border: 0;
853
+ background: transparent;
854
+ font: inherit;
855
+ line-height: 1.5;
856
+ text-align: start;
857
+ cursor: pointer;
858
+ touch-action: pan-y;
859
+ }
860
+ .m-accordion-copy {
861
+ min-width: 0;
862
+ flex: 1;
863
+ overflow-wrap: anywhere;
864
+ }
865
+ .m-accordion-trigger:focus-visible {
866
+ outline: 2px solid var(--m-focus);
867
+ outline-offset: -2px;
868
+ }
869
+ .m-accordion-trigger:disabled {
870
+ opacity: 0.45;
871
+ cursor: default;
872
+ }
873
+ .m-accordion-item [role='region'] {
874
+ min-width: 0;
875
+ }
876
+
877
+ .m-segmented-track {
878
+ position: relative;
879
+ display: grid;
880
+ gap: 4px;
881
+ min-width: 0;
882
+ }
883
+ .m-segmented-marker {
884
+ position: absolute;
885
+ inset-inline-start: 0;
886
+ top: 0;
887
+ height: 100%;
888
+ pointer-events: none;
889
+ border-radius: var(--m-segment-radius);
890
+ transform: translateX(var(--m-segment-offset));
891
+ transition: transform var(--m-segment-duration) var(--m-segment-ease);
892
+ }
893
+ .m-segmented-marker:dir(rtl) {
894
+ transform: translateX(calc(-1 * var(--m-segment-offset)));
895
+ }
896
+ .m-segmented-option {
897
+ position: relative;
898
+ min-width: 0;
899
+ min-height: 48px;
900
+ margin: 0;
901
+ padding: 10px 8px;
902
+ border: 2px solid transparent;
903
+ border-radius: var(--m-segment-radius);
904
+ background: transparent;
905
+ font: inherit;
906
+ font-weight: 600;
907
+ line-height: 1.5;
908
+ overflow-wrap: anywhere;
909
+ cursor: pointer;
910
+ touch-action: pan-y;
911
+ }
912
+ .m-segmented-option:focus-visible {
913
+ outline: 2px solid var(--m-focus);
914
+ outline-offset: -2px;
915
+ }
916
+ .m-segmented-option:disabled {
917
+ cursor: default;
918
+ }
919
+ @media (prefers-reduced-motion: reduce) {
920
+ .m-segmented-marker {
921
+ transition: none;
922
+ }
923
+ }
924
+ @media (forced-colors: active) {
925
+ .m-segmented-option[aria-checked='true'] {
926
+ border-color: Highlight;
927
+ }
928
+ }
929
+
930
+ .m-chip-label {
931
+ display: inline-flex;
932
+ align-items: center;
933
+ justify-content: center;
934
+ gap: 6px;
935
+ flex: 1 1 auto;
936
+ min-width: 0;
937
+ min-height: 46px;
938
+ box-sizing: border-box;
939
+ margin: 0;
940
+ padding: 10px 14px;
941
+ border: 0;
942
+ border-radius: 999px;
943
+ background: transparent;
944
+ font: inherit;
945
+ font-weight: 600;
946
+ line-height: 1.4;
947
+ }
948
+ .m-chip-text {
949
+ min-width: 0;
950
+ overflow-wrap: anywhere;
951
+ }
952
+ button.m-chip-label {
953
+ cursor: pointer;
954
+ touch-action: pan-y;
955
+ transition: transform var(--m-press-duration) var(--m-press-ease);
956
+ }
957
+ button.m-chip-label:active:not(:disabled) {
958
+ transform: scale(var(--m-press-scale));
959
+ }
960
+ button.m-chip-label:focus-visible {
961
+ outline: 2px solid var(--m-focus);
962
+ outline-offset: -2px;
963
+ }
964
+ button.m-chip-label:disabled {
965
+ cursor: default;
966
+ }
967
+ @media (prefers-reduced-motion: reduce) {
968
+ button.m-chip-label {
969
+ transition: none;
970
+ }
971
+ button.m-chip-label:active:not(:disabled) {
972
+ transform: none;
973
+ }
974
+ }
975
+ @media (forced-colors: active) {
976
+ .m-chip:has([aria-pressed='true']) {
977
+ border-color: Highlight;
978
+ }
979
+ }
980
+
981
+ .m-button-adornment {
982
+ display: inline-flex;
983
+ align-items: center;
984
+ flex-shrink: 0;
985
+ pointer-events: none;
986
+ }
987
+
988
+ .m-link:focus-visible {
989
+ outline: 2px solid var(--m-focus);
990
+ outline-offset: 3px;
991
+ border-radius: 3px;
992
+ }