@digigov/react-core 2.0.0-2445d5cb → 2.0.0-36b707c1

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 (403) hide show
  1. package/Base/compat/Input/CheckboxInput.native/index.js +33 -0
  2. package/Base/compat/Input/CheckboxInput.native/package.json +6 -0
  3. package/Base/compat/Input/CheckboxInput.native.d.ts +4 -0
  4. package/Base/compat/Input/CheckboxInput.native.js.map +7 -0
  5. package/Base/compat/Input/RadioInput.native/index.js +32 -0
  6. package/Base/compat/Input/RadioInput.native/package.json +6 -0
  7. package/Base/compat/Input/RadioInput.native.d.ts +4 -0
  8. package/Base/compat/Input/RadioInput.native.js.map +7 -0
  9. package/Base/compat/Input/StringInput.native/index.js +99 -0
  10. package/Base/compat/Input/StringInput.native/package.json +6 -0
  11. package/Base/compat/Input/StringInput.native.d.ts +7 -0
  12. package/Base/compat/Input/StringInput.native.js.map +7 -0
  13. package/Base/compat/Input/index.native/index.js +24 -0
  14. package/Base/compat/Input/index.native/package.json +6 -0
  15. package/Base/compat/Input/index.native.d.ts +7 -0
  16. package/Base/compat/Input/index.native.js.map +7 -0
  17. package/Base/compat/button.native/index.js +48 -0
  18. package/Base/compat/button.native/package.json +6 -0
  19. package/Base/compat/button.native.d.ts +5 -0
  20. package/Base/compat/button.native.js.map +7 -0
  21. package/Base/compat/details.native/index.js +40 -0
  22. package/Base/compat/details.native/package.json +6 -0
  23. package/Base/compat/details.native.d.ts +8 -0
  24. package/Base/compat/details.native.js.map +7 -0
  25. package/Base/compat/li.native/index.js +9 -0
  26. package/Base/compat/li.native/package.json +6 -0
  27. package/Base/compat/li.native.d.ts +6 -0
  28. package/Base/compat/li.native.js.map +7 -0
  29. package/Base/compat/ol.native/index.js +33 -0
  30. package/Base/compat/ol.native/package.json +6 -0
  31. package/Base/compat/ol.native.d.ts +6 -0
  32. package/Base/compat/ol.native.js.map +7 -0
  33. package/Base/index.d.ts +2 -95
  34. package/Base/index.js +3 -98
  35. package/Base/index.js.map +3 -3
  36. package/Base/index.native/index.js +160 -0
  37. package/Base/index.native/package.json +6 -0
  38. package/Base/index.native.d.ts +7 -0
  39. package/Base/index.native.js.map +7 -0
  40. package/Base/index.web/index.js +104 -0
  41. package/Base/index.web/package.json +6 -0
  42. package/Base/index.web.d.ts +104 -0
  43. package/Base/index.web.js.map +7 -0
  44. package/Base/mapping.native/index.js +34 -0
  45. package/Base/mapping.native/package.json +6 -0
  46. package/Base/mapping.native.d.ts +6 -0
  47. package/Base/mapping.native.js.map +7 -0
  48. package/Base/utils/index.js +94 -0
  49. package/Base/utils/package.json +6 -0
  50. package/Base/utils.d.ts +41 -0
  51. package/Base/utils.js.map +7 -0
  52. package/Base/wrap.native/index.js +64 -0
  53. package/Base/wrap.native/package.json +6 -0
  54. package/Base/wrap.native.d.ts +2 -0
  55. package/Base/wrap.native.js.map +7 -0
  56. package/CallToAction/index.js +1 -1
  57. package/CallToAction/index.js.map +2 -2
  58. package/Card/index.js +2 -1
  59. package/Card/index.js.map +2 -2
  60. package/CheckboxItem/index.js +4 -16
  61. package/CheckboxItem/index.js.map +2 -2
  62. package/CheckboxItemInput/index.d.ts +2 -0
  63. package/CheckboxItemInput/index.js +6 -0
  64. package/CheckboxItemInput/index.js.map +7 -0
  65. package/CheckboxItemInput/index.native/index.js +20 -0
  66. package/CheckboxItemInput/index.native/package.json +6 -0
  67. package/CheckboxItemInput/index.native.d.ts +4 -0
  68. package/CheckboxItemInput/index.native.js.map +7 -0
  69. package/CheckboxItemInput/index.web/index.js +26 -0
  70. package/CheckboxItemInput/index.web/package.json +6 -0
  71. package/CheckboxItemInput/index.web.d.ts +10 -0
  72. package/CheckboxItemInput/index.web.js.map +7 -0
  73. package/CheckboxItemInput/package.json +6 -0
  74. package/Chip/index.js +2 -1
  75. package/Chip/index.js.map +2 -2
  76. package/CodeBlockContainer/index.d.ts +1 -1
  77. package/CodeBlockContainer/index.js.map +1 -1
  78. package/CodeBlockContent/index.d.ts +1 -1
  79. package/CodeBlockContent/index.js +3 -2
  80. package/CodeBlockContent/index.js.map +2 -2
  81. package/CodeBlockHeader/index.d.ts +1 -1
  82. package/CodeBlockHeader/index.js +1 -3
  83. package/CodeBlockHeader/index.js.map +2 -2
  84. package/CopyToClipboardContainer/index.d.ts +2 -31
  85. package/CopyToClipboardContainer/index.js +3 -40
  86. package/CopyToClipboardContainer/index.js.map +3 -3
  87. package/CopyToClipboardContainer/index.web/index.js +44 -0
  88. package/CopyToClipboardContainer/index.web/package.json +6 -0
  89. package/CopyToClipboardContainer/index.web.d.ts +31 -0
  90. package/CopyToClipboardContainer/index.web.js.map +7 -0
  91. package/CopyToClipboardMessage/index.d.ts +2 -18
  92. package/CopyToClipboardMessage/index.js +3 -21
  93. package/CopyToClipboardMessage/index.js.map +3 -3
  94. package/CopyToClipboardMessage/index.native/index.js +18 -0
  95. package/CopyToClipboardMessage/index.native/package.json +6 -0
  96. package/CopyToClipboardMessage/index.native.d.ts +6 -0
  97. package/CopyToClipboardMessage/index.native.js.map +7 -0
  98. package/CopyToClipboardMessage/index.web/index.js +24 -0
  99. package/CopyToClipboardMessage/index.web/package.json +6 -0
  100. package/CopyToClipboardMessage/index.web.d.ts +18 -0
  101. package/CopyToClipboardMessage/index.web.js.map +7 -0
  102. package/DateInputItem/index.d.ts +2 -26
  103. package/DateInputItem/index.js +3 -41
  104. package/DateInputItem/index.js.map +3 -3
  105. package/DateInputItem/index.native/index.js +17 -0
  106. package/DateInputItem/index.native/package.json +6 -0
  107. package/DateInputItem/index.native.d.ts +4 -0
  108. package/DateInputItem/index.native.js.map +7 -0
  109. package/DateInputItem/index.web/index.js +32 -0
  110. package/DateInputItem/index.web/package.json +6 -0
  111. package/DateInputItem/index.web.d.ts +26 -0
  112. package/DateInputItem/index.web.js.map +7 -0
  113. package/Details/index.d.ts +2 -10
  114. package/Details/index.js +3 -22
  115. package/Details/index.js.map +3 -3
  116. package/Details/index.native/index.js +17 -0
  117. package/Details/index.native/package.json +6 -0
  118. package/Details/index.native.d.ts +4 -0
  119. package/Details/index.native.js.map +7 -0
  120. package/Details/index.web/index.js +25 -0
  121. package/Details/index.web/package.json +6 -0
  122. package/Details/index.web.d.ts +10 -0
  123. package/Details/index.web.js.map +7 -0
  124. package/FieldsetLegend/index.js +1 -4
  125. package/FieldsetLegend/index.js.map +2 -2
  126. package/LabelTitle/index.js +2 -4
  127. package/LabelTitle/index.js.map +2 -2
  128. package/ModalContainer/index.js +1 -7
  129. package/ModalContainer/index.js.map +2 -2
  130. package/NavListItemActionContainer/index.d.ts +2 -10
  131. package/NavListItemActionContainer/index.js +3 -20
  132. package/NavListItemActionContainer/index.js.map +3 -3
  133. package/NavListItemActionContainer/index.native/index.js +17 -0
  134. package/NavListItemActionContainer/index.native/package.json +6 -0
  135. package/NavListItemActionContainer/index.native.d.ts +7 -0
  136. package/NavListItemActionContainer/index.native.js.map +7 -0
  137. package/NavListItemActionContainer/index.web/index.js +23 -0
  138. package/NavListItemActionContainer/index.web/package.json +6 -0
  139. package/NavListItemActionContainer/index.web.d.ts +10 -0
  140. package/NavListItemActionContainer/index.web.js.map +7 -0
  141. package/NotificationBannerLink/index.d.ts +2 -11
  142. package/NotificationBannerLink/index.js +3 -19
  143. package/NotificationBannerLink/index.js.map +3 -3
  144. package/NotificationBannerLink/index.native/index.js +16 -0
  145. package/NotificationBannerLink/index.native/package.json +6 -0
  146. package/NotificationBannerLink/index.native.d.ts +8 -0
  147. package/NotificationBannerLink/index.native.js.map +7 -0
  148. package/NotificationBannerLink/index.web/index.js +22 -0
  149. package/NotificationBannerLink/index.web/package.json +6 -0
  150. package/NotificationBannerLink/index.web.d.ts +11 -0
  151. package/NotificationBannerLink/index.web.js.map +7 -0
  152. package/PhaseBanner/index.js +2 -1
  153. package/PhaseBanner/index.js.map +2 -2
  154. package/PhaseBannerTag/index.d.ts +2 -2
  155. package/PhaseBannerTag/index.js +1 -1
  156. package/PhaseBannerTag/index.js.map +1 -1
  157. package/PhaseBannerText/index.js +1 -1
  158. package/PhaseBannerText/index.js.map +2 -2
  159. package/RadioItem/index.js +2 -1
  160. package/RadioItem/index.js.map +2 -2
  161. package/Stack/index.d.ts +9 -1
  162. package/Stack/index.js +6 -1
  163. package/Stack/index.js.map +2 -2
  164. package/SummaryList/index.d.ts +1 -1
  165. package/SummaryList/index.js.map +2 -2
  166. package/SummaryListItemKey/index.d.ts +14 -0
  167. package/SummaryListItemKey/index.js +5 -2
  168. package/SummaryListItemKey/index.js.map +2 -2
  169. package/TextArea/index.d.ts +2 -24
  170. package/TextArea/index.js +3 -27
  171. package/TextArea/index.js.map +3 -3
  172. package/TextArea/index.native/index.js +16 -0
  173. package/TextArea/index.native/package.json +6 -0
  174. package/TextArea/index.native.d.ts +4 -0
  175. package/TextArea/index.native.js.map +7 -0
  176. package/TextArea/index.web/index.js +30 -0
  177. package/TextArea/index.web/package.json +6 -0
  178. package/TextArea/index.web.d.ts +24 -0
  179. package/TextArea/index.web.js.map +7 -0
  180. package/TextInput/index.d.ts +2 -46
  181. package/TextInput/index.js +3 -40
  182. package/TextInput/index.js.map +3 -3
  183. package/TextInput/index.native/index.js +19 -0
  184. package/TextInput/index.native/package.json +6 -0
  185. package/TextInput/index.native.d.ts +4 -0
  186. package/TextInput/index.native.js.map +7 -0
  187. package/TextInput/index.web/index.js +43 -0
  188. package/TextInput/index.web/package.json +6 -0
  189. package/TextInput/index.web.d.ts +46 -0
  190. package/TextInput/index.web.js.map +7 -0
  191. package/Unpurge/index.js +2458 -1
  192. package/Unpurge/index.js.map +2 -2
  193. package/WarningText/index.js +7 -12
  194. package/WarningText/index.js.map +2 -2
  195. package/WarningTextAssistive/index.d.ts +15 -0
  196. package/WarningTextAssistive/index.js +23 -0
  197. package/WarningTextAssistive/index.js.map +7 -0
  198. package/WarningTextAssistive/package.json +6 -0
  199. package/cjs/Base/compat/Input/CheckboxInput.native/index.js +66 -0
  200. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +7 -0
  201. package/cjs/Base/compat/Input/RadioInput.native/index.js +65 -0
  202. package/cjs/Base/compat/Input/RadioInput.native.js.map +7 -0
  203. package/cjs/Base/compat/Input/StringInput.native/index.js +129 -0
  204. package/cjs/Base/compat/Input/StringInput.native.js.map +7 -0
  205. package/cjs/Base/compat/Input/index.native/index.js +55 -0
  206. package/cjs/Base/compat/Input/index.native.js.map +7 -0
  207. package/cjs/Base/compat/button.native/index.js +81 -0
  208. package/cjs/Base/compat/button.native.js.map +7 -0
  209. package/cjs/Base/compat/details.native/index.js +65 -0
  210. package/cjs/Base/compat/details.native.js.map +7 -0
  211. package/cjs/Base/compat/li.native/index.js +42 -0
  212. package/cjs/Base/compat/li.native.js.map +7 -0
  213. package/cjs/Base/compat/ol.native/index.js +66 -0
  214. package/cjs/Base/compat/ol.native.js.map +7 -0
  215. package/cjs/Base/index.js +5 -99
  216. package/cjs/Base/index.js.map +3 -3
  217. package/cjs/Base/index.native/index.js +193 -0
  218. package/cjs/Base/index.native.js.map +7 -0
  219. package/cjs/Base/index.web/index.js +137 -0
  220. package/cjs/Base/index.web.js.map +7 -0
  221. package/cjs/Base/mapping.native/index.js +67 -0
  222. package/cjs/Base/mapping.native.js.map +7 -0
  223. package/cjs/Base/utils/index.js +127 -0
  224. package/cjs/Base/utils.js.map +7 -0
  225. package/cjs/Base/wrap.native/index.js +97 -0
  226. package/cjs/Base/wrap.native.js.map +7 -0
  227. package/cjs/CallToAction/index.js +1 -1
  228. package/cjs/CallToAction/index.js.map +2 -2
  229. package/cjs/Card/index.js +2 -1
  230. package/cjs/Card/index.js.map +2 -2
  231. package/cjs/CheckboxItem/index.js +4 -16
  232. package/cjs/CheckboxItem/index.js.map +3 -3
  233. package/cjs/CheckboxItemInput/index.js +40 -0
  234. package/cjs/CheckboxItemInput/index.js.map +7 -0
  235. package/cjs/CheckboxItemInput/index.native/index.js +53 -0
  236. package/cjs/CheckboxItemInput/index.native.js.map +7 -0
  237. package/cjs/CheckboxItemInput/index.web/index.js +59 -0
  238. package/cjs/CheckboxItemInput/index.web.js.map +7 -0
  239. package/cjs/Chip/index.js +2 -1
  240. package/cjs/Chip/index.js.map +2 -2
  241. package/cjs/CodeBlockContainer/index.js.map +1 -1
  242. package/cjs/CodeBlockContent/index.js +3 -2
  243. package/cjs/CodeBlockContent/index.js.map +2 -2
  244. package/cjs/CodeBlockHeader/index.js +1 -3
  245. package/cjs/CodeBlockHeader/index.js.map +2 -2
  246. package/cjs/CopyToClipboardContainer/index.js +5 -41
  247. package/cjs/CopyToClipboardContainer/index.js.map +3 -3
  248. package/cjs/CopyToClipboardContainer/index.web/index.js +77 -0
  249. package/cjs/CopyToClipboardContainer/index.web.js.map +7 -0
  250. package/cjs/CopyToClipboardMessage/index.js +5 -22
  251. package/cjs/CopyToClipboardMessage/index.js.map +3 -3
  252. package/cjs/CopyToClipboardMessage/index.native/index.js +51 -0
  253. package/cjs/CopyToClipboardMessage/index.native.js.map +7 -0
  254. package/cjs/CopyToClipboardMessage/index.web/index.js +57 -0
  255. package/cjs/CopyToClipboardMessage/index.web.js.map +7 -0
  256. package/cjs/DateInputItem/index.js +5 -42
  257. package/cjs/DateInputItem/index.js.map +3 -3
  258. package/cjs/DateInputItem/index.native/index.js +50 -0
  259. package/cjs/DateInputItem/index.native.js.map +7 -0
  260. package/cjs/DateInputItem/index.web/index.js +65 -0
  261. package/cjs/DateInputItem/index.web.js.map +7 -0
  262. package/cjs/Details/index.js +5 -23
  263. package/cjs/Details/index.js.map +3 -3
  264. package/cjs/Details/index.native/index.js +50 -0
  265. package/cjs/Details/index.native.js.map +7 -0
  266. package/cjs/Details/index.web/index.js +58 -0
  267. package/cjs/Details/index.web.js.map +7 -0
  268. package/cjs/FieldsetLegend/index.js +1 -4
  269. package/cjs/FieldsetLegend/index.js.map +2 -2
  270. package/cjs/LabelTitle/index.js +2 -4
  271. package/cjs/LabelTitle/index.js.map +2 -2
  272. package/cjs/ModalContainer/index.js +1 -7
  273. package/cjs/ModalContainer/index.js.map +2 -2
  274. package/cjs/NavListItemActionContainer/index.js +5 -21
  275. package/cjs/NavListItemActionContainer/index.js.map +3 -3
  276. package/cjs/NavListItemActionContainer/index.native/index.js +50 -0
  277. package/cjs/NavListItemActionContainer/index.native.js.map +7 -0
  278. package/cjs/NavListItemActionContainer/index.web/index.js +56 -0
  279. package/cjs/NavListItemActionContainer/index.web.js.map +7 -0
  280. package/cjs/NotificationBannerLink/index.js +5 -20
  281. package/cjs/NotificationBannerLink/index.js.map +3 -3
  282. package/cjs/NotificationBannerLink/index.native/index.js +49 -0
  283. package/cjs/NotificationBannerLink/index.native.js.map +7 -0
  284. package/cjs/NotificationBannerLink/index.web/index.js +55 -0
  285. package/cjs/NotificationBannerLink/index.web.js.map +7 -0
  286. package/cjs/PhaseBanner/index.js +2 -1
  287. package/cjs/PhaseBanner/index.js.map +2 -2
  288. package/cjs/PhaseBannerTag/index.js +1 -1
  289. package/cjs/PhaseBannerTag/index.js.map +1 -1
  290. package/cjs/PhaseBannerText/index.js +1 -1
  291. package/cjs/PhaseBannerText/index.js.map +2 -2
  292. package/cjs/RadioItem/index.js +2 -1
  293. package/cjs/RadioItem/index.js.map +3 -3
  294. package/cjs/Stack/index.js +6 -1
  295. package/cjs/Stack/index.js.map +2 -2
  296. package/cjs/SummaryList/index.js.map +2 -2
  297. package/cjs/SummaryListItemKey/index.js +5 -2
  298. package/cjs/SummaryListItemKey/index.js.map +2 -2
  299. package/cjs/TextArea/index.js +5 -28
  300. package/cjs/TextArea/index.js.map +3 -3
  301. package/cjs/TextArea/index.native/index.js +49 -0
  302. package/cjs/TextArea/index.native.js.map +7 -0
  303. package/cjs/TextArea/index.web/index.js +63 -0
  304. package/cjs/TextArea/index.web.js.map +7 -0
  305. package/cjs/TextInput/index.js +5 -41
  306. package/cjs/TextInput/index.js.map +3 -3
  307. package/cjs/TextInput/index.native/index.js +52 -0
  308. package/cjs/TextInput/index.native.js.map +7 -0
  309. package/cjs/TextInput/index.web/index.js +76 -0
  310. package/cjs/TextInput/index.web.js.map +7 -0
  311. package/cjs/Unpurge/index.js +2458 -1
  312. package/cjs/Unpurge/index.js.map +2 -2
  313. package/cjs/WarningText/index.js +7 -12
  314. package/cjs/WarningText/index.js.map +2 -2
  315. package/cjs/WarningTextAssistive/index.js +56 -0
  316. package/cjs/WarningTextAssistive/index.js.map +7 -0
  317. package/cjs/index.js +5 -1
  318. package/cjs/index.js.map +2 -2
  319. package/cjs/lazy/index.js +12 -10
  320. package/cjs/lazy.js.map +2 -2
  321. package/cjs/registry/index.js +27 -1
  322. package/cjs/registry.js.map +2 -2
  323. package/cjs/utils/extend.native/index.js +47 -0
  324. package/cjs/utils/extend.native.js.map +7 -0
  325. package/index.d.ts +2 -0
  326. package/index.js +3 -1
  327. package/index.js.map +2 -2
  328. package/lazy/index.js +12 -10
  329. package/lazy.d.ts +219 -217
  330. package/lazy.js.map +2 -2
  331. package/package.json +21 -4
  332. package/registry/index.js +27 -1
  333. package/registry.d.ts +13 -0
  334. package/registry.js.map +2 -2
  335. package/src/Base/compat/Input/CheckboxInput.native.tsx +40 -0
  336. package/src/Base/compat/Input/RadioInput.native.tsx +39 -0
  337. package/src/Base/compat/Input/StringInput.native.tsx +115 -0
  338. package/src/Base/compat/Input/index.native.tsx +28 -0
  339. package/src/Base/compat/button.native.tsx +53 -0
  340. package/src/Base/compat/details.native.tsx +68 -0
  341. package/src/Base/compat/li.native.tsx +11 -0
  342. package/src/Base/compat/ol.native.tsx +41 -0
  343. package/src/Base/index.native.tsx +185 -0
  344. package/src/Base/index.tsx +2 -257
  345. package/src/Base/index.web.tsx +267 -0
  346. package/src/Base/mapping.native.tsx +41 -0
  347. package/src/Base/utils.ts +95 -0
  348. package/src/Base/wrap.native.tsx +94 -0
  349. package/src/CallToAction/index.tsx +2 -2
  350. package/src/Card/index.tsx +3 -2
  351. package/src/CheckboxItem/index.tsx +4 -14
  352. package/src/CheckboxItemInput/index.native.tsx +17 -0
  353. package/src/CheckboxItemInput/index.tsx +2 -0
  354. package/src/CheckboxItemInput/index.web.tsx +34 -0
  355. package/src/Chip/index.tsx +2 -2
  356. package/src/CodeBlockContainer/index.tsx +1 -1
  357. package/src/CodeBlockContent/index.tsx +5 -4
  358. package/src/CodeBlockHeader/index.tsx +2 -4
  359. package/src/CopyToClipboardContainer/index.tsx +2 -74
  360. package/src/CopyToClipboardContainer/index.web.tsx +75 -0
  361. package/src/CopyToClipboardMessage/index.native.tsx +21 -0
  362. package/src/CopyToClipboardMessage/index.tsx +2 -41
  363. package/src/CopyToClipboardMessage/index.web.tsx +41 -0
  364. package/src/DateInputItem/index.native.tsx +12 -0
  365. package/src/DateInputItem/index.tsx +2 -64
  366. package/src/DateInputItem/index.web.tsx +53 -0
  367. package/src/Details/index.native.tsx +14 -0
  368. package/src/Details/index.tsx +2 -27
  369. package/src/Details/index.web.tsx +27 -0
  370. package/src/FieldsetLegend/index.tsx +1 -4
  371. package/src/LabelTitle/index.tsx +2 -4
  372. package/src/ModalContainer/index.tsx +12 -10
  373. package/src/NavListItemActionContainer/index.native.tsx +18 -0
  374. package/src/NavListItemActionContainer/index.tsx +2 -28
  375. package/src/NavListItemActionContainer/index.web.tsx +28 -0
  376. package/src/NotificationBannerLink/index.native.tsx +22 -0
  377. package/src/NotificationBannerLink/index.tsx +2 -28
  378. package/src/NotificationBannerLink/index.web.tsx +28 -0
  379. package/src/PhaseBanner/index.tsx +2 -2
  380. package/src/PhaseBannerTag/index.tsx +3 -3
  381. package/src/PhaseBannerText/__snapshots__/index.test.tsx.snap +1 -1
  382. package/src/PhaseBannerText/index.tsx +1 -1
  383. package/src/RadioItem/index.tsx +2 -2
  384. package/src/Stack/index.tsx +32 -13
  385. package/src/SummaryList/index.tsx +7 -5
  386. package/src/SummaryListItemKey/index.tsx +24 -2
  387. package/src/TextArea/index.native.tsx +11 -0
  388. package/src/TextArea/index.tsx +2 -50
  389. package/src/TextArea/index.web.tsx +50 -0
  390. package/src/TextInput/index.native.tsx +15 -0
  391. package/src/TextInput/index.tsx +2 -87
  392. package/src/TextInput/index.web.tsx +87 -0
  393. package/src/Unpurge/index.tsx +2460 -2
  394. package/src/WarningText/index.tsx +12 -15
  395. package/src/WarningTextAssistive/index.tsx +37 -0
  396. package/src/index.ts +2 -0
  397. package/src/lazy.js +12 -10
  398. package/src/registry.js +28 -2
  399. package/src/utils/extend.native.tsx +36 -0
  400. package/utils/extend.native/index.js +14 -0
  401. package/utils/extend.native/package.json +6 -0
  402. package/utils/extend.native.d.ts +23 -0
  403. package/utils/extend.native.js.map +7 -0
@@ -47,8 +47,9 @@ const RadioItem = import_react.default.forwardRef(
47
47
  ...props
48
48
  }, ref) {
49
49
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, dividerText && /* @__PURE__ */ import_react.default.createElement(import_ChoiceDividerText.default, null, dividerText), /* @__PURE__ */ import_react.default.createElement(
50
- "div",
50
+ import_Base.default,
51
51
  {
52
+ as: "div",
52
53
  className: (0, import_clsx.default)(className, {
53
54
  "ds-radios__item": true
54
55
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/RadioItem/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';\nimport LabelContainer from '@digigov/react-core/LabelContainer';\n\nexport interface RadioItemProps extends BaseProps<'input'> {\n /**\n * dividerText is optional.\n * Add this prop to add a choice dividerText on top of a radio item.\n * The string is the text that it will appear above this radio item.\n */\n dividerText?: string;\n}\n/**\n * RadioItem component is used for display radio buttons.\n * RadioItem component must be included inside Radio component, as a children component.\n */\nexport const RadioItem = React.forwardRef<HTMLInputElement, RadioItemProps>(\n function RadioItem(\n {\n dividerText,\n name,\n value,\n className,\n disabled = false,\n children,\n ...props\n },\n ref\n ) {\n return (\n <>\n {dividerText && <ChoiceDividerText>{dividerText}</ChoiceDividerText>}\n <div\n className={clsx(className, {\n 'ds-radios__item': true,\n })}\n >\n <LabelContainer\n className={clsx({\n 'ds-radios__label': true,\n 'ds-radios__label--disabled': disabled,\n })}\n >\n {children}\n <Base\n as=\"input\"\n ref={ref}\n type=\"radio\"\n name={name}\n value={value}\n className={clsx({\n 'ds-radios__input': true,\n })}\n disabled={disabled}\n {...props}\n />\n </LabelContainer>\n </div>\n </>\n );\n }\n);\n\nexport default RadioItem;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAChC,+BAA8B;AAC9B,4BAA2B;AAcpB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WACP;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA,2BAAAA,QAAA,gBACG,eAAe,6BAAAA,QAAA,cAAC,yBAAAE,SAAA,MAAmB,WAAY,GAChD,6BAAAF,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,YAAAG,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,QACrB,CAAC;AAAA;AAAA,MAED,6BAAAH,QAAA;AAAA,QAAC,sBAAAI;AAAA,QAAA;AAAA,UACC,eAAW,YAAAD,SAAK;AAAA,YACd,oBAAoB;AAAA,YACpB,8BAA8B;AAAA,UAChC,CAAC;AAAA;AAAA,QAEA;AAAA,QACD,6BAAAH,QAAA;AAAA,UAAC,YAAAK;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH;AAAA,YACA,MAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA,eAAW,YAAAF,SAAK;AAAA,cACd,oBAAoB;AAAA,YACtB,CAAC;AAAA,YACD;AAAA,YACC,GAAG;AAAA;AAAA,QACN;AAAA,MACF;AAAA,IACF,CACF;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
- "names": ["React", "RadioItem", "ChoiceDividerText", "clsx", "LabelContainer", "Base"]
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport ChoiceDividerText from '@digigov/react-core/ChoiceDividerText';\nimport LabelContainer from '@digigov/react-core/LabelContainer';\n\nexport interface RadioItemProps extends BaseProps<'input'> {\n /**\n * dividerText is optional.\n * Add this prop to add a choice dividerText on top of a radio item.\n * The string is the text that it will appear above this radio item.\n */\n dividerText?: string;\n}\n/**\n * RadioItem component is used for display radio buttons.\n * RadioItem component must be included inside Radio component, as a children component.\n */\nexport const RadioItem = React.forwardRef<HTMLInputElement, RadioItemProps>(\n function RadioItem(\n {\n dividerText,\n name,\n value,\n className,\n disabled = false,\n children,\n ...props\n },\n ref\n ) {\n return (\n <>\n {dividerText && <ChoiceDividerText>{dividerText}</ChoiceDividerText>}\n <Base as='div'\n className={clsx(className, {\n 'ds-radios__item': true,\n })}\n >\n <LabelContainer\n className={clsx({\n 'ds-radios__label': true,\n 'ds-radios__label--disabled': disabled,\n })}\n >\n {children}\n <Base\n as=\"input\"\n ref={ref}\n type=\"radio\"\n name={name}\n value={value}\n className={clsx({\n 'ds-radios__input': true,\n })}\n disabled={disabled}\n {...props}\n />\n </LabelContainer>\n </Base>\n </>\n );\n }\n);\n\nexport default RadioItem;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAChC,+BAA8B;AAC9B,4BAA2B;AAcpB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WACP;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA,2BAAAA,QAAA,gBACG,eAAe,6BAAAA,QAAA,cAAC,yBAAAE,SAAA,MAAmB,WAAY,GAChD,6BAAAF,QAAA;AAAA,MAAC,YAAAG;AAAA,MAAA;AAAA,QAAK,IAAG;AAAA,QACP,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,QACrB,CAAC;AAAA;AAAA,MAED,6BAAAJ,QAAA;AAAA,QAAC,sBAAAK;AAAA,QAAA;AAAA,UACC,eAAW,YAAAD,SAAK;AAAA,YACd,oBAAoB;AAAA,YACpB,8BAA8B;AAAA,UAChC,CAAC;AAAA;AAAA,QAEA;AAAA,QACD,6BAAAJ,QAAA;AAAA,UAAC,YAAAG;AAAA,UAAA;AAAA,YACC,IAAG;AAAA,YACH;AAAA,YACA,MAAK;AAAA,YACL;AAAA,YACA;AAAA,YACA,eAAW,YAAAC,SAAK;AAAA,cACd,oBAAoB;AAAA,YACtB,CAAC;AAAA,YACD;AAAA,YACC,GAAG;AAAA;AAAA,QACN;AAAA,MACF;AAAA,IACF,CACF;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
+ "names": ["React", "RadioItem", "ChoiceDividerText", "Base", "clsx", "LabelContainer"]
7
7
  }
@@ -58,7 +58,12 @@ const Stack = import_react.default.forwardRef(
58
58
  [`ds-stack--align-${alignItems}`]: alignItems,
59
59
  [`ds-stack--content-${alignContent}`]: alignContent,
60
60
  "ds-stack--nowrap": flexWrap === "nowrap",
61
- [`ds-gap-${spacing}`]: spacing !== void 0
61
+ [`ds-gap-${spacing}`]: spacing !== void 0,
62
+ [`ds-gap-xs-${spacing?.xs}`]: spacing?.xs !== void 0,
63
+ [`ds-gap-sm-${spacing?.sm}`]: spacing?.sm !== void 0,
64
+ [`ds-gap-md-${spacing?.md}`]: spacing?.md !== void 0,
65
+ [`ds-gap-lg-${spacing?.lg}`]: spacing?.lg !== void 0,
66
+ [`ds-gap-xl-${spacing?.xl}`]: spacing?.xl !== void 0
62
67
  }),
63
68
  ...props
64
69
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Stack/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface StackProps extends BaseProps<'div'> {\n /**\n * direction is optional. Set to control the direction of flex items.\n */\n direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n /**\n * justifyContent is optional. Set to control how items are positioned along Stack's main axis .\n */\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly';\n /**\n * alignItems is optional. Set to control how items are positioned along Stack's cross axis.\n */\n alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n /**\n * alignContent is optional. Set to control how rows are positioned in multi-row Stack container.\n */\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly';\n /**\n * spacing is optional. Set to the number you want the space to be.\n */\n spacing?: 1 | 2 | 4 | 6 | 8 | 10 | 12;\n /**\n * flexWrap is optional. The default value is 'wrap'.\n */\n flexWrap?: 'wrap' | 'nowrap';\n}\n/**\n * ...\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n function Stack(\n {\n direction = 'column',\n justifyContent,\n alignItems,\n alignContent,\n spacing,\n flexWrap,\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-stack': true,\n [`ds-stack--${direction}`]: direction,\n [`ds-stack--justify-${justifyContent}`]: justifyContent,\n [`ds-stack--align-${alignItems}`]: alignItems,\n [`ds-stack--content-${alignContent}`]: alignContent,\n 'ds-stack--nowrap': flexWrap === 'nowrap',\n [`ds-gap-${spacing}`]: spacing !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Stack;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA2CzB,MAAM,QAAQ,aAAAA,QAAM;AAAA,EACzB,SAASC,OACP;AAAA,IACE,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,CAAC,aAAa,SAAS,EAAE,GAAG;AAAA,UAC5B,CAAC,qBAAqB,cAAc,EAAE,GAAG;AAAA,UACzC,CAAC,mBAAmB,UAAU,EAAE,GAAG;AAAA,UACnC,CAAC,qBAAqB,YAAY,EAAE,GAAG;AAAA,UACvC,oBAAoB,aAAa;AAAA,UACjC,CAAC,UAAU,OAAO,EAAE,GAAG,YAAY;AAAA,QACrC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,gBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface StackProps extends BaseProps<'div'> {\n /**\n * direction is optional. Set to control the direction of flex items.\n */\n direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n /**\n * justifyContent is optional. Set to control how items are positioned along Stack's main axis .\n */\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly';\n /**\n * alignItems is optional. Set to control how items are positioned along Stack's cross axis.\n */\n alignItems?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';\n /**\n * alignContent is optional. Set to control how rows are positioned in multi-row Stack container.\n */\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly';\n /**\n * spacing is optional. Set to the number you want the space to be.\n */\n spacing?: SpacingValues | SpacingMediaValues;\n /**\n * flexWrap is optional. The default value is 'wrap'.\n */\n flexWrap?: 'wrap' | 'nowrap';\n}\n\ntype SpacingValues = 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 11 | 12;\ntype SpacingMediaValues = {\n xs?: SpacingValues;\n sm?: SpacingValues;\n md?: SpacingValues;\n lg?: SpacingValues;\n xl?: SpacingValues;\n};\n/**\n * ...\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n function Stack(\n {\n direction = 'column',\n justifyContent,\n alignItems,\n alignContent,\n spacing,\n flexWrap,\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-stack': true,\n [`ds-stack--${direction}`]: direction,\n [`ds-stack--justify-${justifyContent}`]: justifyContent,\n [`ds-stack--align-${alignItems}`]: alignItems,\n [`ds-stack--content-${alignContent}`]: alignContent,\n 'ds-stack--nowrap': flexWrap === 'nowrap',\n [`ds-gap-${spacing}`]: spacing !== undefined,\n [`ds-gap-xs-${(spacing as SpacingMediaValues)?.xs}`]:\n (spacing as SpacingMediaValues)?.xs !== undefined,\n [`ds-gap-sm-${(spacing as SpacingMediaValues)?.sm}`]:\n (spacing as SpacingMediaValues)?.sm !== undefined,\n [`ds-gap-md-${(spacing as SpacingMediaValues)?.md}`]:\n (spacing as SpacingMediaValues)?.md !== undefined,\n [`ds-gap-lg-${(spacing as SpacingMediaValues)?.lg}`]:\n (spacing as SpacingMediaValues)?.lg !== undefined,\n [`ds-gap-xl-${(spacing as SpacingMediaValues)?.xl}`]:\n (spacing as SpacingMediaValues)?.xl !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Stack;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAoDzB,MAAM,QAAQ,aAAAA,QAAM;AAAA,EACzB,SAASC,OACP;AAAA,IACE,YAAY;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,CAAC,aAAa,SAAS,EAAE,GAAG;AAAA,UAC5B,CAAC,qBAAqB,cAAc,EAAE,GAAG;AAAA,UACzC,CAAC,mBAAmB,UAAU,EAAE,GAAG;AAAA,UACnC,CAAC,qBAAqB,YAAY,EAAE,GAAG;AAAA,UACvC,oBAAoB,aAAa;AAAA,UACjC,CAAC,UAAU,OAAO,EAAE,GAAG,YAAY;AAAA,UACnC,CAAC,aAAc,SAAgC,EAAE,EAAE,GAChD,SAAgC,OAAO;AAAA,UAC1C,CAAC,aAAc,SAAgC,EAAE,EAAE,GAChD,SAAgC,OAAO;AAAA,UAC1C,CAAC,aAAc,SAAgC,EAAE,EAAE,GAChD,SAAgC,OAAO;AAAA,UAC1C,CAAC,aAAc,SAAgC,EAAE,EAAE,GAChD,SAAgC,OAAO;AAAA,UAC1C,CAAC,aAAc,SAAgC,EAAE,EAAE,GAChD,SAAgC,OAAO;AAAA,QAC5C,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,gBAAQ;",
6
6
  "names": ["React", "Stack", "Base", "clsx"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SummaryList/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface SummaryListProps extends BaseProps<'dl'> {\n /**\n * border is optional.\n * By default, SummaryList has borders. You can remove borders by using border prop.\n * By default is true\n * @value true\n * @value false\n * @default true\n */\n border?: boolean;\n /**\n * noLastBorder is optional.\n * By default, SummaryList has borders. You can remove last border by using noLastBorder prop.\n * By default is true\n * @value true\n * @value false\n * @default false\n */\n noLastBorder?: boolean\n\n}\n/**\n * SummaryList used as a table with summary informations.\n * It must contain a list of SummaryListItem components.\n */\nexport const SummaryList = React.forwardRef<HTMLDListElement, SummaryListProps>(\n function SummaryList({ className, noLastBorder = false, border = true, children, ...props }, ref) {\n return (\n <Base\n as=\"dl\"\n ref={ref}\n className={clsx(className, {\n 'ds-summary-list': true,\n 'ds-summary-list--no-border': !border,\n 'ds-summary-list--no-last-border': noLastBorder\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default SummaryList;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA2BzB,MAAM,cAAc,aAAAA,QAAM;AAAA,EAC/B,SAASC,aAAY,EAAE,WAAW,eAAe,OAAO,SAAS,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK;AAChG,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,8BAA8B,CAAC;AAAA,UAC/B,mCAAmC;AAAA,QACrC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface SummaryListProps extends BaseProps<'dl'> {\n /**\n * border is optional.\n * By default, SummaryList has borders. You can remove borders by using border prop.\n * By default is true\n * @value true\n * @value false\n * @default true\n */\n border?: boolean;\n /**\n * noLastBorder is optional.\n * By default, SummaryList has borders. You can remove last border by using noLastBorder prop.\n * By default is true\n * @value true\n * @value false\n * @default false\n */\n noLastBorder?: boolean;\n}\n/**\n * SummaryList used as a table with summary information.\n * It must contain a list of SummaryListItem components.\n */\nexport const SummaryList = React.forwardRef<HTMLDListElement, SummaryListProps>(\n function SummaryList(\n { className, noLastBorder = false, border = true, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"dl\"\n ref={ref}\n className={clsx(className, {\n 'ds-summary-list': true,\n 'ds-summary-list--no-border': !border,\n 'ds-summary-list--no-last-border': noLastBorder,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default SummaryList;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA0BzB,MAAM,cAAc,aAAAA,QAAM;AAAA,EAC/B,SAASC,aACP,EAAE,WAAW,eAAe,OAAO,SAAS,MAAM,UAAU,GAAG,MAAM,GACrE,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,8BAA8B,CAAC;AAAA,UAC/B,mCAAmC;AAAA,QACrC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
6
6
  "names": ["React", "SummaryList", "Base", "clsx"]
7
7
  }
@@ -34,14 +34,17 @@ module.exports = __toCommonJS(SummaryListItemKey_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_clsx = __toESM(require("clsx"));
36
36
  var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const SummaryListItemKey = import_react.default.forwardRef(function SummaryListItemKey2({ className, children, ...props }, ref) {
37
+ const SummaryListItemKey = import_react.default.forwardRef(function SummaryListItemKey2({ sm = 3, md, lg, className, children, ...props }, ref) {
38
38
  return /* @__PURE__ */ import_react.default.createElement(
39
39
  import_Base.default,
40
40
  {
41
41
  as: "dt",
42
42
  ref,
43
43
  className: (0, import_clsx.default)(className, {
44
- "ds-summary-list__key": true
44
+ "ds-summary-list__key": true,
45
+ [`ds-summary-list__key--sm-${sm}`]: sm !== void 0,
46
+ [`ds-summary-list__key--md-${md}`]: md !== void 0,
47
+ [`ds-summary-list__key--lg-${lg}`]: lg !== void 0
45
48
  }),
46
49
  ...props
47
50
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/SummaryListItemKey/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface SummaryListItemKeyProps extends BaseProps<'dt'> { }\n/**\n * SummaryListItemKey is used within the SummaryListItem component.\n * In this column we place the key information for the row (ex. \"Name\", \"Address\", etc).\n */\nexport const SummaryListItemKey = React.forwardRef<\n HTMLElement,\n SummaryListItemKeyProps\n>(function SummaryListItemKey({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"dt\"\n ref={ref}\n className={clsx(className, {\n 'ds-summary-list__key': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default SummaryListItemKey;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAOzB,MAAM,qBAAqB,aAAAA,QAAM,WAGtC,SAASC,oBAAmB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACpE,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,6BAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface SummaryListItemKeyProps extends BaseProps<'dt'> {\n /**\n * sm shows the width of the key column for small screens.\n * @default 3\n */\n sm?: WidthValues;\n /**\n * md shows the width of the key column for medium screens.\n */\n md?: WidthValues;\n /**\n * lg shows the width of the key column for large screens.\n */\n lg?: WidthValues;\n}\n\nexport type WidthValues = 3 | 4 | 5 | 6 | 7 | 8 | 9;\n/**\n * SummaryListItemKey is used within the SummaryListItem component.\n * In this column we place the key information for the row (ex. \"Name\", \"Address\", etc).\n */\nexport const SummaryListItemKey = React.forwardRef<\n HTMLElement,\n SummaryListItemKeyProps\n>(function SummaryListItemKey(\n { sm = 3, md, lg, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"dt\"\n ref={ref}\n className={clsx(className, {\n 'ds-summary-list__key': true,\n [`ds-summary-list__key--sm-${sm}`]: sm !== undefined,\n [`ds-summary-list__key--md-${md}`]: md !== undefined,\n [`ds-summary-list__key--lg-${lg}`]: lg !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default SummaryListItemKey;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAuBzB,MAAM,qBAAqB,aAAAA,QAAM,WAGtC,SAASC,oBACT,EAAE,KAAK,GAAG,IAAI,IAAI,WAAW,UAAU,GAAG,MAAM,GAChD,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,QACxB,CAAC,4BAA4B,EAAE,EAAE,GAAG,OAAO;AAAA,QAC3C,CAAC,4BAA4B,EAAE,EAAE,GAAG,OAAO;AAAA,QAC3C,CAAC,4BAA4B,EAAE,EAAE,GAAG,OAAO;AAAA,MAC7C,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,6BAAQ;",
6
6
  "names": ["React", "SummaryListItemKey", "Base", "clsx"]
7
7
  }
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -27,37 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
29
  var TextArea_exports = {};
29
30
  __export(TextArea_exports, {
30
- TextArea: () => TextArea,
31
- default: () => TextArea_default
31
+ default: () => import_TextArea.default
32
32
  });
33
33
  module.exports = __toCommonJS(TextArea_exports);
34
- var import_react = __toESM(require("react"));
35
- var import_clsx = __toESM(require("clsx"));
36
- var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const TextArea = import_react.default.forwardRef(
38
- function TextArea2({ name, rows, error, dense, className, children, ...props }, ref) {
39
- const defaultRows = dense ? 3 : 6;
40
- return /* @__PURE__ */ import_react.default.createElement(
41
- import_Base.default,
42
- {
43
- as: "textarea",
44
- name,
45
- rows: rows || defaultRows,
46
- ref,
47
- className: (0, import_clsx.default)(className, {
48
- "ds-textarea": true,
49
- "ds-textarea--dense": dense,
50
- "ds-input--error": error
51
- }),
52
- ...props
53
- },
54
- children
55
- );
56
- }
57
- );
58
- var TextArea_default = TextArea;
34
+ __reExport(TextArea_exports, require("@digigov/react-core/TextArea/index.web"), module.exports);
35
+ var import_TextArea = __toESM(require("@digigov/react-core/TextArea/index.web"));
59
36
  // Annotate the CommonJS export names for ESM import in node:
60
37
  0 && (module.exports = {
61
- TextArea
38
+ ...require("@digigov/react-core/TextArea/index.web")
62
39
  });
63
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/TextArea/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TextAreaProps extends BaseProps<'textarea'> {\n /**\n * error is optional. The default value is false.\n * Use this prop when there is an error at the input.\n * @value true\n * @value false\n */\n error?: boolean;\n /**\n * dense is optional.\n * @value true TextArea will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n}\n/**\n * Textarea component is used when you need to let users enter an\n * amount of text that\u2019s longer than a single line.\n */\nexport const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n { name, rows, error, dense, className, children, ...props },\n ref\n ) {\n const defaultRows = dense ? 3 : 6;\n return (\n <Base\n as=\"textarea\"\n name={name}\n rows={rows || defaultRows}\n ref={ref}\n className={clsx(className, {\n 'ds-textarea': true,\n 'ds-textarea--dense': dense,\n 'ds-input--error': error,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default TextArea;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAsBzB,MAAM,WAAW,aAAAA,QAAM;AAAA,EAC5B,SAASC,UACP,EAAE,MAAM,MAAM,OAAO,OAAO,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,UAAM,cAAc,QAAQ,IAAI;AAChC,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,MAAM,QAAQ;AAAA,QACd;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,eAAe;AAAA,UACf,sBAAsB;AAAA,UACtB,mBAAmB;AAAA,QACrB,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;",
6
- "names": ["React", "TextArea", "Base", "clsx"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/TextArea/index.web';\nexport {default as default} from '@digigov/react-core/TextArea/index.web';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAc,mDAAd;AACA,sBAAiC;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,49 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var index_native_exports = {};
29
+ __export(index_native_exports, {
30
+ TextArea: () => TextArea,
31
+ default: () => index_native_default
32
+ });
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_clsx = __toESM(require("clsx"));
35
+ var import_TextArea = __toESM(require("@digigov/react-core/TextArea/index.web"));
36
+ var import_extend = __toESM(require("@digigov/react-core/utils/extend.native"));
37
+ const TextArea = (0, import_extend.default)(import_TextArea.default, ({ className, ...props }) => ({
38
+ ...props,
39
+ multiline: true,
40
+ className: (0, import_clsx.default)(className, {
41
+ "ds-textarea__wrapper": true
42
+ })
43
+ }));
44
+ var index_native_default = TextArea;
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ TextArea
48
+ });
49
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TextArea/index.native.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport CoreTextArea from '@digigov/react-core/TextArea/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\nexport const TextArea = extend(CoreTextArea, ({ className, ...props }) => ({\n ...props,\n multiline: true,\n className: clsx(className, {\n 'ds-textarea__wrapper': true,\n }),\n}));\nexport default TextArea;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiB;AACjB,sBAAyB;AACzB,oBAAmB;AACZ,MAAM,eAAW,cAAAA,SAAO,gBAAAC,SAAc,CAAC,EAAE,WAAW,GAAG,MAAM,OAAO;AAAA,EACzE,GAAG;AAAA,EACH,WAAW;AAAA,EACX,eAAW,YAAAC,SAAK,WAAW;AAAA,IACzB,wBAAwB;AAAA,EAC1B,CAAC;AACH,EAAE;AACF,IAAO,uBAAQ;",
6
+ "names": ["extend", "CoreTextArea", "clsx"]
7
+ }
@@ -0,0 +1,63 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var index_web_exports = {};
29
+ __export(index_web_exports, {
30
+ TextArea: () => TextArea,
31
+ default: () => index_web_default
32
+ });
33
+ module.exports = __toCommonJS(index_web_exports);
34
+ var import_react = __toESM(require("react"));
35
+ var import_clsx = __toESM(require("clsx"));
36
+ var import_Base = __toESM(require("@digigov/react-core/Base"));
37
+ const TextArea = import_react.default.forwardRef(
38
+ function TextArea2({ name, rows, error, dense, className, children, ...props }, ref) {
39
+ const defaultRows = dense ? 3 : 6;
40
+ return /* @__PURE__ */ import_react.default.createElement(
41
+ import_Base.default,
42
+ {
43
+ as: "textarea",
44
+ name,
45
+ rows: rows || defaultRows,
46
+ ref,
47
+ className: (0, import_clsx.default)(className, {
48
+ "ds-textarea": true,
49
+ "ds-textarea--dense": dense,
50
+ "ds-input--error": error
51
+ }),
52
+ ...props
53
+ },
54
+ children
55
+ );
56
+ }
57
+ );
58
+ var index_web_default = TextArea;
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ TextArea
62
+ });
63
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TextArea/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TextAreaProps extends BaseProps<'textarea'> {\n /**\n * error is optional. The default value is false.\n * Use this prop when there is an error at the input.\n * @value true\n * @value false\n */\n error?: boolean;\n /**\n * dense is optional.\n * @value true TextArea will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n}\n/**\n * Textarea component is used when you need to let users enter an\n * amount of text that\u2019s longer than a single line.\n */\nexport const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n function TextArea(\n { name, rows, error, dense, className, children, ...props },\n ref\n ) {\n const defaultRows = dense ? 3 : 6;\n return (\n <Base\n as=\"textarea\"\n name={name}\n rows={rows || defaultRows}\n ref={ref}\n className={clsx(className, {\n 'ds-textarea': true,\n 'ds-textarea--dense': dense,\n 'ds-input--error': error,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default TextArea;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAsBzB,MAAM,WAAW,aAAAA,QAAM;AAAA,EAC5B,SAASC,UACP,EAAE,MAAM,MAAM,OAAO,OAAO,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,UAAM,cAAc,QAAQ,IAAI;AAChC,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,MAAM,QAAQ;AAAA,QACd;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,eAAe;AAAA,UACf,sBAAsB;AAAA,UACtB,mBAAmB;AAAA,QACrB,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
+ "names": ["React", "TextArea", "Base", "clsx"]
7
+ }
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -27,50 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
29
  var TextInput_exports = {};
29
30
  __export(TextInput_exports, {
30
- TextInput: () => TextInput,
31
- default: () => TextInput_default
31
+ default: () => import_TextInput.default
32
32
  });
33
33
  module.exports = __toCommonJS(TextInput_exports);
34
- var import_react = __toESM(require("react"));
35
- var import_clsx = __toESM(require("clsx"));
36
- var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const TextInput = import_react.default.forwardRef(
38
- function TextInput2({
39
- type = "text",
40
- maxWidth,
41
- width,
42
- error,
43
- dense,
44
- className,
45
- children,
46
- ...props
47
- }, ref) {
48
- return /* @__PURE__ */ import_react.default.createElement(
49
- import_Base.default,
50
- {
51
- as: "input",
52
- type,
53
- ref,
54
- className: (0, import_clsx.default)(className, {
55
- "ds-input": true,
56
- "ds-input--error": error,
57
- "ds-input--dense": dense,
58
- [`ds-input--width-${maxWidth}`]: maxWidth !== void 0,
59
- "ds-!-width-one-quarter": width === "25%",
60
- "ds-!-width-one-third": width === "33.3%",
61
- "ds-!-width-one-half": width === "50%",
62
- "ds-!-width-two-thirds": width === "66.6%",
63
- "ds-!-width-three-quarters": width === "75%"
64
- }),
65
- ...props
66
- },
67
- children
68
- );
69
- }
70
- );
71
- var TextInput_default = TextInput;
34
+ __reExport(TextInput_exports, require("@digigov/react-core/TextInput/index.web"), module.exports);
35
+ var import_TextInput = __toESM(require("@digigov/react-core/TextInput/index.web"));
72
36
  // Annotate the CommonJS export names for ESM import in node:
73
37
  0 && (module.exports = {
74
- TextInput
38
+ ...require("@digigov/react-core/TextInput/index.web")
75
39
  });
76
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/TextInput/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TextInputProps extends BaseProps<'input'> {\n /**\n * maxWidth is optional.\n * @value '2-char';\n * @value '3-char';\n * @value '4-char';\n * @value '5-char';\n * @value '10-char';\n * @value '20-char';\n */\n maxWidth?: '2-char' | '3-char' | '4-char' | '5-char' | '10-char' | '20-char';\n\n /**\n * width is optional.\n * Use width prop to define a custom width in your component.\n * @value '25%';\n * @value '33.3%';\n * @value '50%';\n * @value '66.6%';\n * @value '75%';\n * @value '100%';\n * @value 'full';\n */\n width?: '25%' | '33.3%' | '50%' | '66.6%' | '75%' | '100%' | 'full';\n\n /**\n * error is optional. The default value is false.\n * Use this prop when there is an error at the input.\n * @value true\n * @value false\n */\n error?: boolean;\n /**\n * dense is optional.\n * @value true TextInput will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n}\n/**\n * TextInput component when you need to let users enter text that\u2019s no\n * longer than a single line, such as their name or phone number.\n */\nexport const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n type = 'text',\n maxWidth,\n width,\n error,\n dense,\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"input\"\n type={type}\n ref={ref}\n className={clsx(className, {\n 'ds-input': true,\n 'ds-input--error': error,\n 'ds-input--dense': dense,\n [`ds-input--width-${maxWidth}`]: maxWidth !== undefined,\n 'ds-!-width-one-quarter': width === '25%',\n 'ds-!-width-one-third': width === '33.3%',\n 'ds-!-width-one-half': width === '50%',\n 'ds-!-width-two-thirds': width === '66.6%',\n 'ds-!-width-three-quarters': width === '75%',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default TextInput;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA8CzB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WACP;AAAA,IACE,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,mBAAmB;AAAA,UACnB,mBAAmB;AAAA,UACnB,CAAC,mBAAmB,QAAQ,EAAE,GAAG,aAAa;AAAA,UAC9C,0BAA0B,UAAU;AAAA,UACpC,wBAAwB,UAAU;AAAA,UAClC,uBAAuB,UAAU;AAAA,UACjC,yBAAyB,UAAU;AAAA,UACnC,6BAA6B,UAAU;AAAA,QACzC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
- "names": ["React", "TextInput", "Base", "clsx"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/TextInput/index.web';\nexport { default as default } from '@digigov/react-core/TextInput/index.web';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAc,oDAAd;AACA,uBAAmC;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,52 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var index_native_exports = {};
29
+ __export(index_native_exports, {
30
+ TextInput: () => TextInput,
31
+ default: () => index_native_default
32
+ });
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_extend = __toESM(require("@digigov/react-core/utils/extend.native"));
35
+ var import_TextInput = __toESM(require("@digigov/react-core/TextInput/index.web"));
36
+ var import_clsx = __toESM(require("clsx"));
37
+ const TextInput = (0, import_extend.default)(import_TextInput.default, ({ className, ...props }) => {
38
+ return {
39
+ ...props,
40
+ className: (0, import_clsx.default)(className, {
41
+ "ds-input__wrapper": props.maxWidth === void 0,
42
+ "ds-input--disabled": props.disabled,
43
+ [`ds-input--width-${props.maxWidth}__wrapper`]: props.maxWidth !== void 0
44
+ })
45
+ };
46
+ });
47
+ var index_native_default = TextInput;
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ TextInput
51
+ });
52
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TextInput/index.native.tsx"],
4
+ "sourcesContent": ["import extend from '@digigov/react-core/utils/extend.native';\nimport CoreTextInput from '@digigov/react-core/TextInput/index.web';\nimport clsx from 'clsx';\nexport const TextInput = extend(CoreTextInput, ({ className, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-input__wrapper': props.maxWidth === undefined,\n 'ds-input--disabled': props.disabled,\n [`ds-input--width-${props.maxWidth}__wrapper`]:\n props.maxWidth !== undefined,\n }),\n };\n});\nexport default TextInput;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,uBAA0B;AAC1B,kBAAiB;AACV,MAAM,gBAAY,cAAAA,SAAO,iBAAAC,SAAe,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AAC1E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,eAAW,YAAAC,SAAK,WAAW;AAAA,MACzB,qBAAqB,MAAM,aAAa;AAAA,MACxC,sBAAsB,MAAM;AAAA,MAC5B,CAAC,mBAAmB,MAAM,QAAQ,WAAW,GAC3C,MAAM,aAAa;AAAA,IACvB,CAAC;AAAA,EACH;AACF,CAAC;AACD,IAAO,uBAAQ;",
6
+ "names": ["extend", "CoreTextInput", "clsx"]
7
+ }
@@ -0,0 +1,76 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var index_web_exports = {};
29
+ __export(index_web_exports, {
30
+ TextInput: () => TextInput,
31
+ default: () => index_web_default
32
+ });
33
+ module.exports = __toCommonJS(index_web_exports);
34
+ var import_react = __toESM(require("react"));
35
+ var import_clsx = __toESM(require("clsx"));
36
+ var import_Base = __toESM(require("@digigov/react-core/Base"));
37
+ const TextInput = import_react.default.forwardRef(
38
+ function TextInput2({
39
+ type = "text",
40
+ maxWidth,
41
+ width,
42
+ error,
43
+ dense,
44
+ className,
45
+ children,
46
+ ...props
47
+ }, ref) {
48
+ return /* @__PURE__ */ import_react.default.createElement(
49
+ import_Base.default,
50
+ {
51
+ as: "input",
52
+ type,
53
+ ref,
54
+ className: (0, import_clsx.default)(className, {
55
+ "ds-input": true,
56
+ "ds-input--error": error,
57
+ "ds-input--dense": dense,
58
+ [`ds-input--width-${maxWidth}`]: maxWidth !== void 0,
59
+ "ds-!-width-one-quarter": width === "25%",
60
+ "ds-!-width-one-third": width === "33.3%",
61
+ "ds-!-width-one-half": width === "50%",
62
+ "ds-!-width-two-thirds": width === "66.6%",
63
+ "ds-!-width-three-quarters": width === "75%"
64
+ }),
65
+ ...props
66
+ },
67
+ children
68
+ );
69
+ }
70
+ );
71
+ var index_web_default = TextInput;
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ TextInput
75
+ });
76
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TextInput/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TextInputProps extends BaseProps<'input'> {\n /**\n * maxWidth is optional.\n * @value '2-char';\n * @value '3-char';\n * @value '4-char';\n * @value '5-char';\n * @value '10-char';\n * @value '20-char';\n */\n maxWidth?: '2-char' | '3-char' | '4-char' | '5-char' | '10-char' | '20-char';\n\n /**\n * width is optional.\n * Use width prop to define a custom width in your component.\n * @value '25%';\n * @value '33.3%';\n * @value '50%';\n * @value '66.6%';\n * @value '75%';\n * @value '100%';\n * @value 'full';\n */\n width?: '25%' | '33.3%' | '50%' | '66.6%' | '75%' | '100%' | 'full';\n\n /**\n * error is optional. The default value is false.\n * Use this prop when there is an error at the input.\n * @value true\n * @value false\n */\n error?: boolean;\n /**\n * dense is optional.\n * @value true TextInput will be dense.\n * @value false\n * @default false\n */\n dense?: boolean;\n}\n/**\n * TextInput component when you need to let users enter text that\u2019s no\n * longer than a single line, such as their name or phone number.\n */\nexport const TextInput = React.forwardRef<HTMLInputElement, TextInputProps>(\n function TextInput(\n {\n type = 'text',\n maxWidth,\n width,\n error,\n dense,\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"input\"\n type={type}\n ref={ref}\n className={clsx(className, {\n 'ds-input': true,\n 'ds-input--error': error,\n 'ds-input--dense': dense,\n [`ds-input--width-${maxWidth}`]: maxWidth !== undefined,\n 'ds-!-width-one-quarter': width === '25%',\n 'ds-!-width-one-third': width === '33.3%',\n 'ds-!-width-one-half': width === '50%',\n 'ds-!-width-two-thirds': width === '66.6%',\n 'ds-!-width-three-quarters': width === '75%',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default TextInput;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA8CzB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WACP;AAAA,IACE,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,mBAAmB;AAAA,UACnB,mBAAmB;AAAA,UACnB,CAAC,mBAAmB,QAAQ,EAAE,GAAG,aAAa;AAAA,UAC9C,0BAA0B,UAAU;AAAA,UACpC,wBAAwB,UAAU;AAAA,UAClC,uBAAuB,UAAU;AAAA,UACjC,yBAAyB,UAAU;AAAA,UACnC,6BAA6B,UAAU;AAAA,QACzC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
+ "names": ["React", "TextInput", "Base", "clsx"]
7
+ }