@strictly/react-form 0.0.7 → 0.0.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.
- package/.out/core/mobx/field_adapter_builder.d.ts +4 -0
- package/.out/core/mobx/field_adapter_builder.js +31 -0
- package/.out/core/mobx/hooks.d.ts +5 -1
- package/.out/core/mobx/hooks.js +13 -3
- package/.out/core/mobx/specs/sub_form_field_adapters.tests.js +56 -9
- package/.out/core/mobx/sub_form_field_adapters.d.ts +5 -5
- package/.out/core/mobx/sub_form_field_adapters.js +13 -10
- package/.out/field_converters/chain_field_converter.js +3 -3
- package/.out/field_converters/nullable_to_boolean_converter.d.ts +2 -2
- package/.out/mantine/create_checkbox.js +1 -0
- package/.out/mantine/create_fields_view.d.ts +1 -1
- package/.out/mantine/create_fields_view.js +4 -4
- package/.out/mantine/create_form.d.ts +1 -1
- package/.out/mantine/create_list.d.ts +1 -1
- package/.out/mantine/create_pill.d.ts +1 -1
- package/.out/mantine/create_radio.d.ts +1 -1
- package/.out/mantine/create_radio_group.js +1 -0
- package/.out/mantine/create_text_input.js +7 -2
- package/.out/mantine/create_value_input.js +1 -0
- package/.out/mantine/error_renderer.d.ts +7 -3
- package/.out/mantine/error_renderer.js +1 -1
- package/.out/mantine/hooks.d.ts +9 -9
- package/.out/mantine/specs/checkbox_hooks.stories.d.ts +2 -6
- package/.out/mantine/specs/checkbox_hooks.stories.js +4 -16
- package/.out/mantine/specs/fields_view_hooks.stories.d.ts +1 -1
- package/.out/mantine/specs/fields_view_hooks.stories.js +6 -3
- package/.out/mantine/specs/form_hooks.stories.d.ts +2 -2
- package/.out/mantine/specs/form_hooks.stories.js +4 -1
- package/.out/mantine/specs/radio_group_hooks.stories.d.ts +2 -6
- package/.out/mantine/specs/radio_group_hooks.stories.js +5 -17
- package/.out/mantine/specs/select_hooks.stories.d.ts +2 -6
- package/.out/mantine/specs/select_hooks.stories.js +4 -16
- package/.out/mantine/specs/text_input_hooks.stories.d.ts +2 -5
- package/.out/mantine/specs/text_input_hooks.stories.js +5 -5
- package/.out/mantine/specs/value_input_hooks.stories.d.ts +2 -5
- package/.out/mantine/specs/value_input_hooks.stories.js +5 -5
- package/.out/mantine/types.d.ts +4 -2
- package/.out/tsconfig.tsbuildinfo +1 -1
- package/.out/types/specs/{error_type_of_field.tests.js → error_of_field.tests.js} +1 -1
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-check-types.log +1 -1
- package/core/mobx/field_adapter_builder.ts +71 -0
- package/core/mobx/hooks.ts +24 -6
- package/core/mobx/specs/sub_form_field_adapters.tests.ts +108 -15
- package/core/mobx/sub_form_field_adapters.ts +41 -25
- package/dist/index.cjs +108 -49
- package/dist/index.d.cts +35 -24
- package/dist/index.d.ts +35 -24
- package/dist/index.js +107 -49
- package/field_converters/chain_field_converter.ts +3 -3
- package/field_converters/nullable_to_boolean_converter.ts +2 -3
- package/mantine/create_checkbox.tsx +2 -1
- package/mantine/create_fields_view.tsx +17 -14
- package/mantine/create_form.tsx +2 -2
- package/mantine/create_list.tsx +1 -1
- package/mantine/create_pill.tsx +1 -1
- package/mantine/create_radio.tsx +1 -1
- package/mantine/create_radio_group.tsx +6 -2
- package/mantine/create_text_input.tsx +9 -3
- package/mantine/create_value_input.tsx +2 -1
- package/mantine/error_renderer.ts +13 -4
- package/mantine/hooks.tsx +19 -14
- package/mantine/specs/__snapshots__/checkbox_hooks.tests.tsx.snap +1 -64
- package/mantine/specs/__snapshots__/fields_view_hooks.tests.tsx.snap +52 -52
- package/mantine/specs/__snapshots__/radio_group_hooks.tests.tsx.snap +1 -179
- package/mantine/specs/__snapshots__/select_hooks.tests.tsx.snap +1 -83
- package/mantine/specs/__snapshots__/text_input_hooks.tests.tsx.snap +27 -27
- package/mantine/specs/__snapshots__/value_input_hooks.tests.tsx.snap +31 -31
- package/mantine/specs/checkbox_hooks.stories.tsx +5 -21
- package/mantine/specs/fields_view_hooks.stories.tsx +16 -4
- package/mantine/specs/form_hooks.stories.tsx +10 -3
- package/mantine/specs/radio_group_hooks.stories.tsx +6 -20
- package/mantine/specs/select_hooks.stories.tsx +5 -21
- package/mantine/specs/text_input_hooks.stories.tsx +5 -8
- package/mantine/specs/value_input_hooks.stories.tsx +5 -8
- package/mantine/types.ts +7 -3
- package/package.json +2 -1
- package/types/specs/{error_type_of_field.tests.ts → error_of_field.tests.ts} +1 -1
- /package/.out/types/specs/{error_type_of_field.tests.d.ts → error_of_field.tests.d.ts} +0 -0
|
@@ -1,68 +1,5 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`mantine checkbox hooks > renders CustomError 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<style
|
|
6
|
-
data-mantine-styles="classes"
|
|
7
|
-
>
|
|
8
|
-
@media (max-width: 35.99375em) {.mantine-visible-from-xs {display: none !important;}}@media (min-width: 36em) {.mantine-hidden-from-xs {display: none !important;}}@media (max-width: 47.99375em) {.mantine-visible-from-sm {display: none !important;}}@media (min-width: 48em) {.mantine-hidden-from-sm {display: none !important;}}@media (max-width: 61.99375em) {.mantine-visible-from-md {display: none !important;}}@media (min-width: 62em) {.mantine-hidden-from-md {display: none !important;}}@media (max-width: 74.99375em) {.mantine-visible-from-lg {display: none !important;}}@media (min-width: 75em) {.mantine-hidden-from-lg {display: none !important;}}@media (max-width: 87.99375em) {.mantine-visible-from-xl {display: none !important;}}@media (min-width: 88em) {.mantine-hidden-from-xl {display: none !important;}}
|
|
9
|
-
</style>
|
|
10
|
-
<div
|
|
11
|
-
class="m_bf2d988c mantine-Checkbox-root m_5f75b09e mantine-Checkbox-root"
|
|
12
|
-
data-checked="true"
|
|
13
|
-
data-label-position="right"
|
|
14
|
-
style="--checkbox-color: var(--mantine-color-blue-filled);"
|
|
15
|
-
>
|
|
16
|
-
<div
|
|
17
|
-
class="m_5f6e695e mantine-Checkbox-body"
|
|
18
|
-
>
|
|
19
|
-
<div
|
|
20
|
-
class="m_26062bec mantine-Checkbox-inner"
|
|
21
|
-
data-label-position="right"
|
|
22
|
-
>
|
|
23
|
-
<input
|
|
24
|
-
checked=""
|
|
25
|
-
class="mantine-focus-auto m_26063560 mantine-Checkbox-input"
|
|
26
|
-
data-error="true"
|
|
27
|
-
id="mantine-0cyk5rcyk"
|
|
28
|
-
name="$"
|
|
29
|
-
type="checkbox"
|
|
30
|
-
/>
|
|
31
|
-
<svg
|
|
32
|
-
aria-hidden="true"
|
|
33
|
-
class="m_bf295423 mantine-Checkbox-icon"
|
|
34
|
-
fill="none"
|
|
35
|
-
viewBox="0 0 10 7"
|
|
36
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
-
>
|
|
38
|
-
<path
|
|
39
|
-
clip-rule="evenodd"
|
|
40
|
-
d="M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z"
|
|
41
|
-
fill="currentColor"
|
|
42
|
-
fill-rule="evenodd"
|
|
43
|
-
/>
|
|
44
|
-
</svg>
|
|
45
|
-
</div>
|
|
46
|
-
<div
|
|
47
|
-
class="m_d3ea56bb mantine-Checkbox-labelWrapper"
|
|
48
|
-
>
|
|
49
|
-
<label
|
|
50
|
-
class="m_8ee546b8 mantine-Checkbox-label"
|
|
51
|
-
for="mantine-0cyk5rcyk"
|
|
52
|
-
>
|
|
53
|
-
Checkbox
|
|
54
|
-
</label>
|
|
55
|
-
<p
|
|
56
|
-
class="m_8e8a99cc mantine-Checkbox-error m_8f816625 mantine-InputWrapper-error"
|
|
57
|
-
>
|
|
58
|
-
custom error
|
|
59
|
-
</p>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
`;
|
|
65
|
-
|
|
66
3
|
exports[`mantine checkbox hooks > renders Disabled 1`] = `
|
|
67
4
|
<div>
|
|
68
5
|
<style
|
|
@@ -176,7 +113,7 @@ exports[`mantine checkbox hooks > renders Error 1`] = `
|
|
|
176
113
|
<p
|
|
177
114
|
class="m_8e8a99cc mantine-Checkbox-error m_8f816625 mantine-InputWrapper-error"
|
|
178
115
|
>
|
|
179
|
-
error
|
|
116
|
+
Error error
|
|
180
117
|
</p>
|
|
181
118
|
</div>
|
|
182
119
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`field view hooks > renders
|
|
3
|
+
exports[`field view hooks > renders Disabled 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<style
|
|
6
6
|
data-mantine-styles="classes"
|
|
@@ -13,7 +13,6 @@ exports[`field view hooks > renders CustomError 1`] = `
|
|
|
13
13
|
>
|
|
14
14
|
<div
|
|
15
15
|
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
16
|
-
data-error="true"
|
|
17
16
|
>
|
|
18
17
|
<label
|
|
19
18
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
@@ -24,27 +23,20 @@ exports[`field view hooks > renders CustomError 1`] = `
|
|
|
24
23
|
</label>
|
|
25
24
|
<div
|
|
26
25
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
27
|
-
data-
|
|
26
|
+
data-disabled="true"
|
|
28
27
|
data-variant="default"
|
|
29
|
-
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2);"
|
|
30
28
|
>
|
|
31
29
|
<input
|
|
32
|
-
aria-
|
|
33
|
-
aria-invalid="true"
|
|
30
|
+
aria-invalid="false"
|
|
34
31
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
35
|
-
data-
|
|
32
|
+
data-disabled="true"
|
|
36
33
|
data-variant="default"
|
|
34
|
+
disabled=""
|
|
37
35
|
id="mantine-0cyk5rcyk"
|
|
38
36
|
name="$"
|
|
39
37
|
value="xxx"
|
|
40
38
|
/>
|
|
41
39
|
</div>
|
|
42
|
-
<p
|
|
43
|
-
class="m_8f816625 mantine-InputWrapper-error mantine-TextInput-error"
|
|
44
|
-
id="mantine-0cyk5rcyk-error"
|
|
45
|
-
>
|
|
46
|
-
form error
|
|
47
|
-
</p>
|
|
48
40
|
</div>
|
|
49
41
|
<div
|
|
50
42
|
class="m_6d731127 mantine-Stack-root"
|
|
@@ -52,7 +44,6 @@ exports[`field view hooks > renders CustomError 1`] = `
|
|
|
52
44
|
>
|
|
53
45
|
<div
|
|
54
46
|
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
55
|
-
data-error="true"
|
|
56
47
|
>
|
|
57
48
|
<label
|
|
58
49
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
@@ -63,27 +54,20 @@ exports[`field view hooks > renders CustomError 1`] = `
|
|
|
63
54
|
</label>
|
|
64
55
|
<div
|
|
65
56
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
66
|
-
data-
|
|
57
|
+
data-disabled="true"
|
|
67
58
|
data-variant="default"
|
|
68
|
-
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2);"
|
|
69
59
|
>
|
|
70
60
|
<input
|
|
71
|
-
aria-
|
|
72
|
-
aria-invalid="true"
|
|
61
|
+
aria-invalid="false"
|
|
73
62
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
74
|
-
data-
|
|
63
|
+
data-disabled="true"
|
|
75
64
|
data-variant="default"
|
|
65
|
+
disabled=""
|
|
76
66
|
id="mantine-0px4bipx4"
|
|
77
67
|
name="$"
|
|
78
|
-
value="
|
|
68
|
+
value="yyy"
|
|
79
69
|
/>
|
|
80
70
|
</div>
|
|
81
|
-
<p
|
|
82
|
-
class="m_8f816625 mantine-InputWrapper-error mantine-TextInput-error"
|
|
83
|
-
id="mantine-0px4bipx4-error"
|
|
84
|
-
>
|
|
85
|
-
sub form error
|
|
86
|
-
</p>
|
|
87
71
|
</div>
|
|
88
72
|
<button
|
|
89
73
|
class="mantine-focus-auto mantine-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
|
|
@@ -105,7 +89,7 @@ exports[`field view hooks > renders CustomError 1`] = `
|
|
|
105
89
|
</div>
|
|
106
90
|
`;
|
|
107
91
|
|
|
108
|
-
exports[`field view hooks > renders
|
|
92
|
+
exports[`field view hooks > renders Empty 1`] = `
|
|
109
93
|
<div>
|
|
110
94
|
<style
|
|
111
95
|
data-mantine-styles="classes"
|
|
@@ -121,25 +105,22 @@ exports[`field view hooks > renders Disabled 1`] = `
|
|
|
121
105
|
>
|
|
122
106
|
<label
|
|
123
107
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
124
|
-
for="mantine-
|
|
125
|
-
id="mantine-
|
|
108
|
+
for="mantine-0px4bipx4"
|
|
109
|
+
id="mantine-0px4bipx4-label"
|
|
126
110
|
>
|
|
127
111
|
fields view
|
|
128
112
|
</label>
|
|
129
113
|
<div
|
|
130
114
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
131
|
-
data-disabled="true"
|
|
132
115
|
data-variant="default"
|
|
133
116
|
>
|
|
134
117
|
<input
|
|
135
118
|
aria-invalid="false"
|
|
136
119
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
137
|
-
data-disabled="true"
|
|
138
120
|
data-variant="default"
|
|
139
|
-
|
|
140
|
-
id="mantine-0cyk5rcyk"
|
|
121
|
+
id="mantine-0px4bipx4"
|
|
141
122
|
name="$"
|
|
142
|
-
value="
|
|
123
|
+
value=""
|
|
143
124
|
/>
|
|
144
125
|
</div>
|
|
145
126
|
</div>
|
|
@@ -152,25 +133,22 @@ exports[`field view hooks > renders Disabled 1`] = `
|
|
|
152
133
|
>
|
|
153
134
|
<label
|
|
154
135
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
155
|
-
for="mantine-
|
|
156
|
-
id="mantine-
|
|
136
|
+
for="mantine-12voha2vo"
|
|
137
|
+
id="mantine-12voha2vo-label"
|
|
157
138
|
>
|
|
158
139
|
sub fields view
|
|
159
140
|
</label>
|
|
160
141
|
<div
|
|
161
142
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
162
|
-
data-disabled="true"
|
|
163
143
|
data-variant="default"
|
|
164
144
|
>
|
|
165
145
|
<input
|
|
166
146
|
aria-invalid="false"
|
|
167
147
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
168
|
-
data-disabled="true"
|
|
169
148
|
data-variant="default"
|
|
170
|
-
|
|
171
|
-
id="mantine-0px4bipx4"
|
|
149
|
+
id="mantine-12voha2vo"
|
|
172
150
|
name="$"
|
|
173
|
-
value="
|
|
151
|
+
value=""
|
|
174
152
|
/>
|
|
175
153
|
</div>
|
|
176
154
|
</div>
|
|
@@ -194,7 +172,7 @@ exports[`field view hooks > renders Disabled 1`] = `
|
|
|
194
172
|
</div>
|
|
195
173
|
`;
|
|
196
174
|
|
|
197
|
-
exports[`field view hooks > renders
|
|
175
|
+
exports[`field view hooks > renders Errors 1`] = `
|
|
198
176
|
<div>
|
|
199
177
|
<style
|
|
200
178
|
data-mantine-styles="classes"
|
|
@@ -207,27 +185,38 @@ exports[`field view hooks > renders Empty 1`] = `
|
|
|
207
185
|
>
|
|
208
186
|
<div
|
|
209
187
|
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
188
|
+
data-error="true"
|
|
210
189
|
>
|
|
211
190
|
<label
|
|
212
191
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
213
|
-
for="mantine-
|
|
214
|
-
id="mantine-
|
|
192
|
+
for="mantine-0cyk5rcyk"
|
|
193
|
+
id="mantine-0cyk5rcyk-label"
|
|
215
194
|
>
|
|
216
195
|
fields view
|
|
217
196
|
</label>
|
|
218
197
|
<div
|
|
219
198
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
199
|
+
data-error="true"
|
|
220
200
|
data-variant="default"
|
|
201
|
+
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2);"
|
|
221
202
|
>
|
|
222
203
|
<input
|
|
223
|
-
aria-
|
|
204
|
+
aria-describedby="mantine-0cyk5rcyk-error"
|
|
205
|
+
aria-invalid="true"
|
|
224
206
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
207
|
+
data-error="true"
|
|
225
208
|
data-variant="default"
|
|
226
|
-
id="mantine-
|
|
209
|
+
id="mantine-0cyk5rcyk"
|
|
227
210
|
name="$"
|
|
228
|
-
value=""
|
|
211
|
+
value="xxx"
|
|
229
212
|
/>
|
|
230
213
|
</div>
|
|
214
|
+
<p
|
|
215
|
+
class="m_8f816625 mantine-InputWrapper-error mantine-TextInput-error"
|
|
216
|
+
id="mantine-0cyk5rcyk-error"
|
|
217
|
+
>
|
|
218
|
+
error form error
|
|
219
|
+
</p>
|
|
231
220
|
</div>
|
|
232
221
|
<div
|
|
233
222
|
class="m_6d731127 mantine-Stack-root"
|
|
@@ -235,27 +224,38 @@ exports[`field view hooks > renders Empty 1`] = `
|
|
|
235
224
|
>
|
|
236
225
|
<div
|
|
237
226
|
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
227
|
+
data-error="true"
|
|
238
228
|
>
|
|
239
229
|
<label
|
|
240
230
|
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
241
|
-
for="mantine-
|
|
242
|
-
id="mantine-
|
|
231
|
+
for="mantine-0px4bipx4"
|
|
232
|
+
id="mantine-0px4bipx4-label"
|
|
243
233
|
>
|
|
244
234
|
sub fields view
|
|
245
235
|
</label>
|
|
246
236
|
<div
|
|
247
237
|
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
238
|
+
data-error="true"
|
|
248
239
|
data-variant="default"
|
|
240
|
+
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2);"
|
|
249
241
|
>
|
|
250
242
|
<input
|
|
251
|
-
aria-
|
|
243
|
+
aria-describedby="mantine-0px4bipx4-error"
|
|
244
|
+
aria-invalid="true"
|
|
252
245
|
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
246
|
+
data-error="true"
|
|
253
247
|
data-variant="default"
|
|
254
|
-
id="mantine-
|
|
248
|
+
id="mantine-0px4bipx4"
|
|
255
249
|
name="$"
|
|
256
|
-
value=""
|
|
250
|
+
value="xxx"
|
|
257
251
|
/>
|
|
258
252
|
</div>
|
|
253
|
+
<p
|
|
254
|
+
class="m_8f816625 mantine-InputWrapper-error mantine-TextInput-error"
|
|
255
|
+
id="mantine-0px4bipx4-error"
|
|
256
|
+
>
|
|
257
|
+
error sub form error
|
|
258
|
+
</p>
|
|
259
259
|
</div>
|
|
260
260
|
<button
|
|
261
261
|
class="mantine-focus-auto mantine-active m_77c9d27d mantine-Button-root m_87cf2631 mantine-UnstyledButton-root"
|
|
@@ -1,183 +1,5 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`mantine radio group hooks > renders CustomError 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<style
|
|
6
|
-
data-mantine-styles="classes"
|
|
7
|
-
>
|
|
8
|
-
@media (max-width: 35.99375em) {.mantine-visible-from-xs {display: none !important;}}@media (min-width: 36em) {.mantine-hidden-from-xs {display: none !important;}}@media (max-width: 47.99375em) {.mantine-visible-from-sm {display: none !important;}}@media (min-width: 48em) {.mantine-hidden-from-sm {display: none !important;}}@media (max-width: 61.99375em) {.mantine-visible-from-md {display: none !important;}}@media (min-width: 62em) {.mantine-hidden-from-md {display: none !important;}}@media (max-width: 74.99375em) {.mantine-visible-from-lg {display: none !important;}}@media (min-width: 75em) {.mantine-hidden-from-lg {display: none !important;}}@media (max-width: 87.99375em) {.mantine-visible-from-xl {display: none !important;}}@media (min-width: 88em) {.mantine-hidden-from-xl {display: none !important;}}
|
|
9
|
-
</style>
|
|
10
|
-
<div
|
|
11
|
-
class="m_46b77525 mantine-InputWrapper-root mantine-RadioGroup-root"
|
|
12
|
-
data-error="true"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
class="m_8fdc1311 mantine-InputWrapper-label mantine-RadioGroup-label"
|
|
16
|
-
id="mantine-1fu8n1fu8-label"
|
|
17
|
-
>
|
|
18
|
-
Radio Group
|
|
19
|
-
</div>
|
|
20
|
-
<div
|
|
21
|
-
aria-describedby="mantine-1fu8n1fu8-error"
|
|
22
|
-
aria-labelledby="mantine-1fu8n1fu8-label"
|
|
23
|
-
role="radiogroup"
|
|
24
|
-
>
|
|
25
|
-
<div
|
|
26
|
-
class="m_6d731127 mantine-Stack-root"
|
|
27
|
-
style="--stack-gap: var(--mantine-spacing-md); --stack-align: stretch; --stack-justify: flex-start;"
|
|
28
|
-
>
|
|
29
|
-
<div
|
|
30
|
-
class="m_f3f1af94 mantine-Radio-root m_5f75b09e mantine-Radio-root"
|
|
31
|
-
data-label-position="right"
|
|
32
|
-
style="--radio-color: var(--mantine-color-blue-filled);"
|
|
33
|
-
>
|
|
34
|
-
<div
|
|
35
|
-
class="m_5f6e695e mantine-Radio-body"
|
|
36
|
-
>
|
|
37
|
-
<div
|
|
38
|
-
class="m_89c4f5e4 mantine-Radio-inner"
|
|
39
|
-
data-label-position="right"
|
|
40
|
-
>
|
|
41
|
-
<input
|
|
42
|
-
class="mantine-focus-auto m_8a3dbb89 mantine-Radio-radio"
|
|
43
|
-
id="mantine-0cyk5rcyk"
|
|
44
|
-
name="$"
|
|
45
|
-
type="radio"
|
|
46
|
-
value="1"
|
|
47
|
-
/>
|
|
48
|
-
<svg
|
|
49
|
-
aria-hidden="true"
|
|
50
|
-
class="m_f3ed6b2b mantine-Radio-icon"
|
|
51
|
-
fill="none"
|
|
52
|
-
viewBox="0 0 5 5"
|
|
53
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
54
|
-
>
|
|
55
|
-
<circle
|
|
56
|
-
cx="2.5"
|
|
57
|
-
cy="2.5"
|
|
58
|
-
fill="currentColor"
|
|
59
|
-
r="2.5"
|
|
60
|
-
/>
|
|
61
|
-
</svg>
|
|
62
|
-
</div>
|
|
63
|
-
<div
|
|
64
|
-
class="m_d3ea56bb mantine-Radio-labelWrapper"
|
|
65
|
-
>
|
|
66
|
-
<label
|
|
67
|
-
class="m_8ee546b8 mantine-Radio-label"
|
|
68
|
-
for="mantine-0cyk5rcyk"
|
|
69
|
-
>
|
|
70
|
-
One
|
|
71
|
-
</label>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div
|
|
76
|
-
class="m_f3f1af94 mantine-Radio-root m_5f75b09e mantine-Radio-root"
|
|
77
|
-
data-checked="true"
|
|
78
|
-
data-label-position="right"
|
|
79
|
-
style="--radio-color: var(--mantine-color-blue-filled);"
|
|
80
|
-
>
|
|
81
|
-
<div
|
|
82
|
-
class="m_5f6e695e mantine-Radio-body"
|
|
83
|
-
>
|
|
84
|
-
<div
|
|
85
|
-
class="m_89c4f5e4 mantine-Radio-inner"
|
|
86
|
-
data-label-position="right"
|
|
87
|
-
>
|
|
88
|
-
<input
|
|
89
|
-
checked=""
|
|
90
|
-
class="mantine-focus-auto m_8a3dbb89 mantine-Radio-radio"
|
|
91
|
-
id="mantine-0px4bipx4"
|
|
92
|
-
name="$"
|
|
93
|
-
type="radio"
|
|
94
|
-
value="2"
|
|
95
|
-
/>
|
|
96
|
-
<svg
|
|
97
|
-
aria-hidden="true"
|
|
98
|
-
class="m_f3ed6b2b mantine-Radio-icon"
|
|
99
|
-
fill="none"
|
|
100
|
-
viewBox="0 0 5 5"
|
|
101
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
-
>
|
|
103
|
-
<circle
|
|
104
|
-
cx="2.5"
|
|
105
|
-
cy="2.5"
|
|
106
|
-
fill="currentColor"
|
|
107
|
-
r="2.5"
|
|
108
|
-
/>
|
|
109
|
-
</svg>
|
|
110
|
-
</div>
|
|
111
|
-
<div
|
|
112
|
-
class="m_d3ea56bb mantine-Radio-labelWrapper"
|
|
113
|
-
>
|
|
114
|
-
<label
|
|
115
|
-
class="m_8ee546b8 mantine-Radio-label"
|
|
116
|
-
for="mantine-0px4bipx4"
|
|
117
|
-
>
|
|
118
|
-
Two
|
|
119
|
-
</label>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
<div
|
|
124
|
-
class="m_f3f1af94 mantine-Radio-root m_5f75b09e mantine-Radio-root"
|
|
125
|
-
data-label-position="right"
|
|
126
|
-
style="--radio-color: var(--mantine-color-blue-filled);"
|
|
127
|
-
>
|
|
128
|
-
<div
|
|
129
|
-
class="m_5f6e695e mantine-Radio-body"
|
|
130
|
-
>
|
|
131
|
-
<div
|
|
132
|
-
class="m_89c4f5e4 mantine-Radio-inner"
|
|
133
|
-
data-label-position="right"
|
|
134
|
-
>
|
|
135
|
-
<input
|
|
136
|
-
class="mantine-focus-auto m_8a3dbb89 mantine-Radio-radio"
|
|
137
|
-
id="mantine-12voha2vo"
|
|
138
|
-
name="$"
|
|
139
|
-
type="radio"
|
|
140
|
-
value="3"
|
|
141
|
-
/>
|
|
142
|
-
<svg
|
|
143
|
-
aria-hidden="true"
|
|
144
|
-
class="m_f3ed6b2b mantine-Radio-icon"
|
|
145
|
-
fill="none"
|
|
146
|
-
viewBox="0 0 5 5"
|
|
147
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
148
|
-
>
|
|
149
|
-
<circle
|
|
150
|
-
cx="2.5"
|
|
151
|
-
cy="2.5"
|
|
152
|
-
fill="currentColor"
|
|
153
|
-
r="2.5"
|
|
154
|
-
/>
|
|
155
|
-
</svg>
|
|
156
|
-
</div>
|
|
157
|
-
<div
|
|
158
|
-
class="m_d3ea56bb mantine-Radio-labelWrapper"
|
|
159
|
-
>
|
|
160
|
-
<label
|
|
161
|
-
class="m_8ee546b8 mantine-Radio-label"
|
|
162
|
-
for="mantine-12voha2vo"
|
|
163
|
-
>
|
|
164
|
-
Three
|
|
165
|
-
</label>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
</div>
|
|
171
|
-
<p
|
|
172
|
-
class="m_8f816625 mantine-InputWrapper-error mantine-RadioGroup-error"
|
|
173
|
-
id="mantine-1fu8n1fu8-error"
|
|
174
|
-
>
|
|
175
|
-
custom error
|
|
176
|
-
</p>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
`;
|
|
180
|
-
|
|
181
3
|
exports[`mantine radio group hooks > renders Disabled 1`] = `
|
|
182
4
|
<div>
|
|
183
5
|
<style
|
|
@@ -697,7 +519,7 @@ exports[`mantine radio group hooks > renders Error 1`] = `
|
|
|
697
519
|
class="m_8f816625 mantine-InputWrapper-error mantine-RadioGroup-error"
|
|
698
520
|
id="mantine-1fu8n1fu8-error"
|
|
699
521
|
>
|
|
700
|
-
error
|
|
522
|
+
custom error error
|
|
701
523
|
</p>
|
|
702
524
|
</div>
|
|
703
525
|
</div>
|
|
@@ -1,87 +1,5 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`mantine select hooks > renders CustomErrorSelect 1`] = `
|
|
4
|
-
<div>
|
|
5
|
-
<style
|
|
6
|
-
data-mantine-styles="classes"
|
|
7
|
-
>
|
|
8
|
-
@media (max-width: 35.99375em) {.mantine-visible-from-xs {display: none !important;}}@media (min-width: 36em) {.mantine-hidden-from-xs {display: none !important;}}@media (max-width: 47.99375em) {.mantine-visible-from-sm {display: none !important;}}@media (min-width: 48em) {.mantine-hidden-from-sm {display: none !important;}}@media (max-width: 61.99375em) {.mantine-visible-from-md {display: none !important;}}@media (min-width: 62em) {.mantine-hidden-from-md {display: none !important;}}@media (max-width: 74.99375em) {.mantine-visible-from-lg {display: none !important;}}@media (min-width: 75em) {.mantine-hidden-from-lg {display: none !important;}}@media (max-width: 87.99375em) {.mantine-visible-from-xl {display: none !important;}}@media (min-width: 88em) {.mantine-hidden-from-xl {display: none !important;}}
|
|
9
|
-
</style>
|
|
10
|
-
<div
|
|
11
|
-
class="m_46b77525 mantine-InputWrapper-root mantine-Select-root"
|
|
12
|
-
data-error="true"
|
|
13
|
-
>
|
|
14
|
-
<label
|
|
15
|
-
class="m_8fdc1311 mantine-InputWrapper-label mantine-Select-label"
|
|
16
|
-
data-required="true"
|
|
17
|
-
for="mantine-12voha2vo"
|
|
18
|
-
id="mantine-12voha2vo-label"
|
|
19
|
-
>
|
|
20
|
-
Select
|
|
21
|
-
<span
|
|
22
|
-
aria-hidden="true"
|
|
23
|
-
class="m_78a94662 mantine-InputWrapper-required mantine-Select-required"
|
|
24
|
-
>
|
|
25
|
-
*
|
|
26
|
-
</span>
|
|
27
|
-
</label>
|
|
28
|
-
<div
|
|
29
|
-
class="m_6c018570 mantine-Input-wrapper mantine-Select-wrapper"
|
|
30
|
-
data-error="true"
|
|
31
|
-
data-pointer="true"
|
|
32
|
-
data-variant="default"
|
|
33
|
-
data-with-right-section="true"
|
|
34
|
-
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2); --input-right-section-pointer-events: none;"
|
|
35
|
-
>
|
|
36
|
-
<input
|
|
37
|
-
aria-describedby="mantine-12voha2vo-error"
|
|
38
|
-
aria-haspopup="listbox"
|
|
39
|
-
aria-invalid="true"
|
|
40
|
-
autocomplete="off"
|
|
41
|
-
class="m_8fb7ebe7 mantine-Input-input mantine-Select-input"
|
|
42
|
-
data-error="true"
|
|
43
|
-
data-variant="default"
|
|
44
|
-
id="mantine-12voha2vo"
|
|
45
|
-
readonly=""
|
|
46
|
-
required=""
|
|
47
|
-
value="c"
|
|
48
|
-
/>
|
|
49
|
-
<div
|
|
50
|
-
class="m_82577fc2 mantine-Input-section mantine-Select-section"
|
|
51
|
-
data-position="right"
|
|
52
|
-
>
|
|
53
|
-
<svg
|
|
54
|
-
class="m_2943220b mantine-ComboboxChevron-chevron"
|
|
55
|
-
data-combobox-chevron="true"
|
|
56
|
-
data-error="[object Object]"
|
|
57
|
-
fill="none"
|
|
58
|
-
viewBox="0 0 15 15"
|
|
59
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
-
>
|
|
61
|
-
<path
|
|
62
|
-
clip-rule="evenodd"
|
|
63
|
-
d="M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z"
|
|
64
|
-
fill="currentColor"
|
|
65
|
-
fill-rule="evenodd"
|
|
66
|
-
/>
|
|
67
|
-
</svg>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<p
|
|
71
|
-
class="m_8f816625 mantine-InputWrapper-error mantine-Select-error"
|
|
72
|
-
id="mantine-12voha2vo-error"
|
|
73
|
-
>
|
|
74
|
-
custom error
|
|
75
|
-
</p>
|
|
76
|
-
</div>
|
|
77
|
-
<input
|
|
78
|
-
name="$"
|
|
79
|
-
type="hidden"
|
|
80
|
-
value="c"
|
|
81
|
-
/>
|
|
82
|
-
</div>
|
|
83
|
-
`;
|
|
84
|
-
|
|
85
3
|
exports[`mantine select hooks > renders DisabledSelect 1`] = `
|
|
86
4
|
<div>
|
|
87
5
|
<style
|
|
@@ -275,7 +193,7 @@ exports[`mantine select hooks > renders InvalidSelect 1`] = `
|
|
|
275
193
|
class="m_8f816625 mantine-InputWrapper-error mantine-Select-error"
|
|
276
194
|
id="mantine-12voha2vo-error"
|
|
277
195
|
>
|
|
278
|
-
invalid option
|
|
196
|
+
Error invalid option
|
|
279
197
|
</p>
|
|
280
198
|
</div>
|
|
281
199
|
<input
|