@digigov/react-core 2.0.0-2a26e869 → 2.0.0-44e7106a

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 (395) 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 +6 -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 +4 -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 +11 -0
  22. package/AccordionSection/index.web.js.map +7 -0
  23. package/AccordionSectionSummaryHeading/index.js +2 -1
  24. package/AccordionSectionSummaryHeading/index.js.map +2 -2
  25. package/BackLinkBase/index.d.ts +9 -0
  26. package/BackLinkBase/index.js +29 -0
  27. package/BackLinkBase/index.js.map +7 -0
  28. package/{BackLink → BackLinkBase}/package.json +1 -1
  29. package/Base/compat/details.native/index.js +2 -1
  30. package/Base/compat/details.native.d.ts +2 -1
  31. package/Base/compat/details.native.js.map +2 -2
  32. package/Base/index.web.d.ts +1 -1
  33. package/Base/index.web.js.map +1 -1
  34. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  35. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  36. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  37. package/BreadcrumbsListItemLinkBase/package.json +6 -0
  38. package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
  39. package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
  40. package/BreadcrumbsListItemWrapper/index.js.map +7 -0
  41. package/BreadcrumbsListItemWrapper/package.json +6 -0
  42. package/Button/index.js +2 -0
  43. package/Button/index.js.map +2 -2
  44. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  45. package/ButtonLinkBase/index.js +27 -0
  46. package/ButtonLinkBase/index.js.map +7 -0
  47. package/{CallToAction → ButtonLinkBase}/package.json +1 -1
  48. package/CallToActionBase/index.d.ts +9 -0
  49. package/{CallToAction → CallToActionBase}/index.js +6 -6
  50. package/CallToActionBase/index.js.map +7 -0
  51. package/CallToActionBase/package.json +6 -0
  52. package/CopyToClipboardMessage/index.native/index.js +1 -1
  53. package/CopyToClipboardMessage/index.native.js.map +1 -1
  54. package/DateInputItem/index.native/index.js +1 -1
  55. package/DateInputItem/index.native.js.map +1 -1
  56. package/Details/index.native/index.js +1 -1
  57. package/Details/index.native.js.map +1 -1
  58. package/FileUpload/index.d.ts +7 -0
  59. package/FileUpload/index.js +12 -4
  60. package/FileUpload/index.js.map +2 -2
  61. package/FileUploadContainer/index.d.ts +7 -0
  62. package/FileUploadContainer/index.js +3 -2
  63. package/FileUploadContainer/index.js.map +2 -2
  64. package/FooterLinkBase/index.d.ts +9 -0
  65. package/FooterLinkBase/index.js +23 -0
  66. package/FooterLinkBase/index.js.map +7 -0
  67. package/{ButtonLink → FooterLinkBase}/package.json +1 -1
  68. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  69. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  70. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  71. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  72. package/GovGRLogoBase/index.d.ts +9 -0
  73. package/GovGRLogoBase/index.js +43 -0
  74. package/GovGRLogoBase/index.js.map +7 -0
  75. package/{FooterLink → GovGRLogoBase}/package.json +1 -1
  76. package/Grid/index.js +1 -0
  77. package/Grid/index.js.map +2 -2
  78. package/HeaderLogoBase/index.d.ts +19 -0
  79. package/HeaderLogoBase/index.js +33 -0
  80. package/HeaderLogoBase/index.js.map +7 -0
  81. package/HeaderLogoBase/package.json +6 -0
  82. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  83. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  84. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  85. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  86. package/HeaderTitleBase/index.d.ts +9 -0
  87. package/HeaderTitleBase/index.js +24 -0
  88. package/HeaderTitleBase/index.js.map +7 -0
  89. package/HeaderTitleBase/package.json +6 -0
  90. package/LinkBase/index.js +1 -0
  91. package/LinkBase/index.js.map +2 -2
  92. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  93. package/{NavListItemAction → NavListItemActionBase}/index.js +6 -6
  94. package/NavListItemActionBase/index.js.map +7 -0
  95. package/NavListItemActionBase/package.json +6 -0
  96. package/NavListItemActionContainer/index.native/index.js +1 -1
  97. package/NavListItemActionContainer/index.native.js.map +1 -1
  98. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  99. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  100. package/NavListItemLinkBase/index.js.map +7 -0
  101. package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
  102. package/NotificationBannerContent/index.js +1 -1
  103. package/NotificationBannerContent/index.js.map +2 -2
  104. package/NotificationBannerLink/index.native/index.js +1 -1
  105. package/NotificationBannerLink/index.native.js.map +1 -1
  106. package/Table/index.d.ts +9 -0
  107. package/Table/index.js +4 -1
  108. package/Table/index.js.map +2 -2
  109. package/TableDataCell/index.d.ts +13 -0
  110. package/TableDataCell/index.js +10 -1
  111. package/TableDataCell/index.js.map +2 -2
  112. package/TextArea/index.native/index.js +1 -1
  113. package/TextArea/index.native.js.map +1 -1
  114. package/TextInput/index.native/index.js +1 -1
  115. package/TextInput/index.native.js.map +1 -1
  116. package/WarningText/index.d.ts +7 -0
  117. package/WarningText/index.js +10 -2
  118. package/WarningText/index.js.map +2 -2
  119. package/cjs/Accordion/index.js +5 -35
  120. package/cjs/Accordion/index.js.map +3 -3
  121. package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
  122. package/cjs/Accordion/index.native.js.map +7 -0
  123. package/cjs/{BackLink → Accordion/index.web}/index.js +24 -18
  124. package/cjs/Accordion/index.web.js.map +7 -0
  125. package/cjs/AccordionSection/index.js +5 -21
  126. package/cjs/AccordionSection/index.js.map +3 -3
  127. package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
  128. package/cjs/AccordionSection/index.native.js.map +7 -0
  129. package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
  130. package/cjs/AccordionSection/index.web.js.map +7 -0
  131. package/cjs/AccordionSectionSummaryHeading/index.js +2 -1
  132. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  133. package/cjs/BackLinkBase/index.js +62 -0
  134. package/cjs/BackLinkBase/index.js.map +7 -0
  135. package/cjs/Base/compat/details.native/index.js +2 -1
  136. package/cjs/Base/compat/details.native.js.map +2 -2
  137. package/cjs/Base/index.web.js.map +1 -1
  138. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  139. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  140. package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
  141. package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
  142. package/cjs/Button/index.js +2 -0
  143. package/cjs/Button/index.js.map +2 -2
  144. package/cjs/ButtonLinkBase/index.js +60 -0
  145. package/cjs/ButtonLinkBase/index.js.map +7 -0
  146. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  147. package/cjs/CallToActionBase/index.js.map +7 -0
  148. package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
  149. package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
  150. package/cjs/DateInputItem/index.native/index.js +2 -2
  151. package/cjs/DateInputItem/index.native.js.map +2 -2
  152. package/cjs/Details/index.native/index.js +2 -2
  153. package/cjs/Details/index.native.js.map +2 -2
  154. package/cjs/FileUpload/index.js +12 -4
  155. package/cjs/FileUpload/index.js.map +2 -2
  156. package/cjs/FileUploadContainer/index.js +3 -2
  157. package/cjs/FileUploadContainer/index.js.map +2 -2
  158. package/cjs/FooterLinkBase/index.js +56 -0
  159. package/cjs/FooterLinkBase/index.js.map +7 -0
  160. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  161. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  162. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  163. package/cjs/GovGRLogoBase/index.js.map +7 -0
  164. package/cjs/Grid/index.js +1 -0
  165. package/cjs/Grid/index.js.map +2 -2
  166. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  167. package/cjs/HeaderLogoBase/index.js.map +7 -0
  168. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  169. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  170. package/cjs/HeaderTitleBase/index.js +57 -0
  171. package/cjs/HeaderTitleBase/index.js.map +7 -0
  172. package/cjs/LinkBase/index.js +1 -0
  173. package/cjs/LinkBase/index.js.map +2 -2
  174. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +10 -10
  175. package/cjs/NavListItemActionBase/index.js.map +7 -0
  176. package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
  177. package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
  178. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  179. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  180. package/cjs/NotificationBannerContent/index.js +1 -1
  181. package/cjs/NotificationBannerContent/index.js.map +2 -2
  182. package/cjs/NotificationBannerLink/index.native/index.js +2 -2
  183. package/cjs/NotificationBannerLink/index.native.js.map +2 -2
  184. package/cjs/Table/index.js +4 -1
  185. package/cjs/Table/index.js.map +2 -2
  186. package/cjs/TableDataCell/index.js +10 -1
  187. package/cjs/TableDataCell/index.js.map +2 -2
  188. package/cjs/TextArea/index.native/index.js +2 -2
  189. package/cjs/TextArea/index.native.js.map +2 -2
  190. package/cjs/TextInput/index.native/index.js +2 -2
  191. package/cjs/TextInput/index.native.js.map +2 -2
  192. package/cjs/WarningText/index.js +10 -2
  193. package/cjs/WarningText/index.js.map +2 -2
  194. package/cjs/index.js +22 -22
  195. package/cjs/index.js.map +2 -2
  196. package/cjs/lazy/index.js +14 -14
  197. package/cjs/lazy.js.map +2 -2
  198. package/cjs/registry/index.js +36 -32
  199. package/cjs/registry.js.map +2 -2
  200. package/cjs/utils/index.native/index.js +88 -0
  201. package/cjs/utils/index.native.js.map +7 -0
  202. package/index.d.ts +11 -11
  203. package/index.js +12 -12
  204. package/index.js.map +1 -1
  205. package/lazy/index.js +14 -14
  206. package/package.json +3 -3
  207. package/registry/index.js +36 -32
  208. package/src/Accordion/index.native.tsx +19 -0
  209. package/src/Accordion/index.tsx +2 -71
  210. package/src/Accordion/index.web.tsx +71 -0
  211. package/src/AccordionSection/index.native.tsx +18 -0
  212. package/src/AccordionSection/index.tsx +2 -28
  213. package/src/AccordionSection/index.web.tsx +28 -0
  214. package/src/AccordionSectionSummaryHeading/index.tsx +3 -2
  215. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  216. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  217. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  218. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  219. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  220. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  221. package/src/BackLinkBase/index.test.tsx +15 -0
  222. package/src/BackLinkBase/index.tsx +36 -0
  223. package/src/Base/compat/details.native.tsx +3 -1
  224. package/src/Base/index.web.tsx +1 -1
  225. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  226. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  227. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  228. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  229. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  230. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  231. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
  232. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
  233. package/src/Button/index.tsx +2 -0
  234. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  235. package/src/ButtonLinkBase/index.test.tsx +75 -0
  236. package/src/ButtonLinkBase/index.tsx +55 -0
  237. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  238. package/src/CallToActionBase/index.test.tsx +10 -0
  239. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  240. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  241. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  242. package/src/CopyToClipboardMessage/index.native.tsx +1 -1
  243. package/src/DateInputItem/index.native.tsx +1 -1
  244. package/src/Details/index.native.tsx +1 -1
  245. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  246. package/src/FileUpload/index.tsx +20 -4
  247. package/src/FileUploadContainer/index.tsx +10 -1
  248. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  249. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  250. package/src/FooterLinkBase/index.test.tsx +16 -0
  251. package/src/FooterLinkBase/index.tsx +27 -0
  252. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  253. package/src/GovGRLogoBase/index.test.tsx +8 -0
  254. package/src/GovGRLogoBase/index.tsx +43 -0
  255. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  256. package/src/Grid/index.tsx +1 -0
  257. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  258. package/src/HeaderLogoBase/index.test.tsx +8 -0
  259. package/src/HeaderLogoBase/index.tsx +44 -0
  260. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  261. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  262. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  263. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  264. package/src/HeaderTitleBase/index.test.tsx +17 -0
  265. package/src/HeaderTitleBase/index.tsx +28 -0
  266. package/src/LinkBase/index.tsx +1 -0
  267. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  268. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
  269. package/src/NavListItemActionBase/index.test.tsx +42 -0
  270. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +13 -12
  271. package/src/NavListItemActionContainer/index.native.tsx +1 -1
  272. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  273. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  274. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  275. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  276. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  277. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  278. package/src/NotificationBannerContent/index.tsx +1 -1
  279. package/src/NotificationBannerLink/index.native.tsx +1 -1
  280. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  281. package/src/Table/index.tsx +12 -0
  282. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  283. package/src/TableDataCell/index.tsx +23 -1
  284. package/src/TextArea/index.native.tsx +1 -1
  285. package/src/TextInput/index.native.tsx +1 -1
  286. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  287. package/src/WarningText/index.test.tsx +5 -0
  288. package/src/WarningText/index.tsx +17 -2
  289. package/src/index.ts +11 -11
  290. package/src/lazy.js +14 -14
  291. package/src/registry.js +36 -32
  292. package/src/utils/index.native.tsx +120 -0
  293. package/utils/index.native/index.js +54 -0
  294. package/utils/index.native/package.json +6 -0
  295. package/utils/{extend.native.d.ts → index.native.d.ts} +23 -0
  296. package/utils/index.native.js.map +7 -0
  297. package/BackLink/index.d.ts +0 -9
  298. package/BackLink/index.js +0 -31
  299. package/BackLink/index.js.map +0 -7
  300. package/BreadcrumbsListItem/index.d.ts +0 -10
  301. package/BreadcrumbsListItem/index.js.map +0 -7
  302. package/BreadcrumbsListItemLink/index.js +0 -24
  303. package/BreadcrumbsListItemLink/index.js.map +0 -7
  304. package/ButtonLink/index.js +0 -29
  305. package/ButtonLink/index.js.map +0 -7
  306. package/CallToAction/index.d.ts +0 -9
  307. package/CallToAction/index.js.map +0 -7
  308. package/CheckboxItemInput/index.native/index.js +0 -20
  309. package/CheckboxItemInput/index.native/package.json +0 -6
  310. package/CheckboxItemInput/index.native.d.ts +0 -4
  311. package/CheckboxItemInput/index.native.js.map +0 -7
  312. package/FooterLink/index.d.ts +0 -9
  313. package/FooterLink/index.js +0 -25
  314. package/FooterLink/index.js.map +0 -7
  315. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  316. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  317. package/GovGRLogo/index.d.ts +0 -9
  318. package/GovGRLogo/index.js +0 -45
  319. package/GovGRLogo/index.js.map +0 -7
  320. package/GovGRLogo/package.json +0 -6
  321. package/HeaderLogo/index.d.ts +0 -19
  322. package/HeaderLogo/index.js +0 -35
  323. package/HeaderLogo/index.js.map +0 -7
  324. package/HeaderLogo/package.json +0 -6
  325. package/HeaderSecondaryLogo/index.d.ts +0 -19
  326. package/HeaderSecondaryLogo/index.js.map +0 -7
  327. package/HeaderSecondaryLogo/package.json +0 -6
  328. package/HeaderTitle/index.d.ts +0 -9
  329. package/HeaderTitle/index.js +0 -24
  330. package/HeaderTitle/index.js.map +0 -7
  331. package/HeaderTitle/package.json +0 -6
  332. package/NavListItemAction/index.js.map +0 -7
  333. package/NavListItemAction/package.json +0 -6
  334. package/NavListItemLink/index.js.map +0 -7
  335. package/NavListItemLink/package.json +0 -6
  336. package/cjs/BackLink/index.js.map +0 -7
  337. package/cjs/BreadcrumbsListItem/index.js.map +0 -7
  338. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  339. package/cjs/ButtonLink/index.js +0 -62
  340. package/cjs/ButtonLink/index.js.map +0 -7
  341. package/cjs/CallToAction/index.js.map +0 -7
  342. package/cjs/CheckboxItemInput/index.native.js.map +0 -7
  343. package/cjs/FooterLink/index.js +0 -58
  344. package/cjs/FooterLink/index.js.map +0 -7
  345. package/cjs/GovGRLogo/index.js.map +0 -7
  346. package/cjs/HeaderLogo/index.js +0 -68
  347. package/cjs/HeaderLogo/index.js.map +0 -7
  348. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  349. package/cjs/HeaderTitle/index.js.map +0 -7
  350. package/cjs/NavListItemAction/index.js.map +0 -7
  351. package/cjs/NavListItemLink/index.js.map +0 -7
  352. package/cjs/utils/extend.native.js.map +0 -7
  353. package/src/BackLink/index.test.tsx +0 -13
  354. package/src/BackLink/index.tsx +0 -35
  355. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  356. package/src/ButtonLink/index.test.tsx +0 -69
  357. package/src/ButtonLink/index.tsx +0 -54
  358. package/src/CallToAction/index.test.tsx +0 -10
  359. package/src/CheckboxItemInput/index.native.tsx +0 -17
  360. package/src/FooterLink/index.test.tsx +0 -14
  361. package/src/FooterLink/index.tsx +0 -26
  362. package/src/GovGRLogo/index.test.tsx +0 -8
  363. package/src/GovGRLogo/index.tsx +0 -42
  364. package/src/HeaderLogo/index.test.tsx +0 -8
  365. package/src/HeaderLogo/index.tsx +0 -43
  366. package/src/HeaderTitle/index.test.tsx +0 -16
  367. package/src/HeaderTitle/index.tsx +0 -28
  368. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  369. package/src/NavListItemAction/index.test.tsx +0 -11
  370. package/src/NavListItemLink/index.test.tsx +0 -39
  371. package/src/utils/extend.native.tsx +0 -36
  372. package/utils/extend.native/index.js +0 -14
  373. package/utils/extend.native/package.json +0 -6
  374. package/utils/extend.native.js.map +0 -7
  375. /package/{BackLink → BackLinkBase}/index.test.d.ts +0 -0
  376. /package/{BreadcrumbsListItem → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  377. /package/{BreadcrumbsListItemLink → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
  378. /package/{ButtonLink → ButtonLinkBase}/index.test.d.ts +0 -0
  379. /package/{CallToAction → CallToActionBase}/index.test.d.ts +0 -0
  380. /package/{FooterLink → FooterLinkBase}/index.test.d.ts +0 -0
  381. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  382. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  383. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  384. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  385. /package/{GovGRLogo → GovGRLogoBase}/index.test.d.ts +0 -0
  386. /package/{HeaderLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  387. /package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  388. /package/{HeaderTitle → HeaderTitleBase}/index.test.d.ts +0 -0
  389. /package/{NavListItemAction → NavListItemActionBase}/index.test.d.ts +0 -0
  390. /package/{NavListItemLink → NavListItemLinkBase}/index.test.d.ts +0 -0
  391. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  392. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  393. /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
  394. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  395. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`renders the BreadcrumbsListItemLink with href 1`] = `
3
+ exports[`renders the BreadcrumbsListItemLinkBase with href 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <a
7
- class="ds-breadcrumbs__link"
7
+ class="ds-breadcrumbs__link ds-link"
8
8
  href="#"
9
9
  >
10
10
  hello
@@ -13,11 +13,11 @@ exports[`renders the BreadcrumbsListItemLink with href 1`] = `
13
13
  </body>
14
14
  `;
15
15
 
16
- exports[`renders the BreadcrumbsListItemLink with no props 1`] = `
16
+ exports[`renders the BreadcrumbsListItemLinkBase with no props 1`] = `
17
17
  <body>
18
18
  <div>
19
19
  <a
20
- class="ds-breadcrumbs__link ds-breadcrumbs__link--inactive"
20
+ class="ds-breadcrumbs__link ds-breadcrumbs__link--inactive ds-link"
21
21
  >
22
22
  hello
23
23
  </a>
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+
4
+ import { BreadcrumbsListItemLinkBase } from '@digigov/react-core/BreadcrumbsListItemLinkBase';
5
+
6
+ it('renders the BreadcrumbsListItemLinkBase with no props', () => {
7
+ expect(
8
+ render(<BreadcrumbsListItemLinkBase>hello</BreadcrumbsListItemLinkBase>)
9
+ .baseElement
10
+ ).toMatchSnapshot();
11
+ });
12
+ it('renders the BreadcrumbsListItemLinkBase with href', () => {
13
+ expect(
14
+ render(
15
+ <BreadcrumbsListItemLinkBase href="#">hello</BreadcrumbsListItemLinkBase>
16
+ ).baseElement
17
+ ).toMatchSnapshot();
18
+ });
@@ -1,24 +1,23 @@
1
1
  import React from 'react';
2
2
  import clsx from 'clsx';
3
- import Link, { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ import { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';
4
4
 
5
- export interface BreadcrumbsListItemLinkProps extends LinkBaseProps {}
5
+ export interface BreadcrumbsListItemLinkBaseProps extends LinkBaseProps {}
6
6
  /**
7
- * BreadcrumbsListItemLink creates an anchor link to navigate in different
7
+ * BreadcrumbsListItemLinkBase creates an anchor link to navigate in different
8
8
  * parts of the breadcrumbs.
9
9
  * It should be used inside BreadcrumbsListItem as children component. This is
10
10
  * the default link component for the BreadcrumbsListItem and it uses the LinkBase
11
11
  * component from `@digigov/react-core`. In case you need to use a different Link
12
- * component from a framework or a custom router, use `@digigov/ui/navigation/BreadcrumbsListItemLink` instead.
12
+ * component from a framework or a custom router, use `@digigov/ui/navigation/BreadcrumbsListItemLinkBase` instead.
13
13
  */
14
- export const BreadcrumbsListItemLink = React.forwardRef<
14
+ export const BreadcrumbsListItemLinkBase = React.forwardRef<
15
15
  HTMLAnchorElement,
16
- BreadcrumbsListItemLinkProps
17
- >(function BreadcrumbsListItemLink({ href, className, children }, ref) {
16
+ BreadcrumbsListItemLinkBaseProps
17
+ >(function BreadcrumbsListItemLinkBase({ href, className, children }, ref) {
18
18
  return (
19
- <Link
19
+ <LinkBase
20
20
  href={href}
21
- defaultStyle={false}
22
21
  className={clsx(className, {
23
22
  'ds-breadcrumbs__link': true,
24
23
  'ds-breadcrumbs__link--inactive': href === undefined,
@@ -26,8 +25,8 @@ export const BreadcrumbsListItemLink = React.forwardRef<
26
25
  ref={ref}
27
26
  >
28
27
  {children}
29
- </Link>
28
+ </LinkBase>
30
29
  );
31
30
  });
32
31
 
33
- export default BreadcrumbsListItemLink;
32
+ export default BreadcrumbsListItemLinkBase;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
3
 
4
- import BreadcrumbsListItem from '@digigov/react-core/BreadcrumbsListItem';
4
+ import BreadcrumbsListItem from '@digigov/react-core/BreadcrumbsListItemWrapper';
5
5
 
6
6
  it('renders the BreadcrumbsListItem with no props', () => {
7
7
  expect(
@@ -2,15 +2,15 @@ import React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
- export interface BreadcrumbsListItemBaseProps extends BaseProps<'li'> {}
5
+ export interface BreadcrumbsListItemWrapperProps extends BaseProps<'li'> {}
6
6
  /**
7
7
  * BreadcrumbsListItem creates a list of items with the possibility of navigation.
8
8
  * It should be used inside BreadcrumbsList as children component
9
9
  */
10
- export const BreadcrumbsListItemBase = React.forwardRef<
10
+ export const BreadcrumbsListItemWrapper = React.forwardRef<
11
11
  HTMLLIElement,
12
- BreadcrumbsListItemBaseProps
13
- >(function BreadcrumbsListItemBase({ className, children, ...props }, ref) {
12
+ BreadcrumbsListItemWrapperProps
13
+ >(function BreadcrumbsListItemWrapper({ className, children, ...props }, ref) {
14
14
  return (
15
15
  <Base
16
16
  as="li"
@@ -25,4 +25,4 @@ export const BreadcrumbsListItemBase = React.forwardRef<
25
25
  );
26
26
  });
27
27
 
28
- export default BreadcrumbsListItemBase;
28
+ export default BreadcrumbsListItemWrapper;
@@ -55,6 +55,8 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
55
55
  ref={ref}
56
56
  className={clsx(className, {
57
57
  'ds-link': variant === 'link',
58
+ 'ds-link-warning': variant === 'link' && color === 'warning',
59
+ 'ds-link--disabled': variant === 'link' && disabled,
58
60
  'ds-btn': variant === 'button',
59
61
  'ds-btn--dense': dense,
60
62
  'ds-btn-primary': variant === 'button' && color === 'primary',
@@ -1,11 +1,11 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`renders the Button with tabIndex prop 1`] = `
3
+ exports[`renders the ButtonLinkBase with ariaLabel prop 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <a
7
+ aria-label="button for opening menu"
7
8
  class="ds-btn ds-btn-primary"
8
- tabindex="0"
9
9
  >
10
10
  Menu
11
11
  </a>
@@ -13,24 +13,24 @@ exports[`renders the Button with tabIndex prop 1`] = `
13
13
  </body>
14
14
  `;
15
15
 
16
- exports[`renders the ButtonLink with ariaLabel prop 1`] = `
16
+ exports[`renders the ButtonLinkBase with color=primary 1`] = `
17
17
  <body>
18
18
  <div>
19
19
  <a
20
- aria-label="button for opening menu"
21
20
  class="ds-btn ds-btn-primary"
22
21
  >
23
- Menu
22
+ hello
24
23
  </a>
25
24
  </div>
26
25
  </body>
27
26
  `;
28
27
 
29
- exports[`renders the ButtonLink with color=primary 1`] = `
28
+ exports[`renders the ButtonLinkBase with color=primary with href=# 1`] = `
30
29
  <body>
31
30
  <div>
32
31
  <a
33
32
  class="ds-btn ds-btn-primary"
33
+ href="#"
34
34
  >
35
35
  hello
36
36
  </a>
@@ -38,12 +38,11 @@ exports[`renders the ButtonLink with color=primary 1`] = `
38
38
  </body>
39
39
  `;
40
40
 
41
- exports[`renders the ButtonLink with color=primary with href=# 1`] = `
41
+ exports[`renders the ButtonLinkBase with color=secondary 1`] = `
42
42
  <body>
43
43
  <div>
44
44
  <a
45
- class="ds-btn ds-btn-primary"
46
- href="#"
45
+ class="ds-btn ds-btn-secondary"
47
46
  >
48
47
  hello
49
48
  </a>
@@ -51,11 +50,12 @@ exports[`renders the ButtonLink with color=primary with href=# 1`] = `
51
50
  </body>
52
51
  `;
53
52
 
54
- exports[`renders the ButtonLink with color=secondary 1`] = `
53
+ exports[`renders the ButtonLinkBase with color=secondary with href=# 1`] = `
55
54
  <body>
56
55
  <div>
57
56
  <a
58
57
  class="ds-btn ds-btn-secondary"
58
+ href="#"
59
59
  >
60
60
  hello
61
61
  </a>
@@ -63,12 +63,11 @@ exports[`renders the ButtonLink with color=secondary 1`] = `
63
63
  </body>
64
64
  `;
65
65
 
66
- exports[`renders the ButtonLink with color=secondary with href=# 1`] = `
66
+ exports[`renders the ButtonLinkBase with color=warning 1`] = `
67
67
  <body>
68
68
  <div>
69
69
  <a
70
- class="ds-btn ds-btn-secondary"
71
- href="#"
70
+ class="ds-btn ds-btn-warning"
72
71
  >
73
72
  hello
74
73
  </a>
@@ -76,11 +75,12 @@ exports[`renders the ButtonLink with color=secondary with href=# 1`] = `
76
75
  </body>
77
76
  `;
78
77
 
79
- exports[`renders the ButtonLink with color=warning 1`] = `
78
+ exports[`renders the ButtonLinkBase with color=warning with href=# 1`] = `
80
79
  <body>
81
80
  <div>
82
81
  <a
83
82
  class="ds-btn ds-btn-warning"
83
+ href="#"
84
84
  >
85
85
  hello
86
86
  </a>
@@ -88,12 +88,11 @@ exports[`renders the ButtonLink with color=warning 1`] = `
88
88
  </body>
89
89
  `;
90
90
 
91
- exports[`renders the ButtonLink with color=warning with href=# 1`] = `
91
+ exports[`renders the ButtonLinkBase with disabled=false 1`] = `
92
92
  <body>
93
93
  <div>
94
94
  <a
95
- class="ds-btn ds-btn-warning"
96
- href="#"
95
+ class="ds-btn ds-btn-primary"
97
96
  >
98
97
  hello
99
98
  </a>
@@ -101,11 +100,12 @@ exports[`renders the ButtonLink with color=warning with href=# 1`] = `
101
100
  </body>
102
101
  `;
103
102
 
104
- exports[`renders the ButtonLink with disabled=false 1`] = `
103
+ exports[`renders the ButtonLinkBase with href=# 1`] = `
105
104
  <body>
106
105
  <div>
107
106
  <a
108
107
  class="ds-btn ds-btn-primary"
108
+ href="#"
109
109
  >
110
110
  hello
111
111
  </a>
@@ -113,12 +113,11 @@ exports[`renders the ButtonLink with disabled=false 1`] = `
113
113
  </body>
114
114
  `;
115
115
 
116
- exports[`renders the ButtonLink with href=# 1`] = `
116
+ exports[`renders the ButtonLinkBase with no props 1`] = `
117
117
  <body>
118
118
  <div>
119
119
  <a
120
120
  class="ds-btn ds-btn-primary"
121
- href="#"
122
121
  >
123
122
  hello
124
123
  </a>
@@ -126,13 +125,14 @@ exports[`renders the ButtonLink with href=# 1`] = `
126
125
  </body>
127
126
  `;
128
127
 
129
- exports[`renders the ButtonLink with no props 1`] = `
128
+ exports[`renders the ButtonLinkBase with tabIndex prop 1`] = `
130
129
  <body>
131
130
  <div>
132
131
  <a
133
132
  class="ds-btn ds-btn-primary"
133
+ tabindex="0"
134
134
  >
135
- hello
135
+ Menu
136
136
  </a>
137
137
  </div>
138
138
  </body>
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+
4
+ import ButtonLinkBase from '@digigov/react-core/ButtonLinkBase';
5
+
6
+ it('renders the ButtonLinkBase with no props', () => {
7
+ expect(
8
+ render(<ButtonLinkBase>hello</ButtonLinkBase>).baseElement
9
+ ).toMatchSnapshot();
10
+ });
11
+ it('renders the ButtonLinkBase with color=primary', () => {
12
+ expect(
13
+ render(<ButtonLinkBase color={'primary'}>hello</ButtonLinkBase>).baseElement
14
+ ).toMatchSnapshot();
15
+ });
16
+ it('renders the ButtonLinkBase with color=secondary', () => {
17
+ expect(
18
+ render(<ButtonLinkBase color={'secondary'}>hello</ButtonLinkBase>)
19
+ .baseElement
20
+ ).toMatchSnapshot();
21
+ });
22
+ it('renders the ButtonLinkBase with color=warning', () => {
23
+ expect(
24
+ render(<ButtonLinkBase color={'warning'}>hello</ButtonLinkBase>).baseElement
25
+ ).toMatchSnapshot();
26
+ });
27
+ it('renders the ButtonLinkBase with href=#', () => {
28
+ expect(
29
+ render(<ButtonLinkBase href={'#'}>hello</ButtonLinkBase>).baseElement
30
+ ).toMatchSnapshot();
31
+ });
32
+ it('renders the ButtonLinkBase with disabled=false', () => {
33
+ expect(
34
+ render(<ButtonLinkBase>hello</ButtonLinkBase>).baseElement
35
+ ).toMatchSnapshot();
36
+ });
37
+ it('renders the ButtonLinkBase with color=primary with href=#', () => {
38
+ expect(
39
+ render(
40
+ <ButtonLinkBase href={'#'} color={'primary'}>
41
+ hello
42
+ </ButtonLinkBase>
43
+ ).baseElement
44
+ ).toMatchSnapshot();
45
+ });
46
+ it('renders the ButtonLinkBase with color=secondary with href=#', () => {
47
+ expect(
48
+ render(
49
+ <ButtonLinkBase href={'#'} color={'secondary'}>
50
+ hello
51
+ </ButtonLinkBase>
52
+ ).baseElement
53
+ ).toMatchSnapshot();
54
+ });
55
+ it('renders the ButtonLinkBase with color=warning with href=#', () => {
56
+ expect(
57
+ render(
58
+ <ButtonLinkBase href={'#'} color={'warning'}>
59
+ hello
60
+ </ButtonLinkBase>
61
+ ).baseElement
62
+ ).toMatchSnapshot();
63
+ });
64
+ it('renders the ButtonLinkBase with ariaLabel prop', () => {
65
+ expect(
66
+ render(
67
+ <ButtonLinkBase aria-label="button for opening menu">Menu</ButtonLinkBase>
68
+ ).baseElement
69
+ ).toMatchSnapshot();
70
+ });
71
+ it('renders the ButtonLinkBase with tabIndex prop', () => {
72
+ expect(
73
+ render(<ButtonLinkBase tabIndex={0}>Menu</ButtonLinkBase>).baseElement
74
+ ).toMatchSnapshot();
75
+ });
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';
4
+
5
+ export interface ButtonLinkBaseProps extends LinkBaseProps {
6
+ /**
7
+ * color is optional.
8
+ * 'primary' color is used for the main call to action on a page.
9
+ * 'secondary' color is used for secondary calls to action on a page.
10
+ * 'warning' color is used to make users think carefully before they use them.
11
+ * The default value is 'primary'.
12
+ * @value 'primary'
13
+ * @value 'secondary'
14
+ * @value 'warning'
15
+ * @default 'primary'
16
+ */
17
+ color?: 'primary' | 'secondary' | 'warning';
18
+
19
+ /**
20
+ * dense is optional.
21
+ * @value true Button will be dense.
22
+ * @value false
23
+ * @default false
24
+ */
25
+ dense?: boolean;
26
+ }
27
+ /**
28
+ * Use the Button component to help users carry out an action.
29
+ */
30
+ export const ButtonLinkBase = React.forwardRef<
31
+ HTMLAnchorElement,
32
+ ButtonLinkBaseProps
33
+ >(function ButtonLinkBase(
34
+ { color = 'primary', dense, className, children, ...props },
35
+ ref
36
+ ) {
37
+ return (
38
+ <LinkBase
39
+ ref={ref}
40
+ defaultStyle={false}
41
+ className={clsx(className, {
42
+ 'ds-btn': true,
43
+ 'ds-btn--dense': dense,
44
+ 'ds-btn-primary': color === 'primary',
45
+ 'ds-btn-secondary': color === 'secondary',
46
+ 'ds-btn-warning': color === 'warning',
47
+ })}
48
+ {...props}
49
+ >
50
+ {children}
51
+ </LinkBase>
52
+ );
53
+ });
54
+
55
+ export default ButtonLinkBase;
@@ -1,6 +1,6 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`renders the CallToAction with no props 1`] = `
3
+ exports[`renders the CallToActionBase with no props 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <a
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+
4
+ import CallToActionBase from '@digigov/react-core/CallToActionBase';
5
+
6
+ it('renders the CallToActionBase with no props', () => {
7
+ expect(
8
+ render(<CallToActionBase>hello</CallToActionBase>).baseElement
9
+ ).toMatchSnapshot();
10
+ });
@@ -1,21 +1,23 @@
1
1
  import React from 'react';
2
2
  import clsx from 'clsx';
3
- import ButtonLink, { ButtonLinkProps } from '@digigov/react-core/ButtonLink';
3
+ import ButtonLinkBase, {
4
+ ButtonLinkBaseProps,
5
+ } from '@digigov/react-core/ButtonLinkBase';
4
6
  import { ChevronIcon } from '@digigov/react-icons';
5
7
 
6
- export interface CallToActionProps extends ButtonLinkProps {}
8
+ export interface CallToActionBaseProps extends ButtonLinkBaseProps {}
7
9
  /**
8
10
  * Use this button for the main call to action on your service’s start page.
9
11
  */
10
- export const CallToAction = React.forwardRef<
12
+ export const CallToActionBase = React.forwardRef<
11
13
  HTMLAnchorElement,
12
- CallToActionProps
13
- >(function CallToAction(
14
+ CallToActionBaseProps
15
+ >(function CallToActionBase(
14
16
  { printHidden = true, className, children, ...props },
15
17
  ref
16
18
  ) {
17
19
  return (
18
- <ButtonLink
20
+ <ButtonLinkBase
19
21
  ref={ref}
20
22
  printHidden={printHidden}
21
23
  className={clsx(className, {
@@ -25,8 +27,8 @@ export const CallToAction = React.forwardRef<
25
27
  >
26
28
  {children}
27
29
  <ChevronIcon className="ds-btn-cta__icon" />
28
- </ButtonLink>
30
+ </ButtonLinkBase>
29
31
  );
30
32
  });
31
33
 
32
- export default CallToAction;
34
+ export default CallToActionBase;
@@ -7,7 +7,7 @@ exports[`renders the Blockquote with no props 1`] = `
7
7
  class="ds-checkboxes__conditional"
8
8
  >
9
9
  <div
10
- class="ds-field xs:ds-grid__col-span-12"
10
+ class="ds-field ds-grid-item xs:ds-grid__col-span-12"
11
11
  >
12
12
  <label
13
13
  class="ds-label"
@@ -4,7 +4,7 @@ exports[`renders the Container with cols={false} prop 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <div
7
- class="ds-container ds-container--full-width"
7
+ class="ds-container ds-container--full-width ds-grid-item"
8
8
  >
9
9
  hello
10
10
  </div>
@@ -16,7 +16,7 @@ exports[`renders the Container with fullWidth prop 1`] = `
16
16
  <body>
17
17
  <div>
18
18
  <div
19
- class="ds-container ds-container--full-width ds-grid ds-gap-sm-12"
19
+ class="ds-container ds-container--full-width ds-grid ds-grid-item ds-gap-sm-12"
20
20
  >
21
21
  hello
22
22
  </div>
@@ -28,7 +28,7 @@ exports[`renders the Container with no props 1`] = `
28
28
  <body>
29
29
  <div>
30
30
  <div
31
- class="ds-container ds-grid ds-gap-sm-12"
31
+ class="ds-container ds-grid ds-grid-item ds-gap-sm-12"
32
32
  >
33
33
  hello
34
34
  </div>
@@ -3,7 +3,7 @@ import { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboa
3
3
  import CoreCopyToClipboardMessage, {
4
4
  CopyToClipboardMessageProps,
5
5
  } from '@digigov/react-core/CopyToClipboardMessage/index.web';
6
- import { extend } from '@digigov/react-core/utils/extend.native';
6
+ import { extend } from '@digigov/react-core/utils/index.native';
7
7
 
8
8
  export const CopyToClipboardMessage = extend<
9
9
  CopyToClipboardMessageProps,
@@ -1,5 +1,5 @@
1
1
  import CoreDateInputItem from '@digigov/react-core/DateInputItem/index.web';
2
- import extend from '@digigov/react-core/utils/extend.native';
2
+ import extend from '@digigov/react-core/utils/index.native';
3
3
  export const DateInputItem = extend(CoreDateInputItem, (props) => {
4
4
  return {
5
5
  ...props,
@@ -1,5 +1,5 @@
1
1
  import CoreDetails from '@digigov/react-core/Details/index.web';
2
- import { extend } from '@digigov/react-core/utils/extend.native';
2
+ import { extend } from '@digigov/react-core/utils/index.native';
3
3
 
4
4
  export const Details = extend(CoreDetails, ({ className, ...props }) => {
5
5
  return {
@@ -4,7 +4,7 @@ exports[`renders the FieldContainer with error=false 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <div
7
- class="ds-field xs:ds-grid__col-span-12"
7
+ class="ds-field ds-grid-item xs:ds-grid__col-span-12"
8
8
  >
9
9
  hello
10
10
  </div>
@@ -16,7 +16,7 @@ exports[`renders the FieldContainer with error=true 1`] = `
16
16
  <body>
17
17
  <div>
18
18
  <div
19
- class="ds-field ds-field--error xs:ds-grid__col-span-12"
19
+ class="ds-field ds-field--error ds-grid-item xs:ds-grid__col-span-12"
20
20
  >
21
21
  hello
22
22
  </div>
@@ -28,7 +28,7 @@ exports[`renders the FieldContainer with no props 1`] = `
28
28
  <body>
29
29
  <div>
30
30
  <div
31
- class="ds-field xs:ds-grid__col-span-12"
31
+ class="ds-field ds-grid-item xs:ds-grid__col-span-12"
32
32
  >
33
33
  hello
34
34
  </div>
@@ -10,6 +10,14 @@ export interface FileUploadProps extends BaseProps<'input'> {
10
10
  * @default false
11
11
  */
12
12
  hasFiles?: boolean;
13
+
14
+ /**
15
+ * variant is optional.
16
+ * @value 'button'
17
+ * @value 'link'
18
+ * @default 'button'
19
+ */
20
+ variant?: 'button' | 'link';
13
21
  }
14
22
  /**
15
23
  * Details for the FileUpload.
@@ -17,7 +25,15 @@ export interface FileUploadProps extends BaseProps<'input'> {
17
25
  */
18
26
  export const FileUpload = React.forwardRef<HTMLInputElement, FileUploadProps>(
19
27
  function FileUpload(
20
- { name, className, children, disabled, hasFiles = false, ...props },
28
+ {
29
+ name,
30
+ className,
31
+ children,
32
+ disabled,
33
+ hasFiles = false,
34
+ variant = 'button',
35
+ ...props
36
+ },
21
37
  ref
22
38
  ) {
23
39
  return (
@@ -27,9 +43,9 @@ export const FileUpload = React.forwardRef<HTMLInputElement, FileUploadProps>(
27
43
  role="button"
28
44
  className={clsx(className, {
29
45
  'ds-label-file': true,
30
- 'ds-btn': !hasFiles,
31
- 'ds-btn-secondary': !hasFiles,
32
- 'ds-link': hasFiles,
46
+ 'ds-btn': !hasFiles && variant === 'button',
47
+ 'ds-btn-secondary': !hasFiles && variant === 'button',
48
+ 'ds-link': hasFiles || variant === 'link',
33
49
  })}
34
50
  >
35
51
  <Base
@@ -10,6 +10,14 @@ export interface FileUploadContainerProps extends BaseProps<'div'> {
10
10
  * @default false
11
11
  */
12
12
  hasFiles?: boolean;
13
+
14
+ /**
15
+ * variant is optional.
16
+ * @value 'default'
17
+ * @value 'border'
18
+ * @default 'default'
19
+ */
20
+ variant?: 'border' | 'default';
13
21
  }
14
22
  /**
15
23
  * Details for the FileUploadContainer.
@@ -19,7 +27,7 @@ export const FileUploadContainer = React.forwardRef<
19
27
  HTMLDivElement,
20
28
  FileUploadContainerProps
21
29
  >(function FileUploadContainer(
22
- { className, children, hasFiles = false, ...props },
30
+ { className, children, hasFiles = false, variant = 'default', ...props },
23
31
  ref
24
32
  ) {
25
33
  return (
@@ -28,6 +36,7 @@ export const FileUploadContainer = React.forwardRef<
28
36
  as="div"
29
37
  className={clsx(className, {
30
38
  'ds-uploaded-file': hasFiles,
39
+ 'ds-uploaded-file-border': variant === 'border',
31
40
  })}
32
41
  {...props}
33
42
  >
@@ -4,7 +4,7 @@ exports[`renders the FooterContainer with no props 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <div
7
- class="ds-container"
7
+ class="ds-container ds-grid-item"
8
8
  >
9
9
  hello
10
10
  </div>