@powerhousedao/design-system 6.0.0-dev.193 → 6.0.0-dev.195

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 (194) hide show
  1. package/dist/{button-nudlf0Je.d.ts → button-CRGaTu1H.d.ts} +1 -1
  2. package/dist/{button-nudlf0Je.d.ts.map → button-CRGaTu1H.d.ts.map} +1 -1
  3. package/dist/{character-counter-DGG-KjTk.d.ts → character-counter-sqhtpnM2.d.ts} +1 -1
  4. package/dist/{character-counter-DGG-KjTk.d.ts.map → character-counter-sqhtpnM2.d.ts.map} +1 -1
  5. package/dist/{checkbox-Bv_YDLcz.d.ts → checkbox-WQJ1ELix.d.ts} +3 -3
  6. package/dist/{checkbox-Bv_YDLcz.d.ts.map → checkbox-WQJ1ELix.d.ts.map} +1 -1
  7. package/dist/{checkbox-base-C0Sa2qHx.d.ts → checkbox-base-kQOLgBSw.d.ts} +1 -1
  8. package/dist/{checkbox-base-C0Sa2qHx.d.ts.map → checkbox-base-kQOLgBSw.d.ts.map} +1 -1
  9. package/dist/{command-CnlOErMD.d.ts → command-BVb5bGtc.d.ts} +8 -8
  10. package/dist/{command-CnlOErMD.d.ts.map → command-BVb5bGtc.d.ts.map} +1 -1
  11. package/dist/connect/index.d.ts +2 -2
  12. package/dist/connect/index.js +1 -1
  13. package/dist/{connect-DAOux5MY.js → connect-CrXsa33f.js} +2 -2
  14. package/dist/{connect-DAOux5MY.js.map → connect-CrXsa33f.js.map} +1 -1
  15. package/dist/{content-Dp_nWlIb.d.ts → content-B-HaysyU.d.ts} +2 -2
  16. package/dist/{content-Dp_nWlIb.d.ts.map → content-B-HaysyU.d.ts.map} +1 -1
  17. package/dist/{enum-field-B1adv_D3.d.ts → enum-field-gjkjO_WS.d.ts} +4 -4
  18. package/dist/{enum-field-B1adv_D3.d.ts.map → enum-field-gjkjO_WS.d.ts.map} +1 -1
  19. package/dist/{form-xK4laHKj.d.ts → form-C1QA8m1k.d.ts} +1 -1
  20. package/dist/{form-xK4laHKj.d.ts.map → form-C1QA8m1k.d.ts.map} +1 -1
  21. package/dist/{form-description-BBEpOsuH.d.ts → form-description-CJVMogCL.d.ts} +1 -1
  22. package/dist/{form-description-BBEpOsuH.d.ts.map → form-description-CJVMogCL.d.ts.map} +1 -1
  23. package/dist/{form-group-D641xIKN.d.ts → form-group-BDgpr5u8.d.ts} +1 -1
  24. package/dist/form-group-BDgpr5u8.d.ts.map +1 -0
  25. package/dist/{form-label-Cc-YoYR-.d.ts → form-label-CCANBlbG.d.ts} +1 -1
  26. package/dist/{form-label-Cc-YoYR-.d.ts.map → form-label-CCANBlbG.d.ts.map} +1 -1
  27. package/dist/{form-message-C1wvyGFI.d.ts → form-message-TYsO9BYM.d.ts} +1 -1
  28. package/dist/{form-message-C1wvyGFI.d.ts.map → form-message-TYsO9BYM.d.ts.map} +1 -1
  29. package/dist/{form-server-error-message-ChVKcaYp.d.ts → form-server-error-message-DM79ceCA.d.ts} +1 -1
  30. package/dist/{form-server-error-message-ChVKcaYp.d.ts.map → form-server-error-message-DM79ceCA.d.ts.map} +1 -1
  31. package/dist/{id-autocomplete-ByXPgGKI.d.ts → id-autocomplete-BafWC9wr.d.ts} +2 -2
  32. package/dist/{id-autocomplete-ByXPgGKI.d.ts.map → id-autocomplete-BafWC9wr.d.ts.map} +1 -1
  33. package/dist/{id-autocomplete-input-container-Bvf4Rnvz.d.ts → id-autocomplete-input-container-DxxI5DR6.d.ts} +2 -2
  34. package/dist/{id-autocomplete-input-container-Bvf4Rnvz.d.ts.map → id-autocomplete-input-container-DxxI5DR6.d.ts.map} +1 -1
  35. package/dist/{id-autocomplete-list-B_1PLCao.d.ts → id-autocomplete-list-BHBavDro.d.ts} +2 -2
  36. package/dist/{id-autocomplete-list-B_1PLCao.d.ts.map → id-autocomplete-list-BHBavDro.d.ts.map} +1 -1
  37. package/dist/{id-autocomplete-list-option-Bdkp-tQm.d.ts → id-autocomplete-list-option-DlFexoVY.d.ts} +2 -2
  38. package/dist/{id-autocomplete-list-option-Bdkp-tQm.d.ts.map → id-autocomplete-list-option-DlFexoVY.d.ts.map} +1 -1
  39. package/dist/{index-CeKkrAgh.d.ts → index-C37KRTG6.d.ts} +2 -2
  40. package/dist/{index-CeKkrAgh.d.ts.map → index-C37KRTG6.d.ts.map} +1 -1
  41. package/dist/{index-pFaGaBIp.d.ts → index-CuSjRT5A.d.ts} +1 -1
  42. package/dist/{index-pFaGaBIp.d.ts.map → index-CuSjRT5A.d.ts.map} +1 -1
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +1 -1
  45. package/dist/{input-Ct33ZSt1.d.ts → input-Bl0zw1zI.d.ts} +1 -1
  46. package/dist/{input-Ct33ZSt1.d.ts.map → input-Bl0zw1zI.d.ts.map} +1 -1
  47. package/dist/{json-viewer-zv7cXvwi.d.ts → json-viewer-B5JtYTX7.d.ts} +1 -1
  48. package/dist/{json-viewer-zv7cXvwi.d.ts.map → json-viewer-B5JtYTX7.d.ts.map} +1 -1
  49. package/dist/{message-list-DPcJ-4LT.d.ts → message-list-BZ9ku5cz.d.ts} +2 -2
  50. package/dist/{message-list-DPcJ-4LT.d.ts.map → message-list-BZ9ku5cz.d.ts.map} +1 -1
  51. package/dist/{popover-DRMntq2i.d.ts → popover-CD29J7Ou.d.ts} +1 -1
  52. package/dist/{popover-DRMntq2i.d.ts.map → popover-CD29J7Ou.d.ts.map} +1 -1
  53. package/dist/{radio-BDfOgBkg.d.ts → radio-9EYSHlFT.d.ts} +1 -1
  54. package/dist/{radio-BDfOgBkg.d.ts.map → radio-9EYSHlFT.d.ts.map} +1 -1
  55. package/dist/{radio-group-GvfMKNQZ.d.ts → radio-group-BT-3-R48.d.ts} +1 -1
  56. package/dist/{radio-group-GvfMKNQZ.d.ts.map → radio-group-BT-3-R48.d.ts.map} +1 -1
  57. package/dist/{radio-group-field-BzsCboki.d.ts → radio-group-field-BeQEWaTA.d.ts} +2 -2
  58. package/dist/{radio-group-field-BzsCboki.d.ts.map → radio-group-field-BeQEWaTA.d.ts.map} +1 -1
  59. package/dist/rwa/index.d.ts +11 -11
  60. package/dist/rwa/index.d.ts.map +1 -1
  61. package/dist/rwa/index.js +2 -2
  62. package/dist/{search-autocomplete-C8QQB3YW.d.ts → search-autocomplete-BRGCFNv4.d.ts} +2 -2
  63. package/dist/{search-autocomplete-C8QQB3YW.d.ts.map → search-autocomplete-BRGCFNv4.d.ts.map} +1 -1
  64. package/dist/{select-field-C_81MbUi.d.ts → select-field-CxQiIXRy.d.ts} +2 -2
  65. package/dist/{select-field-C_81MbUi.d.ts.map → select-field-CxQiIXRy.d.ts.map} +1 -1
  66. package/dist/{selected-content-CsFTuaAl.d.ts → selected-content-DPH03IS_.d.ts} +2 -2
  67. package/dist/{selected-content-CsFTuaAl.d.ts.map → selected-content-DPH03IS_.d.ts.map} +1 -1
  68. package/dist/{splitted-input-diff-D9L08adR.d.ts → splitted-input-diff-Cvmajf1T.d.ts} +2 -2
  69. package/dist/{splitted-input-diff-D9L08adR.d.ts.map → splitted-input-diff-Cvmajf1T.d.ts.map} +1 -1
  70. package/dist/{src-BwsYkPPG.js → src-BX8sU0Tq.js} +1 -1
  71. package/dist/{src-BwsYkPPG.js.map → src-BX8sU0Tq.js.map} +1 -1
  72. package/dist/{text-field-CEhBGNfC.d.ts → text-field-D_SU7LsS.d.ts} +3 -3
  73. package/dist/{text-field-CEhBGNfC.d.ts.map → text-field-D_SU7LsS.d.ts.map} +1 -1
  74. package/dist/{text-input-w89uEGpc.d.ts → text-input-BHnj0vwk.d.ts} +3 -3
  75. package/dist/{text-input-w89uEGpc.d.ts.map → text-input-BHnj0vwk.d.ts.map} +1 -1
  76. package/dist/{text-input-diff-ByTC0w1P.d.ts → text-input-diff-BX11t5bF.d.ts} +2 -2
  77. package/dist/{text-input-diff-ByTC0w1P.d.ts.map → text-input-diff-BX11t5bF.d.ts.map} +1 -1
  78. package/dist/{tooltip-VNGD7wwV.d.ts → tooltip-CJfsoXUL.d.ts} +1 -1
  79. package/dist/{tooltip-VNGD7wwV.d.ts.map → tooltip-CJfsoXUL.d.ts.map} +1 -1
  80. package/dist/{types-DFKGTI_F.d.ts → types-BWOaVvle.d.ts} +1 -1
  81. package/dist/{types-DFKGTI_F.d.ts.map → types-BWOaVvle.d.ts.map} +1 -1
  82. package/dist/{types-BghCtHb5.d.ts → types-DY2V2IQi.d.ts} +1 -1
  83. package/dist/{types-BghCtHb5.d.ts.map → types-DY2V2IQi.d.ts.map} +1 -1
  84. package/dist/{types-B88O8apP.d.ts → types-xiS8yRsl.d.ts} +1 -1
  85. package/dist/{types-B88O8apP.d.ts.map → types-xiS8yRsl.d.ts.map} +1 -1
  86. package/dist/ui/components/button/button.d.ts +1 -1
  87. package/dist/ui/components/button/button.js +1 -1
  88. package/dist/ui/components/character-counter/character-counter.d.ts +1 -1
  89. package/dist/ui/components/checkbox/checkbox-base.d.ts +1 -1
  90. package/dist/ui/components/checkbox/checkbox-base.js +1 -1
  91. package/dist/ui/components/checkbox/checkbox.d.ts +1 -1
  92. package/dist/ui/components/checkbox/checkbox.js +1 -1
  93. package/dist/ui/components/command/command.d.ts +1 -1
  94. package/dist/ui/components/command/command.js +1 -1
  95. package/dist/ui/components/enum-field/enum-field.d.ts +1 -1
  96. package/dist/ui/components/enum-field/types.d.ts +1 -1
  97. package/dist/ui/components/form/form.d.ts +1 -1
  98. package/dist/ui/components/form-description/form-description.d.ts +1 -1
  99. package/dist/ui/components/form-description/form-description.js +1 -1
  100. package/dist/ui/components/form-group/form-group.d.ts +1 -1
  101. package/dist/ui/components/form-label/form-label.d.ts +1 -1
  102. package/dist/ui/components/form-label/form-label.js +1 -1
  103. package/dist/ui/components/form-message/form-message.d.ts +1 -1
  104. package/dist/ui/components/form-message/form-message.js +1 -1
  105. package/dist/ui/components/form-message/form-server-error-message.d.ts +1 -1
  106. package/dist/ui/components/form-message/message-list.d.ts +1 -1
  107. package/dist/ui/components/form-message/message-list.js +1 -1
  108. package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +1 -1
  109. package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +1 -1
  110. package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +1 -1
  111. package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +1 -1
  112. package/dist/ui/components/id-autocomplete/id-autocomplete-list.d.ts +1 -1
  113. package/dist/ui/components/id-autocomplete/id-autocomplete-list.js +1 -1
  114. package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +1 -1
  115. package/dist/ui/components/id-autocomplete/id-autocomplete.js +1 -1
  116. package/dist/ui/components/id-autocomplete/types.d.ts +1 -1
  117. package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +1 -1
  118. package/dist/ui/components/index.d.ts +36 -36
  119. package/dist/ui/components/input/input.d.ts +1 -1
  120. package/dist/ui/components/input/splitted-input-diff.d.ts +1 -1
  121. package/dist/ui/components/input/splitted-input-diff.js +1 -1
  122. package/dist/ui/components/input/subcomponent/input-diff.js +1 -1
  123. package/dist/ui/components/input/subcomponent/text-diff.d.ts +1 -1
  124. package/dist/ui/components/input/subcomponent/text-diff.js +1 -1
  125. package/dist/ui/components/json-viewer/json-viewer.d.ts +1 -1
  126. package/dist/ui/components/popover/popover.d.ts +1 -1
  127. package/dist/ui/components/popover/popover.js +1 -1
  128. package/dist/ui/components/radio-group-field/radio-group-field.d.ts +1 -1
  129. package/dist/ui/components/radio-group-field/radio-group-field.js +1 -1
  130. package/dist/ui/components/radio-group-field/radio-group.d.ts +1 -1
  131. package/dist/ui/components/radio-group-field/radio.d.ts +1 -1
  132. package/dist/ui/components/radio-group-field/radio.js +1 -1
  133. package/dist/ui/components/search-autocomplete/index.d.ts +3 -3
  134. package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +1 -1
  135. package/dist/ui/components/search-autocomplete/search-autocomplete.js +1 -1
  136. package/dist/ui/components/search-autocomplete/types.d.ts +1 -1
  137. package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +1 -1
  138. package/dist/ui/components/select-field/content.d.ts +1 -1
  139. package/dist/ui/components/select-field/content.js +1 -1
  140. package/dist/ui/components/select-field/select-field.d.ts +1 -1
  141. package/dist/ui/components/select-field/select-field.js +1 -1
  142. package/dist/ui/components/select-field/selected-content.d.ts +1 -1
  143. package/dist/ui/components/select-field/selected-content.js +1 -1
  144. package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts +1 -1
  145. package/dist/ui/components/select-field/subcomponents/CommandItemList.js +1 -1
  146. package/dist/ui/components/select-field/use-select-field.d.ts +1 -1
  147. package/dist/ui/components/text-field/text-field.d.ts +1 -1
  148. package/dist/ui/components/text-input/text-input-diff.d.ts +1 -1
  149. package/dist/ui/components/text-input/text-input.d.ts +1 -1
  150. package/dist/ui/components/text-input/text-input.js +1 -1
  151. package/dist/ui/components/text-input/types.d.ts +1 -1
  152. package/dist/ui/components/tooltip/tooltip.d.ts +1 -1
  153. package/dist/ui/components/tooltip/tooltip.js +1 -1
  154. package/dist/ui/components/types.d.ts +1 -1
  155. package/dist/ui/components/value-transformer/value-transformer.d.ts +1 -1
  156. package/dist/ui/components/with-field-validation/with-field-validation.d.ts +1 -1
  157. package/dist/ui/index.d.ts +38 -38
  158. package/dist/ui/lib/date-picker.d.ts +1 -1
  159. package/dist/ui/lib/shared-value-transformers.d.ts +1 -1
  160. package/dist/ui/lib/types.d.ts +1 -1
  161. package/dist/ui/types.d.ts +2 -2
  162. package/dist/{use-id-autocomplete-DbusLc-p.d.ts → use-id-autocomplete-FGV0tDeG.d.ts} +2 -2
  163. package/dist/{use-id-autocomplete-DbusLc-p.d.ts.map → use-id-autocomplete-FGV0tDeG.d.ts.map} +1 -1
  164. package/dist/{use-search-autocomplete-DNPhMdWQ.d.ts → use-search-autocomplete-BYRTKJjd.d.ts} +2 -2
  165. package/dist/{use-search-autocomplete-DNPhMdWQ.d.ts.map → use-search-autocomplete-BYRTKJjd.d.ts.map} +1 -1
  166. package/dist/{value-transformer-BRCYfgm2.d.ts → value-transformer-BDrKuBqy.d.ts} +2 -2
  167. package/dist/{value-transformer-BRCYfgm2.d.ts.map → value-transformer-BDrKuBqy.d.ts.map} +1 -1
  168. package/dist/{with-field-validation-C9GkWcIc.d.ts → with-field-validation-DQwlMTzr.d.ts} +2 -2
  169. package/dist/{with-field-validation-C9GkWcIc.d.ts.map → with-field-validation-DQwlMTzr.d.ts.map} +1 -1
  170. package/package.json +6 -6
  171. package/dist/chunk-BoAXSpZd.js +0 -33
  172. package/dist/form-group-D641xIKN.d.ts.map +0 -1
  173. package/dist/index-S0ouSBFY.d.ts +0 -643
  174. package/dist/index-S0ouSBFY.d.ts.map +0 -1
  175. package/dist/magic-string.es-D363a3sz.js +0 -1013
  176. package/dist/magic-string.es-D363a3sz.js.map +0 -1
  177. package/dist/ui/components/decorators.d.ts +0 -8
  178. package/dist/ui/components/decorators.d.ts.map +0 -1
  179. package/dist/ui/components/decorators.js +0 -113
  180. package/dist/ui/components/decorators.js.map +0 -1
  181. package/dist/ui/components/storybook-arg-types.d.ts +0 -476
  182. package/dist/ui/components/storybook-arg-types.d.ts.map +0 -1
  183. package/dist/ui/components/storybook-arg-types.js +0 -300
  184. package/dist/ui/components/storybook-arg-types.js.map +0 -1
  185. package/dist/ui/components/testing.d.ts +0 -279
  186. package/dist/ui/components/testing.d.ts.map +0 -1
  187. package/dist/ui/components/testing.js +0 -11197
  188. package/dist/ui/components/testing.js.map +0 -1
  189. package/dist/ui/lib/is-empty.test.d.ts +0 -1
  190. package/dist/ui/lib/is-empty.test.js +0 -13287
  191. package/dist/ui/lib/is-empty.test.js.map +0 -1
  192. /package/dist/{index-B2TCFhpj.d.ts → index--okzibnx.d.ts} +0 -0
  193. /package/dist/{index-E7Wvm5uX.d.ts → index-C2geSgue.d.ts} +0 -0
  194. /package/dist/{index-g0mugXoV.d.ts → index-Dw5cCt-A.d.ts} +0 -0
@@ -1,300 +0,0 @@
1
- //#region src/ui/components/storybook-arg-types.tsx
2
- let StorybookControlCategory = /* @__PURE__ */ function(StorybookControlCategory) {
3
- StorybookControlCategory["DEFAULT"] = "Default";
4
- StorybookControlCategory["COMPONENT_SPECIFIC"] = "Component-specific";
5
- StorybookControlCategory["VALIDATION"] = "Validation";
6
- StorybookControlCategory["DIFF"] = "Differences";
7
- return StorybookControlCategory;
8
- }({});
9
- const PrebuiltArgTypes = {
10
- id: { id: {
11
- control: "text",
12
- description: "Unique identifier for the component",
13
- table: {
14
- type: { summary: "string" },
15
- defaultValue: { summary: "auto-generated" },
16
- category: StorybookControlCategory.DEFAULT
17
- }
18
- } },
19
- name: { name: {
20
- control: "text",
21
- description: "Name attribute for the component",
22
- table: {
23
- type: { summary: "string" },
24
- category: StorybookControlCategory.DEFAULT,
25
- readonly: true
26
- }
27
- } },
28
- label: { label: {
29
- control: "text",
30
- description: "Sets the visible label text for the input field",
31
- table: {
32
- type: { summary: "string" },
33
- category: StorybookControlCategory.DEFAULT
34
- }
35
- } },
36
- description: { description: {
37
- control: "text",
38
- description: "Helper text displayed below the input field",
39
- table: {
40
- type: { summary: "string" },
41
- category: StorybookControlCategory.DEFAULT
42
- }
43
- } },
44
- disabled: { disabled: {
45
- control: "boolean",
46
- description: "Whether the component is disabled",
47
- table: {
48
- type: { summary: "boolean" },
49
- defaultValue: { summary: "false" },
50
- category: StorybookControlCategory.DEFAULT
51
- }
52
- } },
53
- className: { className: {
54
- control: "text",
55
- description: "Additional CSS classes to apply to the component",
56
- table: {
57
- type: { summary: "string" },
58
- category: StorybookControlCategory.DEFAULT
59
- }
60
- } },
61
- placeholder: { placeholder: {
62
- control: "text",
63
- description: "Placeholder text shown when field is empty",
64
- table: {
65
- type: { summary: "string" },
66
- category: StorybookControlCategory.DEFAULT
67
- }
68
- } },
69
- autoComplete: { autoComplete: {
70
- control: "boolean",
71
- description: "HTML autocomplete attribute value",
72
- table: {
73
- type: { summary: "boolean" },
74
- category: StorybookControlCategory.DEFAULT
75
- }
76
- } },
77
- spellCheck: { spellCheck: {
78
- control: "boolean",
79
- description: "Whether to enable browser spell checking",
80
- table: {
81
- type: { summary: "boolean" },
82
- defaultValue: { summary: "false" },
83
- category: StorybookControlCategory.DEFAULT
84
- }
85
- } },
86
- validators: { validators: {
87
- control: "object",
88
- description: "Custom validator function",
89
- table: {
90
- type: { summary: "function | function[]" },
91
- category: StorybookControlCategory.VALIDATION,
92
- readonly: true
93
- }
94
- } },
95
- showErrorOnBlur: { showErrorOnBlur: {
96
- control: "boolean",
97
- description: "Whether to validate the field on blur",
98
- table: {
99
- type: { summary: "boolean" },
100
- defaultValue: { summary: "false" },
101
- category: StorybookControlCategory.VALIDATION
102
- }
103
- } },
104
- showErrorOnChange: { showErrorOnChange: {
105
- control: "boolean",
106
- description: "Whether to validate the field on change",
107
- table: {
108
- type: { summary: "boolean" },
109
- defaultValue: { summary: "false" },
110
- category: StorybookControlCategory.VALIDATION
111
- }
112
- } },
113
- required: { required: {
114
- control: "boolean",
115
- description: "Whether the field is required",
116
- table: {
117
- type: { summary: "boolean" },
118
- category: StorybookControlCategory.VALIDATION
119
- }
120
- } },
121
- errors: { errors: {
122
- control: "object",
123
- description: "Array of custom error messages. These errors are going to be added to the internal validation errors if there's any.",
124
- table: {
125
- type: { summary: "string[]" },
126
- category: StorybookControlCategory.VALIDATION
127
- }
128
- } },
129
- warnings: { warnings: {
130
- control: "object",
131
- description: "Array of custom warning messages",
132
- table: {
133
- type: { summary: "string[]" },
134
- category: StorybookControlCategory.VALIDATION
135
- }
136
- } },
137
- minLength: { minLength: {
138
- control: "number",
139
- description: "Minimum number of characters allowed",
140
- table: {
141
- type: { summary: "number" },
142
- category: StorybookControlCategory.VALIDATION
143
- }
144
- } },
145
- maxLength: { maxLength: {
146
- control: "number",
147
- description: "Maximum number of characters allowed",
148
- table: {
149
- type: { summary: "number" },
150
- category: StorybookControlCategory.VALIDATION
151
- }
152
- } },
153
- minValue: { minValue: {
154
- control: "number",
155
- description: "Minimum number allowed",
156
- table: {
157
- type: { summary: "number" },
158
- category: StorybookControlCategory.VALIDATION
159
- }
160
- } },
161
- maxValue: { maxValue: {
162
- control: "number",
163
- description: "Maximum number allowed",
164
- table: {
165
- type: { summary: "number" },
166
- category: StorybookControlCategory.VALIDATION
167
- }
168
- } },
169
- pattern: { pattern: {
170
- control: "text",
171
- description: "Regular expression pattern to validate input",
172
- table: {
173
- type: { summary: "string" },
174
- category: StorybookControlCategory.VALIDATION
175
- }
176
- } },
177
- trim: { trim: {
178
- control: "boolean",
179
- description: "Whether to trim whitespace from input",
180
- table: {
181
- type: { summary: "boolean" },
182
- defaultValue: { summary: "false" },
183
- category: StorybookControlCategory.COMPONENT_SPECIFIC
184
- }
185
- } },
186
- uppercase: { uppercase: {
187
- control: "boolean",
188
- description: "Whether to transform input to uppercase",
189
- table: {
190
- type: { summary: "boolean" },
191
- defaultValue: { summary: "false" },
192
- category: StorybookControlCategory.COMPONENT_SPECIFIC
193
- }
194
- } },
195
- lowercase: { lowercase: {
196
- control: "boolean",
197
- description: "Whether to transform input to lowercase",
198
- table: {
199
- type: { summary: "boolean" },
200
- defaultValue: { summary: "false" },
201
- category: StorybookControlCategory.COMPONENT_SPECIFIC
202
- }
203
- } },
204
- precision: { precision: {
205
- control: "number",
206
- description: "Number of decimal places allowedd",
207
- table: {
208
- type: { summary: "number" },
209
- category: StorybookControlCategory.VALIDATION
210
- }
211
- } },
212
- trailingZeros: { trailingZeros: {
213
- control: "boolean",
214
- description: "When precision is set, for example to 2, determines if the the trailing zeros should be preserved ( for example: 25.00,7.50, etc.) or not ( for example: 25, 7.5).",
215
- table: {
216
- type: { summary: "boolean" },
217
- category: StorybookControlCategory.VALIDATION
218
- }
219
- } },
220
- viewMode: { viewMode: {
221
- control: "select",
222
- description: "The mode of the input field",
223
- options: [
224
- "edition",
225
- "addition",
226
- "removal",
227
- "mixed"
228
- ],
229
- table: {
230
- type: { summary: "edition | addition | removal | mixed" },
231
- defaultValue: { summary: "edition" },
232
- category: StorybookControlCategory.DIFF
233
- }
234
- } },
235
- diffMode: { diffMode: {
236
- control: "select",
237
- description: "The mode of the input field",
238
- options: ["words", "sentences"],
239
- table: {
240
- type: { summary: "words | sentences" },
241
- category: StorybookControlCategory.DIFF
242
- }
243
- } },
244
- baseValue: { baseValue: {
245
- control: "text",
246
- description: "The base value of the input field",
247
- table: {
248
- type: { summary: "string" },
249
- category: StorybookControlCategory.DIFF
250
- }
251
- } }
252
- };
253
- function getDefaultArgTypes(options = {
254
- enabledArgTypes: {},
255
- valueControlType: "text",
256
- valueType: "string"
257
- }) {
258
- const argTypes = options.enabledArgTypes ?? {};
259
- const valueControlType = options.valueControlType ?? "text";
260
- const valueType = options.valueType ?? "string";
261
- return {
262
- ...argTypes.id !== false && PrebuiltArgTypes.id,
263
- ...argTypes.name !== false && PrebuiltArgTypes.name,
264
- ...argTypes.label !== false && PrebuiltArgTypes.label,
265
- ...argTypes.description !== false && PrebuiltArgTypes.description,
266
- ...argTypes.value !== false && { value: {
267
- control: valueControlType,
268
- description: "Current value of the input field",
269
- table: {
270
- type: { summary: valueType },
271
- category: StorybookControlCategory.DEFAULT
272
- }
273
- } },
274
- ...argTypes.defaultValue !== false && { defaultValue: {
275
- control: valueControlType,
276
- description: "Default value for the input field",
277
- table: {
278
- type: { summary: valueType },
279
- category: StorybookControlCategory.DEFAULT
280
- }
281
- } },
282
- ...argTypes.disabled !== false && PrebuiltArgTypes.disabled,
283
- ...argTypes.className !== false && PrebuiltArgTypes.className
284
- };
285
- }
286
- function getValidationArgTypes(options = { enabledArgTypes: {} }) {
287
- const argTypes = options.enabledArgTypes ?? {};
288
- return {
289
- ...argTypes.validators !== false && PrebuiltArgTypes.validators,
290
- ...argTypes.showErrorOnBlur !== false && PrebuiltArgTypes.showErrorOnBlur,
291
- ...argTypes.showErrorOnChange !== false && PrebuiltArgTypes.showErrorOnChange,
292
- ...argTypes.required !== false && PrebuiltArgTypes.required,
293
- ...argTypes.errors !== false && PrebuiltArgTypes.errors,
294
- ...argTypes.warnings !== false && PrebuiltArgTypes.warnings
295
- };
296
- }
297
- //#endregion
298
- export { PrebuiltArgTypes, StorybookControlCategory, getDefaultArgTypes, getValidationArgTypes };
299
-
300
- //# sourceMappingURL=storybook-arg-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storybook-arg-types.js","names":[],"sources":["../../../src/ui/components/storybook-arg-types.tsx"],"sourcesContent":["import type { Control } from \"@storybook/blocks\";\nimport type { ArgTypes } from \"@storybook/react\";\n\nexport enum StorybookControlCategory {\n DEFAULT = \"Default\",\n COMPONENT_SPECIFIC = \"Component-specific\",\n VALIDATION = \"Validation\",\n DIFF = \"Differences\",\n}\n\nexport const PrebuiltArgTypes = {\n // default\n id: {\n id: {\n control: \"text\",\n description: \"Unique identifier for the component\",\n table: {\n type: { summary: \"string\" },\n defaultValue: { summary: \"auto-generated\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n name: {\n name: {\n control: \"text\",\n description: \"Name attribute for the component\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DEFAULT,\n readonly: true,\n },\n },\n },\n label: {\n label: {\n control: \"text\",\n description: \"Sets the visible label text for the input field\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n description: {\n description: {\n control: \"text\",\n description: \"Helper text displayed below the input field\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n disabled: {\n disabled: {\n control: \"boolean\",\n description: \"Whether the component is disabled\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n className: {\n className: {\n control: \"text\",\n description: \"Additional CSS classes to apply to the component\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n placeholder: {\n placeholder: {\n control: \"text\",\n description: \"Placeholder text shown when field is empty\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n autoComplete: {\n autoComplete: {\n control: \"boolean\",\n description: \"HTML autocomplete attribute value\",\n table: {\n type: { summary: \"boolean\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n spellCheck: {\n spellCheck: {\n control: \"boolean\",\n description: \"Whether to enable browser spell checking\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n },\n\n // validation\n validators: {\n validators: {\n control: \"object\",\n description: \"Custom validator function\",\n table: {\n type: { summary: \"function | function[]\" },\n category: StorybookControlCategory.VALIDATION,\n readonly: true,\n },\n },\n },\n showErrorOnBlur: {\n showErrorOnBlur: {\n control: \"boolean\",\n description: \"Whether to validate the field on blur\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n showErrorOnChange: {\n showErrorOnChange: {\n control: \"boolean\",\n description: \"Whether to validate the field on change\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n required: {\n required: {\n control: \"boolean\",\n description: \"Whether the field is required\",\n table: {\n type: { summary: \"boolean\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n errors: {\n errors: {\n control: \"object\",\n description:\n \"Array of custom error messages. These errors are going to be added to the internal validation errors if there's any.\",\n table: {\n type: { summary: \"string[]\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n warnings: {\n warnings: {\n control: \"object\",\n description: \"Array of custom warning messages\",\n table: {\n type: { summary: \"string[]\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n minLength: {\n minLength: {\n control: \"number\",\n description: \"Minimum number of characters allowed\",\n table: {\n type: { summary: \"number\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n maxLength: {\n maxLength: {\n control: \"number\",\n description: \"Maximum number of characters allowed\",\n table: {\n type: { summary: \"number\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n minValue: {\n minValue: {\n control: \"number\",\n description: \"Minimum number allowed\",\n table: {\n type: { summary: \"number\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n maxValue: {\n maxValue: {\n control: \"number\",\n description: \"Maximum number allowed\",\n table: {\n type: { summary: \"number\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n pattern: {\n pattern: {\n control: \"text\",\n description: \"Regular expression pattern to validate input\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n\n // component-specific\n trim: {\n trim: {\n control: \"boolean\",\n description: \"Whether to trim whitespace from input\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.COMPONENT_SPECIFIC,\n },\n },\n },\n uppercase: {\n uppercase: {\n control: \"boolean\",\n description: \"Whether to transform input to uppercase\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.COMPONENT_SPECIFIC,\n },\n },\n },\n lowercase: {\n lowercase: {\n control: \"boolean\",\n description: \"Whether to transform input to lowercase\",\n table: {\n type: { summary: \"boolean\" },\n defaultValue: { summary: \"false\" },\n category: StorybookControlCategory.COMPONENT_SPECIFIC,\n },\n },\n },\n precision: {\n precision: {\n control: \"number\",\n description: \"Number of decimal places allowedd\",\n table: {\n type: { summary: \"number\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n trailingZeros: {\n trailingZeros: {\n control: \"boolean\",\n description:\n \"When precision is set, for example to 2, determines if the the trailing zeros should be preserved ( for example: 25.00,7.50, etc.) or not ( for example: 25, 7.5).\",\n table: {\n type: { summary: \"boolean\" },\n category: StorybookControlCategory.VALIDATION,\n },\n },\n },\n\n viewMode: {\n viewMode: {\n control: \"select\",\n description: \"The mode of the input field\",\n options: [\"edition\", \"addition\", \"removal\", \"mixed\"],\n table: {\n type: { summary: \"edition | addition | removal | mixed\" },\n defaultValue: { summary: \"edition\" },\n category: StorybookControlCategory.DIFF,\n },\n },\n },\n diffMode: {\n diffMode: {\n control: \"select\",\n description: \"The mode of the input field\",\n options: [\"words\", \"sentences\"],\n table: {\n type: { summary: \"words | sentences\" },\n category: StorybookControlCategory.DIFF,\n },\n },\n },\n baseValue: {\n baseValue: {\n control: \"text\",\n description: \"The base value of the input field\",\n table: {\n type: { summary: \"string\" },\n category: StorybookControlCategory.DIFF,\n },\n },\n },\n} satisfies Record<string, ArgTypes>;\n\nexport interface DefaultArgTypesOptions {\n enabledArgTypes?: {\n id?: boolean;\n name?: boolean;\n label?: boolean;\n description?: boolean;\n value?: boolean;\n defaultValue?: boolean;\n disabled?: boolean;\n className?: boolean;\n };\n valueControlType?: Control;\n valueType?: string;\n}\n\nexport function getDefaultArgTypes(\n options: DefaultArgTypesOptions = {\n enabledArgTypes: {},\n valueControlType: \"text\",\n valueType: \"string\",\n },\n): ArgTypes {\n const argTypes = options.enabledArgTypes ?? {};\n const valueControlType = options.valueControlType ?? \"text\";\n const valueType = options.valueType ?? \"string\";\n\n return {\n ...(argTypes.id !== false && PrebuiltArgTypes.id),\n ...(argTypes.name !== false && PrebuiltArgTypes.name),\n ...(argTypes.label !== false && PrebuiltArgTypes.label),\n ...(argTypes.description !== false && PrebuiltArgTypes.description),\n ...(argTypes.value !== false && {\n value: {\n control: valueControlType,\n description: \"Current value of the input field\",\n table: {\n type: { summary: valueType },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n }),\n ...(argTypes.defaultValue !== false && {\n defaultValue: {\n control: valueControlType,\n description: \"Default value for the input field\",\n table: {\n type: { summary: valueType },\n category: StorybookControlCategory.DEFAULT,\n },\n },\n }),\n ...(argTypes.disabled !== false && PrebuiltArgTypes.disabled),\n ...(argTypes.className !== false && PrebuiltArgTypes.className),\n } satisfies ArgTypes;\n}\n\nexport interface ValidationArgTypesOptions {\n enabledArgTypes?: {\n validators?: boolean;\n showErrorOnBlur?: boolean;\n showErrorOnChange?: boolean;\n required?: boolean;\n errors?: boolean;\n warnings?: boolean;\n };\n}\n\nexport function getValidationArgTypes(\n options: ValidationArgTypesOptions = {\n enabledArgTypes: {},\n },\n): ArgTypes {\n const argTypes = options.enabledArgTypes ?? {};\n\n return {\n ...(argTypes.validators !== false && PrebuiltArgTypes.validators),\n ...(argTypes.showErrorOnBlur !== false && PrebuiltArgTypes.showErrorOnBlur),\n ...(argTypes.showErrorOnChange !== false &&\n PrebuiltArgTypes.showErrorOnChange),\n ...(argTypes.required !== false && PrebuiltArgTypes.required),\n ...(argTypes.errors !== false && PrebuiltArgTypes.errors),\n ...(argTypes.warnings !== false && PrebuiltArgTypes.warnings),\n } satisfies ArgTypes;\n}\n"],"mappings":";AAGA,IAAY,2BAAL,yBAAA,0BAAA;AACL,0BAAA,aAAA;AACA,0BAAA,wBAAA;AACA,0BAAA,gBAAA;AACA,0BAAA,UAAA;;KACD;AAED,MAAa,mBAAmB;CAE9B,IAAI,EACF,IAAI;EACF,SAAS;EACT,aAAa;EACb,OAAO;GACL,MAAM,EAAE,SAAS,UAAU;GAC3B,cAAc,EAAE,SAAS,kBAAkB;GAC3C,UAAU,yBAAyB;GACpC;EACF,EACF;CACD,MAAM,EACJ,MAAM;EACJ,SAAS;EACT,aAAa;EACb,OAAO;GACL,MAAM,EAAE,SAAS,UAAU;GAC3B,UAAU,yBAAyB;GACnC,UAAU;GACX;EACF,EACF;CACD,OAAO,EACL,OAAO;EACL,SAAS;EACT,aAAa;EACb,OAAO;GACL,MAAM,EAAE,SAAS,UAAU;GAC3B,UAAU,yBAAyB;GACpC;EACF,EACF;CACD,aAAa,EACX,aAAa;EACX,SAAS;EACT,aAAa;EACb,OAAO;GACL,MAAM,EAAE,SAAS,UAAU;GAC3B,UAAU,yBAAyB;GACpC;EACF,EACF;CACD,UAAU,EACR,UAAU;EACR,SAAS;EACT,aAAa;EACb,OAAO;GACL,MAAM,EAAE,SAAS,WAAW;GAC5B,cAAc,EAAE,SAAS,SAAS;GAClC,UAAU,yBAAyB;GACpC;EACF,EACF;CACD,W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IAC5B,UAAU,yBAAyB;IACpC;GACF,EACF;EACD,GAAI,SAAS,aAAa,SAAS,iBAAiB;EACpD,GAAI,SAAS,cAAc,SAAS,iBAAiB;EACtD;;AAcH,SAAgB,sBACd,UAAqC,EACnC,iBAAiB,EAAE,EACpB,EACS;CACV,MAAM,WAAW,QAAQ,mBAAmB,EAAE;AAE9C,QAAO;EACL,GAAI,SAAS,eAAe,SAAS,iBAAiB;EACtD,GAAI,SAAS,oBAAoB,SAAS,iBAAiB;EAC3D,GAAI,SAAS,sBAAsB,SACjC,iBAAiB;EACnB,GAAI,SAAS,aAAa,SAAS,iBAAiB;EACpD,GAAI,SAAS,WAAW,SAAS,iBAAiB;EAClD,GAAI,SAAS,aAAa,SAAS,iBAAiB;EACrD"}
@@ -1,279 +0,0 @@
1
- import * as ReactDOMClient from "react-dom/client";
2
- import { ARIARole } from "aria-query";
3
-
4
- //#region ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/types/matches.d.ts
5
- type MatcherFunction = (content: string, element: Element | null) => boolean;
6
- type Matcher = MatcherFunction | RegExp | number | string;
7
- // Get autocomplete for ARIARole union types, while still supporting another string
8
- // Ref: https://github.com/microsoft/TypeScript/issues/29729#issuecomment-567871939
9
- type ByRoleMatcher = ARIARole | (string & {});
10
- type NormalizerFn = (text: string) => string;
11
- interface MatcherOptions {
12
- exact?: boolean;
13
- /** Use normalizer with getDefaultNormalizer instead */
14
- trim?: boolean;
15
- /** Use normalizer with getDefaultNormalizer instead */
16
- collapseWhitespace?: boolean;
17
- normalizer?: NormalizerFn;
18
- /** suppress suggestions for a specific query */
19
- suggest?: boolean;
20
- }
21
- //#endregion
22
- //#region ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/types/wait-for.d.ts
23
- interface waitForOptions {
24
- container?: HTMLElement;
25
- timeout?: number;
26
- interval?: number;
27
- onTimeout?: (error: Error) => Error;
28
- mutationObserverOptions?: MutationObserverInit;
29
- }
30
- //#endregion
31
- //#region ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/types/query-helpers.d.ts
32
- interface SelectorMatcherOptions extends MatcherOptions {
33
- selector?: string;
34
- ignore?: boolean | string;
35
- }
36
- declare namespace queries_d_exports {
37
- export { AllByBoundAttribute, AllByRole, AllByText, ByRoleOptions, FindAllByBoundAttribute, FindAllByRole, FindAllByText, FindByBoundAttribute, FindByRole, FindByText, GetByBoundAttribute, GetByRole, GetByText, QueryByBoundAttribute, QueryByRole, QueryByText, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, queryAllByAltText, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle };
38
- }
39
- type QueryByBoundAttribute<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: MatcherOptions) => T | null;
40
- type AllByBoundAttribute<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: MatcherOptions) => T[];
41
- type FindAllByBoundAttribute<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: MatcherOptions, waitForElementOptions?: waitForOptions) => Promise<T[]>;
42
- type GetByBoundAttribute<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: MatcherOptions) => T;
43
- type FindByBoundAttribute<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: MatcherOptions, waitForElementOptions?: waitForOptions) => Promise<T>;
44
- type QueryByText<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions) => T | null;
45
- type AllByText<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions) => T[];
46
- type FindAllByText<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions) => Promise<T[]>;
47
- type GetByText<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions) => T;
48
- type FindByText<T extends HTMLElement = HTMLElement> = (container: HTMLElement, id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions) => Promise<T>;
49
- interface ByRoleOptions {
50
- /** suppress suggestions for a specific query */
51
- suggest?: boolean;
52
- /**
53
- * If true includes elements in the query set that are usually excluded from
54
- * the accessibility tree. `role="none"` or `role="presentation"` are included
55
- * in either case.
56
- */
57
- hidden?: boolean;
58
- /**
59
- * If true only includes elements in the query set that are marked as
60
- * selected in the accessibility tree, i.e., `aria-selected="true"`
61
- */
62
- selected?: boolean;
63
- /**
64
- * If true only includes elements in the query set that are marked as
65
- * busy in the accessibility tree, i.e., `aria-busy="true"`
66
- */
67
- busy?: boolean;
68
- /**
69
- * If true only includes elements in the query set that are marked as
70
- * checked in the accessibility tree, i.e., `aria-checked="true"`
71
- */
72
- checked?: boolean;
73
- /**
74
- * If true only includes elements in the query set that are marked as
75
- * pressed in the accessibility tree, i.e., `aria-pressed="true"`
76
- */
77
- pressed?: boolean;
78
- /**
79
- * Filters elements by their `aria-current` state. `true` and `false` match `aria-current="true"` and `aria-current="false"` (as well as a missing `aria-current` attribute) respectively.
80
- */
81
- current?: boolean | string;
82
- /**
83
- * If true only includes elements in the query set that are marked as
84
- * expanded in the accessibility tree, i.e., `aria-expanded="true"`
85
- */
86
- expanded?: boolean;
87
- /**
88
- * Includes elements with the `"heading"` role matching the indicated level,
89
- * either by the semantic HTML heading elements `<h1>-<h6>` or matching
90
- * the `aria-level` attribute.
91
- */
92
- level?: number;
93
- value?: {
94
- now?: number;
95
- min?: number;
96
- max?: number;
97
- text?: Matcher;
98
- };
99
- /**
100
- * Includes every role used in the `role` attribute
101
- * For example *ByRole('progressbar', {queryFallbacks: true})` will find <div role="meter progressbar">`.
102
- */
103
- queryFallbacks?: boolean;
104
- /**
105
- * Only considers elements with the specified accessible name.
106
- */
107
- name?: RegExp | string | ((accessibleName: string, element: Element) => boolean);
108
- /**
109
- * Only considers elements with the specified accessible description.
110
- */
111
- description?: RegExp | string | ((accessibleDescription: string, element: Element) => boolean);
112
- }
113
- type AllByRole<T extends HTMLElement = HTMLElement> = (container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions) => T[];
114
- type GetByRole<T extends HTMLElement = HTMLElement> = (container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions) => T;
115
- type QueryByRole<T extends HTMLElement = HTMLElement> = (container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions) => T | null;
116
- type FindByRole<T extends HTMLElement = HTMLElement> = (container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, waitForElementOptions?: waitForOptions) => Promise<T>;
117
- type FindAllByRole<T extends HTMLElement = HTMLElement> = (container: HTMLElement, role: ByRoleMatcher, options?: ByRoleOptions, waitForElementOptions?: waitForOptions) => Promise<T[]>;
118
- declare function getByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByText<T>>): ReturnType<GetByText<T>>;
119
- declare function getAllByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByText<T>>): ReturnType<AllByText<T>>;
120
- declare function queryByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByText<T>>): ReturnType<QueryByText<T>>;
121
- declare function queryAllByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByText<T>>): ReturnType<AllByText<T>>;
122
- declare function findByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByText<T>>): ReturnType<FindByText<T>>;
123
- declare function findAllByLabelText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByText<T>>): ReturnType<FindAllByText<T>>;
124
- declare function getByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByBoundAttribute<T>>): ReturnType<GetByBoundAttribute<T>>;
125
- declare function getAllByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
126
- declare function queryByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByBoundAttribute<T>>): ReturnType<QueryByBoundAttribute<T>>;
127
- declare function queryAllByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
128
- declare function findByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByBoundAttribute<T>>): ReturnType<FindByBoundAttribute<T>>;
129
- declare function findAllByPlaceholderText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByBoundAttribute<T>>): ReturnType<FindAllByBoundAttribute<T>>;
130
- declare function getByText<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByText<T>>): ReturnType<GetByText<T>>;
131
- declare function getAllByText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByText<T>>): ReturnType<AllByText<T>>;
132
- declare function queryByText<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByText<T>>): ReturnType<QueryByText<T>>;
133
- declare function queryAllByText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByText<T>>): ReturnType<AllByText<T>>;
134
- declare function findByText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByText<T>>): ReturnType<FindByText<T>>;
135
- declare function findAllByText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByText<T>>): ReturnType<FindAllByText<T>>;
136
- declare function getByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByBoundAttribute<T>>): ReturnType<GetByBoundAttribute<T>>;
137
- declare function getAllByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
138
- declare function queryByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByBoundAttribute<T>>): ReturnType<QueryByBoundAttribute<T>>;
139
- declare function queryAllByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
140
- declare function findByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByBoundAttribute<T>>): ReturnType<FindByBoundAttribute<T>>;
141
- declare function findAllByAltText<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByBoundAttribute<T>>): ReturnType<FindAllByBoundAttribute<T>>;
142
- declare function getByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByBoundAttribute<T>>): ReturnType<GetByBoundAttribute<T>>;
143
- declare function getAllByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
144
- declare function queryByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByBoundAttribute<T>>): ReturnType<QueryByBoundAttribute<T>>;
145
- declare function queryAllByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
146
- declare function findByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByBoundAttribute<T>>): ReturnType<FindByBoundAttribute<T>>;
147
- declare function findAllByTitle<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByBoundAttribute<T>>): ReturnType<FindAllByBoundAttribute<T>>;
148
- declare function getByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByBoundAttribute<T>>): ReturnType<GetByBoundAttribute<T>>;
149
- declare function getAllByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
150
- declare function queryByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByBoundAttribute<T>>): ReturnType<QueryByBoundAttribute<T>>;
151
- declare function queryAllByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
152
- declare function findByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByBoundAttribute<T>>): ReturnType<FindByBoundAttribute<T>>;
153
- declare function findAllByDisplayValue<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByBoundAttribute<T>>): ReturnType<FindAllByBoundAttribute<T>>;
154
- declare function getByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByRole<T>>): ReturnType<GetByRole<T>>;
155
- declare function getAllByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByRole<T>>): ReturnType<AllByRole<T>>;
156
- declare function queryByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByRole<T>>): ReturnType<QueryByRole<T>>;
157
- declare function queryAllByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByRole<T>>): ReturnType<AllByRole<T>>;
158
- declare function findByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByRole<T>>): ReturnType<FindByRole<T>>;
159
- declare function findAllByRole<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByRole<T>>): ReturnType<FindAllByRole<T>>;
160
- declare function getByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<GetByBoundAttribute<T>>): ReturnType<GetByBoundAttribute<T>>;
161
- declare function getAllByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
162
- declare function queryByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<QueryByBoundAttribute<T>>): ReturnType<QueryByBoundAttribute<T>>;
163
- declare function queryAllByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<AllByBoundAttribute<T>>): ReturnType<AllByBoundAttribute<T>>;
164
- declare function findByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<FindByBoundAttribute<T>>): ReturnType<FindByBoundAttribute<T>>;
165
- declare function findAllByTestId<T extends HTMLElement = HTMLElement>(...args: Parameters<FindAllByBoundAttribute<T>>): ReturnType<FindAllByBoundAttribute<T>>;
166
- //#endregion
167
- //#region ../../node_modules/.pnpm/@testing-library+dom@10.4.1/node_modules/@testing-library/dom/types/get-queries-for-element.d.ts
168
- type BoundFunction<T> = T extends ((container: HTMLElement, ...args: infer P) => infer R) ? (...args: P) => R : never;
169
- type Query = (container: HTMLElement, ...args: any[]) => Error | HTMLElement | HTMLElement[] | Promise<HTMLElement[]> | Promise<HTMLElement> | null;
170
- interface Queries {
171
- [T: string]: Query;
172
- }
173
- //#endregion
174
- //#region ../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts
175
- /**
176
- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
177
- *
178
- * This source code is licensed under the MIT license found in the
179
- * LICENSE file in the root directory of this source tree.
180
- */
181
- declare type Colors = {
182
- comment: {
183
- close: string;
184
- open: string;
185
- };
186
- content: {
187
- close: string;
188
- open: string;
189
- };
190
- prop: {
191
- close: string;
192
- open: string;
193
- };
194
- tag: {
195
- close: string;
196
- open: string;
197
- };
198
- value: {
199
- close: string;
200
- open: string;
201
- };
202
- };
203
- declare type Indent = (arg0: string) => string;
204
- declare type Refs = Array<unknown>;
205
- declare type Print = (arg0: unknown) => string;
206
- declare type ThemeReceived = {
207
- comment?: string;
208
- content?: string;
209
- prop?: string;
210
- tag?: string;
211
- value?: string;
212
- };
213
- declare type CompareKeys = ((a: string, b: string) => number) | undefined;
214
- interface PrettyFormatOptions {
215
- callToJSON?: boolean;
216
- compareKeys?: CompareKeys;
217
- escapeRegex?: boolean;
218
- escapeString?: boolean;
219
- highlight?: boolean;
220
- indent?: number;
221
- maxDepth?: number;
222
- min?: boolean;
223
- plugins?: Plugins;
224
- printBasicPrototype?: boolean;
225
- printFunctionName?: boolean;
226
- theme?: ThemeReceived;
227
- }
228
- declare type OptionsReceived = PrettyFormatOptions;
229
- declare type Config = {
230
- callToJSON: boolean;
231
- compareKeys: CompareKeys;
232
- colors: Colors;
233
- escapeRegex: boolean;
234
- escapeString: boolean;
235
- indent: string;
236
- maxDepth: number;
237
- min: boolean;
238
- plugins: Plugins;
239
- printBasicPrototype: boolean;
240
- printFunctionName: boolean;
241
- spacingInner: string;
242
- spacingOuter: string;
243
- };
244
- declare type Printer = (val: unknown, config: Config, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string;
245
- declare type Test = (arg0: any) => boolean;
246
- declare type NewPlugin = {
247
- serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string;
248
- test: Test;
249
- };
250
- declare type PluginOptions = {
251
- edgeSpacing: string;
252
- min: boolean;
253
- spacing: string;
254
- };
255
- declare type OldPlugin = {
256
- print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string;
257
- test: Test;
258
- };
259
- declare type Plugin = NewPlugin | OldPlugin;
260
- declare type Plugins = Array<Plugin>;
261
- //#endregion
262
- //#region ../../node_modules/.pnpm/@testing-library+react@16.3.2_@testing-library+dom@10.4.1_@types+react-dom@19.2.3_@type_893f466751a7d66081fd06e9edb9241a/node_modules/@testing-library/react/types/index.d.ts
263
- type RenderResult<Q extends Queries = typeof queries_d_exports, Container extends RendererableContainer | HydrateableContainer = HTMLElement, BaseElement extends RendererableContainer | HydrateableContainer = Container> = {
264
- container: Container;
265
- baseElement: BaseElement;
266
- debug: (baseElement?: RendererableContainer | HydrateableContainer | Array<RendererableContainer | HydrateableContainer> | undefined, maxLength?: number | undefined, options?: OptionsReceived | undefined) => void;
267
- rerender: (ui: React.ReactNode) => void;
268
- unmount: () => void;
269
- asFragment: () => DocumentFragment;
270
- } & { [P in keyof Q]: BoundFunction<Q[P]> };
271
- type RendererableContainer = ReactDOMClient.Container;
272
- type HydrateableContainer = Parameters<typeof ReactDOMClient['hydrateRoot']>[0];
273
- /** @deprecated */
274
- //#endregion
275
- //#region src/ui/components/testing.d.ts
276
- declare const renderWithForm: (children: React.ReactNode, onSubmit?: () => void) => RenderResult;
277
- //#endregion
278
- export { renderWithForm };
279
- //# sourceMappingURL=testing.d.ts.map