@strictly/react-form 0.0.1
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/.eslintrc.cjs +26 -0
- package/.out/.storybook/main.d.ts +3 -0
- package/.out/.storybook/main.js +32 -0
- package/.out/.storybook/preview.d.ts +4 -0
- package/.out/.storybook/preview.js +20 -0
- package/.out/.vitest/install_deterministic_random.d.ts +2 -0
- package/.out/.vitest/install_deterministic_random.js +15 -0
- package/.out/.vitest/install_storybook_preview.d.ts +1 -0
- package/.out/.vitest/install_storybook_preview.js +7 -0
- package/.out/.vitest/match_media.d.ts +1 -0
- package/.out/.vitest/match_media.js +5 -0
- package/.out/.vitest/resize_observer.d.ts +1 -0
- package/.out/.vitest/resize_observer.js +4 -0
- package/.out/core/mobx/field_adapter.d.ts +9 -0
- package/.out/core/mobx/field_adapter.js +1 -0
- package/.out/core/mobx/field_adapter_builder.d.ts +22 -0
- package/.out/core/mobx/field_adapter_builder.js +56 -0
- package/.out/core/mobx/flattened_adapters_of_fields.d.ts +9 -0
- package/.out/core/mobx/flattened_adapters_of_fields.js +1 -0
- package/.out/core/mobx/flattened_list_type_defs_of.d.ts +8 -0
- package/.out/core/mobx/flattened_list_type_defs_of.js +1 -0
- package/.out/core/mobx/form_presenter.d.ts +61 -0
- package/.out/core/mobx/form_presenter.js +425 -0
- package/.out/core/mobx/specs/flattened_adapters_of_fields.tests.d.ts +1 -0
- package/.out/core/mobx/specs/flattened_adapters_of_fields.tests.js +13 -0
- package/.out/core/mobx/specs/flattened_list_type_defs_of.tests.d.ts +1 -0
- package/.out/core/mobx/specs/flattened_list_type_defs_of.tests.js +16 -0
- package/.out/core/mobx/specs/form_presenter.tests.d.ts +1 -0
- package/.out/core/mobx/specs/form_presenter.tests.js +697 -0
- package/.out/core/mobx/types.d.ts +19 -0
- package/.out/core/mobx/types.js +1 -0
- package/.out/core/props.d.ts +12 -0
- package/.out/core/props.js +1 -0
- package/.out/field_converters/chain_field_converter.d.ts +3 -0
- package/.out/field_converters/chain_field_converter.js +46 -0
- package/.out/field_converters/identity_converter.d.ts +3 -0
- package/.out/field_converters/identity_converter.js +14 -0
- package/.out/field_converters/integer_to_string_converter.d.ts +7 -0
- package/.out/field_converters/integer_to_string_converter.js +26 -0
- package/.out/field_converters/list_converter.d.ts +2 -0
- package/.out/field_converters/list_converter.js +8 -0
- package/.out/field_converters/maybe_identity_converter.d.ts +8 -0
- package/.out/field_converters/maybe_identity_converter.js +15 -0
- package/.out/field_converters/nullable_to_boolean_converter.d.ts +11 -0
- package/.out/field_converters/nullable_to_boolean_converter.js +31 -0
- package/.out/field_converters/select_value_type_converter.d.ts +23 -0
- package/.out/field_converters/select_value_type_converter.js +60 -0
- package/.out/field_converters/trimming_string_converter.d.ts +6 -0
- package/.out/field_converters/trimming_string_converter.js +14 -0
- package/.out/field_converters/validating_converter.d.ts +3 -0
- package/.out/field_converters/validating_converter.js +21 -0
- package/.out/field_validators/minimum_string_length_field_validator.d.ts +2 -0
- package/.out/field_validators/minimum_string_length_field_validator.js +8 -0
- package/.out/field_value_factories/prototyping_field_value_factory.d.ts +2 -0
- package/.out/field_value_factories/prototyping_field_value_factory.js +5 -0
- package/.out/index.d.ts +16 -0
- package/.out/index.js +16 -0
- package/.out/mantine/create_checkbox.d.ts +9 -0
- package/.out/mantine/create_checkbox.js +37 -0
- package/.out/mantine/create_list.d.ts +15 -0
- package/.out/mantine/create_list.js +16 -0
- package/.out/mantine/create_pill.d.ts +7 -0
- package/.out/mantine/create_pill.js +15 -0
- package/.out/mantine/create_radio.d.ts +8 -0
- package/.out/mantine/create_radio.js +10 -0
- package/.out/mantine/create_radio_group.d.ts +9 -0
- package/.out/mantine/create_radio_group.js +34 -0
- package/.out/mantine/create_text_input.d.ts +19 -0
- package/.out/mantine/create_text_input.js +38 -0
- package/.out/mantine/create_value_input.d.ts +17 -0
- package/.out/mantine/create_value_input.js +38 -0
- package/.out/mantine/hooks.d.ts +56 -0
- package/.out/mantine/hooks.js +135 -0
- package/.out/mantine/specs/checkbox_constants.d.ts +1 -0
- package/.out/mantine/specs/checkbox_constants.js +1 -0
- package/.out/mantine/specs/checkbox_hooks.stories.d.ts +13 -0
- package/.out/mantine/specs/checkbox_hooks.stories.js +63 -0
- package/.out/mantine/specs/checkbox_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/checkbox_hooks.tests.js +74 -0
- package/.out/mantine/specs/list_hooks.stories.d.ts +11 -0
- package/.out/mantine/specs/list_hooks.stories.js +48 -0
- package/.out/mantine/specs/list_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/list_hooks.tests.js +12 -0
- package/.out/mantine/specs/radio_group_constants.d.ts +4 -0
- package/.out/mantine/specs/radio_group_constants.js +11 -0
- package/.out/mantine/specs/radio_group_hooks.stories.d.ts +14 -0
- package/.out/mantine/specs/radio_group_hooks.stories.js +68 -0
- package/.out/mantine/specs/radio_group_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/radio_group_hooks.tests.js +62 -0
- package/.out/mantine/specs/select_hooks.stories.d.ts +12 -0
- package/.out/mantine/specs/select_hooks.stories.js +57 -0
- package/.out/mantine/specs/select_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/select_hooks.tests.js +12 -0
- package/.out/mantine/specs/select_hooks_constant.d.ts +1 -0
- package/.out/mantine/specs/select_hooks_constant.js +1 -0
- package/.out/mantine/specs/text_input_constants.d.ts +1 -0
- package/.out/mantine/specs/text_input_constants.js +1 -0
- package/.out/mantine/specs/text_input_hooks.stories.d.ts +21 -0
- package/.out/mantine/specs/text_input_hooks.stories.js +88 -0
- package/.out/mantine/specs/text_input_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/text_input_hooks.tests.js +79 -0
- package/.out/mantine/specs/value_input_constants.d.ts +2 -0
- package/.out/mantine/specs/value_input_constants.js +2 -0
- package/.out/mantine/specs/value_input_hooks.stories.d.ts +23 -0
- package/.out/mantine/specs/value_input_hooks.stories.js +124 -0
- package/.out/mantine/specs/value_input_hooks.tests.d.ts +1 -0
- package/.out/mantine/specs/value_input_hooks.tests.js +12 -0
- package/.out/mantine/types.d.ts +11 -0
- package/.out/mantine/types.js +1 -0
- package/.out/tsconfig.json +27 -0
- package/.out/tsconfig.tsbuildinfo +1 -0
- package/.out/tsup.config.d.ts +3 -0
- package/.out/tsup.config.js +12 -0
- package/.out/types/all_fields_of_fields.d.ts +5 -0
- package/.out/types/all_fields_of_fields.js +1 -0
- package/.out/types/boolean_fields_of_fields.d.ts +5 -0
- package/.out/types/boolean_fields_of_fields.js +1 -0
- package/.out/types/error_type_of_field.d.ts +2 -0
- package/.out/types/error_type_of_field.js +1 -0
- package/.out/types/field.d.ts +7 -0
- package/.out/types/field.js +1 -0
- package/.out/types/field_converters.d.ts +29 -0
- package/.out/types/field_converters.js +5 -0
- package/.out/types/field_validator.d.ts +3 -0
- package/.out/types/field_validator.js +1 -0
- package/.out/types/flattened_form_fields_of.d.ts +9 -0
- package/.out/types/flattened_form_fields_of.js +1 -0
- package/.out/types/list_fields_of_fields.d.ts +5 -0
- package/.out/types/list_fields_of_fields.js +1 -0
- package/.out/types/specs/boolean_fields_of_fields.tests.d.ts +1 -0
- package/.out/types/specs/boolean_fields_of_fields.tests.js +11 -0
- package/.out/types/specs/error_type_of_field.tests.d.ts +1 -0
- package/.out/types/specs/error_type_of_field.tests.js +7 -0
- package/.out/types/specs/flattened_form_fields_of.tests.d.ts +1 -0
- package/.out/types/specs/flattened_form_fields_of.tests.js +13 -0
- package/.out/types/specs/string_fields_of_fields.tests.d.ts +1 -0
- package/.out/types/specs/string_fields_of_fields.tests.js +19 -0
- package/.out/types/specs/value_type_of_field.tests.d.ts +1 -0
- package/.out/types/specs/value_type_of_field.tests.js +7 -0
- package/.out/types/string_fields_of_fields.d.ts +5 -0
- package/.out/types/string_fields_of_fields.js +1 -0
- package/.out/types/value_type_of_field.d.ts +2 -0
- package/.out/types/value_type_of_field.js +1 -0
- package/.out/util/partial.d.ts +11 -0
- package/.out/util/partial.js +74 -0
- package/.out/vitest.workspace.d.ts +2 -0
- package/.out/vitest.workspace.js +22 -0
- package/.storybook/main.ts +40 -0
- package/.storybook/preview.tsx +28 -0
- package/.storybook/vite.config.mts +38 -0
- package/.turbo/turbo-build.log +18 -0
- package/.turbo/turbo-check-types.log +3 -0
- package/.turbo/turbo-release$colon$exports.log +3 -0
- package/.vitest/install_deterministic_random.ts +17 -0
- package/.vitest/install_storybook_preview.ts +9 -0
- package/.vitest/match_media.ts +7 -0
- package/.vitest/resize_observer.ts +5 -0
- package/README.md +2 -0
- package/core/mobx/field_adapter.ts +32 -0
- package/core/mobx/field_adapter_builder.ts +313 -0
- package/core/mobx/flattened_adapters_of_fields.ts +35 -0
- package/core/mobx/flattened_list_type_defs_of.ts +17 -0
- package/core/mobx/form_presenter.ts +705 -0
- package/core/mobx/specs/flattened_adapters_of_fields.tests.ts +72 -0
- package/core/mobx/specs/flattened_list_type_defs_of.tests.ts +35 -0
- package/core/mobx/specs/form_presenter.tests.ts +989 -0
- package/core/mobx/types.ts +54 -0
- package/core/props.ts +21 -0
- package/dist/index.cjs +11479 -0
- package/dist/index.d.cts +345 -0
- package/dist/index.d.ts +345 -0
- package/dist/index.js +11486 -0
- package/field_converters/chain_field_converter.ts +74 -0
- package/field_converters/identity_converter.ts +39 -0
- package/field_converters/integer_to_string_converter.ts +32 -0
- package/field_converters/list_converter.ts +15 -0
- package/field_converters/maybe_identity_converter.ts +23 -0
- package/field_converters/nullable_to_boolean_converter.ts +56 -0
- package/field_converters/select_value_type_converter.ts +141 -0
- package/field_converters/trimming_string_converter.ts +23 -0
- package/field_converters/validating_converter.ts +35 -0
- package/field_validators/minimum_string_length_field_validator.ts +13 -0
- package/field_value_factories/prototyping_field_value_factory.ts +11 -0
- package/index.ts +16 -0
- package/mantine/create_checkbox.tsx +79 -0
- package/mantine/create_list.tsx +58 -0
- package/mantine/create_pill.tsx +43 -0
- package/mantine/create_radio.tsx +36 -0
- package/mantine/create_radio_group.tsx +71 -0
- package/mantine/create_text_input.tsx +80 -0
- package/mantine/create_value_input.tsx +81 -0
- package/mantine/hooks.tsx +394 -0
- package/mantine/specs/__snapshots__/check_box_hooks.tests.tsx.snap +227 -0
- package/mantine/specs/__snapshots__/checkbox_hooks.tests.tsx.snap +227 -0
- package/mantine/specs/__snapshots__/list_hooks.tests.tsx.snap +68 -0
- package/mantine/specs/__snapshots__/radio_group_hooks.tests.tsx.snap +695 -0
- package/mantine/specs/__snapshots__/select_hooks.tests.tsx.snap +225 -0
- package/mantine/specs/__snapshots__/text_input_hooks.tests.tsx.snap +202 -0
- package/mantine/specs/__snapshots__/value_input_hooks.tests.tsx.snap +613 -0
- package/mantine/specs/checkbox_constants.ts +1 -0
- package/mantine/specs/checkbox_hooks.stories.tsx +79 -0
- package/mantine/specs/checkbox_hooks.tests.tsx +100 -0
- package/mantine/specs/list_hooks.stories.tsx +83 -0
- package/mantine/specs/list_hooks.tests.tsx +15 -0
- package/mantine/specs/radio_group_constants.ts +12 -0
- package/mantine/specs/radio_group_hooks.stories.tsx +103 -0
- package/mantine/specs/radio_group_hooks.tests.tsx +92 -0
- package/mantine/specs/select_hooks.stories.tsx +77 -0
- package/mantine/specs/select_hooks.tests.tsx +14 -0
- package/mantine/specs/select_hooks_constant.ts +1 -0
- package/mantine/specs/text_input_constants.ts +1 -0
- package/mantine/specs/text_input_hooks.stories.tsx +124 -0
- package/mantine/specs/text_input_hooks.tests.tsx +106 -0
- package/mantine/specs/value_input_constants.ts +2 -0
- package/mantine/specs/value_input_hooks.stories.tsx +182 -0
- package/mantine/specs/value_input_hooks.tests.tsx +14 -0
- package/mantine/types.ts +13 -0
- package/package.exports.json +18 -0
- package/package.json +74 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.json +27 -0
- package/tsup.config.ts +16 -0
- package/types/all_fields_of_fields.ts +9 -0
- package/types/boolean_fields_of_fields.ts +8 -0
- package/types/error_type_of_field.ts +3 -0
- package/types/field.ts +9 -0
- package/types/field_converters.ts +64 -0
- package/types/field_validator.ts +7 -0
- package/types/flattened_form_fields_of.ts +16 -0
- package/types/list_fields_of_fields.ts +7 -0
- package/types/specs/boolean_fields_of_fields.tests.ts +23 -0
- package/types/specs/error_type_of_field.tests.ts +10 -0
- package/types/specs/flattened_form_fields_of.tests.ts +43 -0
- package/types/specs/string_fields_of_fields.tests.ts +40 -0
- package/types/specs/value_type_of_field.tests.ts +10 -0
- package/types/string_fields_of_fields.ts +6 -0
- package/types/value_type_of_field.ts +3 -0
- package/util/partial.tsx +200 -0
- package/vitest.workspace.ts +26 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`mantine select hooks > renders EmptySelect 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
|
+
>
|
|
13
|
+
<label
|
|
14
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-Select-label"
|
|
15
|
+
data-required="true"
|
|
16
|
+
for="mantine-1fu8n1fu8"
|
|
17
|
+
id="mantine-1fu8n1fu8-label"
|
|
18
|
+
>
|
|
19
|
+
Select
|
|
20
|
+
<span
|
|
21
|
+
aria-hidden="true"
|
|
22
|
+
class="m_78a94662 mantine-InputWrapper-required mantine-Select-required"
|
|
23
|
+
>
|
|
24
|
+
*
|
|
25
|
+
</span>
|
|
26
|
+
</label>
|
|
27
|
+
<div
|
|
28
|
+
class="m_6c018570 mantine-Input-wrapper mantine-Select-wrapper"
|
|
29
|
+
data-pointer="true"
|
|
30
|
+
data-variant="default"
|
|
31
|
+
data-with-right-section="true"
|
|
32
|
+
style="--input-right-section-pointer-events: none;"
|
|
33
|
+
>
|
|
34
|
+
<input
|
|
35
|
+
aria-haspopup="listbox"
|
|
36
|
+
aria-invalid="false"
|
|
37
|
+
autocomplete="off"
|
|
38
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-Select-input"
|
|
39
|
+
data-variant="default"
|
|
40
|
+
id="mantine-1fu8n1fu8"
|
|
41
|
+
readonly=""
|
|
42
|
+
required=""
|
|
43
|
+
value=""
|
|
44
|
+
/>
|
|
45
|
+
<div
|
|
46
|
+
class="m_82577fc2 mantine-Input-section mantine-Select-section"
|
|
47
|
+
data-position="right"
|
|
48
|
+
>
|
|
49
|
+
<svg
|
|
50
|
+
class="m_2943220b mantine-ComboboxChevron-chevron"
|
|
51
|
+
data-combobox-chevron="true"
|
|
52
|
+
fill="none"
|
|
53
|
+
viewBox="0 0 15 15"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
clip-rule="evenodd"
|
|
58
|
+
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"
|
|
59
|
+
fill="currentColor"
|
|
60
|
+
fill-rule="evenodd"
|
|
61
|
+
/>
|
|
62
|
+
</svg>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<input
|
|
67
|
+
name="$"
|
|
68
|
+
type="hidden"
|
|
69
|
+
value=""
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`mantine select hooks > renders InvalidSelect 1`] = `
|
|
75
|
+
<div>
|
|
76
|
+
<style
|
|
77
|
+
data-mantine-styles="classes"
|
|
78
|
+
>
|
|
79
|
+
@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;}}
|
|
80
|
+
</style>
|
|
81
|
+
<div
|
|
82
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-Select-root"
|
|
83
|
+
data-error="true"
|
|
84
|
+
>
|
|
85
|
+
<label
|
|
86
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-Select-label"
|
|
87
|
+
data-required="true"
|
|
88
|
+
for="mantine-12voha2vo"
|
|
89
|
+
id="mantine-12voha2vo-label"
|
|
90
|
+
>
|
|
91
|
+
Select
|
|
92
|
+
<span
|
|
93
|
+
aria-hidden="true"
|
|
94
|
+
class="m_78a94662 mantine-InputWrapper-required mantine-Select-required"
|
|
95
|
+
>
|
|
96
|
+
*
|
|
97
|
+
</span>
|
|
98
|
+
</label>
|
|
99
|
+
<div
|
|
100
|
+
class="m_6c018570 mantine-Input-wrapper mantine-Select-wrapper"
|
|
101
|
+
data-error="true"
|
|
102
|
+
data-pointer="true"
|
|
103
|
+
data-variant="default"
|
|
104
|
+
data-with-right-section="true"
|
|
105
|
+
style="--input-margin-bottom: calc(var(--mantine-spacing-xs) / 2); --input-right-section-pointer-events: none;"
|
|
106
|
+
>
|
|
107
|
+
<input
|
|
108
|
+
aria-describedby="mantine-12voha2vo-error"
|
|
109
|
+
aria-haspopup="listbox"
|
|
110
|
+
aria-invalid="true"
|
|
111
|
+
autocomplete="off"
|
|
112
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-Select-input"
|
|
113
|
+
data-error="true"
|
|
114
|
+
data-variant="default"
|
|
115
|
+
id="mantine-12voha2vo"
|
|
116
|
+
readonly=""
|
|
117
|
+
required=""
|
|
118
|
+
value=""
|
|
119
|
+
/>
|
|
120
|
+
<div
|
|
121
|
+
class="m_82577fc2 mantine-Input-section mantine-Select-section"
|
|
122
|
+
data-position="right"
|
|
123
|
+
>
|
|
124
|
+
<svg
|
|
125
|
+
class="m_2943220b mantine-ComboboxChevron-chevron"
|
|
126
|
+
data-combobox-chevron="true"
|
|
127
|
+
data-error="[object Object]"
|
|
128
|
+
fill="none"
|
|
129
|
+
viewBox="0 0 15 15"
|
|
130
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
131
|
+
>
|
|
132
|
+
<path
|
|
133
|
+
clip-rule="evenodd"
|
|
134
|
+
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"
|
|
135
|
+
fill="currentColor"
|
|
136
|
+
fill-rule="evenodd"
|
|
137
|
+
/>
|
|
138
|
+
</svg>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<p
|
|
142
|
+
class="m_8f816625 mantine-InputWrapper-error mantine-Select-error"
|
|
143
|
+
id="mantine-12voha2vo-error"
|
|
144
|
+
>
|
|
145
|
+
invalid option
|
|
146
|
+
</p>
|
|
147
|
+
</div>
|
|
148
|
+
<input
|
|
149
|
+
name="$"
|
|
150
|
+
type="hidden"
|
|
151
|
+
value="d"
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
`;
|
|
155
|
+
|
|
156
|
+
exports[`mantine select hooks > renders PopulatedSelect 1`] = `
|
|
157
|
+
<div>
|
|
158
|
+
<style
|
|
159
|
+
data-mantine-styles="classes"
|
|
160
|
+
>
|
|
161
|
+
@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;}}
|
|
162
|
+
</style>
|
|
163
|
+
<div
|
|
164
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-Select-root"
|
|
165
|
+
>
|
|
166
|
+
<label
|
|
167
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-Select-label"
|
|
168
|
+
data-required="true"
|
|
169
|
+
for="mantine-12voha2vo"
|
|
170
|
+
id="mantine-12voha2vo-label"
|
|
171
|
+
>
|
|
172
|
+
Select
|
|
173
|
+
<span
|
|
174
|
+
aria-hidden="true"
|
|
175
|
+
class="m_78a94662 mantine-InputWrapper-required mantine-Select-required"
|
|
176
|
+
>
|
|
177
|
+
*
|
|
178
|
+
</span>
|
|
179
|
+
</label>
|
|
180
|
+
<div
|
|
181
|
+
class="m_6c018570 mantine-Input-wrapper mantine-Select-wrapper"
|
|
182
|
+
data-pointer="true"
|
|
183
|
+
data-variant="default"
|
|
184
|
+
data-with-right-section="true"
|
|
185
|
+
style="--input-right-section-pointer-events: none;"
|
|
186
|
+
>
|
|
187
|
+
<input
|
|
188
|
+
aria-haspopup="listbox"
|
|
189
|
+
aria-invalid="false"
|
|
190
|
+
autocomplete="off"
|
|
191
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-Select-input"
|
|
192
|
+
data-variant="default"
|
|
193
|
+
id="mantine-12voha2vo"
|
|
194
|
+
readonly=""
|
|
195
|
+
required=""
|
|
196
|
+
value="a"
|
|
197
|
+
/>
|
|
198
|
+
<div
|
|
199
|
+
class="m_82577fc2 mantine-Input-section mantine-Select-section"
|
|
200
|
+
data-position="right"
|
|
201
|
+
>
|
|
202
|
+
<svg
|
|
203
|
+
class="m_2943220b mantine-ComboboxChevron-chevron"
|
|
204
|
+
data-combobox-chevron="true"
|
|
205
|
+
fill="none"
|
|
206
|
+
viewBox="0 0 15 15"
|
|
207
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
208
|
+
>
|
|
209
|
+
<path
|
|
210
|
+
clip-rule="evenodd"
|
|
211
|
+
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"
|
|
212
|
+
fill="currentColor"
|
|
213
|
+
fill-rule="evenodd"
|
|
214
|
+
/>
|
|
215
|
+
</svg>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
<input
|
|
220
|
+
name="$"
|
|
221
|
+
type="hidden"
|
|
222
|
+
value="a"
|
|
223
|
+
/>
|
|
224
|
+
</div>
|
|
225
|
+
`;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`mantine checkbox hooks > renders Disabled 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-TextInput-root"
|
|
12
|
+
>
|
|
13
|
+
<label
|
|
14
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
15
|
+
for="mantine-0cyk5rcyk"
|
|
16
|
+
id="mantine-0cyk5rcyk-label"
|
|
17
|
+
>
|
|
18
|
+
Text Input
|
|
19
|
+
</label>
|
|
20
|
+
<div
|
|
21
|
+
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
22
|
+
data-disabled="true"
|
|
23
|
+
data-variant="default"
|
|
24
|
+
>
|
|
25
|
+
<input
|
|
26
|
+
aria-invalid="false"
|
|
27
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
28
|
+
data-disabled="true"
|
|
29
|
+
data-variant="default"
|
|
30
|
+
disabled=""
|
|
31
|
+
id="mantine-0cyk5rcyk"
|
|
32
|
+
name="$"
|
|
33
|
+
value="xxx"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
exports[`mantine checkbox hooks > renders Empty 1`] = `
|
|
41
|
+
<div>
|
|
42
|
+
<style
|
|
43
|
+
data-mantine-styles="classes"
|
|
44
|
+
>
|
|
45
|
+
@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;}}
|
|
46
|
+
</style>
|
|
47
|
+
<div
|
|
48
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
49
|
+
>
|
|
50
|
+
<label
|
|
51
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
52
|
+
for="mantine-0px4bipx4"
|
|
53
|
+
id="mantine-0px4bipx4-label"
|
|
54
|
+
>
|
|
55
|
+
Text Input
|
|
56
|
+
</label>
|
|
57
|
+
<div
|
|
58
|
+
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
59
|
+
data-variant="default"
|
|
60
|
+
>
|
|
61
|
+
<input
|
|
62
|
+
aria-invalid="false"
|
|
63
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
64
|
+
data-variant="default"
|
|
65
|
+
id="mantine-0px4bipx4"
|
|
66
|
+
name="$"
|
|
67
|
+
value=""
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`mantine checkbox hooks > renders OverriddenPillsInputField 1`] = `
|
|
75
|
+
<div>
|
|
76
|
+
<style
|
|
77
|
+
data-mantine-styles="classes"
|
|
78
|
+
>
|
|
79
|
+
@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;}}
|
|
80
|
+
</style>
|
|
81
|
+
<input
|
|
82
|
+
class="m_45c4369d mantine-PillsInputField-field"
|
|
83
|
+
data-type="visible"
|
|
84
|
+
label="Text Input"
|
|
85
|
+
name="$"
|
|
86
|
+
type="text"
|
|
87
|
+
value="PillsInputField"
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
exports[`mantine checkbox hooks > renders OverriddenTextarea 1`] = `
|
|
93
|
+
<div>
|
|
94
|
+
<style
|
|
95
|
+
data-mantine-styles="classes"
|
|
96
|
+
>
|
|
97
|
+
@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;}}
|
|
98
|
+
</style>
|
|
99
|
+
<div
|
|
100
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-Textarea-root"
|
|
101
|
+
>
|
|
102
|
+
<label
|
|
103
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-Textarea-label"
|
|
104
|
+
for="mantine-0cyk5rcyk"
|
|
105
|
+
id="mantine-0cyk5rcyk-label"
|
|
106
|
+
>
|
|
107
|
+
Text Input
|
|
108
|
+
</label>
|
|
109
|
+
<div
|
|
110
|
+
class="m_6c018570 mantine-Input-wrapper mantine-Textarea-wrapper"
|
|
111
|
+
data-multiline="true"
|
|
112
|
+
data-variant="default"
|
|
113
|
+
>
|
|
114
|
+
<textarea
|
|
115
|
+
aria-invalid="false"
|
|
116
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-Textarea-input"
|
|
117
|
+
data-variant="default"
|
|
118
|
+
id="mantine-0cyk5rcyk"
|
|
119
|
+
name="$"
|
|
120
|
+
>
|
|
121
|
+
Textarea
|
|
122
|
+
</textarea>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
`;
|
|
127
|
+
|
|
128
|
+
exports[`mantine checkbox hooks > renders Populated 1`] = `
|
|
129
|
+
<div>
|
|
130
|
+
<style
|
|
131
|
+
data-mantine-styles="classes"
|
|
132
|
+
>
|
|
133
|
+
@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;}}
|
|
134
|
+
</style>
|
|
135
|
+
<div
|
|
136
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
137
|
+
>
|
|
138
|
+
<label
|
|
139
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
140
|
+
for="mantine-0cyk5rcyk"
|
|
141
|
+
id="mantine-0cyk5rcyk-label"
|
|
142
|
+
>
|
|
143
|
+
Text Input
|
|
144
|
+
</label>
|
|
145
|
+
<div
|
|
146
|
+
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
147
|
+
data-variant="default"
|
|
148
|
+
>
|
|
149
|
+
<input
|
|
150
|
+
aria-invalid="false"
|
|
151
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
152
|
+
data-variant="default"
|
|
153
|
+
id="mantine-0cyk5rcyk"
|
|
154
|
+
name="$"
|
|
155
|
+
value="Hello"
|
|
156
|
+
/>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
`;
|
|
161
|
+
|
|
162
|
+
exports[`mantine checkbox hooks > renders Required 1`] = `
|
|
163
|
+
<div>
|
|
164
|
+
<style
|
|
165
|
+
data-mantine-styles="classes"
|
|
166
|
+
>
|
|
167
|
+
@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;}}
|
|
168
|
+
</style>
|
|
169
|
+
<div
|
|
170
|
+
class="m_46b77525 mantine-InputWrapper-root mantine-TextInput-root"
|
|
171
|
+
>
|
|
172
|
+
<label
|
|
173
|
+
class="m_8fdc1311 mantine-InputWrapper-label mantine-TextInput-label"
|
|
174
|
+
data-required="true"
|
|
175
|
+
for="mantine-0cyk5rcyk"
|
|
176
|
+
id="mantine-0cyk5rcyk-label"
|
|
177
|
+
>
|
|
178
|
+
Text Input
|
|
179
|
+
<span
|
|
180
|
+
aria-hidden="true"
|
|
181
|
+
class="m_78a94662 mantine-InputWrapper-required mantine-TextInput-required"
|
|
182
|
+
>
|
|
183
|
+
*
|
|
184
|
+
</span>
|
|
185
|
+
</label>
|
|
186
|
+
<div
|
|
187
|
+
class="m_6c018570 mantine-Input-wrapper mantine-TextInput-wrapper"
|
|
188
|
+
data-variant="default"
|
|
189
|
+
>
|
|
190
|
+
<input
|
|
191
|
+
aria-invalid="false"
|
|
192
|
+
class="m_8fb7ebe7 mantine-Input-input mantine-TextInput-input"
|
|
193
|
+
data-variant="default"
|
|
194
|
+
id="mantine-0cyk5rcyk"
|
|
195
|
+
name="$"
|
|
196
|
+
required=""
|
|
197
|
+
value="xxx"
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
`;
|