@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
@@ -0,0 +1,77 @@
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
+ CopyToClipboardContainer: () => CopyToClipboardContainer,
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 CopyToClipboardContainer = import_react.default.forwardRef(function CopyToClipboardContainer2({
38
+ variant = "tooltip",
39
+ tooltipAlign = "right",
40
+ className,
41
+ dense,
42
+ children,
43
+ ...props
44
+ }, ref) {
45
+ return /* @__PURE__ */ import_react.default.createElement(
46
+ import_Base.default,
47
+ {
48
+ as: "div",
49
+ ref,
50
+ ...props,
51
+ className: (0, import_clsx.default)(className, {
52
+ "ds-copy-to-clipboard": true
53
+ }),
54
+ ...props
55
+ },
56
+ /* @__PURE__ */ import_react.default.createElement(
57
+ import_Base.default,
58
+ {
59
+ as: "div",
60
+ className: (0, import_clsx.default)(className, {
61
+ "ds-copy-to-clipboard__tooltip": variant === "tooltip",
62
+ "ds-copy-to-clipboard__tooltip--dense": variant === "tooltip" && dense,
63
+ "ds-copy-to-clipboard__tooltip--left": variant === "tooltip" && tooltipAlign === "left",
64
+ "ds-copy-to-clipboard__tooltip--right": variant === "tooltip" && tooltipAlign === "right",
65
+ "ds-copy-to-clipboard__banner": variant === "banner"
66
+ })
67
+ },
68
+ children
69
+ )
70
+ );
71
+ });
72
+ var index_web_default = CopyToClipboardContainer;
73
+ // Annotate the CommonJS export names for ESM import in node:
74
+ 0 && (module.exports = {
75
+ CopyToClipboardContainer
76
+ });
77
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/CopyToClipboardContainer/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CopyToClipboardContainerProps extends BaseProps<'div'> {\n /**\n * @value 'tooltip' is used when you want to show the message inside a tooltip.\n * @value 'banner' is used when you want to show the message inside a banner.\n * @default 'tooltip'\n */\n variant?: 'tooltip' | 'banner';\n /**\n * tooltipAlign is optional.\n * tooltipAlign prop adds tooltip right or left and is used only if variant is tooltip.\n * @value 'right'\n * @value 'left'\n * @default 'right'\n */\n tooltipAlign?: 'right' | 'left';\n /**\n * dense is optional.\n * affects only the density of the tooltip.\n * @value true tooltip will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * CopyToClipboardContainer is a wrapper component for CopyToClipboardMessage\n */\nexport const CopyToClipboardContainer = React.forwardRef<\n HTMLDivElement,\n CopyToClipboardContainerProps\n>(function CopyToClipboardContainer(\n {\n variant = 'tooltip',\n tooltipAlign = 'right',\n className,\n dense,\n children,\n ...props\n },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n {...props}\n className={clsx(className, {\n 'ds-copy-to-clipboard': true,\n })}\n {...props}\n >\n <Base\n as=\"div\"\n className={clsx(className, {\n 'ds-copy-to-clipboard__tooltip': variant === 'tooltip',\n 'ds-copy-to-clipboard__tooltip--dense':\n variant === 'tooltip' && dense,\n 'ds-copy-to-clipboard__tooltip--left':\n variant === 'tooltip' && tooltipAlign === 'left',\n 'ds-copy-to-clipboard__tooltip--right':\n variant === 'tooltip' && tooltipAlign === 'right',\n 'ds-copy-to-clipboard__banner': variant === 'banner',\n })}\n >\n {children}\n </Base>\n </Base>\n );\n});\n\nexport default CopyToClipboardContainer;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA6BzB,MAAM,2BAA2B,aAAAA,QAAM,WAG5C,SAASC,0BACT;AAAA,EACE,UAAU;AAAA,EACV,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACC,GAAG;AAAA,MACJ,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ,6BAAAH,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,iCAAiC,YAAY;AAAA,UAC7C,wCACE,YAAY,aAAa;AAAA,UAC3B,uCACE,YAAY,aAAa,iBAAiB;AAAA,UAC5C,wCACE,YAAY,aAAa,iBAAiB;AAAA,UAC5C,gCAAgC,YAAY;AAAA,QAC9C,CAAC;AAAA;AAAA,MAEA;AAAA,IACH;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
6
+ "names": ["React", "CopyToClipboardContainer", "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,31 +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 CopyToClipboardMessage_exports = {};
29
30
  __export(CopyToClipboardMessage_exports, {
30
- CopyToClipboardMessage: () => CopyToClipboardMessage,
31
- default: () => CopyToClipboardMessage_default
31
+ default: () => import_CopyToClipboardMessage.default
32
32
  });
33
33
  module.exports = __toCommonJS(CopyToClipboardMessage_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 CopyToClipboardMessage = import_react.default.forwardRef(function CopyToClipboardMessage2({ enabled, className, children, ...props }, ref) {
38
- return /* @__PURE__ */ import_react.default.createElement(
39
- import_Base.default,
40
- {
41
- as: "div",
42
- ref,
43
- className: (0, import_clsx.default)(className, {
44
- "ds-copy-to-clipboard__message": true,
45
- "ds-copy-to-clipboard--hidden": !enabled
46
- }),
47
- ...props
48
- },
49
- children
50
- );
51
- });
52
- var CopyToClipboardMessage_default = CopyToClipboardMessage;
34
+ __reExport(CopyToClipboardMessage_exports, require("@digigov/react-core/CopyToClipboardMessage/index.web"), module.exports);
35
+ var import_CopyToClipboardMessage = __toESM(require("@digigov/react-core/CopyToClipboardMessage/index.web"));
53
36
  // Annotate the CommonJS export names for ESM import in node:
54
37
  0 && (module.exports = {
55
- CopyToClipboardMessage
38
+ ...require("@digigov/react-core/CopyToClipboardMessage/index.web")
56
39
  });
57
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/CopyToClipboardMessage/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CopyToClipboardMessageProps extends BaseProps<'div'> {\n /**\n * enabled is a boolean prop passed from the CopyToClipboard component.\n * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.\n * When it's false it resets the animations of the CopyToClipboardMessage.\n * @value true\n * @value false\n */\n enabled?: boolean;\n}\n/**\n * CopyToClipboardMessage is used to show a message that a text is being copied.\n * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library\n */\nexport const CopyToClipboardMessage = React.forwardRef<\n HTMLDivElement,\n CopyToClipboardMessageProps\n>(function CopyToClipboardMessage(\n { enabled, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-copy-to-clipboard__message': true,\n 'ds-copy-to-clipboard--hidden': !enabled,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default CopyToClipboardMessage;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAgBzB,MAAM,yBAAyB,aAAAA,QAAM,WAG1C,SAASC,wBACT,EAAE,SAAS,WAAW,UAAU,GAAG,MAAM,GACzC,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,QACjC,gCAAgC,CAAC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,iCAAQ;",
6
- "names": ["React", "CopyToClipboardMessage", "Base", "clsx"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/CopyToClipboardMessage/index.web';\nexport { default as default } from '@digigov/react-core/CopyToClipboardMessage/index.web';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAc,iEAAd;AACA,oCAAmC;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,51 @@
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
+ CopyToClipboardMessage: () => CopyToClipboardMessage,
31
+ default: () => index_native_default
32
+ });
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_CopyToClipboardMessage = __toESM(require("@digigov/react-core/CopyToClipboardMessage/index.web"));
35
+ var import_extend = require("@digigov/react-core/utils/extend.native");
36
+ var import_clsx = __toESM(require("clsx"));
37
+ const CopyToClipboardMessage = (0, import_extend.extend)(import_CopyToClipboardMessage.default, ({ dense, className, ...props }) => {
38
+ return {
39
+ className: (0, import_clsx.default)(className, {
40
+ "ds-copy-to-clipboard__before": true,
41
+ "ds-copy-to-clipboard__message--dense": dense
42
+ }),
43
+ ...props
44
+ };
45
+ });
46
+ var index_native_default = CopyToClipboardMessage;
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ CopyToClipboardMessage
50
+ });
51
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/CopyToClipboardMessage/index.native.tsx"],
4
+ "sourcesContent": ["import CoreCopyToClipboardMessage, {\n CopyToClipboardMessageProps,\n} from '@digigov/react-core/CopyToClipboardMessage/index.web';\nimport { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboardContainer';\nimport { extend } from '@digigov/react-core/utils/extend.native';\nimport clsx from 'clsx';\n\nexport const CopyToClipboardMessage = extend<\n CopyToClipboardMessageProps,\n CopyToClipboardContainerProps\n>(CoreCopyToClipboardMessage, ({ dense, className, ...props }) => {\n return {\n className: clsx(className, {\n 'ds-copy-to-clipboard__before': true,\n 'ds-copy-to-clipboard__message--dense': dense,\n }),\n ...props,\n };\n});\n\nexport default CopyToClipboardMessage;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oCAEO;AAEP,oBAAuB;AACvB,kBAAiB;AAEV,MAAM,6BAAyB,sBAGpC,8BAAAA,SAA4B,CAAC,EAAE,OAAO,WAAW,GAAG,MAAM,MAAM;AAChE,SAAO;AAAA,IACL,eAAW,YAAAC,SAAK,WAAW;AAAA,MACzB,gCAAgC;AAAA,MAChC,wCAAwC;AAAA,IAC1C,CAAC;AAAA,IACD,GAAG;AAAA,EACL;AACF,CAAC;AAED,IAAO,uBAAQ;",
6
+ "names": ["CoreCopyToClipboardMessage", "clsx"]
7
+ }
@@ -0,0 +1,57 @@
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
+ CopyToClipboardMessage: () => CopyToClipboardMessage,
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 CopyToClipboardMessage = import_react.default.forwardRef(function CopyToClipboardMessage2({ enabled, className, children, ...props }, ref) {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_Base.default,
40
+ {
41
+ as: "div",
42
+ ref,
43
+ className: (0, import_clsx.default)(className, {
44
+ "ds-copy-to-clipboard__message": true,
45
+ "ds-copy-to-clipboard--hidden": !enabled
46
+ }),
47
+ ...props
48
+ },
49
+ children
50
+ );
51
+ });
52
+ var index_web_default = CopyToClipboardMessage;
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ CopyToClipboardMessage
56
+ });
57
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/CopyToClipboardMessage/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CopyToClipboardMessageProps extends BaseProps<'div'> {\n /**\n * enabled is a boolean prop passed from the CopyToClipboard component.\n * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.\n * When it's false it resets the animations of the CopyToClipboardMessage.\n * @value true\n * @value false\n */\n enabled?: boolean;\n}\n/**\n * CopyToClipboardMessage is used to show a message that a text is being copied.\n * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library\n */\nexport const CopyToClipboardMessage = React.forwardRef<\n HTMLDivElement,\n CopyToClipboardMessageProps\n>(function CopyToClipboardMessage(\n { enabled, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-copy-to-clipboard__message': true,\n 'ds-copy-to-clipboard--hidden': !enabled,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default CopyToClipboardMessage;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAgBzB,MAAM,yBAAyB,aAAAA,QAAM,WAG1C,SAASC,wBACT,EAAE,SAAS,WAAW,UAAU,GAAG,MAAM,GACzC,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,QACjC,gCAAgC,CAAC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
6
+ "names": ["React", "CopyToClipboardMessage", "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,51 +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 DateInputItem_exports = {};
29
30
  __export(DateInputItem_exports, {
30
- DateInputItem: () => DateInputItem,
31
- default: () => DateInputItem_default
31
+ default: () => import_DateInputItem.default
32
32
  });
33
33
  module.exports = __toCommonJS(DateInputItem_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 DateInputItem = import_react.default.forwardRef(function DateInputItem2({ name, width = 2, error, className, children, ...props }, ref) {
38
- return /* @__PURE__ */ import_react.default.createElement(
39
- "div",
40
- {
41
- className: (0, import_clsx.default)(className, {
42
- "ds-date-input__item": true
43
- })
44
- },
45
- /* @__PURE__ */ import_react.default.createElement(
46
- "label",
47
- {
48
- className: (0, import_clsx.default)({
49
- "ds-label": true
50
- })
51
- },
52
- children,
53
- /* @__PURE__ */ import_react.default.createElement(
54
- import_Base.default,
55
- {
56
- as: "input",
57
- ref,
58
- type: "text",
59
- name,
60
- className: (0, import_clsx.default)({
61
- "ds-input": true,
62
- "ds-input--width-2-char": width === 2,
63
- "ds-input--width-4-char": width === 4,
64
- "ds-input--error": error
65
- }),
66
- ...props
67
- }
68
- )
69
- )
70
- );
71
- });
72
- var DateInputItem_default = DateInputItem;
34
+ __reExport(DateInputItem_exports, require("@digigov/react-core/DateInputItem/index.web"), module.exports);
35
+ var import_DateInputItem = __toESM(require("@digigov/react-core/DateInputItem/index.web"));
73
36
  // Annotate the CommonJS export names for ESM import in node:
74
37
  0 && (module.exports = {
75
- DateInputItem
38
+ ...require("@digigov/react-core/DateInputItem/index.web")
76
39
  });
77
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/DateInputItem/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface DateInputItemProps extends BaseProps<'input'> {\n /**\n * Width property is optional.\n * Use this property for year field to grow width.\n * @value 2\n * @value 4\n * @default 2\n */\n width?: 2 | 4;\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/**\n * Details for the DateInputItem.\n * DateInputItem component is used for displaying date.\n * DateInputItem component must be included inside DateInput component as children component\n */\nexport const DateInputItem = React.forwardRef<\n HTMLInputElement,\n DateInputItemProps\n>(function DateInputItem(\n { name, width = 2, error, className, children, ...props },\n ref\n) {\n return (\n <div\n className={clsx(className, {\n 'ds-date-input__item': true,\n })}\n >\n <label\n className={clsx({\n 'ds-label': true,\n })}\n >\n {children}\n <Base\n as=\"input\"\n ref={ref}\n type=\"text\"\n name={name}\n className={clsx({\n 'ds-input': true,\n 'ds-input--width-2-char': width === 2,\n 'ds-input--width-4-char': width === 4,\n 'ds-input--error': error,\n })}\n {...props}\n />\n </label>\n </div>\n );\n});\n\nexport default DateInputItem;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAwBzB,MAAM,gBAAgB,aAAAA,QAAM,WAGjC,SAASC,eACT,EAAE,MAAM,QAAQ,GAAG,OAAO,WAAW,UAAU,GAAG,MAAM,GACxD,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC;AAAA;AAAA,MACC,eAAW,YAAAE,SAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,MACzB,CAAC;AAAA;AAAA,IAED,6BAAAF,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,YAAAE,SAAK;AAAA,UACd,YAAY;AAAA,QACd,CAAC;AAAA;AAAA,MAEA;AAAA,MACD,6BAAAF,QAAA;AAAA,QAAC,YAAAG;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH;AAAA,UACA,MAAK;AAAA,UACL;AAAA,UACA,eAAW,YAAAD,SAAK;AAAA,YACd,YAAY;AAAA,YACZ,0BAA0B,UAAU;AAAA,YACpC,0BAA0B,UAAU;AAAA,YACpC,mBAAmB;AAAA,UACrB,CAAC;AAAA,UACA,GAAG;AAAA;AAAA,MACN;AAAA,IACF;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,wBAAQ;",
6
- "names": ["React", "DateInputItem", "clsx", "Base"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/DateInputItem/index.web';\nexport { default as default } from '@digigov/react-core/DateInputItem/index.web';"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAc,wDAAd;AACA,2BAAmC;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,50 @@
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
+ DateInputItem: () => DateInputItem,
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_DateInputItem = __toESM(require("@digigov/react-core/DateInputItem/index.web"));
36
+ const DateInputItem = (0, import_extend.default)(
37
+ import_DateInputItem.default,
38
+ ({ className, ...props }) => {
39
+ return {
40
+ ...props,
41
+ onChange: void 0
42
+ };
43
+ }
44
+ );
45
+ var index_native_default = DateInputItem;
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ DateInputItem
49
+ });
50
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/DateInputItem/index.native.tsx"],
4
+ "sourcesContent": ["import extend from '@digigov/react-core/utils/extend.native';\nimport CoreDateInputItem from '@digigov/react-core/DateInputItem/index.web';\nexport const DateInputItem = extend(\n CoreDateInputItem,\n ({ className, ...props }) => {\n return {\n ...props,\n onChange: undefined,\n };\n }\n);\nexport default DateInputItem;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,2BAA8B;AACvB,MAAM,oBAAgB,cAAAA;AAAA,EAC3B,qBAAAC;AAAA,EACA,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AAC3B,WAAO;AAAA,MACL,GAAG;AAAA,MACH,UAAU;AAAA,IACZ;AAAA,EACF;AACF;AACA,IAAO,uBAAQ;",
6
+ "names": ["extend", "CoreDateInputItem"]
7
+ }
@@ -0,0 +1,65 @@
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
+ DateInputItem: () => DateInputItem,
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
+ var import_TextInput = require("@digigov/react-core/TextInput");
38
+ const DateInputItem = import_react.default.forwardRef(function DateInputItem2({ name, width = 2, error, className, children, ...props }, ref) {
39
+ return /* @__PURE__ */ import_react.default.createElement(
40
+ import_Base.default,
41
+ {
42
+ as: "div",
43
+ className: (0, import_clsx.default)(className, {
44
+ "ds-date-input__item": true
45
+ })
46
+ },
47
+ /* @__PURE__ */ import_react.default.createElement(
48
+ import_Base.default,
49
+ {
50
+ as: "label",
51
+ className: (0, import_clsx.default)({
52
+ "ds-label": true
53
+ })
54
+ },
55
+ children,
56
+ /* @__PURE__ */ import_react.default.createElement(import_TextInput.TextInput, { ref, type: "text", name, maxWidth: `${width}-char`, error, ...props })
57
+ )
58
+ );
59
+ });
60
+ var index_web_default = DateInputItem;
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ DateInputItem
64
+ });
65
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/DateInputItem/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport { TextInput } from '@digigov/react-core/TextInput';\n\nexport interface DateInputItemProps extends BaseProps<'input'> {\n /**\n * Width property is optional.\n * Use this property for year field to grow width.\n * @value 2\n * @value 4\n * @default 2\n */\n width?: 2 | 4;\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/**\n * Details for the DateInputItem.\n * DateInputItem component is used for displaying date.\n * DateInputItem component must be included inside DateInput component as children component\n */\nexport const DateInputItem = React.forwardRef<\n HTMLInputElement,\n DateInputItemProps\n>(function DateInputItem(\n { name, width = 2, error, className, children, ...props },\n ref\n) {\n return (\n <Base as='div'\n className={clsx(className, {\n 'ds-date-input__item': true,\n })}\n >\n <Base as='label'\n className={clsx({\n 'ds-label': true,\n })}\n >\n {children}\n <TextInput ref={ref} type=\"text\" name={name} maxWidth={`${width}-char`} error={error} {...props} />\n </Base>\n </Base>\n );\n});\n\nexport default DateInputItem;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAChC,uBAA0B;AAwBnB,MAAM,gBAAgB,aAAAA,QAAM,WAGjC,SAASC,eACT,EAAE,MAAM,QAAQ,GAAG,OAAO,WAAW,UAAU,GAAG,MAAM,GACxD,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MAAK,IAAG;AAAA,MACP,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,MACzB,CAAC;AAAA;AAAA,IAED,6BAAAH,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QAAK,IAAG;AAAA,QACP,eAAW,YAAAC,SAAK;AAAA,UACd,YAAY;AAAA,QACd,CAAC;AAAA;AAAA,MAEA;AAAA,MACD,6BAAAH,QAAA,cAAC,8BAAU,KAAU,MAAK,QAAO,MAAY,UAAU,GAAG,KAAK,SAAS,OAAe,GAAG,OAAO;AAAA,IACnG;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
6
+ "names": ["React", "DateInputItem", "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,32 +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 Details_exports = {};
29
30
  __export(Details_exports, {
30
- Details: () => Details,
31
- default: () => Details_default
31
+ default: () => import_Details.default
32
32
  });
33
33
  module.exports = __toCommonJS(Details_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 Details = import_react.default.forwardRef(
38
- function Details2({ className, children, ...props }, ref) {
39
- return /* @__PURE__ */ import_react.default.createElement(
40
- import_Base.default,
41
- {
42
- as: "details",
43
- ref,
44
- className: (0, import_clsx.default)(className, {
45
- "ds-details": true
46
- }),
47
- ...props
48
- },
49
- children
50
- );
51
- }
52
- );
53
- var Details_default = Details;
34
+ __reExport(Details_exports, require("@digigov/react-core/Details/index.web"), module.exports);
35
+ var import_Details = __toESM(require("@digigov/react-core/Details/index.web"));
54
36
  // Annotate the CommonJS export names for ESM import in node:
55
37
  0 && (module.exports = {
56
- Details
38
+ ...require("@digigov/react-core/Details/index.web")
57
39
  });
58
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Details/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface DetailsProps extends BaseProps<'details'> { }\n/**\n * Details is used to make a page easier to scan when it contains information that only some users will need.\n * Details component wraps DetailsSummary and DetailsContent as children components\n */\nexport const Details = React.forwardRef<HTMLDetailsElement, DetailsProps>(\n function Details({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"details\"\n ref={ref}\n className={clsx(className, {\n 'ds-details': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Details;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAOzB,MAAM,UAAU,aAAAA,QAAM;AAAA,EAC3B,SAASC,SAAQ,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACvD,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,cAAc;AAAA,QAChB,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,kBAAQ;",
6
- "names": ["React", "Details", "Base", "clsx"]
4
+ "sourcesContent": ["export * from \"@digigov/react-core/Details/index.web\";\nexport {default as default} from \"@digigov/react-core/Details/index.web\";"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAc,kDAAd;AACA,qBAAiC;",
6
+ "names": []
7
7
  }
@@ -0,0 +1,50 @@
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
+ Details: () => Details,
31
+ default: () => index_native_default
32
+ });
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_Details = __toESM(require("@digigov/react-core/Details/index.web"));
35
+ var import_extend = require("@digigov/react-core/utils/extend.native");
36
+ const Details = (0, import_extend.extend)(import_Details.default, ({ className, ...props }) => {
37
+ return {
38
+ className,
39
+ closeIcon: "\u25B6",
40
+ openIcon: "\u25BC",
41
+ placement: "before",
42
+ ...props
43
+ };
44
+ });
45
+ var index_native_default = Details;
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ Details
49
+ });
50
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/Details/index.native.tsx"],
4
+ "sourcesContent": ["import CoreDetails from '@digigov/react-core/Details/index.web';\nimport { extend } from '@digigov/react-core/utils/extend.native';\n\nexport const Details = extend(CoreDetails, ({ className, ...props }) => {\n return {\n className,\n closeIcon: '\u25B6',\n openIcon: '\u25BC',\n placement: 'before',\n ...props,\n };\n});\n\nexport default Details;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAwB;AACxB,oBAAuB;AAEhB,MAAM,cAAU,sBAAO,eAAAA,SAAa,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AACtE,SAAO;AAAA,IACL;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,WAAW;AAAA,IACX,GAAG;AAAA,EACL;AACF,CAAC;AAED,IAAO,uBAAQ;",
6
+ "names": ["CoreDetails"]
7
+ }