@digigov/react-core 2.0.0-254f7786 → 2.0.0-264e5fff

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 (513) hide show
  1. package/Accordion/index.d.ts +2 -28
  2. package/Accordion/index.js +3 -34
  3. package/Accordion/index.js.map +3 -3
  4. package/Accordion/index.native/index.js +22 -0
  5. package/Accordion/index.native/package.json +6 -0
  6. package/Accordion/index.native.d.ts +2 -0
  7. package/Accordion/index.native.js.map +7 -0
  8. package/Accordion/index.web/index.js +37 -0
  9. package/Accordion/index.web/package.json +6 -0
  10. package/Accordion/index.web.d.ts +28 -0
  11. package/Accordion/index.web.js.map +7 -0
  12. package/AccordionSection/index.d.ts +2 -11
  13. package/AccordionSection/index.js +3 -20
  14. package/AccordionSection/index.js.map +3 -3
  15. package/AccordionSection/index.native/index.js +21 -0
  16. package/AccordionSection/index.native/package.json +6 -0
  17. package/AccordionSection/index.native.d.ts +2 -0
  18. package/AccordionSection/index.native.js.map +7 -0
  19. package/AccordionSection/index.web/index.js +23 -0
  20. package/AccordionSection/index.web/package.json +6 -0
  21. package/AccordionSection/index.web.d.ts +10 -0
  22. package/AccordionSection/index.web.js.map +7 -0
  23. package/AccordionSectionSummaryHeading/index.d.ts +1 -0
  24. package/AccordionSectionSummaryHeading/index.js +5 -3
  25. package/AccordionSectionSummaryHeading/index.js.map +2 -2
  26. package/BackLinkBase/index.d.ts +9 -0
  27. package/BackLinkBase/index.js +29 -0
  28. package/BackLinkBase/index.js.map +7 -0
  29. package/{ButtonLink → BackLinkBase}/package.json +1 -1
  30. package/BannerContainer/index.js +1 -1
  31. package/BannerContainer/index.js.map +2 -2
  32. package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  33. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  34. package/Base/compat/details.native/index.js +2 -1
  35. package/Base/compat/details.native.d.ts +2 -1
  36. package/Base/compat/details.native.js.map +2 -2
  37. package/Base/index.native.js.map +2 -2
  38. package/Base/index.web.d.ts +1 -1
  39. package/Base/index.web.js.map +1 -1
  40. package/Base/mapping.native.d.ts +1 -1
  41. package/Base/mapping.native.js.map +2 -2
  42. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  43. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  44. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  45. package/BreadcrumbsListItemLinkBase/package.json +6 -0
  46. package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
  47. package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
  48. package/BreadcrumbsListItemWrapper/index.js.map +7 -0
  49. package/{AutoCompleteInputTypeahead → BreadcrumbsListItemWrapper}/package.json +1 -1
  50. package/Button/index.js +2 -0
  51. package/Button/index.js.map +2 -2
  52. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  53. package/ButtonLinkBase/index.js +27 -0
  54. package/ButtonLinkBase/index.js.map +7 -0
  55. package/{FooterLink → ButtonLinkBase}/package.json +1 -1
  56. package/CallToActionBase/index.d.ts +9 -0
  57. package/{CallToAction → CallToActionBase}/index.js +6 -6
  58. package/CallToActionBase/index.js.map +7 -0
  59. package/{CircularProgress → CallToActionBase}/package.json +1 -1
  60. package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
  61. package/{CircularProgress → CircularProgressBase}/index.js +4 -4
  62. package/CircularProgressBase/index.js.map +7 -0
  63. package/CircularProgressBase/package.json +6 -0
  64. package/CopyToClipboardMessage/index.native/index.js +1 -1
  65. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  66. package/CopyToClipboardMessage/index.native.js.map +1 -1
  67. package/DateInputItem/index.native/index.js +1 -1
  68. package/DateInputItem/index.native.d.ts +1 -3
  69. package/DateInputItem/index.native.js.map +1 -1
  70. package/Details/index.native/index.js +1 -1
  71. package/Details/index.native.d.ts +1 -3
  72. package/Details/index.native.js.map +1 -1
  73. package/DetailsContent/index.d.ts +1 -0
  74. package/DetailsContent/index.js +3 -2
  75. package/DetailsContent/index.js.map +2 -2
  76. package/ErrorSummary/index.d.ts +9 -0
  77. package/ErrorSummary/index.js +3 -3
  78. package/ErrorSummary/index.js.map +2 -2
  79. package/FileUpload/index.d.ts +7 -0
  80. package/FileUpload/index.js +12 -4
  81. package/FileUpload/index.js.map +2 -2
  82. package/FileUploadContainer/index.d.ts +7 -0
  83. package/FileUploadContainer/index.js +3 -2
  84. package/FileUploadContainer/index.js.map +2 -2
  85. package/FooterLinkBase/index.d.ts +9 -0
  86. package/FooterLinkBase/index.js +23 -0
  87. package/FooterLinkBase/index.js.map +7 -0
  88. package/{CallToAction → FooterLinkBase}/package.json +1 -1
  89. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  90. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  91. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  92. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  93. package/GovGRLogoBase/index.d.ts +9 -0
  94. package/GovGRLogoBase/index.js +43 -0
  95. package/GovGRLogoBase/index.js.map +7 -0
  96. package/{BackLink → GovGRLogoBase}/package.json +1 -1
  97. package/Grid/index.d.ts +1 -7
  98. package/Grid/index.js +1 -0
  99. package/Grid/index.js.map +2 -2
  100. package/HeaderLogoBase/index.d.ts +19 -0
  101. package/HeaderLogoBase/index.js +33 -0
  102. package/HeaderLogoBase/index.js.map +7 -0
  103. package/HeaderLogoBase/package.json +6 -0
  104. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  105. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  106. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  107. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  108. package/HeaderTitleBase/index.d.ts +9 -0
  109. package/HeaderTitleBase/index.js +24 -0
  110. package/HeaderTitleBase/index.js.map +7 -0
  111. package/HeaderTitleBase/package.json +6 -0
  112. package/LinkBase/index.js +1 -0
  113. package/LinkBase/index.js.map +2 -2
  114. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  115. package/{NavListItemAction → NavListItemActionBase}/index.js +7 -7
  116. package/NavListItemActionBase/index.js.map +7 -0
  117. package/NavListItemActionBase/package.json +6 -0
  118. package/NavListItemActionContainer/index.native/index.js +1 -1
  119. package/NavListItemActionContainer/index.native.d.ts +0 -2
  120. package/NavListItemActionContainer/index.native.js.map +1 -1
  121. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  122. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  123. package/NavListItemLinkBase/index.js.map +7 -0
  124. package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
  125. package/NotificationBannerContainer/index.d.ts +2 -1
  126. package/NotificationBannerContainer/index.js.map +2 -2
  127. package/NotificationBannerContent/index.d.ts +22 -0
  128. package/NotificationBannerContent/index.js +14 -3
  129. package/NotificationBannerContent/index.js.map +2 -2
  130. package/NotificationBannerLink/index.native/index.js +1 -1
  131. package/NotificationBannerLink/index.native.d.ts +1 -3
  132. package/NotificationBannerLink/index.native.js.map +1 -1
  133. package/Skeleton/index.js +2 -1
  134. package/Skeleton/index.js.map +2 -2
  135. package/SummaryList/index.d.ts +10 -2
  136. package/SummaryList/index.js +10 -2
  137. package/SummaryList/index.js.map +2 -2
  138. package/SummaryListItem/index.js +1 -1
  139. package/SummaryListItem/index.js.map +2 -2
  140. package/SummaryListItemKey/index.d.ts +14 -0
  141. package/SummaryListItemKey/index.js +14 -2
  142. package/SummaryListItemKey/index.js.map +2 -2
  143. package/SummaryListItemValue/index.d.ts +14 -0
  144. package/SummaryListItemValue/index.js +11 -2
  145. package/SummaryListItemValue/index.js.map +2 -2
  146. package/Table/index.d.ts +9 -0
  147. package/Table/index.js +4 -1
  148. package/Table/index.js.map +2 -2
  149. package/TableDataCell/index.d.ts +22 -0
  150. package/TableDataCell/index.js +18 -2
  151. package/TableDataCell/index.js.map +2 -2
  152. package/TextArea/index.native/index.js +1 -1
  153. package/TextArea/index.native.d.ts +1 -3
  154. package/TextArea/index.native.js.map +1 -1
  155. package/TextInput/index.native/index.js +1 -1
  156. package/TextInput/index.native.d.ts +1 -3
  157. package/TextInput/index.native.js.map +1 -1
  158. package/Typography/index.d.ts +1 -1
  159. package/Typography/index.js +15 -17
  160. package/Typography/index.js.map +2 -2
  161. package/WarningText/index.d.ts +7 -0
  162. package/WarningText/index.js +10 -2
  163. package/WarningText/index.js.map +2 -2
  164. package/cjs/Accordion/index.js +5 -35
  165. package/cjs/Accordion/index.js.map +3 -3
  166. package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
  167. package/cjs/Accordion/index.native.js.map +7 -0
  168. package/cjs/{ButtonLink → Accordion/index.web}/index.js +24 -16
  169. package/cjs/Accordion/index.web.js.map +7 -0
  170. package/cjs/AccordionSection/index.js +5 -21
  171. package/cjs/AccordionSection/index.js.map +3 -3
  172. package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
  173. package/cjs/AccordionSection/index.native.js.map +7 -0
  174. package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
  175. package/cjs/AccordionSection/index.web.js.map +7 -0
  176. package/cjs/AccordionSectionSummaryHeading/index.js +5 -3
  177. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  178. package/cjs/BackLinkBase/index.js +62 -0
  179. package/cjs/BackLinkBase/index.js.map +7 -0
  180. package/cjs/BannerContainer/index.js +1 -1
  181. package/cjs/BannerContainer/index.js.map +2 -2
  182. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  183. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  184. package/cjs/Base/compat/details.native/index.js +2 -1
  185. package/cjs/Base/compat/details.native.js.map +2 -2
  186. package/cjs/Base/index.native.js.map +2 -2
  187. package/cjs/Base/index.web.js.map +1 -1
  188. package/cjs/Base/mapping.native.js.map +2 -2
  189. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  190. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  191. package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
  192. package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
  193. package/cjs/Button/index.js +2 -0
  194. package/cjs/Button/index.js.map +2 -2
  195. package/cjs/ButtonLinkBase/index.js +60 -0
  196. package/cjs/ButtonLinkBase/index.js.map +7 -0
  197. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  198. package/cjs/CallToActionBase/index.js.map +7 -0
  199. package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
  200. package/cjs/CircularProgressBase/index.js.map +7 -0
  201. package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
  202. package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
  203. package/cjs/DateInputItem/index.native/index.js +2 -2
  204. package/cjs/DateInputItem/index.native.js.map +2 -2
  205. package/cjs/Details/index.native/index.js +2 -2
  206. package/cjs/Details/index.native.js.map +2 -2
  207. package/cjs/DetailsContent/index.js +3 -2
  208. package/cjs/DetailsContent/index.js.map +2 -2
  209. package/cjs/ErrorSummary/index.js +3 -3
  210. package/cjs/ErrorSummary/index.js.map +2 -2
  211. package/cjs/FileUpload/index.js +12 -4
  212. package/cjs/FileUpload/index.js.map +2 -2
  213. package/cjs/FileUploadContainer/index.js +3 -2
  214. package/cjs/FileUploadContainer/index.js.map +2 -2
  215. package/cjs/FooterLinkBase/index.js +56 -0
  216. package/cjs/FooterLinkBase/index.js.map +7 -0
  217. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  218. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  219. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  220. package/cjs/GovGRLogoBase/index.js.map +7 -0
  221. package/cjs/Grid/index.js +1 -0
  222. package/cjs/Grid/index.js.map +2 -2
  223. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  224. package/cjs/HeaderLogoBase/index.js.map +7 -0
  225. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  226. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  227. package/cjs/HeaderTitleBase/index.js +57 -0
  228. package/cjs/HeaderTitleBase/index.js.map +7 -0
  229. package/cjs/LinkBase/index.js +1 -0
  230. package/cjs/LinkBase/index.js.map +2 -2
  231. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +11 -11
  232. package/cjs/NavListItemActionBase/index.js.map +7 -0
  233. package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
  234. package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
  235. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  236. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  237. package/cjs/NotificationBannerContainer/index.js.map +2 -2
  238. package/cjs/NotificationBannerContent/index.js +14 -3
  239. package/cjs/NotificationBannerContent/index.js.map +2 -2
  240. package/cjs/NotificationBannerLink/index.native/index.js +2 -2
  241. package/cjs/NotificationBannerLink/index.native.js.map +2 -2
  242. package/cjs/Skeleton/index.js +2 -1
  243. package/cjs/Skeleton/index.js.map +2 -2
  244. package/cjs/SummaryList/index.js +10 -2
  245. package/cjs/SummaryList/index.js.map +2 -2
  246. package/cjs/SummaryListItem/index.js +1 -1
  247. package/cjs/SummaryListItem/index.js.map +2 -2
  248. package/cjs/SummaryListItemKey/index.js +14 -2
  249. package/cjs/SummaryListItemKey/index.js.map +3 -3
  250. package/cjs/SummaryListItemValue/index.js +11 -2
  251. package/cjs/SummaryListItemValue/index.js.map +3 -3
  252. package/cjs/Table/index.js +4 -1
  253. package/cjs/Table/index.js.map +2 -2
  254. package/cjs/TableDataCell/index.js +18 -2
  255. package/cjs/TableDataCell/index.js.map +3 -3
  256. package/cjs/TextArea/index.native/index.js +2 -2
  257. package/cjs/TextArea/index.native.js.map +2 -2
  258. package/cjs/TextInput/index.native/index.js +2 -2
  259. package/cjs/TextInput/index.native.js.map +2 -2
  260. package/cjs/Typography/index.js +15 -17
  261. package/cjs/Typography/index.js.map +2 -2
  262. package/cjs/WarningText/index.js +10 -2
  263. package/cjs/WarningText/index.js.map +2 -2
  264. package/cjs/index.js +24 -26
  265. package/cjs/index.js.map +2 -2
  266. package/cjs/lazy/index.js +15 -16
  267. package/cjs/lazy.js.map +2 -2
  268. package/cjs/registry/index.js +38 -36
  269. package/cjs/registry.js.map +2 -2
  270. package/cjs/utils/index.native/index.js +86 -0
  271. package/cjs/utils/index.native.js.map +7 -0
  272. package/index.d.ts +12 -13
  273. package/index.js +13 -14
  274. package/index.js.map +2 -2
  275. package/lazy/index.js +15 -16
  276. package/package.json +5 -5
  277. package/registry/index.js +38 -36
  278. package/src/Accordion/__snapshots__/index.test.tsx.snap +48 -0
  279. package/src/Accordion/index.native.tsx +19 -0
  280. package/src/Accordion/index.test.tsx +24 -0
  281. package/src/Accordion/index.tsx +2 -71
  282. package/src/Accordion/index.web.tsx +71 -0
  283. package/src/AccordionSection/index.native.tsx +18 -0
  284. package/src/AccordionSection/index.tsx +2 -28
  285. package/src/AccordionSection/index.web.tsx +27 -0
  286. package/src/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +17 -0
  287. package/src/AccordionSectionSummaryHeading/index.test.tsx +9 -0
  288. package/src/AccordionSectionSummaryHeading/index.tsx +12 -4
  289. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  290. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  291. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  292. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  293. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  294. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  295. package/src/BackLinkBase/index.test.tsx +15 -0
  296. package/src/BackLinkBase/index.tsx +36 -0
  297. package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
  298. package/src/BannerContainer/index.tsx +1 -1
  299. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  300. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  301. package/src/Base/compat/details.native.tsx +3 -1
  302. package/src/Base/index.native.tsx +2 -2
  303. package/src/Base/index.web.tsx +2 -2
  304. package/src/Base/mapping.native.tsx +1 -1
  305. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  306. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  307. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  308. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  309. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  310. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  311. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
  312. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
  313. package/src/Button/index.tsx +2 -0
  314. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  315. package/src/ButtonLinkBase/index.test.tsx +75 -0
  316. package/src/ButtonLinkBase/index.tsx +55 -0
  317. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  318. package/src/CallToActionBase/index.test.tsx +10 -0
  319. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  320. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  321. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  322. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  323. package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
  324. package/src/CircularProgressBase/index.test.tsx +38 -0
  325. package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
  326. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  327. package/src/CopyToClipboardMessage/index.native.tsx +1 -1
  328. package/src/DateInputItem/index.native.tsx +1 -1
  329. package/src/Details/index.native.tsx +1 -1
  330. package/src/DetailsContent/index.tsx +11 -2
  331. package/src/ErrorSummary/index.tsx +17 -4
  332. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  333. package/src/FileUpload/index.tsx +20 -4
  334. package/src/FileUploadContainer/index.tsx +10 -1
  335. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  336. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  337. package/src/FooterLinkBase/index.test.tsx +16 -0
  338. package/src/FooterLinkBase/index.tsx +27 -0
  339. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  340. package/src/GovGRLogoBase/index.test.tsx +8 -0
  341. package/src/GovGRLogoBase/index.tsx +43 -0
  342. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  343. package/src/Grid/index.tsx +2 -7
  344. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  345. package/src/HeaderLogoBase/index.test.tsx +8 -0
  346. package/src/HeaderLogoBase/index.tsx +44 -0
  347. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  348. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  349. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  350. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  351. package/src/HeaderTitleBase/index.test.tsx +17 -0
  352. package/src/HeaderTitleBase/index.tsx +28 -0
  353. package/src/LinkBase/index.tsx +1 -0
  354. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  355. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +100 -0
  356. package/src/NavListItemActionBase/index.test.tsx +42 -0
  357. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +15 -14
  358. package/src/NavListItemActionContainer/index.native.tsx +1 -1
  359. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  360. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  361. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  362. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  363. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  364. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  365. package/src/NotificationBannerContainer/index.tsx +2 -1
  366. package/src/NotificationBannerContent/index.tsx +50 -4
  367. package/src/NotificationBannerLink/index.native.tsx +1 -1
  368. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  369. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  370. package/src/Skeleton/index.tsx +3 -2
  371. package/src/SummaryList/__snapshots__/index.test.tsx.snap +36 -0
  372. package/src/SummaryList/index.test.tsx +15 -0
  373. package/src/SummaryList/index.tsx +20 -3
  374. package/src/SummaryListItem/index.tsx +1 -1
  375. package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +70 -0
  376. package/src/SummaryListItemKey/index.test.tsx +29 -0
  377. package/src/SummaryListItemKey/index.tsx +29 -1
  378. package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +34 -0
  379. package/src/SummaryListItemValue/index.test.tsx +14 -0
  380. package/src/SummaryListItemValue/index.tsx +30 -2
  381. package/src/Table/index.tsx +12 -0
  382. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +79 -2
  383. package/src/TableDataCell/index.test.tsx +42 -0
  384. package/src/TableDataCell/index.tsx +56 -1
  385. package/src/TableRow/__snapshots__/index.test.tsx.snap +1 -1
  386. package/src/TableRow/index.test.tsx +1 -1
  387. package/src/TextArea/index.native.tsx +1 -1
  388. package/src/TextInput/index.native.tsx +1 -1
  389. package/src/Typography/index.tsx +21 -20
  390. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  391. package/src/WarningText/index.test.tsx +5 -0
  392. package/src/WarningText/index.tsx +17 -2
  393. package/src/index.ts +12 -13
  394. package/src/lazy.js +246 -0
  395. package/src/registry.js +549 -0
  396. package/src/utils/index.native.tsx +122 -0
  397. package/utils/index.native/index.js +52 -0
  398. package/utils/index.native/package.json +6 -0
  399. package/utils/index.native.d.ts +43 -0
  400. package/utils/index.native.js.map +7 -0
  401. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  402. package/AutoCompleteInputTypeahead/index.js +0 -25
  403. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  404. package/BackLink/index.d.ts +0 -9
  405. package/BackLink/index.js +0 -31
  406. package/BackLink/index.js.map +0 -7
  407. package/BreadcrumbsListItem/index.d.ts +0 -10
  408. package/BreadcrumbsListItem/index.js.map +0 -7
  409. package/BreadcrumbsListItemLink/index.js +0 -24
  410. package/BreadcrumbsListItemLink/index.js.map +0 -7
  411. package/ButtonLink/index.js +0 -29
  412. package/ButtonLink/index.js.map +0 -7
  413. package/CallToAction/index.d.ts +0 -9
  414. package/CallToAction/index.js.map +0 -7
  415. package/CheckboxItemInput/index.native/index.js +0 -20
  416. package/CheckboxItemInput/index.native/package.json +0 -6
  417. package/CheckboxItemInput/index.native.d.ts +0 -4
  418. package/CheckboxItemInput/index.native.js.map +0 -7
  419. package/CircularProgress/index.js.map +0 -7
  420. package/FooterLink/index.d.ts +0 -9
  421. package/FooterLink/index.js +0 -25
  422. package/FooterLink/index.js.map +0 -7
  423. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  424. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  425. package/GovGRLogo/index.d.ts +0 -9
  426. package/GovGRLogo/index.js +0 -45
  427. package/GovGRLogo/index.js.map +0 -7
  428. package/GovGRLogo/package.json +0 -6
  429. package/HeaderLogo/index.d.ts +0 -19
  430. package/HeaderLogo/index.js +0 -35
  431. package/HeaderLogo/index.js.map +0 -7
  432. package/HeaderLogo/package.json +0 -6
  433. package/HeaderSecondaryLogo/index.d.ts +0 -19
  434. package/HeaderSecondaryLogo/index.js.map +0 -7
  435. package/HeaderSecondaryLogo/package.json +0 -6
  436. package/HeaderTitle/index.d.ts +0 -9
  437. package/HeaderTitle/index.js +0 -24
  438. package/HeaderTitle/index.js.map +0 -7
  439. package/HeaderTitle/package.json +0 -6
  440. package/NavListItemAction/index.js.map +0 -7
  441. package/NavListItemAction/package.json +0 -6
  442. package/NavListItemLink/index.js.map +0 -7
  443. package/NavListItemLink/index.test.d.ts +0 -1
  444. package/NavListItemLink/package.json +0 -6
  445. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  446. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  447. package/cjs/BackLink/index.js +0 -64
  448. package/cjs/BackLink/index.js.map +0 -7
  449. package/cjs/BreadcrumbsListItem/index.js.map +0 -7
  450. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  451. package/cjs/ButtonLink/index.js.map +0 -7
  452. package/cjs/CallToAction/index.js.map +0 -7
  453. package/cjs/CheckboxItemInput/index.native.js.map +0 -7
  454. package/cjs/CircularProgress/index.js.map +0 -7
  455. package/cjs/FooterLink/index.js +0 -58
  456. package/cjs/FooterLink/index.js.map +0 -7
  457. package/cjs/GovGRLogo/index.js.map +0 -7
  458. package/cjs/HeaderLogo/index.js +0 -68
  459. package/cjs/HeaderLogo/index.js.map +0 -7
  460. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  461. package/cjs/HeaderTitle/index.js.map +0 -7
  462. package/cjs/NavListItemAction/index.js.map +0 -7
  463. package/cjs/NavListItemLink/index.js.map +0 -7
  464. package/cjs/utils/extend.native.js.map +0 -7
  465. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  466. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  467. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
  468. package/src/BackLink/index.test.tsx +0 -13
  469. package/src/BackLink/index.tsx +0 -35
  470. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  471. package/src/ButtonLink/index.test.tsx +0 -69
  472. package/src/ButtonLink/index.tsx +0 -54
  473. package/src/CallToAction/index.test.tsx +0 -10
  474. package/src/CheckboxItemInput/index.native.tsx +0 -17
  475. package/src/CircularProgress/index.test.tsx +0 -34
  476. package/src/FooterLink/index.test.tsx +0 -14
  477. package/src/FooterLink/index.tsx +0 -26
  478. package/src/GovGRLogo/index.test.tsx +0 -8
  479. package/src/GovGRLogo/index.tsx +0 -42
  480. package/src/HeaderLogo/index.test.tsx +0 -8
  481. package/src/HeaderLogo/index.tsx +0 -43
  482. package/src/HeaderTitle/index.test.tsx +0 -16
  483. package/src/HeaderTitle/index.tsx +0 -28
  484. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  485. package/src/NavListItemAction/index.test.tsx +0 -11
  486. package/src/NavListItemLink/index.test.tsx +0 -39
  487. package/src/utils/extend.native.tsx +0 -36
  488. package/utils/extend.native/index.js +0 -14
  489. package/utils/extend.native/package.json +0 -6
  490. package/utils/extend.native.d.ts +0 -23
  491. package/utils/extend.native.js.map +0 -7
  492. /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
  493. /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  494. /package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
  495. /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
  496. /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
  497. /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
  498. /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
  499. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  500. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  501. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  502. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  503. /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
  504. /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  505. /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  506. /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
  507. /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
  508. /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
  509. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  510. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  511. /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
  512. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  513. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
@@ -1,28 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface AccordionProps extends BaseProps<'div'> {
4
- horizontalBorders?: 'none' | 'top' | 'bottom';
5
- /**
6
- * summaryColor is optional.
7
- * 'primary' color gives AccordionSectionSummary the default color.
8
- * 'secondary' color gives AccordionSectionSummary a gray background.
9
- * @value primary
10
- * @value secondary
11
- * @default primary
12
- * */
13
- summaryColor?: 'primary' | 'secondary';
14
- /**
15
- * dense is optional.
16
- * If true, AccordionSection will have a smaller padding.
17
- * @value true
18
- * @value false
19
- * @default false
20
- * */
21
- dense?: boolean;
22
- }
23
- /**
24
- * Accordion is the main component for an accordion.
25
- * Inside this component must be a list of AccordionSection components.
26
- */
27
- export declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
- export default Accordion;
1
+ export * from '@digigov/react-core/Accordion/index.web';
2
+ export { default as default } from '@digigov/react-core/Accordion/index.web';
@@ -1,37 +1,6 @@
1
- import React from "react";
2
- import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base";
4
- const Accordion = React.forwardRef(
5
- function Accordion2({
6
- className,
7
- horizontalBorders = "top",
8
- summaryColor = "primary",
9
- dense,
10
- children,
11
- ...props
12
- }, ref) {
13
- return /* @__PURE__ */ React.createElement(
14
- Base,
15
- {
16
- as: "div",
17
- ref,
18
- className: clsx(className, {
19
- "ds-accordion": true,
20
- "ds-accordion--no-border": horizontalBorders === "none",
21
- "ds-accordion--border-top": horizontalBorders === "top",
22
- "ds-accordion--border-bottom": horizontalBorders === "bottom",
23
- "ds-accordion--dense": dense,
24
- "ds-accordion--secondary": summaryColor === "secondary"
25
- }),
26
- ...props
27
- },
28
- children
29
- );
30
- }
31
- );
32
- var Accordion_default = Accordion;
1
+ export * from "@digigov/react-core/Accordion/index.web";
2
+ import { default as default2 } from "@digigov/react-core/Accordion/index.web";
33
3
  export {
34
- Accordion,
35
- Accordion_default as default
4
+ default2 as default
36
5
  };
37
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Accordion/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AccordionProps extends BaseProps<'div'> {\n /*\n * horizontalBorders is optional.\n * If 'none', Accordion will have no borders.\n * If 'top', Accordion will have a border on top.\n * If 'bottom', Accordion will have a border on bottom.\n * @value none\n * @value top\n * @value bottom\n * @default top\n */\n horizontalBorders?: 'none' | 'top' | 'bottom';\n /**\n * summaryColor is optional.\n * 'primary' color gives AccordionSectionSummary the default color.\n * 'secondary' color gives AccordionSectionSummary a gray background.\n * @value primary\n * @value secondary\n * @default primary\n * */\n summaryColor?: 'primary' | 'secondary';\n /**\n * dense is optional.\n * If true, AccordionSection will have a smaller padding.\n * @value true\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * Accordion is the main component for an accordion.\n * Inside this component must be a list of AccordionSection components.\n */\nexport const Accordion = React.forwardRef<HTMLDivElement, AccordionProps>(\n function Accordion(\n {\n className,\n horizontalBorders = 'top',\n summaryColor = 'primary',\n dense,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion': true,\n 'ds-accordion--no-border': horizontalBorders === 'none',\n 'ds-accordion--border-top': horizontalBorders === 'top',\n 'ds-accordion--border-bottom': horizontalBorders === 'bottom',\n 'ds-accordion--dense': dense,\n 'ds-accordion--secondary': summaryColor === 'secondary',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Accordion;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAoCzB,MAAM,YAAY,MAAM;AAAA,EAC7B,SAASA,WACP;AAAA,IACE;AAAA,IACA,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,gBAAgB;AAAA,UAChB,2BAA2B,sBAAsB;AAAA,UACjD,4BAA4B,sBAAsB;AAAA,UAClD,+BAA+B,sBAAsB;AAAA,UACrD,uBAAuB;AAAA,UACvB,2BAA2B,iBAAiB;AAAA,QAC9C,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
- "names": ["Accordion"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/Accordion/index.web';\nexport { default as default } from '@digigov/react-core/Accordion/index.web';\n"],
5
+ "mappings": "AAAA,cAAc;AACd,SAAoB,WAAXA,gBAA0B;",
6
+ "names": ["default"]
7
7
  }
@@ -0,0 +1,22 @@
1
+ import CoreAccordion from "@digigov/react-core/Accordion/index.web";
2
+ import extend, {
3
+ enablePseudoclass
4
+ } from "@digigov/react-core/utils/index.native";
5
+ const Accordion = enablePseudoclass(
6
+ extend(CoreAccordion, ({ className, ...props }) => ({
7
+ ...props,
8
+ multiline: true,
9
+ className
10
+ })),
11
+ {
12
+ children: {
13
+ "first-child": ["ds-accordion__section__first-child"]
14
+ }
15
+ }
16
+ );
17
+ var index_native_default = Accordion;
18
+ export {
19
+ Accordion,
20
+ index_native_default as default
21
+ };
22
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/Accordion/index.native/index.js"
6
+ }
@@ -0,0 +1,2 @@
1
+ export declare const Accordion: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("@digigov/react-core/Accordion/index.web").AccordionProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<unknown>, "ref"> & import("react").RefAttributes<unknown>>;
2
+ export default Accordion;
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Accordion/index.native.tsx"],
4
+ "sourcesContent": ["import CoreAccordion from '@digigov/react-core/Accordion/index.web';\nimport extend, {\n enablePseudoclass,\n} from '@digigov/react-core/utils/index.native';\n\nexport const Accordion = enablePseudoclass(\n extend(CoreAccordion, ({ className, ...props }) => ({\n ...props,\n multiline: true,\n className,\n })),\n {\n children: {\n 'first-child': ['ds-accordion__section__first-child'],\n },\n }\n);\n\nexport default Accordion;\n"],
5
+ "mappings": "AAAA,OAAO,mBAAmB;AAC1B,OAAO;AAAA,EACL;AAAA,OACK;AAEA,MAAM,YAAY;AAAA,EACvB,OAAO,eAAe,CAAC,EAAE,WAAW,GAAG,MAAM,OAAO;AAAA,IAClD,GAAG;AAAA,IACH,WAAW;AAAA,IACX;AAAA,EACF,EAAE;AAAA,EACF;AAAA,IACE,UAAU;AAAA,MACR,eAAe,CAAC,oCAAoC;AAAA,IACtD;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import Base from "@digigov/react-core/Base";
4
+ const Accordion = React.forwardRef(
5
+ function Accordion2({
6
+ className,
7
+ horizontalBorders = "top",
8
+ summaryColor = "primary",
9
+ dense,
10
+ children,
11
+ ...props
12
+ }, ref) {
13
+ return /* @__PURE__ */ React.createElement(
14
+ Base,
15
+ {
16
+ as: "div",
17
+ ref,
18
+ className: clsx(className, {
19
+ "ds-accordion": true,
20
+ "ds-accordion--no-border": horizontalBorders === "none",
21
+ "ds-accordion--border-top": horizontalBorders === "top",
22
+ "ds-accordion--border-bottom": horizontalBorders === "bottom",
23
+ "ds-accordion--dense": dense,
24
+ "ds-accordion--secondary": summaryColor === "secondary"
25
+ }),
26
+ ...props
27
+ },
28
+ children
29
+ );
30
+ }
31
+ );
32
+ var index_web_default = Accordion;
33
+ export {
34
+ Accordion,
35
+ index_web_default as default
36
+ };
37
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/Accordion/index.web/index.js"
6
+ }
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface AccordionProps extends BaseProps<'div'> {
4
+ horizontalBorders?: 'none' | 'top' | 'bottom';
5
+ /**
6
+ * summaryColor is optional.
7
+ * 'primary' color gives AccordionSectionSummary the default color.
8
+ * 'secondary' color gives AccordionSectionSummary a gray background.
9
+ * @value primary
10
+ * @value secondary
11
+ * @default primary
12
+ * */
13
+ summaryColor?: 'primary' | 'secondary';
14
+ /**
15
+ * dense is optional.
16
+ * If true, AccordionSection will have a smaller padding.
17
+ * @value true
18
+ * @value false
19
+ * @default false
20
+ * */
21
+ dense?: boolean;
22
+ }
23
+ /**
24
+ * Accordion is the main component for an accordion.
25
+ * Inside this component must be a list of AccordionSection components.
26
+ */
27
+ export declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
28
+ export default Accordion;
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Accordion/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AccordionProps extends BaseProps<'div'> {\n /*\n * horizontalBorders is optional.\n * If 'none', Accordion will have no borders.\n * If 'top', Accordion will have a border on top.\n * If 'bottom', Accordion will have a border on bottom.\n * @value none\n * @value top\n * @value bottom\n * @default top\n */\n horizontalBorders?: 'none' | 'top' | 'bottom';\n /**\n * summaryColor is optional.\n * 'primary' color gives AccordionSectionSummary the default color.\n * 'secondary' color gives AccordionSectionSummary a gray background.\n * @value primary\n * @value secondary\n * @default primary\n * */\n summaryColor?: 'primary' | 'secondary';\n /**\n * dense is optional.\n * If true, AccordionSection will have a smaller padding.\n * @value true\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * Accordion is the main component for an accordion.\n * Inside this component must be a list of AccordionSection components.\n */\nexport const Accordion = React.forwardRef<HTMLDivElement, AccordionProps>(\n function Accordion(\n {\n className,\n horizontalBorders = 'top',\n summaryColor = 'primary',\n dense,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion': true,\n 'ds-accordion--no-border': horizontalBorders === 'none',\n 'ds-accordion--border-top': horizontalBorders === 'top',\n 'ds-accordion--border-bottom': horizontalBorders === 'bottom',\n 'ds-accordion--dense': dense,\n 'ds-accordion--secondary': summaryColor === 'secondary',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Accordion;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAoCzB,MAAM,YAAY,MAAM;AAAA,EAC7B,SAASA,WACP;AAAA,IACE;AAAA,IACA,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,gBAAgB;AAAA,UAChB,2BAA2B,sBAAsB;AAAA,UACjD,4BAA4B,sBAAsB;AAAA,UAClD,+BAA+B,sBAAsB;AAAA,UACrD,uBAAuB;AAAA,UACvB,2BAA2B,iBAAiB;AAAA,QAC9C,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
+ "names": ["Accordion"]
7
+ }
@@ -1,11 +1,2 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface AccordionSectionProps extends BaseProps<'details'> {
4
- }
5
- /**
6
- * AccordionSection should be inside the Accordion component.
7
- *
8
- * Inside this component must place the Accordion and the AccordionSectionContent components.
9
- */
10
- export declare const AccordionSection: React.ForwardRefExoticComponent<Omit<AccordionSectionProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
11
- export default AccordionSection;
1
+ export * from '@digigov/react-core/AccordionSection/index.web';
2
+ export { default as default } from '@digigov/react-core/AccordionSection/index.web';
@@ -1,23 +1,6 @@
1
- import React from "react";
2
- import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base";
4
- const AccordionSection = React.forwardRef(function AccordionSection2({ className, children, ...props }, ref) {
5
- return /* @__PURE__ */ React.createElement(
6
- Base,
7
- {
8
- as: "details",
9
- ref,
10
- className: clsx(className, {
11
- "ds-accordion__section": true
12
- }),
13
- ...props
14
- },
15
- children
16
- );
17
- });
18
- var AccordionSection_default = AccordionSection;
1
+ export * from "@digigov/react-core/AccordionSection/index.web";
2
+ import { default as default2 } from "@digigov/react-core/AccordionSection/index.web";
19
3
  export {
20
- AccordionSection,
21
- AccordionSection_default as default
4
+ default2 as default
22
5
  };
23
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AccordionSection/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nexport interface AccordionSectionProps extends BaseProps<'details'> {}\n/**\n * AccordionSection should be inside the Accordion component.\n *\n * Inside this component must place the Accordion and the AccordionSectionContent components.\n */\nexport const AccordionSection = React.forwardRef<\n HTMLDetailsElement,\n AccordionSectionProps\n>(function AccordionSection({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"details\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion__section': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default AccordionSection;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,mBAAmB,MAAM,WAGpC,SAASA,kBAAiB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAClE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,yBAAyB;AAAA,MAC3B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,2BAAQ;",
6
- "names": ["AccordionSection"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/AccordionSection/index.web';\nexport { default as default } from '@digigov/react-core/AccordionSection/index.web';\n"],
5
+ "mappings": "AAAA,cAAc;AACd,SAAoB,WAAXA,gBAA0B;",
6
+ "names": ["default"]
7
7
  }
@@ -0,0 +1,21 @@
1
+ import CoreAccordionSection from "@digigov/react-core/AccordionSection/index.web";
2
+ import { extend } from "@digigov/react-core/utils/index.native";
3
+ const AccordionSection = extend(
4
+ CoreAccordionSection,
5
+ ({ className, ...props }) => {
6
+ return {
7
+ className,
8
+ iconClassName: "ds-accordion__section-button-icon",
9
+ openIcon: "\u2013",
10
+ closeIcon: "+",
11
+ placement: "after",
12
+ ...props
13
+ };
14
+ }
15
+ );
16
+ var index_native_default = AccordionSection;
17
+ export {
18
+ AccordionSection,
19
+ index_native_default as default
20
+ };
21
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/AccordionSection/index.native/index.js"
6
+ }
@@ -0,0 +1,2 @@
1
+ export declare const AccordionSection: import("react").ForwardRefExoticComponent<Omit<Omit<import("@digigov/react-core/AccordionSection/index.web").AccordionSectionProps, "ref"> & import("react").RefAttributes<HTMLDetailsElement>, "ref"> & import("react").RefAttributes<unknown>>;
2
+ export default AccordionSection;
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AccordionSection/index.native.tsx"],
4
+ "sourcesContent": ["import CoreAccordionSection from '@digigov/react-core/AccordionSection/index.web';\nimport { extend } from '@digigov/react-core/utils/index.native';\n\nexport const AccordionSection = extend(\n CoreAccordionSection,\n ({ className, ...props }) => {\n return {\n className: className,\n iconClassName: 'ds-accordion__section-button-icon',\n openIcon: '\u2013',\n closeIcon: '+',\n placement: 'after',\n ...props,\n };\n }\n);\n\nexport default AccordionSection;\n"],
5
+ "mappings": "AAAA,OAAO,0BAA0B;AACjC,SAAS,cAAc;AAEhB,MAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AAC3B,WAAO;AAAA,MACL;AAAA,MACA,eAAe;AAAA,MACf,UAAU;AAAA,MACV,WAAW;AAAA,MACX,WAAW;AAAA,MACX,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import Base from "@digigov/react-core/Base";
4
+ const AccordionSection = React.forwardRef(function AccordionSection2({ className, children, ...props }, ref) {
5
+ return /* @__PURE__ */ React.createElement(
6
+ Base,
7
+ {
8
+ as: "details",
9
+ ref,
10
+ className: clsx(className, {
11
+ "ds-accordion__section": true
12
+ }),
13
+ ...props
14
+ },
15
+ children
16
+ );
17
+ });
18
+ var index_web_default = AccordionSection;
19
+ export {
20
+ AccordionSection,
21
+ index_web_default as default
22
+ };
23
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/AccordionSection/index.web/index.js"
6
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface AccordionSectionProps extends BaseProps<'details'> {
4
+ }
5
+ /**
6
+ * AccordionSection should be inside the Accordion component.
7
+ * Inside this component must place the Accordion and the AccordionSectionContent components.
8
+ */
9
+ export declare const AccordionSection: React.ForwardRefExoticComponent<Omit<AccordionSectionProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
10
+ export default AccordionSection;
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/AccordionSection/index.web.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nexport interface AccordionSectionProps extends BaseProps<'details'> {}\n/**\n * AccordionSection should be inside the Accordion component.\n * Inside this component must place the Accordion and the AccordionSectionContent components.\n */\nexport const AccordionSection = React.forwardRef<\n HTMLDetailsElement,\n AccordionSectionProps\n>(function AccordionSection({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"details\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion__section': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default AccordionSection;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAMzB,MAAM,mBAAmB,MAAM,WAGpC,SAASA,kBAAiB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAClE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,yBAAyB;AAAA,MAC3B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
6
+ "names": ["AccordionSection"]
7
+ }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {
4
+ variant?: 'default' | 'arrows';
4
5
  }
5
6
  /**
6
7
  * AccordionSectionSummaryHeading should be placed inside AccordionSectionSummary.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
3
  import Base from "@digigov/react-core/Base";
4
- const AccordionSectionSummaryHeading = React.forwardRef(function AccordionSectionSummaryHeading2({ className, children, ...props }, ref) {
4
+ const AccordionSectionSummaryHeading = React.forwardRef(function AccordionSectionSummaryHeading2({ variant, className, children, ...props }, ref) {
5
5
  return /* @__PURE__ */ React.createElement(
6
6
  Base,
7
7
  {
@@ -14,10 +14,12 @@ const AccordionSectionSummaryHeading = React.forwardRef(function AccordionSectio
14
14
  role: "button"
15
15
  },
16
16
  /* @__PURE__ */ React.createElement(
17
- "span",
17
+ Base,
18
18
  {
19
+ as: "span",
19
20
  className: clsx({
20
- "ds-accordion__section-button": true
21
+ "ds-accordion__section-button": true,
22
+ "ds-accordion__section-button--arrows": variant === "arrows"
21
23
  })
22
24
  },
23
25
  children
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AccordionSectionSummaryHeading/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {}\n/**\n * AccordionSectionSummaryHeading should be placed inside AccordionSectionSummary.\n */\nexport const AccordionSectionSummaryHeading = React.forwardRef<\n HTMLHeadingElement,\n AccordionSectionSummaryHeadingProps\n>(function AccordionSectionSummaryHeading(\n { className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"h2\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion__section-heading': true,\n })}\n {...props}\n role=\"button\"\n >\n <span\n className={clsx({\n 'ds-accordion__section-button': true,\n })}\n >\n {children}\n </span>\n </Base>\n );\n});\n\nexport default AccordionSectionSummaryHeading;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAMzB,MAAM,iCAAiC,MAAM,WAGlD,SAASA,gCACT,EAAE,WAAW,UAAU,GAAG,MAAM,GAChC,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA,MACJ,MAAK;AAAA;AAAA,IAEL;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK;AAAA,UACd,gCAAgC;AAAA,QAClC,CAAC;AAAA;AAAA,MAEA;AAAA,IACH;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,yCAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {\n /*\n * The type of the icon to be displayed on the right side of the heading.\n * @default 'default'\n */\n variant?: 'default' | 'arrows';\n}\n/**\n * AccordionSectionSummaryHeading should be placed inside AccordionSectionSummary.\n */\nexport const AccordionSectionSummaryHeading = React.forwardRef<\n HTMLHeadingElement,\n AccordionSectionSummaryHeadingProps\n>(function AccordionSectionSummaryHeading(\n { variant, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"h2\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion__section-heading': true,\n })}\n {...props}\n role=\"button\"\n >\n <Base\n as=\"span\"\n className={clsx({\n 'ds-accordion__section-button': true,\n 'ds-accordion__section-button--arrows': variant === 'arrows',\n })}\n >\n {children}\n </Base>\n </Base>\n );\n});\n\nexport default AccordionSectionSummaryHeading;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAYzB,MAAM,iCAAiC,MAAM,WAGlD,SAASA,gCACT,EAAE,SAAS,WAAW,UAAU,GAAG,MAAM,GACzC,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA,MACJ,MAAK;AAAA;AAAA,IAEL;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,WAAW,KAAK;AAAA,UACd,gCAAgC;AAAA,UAChC,wCAAwC,YAAY;AAAA,QACtD,CAAC;AAAA;AAAA,MAEA;AAAA,IACH;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,yCAAQ;",
6
6
  "names": ["AccordionSectionSummaryHeading"]
7
7
  }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface BackLinkBaseProps extends LinkBaseProps {
4
+ }
5
+ /**
6
+ * Use BackLinkBase component to help users go back to the previous page in a multi-page transaction.
7
+ */
8
+ export declare const BackLinkBase: React.ForwardRefExoticComponent<Omit<BackLinkBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
9
+ export default BackLinkBase;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import { LinkBase } from "@digigov/react-core/LinkBase";
4
+ import { CaretIcon } from "@digigov/react-icons";
5
+ const BackLinkBase = React.forwardRef(function BackLinkBase2({ href, printHidden = true, className, children, ...props }, ref) {
6
+ return /* @__PURE__ */ React.createElement(
7
+ LinkBase,
8
+ {
9
+ href,
10
+ printHidden,
11
+ defaultStyle: false,
12
+ onClick: () => !href && window.history.back(),
13
+ ref,
14
+ className: clsx(className, {
15
+ "ds-back-link": true
16
+ }),
17
+ tabIndex: 0,
18
+ ...props
19
+ },
20
+ /* @__PURE__ */ React.createElement(CaretIcon, { direction: "left" }),
21
+ children
22
+ );
23
+ });
24
+ var BackLinkBase_default = BackLinkBase;
25
+ export {
26
+ BackLinkBase,
27
+ BackLinkBase_default as default
28
+ };
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/BackLinkBase/index.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';\nimport { CaretIcon } from '@digigov/react-icons';\n\nexport interface BackLinkBaseProps extends LinkBaseProps {}\n/**\n * Use BackLinkBase component to help users go back to the previous page in a multi-page transaction.\n */\nexport const BackLinkBase = React.forwardRef<\n HTMLAnchorElement,\n BackLinkBaseProps\n>(function BackLinkBase(\n { href, printHidden = true, className, children, ...props },\n ref\n) {\n return (\n <LinkBase\n href={href}\n printHidden={printHidden}\n defaultStyle={false}\n onClick={() => !href && window.history.back()}\n ref={ref}\n className={clsx(className, {\n 'ds-back-link': true,\n })}\n tabIndex={0}\n {...props}\n >\n <CaretIcon direction={'left'} />\n {children}\n </LinkBase>\n );\n});\n\nexport default BackLinkBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,gBAA+B;AACxC,SAAS,iBAAiB;AAMnB,MAAM,eAAe,MAAM,WAGhC,SAASA,cACT,EAAE,MAAM,cAAc,MAAM,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,SAAS,MAAM,CAAC,QAAQ,OAAO,QAAQ,KAAK;AAAA,MAC5C;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,gBAAgB;AAAA,MAClB,CAAC;AAAA,MACD,UAAU;AAAA,MACT,GAAG;AAAA;AAAA,IAEJ,oCAAC,aAAU,WAAW,QAAQ;AAAA,IAC7B;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,uBAAQ;",
6
+ "names": ["BackLinkBase"]
7
+ }
@@ -2,5 +2,5 @@
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
4
  "types": "./index.d.ts",
5
- "main": "../cjs/ButtonLink/index.js"
5
+ "main": "../cjs/BackLinkBase/index.js"
6
6
  }
@@ -8,7 +8,7 @@ const BannerContainer = React.forwardRef(function BannerContainer2({ className,
8
8
  as: "div",
9
9
  ref,
10
10
  className: clsx(className, {
11
- "ds-cookie-banner": true
11
+ "ds-banner-container": true
12
12
  }),
13
13
  ...props
14
14
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/BannerContainer/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { Base, BaseProps } from '@digigov/react-core/Base';\n\nexport interface BannerContainerProps extends BaseProps<'div'> {}\n\nexport const BannerContainer = React.forwardRef<\n HTMLDivElement,\n BannerContainerProps\n>(function BannerContainer({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-cookie-banner': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default BannerContainer;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,YAAuB;AAIzB,MAAM,kBAAkB,MAAM,WAGnC,SAASA,iBAAgB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACjE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,oBAAoB;AAAA,MACtB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,0BAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { Base, BaseProps } from '@digigov/react-core/Base';\n\nexport interface BannerContainerProps extends BaseProps<'div'> {}\n\nexport const BannerContainer = React.forwardRef<\n HTMLDivElement,\n BannerContainerProps\n>(function BannerContainer({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-banner-container': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default BannerContainer;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,YAAuB;AAIzB,MAAM,kBAAkB,MAAM,WAGnC,SAASA,iBAAgB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACjE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,MACzB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,0BAAQ;",
6
6
  "names": ["BannerContainer"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/Base/compat/Input/CheckboxInput.native.tsx"],
4
- "sourcesContent": ["import React, {\n DetailedHTMLProps,\n InputHTMLAttributes,\n LegacyRef,\n} from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nexport type CheckboxInputProps = Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n 'ref'\n>;\n\nexport const CheckboxInput = React.forwardRef<\n HTMLInputElement,\n CheckboxInputProps\n>(function CheckboxInput({ checked, value, onChange, ...props }, ref) {\n const handlePress = () => {\n if (onChange) {\n const syntheticEvent = {\n currentTarget: {\n value,\n checked: !checked,\n },\n } as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n return (\n // @ts-ignore\n <TouchableOpacity\n ref={ref as LegacyRef<TouchableOpacity>}\n onPress={handlePress}\n {...props}\n >\n {checked && <View className=\"ds-checkboxes__input--checked\" />}\n </TouchableOpacity>\n );\n});\n\nexport default CheckboxInput;\n"],
5
- "mappings": "AAAA,OAAO,WAIA;AACP,SAAS,kBAAkB,YAAY;AAOhC,MAAM,gBAAgB,MAAM,WAGjC,SAASA,eAAc,EAAE,SAAS,OAAO,UAAU,GAAG,MAAM,GAAG,KAAK;AACpE,QAAM,cAAc,MAAM;AACxB,QAAI,UAAU;AACZ,YAAM,iBAAiB;AAAA,QACrB,eAAe;AAAA,UACb;AAAA,UACA,SAAS,CAAC;AAAA,QACZ;AAAA,MACF;AACA,eAAS,cAAc;AAAA,IACzB;AAAA,EACF;AACA;AAAA;AAAA,IAEE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACR,GAAG;AAAA;AAAA,MAEH,WAAW,oCAAC,QAAK,WAAU,iCAAgC;AAAA,IAC9D;AAAA;AAEJ,CAAC;AAED,IAAO,+BAAQ;",
4
+ "sourcesContent": ["import React, { DetailedHTMLProps, InputHTMLAttributes, Ref } from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nexport type CheckboxInputProps = Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n 'ref'\n>;\n\nexport const CheckboxInput = React.forwardRef<\n HTMLInputElement,\n CheckboxInputProps\n>(function CheckboxInput({ checked, value, onChange, ...props }, ref) {\n const handlePress = () => {\n if (onChange) {\n const syntheticEvent = {\n currentTarget: {\n value,\n checked: !checked,\n },\n } as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n return (\n // @ts-ignore\n <TouchableOpacity\n ref={ref as Ref<TouchableOpacity>}\n onPress={handlePress}\n {...props}\n >\n {checked && <View className=\"ds-checkboxes__input--checked\" />}\n </TouchableOpacity>\n );\n});\n\nexport default CheckboxInput;\n"],
5
+ "mappings": "AAAA,OAAO,WAA4D;AACnE,SAAS,kBAAkB,YAAY;AAOhC,MAAM,gBAAgB,MAAM,WAGjC,SAASA,eAAc,EAAE,SAAS,OAAO,UAAU,GAAG,MAAM,GAAG,KAAK;AACpE,QAAM,cAAc,MAAM;AACxB,QAAI,UAAU;AACZ,YAAM,iBAAiB;AAAA,QACrB,eAAe;AAAA,UACb;AAAA,UACA,SAAS,CAAC;AAAA,QACZ;AAAA,MACF;AACA,eAAS,cAAc;AAAA,IACzB;AAAA,EACF;AACA;AAAA;AAAA,IAEE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACR,GAAG;AAAA;AAAA,MAEH,WAAW,oCAAC,QAAK,WAAU,iCAAgC;AAAA,IAC9D;AAAA;AAEJ,CAAC;AAED,IAAO,+BAAQ;",
6
6
  "names": ["CheckboxInput"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/Base/compat/Input/RadioInput.native.tsx"],
4
- "sourcesContent": ["import React, {\n DetailedHTMLProps,\n InputHTMLAttributes,\n LegacyRef,\n} from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nexport type RadioInputProps = Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n 'ref'\n>;\n\nexport const RadioInput = React.forwardRef<HTMLInputElement, RadioInputProps>(\n function RadioInput({ value, checked, onChange, ...props }, ref) {\n const handlePress = () => {\n if (onChange) {\n const syntheticEvent = {\n target: {\n value: value,\n checked: true,\n },\n } as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n\n return (\n <TouchableOpacity\n ref={ref as LegacyRef<typeof TouchableOpacity>}\n onPress={handlePress}\n {...(props as any)}\n >\n {checked && <View className=\"ds-radios__input--checked\" />}\n </TouchableOpacity>\n );\n }\n);\n\nexport default RadioInput;\n"],
5
- "mappings": "AAAA,OAAO,WAIA;AACP,SAAS,kBAAkB,YAAY;AAOhC,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YAAW,EAAE,OAAO,SAAS,UAAU,GAAG,MAAM,GAAG,KAAK;AAC/D,UAAM,cAAc,MAAM;AACxB,UAAI,UAAU;AACZ,cAAM,iBAAiB;AAAA,UACrB,QAAQ;AAAA,YACN;AAAA,YACA,SAAS;AAAA,UACX;AAAA,QACF;AACA,iBAAS,cAAc;AAAA,MACzB;AAAA,IACF;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACR,GAAI;AAAA;AAAA,MAEJ,WAAW,oCAAC,QAAK,WAAU,6BAA4B;AAAA,IAC1D;AAAA,EAEJ;AACF;AAEA,IAAO,4BAAQ;",
4
+ "sourcesContent": ["import React, { DetailedHTMLProps, InputHTMLAttributes, Ref } from 'react';\nimport { TouchableOpacity, View } from 'react-native';\n\nexport type RadioInputProps = Omit<\n DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,\n 'ref'\n>;\n\nexport const RadioInput = React.forwardRef<HTMLInputElement, RadioInputProps>(\n function RadioInput({ value, checked, onChange, ...props }, ref) {\n const handlePress = () => {\n if (onChange) {\n const syntheticEvent = {\n target: {\n value: value,\n checked: true,\n },\n } as React.ChangeEvent<HTMLInputElement>;\n onChange(syntheticEvent);\n }\n };\n\n return (\n <TouchableOpacity\n ref={ref as Ref<typeof TouchableOpacity>}\n onPress={handlePress}\n {...(props as any)}\n >\n {checked && <View className=\"ds-radios__input--checked\" />}\n </TouchableOpacity>\n );\n }\n);\n\nexport default RadioInput;\n"],
5
+ "mappings": "AAAA,OAAO,WAA4D;AACnE,SAAS,kBAAkB,YAAY;AAOhC,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YAAW,EAAE,OAAO,SAAS,UAAU,GAAG,MAAM,GAAG,KAAK;AAC/D,UAAM,cAAc,MAAM;AACxB,UAAI,UAAU;AACZ,cAAM,iBAAiB;AAAA,UACrB,QAAQ;AAAA,YACN;AAAA,YACA,SAAS;AAAA,UACX;AAAA,QACF;AACA,iBAAS,cAAc;AAAA,MACzB;AAAA,IACF;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACR,GAAI;AAAA;AAAA,MAEJ,WAAW,oCAAC,QAAK,WAAU,6BAA4B;AAAA,IAC1D;AAAA,EAEJ;AACF;AAEA,IAAO,4BAAQ;",
6
6
  "names": ["RadioInput"]
7
7
  }
@@ -10,6 +10,7 @@ const CompatDetails = ({
10
10
  placement,
11
11
  closeIcon,
12
12
  openIcon,
13
+ iconClassName,
13
14
  ...props
14
15
  }) => {
15
16
  const [isExpanded, setIsExpanded] = useState(open);
@@ -20,7 +21,7 @@ const CompatDetails = ({
20
21
  setIsExpanded(!isExpanded);
21
22
  };
22
23
  const [summaryContent, ...detailsContent] = Children.toArray(children);
23
- const toggleIcon = closeIcon && openIcon ? /* @__PURE__ */ React.createElement(Text, null, isExpanded ? openIcon : closeIcon) : null;
24
+ const toggleIcon = closeIcon && openIcon ? /* @__PURE__ */ React.createElement(Text, { className: iconClassName }, isExpanded ? openIcon : closeIcon) : null;
24
25
  return (
25
26
  // TODO: Fix `props` type
26
27
  // @ts-expect-error - `props` type is not compatible with `View` props
@@ -2,7 +2,8 @@ import React, { DetailedHTMLProps, DetailsHTMLAttributes } from 'react';
2
2
  type HTMLElementProps = Omit<DetailedHTMLProps<DetailsHTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement>, 'ref'> & {
3
3
  closeIcon?: string;
4
4
  openIcon?: string;
5
+ iconClassName?: string;
5
6
  placement?: 'before' | 'after';
6
7
  };
7
- declare const CompatDetails: ({ children, open, placement, closeIcon, openIcon, ...props }: HTMLElementProps) => React.JSX.Element;
8
+ declare const CompatDetails: ({ children, open, placement, closeIcon, openIcon, iconClassName, ...props }: HTMLElementProps) => React.JSX.Element;
8
9
  export default CompatDetails;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Base/compat/details.native.tsx"],
4
- "sourcesContent": ["import React, {\n useEffect,\n useState,\n Children,\n DetailedHTMLProps,\n DetailsHTMLAttributes,\n} from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet } from 'react-native';\n\ntype HTMLElementProps = Omit<\n DetailedHTMLProps<\n DetailsHTMLAttributes<HTMLDetailsElement>,\n HTMLDetailsElement\n >,\n 'ref'\n> & {\n closeIcon?: string;\n openIcon?: string;\n placement?: 'before' | 'after';\n};\n\nconst CompatDetails = ({\n children,\n open = false,\n placement,\n closeIcon,\n openIcon,\n ...props\n}: HTMLElementProps) => {\n const [isExpanded, setIsExpanded] = useState(open);\n\n useEffect(() => {\n setIsExpanded(open);\n }, [open]);\n\n const toggleExpand = () => {\n setIsExpanded(!isExpanded);\n };\n\n const [summaryContent, ...detailsContent] = Children.toArray(children);\n\n const toggleIcon =\n closeIcon && openIcon ? (\n <Text>{isExpanded ? openIcon : closeIcon}</Text>\n ) : null;\n\n return (\n // TODO: Fix `props` type\n // @ts-expect-error - `props` type is not compatible with `View` props\n <View {...props}>\n <TouchableOpacity onPress={toggleExpand} style={styles.summaryContainer}>\n {placement === 'before' && toggleIcon}\n {summaryContent}\n {placement === 'after' && toggleIcon}\n </TouchableOpacity>\n {isExpanded && <View>{detailsContent}</View>}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n summaryContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n});\n\nexport default CompatDetails;\n"],
5
- "mappings": "AAAA,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,MAAM,MAAM,kBAAkB,kBAAkB;AAczD,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AACtB,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,IAAI;AAEjD,YAAU,MAAM;AACd,kBAAc,IAAI;AAAA,EACpB,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,eAAe,MAAM;AACzB,kBAAc,CAAC,UAAU;AAAA,EAC3B;AAEA,QAAM,CAAC,gBAAgB,GAAG,cAAc,IAAI,SAAS,QAAQ,QAAQ;AAErE,QAAM,aACJ,aAAa,WACX,oCAAC,YAAM,aAAa,WAAW,SAAU,IACvC;AAEN;AAAA;AAAA;AAAA,IAGE,oCAAC,QAAM,GAAG,SACR,oCAAC,oBAAiB,SAAS,cAAc,OAAO,OAAO,oBACpD,cAAc,YAAY,YAC1B,gBACA,cAAc,WAAW,UAC5B,GACC,cAAc,oCAAC,YAAM,cAAe,CACvC;AAAA;AAEJ;AAEA,MAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,kBAAkB;AAAA,IAChB,eAAe;AAAA,IACf,YAAY;AAAA,EACd;AACF,CAAC;AAED,IAAO,yBAAQ;",
4
+ "sourcesContent": ["import React, {\n useEffect,\n useState,\n Children,\n DetailedHTMLProps,\n DetailsHTMLAttributes,\n} from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet } from 'react-native';\n\ntype HTMLElementProps = Omit<\n DetailedHTMLProps<\n DetailsHTMLAttributes<HTMLDetailsElement>,\n HTMLDetailsElement\n >,\n 'ref'\n> & {\n closeIcon?: string;\n openIcon?: string;\n iconClassName?: string;\n placement?: 'before' | 'after';\n};\n\nconst CompatDetails = ({\n children,\n open = false,\n placement,\n closeIcon,\n openIcon,\n iconClassName,\n ...props\n}: HTMLElementProps) => {\n const [isExpanded, setIsExpanded] = useState(open);\n\n useEffect(() => {\n setIsExpanded(open);\n }, [open]);\n\n const toggleExpand = () => {\n setIsExpanded(!isExpanded);\n };\n\n const [summaryContent, ...detailsContent] = Children.toArray(children);\n\n const toggleIcon =\n closeIcon && openIcon ? (\n <Text className={iconClassName}>{isExpanded ? openIcon : closeIcon}</Text>\n ) : null;\n\n return (\n // TODO: Fix `props` type\n // @ts-expect-error - `props` type is not compatible with `View` props\n <View {...props}>\n <TouchableOpacity onPress={toggleExpand} style={styles.summaryContainer}>\n {placement === 'before' && toggleIcon}\n {summaryContent}\n {placement === 'after' && toggleIcon}\n </TouchableOpacity>\n {isExpanded && <View>{detailsContent}</View>}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n summaryContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n});\n\nexport default CompatDetails;\n"],
5
+ "mappings": "AAAA,OAAO;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,MAAM,MAAM,kBAAkB,kBAAkB;AAezD,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AACtB,QAAM,CAAC,YAAY,aAAa,IAAI,SAAS,IAAI;AAEjD,YAAU,MAAM;AACd,kBAAc,IAAI;AAAA,EACpB,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,eAAe,MAAM;AACzB,kBAAc,CAAC,UAAU;AAAA,EAC3B;AAEA,QAAM,CAAC,gBAAgB,GAAG,cAAc,IAAI,SAAS,QAAQ,QAAQ;AAErE,QAAM,aACJ,aAAa,WACX,oCAAC,QAAK,WAAW,iBAAgB,aAAa,WAAW,SAAU,IACjE;AAEN;AAAA;AAAA;AAAA,IAGE,oCAAC,QAAM,GAAG,SACR,oCAAC,oBAAiB,SAAS,cAAc,OAAO,OAAO,oBACpD,cAAc,YAAY,YAC1B,gBACA,cAAc,WAAW,UAC5B,GACC,cAAc,oCAAC,YAAM,cAAe,CACvC;AAAA;AAEJ;AAEA,MAAM,SAAS,WAAW,OAAO;AAAA,EAC/B,kBAAkB;AAAA,IAChB,eAAe;AAAA,IACf,YAAY;AAAA,EACd;AACF,CAAC;AAED,IAAO,yBAAQ;",
6
6
  "names": []
7
7
  }