1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/* Field component — form control wrapper with label, description, and error */
.mui-field {
display: flex;
flex-direction: column;
gap: 0.375rem;
max-width: 24rem;
}
/* Horizontal: label on the left, control + meta on the right */
.mui-field--horizontal {
display: grid;
grid-template-columns: minmax(8rem, auto) 1fr;
gap: 0.5rem;
align-items: start;
max-width: 36rem;
}
/* Responsive: vertical on narrow viewports, horizontal at ≥ 640px */
.mui-field--responsive {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
@media (min-width: 640px) {
.mui-field--responsive {
display: grid;
grid-template-columns: minmax(8rem, auto) 1fr;
gap: 0.5rem;
align-items: start;
max-width: 36rem;
}
}
.mui-field__label {
font-size: 0.875rem;
font-weight: 500;
color: var(--mui-text);
}
.mui-field__required {
color: var(--mui-danger-text);
margin-inline-start: 0.25rem;
}
.mui-field__description {
font-size: 0.75rem;
color: var(--mui-text-muted);
margin: 0.25rem 0 0;
}
.mui-field__error {
font-size: 0.75rem;
font-weight: 500;
color: var(--mui-danger-text, var(--mui-danger));
margin: 0.25rem 0 0;
}
.mui-field--invalid .mui-field__label {
color: var(--mui-text);
}
/* ---- Helper / compose primitives ---- */
.mui-field__content {
display: flex;
flex-direction: column;
gap: 0.25rem;
min-width: 0;
}
.mui-field__separator {
border: 0;
border-top: 1px solid var(--mui-border);
margin: 0.5rem 0;
}
.mui-field__title {
margin: 0;
font-size: 0.875rem;
font-weight: 600;
color: var(--mui-text);
}
.mui-field__legend {
font-weight: 500;
font-size: 0.875rem;
color: var(--mui-text);
}
.mui-field-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
}