@digigov/react-core 2.0.0-2a26e869 → 2.0.0-32ae417f

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 (454) 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 +11 -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/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  31. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  32. package/Base/compat/details.native/index.js +2 -1
  33. package/Base/compat/details.native.d.ts +2 -1
  34. package/Base/compat/details.native.js.map +2 -2
  35. package/Base/index.native.js.map +2 -2
  36. package/Base/index.web.d.ts +1 -1
  37. package/Base/index.web.js.map +1 -1
  38. package/Base/mapping.native.d.ts +1 -1
  39. package/Base/mapping.native.js.map +2 -2
  40. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  41. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  42. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  43. package/BreadcrumbsListItemLinkBase/package.json +6 -0
  44. package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
  45. package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
  46. package/BreadcrumbsListItemWrapper/index.js.map +7 -0
  47. package/{AutoCompleteInputTypeahead → BreadcrumbsListItemWrapper}/package.json +1 -1
  48. package/Button/index.js +2 -0
  49. package/Button/index.js.map +2 -2
  50. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  51. package/ButtonLinkBase/index.js +27 -0
  52. package/ButtonLinkBase/index.js.map +7 -0
  53. package/{FooterLink → ButtonLinkBase}/package.json +1 -1
  54. package/CallToActionBase/index.d.ts +9 -0
  55. package/{CallToAction → CallToActionBase}/index.js +6 -6
  56. package/CallToActionBase/index.js.map +7 -0
  57. package/{CircularProgress → CallToActionBase}/package.json +1 -1
  58. package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
  59. package/{CircularProgress → CircularProgressBase}/index.js +4 -4
  60. package/CircularProgressBase/index.js.map +7 -0
  61. package/CircularProgressBase/package.json +6 -0
  62. package/CopyToClipboardMessage/index.native/index.js +1 -1
  63. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  64. package/CopyToClipboardMessage/index.native.js.map +1 -1
  65. package/DateInputItem/index.native/index.js +1 -1
  66. package/DateInputItem/index.native.d.ts +1 -3
  67. package/DateInputItem/index.native.js.map +1 -1
  68. package/Details/index.native/index.js +1 -1
  69. package/Details/index.native.d.ts +1 -3
  70. package/Details/index.native.js.map +1 -1
  71. package/DetailsContent/index.d.ts +1 -0
  72. package/DetailsContent/index.js +3 -2
  73. package/DetailsContent/index.js.map +2 -2
  74. package/FileUpload/index.d.ts +7 -0
  75. package/FileUpload/index.js +12 -4
  76. package/FileUpload/index.js.map +2 -2
  77. package/FileUploadContainer/index.d.ts +7 -0
  78. package/FileUploadContainer/index.js +3 -2
  79. package/FileUploadContainer/index.js.map +2 -2
  80. package/FooterLinkBase/index.d.ts +9 -0
  81. package/FooterLinkBase/index.js +23 -0
  82. package/FooterLinkBase/index.js.map +7 -0
  83. package/{CallToAction → FooterLinkBase}/package.json +1 -1
  84. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  85. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  86. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  87. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  88. package/GovGRLogoBase/index.d.ts +9 -0
  89. package/GovGRLogoBase/index.js +43 -0
  90. package/GovGRLogoBase/index.js.map +7 -0
  91. package/{BackLink → GovGRLogoBase}/package.json +1 -1
  92. package/Grid/index.js +1 -0
  93. package/Grid/index.js.map +2 -2
  94. package/HeaderLogoBase/index.d.ts +19 -0
  95. package/HeaderLogoBase/index.js +33 -0
  96. package/HeaderLogoBase/index.js.map +7 -0
  97. package/HeaderLogoBase/package.json +6 -0
  98. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  99. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  100. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  101. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  102. package/HeaderTitleBase/index.d.ts +9 -0
  103. package/HeaderTitleBase/index.js +24 -0
  104. package/HeaderTitleBase/index.js.map +7 -0
  105. package/HeaderTitleBase/package.json +6 -0
  106. package/LinkBase/index.js +1 -0
  107. package/LinkBase/index.js.map +2 -2
  108. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  109. package/{NavListItemAction → NavListItemActionBase}/index.js +6 -6
  110. package/NavListItemActionBase/index.js.map +7 -0
  111. package/NavListItemActionBase/package.json +6 -0
  112. package/NavListItemActionContainer/index.native/index.js +1 -1
  113. package/NavListItemActionContainer/index.native.d.ts +0 -2
  114. package/NavListItemActionContainer/index.native.js.map +1 -1
  115. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  116. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  117. package/NavListItemLinkBase/index.js.map +7 -0
  118. package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
  119. package/NotificationBannerContent/index.js +1 -1
  120. package/NotificationBannerContent/index.js.map +2 -2
  121. package/NotificationBannerLink/index.native/index.js +1 -1
  122. package/NotificationBannerLink/index.native.d.ts +1 -3
  123. package/NotificationBannerLink/index.native.js.map +1 -1
  124. package/Table/index.d.ts +9 -0
  125. package/Table/index.js +4 -1
  126. package/Table/index.js.map +2 -2
  127. package/TableDataCell/index.d.ts +13 -0
  128. package/TableDataCell/index.js +10 -1
  129. package/TableDataCell/index.js.map +2 -2
  130. package/TextArea/index.native/index.js +1 -1
  131. package/TextArea/index.native.d.ts +1 -3
  132. package/TextArea/index.native.js.map +1 -1
  133. package/TextInput/index.native/index.js +1 -1
  134. package/TextInput/index.native.d.ts +1 -3
  135. package/TextInput/index.native.js.map +1 -1
  136. package/Typography/index.d.ts +1 -1
  137. package/Typography/index.js +15 -17
  138. package/Typography/index.js.map +2 -2
  139. package/WarningText/index.d.ts +7 -0
  140. package/WarningText/index.js +10 -2
  141. package/WarningText/index.js.map +2 -2
  142. package/cjs/Accordion/index.js +5 -35
  143. package/cjs/Accordion/index.js.map +3 -3
  144. package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
  145. package/cjs/Accordion/index.native.js.map +7 -0
  146. package/cjs/{ButtonLink → Accordion/index.web}/index.js +24 -16
  147. package/cjs/Accordion/index.web.js.map +7 -0
  148. package/cjs/AccordionSection/index.js +5 -21
  149. package/cjs/AccordionSection/index.js.map +3 -3
  150. package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
  151. package/cjs/AccordionSection/index.native.js.map +7 -0
  152. package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
  153. package/cjs/AccordionSection/index.web.js.map +7 -0
  154. package/cjs/AccordionSectionSummaryHeading/index.js +5 -3
  155. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  156. package/cjs/BackLinkBase/index.js +62 -0
  157. package/cjs/BackLinkBase/index.js.map +7 -0
  158. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  159. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  160. package/cjs/Base/compat/details.native/index.js +2 -1
  161. package/cjs/Base/compat/details.native.js.map +2 -2
  162. package/cjs/Base/index.native.js.map +2 -2
  163. package/cjs/Base/index.web.js.map +1 -1
  164. package/cjs/Base/mapping.native.js.map +2 -2
  165. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  166. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  167. package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
  168. package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
  169. package/cjs/Button/index.js +2 -0
  170. package/cjs/Button/index.js.map +2 -2
  171. package/cjs/ButtonLinkBase/index.js +60 -0
  172. package/cjs/ButtonLinkBase/index.js.map +7 -0
  173. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  174. package/cjs/CallToActionBase/index.js.map +7 -0
  175. package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
  176. package/cjs/CircularProgressBase/index.js.map +7 -0
  177. package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
  178. package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
  179. package/cjs/DateInputItem/index.native/index.js +2 -2
  180. package/cjs/DateInputItem/index.native.js.map +2 -2
  181. package/cjs/Details/index.native/index.js +2 -2
  182. package/cjs/Details/index.native.js.map +2 -2
  183. package/cjs/DetailsContent/index.js +3 -2
  184. package/cjs/DetailsContent/index.js.map +2 -2
  185. package/cjs/FileUpload/index.js +12 -4
  186. package/cjs/FileUpload/index.js.map +2 -2
  187. package/cjs/FileUploadContainer/index.js +3 -2
  188. package/cjs/FileUploadContainer/index.js.map +2 -2
  189. package/cjs/FooterLinkBase/index.js +56 -0
  190. package/cjs/FooterLinkBase/index.js.map +7 -0
  191. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  192. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  193. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  194. package/cjs/GovGRLogoBase/index.js.map +7 -0
  195. package/cjs/Grid/index.js +1 -0
  196. package/cjs/Grid/index.js.map +2 -2
  197. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  198. package/cjs/HeaderLogoBase/index.js.map +7 -0
  199. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  200. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  201. package/cjs/HeaderTitleBase/index.js +57 -0
  202. package/cjs/HeaderTitleBase/index.js.map +7 -0
  203. package/cjs/LinkBase/index.js +1 -0
  204. package/cjs/LinkBase/index.js.map +2 -2
  205. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +10 -10
  206. package/cjs/NavListItemActionBase/index.js.map +7 -0
  207. package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
  208. package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
  209. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  210. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  211. package/cjs/NotificationBannerContent/index.js +1 -1
  212. package/cjs/NotificationBannerContent/index.js.map +2 -2
  213. package/cjs/NotificationBannerLink/index.native/index.js +2 -2
  214. package/cjs/NotificationBannerLink/index.native.js.map +2 -2
  215. package/cjs/Table/index.js +4 -1
  216. package/cjs/Table/index.js.map +2 -2
  217. package/cjs/TableDataCell/index.js +10 -1
  218. package/cjs/TableDataCell/index.js.map +2 -2
  219. package/cjs/TextArea/index.native/index.js +2 -2
  220. package/cjs/TextArea/index.native.js.map +2 -2
  221. package/cjs/TextInput/index.native/index.js +2 -2
  222. package/cjs/TextInput/index.native.js.map +2 -2
  223. package/cjs/Typography/index.js +15 -17
  224. package/cjs/Typography/index.js.map +2 -2
  225. package/cjs/WarningText/index.js +10 -2
  226. package/cjs/WarningText/index.js.map +2 -2
  227. package/cjs/index.js +24 -26
  228. package/cjs/index.js.map +2 -2
  229. package/cjs/lazy/index.js +15 -16
  230. package/cjs/lazy.js.map +2 -2
  231. package/cjs/registry/index.js +40 -38
  232. package/cjs/registry.js.map +2 -2
  233. package/cjs/utils/index.native/index.js +86 -0
  234. package/cjs/utils/index.native.js.map +7 -0
  235. package/index.d.ts +12 -13
  236. package/index.js +13 -14
  237. package/index.js.map +2 -2
  238. package/lazy/index.js +15 -16
  239. package/package.json +5 -5
  240. package/registry/index.js +40 -38
  241. package/src/Accordion/index.native.tsx +19 -0
  242. package/src/Accordion/index.tsx +2 -71
  243. package/src/Accordion/index.web.tsx +71 -0
  244. package/src/AccordionSection/index.native.tsx +18 -0
  245. package/src/AccordionSection/index.tsx +2 -28
  246. package/src/AccordionSection/index.web.tsx +28 -0
  247. package/src/AccordionSectionSummaryHeading/index.tsx +12 -4
  248. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  249. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  250. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  251. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  252. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  253. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  254. package/src/BackLinkBase/index.test.tsx +15 -0
  255. package/src/BackLinkBase/index.tsx +36 -0
  256. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  257. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  258. package/src/Base/compat/details.native.tsx +3 -1
  259. package/src/Base/index.native.tsx +2 -2
  260. package/src/Base/index.web.tsx +2 -2
  261. package/src/Base/mapping.native.tsx +1 -1
  262. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  263. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  264. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  265. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  266. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  267. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  268. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
  269. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
  270. package/src/Button/index.tsx +2 -0
  271. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  272. package/src/ButtonLinkBase/index.test.tsx +75 -0
  273. package/src/ButtonLinkBase/index.tsx +55 -0
  274. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  275. package/src/CallToActionBase/index.test.tsx +10 -0
  276. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  277. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  278. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  279. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  280. package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
  281. package/src/CircularProgressBase/index.test.tsx +38 -0
  282. package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
  283. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  284. package/src/CopyToClipboardMessage/index.native.tsx +1 -1
  285. package/src/DateInputItem/index.native.tsx +1 -1
  286. package/src/Details/index.native.tsx +1 -1
  287. package/src/DetailsContent/index.tsx +11 -2
  288. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  289. package/src/FileUpload/index.tsx +20 -4
  290. package/src/FileUploadContainer/index.tsx +10 -1
  291. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  292. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  293. package/src/FooterLinkBase/index.test.tsx +16 -0
  294. package/src/FooterLinkBase/index.tsx +27 -0
  295. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  296. package/src/GovGRLogoBase/index.test.tsx +8 -0
  297. package/src/GovGRLogoBase/index.tsx +43 -0
  298. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  299. package/src/Grid/index.tsx +1 -0
  300. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  301. package/src/HeaderLogoBase/index.test.tsx +8 -0
  302. package/src/HeaderLogoBase/index.tsx +44 -0
  303. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  304. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  305. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  306. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  307. package/src/HeaderTitleBase/index.test.tsx +17 -0
  308. package/src/HeaderTitleBase/index.tsx +28 -0
  309. package/src/LinkBase/index.tsx +1 -0
  310. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  311. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
  312. package/src/NavListItemActionBase/index.test.tsx +42 -0
  313. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +13 -12
  314. package/src/NavListItemActionContainer/index.native.tsx +1 -1
  315. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  316. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  317. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  318. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  319. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  320. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  321. package/src/NotificationBannerContent/index.tsx +1 -1
  322. package/src/NotificationBannerLink/index.native.tsx +1 -1
  323. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  324. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  325. package/src/Table/index.tsx +12 -0
  326. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  327. package/src/TableDataCell/index.tsx +23 -1
  328. package/src/TextArea/index.native.tsx +1 -1
  329. package/src/TextInput/index.native.tsx +1 -1
  330. package/src/Typography/index.tsx +21 -20
  331. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  332. package/src/WarningText/index.test.tsx +5 -0
  333. package/src/WarningText/index.tsx +17 -2
  334. package/src/index.ts +12 -13
  335. package/src/lazy.js +15 -16
  336. package/src/registry.js +40 -38
  337. package/src/utils/index.native.tsx +122 -0
  338. package/utils/index.native/index.js +52 -0
  339. package/utils/index.native/package.json +6 -0
  340. package/utils/index.native.d.ts +43 -0
  341. package/utils/index.native.js.map +7 -0
  342. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  343. package/AutoCompleteInputTypeahead/index.js +0 -25
  344. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  345. package/BackLink/index.d.ts +0 -9
  346. package/BackLink/index.js +0 -31
  347. package/BackLink/index.js.map +0 -7
  348. package/BreadcrumbsListItem/index.d.ts +0 -10
  349. package/BreadcrumbsListItem/index.js.map +0 -7
  350. package/BreadcrumbsListItemLink/index.js +0 -24
  351. package/BreadcrumbsListItemLink/index.js.map +0 -7
  352. package/ButtonLink/index.js +0 -29
  353. package/ButtonLink/index.js.map +0 -7
  354. package/CallToAction/index.d.ts +0 -9
  355. package/CallToAction/index.js.map +0 -7
  356. package/CheckboxItemInput/index.native/index.js +0 -20
  357. package/CheckboxItemInput/index.native/package.json +0 -6
  358. package/CheckboxItemInput/index.native.d.ts +0 -4
  359. package/CheckboxItemInput/index.native.js.map +0 -7
  360. package/CircularProgress/index.js.map +0 -7
  361. package/FooterLink/index.d.ts +0 -9
  362. package/FooterLink/index.js +0 -25
  363. package/FooterLink/index.js.map +0 -7
  364. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  365. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  366. package/GovGRLogo/index.d.ts +0 -9
  367. package/GovGRLogo/index.js +0 -45
  368. package/GovGRLogo/index.js.map +0 -7
  369. package/GovGRLogo/package.json +0 -6
  370. package/HeaderLogo/index.d.ts +0 -19
  371. package/HeaderLogo/index.js +0 -35
  372. package/HeaderLogo/index.js.map +0 -7
  373. package/HeaderLogo/package.json +0 -6
  374. package/HeaderSecondaryLogo/index.d.ts +0 -19
  375. package/HeaderSecondaryLogo/index.js.map +0 -7
  376. package/HeaderSecondaryLogo/package.json +0 -6
  377. package/HeaderTitle/index.d.ts +0 -9
  378. package/HeaderTitle/index.js +0 -24
  379. package/HeaderTitle/index.js.map +0 -7
  380. package/HeaderTitle/package.json +0 -6
  381. package/NavListItemAction/index.js.map +0 -7
  382. package/NavListItemAction/package.json +0 -6
  383. package/NavListItemLink/index.js.map +0 -7
  384. package/NavListItemLink/index.test.d.ts +0 -1
  385. package/NavListItemLink/package.json +0 -6
  386. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  387. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  388. package/cjs/BackLink/index.js +0 -64
  389. package/cjs/BackLink/index.js.map +0 -7
  390. package/cjs/BreadcrumbsListItem/index.js.map +0 -7
  391. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  392. package/cjs/ButtonLink/index.js.map +0 -7
  393. package/cjs/CallToAction/index.js.map +0 -7
  394. package/cjs/CheckboxItemInput/index.native.js.map +0 -7
  395. package/cjs/CircularProgress/index.js.map +0 -7
  396. package/cjs/FooterLink/index.js +0 -58
  397. package/cjs/FooterLink/index.js.map +0 -7
  398. package/cjs/GovGRLogo/index.js.map +0 -7
  399. package/cjs/HeaderLogo/index.js +0 -68
  400. package/cjs/HeaderLogo/index.js.map +0 -7
  401. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  402. package/cjs/HeaderTitle/index.js.map +0 -7
  403. package/cjs/NavListItemAction/index.js.map +0 -7
  404. package/cjs/NavListItemLink/index.js.map +0 -7
  405. package/cjs/utils/extend.native.js.map +0 -7
  406. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  407. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  408. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
  409. package/src/BackLink/index.test.tsx +0 -13
  410. package/src/BackLink/index.tsx +0 -35
  411. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  412. package/src/ButtonLink/index.test.tsx +0 -69
  413. package/src/ButtonLink/index.tsx +0 -54
  414. package/src/CallToAction/index.test.tsx +0 -10
  415. package/src/CheckboxItemInput/index.native.tsx +0 -17
  416. package/src/CircularProgress/index.test.tsx +0 -34
  417. package/src/FooterLink/index.test.tsx +0 -14
  418. package/src/FooterLink/index.tsx +0 -26
  419. package/src/GovGRLogo/index.test.tsx +0 -8
  420. package/src/GovGRLogo/index.tsx +0 -42
  421. package/src/HeaderLogo/index.test.tsx +0 -8
  422. package/src/HeaderLogo/index.tsx +0 -43
  423. package/src/HeaderTitle/index.test.tsx +0 -16
  424. package/src/HeaderTitle/index.tsx +0 -28
  425. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  426. package/src/NavListItemAction/index.test.tsx +0 -11
  427. package/src/NavListItemLink/index.test.tsx +0 -39
  428. package/src/utils/extend.native.tsx +0 -36
  429. package/utils/extend.native/index.js +0 -14
  430. package/utils/extend.native/package.json +0 -6
  431. package/utils/extend.native.d.ts +0 -23
  432. package/utils/extend.native.js.map +0 -7
  433. /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
  434. /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  435. /package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
  436. /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
  437. /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
  438. /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
  439. /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
  440. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  441. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  442. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  443. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  444. /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
  445. /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  446. /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  447. /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
  448. /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
  449. /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
  450. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  451. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  452. /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
  453. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  454. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
@@ -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;
@@ -16,7 +16,6 @@ exports[`renders the Checkbox with dense prop and CheckboxItems 1`] = `
16
16
  <input
17
17
  class="ds-checkboxes__input"
18
18
  type="checkbox"
19
- value=""
20
19
  />
21
20
  </label>
22
21
  </div>
@@ -30,7 +29,6 @@ exports[`renders the Checkbox with dense prop and CheckboxItems 1`] = `
30
29
  <input
31
30
  class="ds-checkboxes__input"
32
31
  type="checkbox"
33
- value=""
34
32
  />
35
33
  </label>
36
34
  </div>
@@ -55,7 +53,6 @@ exports[`renders the Checkbox with layout=horizontal and CheckboxItems 1`] = `
55
53
  <input
56
54
  class="ds-checkboxes__input"
57
55
  type="checkbox"
58
- value=""
59
56
  />
60
57
  </label>
61
58
  </div>
@@ -69,7 +66,6 @@ exports[`renders the Checkbox with layout=horizontal and CheckboxItems 1`] = `
69
66
  <input
70
67
  class="ds-checkboxes__input"
71
68
  type="checkbox"
72
- value=""
73
69
  />
74
70
  </label>
75
71
  </div>
@@ -106,7 +102,6 @@ exports[`renders the Checkbox with no props and CheckboxItem 1`] = `
106
102
  <input
107
103
  class="ds-checkboxes__input"
108
104
  type="checkbox"
109
- value=""
110
105
  />
111
106
  </label>
112
107
  </div>
@@ -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"
@@ -14,7 +14,6 @@ exports[`renders the CheckboxItem with \`disabled\` prop 1`] = `
14
14
  class="ds-checkboxes__input"
15
15
  disabled=""
16
16
  type="checkbox"
17
- value=""
18
17
  />
19
18
  </label>
20
19
  </div>
@@ -40,7 +39,6 @@ exports[`renders the CheckboxItem with \`divider\` prop 1`] = `
40
39
  <input
41
40
  class="ds-checkboxes__input"
42
41
  type="checkbox"
43
- value=""
44
42
  />
45
43
  </label>
46
44
  </div>
@@ -62,7 +60,6 @@ exports[`renders the CheckboxItem with \`name\` prop 1`] = `
62
60
  class="ds-checkboxes__input"
63
61
  name="example"
64
62
  type="checkbox"
65
- value=""
66
63
  />
67
64
  </label>
68
65
  </div>
@@ -155,7 +152,6 @@ exports[`renders the CheckboxItem with no props 1`] = `
155
152
  <input
156
153
  class="ds-checkboxes__input"
157
154
  type="checkbox"
158
- value=""
159
155
  />
160
156
  </label>
161
157
  </div>
@@ -1,6 +1,6 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`renders the CircularProgress 1`] = `
3
+ exports[`renders the CircularProgressBase 1`] = `
4
4
  <body>
5
5
  <div>
6
6
  <svg
@@ -22,7 +22,7 @@ exports[`renders the CircularProgress 1`] = `
22
22
  </body>
23
23
  `;
24
24
 
25
- exports[`renders the CircularProgress with color=secondary and size lg props 1`] = `
25
+ exports[`renders the CircularProgressBase with color=secondary and size lg props 1`] = `
26
26
  <body>
27
27
  <div>
28
28
  <svg
@@ -44,7 +44,7 @@ exports[`renders the CircularProgress with color=secondary and size lg props 1`]
44
44
  </body>
45
45
  `;
46
46
 
47
- exports[`renders the CircularProgress with color=secondary and size sm props 1`] = `
47
+ exports[`renders the CircularProgressBase with color=secondary and size sm props 1`] = `
48
48
  <body>
49
49
  <div>
50
50
  <svg
@@ -66,7 +66,7 @@ exports[`renders the CircularProgress with color=secondary and size sm props 1`]
66
66
  </body>
67
67
  `;
68
68
 
69
- exports[`renders the CircularProgress with color=secondary prop 1`] = `
69
+ exports[`renders the CircularProgressBase with color=secondary prop 1`] = `
70
70
  <body>
71
71
  <div>
72
72
  <svg
@@ -88,7 +88,7 @@ exports[`renders the CircularProgress with color=secondary prop 1`] = `
88
88
  </body>
89
89
  `;
90
90
 
91
- exports[`renders the CircularProgress with size lg 1`] = `
91
+ exports[`renders the CircularProgressBase with size lg 1`] = `
92
92
  <body>
93
93
  <div>
94
94
  <svg
@@ -110,7 +110,7 @@ exports[`renders the CircularProgress with size lg 1`] = `
110
110
  </body>
111
111
  `;
112
112
 
113
- exports[`renders the CircularProgress with size sm 1`] = `
113
+ exports[`renders the CircularProgressBase with size sm 1`] = `
114
114
  <body>
115
115
  <div>
116
116
  <svg
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+
4
+ import CircularProgressBase from '@digigov/react-core/CircularProgressBase';
5
+
6
+ it('renders the CircularProgressBase', () => {
7
+ expect(render(<CircularProgressBase />).baseElement).toMatchSnapshot();
8
+ });
9
+
10
+ it('renders the CircularProgressBase with size sm', () => {
11
+ expect(
12
+ render(<CircularProgressBase size="sm" />).baseElement
13
+ ).toMatchSnapshot();
14
+ });
15
+
16
+ it('renders the CircularProgressBase with size lg', () => {
17
+ expect(
18
+ render(<CircularProgressBase size="lg" />).baseElement
19
+ ).toMatchSnapshot();
20
+ });
21
+
22
+ it('renders the CircularProgressBase with color=secondary prop', () => {
23
+ expect(
24
+ render(<CircularProgressBase color={'secondary'} />).baseElement
25
+ ).toMatchSnapshot();
26
+ });
27
+
28
+ it('renders the CircularProgressBase with color=secondary and size sm props', () => {
29
+ expect(
30
+ render(<CircularProgressBase color={'secondary'} size="sm" />).baseElement
31
+ ).toMatchSnapshot();
32
+ });
33
+
34
+ it('renders the CircularProgressBase with color=secondary and size lg props', () => {
35
+ expect(
36
+ render(<CircularProgressBase color={'secondary'} size="lg" />).baseElement
37
+ ).toMatchSnapshot();
38
+ });
@@ -2,7 +2,7 @@ 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 CircularProgressProps extends BaseProps<'svg'> {
5
+ export interface CircularProgressBaseProps extends BaseProps<'svg'> {
6
6
  /**
7
7
  * color prop is optional.
8
8
  * color prop is used to change the color of the loader.
@@ -22,12 +22,12 @@ export interface CircularProgressProps extends BaseProps<'svg'> {
22
22
  size?: 'sm' | 'md' | 'lg';
23
23
  }
24
24
  /**
25
- * Use CircularProgress component as an animated loader.
26
- * CircularProgress can be used inside LoaderContainer component.
25
+ * Use CircularProgressBase component as an animated loader.
26
+ * CircularProgressBase can be used inside LoaderContainer component.
27
27
  */
28
- export const CircularProgress = React.forwardRef<
29
- SVGSVGElement,
30
- CircularProgressProps
28
+ export const CircularProgressBase = React.forwardRef<
29
+ SVGElement,
30
+ CircularProgressBaseProps
31
31
  >(function CircularProgress(
32
32
  { color = 'primary', size = 'md', className, ...props },
33
33
  ref
@@ -60,4 +60,4 @@ export const CircularProgress = React.forwardRef<
60
60
  );
61
61
  });
62
62
 
63
- export default CircularProgress;
63
+ export default CircularProgressBase;
@@ -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 {
@@ -2,7 +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 DetailsContentProps extends BaseProps<'div'> {}
5
+ export interface DetailsContentProps extends BaseProps<'div'> {
6
+ /*
7
+ ** color is optional. Default value is 'primary'.
8
+ * @value 'primary'
9
+ * @value 'secondary'
10
+ * @default 'primary'
11
+ * */
12
+ color?: 'primary' | 'secondary';
13
+ }
6
14
  /**
7
15
  *DetailsContent component wraps the content text.
8
16
  *It is used inside Details component as children
@@ -10,13 +18,14 @@ export interface DetailsContentProps extends BaseProps<'div'> {}
10
18
  export const DetailsContent = React.forwardRef<
11
19
  HTMLDivElement,
12
20
  DetailsContentProps
13
- >(function DetailsContent({ className, children, ...props }, ref) {
21
+ >(function DetailsContent({ color, className, children, ...props }, ref) {
14
22
  return (
15
23
  <Base
16
24
  as="div"
17
25
  ref={ref}
18
26
  className={clsx(className, {
19
27
  'ds-details__content': true,
28
+ 'ds-details__content--secondary': color === 'secondary',
20
29
  })}
21
30
  {...props}
22
31
  >
@@ -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>