@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.
Files changed (239) hide show
  1. package/.eslintrc.cjs +26 -0
  2. package/.out/.storybook/main.d.ts +3 -0
  3. package/.out/.storybook/main.js +32 -0
  4. package/.out/.storybook/preview.d.ts +4 -0
  5. package/.out/.storybook/preview.js +20 -0
  6. package/.out/.vitest/install_deterministic_random.d.ts +2 -0
  7. package/.out/.vitest/install_deterministic_random.js +15 -0
  8. package/.out/.vitest/install_storybook_preview.d.ts +1 -0
  9. package/.out/.vitest/install_storybook_preview.js +7 -0
  10. package/.out/.vitest/match_media.d.ts +1 -0
  11. package/.out/.vitest/match_media.js +5 -0
  12. package/.out/.vitest/resize_observer.d.ts +1 -0
  13. package/.out/.vitest/resize_observer.js +4 -0
  14. package/.out/core/mobx/field_adapter.d.ts +9 -0
  15. package/.out/core/mobx/field_adapter.js +1 -0
  16. package/.out/core/mobx/field_adapter_builder.d.ts +22 -0
  17. package/.out/core/mobx/field_adapter_builder.js +56 -0
  18. package/.out/core/mobx/flattened_adapters_of_fields.d.ts +9 -0
  19. package/.out/core/mobx/flattened_adapters_of_fields.js +1 -0
  20. package/.out/core/mobx/flattened_list_type_defs_of.d.ts +8 -0
  21. package/.out/core/mobx/flattened_list_type_defs_of.js +1 -0
  22. package/.out/core/mobx/form_presenter.d.ts +61 -0
  23. package/.out/core/mobx/form_presenter.js +425 -0
  24. package/.out/core/mobx/specs/flattened_adapters_of_fields.tests.d.ts +1 -0
  25. package/.out/core/mobx/specs/flattened_adapters_of_fields.tests.js +13 -0
  26. package/.out/core/mobx/specs/flattened_list_type_defs_of.tests.d.ts +1 -0
  27. package/.out/core/mobx/specs/flattened_list_type_defs_of.tests.js +16 -0
  28. package/.out/core/mobx/specs/form_presenter.tests.d.ts +1 -0
  29. package/.out/core/mobx/specs/form_presenter.tests.js +697 -0
  30. package/.out/core/mobx/types.d.ts +19 -0
  31. package/.out/core/mobx/types.js +1 -0
  32. package/.out/core/props.d.ts +12 -0
  33. package/.out/core/props.js +1 -0
  34. package/.out/field_converters/chain_field_converter.d.ts +3 -0
  35. package/.out/field_converters/chain_field_converter.js +46 -0
  36. package/.out/field_converters/identity_converter.d.ts +3 -0
  37. package/.out/field_converters/identity_converter.js +14 -0
  38. package/.out/field_converters/integer_to_string_converter.d.ts +7 -0
  39. package/.out/field_converters/integer_to_string_converter.js +26 -0
  40. package/.out/field_converters/list_converter.d.ts +2 -0
  41. package/.out/field_converters/list_converter.js +8 -0
  42. package/.out/field_converters/maybe_identity_converter.d.ts +8 -0
  43. package/.out/field_converters/maybe_identity_converter.js +15 -0
  44. package/.out/field_converters/nullable_to_boolean_converter.d.ts +11 -0
  45. package/.out/field_converters/nullable_to_boolean_converter.js +31 -0
  46. package/.out/field_converters/select_value_type_converter.d.ts +23 -0
  47. package/.out/field_converters/select_value_type_converter.js +60 -0
  48. package/.out/field_converters/trimming_string_converter.d.ts +6 -0
  49. package/.out/field_converters/trimming_string_converter.js +14 -0
  50. package/.out/field_converters/validating_converter.d.ts +3 -0
  51. package/.out/field_converters/validating_converter.js +21 -0
  52. package/.out/field_validators/minimum_string_length_field_validator.d.ts +2 -0
  53. package/.out/field_validators/minimum_string_length_field_validator.js +8 -0
  54. package/.out/field_value_factories/prototyping_field_value_factory.d.ts +2 -0
  55. package/.out/field_value_factories/prototyping_field_value_factory.js +5 -0
  56. package/.out/index.d.ts +16 -0
  57. package/.out/index.js +16 -0
  58. package/.out/mantine/create_checkbox.d.ts +9 -0
  59. package/.out/mantine/create_checkbox.js +37 -0
  60. package/.out/mantine/create_list.d.ts +15 -0
  61. package/.out/mantine/create_list.js +16 -0
  62. package/.out/mantine/create_pill.d.ts +7 -0
  63. package/.out/mantine/create_pill.js +15 -0
  64. package/.out/mantine/create_radio.d.ts +8 -0
  65. package/.out/mantine/create_radio.js +10 -0
  66. package/.out/mantine/create_radio_group.d.ts +9 -0
  67. package/.out/mantine/create_radio_group.js +34 -0
  68. package/.out/mantine/create_text_input.d.ts +19 -0
  69. package/.out/mantine/create_text_input.js +38 -0
  70. package/.out/mantine/create_value_input.d.ts +17 -0
  71. package/.out/mantine/create_value_input.js +38 -0
  72. package/.out/mantine/hooks.d.ts +56 -0
  73. package/.out/mantine/hooks.js +135 -0
  74. package/.out/mantine/specs/checkbox_constants.d.ts +1 -0
  75. package/.out/mantine/specs/checkbox_constants.js +1 -0
  76. package/.out/mantine/specs/checkbox_hooks.stories.d.ts +13 -0
  77. package/.out/mantine/specs/checkbox_hooks.stories.js +63 -0
  78. package/.out/mantine/specs/checkbox_hooks.tests.d.ts +1 -0
  79. package/.out/mantine/specs/checkbox_hooks.tests.js +74 -0
  80. package/.out/mantine/specs/list_hooks.stories.d.ts +11 -0
  81. package/.out/mantine/specs/list_hooks.stories.js +48 -0
  82. package/.out/mantine/specs/list_hooks.tests.d.ts +1 -0
  83. package/.out/mantine/specs/list_hooks.tests.js +12 -0
  84. package/.out/mantine/specs/radio_group_constants.d.ts +4 -0
  85. package/.out/mantine/specs/radio_group_constants.js +11 -0
  86. package/.out/mantine/specs/radio_group_hooks.stories.d.ts +14 -0
  87. package/.out/mantine/specs/radio_group_hooks.stories.js +68 -0
  88. package/.out/mantine/specs/radio_group_hooks.tests.d.ts +1 -0
  89. package/.out/mantine/specs/radio_group_hooks.tests.js +62 -0
  90. package/.out/mantine/specs/select_hooks.stories.d.ts +12 -0
  91. package/.out/mantine/specs/select_hooks.stories.js +57 -0
  92. package/.out/mantine/specs/select_hooks.tests.d.ts +1 -0
  93. package/.out/mantine/specs/select_hooks.tests.js +12 -0
  94. package/.out/mantine/specs/select_hooks_constant.d.ts +1 -0
  95. package/.out/mantine/specs/select_hooks_constant.js +1 -0
  96. package/.out/mantine/specs/text_input_constants.d.ts +1 -0
  97. package/.out/mantine/specs/text_input_constants.js +1 -0
  98. package/.out/mantine/specs/text_input_hooks.stories.d.ts +21 -0
  99. package/.out/mantine/specs/text_input_hooks.stories.js +88 -0
  100. package/.out/mantine/specs/text_input_hooks.tests.d.ts +1 -0
  101. package/.out/mantine/specs/text_input_hooks.tests.js +79 -0
  102. package/.out/mantine/specs/value_input_constants.d.ts +2 -0
  103. package/.out/mantine/specs/value_input_constants.js +2 -0
  104. package/.out/mantine/specs/value_input_hooks.stories.d.ts +23 -0
  105. package/.out/mantine/specs/value_input_hooks.stories.js +124 -0
  106. package/.out/mantine/specs/value_input_hooks.tests.d.ts +1 -0
  107. package/.out/mantine/specs/value_input_hooks.tests.js +12 -0
  108. package/.out/mantine/types.d.ts +11 -0
  109. package/.out/mantine/types.js +1 -0
  110. package/.out/tsconfig.json +27 -0
  111. package/.out/tsconfig.tsbuildinfo +1 -0
  112. package/.out/tsup.config.d.ts +3 -0
  113. package/.out/tsup.config.js +12 -0
  114. package/.out/types/all_fields_of_fields.d.ts +5 -0
  115. package/.out/types/all_fields_of_fields.js +1 -0
  116. package/.out/types/boolean_fields_of_fields.d.ts +5 -0
  117. package/.out/types/boolean_fields_of_fields.js +1 -0
  118. package/.out/types/error_type_of_field.d.ts +2 -0
  119. package/.out/types/error_type_of_field.js +1 -0
  120. package/.out/types/field.d.ts +7 -0
  121. package/.out/types/field.js +1 -0
  122. package/.out/types/field_converters.d.ts +29 -0
  123. package/.out/types/field_converters.js +5 -0
  124. package/.out/types/field_validator.d.ts +3 -0
  125. package/.out/types/field_validator.js +1 -0
  126. package/.out/types/flattened_form_fields_of.d.ts +9 -0
  127. package/.out/types/flattened_form_fields_of.js +1 -0
  128. package/.out/types/list_fields_of_fields.d.ts +5 -0
  129. package/.out/types/list_fields_of_fields.js +1 -0
  130. package/.out/types/specs/boolean_fields_of_fields.tests.d.ts +1 -0
  131. package/.out/types/specs/boolean_fields_of_fields.tests.js +11 -0
  132. package/.out/types/specs/error_type_of_field.tests.d.ts +1 -0
  133. package/.out/types/specs/error_type_of_field.tests.js +7 -0
  134. package/.out/types/specs/flattened_form_fields_of.tests.d.ts +1 -0
  135. package/.out/types/specs/flattened_form_fields_of.tests.js +13 -0
  136. package/.out/types/specs/string_fields_of_fields.tests.d.ts +1 -0
  137. package/.out/types/specs/string_fields_of_fields.tests.js +19 -0
  138. package/.out/types/specs/value_type_of_field.tests.d.ts +1 -0
  139. package/.out/types/specs/value_type_of_field.tests.js +7 -0
  140. package/.out/types/string_fields_of_fields.d.ts +5 -0
  141. package/.out/types/string_fields_of_fields.js +1 -0
  142. package/.out/types/value_type_of_field.d.ts +2 -0
  143. package/.out/types/value_type_of_field.js +1 -0
  144. package/.out/util/partial.d.ts +11 -0
  145. package/.out/util/partial.js +74 -0
  146. package/.out/vitest.workspace.d.ts +2 -0
  147. package/.out/vitest.workspace.js +22 -0
  148. package/.storybook/main.ts +40 -0
  149. package/.storybook/preview.tsx +28 -0
  150. package/.storybook/vite.config.mts +38 -0
  151. package/.turbo/turbo-build.log +18 -0
  152. package/.turbo/turbo-check-types.log +3 -0
  153. package/.turbo/turbo-release$colon$exports.log +3 -0
  154. package/.vitest/install_deterministic_random.ts +17 -0
  155. package/.vitest/install_storybook_preview.ts +9 -0
  156. package/.vitest/match_media.ts +7 -0
  157. package/.vitest/resize_observer.ts +5 -0
  158. package/README.md +2 -0
  159. package/core/mobx/field_adapter.ts +32 -0
  160. package/core/mobx/field_adapter_builder.ts +313 -0
  161. package/core/mobx/flattened_adapters_of_fields.ts +35 -0
  162. package/core/mobx/flattened_list_type_defs_of.ts +17 -0
  163. package/core/mobx/form_presenter.ts +705 -0
  164. package/core/mobx/specs/flattened_adapters_of_fields.tests.ts +72 -0
  165. package/core/mobx/specs/flattened_list_type_defs_of.tests.ts +35 -0
  166. package/core/mobx/specs/form_presenter.tests.ts +989 -0
  167. package/core/mobx/types.ts +54 -0
  168. package/core/props.ts +21 -0
  169. package/dist/index.cjs +11479 -0
  170. package/dist/index.d.cts +345 -0
  171. package/dist/index.d.ts +345 -0
  172. package/dist/index.js +11486 -0
  173. package/field_converters/chain_field_converter.ts +74 -0
  174. package/field_converters/identity_converter.ts +39 -0
  175. package/field_converters/integer_to_string_converter.ts +32 -0
  176. package/field_converters/list_converter.ts +15 -0
  177. package/field_converters/maybe_identity_converter.ts +23 -0
  178. package/field_converters/nullable_to_boolean_converter.ts +56 -0
  179. package/field_converters/select_value_type_converter.ts +141 -0
  180. package/field_converters/trimming_string_converter.ts +23 -0
  181. package/field_converters/validating_converter.ts +35 -0
  182. package/field_validators/minimum_string_length_field_validator.ts +13 -0
  183. package/field_value_factories/prototyping_field_value_factory.ts +11 -0
  184. package/index.ts +16 -0
  185. package/mantine/create_checkbox.tsx +79 -0
  186. package/mantine/create_list.tsx +58 -0
  187. package/mantine/create_pill.tsx +43 -0
  188. package/mantine/create_radio.tsx +36 -0
  189. package/mantine/create_radio_group.tsx +71 -0
  190. package/mantine/create_text_input.tsx +80 -0
  191. package/mantine/create_value_input.tsx +81 -0
  192. package/mantine/hooks.tsx +394 -0
  193. package/mantine/specs/__snapshots__/check_box_hooks.tests.tsx.snap +227 -0
  194. package/mantine/specs/__snapshots__/checkbox_hooks.tests.tsx.snap +227 -0
  195. package/mantine/specs/__snapshots__/list_hooks.tests.tsx.snap +68 -0
  196. package/mantine/specs/__snapshots__/radio_group_hooks.tests.tsx.snap +695 -0
  197. package/mantine/specs/__snapshots__/select_hooks.tests.tsx.snap +225 -0
  198. package/mantine/specs/__snapshots__/text_input_hooks.tests.tsx.snap +202 -0
  199. package/mantine/specs/__snapshots__/value_input_hooks.tests.tsx.snap +613 -0
  200. package/mantine/specs/checkbox_constants.ts +1 -0
  201. package/mantine/specs/checkbox_hooks.stories.tsx +79 -0
  202. package/mantine/specs/checkbox_hooks.tests.tsx +100 -0
  203. package/mantine/specs/list_hooks.stories.tsx +83 -0
  204. package/mantine/specs/list_hooks.tests.tsx +15 -0
  205. package/mantine/specs/radio_group_constants.ts +12 -0
  206. package/mantine/specs/radio_group_hooks.stories.tsx +103 -0
  207. package/mantine/specs/radio_group_hooks.tests.tsx +92 -0
  208. package/mantine/specs/select_hooks.stories.tsx +77 -0
  209. package/mantine/specs/select_hooks.tests.tsx +14 -0
  210. package/mantine/specs/select_hooks_constant.ts +1 -0
  211. package/mantine/specs/text_input_constants.ts +1 -0
  212. package/mantine/specs/text_input_hooks.stories.tsx +124 -0
  213. package/mantine/specs/text_input_hooks.tests.tsx +106 -0
  214. package/mantine/specs/value_input_constants.ts +2 -0
  215. package/mantine/specs/value_input_hooks.stories.tsx +182 -0
  216. package/mantine/specs/value_input_hooks.tests.tsx +14 -0
  217. package/mantine/types.ts +13 -0
  218. package/package.exports.json +18 -0
  219. package/package.json +74 -0
  220. package/tsconfig.build.json +13 -0
  221. package/tsconfig.json +27 -0
  222. package/tsup.config.ts +16 -0
  223. package/types/all_fields_of_fields.ts +9 -0
  224. package/types/boolean_fields_of_fields.ts +8 -0
  225. package/types/error_type_of_field.ts +3 -0
  226. package/types/field.ts +9 -0
  227. package/types/field_converters.ts +64 -0
  228. package/types/field_validator.ts +7 -0
  229. package/types/flattened_form_fields_of.ts +16 -0
  230. package/types/list_fields_of_fields.ts +7 -0
  231. package/types/specs/boolean_fields_of_fields.tests.ts +23 -0
  232. package/types/specs/error_type_of_field.tests.ts +10 -0
  233. package/types/specs/flattened_form_fields_of.tests.ts +43 -0
  234. package/types/specs/string_fields_of_fields.tests.ts +40 -0
  235. package/types/specs/value_type_of_field.tests.ts +10 -0
  236. package/types/string_fields_of_fields.ts +6 -0
  237. package/types/value_type_of_field.ts +3 -0
  238. package/util/partial.tsx +200 -0
  239. 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
+ `;