@usememos/ui 26.10.0 → 26.10.2

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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -92
  3. package/dist/index.js +3 -48
  4. package/dist/index.js.map +7 -0
  5. package/dist/styles.css +1 -0
  6. package/dist/tokens.css +1 -0
  7. package/dist/types/components/avatar/index.d.ts +16 -0
  8. package/dist/types/components/badge/index.d.ts +10 -0
  9. package/dist/types/components/button/index.d.ts +29 -0
  10. package/dist/types/components/checkbox/index.d.ts +11 -0
  11. package/dist/types/components/collapsible/index.d.ts +15 -0
  12. package/dist/types/components/combobox/index.d.ts +66 -0
  13. package/dist/types/components/dialog/alert-dialog.d.ts +19 -0
  14. package/dist/types/components/dialog/index.d.ts +22 -0
  15. package/dist/types/components/dialog/parts.d.ts +34 -0
  16. package/dist/types/components/field/fieldset.d.ts +11 -0
  17. package/dist/types/components/field/index.d.ts +24 -0
  18. package/dist/types/components/input/index.d.ts +19 -0
  19. package/dist/types/components/kbd/index.d.ts +5 -0
  20. package/dist/types/components/link/index.d.ts +11 -0
  21. package/dist/types/components/menu/index.d.ts +67 -0
  22. package/dist/types/components/popover/index.d.ts +28 -0
  23. package/dist/types/components/prose/index.d.ts +11 -0
  24. package/dist/types/components/radio-group/index.d.ts +15 -0
  25. package/dist/types/components/select/index.d.ts +46 -0
  26. package/dist/types/components/separator/index.d.ts +5 -0
  27. package/dist/types/components/skeleton/index.d.ts +13 -0
  28. package/dist/types/components/spinner/index.d.ts +10 -0
  29. package/dist/types/components/switch/index.d.ts +11 -0
  30. package/dist/types/components/table/index.d.ts +42 -0
  31. package/dist/types/components/tabs/index.d.ts +22 -0
  32. package/dist/types/components/textarea/index.d.ts +9 -0
  33. package/dist/types/components/toast/index.d.ts +19 -0
  34. package/dist/types/components/toggle/index.d.ts +11 -0
  35. package/dist/types/components/toggle-group/index.d.ts +13 -0
  36. package/dist/types/components/tooltip/index.d.ts +24 -0
  37. package/dist/types/index.d.ts +30 -0
  38. package/dist/types/internal/class-name.d.ts +7 -0
  39. package/dist/types/internal/popup.d.ts +9 -0
  40. package/dist/types/internal/size.d.ts +5 -0
  41. package/dist/types/types.d.ts +7 -0
  42. package/llms-full.txt +2181 -0
  43. package/llms.txt +53 -0
  44. package/package.json +34 -157
  45. package/dist/button.cjs +0 -74
  46. package/dist/button.d.cts +0 -15
  47. package/dist/button.d.ts +0 -15
  48. package/dist/button.js +0 -7
  49. package/dist/checkbox.cjs +0 -98
  50. package/dist/checkbox.d.cts +0 -16
  51. package/dist/checkbox.d.ts +0 -16
  52. package/dist/checkbox.js +0 -7
  53. package/dist/chunk-3DNMGJFC.js +0 -216
  54. package/dist/chunk-3VYNJ6UM.js +0 -27
  55. package/dist/chunk-3YY2G3JK.js +0 -125
  56. package/dist/chunk-5GQEJQKE.js +0 -60
  57. package/dist/chunk-6TNEFWVX.js +0 -9
  58. package/dist/chunk-BH4MPO4N.js +0 -25
  59. package/dist/chunk-F6GH4X7N.js +0 -34
  60. package/dist/chunk-HYN2P4OY.js +0 -84
  61. package/dist/chunk-OIUVLPTE.js +0 -54
  62. package/dist/chunk-S6LVYCE6.js +0 -157
  63. package/dist/chunk-SNSDJKJP.js +0 -44
  64. package/dist/chunk-WPO54YPG.js +0 -328
  65. package/dist/chunk-Z3ME5VRQ.js +0 -98
  66. package/dist/control-size-Bz2gyuyO.d.cts +0 -3
  67. package/dist/control-size-Bz2gyuyO.d.ts +0 -3
  68. package/dist/dialog.cjs +0 -203
  69. package/dist/dialog.d.cts +0 -34
  70. package/dist/dialog.d.ts +0 -34
  71. package/dist/dialog.js +0 -8
  72. package/dist/dropdown-menu.cjs +0 -378
  73. package/dist/dropdown-menu.d.cts +0 -60
  74. package/dist/dropdown-menu.d.ts +0 -60
  75. package/dist/dropdown-menu.js +0 -8
  76. package/dist/index.cjs +0 -1223
  77. package/dist/index.d.cts +0 -21
  78. package/dist/index.d.ts +0 -21
  79. package/dist/input.cjs +0 -67
  80. package/dist/input.d.cts +0 -11
  81. package/dist/input.d.ts +0 -11
  82. package/dist/input.js +0 -7
  83. package/dist/popover.cjs +0 -175
  84. package/dist/popover.d.cts +0 -53
  85. package/dist/popover.d.ts +0 -53
  86. package/dist/popover.js +0 -8
  87. package/dist/radio-group.cjs +0 -122
  88. package/dist/radio-group.d.cts +0 -25
  89. package/dist/radio-group.d.ts +0 -25
  90. package/dist/radio-group.js +0 -7
  91. package/dist/select.cjs +0 -266
  92. package/dist/select.d.cts +0 -45
  93. package/dist/select.d.ts +0 -45
  94. package/dist/select.js +0 -8
  95. package/dist/separator.cjs +0 -82
  96. package/dist/separator.d.cts +0 -12
  97. package/dist/separator.d.ts +0 -12
  98. package/dist/separator.js +0 -7
  99. package/dist/switch.cjs +0 -92
  100. package/dist/switch.d.cts +0 -16
  101. package/dist/switch.d.ts +0 -16
  102. package/dist/switch.js +0 -7
  103. package/dist/theme.css +0 -1097
  104. package/dist/tooltip.cjs +0 -148
  105. package/dist/tooltip.d.cts +0 -24
  106. package/dist/tooltip.d.ts +0 -24
  107. package/dist/tooltip.js +0 -8
package/dist/theme.css DELETED
@@ -1,1097 +0,0 @@
1
- @layer mui.reset, mui.tokens, mui.components, mui.utilities;
2
-
3
- @layer mui.reset {
4
- *, *::before, *::after {
5
- box-sizing: border-box;
6
- }
7
-
8
- :where(button, input, textarea, select) {
9
- font: inherit;
10
- }
11
- }
12
-
13
- @layer mui.tokens {
14
- :root,
15
- [data-mui-theme="light"] {
16
- color-scheme: light;
17
- --mui-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
18
- --mui-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
19
- --mui-radius-sm: 0.125rem;
20
- --mui-radius-md: 0.25rem;
21
- --mui-radius-lg: 0.375rem;
22
- --mui-radius-xl: 0.5rem;
23
- --mui-space-1: 0.25rem;
24
- --mui-space-2: 0.5rem;
25
- --mui-space-3: 0.75rem;
26
- --mui-space-4: 1rem;
27
- --mui-space-5: 1.25rem;
28
- --mui-space-6: 1.5rem;
29
- --mui-space-8: 2rem;
30
- --mui-space-12: 3rem;
31
- --mui-text-xs: 0.75rem;
32
- --mui-text-sm: 0.875rem;
33
- --mui-text-base: 0.9375rem;
34
- --mui-text-lg: 1.125rem;
35
- --mui-text-xl: 1.25rem;
36
- --mui-text-2xl: 1.5rem;
37
- --mui-control-height-xs: 1.25rem;
38
- --mui-control-height-sm: 1.625rem;
39
- --mui-control-height-md: 2.25rem;
40
- --mui-control-height-lg: 2.5rem;
41
- --mui-control-padding-x-xs: 0.375rem;
42
- --mui-control-padding-x-sm: 0.5rem;
43
- --mui-control-padding-x-md: 0.75rem;
44
- --mui-control-padding-x-lg: 1rem;
45
- --mui-control-gap-sm: 0.25rem;
46
- --mui-control-gap-md: 0.375rem;
47
- --mui-control-gap-lg: 0.5rem;
48
- --mui-control-icon-size-xs: 0.875rem;
49
- --mui-control-icon-size-sm: 0.875rem;
50
- --mui-control-icon-size-md: 1rem;
51
- --mui-control-icon-size-lg: 1.125rem;
52
- --mui-control-font-size-xs: var(--mui-text-xs);
53
- --mui-control-font-size-sm: var(--mui-text-xs);
54
- --mui-control-font-size-md: 1rem;
55
- --mui-control-font-size-lg: 1rem;
56
- --mui-choice-size-xs: 0.75rem;
57
- --mui-choice-size-sm: 0.875rem;
58
- --mui-choice-size-md: 1rem;
59
- --mui-choice-size-lg: 1.125rem;
60
- --mui-switch-width-xs: 1.75rem;
61
- --mui-switch-width-sm: 2rem;
62
- --mui-switch-width-md: 2.25rem;
63
- --mui-switch-width-lg: 2.75rem;
64
- --mui-switch-height-xs: 1rem;
65
- --mui-switch-height-sm: 1.125rem;
66
- --mui-switch-height-md: 1.25rem;
67
- --mui-switch-height-lg: 1.5rem;
68
- --mui-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
69
- --mui-shadow-floating: 0 10px 28px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.06);
70
- --mui-shadow-modal: 0 24px 72px rgb(0 0 0 / 0.18), 0 6px 18px rgb(0 0 0 / 0.08);
71
- --mui-z-index-dropdown: 1000;
72
- --mui-z-index-sticky: 1100;
73
- --mui-z-index-overlay: 1300;
74
- --mui-z-index-modal: 1400;
75
- --mui-z-index-modal-popover: 1500;
76
- --mui-z-index-popover: 1200;
77
- --mui-z-index-tooltip: 1200;
78
- --mui-color-background: oklch(0.985 0.0015 260);
79
- --mui-color-foreground: oklch(0.205 0.004 260);
80
- --mui-color-card: oklch(1 0 0);
81
- --mui-color-card-foreground: oklch(0.205 0.004 260);
82
- --mui-color-popover: oklch(1 0 0);
83
- --mui-color-popover-foreground: oklch(0.205 0.004 260);
84
- --mui-color-primary: oklch(0.245 0.006 260);
85
- --mui-color-primary-foreground: oklch(0.99 0 0);
86
- --mui-color-secondary: oklch(0.952 0.002 260);
87
- --mui-color-secondary-foreground: oklch(0.265 0.005 260);
88
- --mui-color-muted: oklch(0.943 0.002 260);
89
- --mui-color-muted-foreground: oklch(0.49 0.004 260);
90
- --mui-color-accent: oklch(0.93 0.003 260);
91
- --mui-color-accent-foreground: oklch(0.225 0.005 260);
92
- --mui-color-destructive: oklch(0.56 0.18 25);
93
- --mui-color-destructive-foreground: oklch(1 0 0);
94
- --mui-color-border: oklch(0.895 0.003 260);
95
- --mui-color-input: oklch(0.84 0.003 260);
96
- --mui-color-ring: oklch(0.52 0.085 155);
97
- --mui-color-sidebar: oklch(0.965 0.002 260);
98
- --mui-color-sidebar-foreground: oklch(0.41 0.004 260);
99
- --mui-color-sidebar-accent: oklch(0.925 0.003 260);
100
- --mui-color-sidebar-accent-foreground: oklch(0.225 0.005 260);
101
- --mui-color-sidebar-border: oklch(0.88 0.003 260);
102
- --mui-color-surface-hover: oklch(0.958 0.002 260);
103
- --mui-color-surface-pressed: oklch(0.925 0.003 260);
104
- --mui-color-border-subtle: oklch(0.925 0.0025 260);
105
- --mui-color-text-subtle: oklch(0.42 0.004 260);
106
- --mui-color-text-faint: oklch(0.63 0.004 260);
107
- --mui-color-brand-accent: oklch(0.56 0.105 155);
108
- --mui-color-overlay: oklch(0.205 0.004 260 / 0.42);
109
- --mui-color-surface: var(--mui-color-card);
110
- --mui-color-success: var(--mui-color-brand-accent);
111
- --mui-shadow-md: var(--mui-shadow-floating);
112
- --mui-font-size-3xs: 0.625rem;
113
- --mui-font-size-2xs: 0.6875rem;
114
- --mui-font-size-xs: var(--mui-text-xs);
115
- --mui-font-size-sm: var(--mui-text-sm);
116
- --mui-font-size-md: var(--mui-text-base);
117
- }
118
-
119
- .dark,
120
- [data-mui-theme="dark"] {
121
- color-scheme: dark;
122
- --mui-color-background: oklch(0.18 0.003 260);
123
- --mui-color-foreground: oklch(0.965 0.002 260);
124
- --mui-color-card: oklch(0.225 0.004 260);
125
- --mui-color-card-foreground: oklch(0.965 0.002 260);
126
- --mui-color-popover: oklch(0.245 0.004 260);
127
- --mui-color-popover-foreground: oklch(0.965 0.002 260);
128
- --mui-color-primary: oklch(0.94 0.002 260);
129
- --mui-color-primary-foreground: oklch(0.19 0.004 260);
130
- --mui-color-secondary: oklch(0.285 0.004 260);
131
- --mui-color-secondary-foreground: oklch(0.94 0.002 260);
132
- --mui-color-muted: oklch(0.265 0.004 260);
133
- --mui-color-muted-foreground: oklch(0.74 0.004 260);
134
- --mui-color-accent: oklch(0.315 0.004 260);
135
- --mui-color-accent-foreground: oklch(0.965 0.002 260);
136
- --mui-color-destructive: oklch(0.62 0.17 25);
137
- --mui-color-destructive-foreground: oklch(1 0 0);
138
- --mui-color-border: oklch(0.36 0.004 260);
139
- --mui-color-input: oklch(0.43 0.004 260);
140
- --mui-color-ring: oklch(0.66 0.095 155);
141
- --mui-color-sidebar: oklch(0.205 0.004 260);
142
- --mui-color-sidebar-foreground: oklch(0.78 0.004 260);
143
- --mui-color-sidebar-accent: oklch(0.295 0.004 260);
144
- --mui-color-sidebar-accent-foreground: oklch(0.965 0.002 260);
145
- --mui-color-sidebar-border: oklch(0.33 0.004 260);
146
- --mui-color-surface-hover: oklch(0.285 0.004 260);
147
- --mui-color-surface-pressed: oklch(0.34 0.004 260);
148
- --mui-color-border-subtle: oklch(0.31 0.004 260);
149
- --mui-color-text-subtle: oklch(0.78 0.004 260);
150
- --mui-color-text-faint: oklch(0.64 0.004 260);
151
- --mui-color-brand-accent: oklch(0.68 0.105 155);
152
- --mui-color-overlay: oklch(0.12 0.003 260 / 0.72);
153
- }
154
-
155
- [data-mui-theme] {
156
- font-family: var(--mui-font-sans);
157
- color: var(--mui-color-foreground);
158
- background: var(--mui-color-background);
159
- }
160
- }
161
-
162
- @layer mui.components {
163
- .mui-button,
164
- .mui-input,
165
- .mui-textarea,
166
- .mui-badge,
167
- .mui-checkbox,
168
- .mui-switch,
169
- .mui-switch__thumb,
170
- .mui-radio-group__item,
171
- .mui-select__trigger,
172
- .mui-dialog__content,
173
- .mui-popover__content,
174
- .mui-select__content,
175
- .mui-tooltip__content,
176
- .mui-dropdown-menu__content,
177
- .mui-sheet__content {
178
- transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, opacity 140ms ease, transform 140ms ease;
179
- }
180
-
181
- .mui-button {
182
- all: unset;
183
- appearance: none;
184
- box-sizing: border-box;
185
- display: inline-flex;
186
- align-items: center;
187
- justify-content: center;
188
- gap: var(--mui-control-gap-md);
189
- min-width: 0;
190
- border: 1px solid transparent;
191
- border-radius: var(--mui-radius-lg);
192
- font-size: var(--mui-control-font-size-md);
193
- font-weight: 500;
194
- letter-spacing: 0;
195
- line-height: 1.25;
196
- cursor: pointer;
197
- text-decoration: none;
198
- outline: none;
199
- white-space: nowrap;
200
- }
201
-
202
- .mui-button > svg {
203
- width: var(--mui-control-icon-size-md);
204
- height: var(--mui-control-icon-size-md);
205
- flex: 0 0 auto;
206
- }
207
-
208
- .mui-button:focus-visible {
209
- border-color: var(--mui-color-ring);
210
- }
211
-
212
- .mui-input:focus-visible,
213
- .mui-textarea:focus-visible,
214
- .mui-checkbox:focus-visible,
215
- .mui-switch:focus-visible,
216
- .mui-radio-group__item:focus-visible,
217
- .mui-select__trigger:focus-visible {
218
- border-color: var(--mui-color-ring);
219
- }
220
-
221
- .mui-button[data-size="xs"] {
222
- min-height: var(--mui-control-height-xs);
223
- padding: 0 var(--mui-control-padding-x-xs);
224
- gap: var(--mui-control-gap-sm);
225
- border-radius: var(--mui-radius-md);
226
- font-size: var(--mui-control-font-size-xs);
227
- }
228
-
229
- .mui-button[data-size="sm"] {
230
- min-height: var(--mui-control-height-sm);
231
- padding: 0 var(--mui-control-padding-x-sm);
232
- gap: var(--mui-control-gap-sm);
233
- border-radius: var(--mui-radius-md);
234
- font-size: var(--mui-control-font-size-sm);
235
- }
236
-
237
- .mui-button[data-size="md"] {
238
- min-height: var(--mui-control-height-md);
239
- padding: 0 var(--mui-control-padding-x-md);
240
- border-radius: var(--mui-radius-xl);
241
- font-size: var(--mui-control-font-size-md);
242
- }
243
-
244
- .mui-button[data-size="lg"] {
245
- min-height: var(--mui-control-height-lg);
246
- padding: 0 var(--mui-control-padding-x-lg);
247
- gap: var(--mui-control-gap-lg);
248
- border-radius: var(--mui-radius-xl);
249
- font-size: var(--mui-control-font-size-lg);
250
- }
251
-
252
- .mui-button[data-size="icon"] {
253
- width: var(--mui-control-height-xs);
254
- height: var(--mui-control-height-xs);
255
- min-height: var(--mui-control-height-xs);
256
- padding: 0;
257
- gap: 0;
258
- }
259
-
260
- .mui-button[data-size="xs"] > svg {
261
- width: var(--mui-control-icon-size-xs);
262
- height: var(--mui-control-icon-size-xs);
263
- }
264
-
265
- .mui-button[data-size="sm"] > svg {
266
- width: var(--mui-control-icon-size-sm);
267
- height: var(--mui-control-icon-size-sm);
268
- }
269
-
270
- .mui-button[data-size="lg"] > svg {
271
- width: var(--mui-control-icon-size-lg);
272
- height: var(--mui-control-icon-size-lg);
273
- }
274
-
275
- .mui-button[data-variant="default"] {
276
- background: var(--mui-color-primary);
277
- color: var(--mui-color-primary-foreground);
278
- }
279
-
280
- .mui-button[data-variant="secondary"] {
281
- background: var(--mui-color-secondary);
282
- color: var(--mui-color-secondary-foreground);
283
- }
284
-
285
- .mui-button[data-variant="outline"] {
286
- background: var(--mui-color-card);
287
- color: var(--mui-color-foreground);
288
- border-color: var(--mui-color-input);
289
- }
290
-
291
- .mui-button[data-variant="ghost"] {
292
- background: transparent;
293
- color: var(--mui-color-foreground);
294
- }
295
-
296
- .mui-button[data-variant="destructive"] {
297
- background: var(--mui-color-destructive);
298
- color: var(--mui-color-destructive-foreground);
299
- }
300
-
301
- .mui-button[data-variant="link"] {
302
- background: transparent;
303
- color: var(--mui-color-primary);
304
- border-color: transparent;
305
- text-decoration-line: underline;
306
- text-underline-offset: 3px;
307
- }
308
-
309
- .mui-button:is(:hover, [data-hovered]):not(:disabled, [data-disabled]) {
310
- background: var(--mui-color-surface-hover);
311
- }
312
-
313
- .mui-button[data-variant="default"]:is(:hover, [data-hovered]):not(:disabled, [data-disabled]) {
314
- background: color-mix(in oklch, var(--mui-color-primary) 92%, var(--mui-color-background));
315
- }
316
-
317
- .mui-button[data-variant="destructive"]:is(:hover, [data-hovered]):not(:disabled, [data-disabled]) {
318
- background: color-mix(in oklch, var(--mui-color-destructive) 92%, var(--mui-color-background));
319
- }
320
-
321
- .mui-button:is(:active, [data-pressed]):not(:disabled, [data-disabled]) {
322
- background: var(--mui-color-surface-pressed);
323
- }
324
-
325
- .mui-button[data-variant="default"]:is(:active, [data-pressed]):not(:disabled, [data-disabled]) {
326
- background: color-mix(in oklch, var(--mui-color-primary) 86%, var(--mui-color-background));
327
- }
328
-
329
- .mui-button[data-variant="destructive"]:is(:active, [data-pressed]):not(:disabled, [data-disabled]) {
330
- background: color-mix(in oklch, var(--mui-color-destructive) 86%, var(--mui-color-background));
331
- }
332
-
333
- .mui-button:disabled,
334
- .mui-button[data-disabled] {
335
- cursor: not-allowed;
336
- opacity: 0.55;
337
- }
338
-
339
- .mui-input,
340
- .mui-textarea,
341
- .mui-select__trigger {
342
- appearance: none;
343
- width: 100%;
344
- border: 1px solid var(--mui-color-input);
345
- border-radius: var(--mui-radius-xl);
346
- background: var(--mui-color-card);
347
- color: var(--mui-color-foreground);
348
- font-size: var(--mui-control-font-size-md);
349
- line-height: 1.4;
350
- outline: none;
351
- }
352
-
353
- .mui-input {
354
- min-height: var(--mui-control-height-md);
355
- padding: 0 var(--mui-control-padding-x-md);
356
- }
357
-
358
- .mui-input[data-size="xs"],
359
- .mui-select__trigger[data-size="xs"] {
360
- min-height: var(--mui-control-height-xs);
361
- padding: 0 var(--mui-control-padding-x-xs);
362
- border-radius: var(--mui-radius-md);
363
- font-size: var(--mui-control-font-size-xs);
364
- }
365
-
366
- .mui-input[data-size="sm"],
367
- .mui-select__trigger[data-size="sm"] {
368
- min-height: var(--mui-control-height-sm);
369
- padding: 0 var(--mui-control-padding-x-sm);
370
- border-radius: var(--mui-radius-md);
371
- font-size: var(--mui-control-font-size-sm);
372
- }
373
-
374
- .mui-input[data-size="md"],
375
- .mui-select__trigger[data-size="md"] {
376
- min-height: var(--mui-control-height-md);
377
- padding: 0 var(--mui-control-padding-x-md);
378
- border-radius: var(--mui-radius-xl);
379
- font-size: var(--mui-control-font-size-md);
380
- }
381
-
382
- .mui-input[data-size="lg"],
383
- .mui-select__trigger[data-size="lg"] {
384
- min-height: var(--mui-control-height-lg);
385
- padding: 0 var(--mui-control-padding-x-lg);
386
- border-radius: var(--mui-radius-xl);
387
- font-size: var(--mui-control-font-size-lg);
388
- }
389
-
390
- .mui-textarea {
391
- min-height: 5rem;
392
- resize: vertical;
393
- padding: var(--mui-space-2) var(--mui-control-padding-x-md);
394
- }
395
-
396
- .mui-textarea[data-size="xs"] {
397
- min-height: calc(var(--mui-control-height-xs) * 3);
398
- padding: var(--mui-space-1) var(--mui-control-padding-x-xs);
399
- border-radius: var(--mui-radius-md);
400
- font-size: var(--mui-control-font-size-xs);
401
- }
402
-
403
- .mui-textarea[data-size="sm"] {
404
- min-height: calc(var(--mui-control-height-sm) * 3);
405
- padding: var(--mui-space-1) var(--mui-control-padding-x-sm);
406
- border-radius: var(--mui-radius-md);
407
- font-size: var(--mui-control-font-size-sm);
408
- }
409
-
410
- .mui-textarea[data-size="md"] {
411
- min-height: 5rem;
412
- padding: var(--mui-space-2) var(--mui-control-padding-x-md);
413
- border-radius: var(--mui-radius-xl);
414
- font-size: var(--mui-control-font-size-md);
415
- }
416
-
417
- .mui-textarea[data-size="lg"] {
418
- min-height: 6rem;
419
- padding: var(--mui-space-2) var(--mui-control-padding-x-lg);
420
- border-radius: var(--mui-radius-xl);
421
- font-size: var(--mui-control-font-size-lg);
422
- }
423
-
424
- .mui-input:not([data-size]),
425
- .mui-textarea:not([data-size]),
426
- .mui-select__trigger:not([data-size]) {
427
- border-radius: var(--mui-radius-xl);
428
- }
429
-
430
- .mui-input::placeholder,
431
- .mui-textarea::placeholder {
432
- color: var(--mui-color-text-faint);
433
- }
434
-
435
- .mui-input:disabled,
436
- .mui-input[data-disabled],
437
- .mui-textarea:disabled,
438
- .mui-select__trigger[data-disabled] {
439
- cursor: not-allowed;
440
- opacity: 0.55;
441
- }
442
-
443
- .mui-badge {
444
- display: inline-flex;
445
- align-items: center;
446
- gap: var(--mui-space-1);
447
- min-height: 1.25rem;
448
- padding: 0 var(--mui-space-2);
449
- border-radius: 999px;
450
- font-size: var(--mui-font-size-xs);
451
- font-weight: 500;
452
- letter-spacing: 0;
453
- border: 1px solid transparent;
454
- line-height: 1;
455
- }
456
-
457
- .mui-badge[data-variant="solid"] {
458
- background: var(--mui-color-primary);
459
- color: var(--mui-color-primary-foreground);
460
- }
461
-
462
- .mui-badge[data-variant="subtle"] {
463
- background: var(--mui-color-secondary);
464
- color: var(--mui-color-secondary-foreground);
465
- }
466
-
467
- .mui-badge[data-variant="outline"] {
468
- background: var(--mui-color-card);
469
- border-color: var(--mui-color-input);
470
- color: var(--mui-color-foreground);
471
- }
472
-
473
- .mui-separator[data-orientation="horizontal"] {
474
- width: 100%;
475
- height: 1px;
476
- background: var(--mui-color-border-subtle);
477
- }
478
-
479
- .mui-separator[data-orientation="vertical"] {
480
- width: 1px;
481
- height: 100%;
482
- background: var(--mui-color-border-subtle);
483
- }
484
-
485
- .mui-checkbox,
486
- .mui-radio-group__item {
487
- display: inline-flex;
488
- align-items: center;
489
- justify-content: center;
490
- width: var(--mui-choice-size-md);
491
- height: var(--mui-choice-size-md);
492
- flex: 0 0 var(--mui-choice-size-md);
493
- border: 1px solid var(--mui-color-input);
494
- background: var(--mui-color-card);
495
- color: var(--mui-color-primary-foreground);
496
- outline: none;
497
- }
498
-
499
- .mui-checkbox {
500
- border-radius: var(--mui-radius-md);
501
- }
502
-
503
- .mui-checkbox[data-size="xs"],
504
- .mui-radio-group__item[data-size="xs"] {
505
- width: var(--mui-choice-size-xs);
506
- height: var(--mui-choice-size-xs);
507
- flex-basis: var(--mui-choice-size-xs);
508
- }
509
-
510
- .mui-checkbox[data-size="sm"],
511
- .mui-radio-group__item[data-size="sm"] {
512
- width: var(--mui-choice-size-sm);
513
- height: var(--mui-choice-size-sm);
514
- flex-basis: var(--mui-choice-size-sm);
515
- }
516
-
517
- .mui-checkbox[data-size="md"],
518
- .mui-radio-group__item[data-size="md"] {
519
- width: var(--mui-choice-size-md);
520
- height: var(--mui-choice-size-md);
521
- flex-basis: var(--mui-choice-size-md);
522
- }
523
-
524
- .mui-checkbox[data-size="lg"],
525
- .mui-radio-group__item[data-size="lg"] {
526
- width: var(--mui-choice-size-lg);
527
- height: var(--mui-choice-size-lg);
528
- flex-basis: var(--mui-choice-size-lg);
529
- }
530
-
531
- .mui-checkbox:is(:hover, [data-hovered]):not([data-disabled]),
532
- .mui-radio-group__item:is(:hover, [data-hovered]):not([data-disabled]) {
533
- background: var(--mui-color-surface-hover);
534
- }
535
-
536
- .mui-checkbox[data-checked],
537
- .mui-radio-group__item[data-checked] {
538
- background: var(--mui-color-primary);
539
- border-color: var(--mui-color-primary);
540
- }
541
-
542
- .mui-checkbox[data-disabled],
543
- .mui-radio-group__item[data-disabled] {
544
- cursor: not-allowed;
545
- opacity: 0.55;
546
- }
547
-
548
- .mui-checkbox__indicator,
549
- .mui-radio-group__indicator {
550
- display: inline-flex;
551
- align-items: center;
552
- justify-content: center;
553
- width: 100%;
554
- height: 100%;
555
- }
556
-
557
- .mui-checkbox__indicator > svg {
558
- width: 70%;
559
- height: 70%;
560
- }
561
-
562
- .mui-switch {
563
- display: inline-flex;
564
- align-items: center;
565
- width: var(--mui-switch-width-md);
566
- height: var(--mui-switch-height-md);
567
- border-radius: 999px;
568
- border: 1px solid var(--mui-color-input);
569
- background: var(--mui-color-muted);
570
- padding: 1px;
571
- outline: none;
572
- }
573
-
574
- .mui-switch[data-size="xs"] {
575
- width: var(--mui-switch-width-xs);
576
- height: var(--mui-switch-height-xs);
577
- }
578
-
579
- .mui-switch[data-size="sm"] {
580
- width: var(--mui-switch-width-sm);
581
- height: var(--mui-switch-height-sm);
582
- }
583
-
584
- .mui-switch[data-size="md"] {
585
- width: var(--mui-switch-width-md);
586
- height: var(--mui-switch-height-md);
587
- }
588
-
589
- .mui-switch[data-size="lg"] {
590
- width: var(--mui-switch-width-lg);
591
- height: var(--mui-switch-height-lg);
592
- }
593
-
594
- .mui-switch:is(:hover, [data-hovered]):not([data-disabled]) {
595
- background: var(--mui-color-surface-hover);
596
- }
597
-
598
- .mui-switch[data-checked] {
599
- background: var(--mui-color-primary);
600
- border-color: var(--mui-color-primary);
601
- }
602
-
603
- .mui-switch[data-disabled] {
604
- cursor: not-allowed;
605
- opacity: 0.55;
606
- }
607
-
608
- .mui-switch__thumb {
609
- display: block;
610
- width: calc(var(--mui-switch-height-md) - 0.25rem);
611
- height: calc(var(--mui-switch-height-md) - 0.25rem);
612
- border-radius: 999px;
613
- background: var(--mui-color-card);
614
- box-shadow: var(--mui-shadow-sm);
615
- transform: translateX(0);
616
- }
617
-
618
- .mui-switch[data-checked] .mui-switch__thumb {
619
- transform: translateX(calc(var(--mui-switch-width-md) - var(--mui-switch-height-md)));
620
- }
621
-
622
- .mui-switch[data-size="xs"] .mui-switch__thumb {
623
- width: calc(var(--mui-switch-height-xs) - 0.25rem);
624
- height: calc(var(--mui-switch-height-xs) - 0.25rem);
625
- }
626
-
627
- .mui-switch[data-size="sm"] .mui-switch__thumb {
628
- width: calc(var(--mui-switch-height-sm) - 0.25rem);
629
- height: calc(var(--mui-switch-height-sm) - 0.25rem);
630
- }
631
-
632
- .mui-switch[data-size="lg"] .mui-switch__thumb {
633
- width: calc(var(--mui-switch-height-lg) - 0.25rem);
634
- height: calc(var(--mui-switch-height-lg) - 0.25rem);
635
- }
636
-
637
- .mui-switch[data-size="xs"][data-checked] .mui-switch__thumb {
638
- transform: translateX(calc(var(--mui-switch-width-xs) - var(--mui-switch-height-xs)));
639
- }
640
-
641
- .mui-switch[data-size="sm"][data-checked] .mui-switch__thumb {
642
- transform: translateX(calc(var(--mui-switch-width-sm) - var(--mui-switch-height-sm)));
643
- }
644
-
645
- .mui-switch[data-size="lg"][data-checked] .mui-switch__thumb {
646
- transform: translateX(calc(var(--mui-switch-width-lg) - var(--mui-switch-height-lg)));
647
- }
648
-
649
- .mui-radio-group {
650
- display: grid;
651
- gap: var(--mui-space-2);
652
- }
653
-
654
- .mui-radio-group__item {
655
- border-radius: 999px;
656
- }
657
-
658
- .mui-radio-group__indicator::after {
659
- content: "";
660
- width: 45%;
661
- height: 45%;
662
- border-radius: 999px;
663
- background: currentColor;
664
- display: block;
665
- }
666
-
667
- .mui-dialog__overlay,
668
- .mui-sheet__overlay {
669
- position: fixed;
670
- inset: 0;
671
- z-index: var(--mui-z-index-overlay);
672
- background: var(--mui-color-overlay);
673
- animation: mui-fade-in 140ms ease;
674
- }
675
-
676
- [data-scope="dropdown-menu"][data-part="positioner"],
677
- [data-scope="dropdown-menu"][data-part="sub-positioner"],
678
- [data-scope="select"][data-part="positioner"] {
679
- z-index: var(--mui-z-index-dropdown);
680
- }
681
-
682
- [data-scope="popover"][data-part="positioner"] {
683
- z-index: var(--mui-z-index-popover);
684
- }
685
-
686
- [data-scope="tooltip"][data-part="positioner"] {
687
- z-index: var(--mui-z-index-tooltip);
688
- }
689
-
690
- [data-mui-layer="modal"][data-part="positioner"],
691
- [data-mui-layer="modal"][data-part="sub-positioner"] {
692
- z-index: var(--mui-z-index-modal-popover);
693
- }
694
-
695
- .mui-dialog__content,
696
- .mui-sheet__content,
697
- .mui-popover__content,
698
- .mui-select__content,
699
- .mui-tooltip__content,
700
- .mui-dropdown-menu__content,
701
- .mui-calendar {
702
- background: var(--mui-color-popover);
703
- border: 1px solid var(--mui-color-border-subtle);
704
- box-shadow: var(--mui-shadow-floating);
705
- color: var(--mui-color-popover-foreground);
706
- }
707
-
708
- .mui-popover__content,
709
- .mui-select__content,
710
- .mui-tooltip__content,
711
- .mui-dropdown-menu__content {
712
- border-radius: var(--mui-radius-lg);
713
- }
714
-
715
- .mui-dialog__content,
716
- .mui-sheet__content,
717
- .mui-calendar {
718
- border-radius: var(--mui-radius-xl);
719
- }
720
-
721
- .mui-dialog__content {
722
- position: fixed;
723
- top: 50%;
724
- left: 50%;
725
- z-index: var(--mui-z-index-modal);
726
- width: min(28rem, calc(100vw - 2rem));
727
- max-height: calc(100vh - 2rem);
728
- transform: translate(-50%, -50%);
729
- padding: var(--mui-space-4);
730
- display: grid;
731
- gap: var(--mui-space-3);
732
- overflow: auto;
733
- box-shadow: var(--mui-shadow-modal);
734
- animation: mui-dialog-in 160ms ease;
735
- }
736
-
737
- .mui-dialog__header,
738
- .mui-dialog__footer {
739
- display: flex;
740
- gap: var(--mui-space-2);
741
- }
742
-
743
- .mui-dialog__header {
744
- flex-direction: column;
745
- padding-right: var(--mui-space-6);
746
- }
747
-
748
- .mui-dialog__footer {
749
- justify-content: flex-end;
750
- flex-wrap: wrap;
751
- }
752
-
753
- .mui-dialog__title {
754
- font-size: var(--mui-text-lg);
755
- font-weight: 600;
756
- letter-spacing: 0;
757
- line-height: 1.35;
758
- }
759
-
760
- .mui-dialog__description {
761
- font-size: var(--mui-text-sm);
762
- color: var(--mui-color-muted-foreground);
763
- line-height: 1.5;
764
- }
765
-
766
- .mui-dialog__close,
767
- .mui-sheet__close {
768
- position: absolute;
769
- top: var(--mui-space-3);
770
- right: var(--mui-space-3);
771
- display: inline-flex;
772
- align-items: center;
773
- justify-content: center;
774
- width: 2rem;
775
- height: 2rem;
776
- border: 0;
777
- border-radius: var(--mui-radius-lg);
778
- background: transparent;
779
- color: var(--mui-color-muted-foreground);
780
- cursor: pointer;
781
- outline: none;
782
- }
783
-
784
- .mui-dialog__close:hover,
785
- .mui-sheet__close:hover {
786
- background: var(--mui-color-surface-hover);
787
- color: var(--mui-color-foreground);
788
- }
789
-
790
- .mui-dialog__close:focus-visible,
791
- .mui-sheet__close:focus-visible {
792
- color: var(--mui-color-ring);
793
- }
794
-
795
- .mui-popover__content,
796
- .mui-select__content,
797
- .mui-dropdown-menu__content {
798
- padding: var(--mui-space-1);
799
- min-width: 10rem;
800
- max-height: min(22rem, var(--available-height, calc(100vh - 1rem)));
801
- overflow: auto;
802
- font-size: var(--mui-text-sm);
803
- line-height: 1.4;
804
- animation: mui-surface-in 140ms ease;
805
- }
806
-
807
- .mui-popover__content {
808
- padding: var(--mui-space-3);
809
- }
810
-
811
- .mui-select__content {
812
- min-width: max(10rem, var(--anchor-width, 0px));
813
- }
814
-
815
- .mui-tooltip__content {
816
- padding: var(--mui-space-1) var(--mui-space-2);
817
- font-size: var(--mui-text-xs);
818
- line-height: 1.35;
819
- max-width: 16rem;
820
- background: var(--mui-color-primary);
821
- border-color: transparent;
822
- color: var(--mui-color-primary-foreground);
823
- box-shadow: var(--mui-shadow-floating);
824
- animation: mui-surface-in 120ms ease;
825
- }
826
-
827
- .mui-dropdown-menu__item,
828
- .mui-select__item,
829
- .mui-dropdown-menu__sub-trigger {
830
- display: flex;
831
- align-items: center;
832
- justify-content: flex-start;
833
- gap: var(--mui-space-2);
834
- width: 100%;
835
- min-height: 2rem;
836
- padding: 0 var(--mui-space-2);
837
- border-radius: var(--mui-radius-md);
838
- color: var(--mui-color-popover-foreground);
839
- cursor: pointer;
840
- outline: none;
841
- font-size: var(--mui-text-sm);
842
- line-height: 1.4;
843
- }
844
-
845
- .mui-dropdown-menu__item[data-highlighted],
846
- .mui-select__item[data-highlighted],
847
- .mui-dropdown-menu__sub-trigger[data-highlighted] {
848
- background: var(--mui-color-accent);
849
- color: var(--mui-color-accent-foreground);
850
- }
851
-
852
- .mui-dropdown-menu__item[data-disabled],
853
- .mui-select__item[data-disabled],
854
- .mui-dropdown-menu__sub-trigger[data-disabled] {
855
- cursor: not-allowed;
856
- opacity: 0.55;
857
- }
858
-
859
- .mui-dropdown-menu__item[data-variant="destructive"],
860
- .mui-dropdown-menu__item[data-destructive],
861
- .mui-select__item[data-variant="destructive"],
862
- .mui-select__item[data-destructive] {
863
- color: var(--mui-color-destructive);
864
- }
865
-
866
- .mui-dropdown-menu__item[data-variant="destructive"][data-highlighted],
867
- .mui-dropdown-menu__item[data-destructive][data-highlighted],
868
- .mui-select__item[data-variant="destructive"][data-highlighted],
869
- .mui-select__item[data-destructive][data-highlighted] {
870
- background: color-mix(in oklch, var(--mui-color-destructive) 14%, var(--mui-color-popover));
871
- color: var(--mui-color-destructive);
872
- }
873
-
874
- .mui-dropdown-menu__label,
875
- .mui-select__label {
876
- padding: var(--mui-space-1) var(--mui-space-2);
877
- font-size: var(--mui-text-xs);
878
- font-weight: 500;
879
- color: var(--mui-color-muted-foreground);
880
- letter-spacing: 0;
881
- line-height: 1.35;
882
- }
883
-
884
- .mui-dropdown-menu__separator,
885
- .mui-select__separator {
886
- height: 1px;
887
- background: var(--mui-color-border-subtle);
888
- margin: var(--mui-space-1);
889
- }
890
-
891
- .mui-select__trigger {
892
- all: unset;
893
- appearance: none;
894
- box-sizing: border-box;
895
- width: 100%;
896
- border: 1px solid var(--mui-color-input);
897
- border-radius: var(--mui-radius-xl);
898
- background: var(--mui-color-card);
899
- color: var(--mui-color-foreground);
900
- font-size: var(--mui-control-font-size-md);
901
- line-height: 1.4;
902
- outline: none;
903
- min-height: var(--mui-control-height-md);
904
- padding: 0 var(--mui-control-padding-x-md);
905
- display: inline-flex;
906
- align-items: center;
907
- justify-content: space-between;
908
- gap: var(--mui-control-gap-md);
909
- }
910
-
911
- .mui-select__trigger:is(:hover, [data-hovered]):not([data-disabled]) {
912
- background: var(--mui-color-surface-hover);
913
- }
914
-
915
- .mui-select__value-slot {
916
- display: inline-flex;
917
- align-items: center;
918
- flex: 1 1 auto;
919
- min-width: 0;
920
- }
921
-
922
- .mui-select__value {
923
- color: var(--mui-color-foreground);
924
- }
925
-
926
- .mui-select__value[data-placeholder] {
927
- color: var(--mui-color-text-faint);
928
- }
929
-
930
- .mui-select__icon-slot {
931
- display: inline-flex;
932
- align-items: center;
933
- justify-content: center;
934
- flex: 0 0 auto;
935
- }
936
-
937
- .mui-select__icon {
938
- color: var(--mui-color-muted-foreground);
939
- }
940
-
941
- .mui-select__viewport {
942
- display: grid;
943
- gap: 2px;
944
- }
945
-
946
- .mui-select__scroll-button {
947
- display: flex;
948
- align-items: center;
949
- justify-content: center;
950
- height: 1.5rem;
951
- color: var(--mui-color-muted-foreground);
952
- }
953
-
954
- .mui-select__item-leading,
955
- .mui-dropdown-menu__item-leading,
956
- .mui-dropdown-menu__item-trailing {
957
- display: inline-flex;
958
- align-items: center;
959
- justify-content: center;
960
- width: 1rem;
961
- flex: 0 0 1rem;
962
- color: var(--mui-color-muted-foreground);
963
- }
964
-
965
- .mui-select__item-text,
966
- .mui-dropdown-menu__item-text {
967
- flex: 1 1 auto;
968
- min-width: 0;
969
- line-height: 1.4;
970
- }
971
-
972
- .mui-select__item-indicator,
973
- .mui-dropdown-menu__item-indicator {
974
- color: var(--mui-color-foreground);
975
- }
976
-
977
- .mui-dropdown-menu__shortcut {
978
- display: inline-flex;
979
- align-items: center;
980
- margin-left: auto;
981
- color: var(--mui-color-muted-foreground);
982
- font-size: var(--mui-text-xs);
983
- font-family: var(--mui-font-mono);
984
- letter-spacing: 0;
985
- }
986
-
987
- .mui-sheet__content {
988
- position: fixed;
989
- top: 0;
990
- bottom: 0;
991
- z-index: var(--mui-z-index-modal);
992
- width: min(22rem, calc(100vw - 1rem));
993
- padding: var(--mui-space-4);
994
- display: grid;
995
- gap: var(--mui-space-3);
996
- overflow: auto;
997
- animation: mui-slide-in-right 180ms ease;
998
- }
999
-
1000
- .mui-sheet__content[data-side="left"] {
1001
- left: 0;
1002
- animation-name: mui-slide-in-left;
1003
- }
1004
-
1005
- .mui-sheet__content[data-side="right"] {
1006
- right: 0;
1007
- }
1008
-
1009
- .mui-calendar {
1010
- padding: var(--mui-space-4);
1011
- }
1012
-
1013
- .mui-calendar .rdp {
1014
- --rdp-cell-size: 2.25rem;
1015
- margin: 0;
1016
- }
1017
-
1018
- .mui-calendar .rdp-caption_label {
1019
- font-weight: 600;
1020
- }
1021
-
1022
- .mui-calendar .rdp-button_reset,
1023
- .mui-calendar .rdp-day_button {
1024
- border-radius: 999px;
1025
- }
1026
-
1027
- .mui-calendar .rdp-day_button:hover {
1028
- background: var(--mui-color-accent);
1029
- }
1030
-
1031
- .mui-calendar .rdp-selected .rdp-day_button {
1032
- background: var(--mui-color-primary);
1033
- color: var(--mui-color-primary-foreground);
1034
- }
1035
-
1036
- @media (prefers-reduced-motion: reduce) {
1037
- .mui-button,
1038
- .mui-input,
1039
- .mui-textarea,
1040
- .mui-badge,
1041
- .mui-checkbox,
1042
- .mui-switch,
1043
- .mui-switch__thumb,
1044
- .mui-radio-group__item,
1045
- .mui-select__trigger,
1046
- .mui-dialog__overlay,
1047
- .mui-sheet__overlay,
1048
- .mui-dialog__content,
1049
- .mui-popover__content,
1050
- .mui-select__content,
1051
- .mui-tooltip__content,
1052
- .mui-dropdown-menu__content,
1053
- .mui-sheet__content {
1054
- animation: none;
1055
- transition: none;
1056
- }
1057
- }
1058
- }
1059
-
1060
- @layer mui.utilities {
1061
- .sr-only {
1062
- position: absolute;
1063
- width: 1px;
1064
- height: 1px;
1065
- padding: 0;
1066
- margin: -1px;
1067
- overflow: hidden;
1068
- clip: rect(0, 0, 0, 0);
1069
- white-space: nowrap;
1070
- border: 0;
1071
- }
1072
-
1073
- @keyframes mui-fade-in {
1074
- from { opacity: 0; }
1075
- to { opacity: 1; }
1076
- }
1077
-
1078
- @keyframes mui-dialog-in {
1079
- from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); }
1080
- to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
1081
- }
1082
-
1083
- @keyframes mui-surface-in {
1084
- from { opacity: 0; transform: translateY(4px); }
1085
- to { opacity: 1; transform: translateY(0); }
1086
- }
1087
-
1088
- @keyframes mui-slide-in-right {
1089
- from { opacity: 0; transform: translateX(16px); }
1090
- to { opacity: 1; transform: translateX(0); }
1091
- }
1092
-
1093
- @keyframes mui-slide-in-left {
1094
- from { opacity: 0; transform: translateX(-16px); }
1095
- to { opacity: 1; transform: translateX(0); }
1096
- }
1097
- }