@axenstudio/axen-form 0.1.9 → 0.1.10
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.
- package/dist/axen-form.css +1057 -0
- package/package.json +1 -1
- package/dist/fields/AutocompleteField/AutocompleteField.module.css +0 -168
- package/dist/fields/CheckboxField/CheckboxField.module.css +0 -29
- package/dist/fields/ColorField/ColorField.module.css +0 -33
- package/dist/fields/PasswordField/PasswordField.module.css +0 -41
- package/dist/fields/RadioField/RadioField.module.css +0 -34
- package/dist/fields/SliderField/SliderField.module.css +0 -76
- package/dist/fields/SwitchField/SwitchField.module.css +0 -79
- package/dist/fields/fieldBase.module.css +0 -244
- package/dist/layout/Box/Box.module.css +0 -3
- package/dist/layout/Divider/Divider.module.css +0 -25
- package/dist/layout/Grid/Grid.module.css +0 -43
- package/dist/layout/Stack/Stack.module.css +0 -3
- package/dist/react/fieldGroup.module.css +0 -22
- package/dist/react/gridCell.module.css +0 -38
- package/dist/tokens/reset.css +0 -68
- package/dist/tokens/themes.css +0 -31
- package/dist/tokens/tokens.css +0 -120
package/package.json
CHANGED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
._inputWrap_1hzxx_1 {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
._spinner_1hzxx_7 {
|
|
8
|
-
position: absolute;
|
|
9
|
-
right: 0.75rem;
|
|
10
|
-
width: 16px;
|
|
11
|
-
height: 16px;
|
|
12
|
-
border: 2px solid var(--axen-color-border);
|
|
13
|
-
border-top-color: var(--axen-color-primary);
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
animation: _spin_1hzxx_7 0.6s linear infinite;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@keyframes _spin_1hzxx_7 {
|
|
19
|
-
to {
|
|
20
|
-
transform: rotate(360deg);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@media (prefers-reduced-motion: reduce) {
|
|
25
|
-
._spinner_1hzxx_7 {
|
|
26
|
-
animation: none;
|
|
27
|
-
opacity: 0.6;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* ── Dropdown ────────────────────────────────── */
|
|
32
|
-
._dropdown_1hzxx_32 {
|
|
33
|
-
position: absolute;
|
|
34
|
-
z-index: var(--axen-z-dropdown);
|
|
35
|
-
width: 100%;
|
|
36
|
-
max-height: 240px;
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: var(--axen-space-xs) 0;
|
|
39
|
-
list-style: none;
|
|
40
|
-
overflow-y: auto;
|
|
41
|
-
background: var(--axen-color-bg);
|
|
42
|
-
border: var(--axen-border-width) solid var(--axen-color-border);
|
|
43
|
-
border-top: none;
|
|
44
|
-
border-radius: 0 0 var(--axen-border-radius) var(--axen-border-radius);
|
|
45
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
._option_1hzxx_48 {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
padding: var(--axen-space-sm) var(--axen-field-padding-x);
|
|
52
|
-
font-size: var(--axen-font-size-md);
|
|
53
|
-
color: var(--axen-color-text);
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
min-height: var(--axen-field-min-height);
|
|
56
|
-
transition: background-color var(--axen-transition-fast);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
._option_1hzxx_48:hover {
|
|
60
|
-
background-color: var(--axen-color-bg-hover);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
._optionActive_1hzxx_63 {
|
|
64
|
-
background-color: var(--axen-color-primary-light);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
._optionDisabled_1hzxx_67 {
|
|
68
|
-
color: var(--axen-color-text-disabled);
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
._noResults_1hzxx_72 {
|
|
73
|
-
padding: var(--axen-space-sm) var(--axen-field-padding-x);
|
|
74
|
-
font-size: var(--axen-font-size-sm);
|
|
75
|
-
color: var(--axen-color-text-secondary);
|
|
76
|
-
border: var(--axen-border-width) solid var(--axen-color-border);
|
|
77
|
-
border-top: none;
|
|
78
|
-
border-radius: 0 0 var(--axen-border-radius) var(--axen-border-radius);
|
|
79
|
-
background: var(--axen-color-bg);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* ── Chip (used by multi) ────────────────────── */
|
|
83
|
-
._chipWrap_1hzxx_83 {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
gap: var(--axen-space-xs);
|
|
87
|
-
padding: var(--axen-space-xs);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
._chip_1hzxx_83 {
|
|
91
|
-
display: inline-flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
gap: var(--axen-space-xs);
|
|
94
|
-
padding: 2px 8px;
|
|
95
|
-
font-size: var(--axen-font-size-xs);
|
|
96
|
-
color: var(--axen-color-text);
|
|
97
|
-
background-color: var(--axen-color-primary-light);
|
|
98
|
-
border-radius: var(--axen-border-radius-pill);
|
|
99
|
-
max-width: 100%;
|
|
100
|
-
white-space: nowrap;
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
text-overflow: ellipsis;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
._chipRemove_1hzxx_105 {
|
|
106
|
-
display: inline-flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
justify-content: center;
|
|
109
|
-
width: 16px;
|
|
110
|
-
height: 16px;
|
|
111
|
-
padding: 0;
|
|
112
|
-
border: none;
|
|
113
|
-
background: transparent;
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
color: var(--axen-color-text-secondary);
|
|
117
|
-
border-radius: 50%;
|
|
118
|
-
flex-shrink: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
._chipRemove_1hzxx_105:hover {
|
|
122
|
-
background: rgba(0, 0, 0, 0.08);
|
|
123
|
-
color: var(--axen-color-text);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
._chipRemove_1hzxx_105:focus-visible {
|
|
127
|
-
outline: var(--axen-focus-ring-width) solid var(--axen-focus-ring-color);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* ── Ghost text (predict) ────────────────────── */
|
|
131
|
-
._predictWrap_1hzxx_131 {
|
|
132
|
-
position: relative;
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
._ghostText_1hzxx_137 {
|
|
138
|
-
position: absolute;
|
|
139
|
-
left: var(--axen-field-padding-x);
|
|
140
|
-
top: 50%;
|
|
141
|
-
transform: translateY(-50%);
|
|
142
|
-
color: var(--axen-color-text-disabled);
|
|
143
|
-
font-family: var(--axen-font-family);
|
|
144
|
-
font-size: var(--axen-font-size-md);
|
|
145
|
-
pointer-events: none;
|
|
146
|
-
white-space: nowrap;
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
._ghostHidden_1hzxx_150 {
|
|
151
|
-
visibility: hidden;
|
|
152
|
-
position: absolute;
|
|
153
|
-
white-space: pre;
|
|
154
|
-
font-family: var(--axen-font-family);
|
|
155
|
-
font-size: var(--axen-font-size-md);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/* ── Mobile adjustments ──────────────────────── */
|
|
159
|
-
@media (max-width: 599px) {
|
|
160
|
-
._dropdown_1hzxx_32 {
|
|
161
|
-
max-height: 200px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
._option_1hzxx_48 {
|
|
165
|
-
min-height: 48px;
|
|
166
|
-
padding: var(--axen-space-sm) var(--axen-space-md);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
._checkboxLabel_1labl_1 {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
._checkbox_1labl_1 {
|
|
6
|
-
width: 20px;
|
|
7
|
-
height: 20px;
|
|
8
|
-
margin: 0;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
accent-color: var(--axen-color-primary);
|
|
11
|
-
border-radius: var(--axen-border-radius-sm);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
._checkbox_1labl_1:focus-visible {
|
|
15
|
-
outline: var(--axen-focus-ring-width) solid var(--axen-focus-ring-color);
|
|
16
|
-
outline-offset: var(--axen-focus-ring-offset);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
._checkbox_1labl_1:disabled {
|
|
20
|
-
cursor: not-allowed;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Mobile: larger touch target */
|
|
24
|
-
@media (max-width: 599px) {
|
|
25
|
-
._checkbox_1labl_1 {
|
|
26
|
-
width: 24px;
|
|
27
|
-
height: 24px;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
._colorWrap_or7ln_1 {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: var(--axen-space-sm);
|
|
5
|
-
min-height: var(--axen-field-min-height);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
._colorInput_or7ln_8 {
|
|
9
|
-
width: 44px;
|
|
10
|
-
height: 44px;
|
|
11
|
-
padding: 2px;
|
|
12
|
-
border: var(--axen-border-width) solid var(--axen-color-border);
|
|
13
|
-
border-radius: var(--axen-border-radius);
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
background: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
._colorInput_or7ln_8:focus-visible {
|
|
19
|
-
outline: var(--axen-focus-ring-width) solid var(--axen-focus-ring-color);
|
|
20
|
-
outline-offset: var(--axen-focus-ring-offset);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
._colorInput_or7ln_8:disabled {
|
|
24
|
-
opacity: 0.5;
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
._colorValue_or7ln_28 {
|
|
29
|
-
font-size: var(--axen-font-size-sm);
|
|
30
|
-
font-family: monospace;
|
|
31
|
-
color: var(--axen-color-text-secondary);
|
|
32
|
-
text-transform: uppercase;
|
|
33
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
._inputWrap_1nxa7_1 {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
._passwordInput_1nxa7_7 {
|
|
8
|
-
padding-right: 2.5rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
._toggle_1nxa7_11 {
|
|
12
|
-
position: absolute;
|
|
13
|
-
right: 0.5rem;
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
width: 2rem;
|
|
18
|
-
height: 2rem;
|
|
19
|
-
padding: 0;
|
|
20
|
-
border: none;
|
|
21
|
-
background: transparent;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
color: var(--axen-color-text-secondary);
|
|
24
|
-
font-size: var(--axen-font-size-lg);
|
|
25
|
-
border-radius: var(--axen-border-radius-sm);
|
|
26
|
-
transition: color var(--axen-transition-fast);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
._toggle_1nxa7_11:hover:not(:disabled) {
|
|
30
|
-
color: var(--axen-color-text);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
._toggle_1nxa7_11:focus-visible {
|
|
34
|
-
outline: var(--axen-focus-ring-width) solid var(--axen-focus-ring-color);
|
|
35
|
-
outline-offset: var(--axen-focus-ring-offset);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
._toggle_1nxa7_11:disabled {
|
|
39
|
-
cursor: not-allowed;
|
|
40
|
-
opacity: 0.5;
|
|
41
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
._radioGroup_1nz5i_1 {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--axen-space-xs);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
._radioLabel_1nz5i_7 {
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
._radio_1nz5i_1 {
|
|
12
|
-
width: 20px;
|
|
13
|
-
height: 20px;
|
|
14
|
-
margin: 0;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
accent-color: var(--axen-color-primary);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
._radio_1nz5i_1:focus-visible {
|
|
20
|
-
outline: var(--axen-focus-ring-width) solid var(--axen-focus-ring-color);
|
|
21
|
-
outline-offset: var(--axen-focus-ring-offset);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
._radio_1nz5i_1:disabled {
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Mobile: larger touch target */
|
|
29
|
-
@media (max-width: 599px) {
|
|
30
|
-
._radio_1nz5i_1 {
|
|
31
|
-
width: 24px;
|
|
32
|
-
height: 24px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
._sliderWrap_84w8t_1 {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: var(--axen-space-md);
|
|
5
|
-
min-height: var(--axen-field-min-height);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
._slider_84w8t_1 {
|
|
9
|
-
flex: 1;
|
|
10
|
-
height: 6px;
|
|
11
|
-
appearance: none;
|
|
12
|
-
background: var(--axen-color-border);
|
|
13
|
-
border-radius: var(--axen-border-radius-pill);
|
|
14
|
-
outline: none;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
transition: background var(--axen-transition-fast);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
._slider_84w8t_1::-webkit-slider-thumb {
|
|
20
|
-
appearance: none;
|
|
21
|
-
width: 20px;
|
|
22
|
-
height: 20px;
|
|
23
|
-
border-radius: 50%;
|
|
24
|
-
background: var(--axen-color-primary);
|
|
25
|
-
border: 2px solid var(--axen-color-bg);
|
|
26
|
-
box-shadow: var(--axen-shadow-sm);
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
transition:
|
|
29
|
-
background var(--axen-transition-fast),
|
|
30
|
-
transform var(--axen-transition-fast);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
._slider_84w8t_1::-webkit-slider-thumb:hover {
|
|
34
|
-
background: var(--axen-color-primary-hover);
|
|
35
|
-
transform: scale(1.15);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
._slider_84w8t_1:focus-visible::-webkit-slider-thumb {
|
|
39
|
-
box-shadow: var(--axen-shadow-focus);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
._slider_84w8t_1::-moz-range-thumb {
|
|
43
|
-
width: 20px;
|
|
44
|
-
height: 20px;
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
background: var(--axen-color-primary);
|
|
47
|
-
border: 2px solid var(--axen-color-bg);
|
|
48
|
-
box-shadow: var(--axen-shadow-sm);
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
._slider_84w8t_1:disabled {
|
|
53
|
-
opacity: 0.5;
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
._output_84w8t_57 {
|
|
58
|
-
min-width: 2.5em;
|
|
59
|
-
text-align: center;
|
|
60
|
-
font-size: var(--axen-font-size-sm);
|
|
61
|
-
font-weight: var(--axen-font-weight-medium);
|
|
62
|
-
color: var(--axen-color-text);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Touch target for mobile */
|
|
66
|
-
@media (max-width: 599px) {
|
|
67
|
-
._slider_84w8t_1::-webkit-slider-thumb {
|
|
68
|
-
width: 28px;
|
|
69
|
-
height: 28px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
._slider_84w8t_1::-moz-range-thumb {
|
|
73
|
-
width: 28px;
|
|
74
|
-
height: 28px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
._switchLabel_1itxk_1 {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
._switchTrack_1itxk_5 {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
width: 44px;
|
|
10
|
-
height: 24px;
|
|
11
|
-
background-color: var(--axen-color-border);
|
|
12
|
-
border-radius: var(--axen-border-radius-pill);
|
|
13
|
-
transition: background-color var(--axen-transition-fast);
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
._switchInput_1itxk_17 {
|
|
18
|
-
position: absolute;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
opacity: 0;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
._switchInput_1itxk_17:checked + ._switchThumb_1itxk_27 {
|
|
28
|
-
transform: translateX(20px);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
._switchInput_1itxk_17:checked ~ ._switchThumb_1itxk_27 {
|
|
32
|
-
transform: translateX(20px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
._switchTrack_1itxk_5:has(._switchInput_1itxk_17:checked) {
|
|
36
|
-
background-color: var(--axen-color-primary);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
._switchInput_1itxk_17:focus-visible ~ ._switchThumb_1itxk_27 {
|
|
40
|
-
box-shadow: var(--axen-shadow-focus);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
._switchInput_1itxk_17:disabled {
|
|
44
|
-
cursor: not-allowed;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
._switchTrack_1itxk_5:has(._switchInput_1itxk_17:disabled) {
|
|
48
|
-
opacity: 0.5;
|
|
49
|
-
cursor: not-allowed;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
._switchThumb_1itxk_27 {
|
|
53
|
-
position: absolute;
|
|
54
|
-
left: 2px;
|
|
55
|
-
width: 20px;
|
|
56
|
-
height: 20px;
|
|
57
|
-
background-color: var(--axen-color-bg);
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
box-shadow: var(--axen-shadow-sm);
|
|
60
|
-
transition: transform var(--axen-transition-fast);
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Mobile: larger touch target */
|
|
65
|
-
@media (max-width: 599px) {
|
|
66
|
-
._switchTrack_1itxk_5 {
|
|
67
|
-
width: 52px;
|
|
68
|
-
height: 28px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
._switchThumb_1itxk_27 {
|
|
72
|
-
width: 24px;
|
|
73
|
-
height: 24px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
._switchInput_1itxk_17:checked ~ ._switchThumb_1itxk_27 {
|
|
77
|
-
transform: translateX(24px);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
/* ═══════════════════════════════════════════════
|
|
2
|
-
axen-form Field Base Styles
|
|
3
|
-
Shared styles for all field components
|
|
4
|
-
A11y-aware + Responsive
|
|
5
|
-
═══════════════════════════════════════════════ */
|
|
6
|
-
|
|
7
|
-
/* ── Field Wrapper ───────────────────────────── */
|
|
8
|
-
._wrapper_1w6h8_8 {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
width: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* ── Label ───────────────────────────────────── */
|
|
15
|
-
._label_1w6h8_15 {
|
|
16
|
-
display: block;
|
|
17
|
-
font-size: var(--axen-font-size-sm, 0.875rem);
|
|
18
|
-
font-weight: var(--axen-font-weight-medium, 500);
|
|
19
|
-
color: var(--axen-color-label, var(--axen-color-text, #1a1a1a));
|
|
20
|
-
margin-bottom: var(--axen-label-margin-bottom, 0.375rem);
|
|
21
|
-
line-height: var(--axen-line-height, 1.5);
|
|
22
|
-
letter-spacing: 0.01em;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
._labelRequired_1w6h8_25::after {
|
|
26
|
-
content: ' *';
|
|
27
|
-
color: var(--axen-color-error, #d32f2f);
|
|
28
|
-
font-weight: var(--axen-font-weight-bold, 600);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* ── Input Base ──────────────────────────────── */
|
|
32
|
-
._input_1w6h8_32 {
|
|
33
|
-
display: block;
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: var(--axen-field-height, 2.75rem);
|
|
36
|
-
min-height: var(--axen-field-min-height, 44px);
|
|
37
|
-
padding: var(--axen-field-padding-y, 0.5rem) var(--axen-field-padding-x, 0.75rem);
|
|
38
|
-
font-family: var(
|
|
39
|
-
--axen-font-family,
|
|
40
|
-
-apple-system,
|
|
41
|
-
BlinkMacSystemFont,
|
|
42
|
-
'Segoe UI',
|
|
43
|
-
Roboto,
|
|
44
|
-
'Helvetica Neue',
|
|
45
|
-
Arial,
|
|
46
|
-
sans-serif
|
|
47
|
-
);
|
|
48
|
-
font-size: var(--axen-font-size-md, 1rem);
|
|
49
|
-
line-height: var(--axen-line-height, 1.5);
|
|
50
|
-
color: var(--axen-color-text, #1a1a1a);
|
|
51
|
-
background-color: var(--axen-color-input-bg, var(--axen-color-bg, #ffffff));
|
|
52
|
-
border: var(--axen-border-width, 1px) solid var(--axen-color-border, #d0d5dd);
|
|
53
|
-
border-radius: var(--axen-border-radius, 8px);
|
|
54
|
-
transition:
|
|
55
|
-
border-color var(--axen-transition-fast, 150ms ease),
|
|
56
|
-
box-shadow var(--axen-transition-fast, 150ms ease);
|
|
57
|
-
outline: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
._input_1w6h8_32::placeholder {
|
|
61
|
-
color: var(--axen-color-text-disabled, #9e9e9e);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
._input_1w6h8_32:hover:not(:disabled):not(:read-only) {
|
|
65
|
-
border-color: var(--axen-color-border-hover, #888888);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Focus ring (keyboard + mouse) */
|
|
69
|
-
._input_1w6h8_32:focus {
|
|
70
|
-
border-color: var(--axen-color-border-focus, var(--axen-color-primary, #1976d2));
|
|
71
|
-
box-shadow: var(--axen-shadow-focus, 0 0 0 2px rgba(25, 118, 210, 0.5));
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
._input_1w6h8_32:disabled {
|
|
76
|
-
background-color: var(--axen-color-bg-disabled, #f5f5f5);
|
|
77
|
-
color: var(--axen-color-text-disabled, #9e9e9e);
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
._input_1w6h8_32:read-only {
|
|
82
|
-
background-color: var(--axen-color-bg-disabled, #f5f5f5);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* ── Error State ─────────────────────────────── */
|
|
86
|
-
._inputError_1w6h8_86 {
|
|
87
|
-
border-color: var(--axen-color-error, #d32f2f);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
._inputError_1w6h8_86:focus {
|
|
91
|
-
border-color: var(--axen-color-error, #d32f2f);
|
|
92
|
-
box-shadow: 0 0 0 var(--axen-focus-ring-width, 2px) rgba(211, 47, 47, 0.3);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* ── Helper Text ─────────────────────────────── */
|
|
96
|
-
._helperText_1w6h8_96 {
|
|
97
|
-
display: block;
|
|
98
|
-
font-size: var(--axen-font-size-xs, 0.75rem);
|
|
99
|
-
color: var(--axen-color-text-secondary, #666666);
|
|
100
|
-
margin-top: var(--axen-helper-margin-top, 0.25rem);
|
|
101
|
-
line-height: var(--axen-line-height, 1.5);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
._helperTextError_1w6h8_104 {
|
|
105
|
-
color: var(--axen-color-error, #d32f2f);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* ── Textarea ────────────────────────────────── */
|
|
109
|
-
._textarea_1w6h8_109 {
|
|
110
|
-
height: auto;
|
|
111
|
-
min-height: calc(var(--axen-field-min-height, 44px) * 2);
|
|
112
|
-
resize: vertical;
|
|
113
|
-
padding-top: var(--axen-field-padding-x, 0.75rem);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* ── Select ──────────────────────────────────── */
|
|
117
|
-
._select_1w6h8_117 {
|
|
118
|
-
appearance: none;
|
|
119
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
120
|
-
background-repeat: no-repeat;
|
|
121
|
-
background-position: right 0.75rem center;
|
|
122
|
-
padding-right: 2rem;
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* ── Input with prefix/suffix ────────────────── */
|
|
127
|
-
._inputGroup_1w6h8_127 {
|
|
128
|
-
display: flex;
|
|
129
|
-
align-items: stretch;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* ── Icon inside input ───────────────────────── */
|
|
133
|
-
._inputIconWrapper_1w6h8_133 {
|
|
134
|
-
position: relative;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
._fieldIcon_1w6h8_137 {
|
|
138
|
-
position: absolute;
|
|
139
|
-
left: 0.75rem;
|
|
140
|
-
top: 50%;
|
|
141
|
-
transform: translateY(-50%);
|
|
142
|
-
width: 1.125rem;
|
|
143
|
-
height: 1.125rem;
|
|
144
|
-
color: var(--axen-color-text-secondary, #666666);
|
|
145
|
-
pointer-events: none;
|
|
146
|
-
display: flex;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
z-index: 1;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
._inputWithIcon_1w6h8_152 {
|
|
153
|
-
padding-left: 2.5rem;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
._inputPrefix_1w6h8_156,
|
|
157
|
-
._inputSuffix_1w6h8_157 {
|
|
158
|
-
display: flex;
|
|
159
|
-
align-items: center;
|
|
160
|
-
padding: 0 var(--axen-space-sm, 0.5rem);
|
|
161
|
-
font-size: var(--axen-font-size-sm, 0.875rem);
|
|
162
|
-
color: var(--axen-color-text-secondary, #666666);
|
|
163
|
-
background-color: var(--axen-color-bg-hover, #fafafa);
|
|
164
|
-
border: var(--axen-border-width, 1px) solid var(--axen-color-border, #c4c4c4);
|
|
165
|
-
white-space: nowrap;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
._inputPrefix_1w6h8_156 {
|
|
169
|
-
border-right: none;
|
|
170
|
-
border-radius: var(--axen-border-radius, 6px) 0 0 var(--axen-border-radius, 6px);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
._inputSuffix_1w6h8_157 {
|
|
174
|
-
border-left: none;
|
|
175
|
-
border-radius: 0 var(--axen-border-radius, 6px) var(--axen-border-radius, 6px) 0;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
._inputGroupInput_1w6h8_178 {
|
|
179
|
-
border-radius: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
._inputPrefix_1w6h8_156 + ._inputGroupInput_1w6h8_178 {
|
|
183
|
-
border-top-left-radius: 0;
|
|
184
|
-
border-bottom-left-radius: 0;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
._inputGroupInput_1w6h8_178:has(+ ._inputSuffix_1w6h8_157) {
|
|
188
|
-
border-top-right-radius: 0;
|
|
189
|
-
border-bottom-right-radius: 0;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/* ── Checkbox/Radio/Switch shared ────────────── */
|
|
193
|
-
._inlineWrapper_1w6h8_193 {
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
gap: var(--axen-space-sm, 0.5rem);
|
|
197
|
-
min-height: var(--axen-field-min-height, 44px);
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
._inlineWrapper_1w6h8_193:has(:disabled) {
|
|
202
|
-
cursor: not-allowed;
|
|
203
|
-
opacity: 0.6;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
._inlineLabel_1w6h8_206 {
|
|
207
|
-
font-size: var(--axen-font-size-md, 1rem);
|
|
208
|
-
color: var(--axen-color-text, #1a1a1a);
|
|
209
|
-
user-select: none;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* ── Responsive: mobile touch targets ────────── */
|
|
213
|
-
@media (max-width: 599px) {
|
|
214
|
-
._input_1w6h8_32 {
|
|
215
|
-
font-size: 16px; /* Prevent iOS zoom on focus */
|
|
216
|
-
min-height: 48px;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
._inlineWrapper_1w6h8_193 {
|
|
220
|
-
min-height: 48px;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/* ── High Contrast Mode ──────────────────────── */
|
|
225
|
-
@media (prefers-contrast: more) {
|
|
226
|
-
._input_1w6h8_32 {
|
|
227
|
-
border-width: 2px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
._inputError_1w6h8_86 {
|
|
231
|
-
border-width: 3px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
._helperTextError_1w6h8_104 {
|
|
235
|
-
font-weight: var(--axen-font-weight-bold, 600);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/* ── Reduced Motion (A11y: WCAG 2.3.3) ──────── */
|
|
240
|
-
@media (prefers-reduced-motion: reduce) {
|
|
241
|
-
._input_1w6h8_32 {
|
|
242
|
-
transition: none;
|
|
243
|
-
}
|
|
244
|
-
}
|