@digigov/react-core 2.0.0-d0adc9fb → 2.0.0-d2ffc726

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 (509) 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/BannerContainer/index.js +1 -1
  31. package/BannerContainer/index.js.map +2 -2
  32. package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  33. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  34. package/Base/compat/details.native/index.js +2 -1
  35. package/Base/compat/details.native.d.ts +2 -1
  36. package/Base/compat/details.native.js.map +2 -2
  37. package/Base/index.native.js.map +2 -2
  38. package/Base/index.web.d.ts +1 -1
  39. package/Base/index.web.js.map +1 -1
  40. package/Base/mapping.native.d.ts +1 -1
  41. package/Base/mapping.native.js.map +2 -2
  42. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  43. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  44. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  45. package/BreadcrumbsListItemLinkBase/package.json +6 -0
  46. package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
  47. package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
  48. package/BreadcrumbsListItemWrapper/index.js.map +7 -0
  49. package/{AutoCompleteInputTypeahead → BreadcrumbsListItemWrapper}/package.json +1 -1
  50. package/Button/index.js +2 -0
  51. package/Button/index.js.map +2 -2
  52. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  53. package/ButtonLinkBase/index.js +27 -0
  54. package/ButtonLinkBase/index.js.map +7 -0
  55. package/{FooterLink → ButtonLinkBase}/package.json +1 -1
  56. package/CallToActionBase/index.d.ts +9 -0
  57. package/{CallToAction → CallToActionBase}/index.js +6 -6
  58. package/CallToActionBase/index.js.map +7 -0
  59. package/{CircularProgress → CallToActionBase}/package.json +1 -1
  60. package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
  61. package/{CircularProgress → CircularProgressBase}/index.js +4 -4
  62. package/CircularProgressBase/index.js.map +7 -0
  63. package/CircularProgressBase/package.json +6 -0
  64. package/CopyToClipboardMessage/index.native/index.js +1 -1
  65. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  66. package/CopyToClipboardMessage/index.native.js.map +1 -1
  67. package/DateInputItem/index.native/index.js +1 -1
  68. package/DateInputItem/index.native.d.ts +1 -3
  69. package/DateInputItem/index.native.js.map +1 -1
  70. package/Details/index.native/index.js +1 -1
  71. package/Details/index.native.d.ts +1 -3
  72. package/Details/index.native.js.map +1 -1
  73. package/DetailsContent/index.d.ts +1 -0
  74. package/DetailsContent/index.js +3 -2
  75. package/DetailsContent/index.js.map +2 -2
  76. package/ErrorSummary/index.d.ts +9 -0
  77. package/ErrorSummary/index.js +3 -3
  78. package/ErrorSummary/index.js.map +2 -2
  79. package/FileUpload/index.d.ts +7 -0
  80. package/FileUpload/index.js +12 -4
  81. package/FileUpload/index.js.map +2 -2
  82. package/FileUploadContainer/index.d.ts +7 -0
  83. package/FileUploadContainer/index.js +3 -2
  84. package/FileUploadContainer/index.js.map +2 -2
  85. package/FooterLinkBase/index.d.ts +9 -0
  86. package/FooterLinkBase/index.js +23 -0
  87. package/FooterLinkBase/index.js.map +7 -0
  88. package/{CallToAction → FooterLinkBase}/package.json +1 -1
  89. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  90. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  91. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  92. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  93. package/GovGRLogoBase/index.d.ts +9 -0
  94. package/GovGRLogoBase/index.js +43 -0
  95. package/GovGRLogoBase/index.js.map +7 -0
  96. package/{BackLink → GovGRLogoBase}/package.json +1 -1
  97. package/Grid/index.d.ts +1 -7
  98. package/Grid/index.js +1 -0
  99. package/Grid/index.js.map +2 -2
  100. package/HeaderLogoBase/index.d.ts +19 -0
  101. package/HeaderLogoBase/index.js +33 -0
  102. package/HeaderLogoBase/index.js.map +7 -0
  103. package/HeaderLogoBase/package.json +6 -0
  104. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  105. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  106. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  107. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  108. package/HeaderTitleBase/index.d.ts +9 -0
  109. package/HeaderTitleBase/index.js +24 -0
  110. package/HeaderTitleBase/index.js.map +7 -0
  111. package/HeaderTitleBase/package.json +6 -0
  112. package/LinkBase/index.js +1 -0
  113. package/LinkBase/index.js.map +2 -2
  114. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  115. package/{NavListItemAction → NavListItemActionBase}/index.js +6 -6
  116. package/NavListItemActionBase/index.js.map +7 -0
  117. package/NavListItemActionBase/package.json +6 -0
  118. package/NavListItemActionContainer/index.native/index.js +1 -1
  119. package/NavListItemActionContainer/index.native.d.ts +0 -2
  120. package/NavListItemActionContainer/index.native.js.map +1 -1
  121. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  122. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  123. package/NavListItemLinkBase/index.js.map +7 -0
  124. package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
  125. package/NotificationBannerContainer/index.d.ts +2 -1
  126. package/NotificationBannerContainer/index.js.map +2 -2
  127. package/NotificationBannerContent/index.d.ts +22 -0
  128. package/NotificationBannerContent/index.js +14 -3
  129. package/NotificationBannerContent/index.js.map +2 -2
  130. package/NotificationBannerLink/index.native/index.js +1 -1
  131. package/NotificationBannerLink/index.native.d.ts +1 -3
  132. package/NotificationBannerLink/index.native.js.map +1 -1
  133. package/Skeleton/index.js +2 -1
  134. package/Skeleton/index.js.map +2 -2
  135. package/SummaryList/index.d.ts +10 -2
  136. package/SummaryList/index.js +10 -2
  137. package/SummaryList/index.js.map +2 -2
  138. package/SummaryListItem/index.js +1 -1
  139. package/SummaryListItem/index.js.map +2 -2
  140. package/SummaryListItemKey/index.d.ts +14 -0
  141. package/SummaryListItemKey/index.js +14 -2
  142. package/SummaryListItemKey/index.js.map +2 -2
  143. package/SummaryListItemValue/index.d.ts +14 -0
  144. package/SummaryListItemValue/index.js +11 -2
  145. package/SummaryListItemValue/index.js.map +2 -2
  146. package/Table/index.d.ts +9 -0
  147. package/Table/index.js +4 -1
  148. package/Table/index.js.map +2 -2
  149. package/TableDataCell/index.d.ts +22 -0
  150. package/TableDataCell/index.js +18 -2
  151. package/TableDataCell/index.js.map +2 -2
  152. package/TextArea/index.native/index.js +1 -1
  153. package/TextArea/index.native.d.ts +1 -3
  154. package/TextArea/index.native.js.map +1 -1
  155. package/TextInput/index.native/index.js +1 -1
  156. package/TextInput/index.native.d.ts +1 -3
  157. package/TextInput/index.native.js.map +1 -1
  158. package/Typography/index.d.ts +1 -1
  159. package/Typography/index.js +15 -17
  160. package/Typography/index.js.map +2 -2
  161. package/WarningText/index.d.ts +7 -0
  162. package/WarningText/index.js +10 -2
  163. package/WarningText/index.js.map +2 -2
  164. package/cjs/Accordion/index.js +5 -35
  165. package/cjs/Accordion/index.js.map +3 -3
  166. package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
  167. package/cjs/Accordion/index.native.js.map +7 -0
  168. package/cjs/{ButtonLink → Accordion/index.web}/index.js +24 -16
  169. package/cjs/Accordion/index.web.js.map +7 -0
  170. package/cjs/AccordionSection/index.js +5 -21
  171. package/cjs/AccordionSection/index.js.map +3 -3
  172. package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
  173. package/cjs/AccordionSection/index.native.js.map +7 -0
  174. package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
  175. package/cjs/AccordionSection/index.web.js.map +7 -0
  176. package/cjs/AccordionSectionSummaryHeading/index.js +5 -3
  177. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  178. package/cjs/BackLinkBase/index.js +62 -0
  179. package/cjs/BackLinkBase/index.js.map +7 -0
  180. package/cjs/BannerContainer/index.js +1 -1
  181. package/cjs/BannerContainer/index.js.map +2 -2
  182. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  183. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  184. package/cjs/Base/compat/details.native/index.js +2 -1
  185. package/cjs/Base/compat/details.native.js.map +2 -2
  186. package/cjs/Base/index.native.js.map +2 -2
  187. package/cjs/Base/index.web.js.map +1 -1
  188. package/cjs/Base/mapping.native.js.map +2 -2
  189. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  190. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  191. package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
  192. package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
  193. package/cjs/Button/index.js +2 -0
  194. package/cjs/Button/index.js.map +2 -2
  195. package/cjs/ButtonLinkBase/index.js +60 -0
  196. package/cjs/ButtonLinkBase/index.js.map +7 -0
  197. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  198. package/cjs/CallToActionBase/index.js.map +7 -0
  199. package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
  200. package/cjs/CircularProgressBase/index.js.map +7 -0
  201. package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
  202. package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
  203. package/cjs/DateInputItem/index.native/index.js +2 -2
  204. package/cjs/DateInputItem/index.native.js.map +2 -2
  205. package/cjs/Details/index.native/index.js +2 -2
  206. package/cjs/Details/index.native.js.map +2 -2
  207. package/cjs/DetailsContent/index.js +3 -2
  208. package/cjs/DetailsContent/index.js.map +2 -2
  209. package/cjs/ErrorSummary/index.js +3 -3
  210. package/cjs/ErrorSummary/index.js.map +2 -2
  211. package/cjs/FileUpload/index.js +12 -4
  212. package/cjs/FileUpload/index.js.map +2 -2
  213. package/cjs/FileUploadContainer/index.js +3 -2
  214. package/cjs/FileUploadContainer/index.js.map +2 -2
  215. package/cjs/FooterLinkBase/index.js +56 -0
  216. package/cjs/FooterLinkBase/index.js.map +7 -0
  217. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  218. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  219. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  220. package/cjs/GovGRLogoBase/index.js.map +7 -0
  221. package/cjs/Grid/index.js +1 -0
  222. package/cjs/Grid/index.js.map +2 -2
  223. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  224. package/cjs/HeaderLogoBase/index.js.map +7 -0
  225. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  226. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  227. package/cjs/HeaderTitleBase/index.js +57 -0
  228. package/cjs/HeaderTitleBase/index.js.map +7 -0
  229. package/cjs/LinkBase/index.js +1 -0
  230. package/cjs/LinkBase/index.js.map +2 -2
  231. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +10 -10
  232. package/cjs/NavListItemActionBase/index.js.map +7 -0
  233. package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
  234. package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
  235. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  236. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  237. package/cjs/NotificationBannerContainer/index.js.map +2 -2
  238. package/cjs/NotificationBannerContent/index.js +14 -3
  239. package/cjs/NotificationBannerContent/index.js.map +2 -2
  240. package/cjs/NotificationBannerLink/index.native/index.js +2 -2
  241. package/cjs/NotificationBannerLink/index.native.js.map +2 -2
  242. package/cjs/Skeleton/index.js +2 -1
  243. package/cjs/Skeleton/index.js.map +2 -2
  244. package/cjs/SummaryList/index.js +10 -2
  245. package/cjs/SummaryList/index.js.map +2 -2
  246. package/cjs/SummaryListItem/index.js +1 -1
  247. package/cjs/SummaryListItem/index.js.map +2 -2
  248. package/cjs/SummaryListItemKey/index.js +14 -2
  249. package/cjs/SummaryListItemKey/index.js.map +3 -3
  250. package/cjs/SummaryListItemValue/index.js +11 -2
  251. package/cjs/SummaryListItemValue/index.js.map +3 -3
  252. package/cjs/Table/index.js +4 -1
  253. package/cjs/Table/index.js.map +2 -2
  254. package/cjs/TableDataCell/index.js +18 -2
  255. package/cjs/TableDataCell/index.js.map +3 -3
  256. package/cjs/TextArea/index.native/index.js +2 -2
  257. package/cjs/TextArea/index.native.js.map +2 -2
  258. package/cjs/TextInput/index.native/index.js +2 -2
  259. package/cjs/TextInput/index.native.js.map +2 -2
  260. package/cjs/Typography/index.js +15 -17
  261. package/cjs/Typography/index.js.map +2 -2
  262. package/cjs/WarningText/index.js +10 -2
  263. package/cjs/WarningText/index.js.map +2 -2
  264. package/cjs/index.js +24 -26
  265. package/cjs/index.js.map +2 -2
  266. package/cjs/lazy/index.js +15 -16
  267. package/cjs/lazy.js.map +2 -2
  268. package/cjs/registry/index.js +36 -34
  269. package/cjs/registry.js.map +2 -2
  270. package/cjs/utils/index.native/index.js +86 -0
  271. package/cjs/utils/index.native.js.map +7 -0
  272. package/index.d.ts +12 -13
  273. package/index.js +13 -14
  274. package/index.js.map +2 -2
  275. package/lazy/index.js +15 -16
  276. package/package.json +5 -5
  277. package/registry/index.js +36 -34
  278. package/src/Accordion/index.native.tsx +19 -0
  279. package/src/Accordion/index.tsx +2 -71
  280. package/src/Accordion/index.web.tsx +71 -0
  281. package/src/AccordionSection/index.native.tsx +18 -0
  282. package/src/AccordionSection/index.tsx +2 -28
  283. package/src/AccordionSection/index.web.tsx +28 -0
  284. package/src/AccordionSectionSummaryHeading/index.tsx +12 -4
  285. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  286. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  287. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  288. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  289. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  290. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  291. package/src/BackLinkBase/index.test.tsx +15 -0
  292. package/src/BackLinkBase/index.tsx +36 -0
  293. package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
  294. package/src/BannerContainer/index.tsx +1 -1
  295. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  296. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  297. package/src/Base/compat/details.native.tsx +3 -1
  298. package/src/Base/index.native.tsx +2 -2
  299. package/src/Base/index.web.tsx +2 -2
  300. package/src/Base/mapping.native.tsx +1 -1
  301. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  302. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  303. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  304. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  305. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  306. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  307. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
  308. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
  309. package/src/Button/index.tsx +2 -0
  310. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  311. package/src/ButtonLinkBase/index.test.tsx +75 -0
  312. package/src/ButtonLinkBase/index.tsx +55 -0
  313. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  314. package/src/CallToActionBase/index.test.tsx +10 -0
  315. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  316. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  317. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  318. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  319. package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
  320. package/src/CircularProgressBase/index.test.tsx +38 -0
  321. package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
  322. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  323. package/src/CopyToClipboardMessage/index.native.tsx +1 -1
  324. package/src/DateInputItem/index.native.tsx +1 -1
  325. package/src/Details/index.native.tsx +1 -1
  326. package/src/DetailsContent/index.tsx +11 -2
  327. package/src/ErrorSummary/index.tsx +17 -4
  328. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  329. package/src/FileUpload/index.tsx +20 -4
  330. package/src/FileUploadContainer/index.tsx +10 -1
  331. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  332. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  333. package/src/FooterLinkBase/index.test.tsx +16 -0
  334. package/src/FooterLinkBase/index.tsx +27 -0
  335. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  336. package/src/GovGRLogoBase/index.test.tsx +8 -0
  337. package/src/GovGRLogoBase/index.tsx +43 -0
  338. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  339. package/src/Grid/index.tsx +2 -7
  340. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  341. package/src/HeaderLogoBase/index.test.tsx +8 -0
  342. package/src/HeaderLogoBase/index.tsx +44 -0
  343. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  344. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  345. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  346. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  347. package/src/HeaderTitleBase/index.test.tsx +17 -0
  348. package/src/HeaderTitleBase/index.tsx +28 -0
  349. package/src/LinkBase/index.tsx +1 -0
  350. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  351. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
  352. package/src/NavListItemActionBase/index.test.tsx +42 -0
  353. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +13 -12
  354. package/src/NavListItemActionContainer/index.native.tsx +1 -1
  355. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  356. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  357. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  358. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  359. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  360. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  361. package/src/NotificationBannerContainer/index.tsx +2 -1
  362. package/src/NotificationBannerContent/index.tsx +50 -4
  363. package/src/NotificationBannerLink/index.native.tsx +1 -1
  364. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  365. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  366. package/src/Skeleton/index.tsx +3 -2
  367. package/src/SummaryList/__snapshots__/index.test.tsx.snap +36 -0
  368. package/src/SummaryList/index.test.tsx +15 -0
  369. package/src/SummaryList/index.tsx +20 -3
  370. package/src/SummaryListItem/index.tsx +1 -1
  371. package/src/SummaryListItemKey/__snapshots__/index.test.tsx.snap +70 -0
  372. package/src/SummaryListItemKey/index.test.tsx +29 -0
  373. package/src/SummaryListItemKey/index.tsx +29 -1
  374. package/src/SummaryListItemValue/__snapshots__/index.test.tsx.snap +34 -0
  375. package/src/SummaryListItemValue/index.test.tsx +14 -0
  376. package/src/SummaryListItemValue/index.tsx +30 -2
  377. package/src/Table/index.tsx +12 -0
  378. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +79 -2
  379. package/src/TableDataCell/index.test.tsx +42 -0
  380. package/src/TableDataCell/index.tsx +56 -1
  381. package/src/TableRow/__snapshots__/index.test.tsx.snap +1 -1
  382. package/src/TableRow/index.test.tsx +1 -1
  383. package/src/TextArea/index.native.tsx +1 -1
  384. package/src/TextInput/index.native.tsx +1 -1
  385. package/src/Typography/index.tsx +21 -20
  386. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  387. package/src/WarningText/index.test.tsx +5 -0
  388. package/src/WarningText/index.tsx +17 -2
  389. package/src/index.ts +12 -13
  390. package/src/lazy.js +15 -16
  391. package/src/registry.js +36 -34
  392. package/src/utils/index.native.tsx +122 -0
  393. package/utils/index.native/index.js +52 -0
  394. package/utils/index.native/package.json +6 -0
  395. package/utils/index.native.d.ts +43 -0
  396. package/utils/index.native.js.map +7 -0
  397. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  398. package/AutoCompleteInputTypeahead/index.js +0 -25
  399. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  400. package/BackLink/index.d.ts +0 -9
  401. package/BackLink/index.js +0 -31
  402. package/BackLink/index.js.map +0 -7
  403. package/BreadcrumbsListItem/index.d.ts +0 -10
  404. package/BreadcrumbsListItem/index.js.map +0 -7
  405. package/BreadcrumbsListItemLink/index.js +0 -24
  406. package/BreadcrumbsListItemLink/index.js.map +0 -7
  407. package/ButtonLink/index.js +0 -29
  408. package/ButtonLink/index.js.map +0 -7
  409. package/CallToAction/index.d.ts +0 -9
  410. package/CallToAction/index.js.map +0 -7
  411. package/CheckboxItemInput/index.native/index.js +0 -20
  412. package/CheckboxItemInput/index.native/package.json +0 -6
  413. package/CheckboxItemInput/index.native.d.ts +0 -4
  414. package/CheckboxItemInput/index.native.js.map +0 -7
  415. package/CircularProgress/index.js.map +0 -7
  416. package/FooterLink/index.d.ts +0 -9
  417. package/FooterLink/index.js +0 -25
  418. package/FooterLink/index.js.map +0 -7
  419. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  420. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  421. package/GovGRLogo/index.d.ts +0 -9
  422. package/GovGRLogo/index.js +0 -45
  423. package/GovGRLogo/index.js.map +0 -7
  424. package/GovGRLogo/package.json +0 -6
  425. package/HeaderLogo/index.d.ts +0 -19
  426. package/HeaderLogo/index.js +0 -35
  427. package/HeaderLogo/index.js.map +0 -7
  428. package/HeaderLogo/package.json +0 -6
  429. package/HeaderSecondaryLogo/index.d.ts +0 -19
  430. package/HeaderSecondaryLogo/index.js.map +0 -7
  431. package/HeaderSecondaryLogo/package.json +0 -6
  432. package/HeaderTitle/index.d.ts +0 -9
  433. package/HeaderTitle/index.js +0 -24
  434. package/HeaderTitle/index.js.map +0 -7
  435. package/HeaderTitle/package.json +0 -6
  436. package/NavListItemAction/index.js.map +0 -7
  437. package/NavListItemAction/package.json +0 -6
  438. package/NavListItemLink/index.js.map +0 -7
  439. package/NavListItemLink/index.test.d.ts +0 -1
  440. package/NavListItemLink/package.json +0 -6
  441. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  442. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  443. package/cjs/BackLink/index.js +0 -64
  444. package/cjs/BackLink/index.js.map +0 -7
  445. package/cjs/BreadcrumbsListItem/index.js.map +0 -7
  446. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  447. package/cjs/ButtonLink/index.js.map +0 -7
  448. package/cjs/CallToAction/index.js.map +0 -7
  449. package/cjs/CheckboxItemInput/index.native.js.map +0 -7
  450. package/cjs/CircularProgress/index.js.map +0 -7
  451. package/cjs/FooterLink/index.js +0 -58
  452. package/cjs/FooterLink/index.js.map +0 -7
  453. package/cjs/GovGRLogo/index.js.map +0 -7
  454. package/cjs/HeaderLogo/index.js +0 -68
  455. package/cjs/HeaderLogo/index.js.map +0 -7
  456. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  457. package/cjs/HeaderTitle/index.js.map +0 -7
  458. package/cjs/NavListItemAction/index.js.map +0 -7
  459. package/cjs/NavListItemLink/index.js.map +0 -7
  460. package/cjs/utils/extend.native.js.map +0 -7
  461. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  462. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  463. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
  464. package/src/BackLink/index.test.tsx +0 -13
  465. package/src/BackLink/index.tsx +0 -35
  466. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  467. package/src/ButtonLink/index.test.tsx +0 -69
  468. package/src/ButtonLink/index.tsx +0 -54
  469. package/src/CallToAction/index.test.tsx +0 -10
  470. package/src/CheckboxItemInput/index.native.tsx +0 -17
  471. package/src/CircularProgress/index.test.tsx +0 -34
  472. package/src/FooterLink/index.test.tsx +0 -14
  473. package/src/FooterLink/index.tsx +0 -26
  474. package/src/GovGRLogo/index.test.tsx +0 -8
  475. package/src/GovGRLogo/index.tsx +0 -42
  476. package/src/HeaderLogo/index.test.tsx +0 -8
  477. package/src/HeaderLogo/index.tsx +0 -43
  478. package/src/HeaderTitle/index.test.tsx +0 -16
  479. package/src/HeaderTitle/index.tsx +0 -28
  480. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  481. package/src/NavListItemAction/index.test.tsx +0 -11
  482. package/src/NavListItemLink/index.test.tsx +0 -39
  483. package/src/utils/extend.native.tsx +0 -36
  484. package/utils/extend.native/index.js +0 -14
  485. package/utils/extend.native/package.json +0 -6
  486. package/utils/extend.native.d.ts +0 -23
  487. package/utils/extend.native.js.map +0 -7
  488. /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
  489. /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  490. /package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
  491. /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
  492. /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
  493. /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
  494. /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
  495. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  496. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  497. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  498. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  499. /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
  500. /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  501. /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  502. /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
  503. /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
  504. /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
  505. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  506. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  507. /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
  508. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  509. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
@@ -2,5 +2,5 @@
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
4
  "types": "./index.d.ts",
5
- "main": "../cjs/BackLink/index.js"
5
+ "main": "../cjs/GovGRLogoBase/index.js"
6
6
  }
package/Grid/index.d.ts CHANGED
@@ -30,13 +30,7 @@ export interface GridProps extends BaseProps<'div' | 'aside' | 'main'> {
30
30
  inline?: boolean;
31
31
  /**
32
32
  * Defines the space between the type item components. It can only be used on a type container component.
33
- * @value 1
34
- * @value 2
35
- * @value 4
36
- * @value 6
37
- * @value 8
38
- * @value 10
39
- * @value 12
33
+ * @value 1 - 12
40
34
  * @value object
41
35
  * @default undefined
42
36
  */
package/Grid/index.js CHANGED
@@ -23,6 +23,7 @@ const Grid = React.forwardRef(function Grid2({
23
23
  ref,
24
24
  className: clsx(className, {
25
25
  "ds-grid": container,
26
+ "ds-grid-item": item,
26
27
  "ds-grid-inline": container && inline,
27
28
  [`ds-gap-${spacing}`]: container && typeof spacing === "number",
28
29
  [`ds-gap-xs-${spacing?.xs}`]: container && spacing?.xs !== void 0,
package/Grid/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Grid/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\ntype GridValues = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\ntype SpacingValues = 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 11 | 12;\ninterface SpacingMediaValues {\n xs?: SpacingValues;\n sm?: SpacingValues;\n md?: SpacingValues;\n lg?: SpacingValues;\n xl?: SpacingValues;\n}\nexport interface GridProps extends BaseProps<'div' | 'aside' | 'main'> {\n /**\n * If true, the component will have the flex container behavior. You should be wrapping items with a container.\n * @value true\n * @value false\n * @default false\n */\n container?: boolean;\n /**\n * @value true\n * @value false\n * @default true\n */\n item?: boolean;\n /**\n * @value true\n * @value false\n */\n inline?: boolean;\n /**\n * Defines the space between the type item components. It can only be used on a type container component.\n * @value 1\n * @value 2\n * @value 4\n * @value 6\n * @value 8\n * @value 10\n * @value 12\n * @value object\n * @default undefined\n */\n spacing?: SpacingValues | SpacingMediaValues;\n\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for all the screen sizes with the lowest priority.\n */\n xs?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the sm breakpoint and wider screens if not overridden.\n */\n sm?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the md breakpoint and wider screens if not overridden.\n */\n md?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the lg breakpoint and wider screens if not overridden.\n */\n lg?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the xl breakpoint and wider screens.\n */\n xl?: GridValues;\n}\n/**\n * Grid is used to arrange other components in complex grid configurations of rows and columns.\n */\nexport const Grid = React.forwardRef<HTMLElement, GridProps>(function Grid(\n {\n className,\n children,\n container = false,\n item = true,\n spacing,\n inline,\n xs,\n sm,\n md,\n lg,\n xl,\n as,\n ...props\n },\n ref\n) {\n return (\n <Base\n as={as || 'div'}\n ref={ref}\n className={clsx(className, {\n 'ds-grid': container,\n 'ds-grid-inline': container && inline,\n [`ds-gap-${spacing}`]: container && typeof spacing === 'number',\n [`ds-gap-xs-${(spacing as SpacingMediaValues)?.xs}`]:\n container && (spacing as SpacingMediaValues)?.xs !== undefined,\n [`ds-gap-sm-${(spacing as SpacingMediaValues)?.sm}`]:\n container && (spacing as SpacingMediaValues)?.sm !== undefined,\n [`ds-gap-md-${(spacing as SpacingMediaValues)?.md}`]:\n container && (spacing as SpacingMediaValues)?.md !== undefined,\n [`ds-gap-lg-${(spacing as SpacingMediaValues)?.lg}`]:\n container && (spacing as SpacingMediaValues)?.lg !== undefined,\n [`ds-gap-xl-${(spacing as SpacingMediaValues)?.xl}`]:\n container && (spacing as SpacingMediaValues)?.xl !== undefined,\n [`xs:ds-grid__col-span-${xs}`]: item && xs !== undefined,\n [`sm:ds-grid__col-span-${sm}`]: item && sm !== undefined,\n [`md:ds-grid__col-span-${md}`]: item && md !== undefined,\n [`lg:ds-grid__col-span-${lg}`]: item && lg !== undefined,\n [`xl:ds-grid__col-span-${xl}`]: item && xl !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default Grid;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAwFzB,MAAM,OAAO,MAAM,WAAmC,SAASA,MACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,MAAM;AAAA,MACV;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,WAAW;AAAA,QACX,kBAAkB,aAAa;AAAA,QAC/B,CAAC,UAAU,OAAO,EAAE,GAAG,aAAa,OAAO,YAAY;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,MACjD,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,eAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\ntype GridValues = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\ntype SpacingValues = 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 11 | 12;\ninterface SpacingMediaValues {\n xs?: SpacingValues;\n sm?: SpacingValues;\n md?: SpacingValues;\n lg?: SpacingValues;\n xl?: SpacingValues;\n}\nexport interface GridProps extends BaseProps<'div' | 'aside' | 'main'> {\n /**\n * If true, the component will have the flex container behavior. You should be wrapping items with a container.\n * @value true\n * @value false\n * @default false\n */\n container?: boolean;\n /**\n * @value true\n * @value false\n * @default true\n */\n item?: boolean;\n /**\n * @value true\n * @value false\n */\n inline?: boolean;\n /**\n * Defines the space between the type item components. It can only be used on a type container component.\n * @value 1 - 12\n * @value object\n * @default undefined\n */\n spacing?: SpacingValues | SpacingMediaValues;\n\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for all the screen sizes with the lowest priority.\n */\n xs?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the sm breakpoint and wider screens if not overridden.\n */\n sm?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the md breakpoint and wider screens if not overridden.\n */\n md?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the lg breakpoint and wider screens if not overridden.\n */\n lg?: GridValues;\n /**\n * If a number, it sets the number of columns the grid item uses.\n * It can't be greater than the total number of columns of the container (12).\n * If 'auto', the grid item's width matches its content.\n * If it's not set, the prop is ignored.\n * The value is applied for the xl breakpoint and wider screens.\n */\n xl?: GridValues;\n}\n/**\n * Grid is used to arrange other components in complex grid configurations of rows and columns.\n */\nexport const Grid = React.forwardRef<HTMLElement, GridProps>(function Grid(\n {\n className,\n children,\n container = false,\n item = true,\n spacing,\n inline,\n xs,\n sm,\n md,\n lg,\n xl,\n as,\n ...props\n },\n ref\n) {\n return (\n <Base\n as={as || 'div'}\n ref={ref}\n className={clsx(className, {\n 'ds-grid': container,\n 'ds-grid-item': item,\n 'ds-grid-inline': container && inline,\n [`ds-gap-${spacing}`]: container && typeof spacing === 'number',\n [`ds-gap-xs-${(spacing as SpacingMediaValues)?.xs}`]:\n container && (spacing as SpacingMediaValues)?.xs !== undefined,\n [`ds-gap-sm-${(spacing as SpacingMediaValues)?.sm}`]:\n container && (spacing as SpacingMediaValues)?.sm !== undefined,\n [`ds-gap-md-${(spacing as SpacingMediaValues)?.md}`]:\n container && (spacing as SpacingMediaValues)?.md !== undefined,\n [`ds-gap-lg-${(spacing as SpacingMediaValues)?.lg}`]:\n container && (spacing as SpacingMediaValues)?.lg !== undefined,\n [`ds-gap-xl-${(spacing as SpacingMediaValues)?.xl}`]:\n container && (spacing as SpacingMediaValues)?.xl !== undefined,\n [`xs:ds-grid__col-span-${xs}`]: item && xs !== undefined,\n [`sm:ds-grid__col-span-${sm}`]: item && sm !== undefined,\n [`md:ds-grid__col-span-${md}`]: item && md !== undefined,\n [`lg:ds-grid__col-span-${lg}`]: item && lg !== undefined,\n [`xl:ds-grid__col-span-${xl}`]: item && xl !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default Grid;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAkFzB,MAAM,OAAO,MAAM,WAAmC,SAASA,MACpE;AAAA,EACE;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,MAAM;AAAA,MACV;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,WAAW;AAAA,QACX,gBAAgB;AAAA,QAChB,kBAAkB,aAAa;AAAA,QAC/B,CAAC,UAAU,OAAO,EAAE,GAAG,aAAa,OAAO,YAAY;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,aAAc,SAAgC,EAAE,EAAE,GACjD,aAAc,SAAgC,OAAO;AAAA,QACvD,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,QAC/C,CAAC,wBAAwB,EAAE,EAAE,GAAG,QAAQ,OAAO;AAAA,MACjD,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,eAAQ;",
6
6
  "names": ["Grid"]
7
7
  }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface HeaderLogoBaseProps extends LinkBaseProps {
4
+ /**
5
+ * src is optional.
6
+
7
+ */
8
+ src?: string;
9
+ /**
10
+ * href is optional.
11
+
12
+ */
13
+ altText?: string;
14
+ }
15
+ /**
16
+ * Use this component inside the Header to provide a logo.
17
+ */
18
+ export declare const HeaderLogoBase: React.ForwardRefExoticComponent<Omit<HeaderLogoBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
19
+ export default HeaderLogoBase;
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import { LinkBase } from "@digigov/react-core/LinkBase";
4
+ const HeaderLogoBase = React.forwardRef(function HeaderLogoBase2({ href, src, altText, className, ...props }, ref) {
5
+ return /* @__PURE__ */ React.createElement(
6
+ LinkBase,
7
+ {
8
+ href,
9
+ ref,
10
+ defaultStyle: false,
11
+ className: clsx(className, {
12
+ "ds-header__link": true
13
+ }),
14
+ ...props
15
+ },
16
+ /* @__PURE__ */ React.createElement(
17
+ "img",
18
+ {
19
+ src,
20
+ className: clsx(className, {
21
+ "ds-header__logo": true
22
+ }),
23
+ alt: altText
24
+ }
25
+ )
26
+ );
27
+ });
28
+ var HeaderLogoBase_default = HeaderLogoBase;
29
+ export {
30
+ HeaderLogoBase,
31
+ HeaderLogoBase_default as default
32
+ };
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/HeaderLogoBase/index.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface HeaderLogoBaseProps extends LinkBaseProps {\n /**\n * src is optional.\n\n */\n src?: string;\n /**\n * href is optional.\n\n */\n altText?: string;\n}\n/**\n * Use this component inside the Header to provide a logo.\n */\nexport const HeaderLogoBase = React.forwardRef<\n HTMLAnchorElement,\n HeaderLogoBaseProps\n>(function HeaderLogoBase({ href, src, altText, className, ...props }, ref) {\n return (\n <LinkBase\n href={href}\n ref={ref}\n defaultStyle={false}\n className={clsx(className, {\n 'ds-header__link': true,\n })}\n {...props}\n >\n <img\n src={src}\n className={clsx(className, {\n 'ds-header__logo': true,\n })}\n alt={altText}\n />\n </LinkBase>\n );\n});\nexport default HeaderLogoBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,gBAA+B;AAiBjC,MAAM,iBAAiB,MAAM,WAGlC,SAASA,gBAAe,EAAE,MAAM,KAAK,SAAS,WAAW,GAAG,MAAM,GAAG,KAAK;AAC1E,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,WAAW,KAAK,WAAW;AAAA,QACzB,mBAAmB;AAAA,MACrB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,QACrB,CAAC;AAAA,QACD,KAAK;AAAA;AAAA,IACP;AAAA,EACF;AAEJ,CAAC;AACD,IAAO,yBAAQ;",
6
+ "names": ["HeaderLogoBase"]
7
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/HeaderLogoBase/index.js"
6
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface HeaderSecondaryLogoBaseProps extends LinkBaseProps {
4
+ /**
5
+ * src is needed to provide the url that we get the logo from.
6
+
7
+ */
8
+ src: string;
9
+ /**
10
+ * href provides the alternative text for the img tag.
11
+
12
+ */
13
+ altText?: string;
14
+ }
15
+ /**
16
+ * HeaderSecondaryLogo is used inside Header for providing additional logos.
17
+ */
18
+ export declare const HeaderSecondaryLogoBase: React.ForwardRefExoticComponent<Omit<HeaderSecondaryLogoBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
19
+ export default HeaderSecondaryLogoBase;
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base";
4
- const HeaderSecondaryLogo = React.forwardRef(function HeaderSecondaryLogo2({ href, src, altText, className, ...props }, ref) {
3
+ import { LinkBase } from "@digigov/react-core/LinkBase";
4
+ const HeaderSecondaryLogoBase = React.forwardRef(function HeaderSecondaryLogoBase2({ href, src, altText, className, ...props }, ref) {
5
5
  return /* @__PURE__ */ React.createElement(
6
- Base,
6
+ LinkBase,
7
7
  {
8
- as: "a",
9
8
  href,
10
9
  ref,
10
+ defaultStyle: false,
11
11
  className: clsx(className, {
12
12
  "ds-header__link": true
13
13
  }),
@@ -25,9 +25,9 @@ const HeaderSecondaryLogo = React.forwardRef(function HeaderSecondaryLogo2({ hre
25
25
  )
26
26
  );
27
27
  });
28
- var HeaderSecondaryLogo_default = HeaderSecondaryLogo;
28
+ var HeaderSecondaryLogoBase_default = HeaderSecondaryLogoBase;
29
29
  export {
30
- HeaderSecondaryLogo,
31
- HeaderSecondaryLogo_default as default
30
+ HeaderSecondaryLogoBase,
31
+ HeaderSecondaryLogoBase_default as default
32
32
  };
33
33
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/HeaderSecondaryLogoBase/index.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface HeaderSecondaryLogoBaseProps extends LinkBaseProps {\n /**\n * src is needed to provide the url that we get the logo from.\n\n */\n src: string;\n /**\n * href provides the alternative text for the img tag.\n\n */\n altText?: string;\n}\n/**\n * HeaderSecondaryLogo is used inside Header for providing additional logos.\n */\nexport const HeaderSecondaryLogoBase = React.forwardRef<\n HTMLAnchorElement,\n HeaderSecondaryLogoBaseProps\n>(function HeaderSecondaryLogoBase(\n { href, src, altText, className, ...props },\n ref\n) {\n return (\n <LinkBase\n href={href}\n ref={ref}\n defaultStyle={false}\n className={clsx(className, {\n 'ds-header__link': true,\n })}\n {...props}\n >\n <img\n src={src}\n className={clsx(className, {\n 'ds-header__secondary-logo': true,\n })}\n alt={altText}\n />\n </LinkBase>\n );\n});\n\nexport default HeaderSecondaryLogoBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,gBAA+B;AAiBjC,MAAM,0BAA0B,MAAM,WAG3C,SAASA,yBACT,EAAE,MAAM,KAAK,SAAS,WAAW,GAAG,MAAM,GAC1C,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,WAAW,KAAK,WAAW;AAAA,QACzB,mBAAmB;AAAA,MACrB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,6BAA6B;AAAA,QAC/B,CAAC;AAAA,QACD,KAAK;AAAA;AAAA,IACP;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,kCAAQ;",
6
+ "names": ["HeaderSecondaryLogoBase"]
7
+ }
@@ -2,5 +2,5 @@
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
4
  "types": "./index.d.ts",
5
- "main": "../cjs/BreadcrumbsListItemLink/index.js"
5
+ "main": "../cjs/HeaderSecondaryLogoBase/index.js"
6
6
  }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface HeaderTitleBaseProps extends LinkBaseProps {
4
+ }
5
+ /**
6
+ * Use this component inside HeaderContent to provide a title to the header.
7
+ */
8
+ export declare const HeaderTitleBase: React.ForwardRefExoticComponent<Omit<HeaderTitleBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
9
+ export default HeaderTitleBase;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import clsx from "clsx";
3
+ import { LinkBase } from "@digigov/react-core/LinkBase";
4
+ const HeaderTitleBase = React.forwardRef(function HeaderTitleBase2({ href = "/", className, children, ...props }, ref) {
5
+ return /* @__PURE__ */ React.createElement(
6
+ LinkBase,
7
+ {
8
+ ref,
9
+ href,
10
+ defaultStyle: false,
11
+ className: clsx(className, {
12
+ "ds-header__title": true
13
+ }),
14
+ ...props
15
+ },
16
+ children
17
+ );
18
+ });
19
+ var HeaderTitleBase_default = HeaderTitleBase;
20
+ export {
21
+ HeaderTitleBase,
22
+ HeaderTitleBase_default as default
23
+ };
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/HeaderTitleBase/index.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface HeaderTitleBaseProps extends LinkBaseProps {}\n/**\n * Use this component inside HeaderContent to provide a title to the header.\n */\nexport const HeaderTitleBase = React.forwardRef<\n HTMLAnchorElement,\n HeaderTitleBaseProps\n>(function HeaderTitleBase({ href = '/', className, children, ...props }, ref) {\n return (\n <LinkBase\n ref={ref}\n href={href}\n defaultStyle={false}\n className={clsx(className, {\n 'ds-header__title': true,\n })}\n {...props}\n >\n {children}\n </LinkBase>\n );\n});\n\nexport default HeaderTitleBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,gBAA+B;AAMjC,MAAM,kBAAkB,MAAM,WAGnC,SAASA,iBAAgB,EAAE,OAAO,KAAK,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,WAAW,KAAK,WAAW;AAAA,QACzB,oBAAoB;AAAA,MACtB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,0BAAQ;",
6
+ "names": ["HeaderTitleBase"]
7
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/HeaderTitleBase/index.js"
6
+ }
package/LinkBase/index.js CHANGED
@@ -12,6 +12,7 @@ const LinkBase = React.forwardRef(
12
12
  "ds-link": defaultStyle,
13
13
  "ds-link--no-underline": !underline
14
14
  }),
15
+ ...props.as && { defaultStyle, underline },
15
16
  ...props
16
17
  },
17
18
  children
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/LinkBase/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LinkBaseProps extends BaseProps<'a'> {\n /**\n * underline is optional. The default value is 'true'.\n * Make it 'false' only if the context tells the user that the text is a link, even without the underline.\n * @value true\n * @value false\n */\n underline?: boolean;\n /**\n * defaultStyle is optional. The default value is 'true'.\n * Make it 'false' only if you need to use a link with different style, and the default style clashes over with your\n * custom styles. For example, BreadcrumbsListItem is a link but it has a different styling.\n * @value true\n * @value false\n */\n defaultStyle?: boolean;\n}\n/**\n * This component defines a hyperlink, which is used to link from one page to another.\n */\nexport const LinkBase = React.forwardRef<HTMLAnchorElement, LinkBaseProps>(\n function LinkBase(\n { underline = true, defaultStyle = true, className, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-link': defaultStyle,\n 'ds-link--no-underline': !underline,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default LinkBase;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAsBzB,MAAM,WAAW,MAAM;AAAA,EAC5B,SAASA,UACP,EAAE,YAAY,MAAM,eAAe,MAAM,WAAW,UAAU,GAAG,MAAM,GACvE,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,WAAW;AAAA,UACX,yBAAyB,CAAC;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LinkBaseProps extends BaseProps<'a'> {\n /**\n * underline is optional. The default value is 'true'.\n * Make it 'false' only if the context tells the user that the text is a link, even without the underline.\n * @value true\n * @value false\n */\n underline?: boolean;\n /**\n * defaultStyle is optional. The default value is 'true'.\n * Make it 'false' only if you need to use a link with different style, and the default style clashes over with your\n * custom styles. For example, BreadcrumbsListItem is a link but it has a different styling.\n * @value true\n * @value false\n */\n defaultStyle?: boolean;\n}\n/**\n * This component defines a hyperlink, which is used to link from one page to another.\n */\nexport const LinkBase = React.forwardRef<HTMLAnchorElement, LinkBaseProps>(\n function LinkBase(\n { underline = true, defaultStyle = true, className, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"a\"\n ref={ref}\n className={clsx(className, {\n 'ds-link': defaultStyle,\n 'ds-link--no-underline': !underline,\n })}\n {...(props.as && { defaultStyle: defaultStyle, underline: underline })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default LinkBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAsBzB,MAAM,WAAW,MAAM;AAAA,EAC5B,SAASA,UACP,EAAE,YAAY,MAAM,eAAe,MAAM,WAAW,UAAU,GAAG,MAAM,GACvE,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,WAAW;AAAA,UACX,yBAAyB,CAAC;AAAA,QAC5B,CAAC;AAAA,QACA,GAAI,MAAM,MAAM,EAAE,cAA4B,UAAqB;AAAA,QACnE,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,mBAAQ;",
6
6
  "names": ["LinkBase"]
7
7
  }
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { NavListItemButtonProps } from '@digigov/react-core/NavListItemButton';
3
- import { NavListItemLinkProps } from '@digigov/react-core/NavListItemLink';
4
- export type LinkButtonJoinProps = NavListItemLinkProps & NavListItemButtonProps;
5
- export interface NavListItemActionProps extends LinkButtonJoinProps {
3
+ import { NavListItemLinkBaseProps } from '@digigov/react-core/NavListItemLinkBase';
4
+ export type LinkButtonJoinProps = NavListItemLinkBaseProps & NavListItemButtonProps;
5
+ export interface NavListItemActionBaseProps extends LinkButtonJoinProps {
6
6
  /**
7
7
  * label is optional.
8
- * The label for the NavListItemAction.
8
+ * The label for the NavListItemActionBase.
9
9
  */
10
10
  label?: string;
11
11
  /**
@@ -22,5 +22,5 @@ export interface NavListItemActionProps extends LinkButtonJoinProps {
22
22
  * NavListItemAction must be inside the NavList.
23
23
  * This component has a items of NavListItemLink component inside.
24
24
  */
25
- export declare const NavListItemAction: React.ForwardRefExoticComponent<Omit<NavListItemActionProps, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
26
- export default NavListItemAction;
25
+ export declare const NavListItemActionBase: React.ForwardRefExoticComponent<Omit<NavListItemActionBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
26
+ export default NavListItemActionBase;
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import NavListItemActionContainer from "@digigov/react-core/NavListItemActionContainer";
3
3
  import NavListItemBadge from "@digigov/react-core/NavListItemBadge";
4
4
  import NavListItemButton from "@digigov/react-core/NavListItemButton";
5
- import NavListItemLink from "@digigov/react-core/NavListItemLink";
6
- const NavListItemAction = React.forwardRef(function NavListItemAction2({ label, arrow = false, href, className, children, ...props }, ref) {
5
+ import NavListItemLinkBase from "@digigov/react-core/NavListItemLinkBase";
6
+ const NavListItemActionBase = React.forwardRef(function NavListItemActionBase2({ label, arrow = false, href, className, children, ...props }, ref) {
7
7
  return /* @__PURE__ */ React.createElement(NavListItemActionContainer, null, href ? /* @__PURE__ */ React.createElement(
8
- NavListItemLink,
8
+ NavListItemLinkBase,
9
9
  {
10
10
  ...props,
11
11
  href,
@@ -24,9 +24,9 @@ const NavListItemAction = React.forwardRef(function NavListItemAction2({ label,
24
24
  children || label
25
25
  ), props.badgeText && /* @__PURE__ */ React.createElement(NavListItemBadge, { text: props.badgeText }));
26
26
  });
27
- var NavListItemAction_default = NavListItemAction;
27
+ var NavListItemActionBase_default = NavListItemActionBase;
28
28
  export {
29
- NavListItemAction,
30
- NavListItemAction_default as default
29
+ NavListItemActionBase,
30
+ NavListItemActionBase_default as default
31
31
  };
32
32
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/NavListItemActionBase/index.tsx"],
4
+ "sourcesContent": ["import React, { ForwardedRef } from 'react';\nimport NavListItemActionContainer from '@digigov/react-core/NavListItemActionContainer';\nimport NavListItemBadge from '@digigov/react-core/NavListItemBadge';\nimport NavListItemButton, {\n NavListItemButtonProps,\n} from '@digigov/react-core/NavListItemButton';\nimport NavListItemLinkBase, {\n NavListItemLinkBaseProps,\n} from '@digigov/react-core/NavListItemLinkBase';\n\nexport type LinkButtonJoinProps = NavListItemLinkBaseProps &\n NavListItemButtonProps;\nexport interface NavListItemActionBaseProps extends LinkButtonJoinProps {\n /**\n * label is optional.\n * The label for the NavListItemActionBase.\n */\n label?: string;\n\n /**\n * arrow is optional.\n * use arrow prop if you want to have arrow at the nav list item.\n * @value true\n * @value false\n * @default false\n */\n arrow?: boolean;\n badgeText?: string;\n}\n/**\n * NavListItemAction must be inside the NavList.\n * This component has a items of NavListItemLink component inside.\n */\nexport const NavListItemActionBase = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n NavListItemActionBaseProps\n>(function NavListItemActionBase(\n { label, arrow = false, href, className, children, ...props },\n ref\n) {\n return (\n <NavListItemActionContainer>\n {href ? (\n <NavListItemLinkBase\n {...props}\n href={href}\n className={className}\n ref={ref as ForwardedRef<HTMLAnchorElement>}\n >\n {children || label}\n </NavListItemLinkBase>\n ) : (\n <NavListItemButton\n {...props}\n arrow={arrow}\n className={className}\n ref={ref as ForwardedRef<HTMLButtonElement>}\n >\n {children || label}\n </NavListItemButton>\n )}\n {props.badgeText && <NavListItemBadge text={props.badgeText} />}\n </NavListItemActionContainer>\n );\n});\n\nexport default NavListItemActionBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAA6B;AACpC,OAAO,gCAAgC;AACvC,OAAO,sBAAsB;AAC7B,OAAO,uBAEA;AACP,OAAO,yBAEA;AAyBA,MAAM,wBAAwB,MAAM,WAGzC,SAASA,uBACT,EAAE,OAAO,QAAQ,OAAO,MAAM,WAAW,UAAU,GAAG,MAAM,GAC5D,KACA;AACA,SACE,oCAAC,kCACE,OACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEC,YAAY;AAAA,EACf,IAEA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEC,YAAY;AAAA,EACf,GAED,MAAM,aAAa,oCAAC,oBAAiB,MAAM,MAAM,WAAW,CAC/D;AAEJ,CAAC;AAED,IAAO,gCAAQ;",
6
+ "names": ["NavListItemActionBase"]
7
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/NavListItemActionBase/index.js"
6
+ }
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx";
2
2
  import CoreNavListItemActionContainer from "@digigov/react-core/NavListItemActionContainer/index.web";
3
- import extend from "@digigov/react-core/utils/extend.native";
3
+ import extend from "@digigov/react-core/utils/index.native";
4
4
  const NavListItemActionContainer = extend(CoreNavListItemActionContainer, ({ className, borderBottom, ...props }) => {
5
5
  return {
6
6
  ...props,
@@ -1,7 +1,5 @@
1
1
  import { NavListItemActionContainerProps } from '@digigov/react-core/NavListItemActionContainer/index.web';
2
2
  export declare const NavListItemActionContainer: import("react").ForwardRefExoticComponent<Omit<NavListItemActionContainerProps & {
3
3
  borderBottom?: boolean;
4
- } & {
5
- className?: string;
6
4
  }, "ref"> & import("react").RefAttributes<unknown>>;
7
5
  export default NavListItemActionContainer;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/NavListItemActionContainer/index.native.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport CoreNavListItemActionContainer, {\n NavListItemActionContainerProps,\n} from '@digigov/react-core/NavListItemActionContainer/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\n\nexport const NavListItemActionContainer = extend<\n NavListItemActionContainerProps,\n { borderBottom?: boolean }\n>(CoreNavListItemActionContainer, ({ className, borderBottom, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-nav__list-item--border-bottom': borderBottom,\n }),\n };\n});\nexport default NavListItemActionContainer;\n"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport CoreNavListItemActionContainer, {\n NavListItemActionContainerProps,\n} from '@digigov/react-core/NavListItemActionContainer/index.web';\nimport extend from '@digigov/react-core/utils/index.native';\n\nexport const NavListItemActionContainer = extend<\n NavListItemActionContainerProps,\n { borderBottom?: boolean }\n>(CoreNavListItemActionContainer, ({ className, borderBottom, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-nav__list-item--border-bottom': borderBottom,\n }),\n };\n});\nexport default NavListItemActionContainer;\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,oCAEA;AACP,OAAO,YAAY;AAEZ,MAAM,6BAA6B,OAGxC,gCAAgC,CAAC,EAAE,WAAW,cAAc,GAAG,MAAM,MAAM;AAC3E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,KAAK,WAAW;AAAA,MACzB,oCAAoC;AAAA,IACtC,CAAC;AAAA,EACH;AACF,CAAC;AACD,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface NavListItemLinkProps extends BaseProps<'a'> {
2
+ import { LinkBaseProps } from '@digigov/react-core/LinkBase';
3
+ export interface NavListItemLinkBaseProps extends LinkBaseProps {
4
4
  /**
5
5
  * When the NavListItemLink is active, that means that we are in this option / page of the Nav.
6
6
  * active is optional.
@@ -13,5 +13,5 @@ export interface NavListItemLinkProps extends BaseProps<'a'> {
13
13
  /**
14
14
  * NavListItemLink is an <a> element. It should be inside the NavListItem component.
15
15
  */
16
- export declare const NavListItemLink: React.ForwardRefExoticComponent<Omit<NavListItemLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
17
- export default NavListItemLink;
16
+ export declare const NavListItemLinkBase: React.ForwardRefExoticComponent<Omit<NavListItemLinkBaseProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
17
+ export default NavListItemLinkBase;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
- import Link from "@digigov/react-core/LinkBase";
4
- const NavListItemLink = React.forwardRef(function NavListItemLink2({ active, href, className, children, ...props }, ref) {
3
+ import { LinkBase } from "@digigov/react-core/LinkBase";
4
+ const NavListItemLinkBase = React.forwardRef(function NavListItemLinkBase2({ active, href, className, children, ...props }, ref) {
5
5
  return /* @__PURE__ */ React.createElement(
6
- Link,
6
+ LinkBase,
7
7
  {
8
8
  href,
9
9
  ref,
@@ -16,9 +16,9 @@ const NavListItemLink = React.forwardRef(function NavListItemLink2({ active, hre
16
16
  children
17
17
  );
18
18
  });
19
- var NavListItemLink_default = NavListItemLink;
19
+ var NavListItemLinkBase_default = NavListItemLinkBase;
20
20
  export {
21
- NavListItemLink,
22
- NavListItemLink_default as default
21
+ NavListItemLinkBase,
22
+ NavListItemLinkBase_default as default
23
23
  };
24
24
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/NavListItemLinkBase/index.tsx"],
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport { LinkBase, LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface NavListItemLinkBaseProps extends LinkBaseProps {\n /**\n * When the NavListItemLink is active, that means that we are in this option / page of the Nav.\n * active is optional.\n *\n * @value true\n * @value false\n */\n active?: boolean;\n}\n/**\n * NavListItemLink is an <a> element. It should be inside the NavListItem component.\n */\nexport const NavListItemLinkBase = React.forwardRef<\n HTMLAnchorElement,\n NavListItemLinkBaseProps\n>(function NavListItemLinkBase(\n { active, href, className, children, ...props },\n ref\n) {\n return (\n <LinkBase\n href={href}\n ref={ref}\n className={clsx(className, {\n 'ds-nav__list-item-link': true,\n 'ds-nav__list-item-link--active': active,\n })}\n {...props}\n >\n {children}\n </LinkBase>\n );\n});\n\nexport default NavListItemLinkBase;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,SAAS,gBAA+B;AAejC,MAAM,sBAAsB,MAAM,WAGvC,SAASA,qBACT,EAAE,QAAQ,MAAM,WAAW,UAAU,GAAG,MAAM,GAC9C,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,0BAA0B;AAAA,QAC1B,kCAAkC;AAAA,MACpC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,8BAAQ;",
6
+ "names": ["NavListItemLinkBase"]
7
+ }
@@ -2,5 +2,5 @@
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
4
  "types": "./index.d.ts",
5
- "main": "../cjs/BreadcrumbsListItem/index.js"
5
+ "main": "../cjs/NavListItemLinkBase/index.js"
6
6
  }
@@ -7,9 +7,10 @@ export interface NotificationBannerContainerProps extends BaseProps<'div'> {
7
7
  * @value 'info'
8
8
  * @value 'success'
9
9
  * @value 'error'
10
+ * @value 'error-group'
10
11
  * @default 'info'.
11
12
  */
12
- variant?: 'info' | 'success' | 'error';
13
+ variant?: 'info' | 'success' | 'error' | 'error-group';
13
14
  /**
14
15
  * dense is optional.
15
16
  * @value true NotificationBannerContainer will be dense.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/NotificationBannerContainer/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface NotificationBannerContainerProps extends BaseProps<'div'> {\n /**\n * variant is optional.\n * variant is used to change the color of the NotificationBannerContainer.\n * @value 'info'\n * @value 'success'\n * @value 'error'\n * @default 'info'.\n */\n variant?: 'info' | 'success' | 'error';\n /**\n * dense is optional.\n * @value true NotificationBannerContainer will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * Details for the NotificationBannerContainer.\n * NotificationBannerContainer component informs users about something they need to know about\n * NotificationBannerContainer component must be placed at the top of the page.\n * NotificationBannerContainer wraps NotificationBannerContainerHeader, NotificationBannerContainerContent,NotificationBannerContainerHeading\n * and NotificationBannerContainerLink components as children\n */\nexport const NotificationBannerContainer = React.forwardRef<\n HTMLDivElement,\n NotificationBannerContainerProps\n>(function NotificationBannerContainer(\n { variant = 'info', className, dense, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n role=\"region\"\n aria-labelledby=\"ds-notification-banner-title\"\n data-module=\"ds-notification-banner\"\n ref={ref}\n className={clsx(className, {\n 'ds-notification-banner': true,\n [`ds-notification-banner--${variant}`]: variant !== undefined,\n 'ds-notification-banner--dense': dense,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default NotificationBannerContainer;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA2BzB,MAAM,8BAA8B,MAAM,WAG/C,SAASA,6BACT,EAAE,UAAU,QAAQ,WAAW,OAAO,UAAU,GAAG,MAAM,GACzD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,mBAAgB;AAAA,MAChB,eAAY;AAAA,MACZ;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,0BAA0B;AAAA,QAC1B,CAAC,2BAA2B,OAAO,EAAE,GAAG,YAAY;AAAA,QACpD,iCAAiC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,sCAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface NotificationBannerContainerProps extends BaseProps<'div'> {\n /**\n * variant is optional.\n * variant is used to change the color of the NotificationBannerContainer.\n * @value 'info'\n * @value 'success'\n * @value 'error'\n * @value 'error-group'\n * @default 'info'.\n */\n variant?: 'info' | 'success' | 'error' | 'error-group';\n /**\n * dense is optional.\n * @value true NotificationBannerContainer will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * Details for the NotificationBannerContainer.\n * NotificationBannerContainer component informs users about something they need to know about\n * NotificationBannerContainer component must be placed at the top of the page.\n * NotificationBannerContainer wraps NotificationBannerContainerHeader, NotificationBannerContainerContent,NotificationBannerContainerHeading\n * and NotificationBannerContainerLink components as children\n */\nexport const NotificationBannerContainer = React.forwardRef<\n HTMLDivElement,\n NotificationBannerContainerProps\n>(function NotificationBannerContainer(\n { variant = 'info', className, dense, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n role=\"region\"\n aria-labelledby=\"ds-notification-banner-title\"\n data-module=\"ds-notification-banner\"\n ref={ref}\n className={clsx(className, {\n 'ds-notification-banner': true,\n [`ds-notification-banner--${variant}`]: variant !== undefined,\n 'ds-notification-banner--dense': dense,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default NotificationBannerContainer;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA4BzB,MAAM,8BAA8B,MAAM,WAG/C,SAASA,6BACT,EAAE,UAAU,QAAQ,WAAW,OAAO,UAAU,GAAG,MAAM,GACzD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,mBAAgB;AAAA,MAChB,eAAY;AAAA,MACZ;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,0BAA0B;AAAA,QAC1B,CAAC,2BAA2B,OAAO,EAAE,GAAG,YAAY;AAAA,QACpD,iCAAiC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,sCAAQ;",
6
6
  "names": ["NotificationBannerContainer"]
7
7
  }
@@ -1,6 +1,28 @@
1
1
  import React from 'react';
2
2
  import { BaseProps } from '@digigov/react-core/Base';
3
3
  export interface NotificationBannerContentProps extends BaseProps<'div'> {
4
+ /**
5
+ * assistiveText is optional.
6
+ * Default value is "Προσοχή".
7
+ * assistiveText is used to provide a textual warning for assistive technologies like screen readers.
8
+ */
9
+ assistiveText?: string;
10
+ /**
11
+ * variant is optional.
12
+ * variant is used to display red line on the left side of the component and exclamation mark icon with light red as background.
13
+ * @value 'error'
14
+ * @value 'error-group'
15
+ * @default 'error'.
16
+ */
17
+ /**
18
+ * variant is optional.
19
+ * variant error is used to change the color of the NotificationBannerContainer.
20
+ * variant error-group is used to display red line on the left side of the component and exclamation mark icon with light red as background.
21
+ * @value 'error'
22
+ * @value 'error-group'
23
+ * @default 'error'.
24
+ */
25
+ variant?: 'error' | 'error-group';
4
26
  }
5
27
  /**
6
28
  * Details for the NotificationBannerContent.
@@ -1,18 +1,29 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
3
  import Base from "@digigov/react-core/Base";
4
- const NotificationBannerContent = React.forwardRef(function NotificationBannerContent2({ className, children, ...props }, ref) {
4
+ import { WarningTextAssistive } from "@digigov/react-core/WarningTextAssistive";
5
+ const NotificationBannerContent = React.forwardRef(function NotificationBannerContent2({ className, assistiveText, variant, children, ...props }, ref) {
5
6
  return /* @__PURE__ */ React.createElement(
6
7
  Base,
7
8
  {
8
9
  as: "div",
9
10
  ref,
10
11
  className: clsx(className, {
11
- "ds-notification-banner__content": true
12
+ "ds-notification-banner__content": variant !== "error-group",
13
+ "ds-notification-error-group-banner__content": variant === "error-group"
12
14
  }),
13
15
  ...props
14
16
  },
15
- children
17
+ variant === "error-group" ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
18
+ Base,
19
+ {
20
+ as: "div",
21
+ className: clsx({
22
+ "ds-notification-banner__icon--error-group": true
23
+ })
24
+ },
25
+ "!"
26
+ ), /* @__PURE__ */ React.createElement(WarningTextAssistive, null, assistiveText), /* @__PURE__ */ React.createElement(Base, { as: "div", className: "ds-notification-banner__text-error-group" }, children)) : children
16
27
  );
17
28
  });
18
29
  var NotificationBannerContent_default = NotificationBannerContent;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/NotificationBannerContent/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface NotificationBannerContentProps extends BaseProps<'div'> {}\n/**\n * Details for the NotificationBannerContent.\n * NotificationBannerContent component is used as a content for\n * NotificationBannerHeading and NotificationBannerLink components.\n * NotificationBannerContent component must be used inside NotificationBanner component as children.\n */\nexport const NotificationBannerContent = React.forwardRef<\n HTMLDivElement,\n NotificationBannerContentProps\n>(function NotificationBannerContent({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-notification-banner__content': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default NotificationBannerContent;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AASzB,MAAM,4BAA4B,MAAM,WAG7C,SAASA,2BAA0B,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,mCAAmC;AAAA,MACrC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oCAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\nimport { WarningTextAssistive } from '@digigov/react-core/WarningTextAssistive';\n\nexport interface NotificationBannerContentProps extends BaseProps<'div'> {\n /**\n * assistiveText is optional.\n * Default value is \"\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE\".\n * assistiveText is used to provide a textual warning for assistive technologies like screen readers.\n */\n assistiveText?: string;\n /**\n * variant is optional.\n * variant is used to display red line on the left side of the component and exclamation mark icon with light red as background.\n * @value 'error'\n * @value 'error-group'\n * @default 'error'.\n */\n /**\n * variant is optional.\n * variant error is used to change the color of the NotificationBannerContainer.\n * variant error-group is used to display red line on the left side of the component and exclamation mark icon with light red as background.\n * @value 'error'\n * @value 'error-group'\n * @default 'error'.\n */\n variant?: 'error' | 'error-group';\n}\n/**\n * Details for the NotificationBannerContent.\n * NotificationBannerContent component is used as a content for\n * NotificationBannerHeading and NotificationBannerLink components.\n * NotificationBannerContent component must be used inside NotificationBanner component as children.\n */\nexport const NotificationBannerContent = React.forwardRef<\n HTMLDivElement,\n NotificationBannerContentProps\n>(function NotificationBannerContent(\n { className, assistiveText, variant, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-notification-banner__content': variant !== 'error-group',\n 'ds-notification-error-group-banner__content':\n variant === 'error-group',\n })}\n {...props}\n >\n {variant === 'error-group' ? (\n <>\n <Base\n as=\"div\"\n className={clsx({\n 'ds-notification-banner__icon--error-group': true,\n })}\n >\n !\n </Base>\n <WarningTextAssistive>{assistiveText}</WarningTextAssistive>\n <Base as=\"div\" className=\"ds-notification-banner__text-error-group\">\n {children}\n </Base>\n </>\n ) : (\n children\n )}\n </Base>\n );\n});\n\nexport default NotificationBannerContent;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,4BAA4B;AAgC9B,MAAM,4BAA4B,MAAM,WAG7C,SAASA,2BACT,EAAE,WAAW,eAAe,SAAS,UAAU,GAAG,MAAM,GACxD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,mCAAmC,YAAY;AAAA,QAC/C,+CACE,YAAY;AAAA,MAChB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH,YAAY,gBACX,0DACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,WAAW,KAAK;AAAA,UACd,6CAA6C;AAAA,QAC/C,CAAC;AAAA;AAAA,MACF;AAAA,IAED,GACA,oCAAC,4BAAsB,aAAc,GACrC,oCAAC,QAAK,IAAG,OAAM,WAAU,8CACtB,QACH,CACF,IAEA;AAAA,EAEJ;AAEJ,CAAC;AAED,IAAO,oCAAQ;",
6
6
  "names": ["NotificationBannerContent"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx";
2
2
  import CoreNotificationBannerLink from "@digigov/react-core/NotificationBannerLink/index.web";
3
- import { extend } from "@digigov/react-core/utils/extend.native";
3
+ import { extend } from "@digigov/react-core/utils/index.native";
4
4
  const NotificationBannerLink = extend(CoreNotificationBannerLink, ({ variant, className, ...props }) => ({
5
5
  className: clsx(className, {
6
6
  "ds-notification-banner__link--error": variant === "error",
@@ -2,7 +2,5 @@ import { NotificationBannerLinkProps } from '@digigov/react-core/NotificationBan
2
2
  interface AdditionalProps {
3
3
  variant?: 'error' | 'success';
4
4
  }
5
- export declare const NotificationBannerLink: import("react").ForwardRefExoticComponent<Omit<NotificationBannerLinkProps & AdditionalProps & {
6
- className?: string;
7
- }, "ref"> & import("react").RefAttributes<unknown>>;
5
+ export declare const NotificationBannerLink: import("react").ForwardRefExoticComponent<Omit<NotificationBannerLinkProps & AdditionalProps, "ref"> & import("react").RefAttributes<unknown>>;
8
6
  export default NotificationBannerLink;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/NotificationBannerLink/index.native.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport CoreNotificationBannerLink, {\n NotificationBannerLinkProps,\n} from '@digigov/react-core/NotificationBannerLink/index.web';\nimport { extend } from '@digigov/react-core/utils/extend.native';\n\ninterface AdditionalProps {\n variant?: 'error' | 'success';\n}\n\nexport const NotificationBannerLink = extend<\n NotificationBannerLinkProps,\n AdditionalProps\n>(CoreNotificationBannerLink, ({ variant, className, ...props }) => ({\n className: clsx(className, {\n 'ds-notification-banner__link--error': variant === 'error',\n 'ds-notification-banner__link--success': variant === 'success',\n }),\n ...props,\n}));\n\nexport default NotificationBannerLink;\n"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport CoreNotificationBannerLink, {\n NotificationBannerLinkProps,\n} from '@digigov/react-core/NotificationBannerLink/index.web';\nimport { extend } from '@digigov/react-core/utils/index.native';\n\ninterface AdditionalProps {\n variant?: 'error' | 'success';\n}\n\nexport const NotificationBannerLink = extend<\n NotificationBannerLinkProps,\n AdditionalProps\n>(CoreNotificationBannerLink, ({ variant, className, ...props }) => ({\n className: clsx(className, {\n 'ds-notification-banner__link--error': variant === 'error',\n 'ds-notification-banner__link--success': variant === 'success',\n }),\n ...props,\n}));\n\nexport default NotificationBannerLink;\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,gCAEA;AACP,SAAS,cAAc;AAMhB,MAAM,yBAAyB,OAGpC,4BAA4B,CAAC,EAAE,SAAS,WAAW,GAAG,MAAM,OAAO;AAAA,EACnE,WAAW,KAAK,WAAW;AAAA,IACzB,uCAAuC,YAAY;AAAA,IACnD,yCAAyC,YAAY;AAAA,EACvD,CAAC;AAAA,EACD,GAAG;AACL,EAAE;AAEF,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }