@digigov/react-core 2.0.0-8e254888 → 2.0.0-a0ac149e

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 (338) hide show
  1. package/Accordion/index.native.d.ts +1 -5
  2. package/AccordionSection/index.native.d.ts +1 -3
  3. package/AccordionSectionSummaryHeading/index.d.ts +1 -0
  4. package/AccordionSectionSummaryHeading/index.js +3 -2
  5. package/AccordionSectionSummaryHeading/index.js.map +2 -2
  6. package/BackLinkBase/index.d.ts +9 -0
  7. package/BackLinkBase/index.js +29 -0
  8. package/BackLinkBase/index.js.map +7 -0
  9. package/{CallToAction → BackLinkBase}/package.json +1 -1
  10. package/BannerContainer/index.js +1 -1
  11. package/BannerContainer/index.js.map +2 -2
  12. package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  13. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  14. package/Base/index.native.js.map +2 -2
  15. package/Base/index.web.d.ts +1 -1
  16. package/Base/index.web.js.map +1 -1
  17. package/Base/mapping.native.d.ts +1 -1
  18. package/Base/mapping.native.js.map +2 -2
  19. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  20. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  21. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  22. package/{AutoCompleteInputTypeahead → BreadcrumbsListItemLinkBase}/package.json +1 -1
  23. package/Button/index.js +1 -0
  24. package/Button/index.js.map +2 -2
  25. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  26. package/ButtonLinkBase/index.js +27 -0
  27. package/ButtonLinkBase/index.js.map +7 -0
  28. package/{FooterLink → ButtonLinkBase}/package.json +1 -1
  29. package/CallToActionBase/index.d.ts +9 -0
  30. package/{CallToAction → CallToActionBase}/index.js +6 -6
  31. package/CallToActionBase/index.js.map +7 -0
  32. package/{CircularProgress → CallToActionBase}/package.json +1 -1
  33. package/{CircularProgress → CircularProgressBase}/index.d.ts +5 -5
  34. package/{CircularProgress → CircularProgressBase}/index.js +4 -4
  35. package/CircularProgressBase/index.js.map +7 -0
  36. package/CircularProgressBase/package.json +6 -0
  37. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  38. package/DateInputItem/index.native.d.ts +1 -3
  39. package/Details/index.native.d.ts +1 -3
  40. package/DetailsContent/index.d.ts +1 -0
  41. package/DetailsContent/index.js +3 -2
  42. package/DetailsContent/index.js.map +2 -2
  43. package/FooterLinkBase/index.d.ts +9 -0
  44. package/FooterLinkBase/index.js +23 -0
  45. package/FooterLinkBase/index.js.map +7 -0
  46. package/{ButtonLink → FooterLinkBase}/package.json +1 -1
  47. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  48. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  49. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  50. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  51. package/GovGRLogoBase/index.d.ts +9 -0
  52. package/GovGRLogoBase/index.js +43 -0
  53. package/GovGRLogoBase/index.js.map +7 -0
  54. package/{BackLink → GovGRLogoBase}/package.json +1 -1
  55. package/Grid/index.d.ts +1 -7
  56. package/Grid/index.js.map +2 -2
  57. package/HeaderLogoBase/index.d.ts +19 -0
  58. package/HeaderLogoBase/index.js +33 -0
  59. package/HeaderLogoBase/index.js.map +7 -0
  60. package/HeaderLogoBase/package.json +6 -0
  61. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  62. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  63. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  64. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  65. package/HeaderTitleBase/index.d.ts +9 -0
  66. package/HeaderTitleBase/index.js +24 -0
  67. package/HeaderTitleBase/index.js.map +7 -0
  68. package/HeaderTitleBase/package.json +6 -0
  69. package/LinkBase/index.js +1 -0
  70. package/LinkBase/index.js.map +2 -2
  71. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  72. package/{NavListItemAction → NavListItemActionBase}/index.js +6 -6
  73. package/NavListItemActionBase/index.js.map +7 -0
  74. package/NavListItemActionBase/package.json +6 -0
  75. package/NavListItemActionContainer/index.native.d.ts +0 -2
  76. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  77. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  78. package/NavListItemLinkBase/index.js.map +7 -0
  79. package/NavListItemLinkBase/package.json +6 -0
  80. package/NotificationBannerLink/index.native.d.ts +1 -3
  81. package/Table/index.d.ts +9 -0
  82. package/Table/index.js +4 -1
  83. package/Table/index.js.map +2 -2
  84. package/TableDataCell/index.d.ts +13 -0
  85. package/TableDataCell/index.js +10 -1
  86. package/TableDataCell/index.js.map +2 -2
  87. package/TextArea/index.native.d.ts +1 -3
  88. package/TextInput/index.native.d.ts +1 -3
  89. package/Typography/index.d.ts +1 -1
  90. package/Typography/index.js +15 -17
  91. package/Typography/index.js.map +2 -2
  92. package/WarningText/index.d.ts +7 -0
  93. package/WarningText/index.js +10 -2
  94. package/WarningText/index.js.map +2 -2
  95. package/cjs/AccordionSectionSummaryHeading/index.js +3 -2
  96. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  97. package/cjs/BackLinkBase/index.js +62 -0
  98. package/cjs/BackLinkBase/index.js.map +7 -0
  99. package/cjs/BannerContainer/index.js +1 -1
  100. package/cjs/BannerContainer/index.js.map +2 -2
  101. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  102. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  103. package/cjs/Base/index.native.js.map +2 -2
  104. package/cjs/Base/index.web.js.map +1 -1
  105. package/cjs/Base/mapping.native.js.map +2 -2
  106. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  107. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  108. package/cjs/Button/index.js +1 -0
  109. package/cjs/Button/index.js.map +2 -2
  110. package/cjs/ButtonLinkBase/index.js +60 -0
  111. package/cjs/ButtonLinkBase/index.js.map +7 -0
  112. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  113. package/cjs/CallToActionBase/index.js.map +7 -0
  114. package/cjs/{CircularProgress → CircularProgressBase}/index.js +8 -8
  115. package/cjs/CircularProgressBase/index.js.map +7 -0
  116. package/cjs/DetailsContent/index.js +3 -2
  117. package/cjs/DetailsContent/index.js.map +2 -2
  118. package/cjs/FooterLinkBase/index.js +56 -0
  119. package/cjs/FooterLinkBase/index.js.map +7 -0
  120. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  121. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  122. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  123. package/cjs/GovGRLogoBase/index.js.map +7 -0
  124. package/cjs/Grid/index.js.map +2 -2
  125. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  126. package/cjs/HeaderLogoBase/index.js.map +7 -0
  127. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  128. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  129. package/cjs/{HeaderTitle → HeaderTitleBase}/index.js +11 -11
  130. package/cjs/HeaderTitleBase/index.js.map +7 -0
  131. package/cjs/LinkBase/index.js +1 -0
  132. package/cjs/LinkBase/index.js.map +2 -2
  133. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +10 -10
  134. package/cjs/NavListItemActionBase/index.js.map +7 -0
  135. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  136. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  137. package/cjs/Table/index.js +4 -1
  138. package/cjs/Table/index.js.map +2 -2
  139. package/cjs/TableDataCell/index.js +10 -1
  140. package/cjs/TableDataCell/index.js.map +2 -2
  141. package/cjs/Typography/index.js +15 -17
  142. package/cjs/Typography/index.js.map +2 -2
  143. package/cjs/WarningText/index.js +10 -2
  144. package/cjs/WarningText/index.js.map +2 -2
  145. package/cjs/index.js +22 -24
  146. package/cjs/index.js.map +2 -2
  147. package/cjs/lazy/index.js +13 -14
  148. package/cjs/lazy.js.map +2 -2
  149. package/cjs/registry/index.js +36 -38
  150. package/cjs/registry.js.map +2 -2
  151. package/cjs/utils/index.native/index.js +32 -34
  152. package/cjs/utils/index.native.js.map +2 -2
  153. package/index.d.ts +11 -12
  154. package/index.js +12 -13
  155. package/index.js.map +2 -2
  156. package/lazy/index.js +13 -14
  157. package/package.json +5 -5
  158. package/registry/index.js +36 -38
  159. package/src/AccordionSectionSummaryHeading/index.tsx +9 -2
  160. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  161. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  162. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  163. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  164. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  165. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  166. package/src/BackLinkBase/index.test.tsx +15 -0
  167. package/src/BackLinkBase/index.tsx +36 -0
  168. package/src/BannerContainer/__snapshots__/index.test.tsx.snap +1 -1
  169. package/src/BannerContainer/index.tsx +1 -1
  170. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  171. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  172. package/src/Base/index.native.tsx +2 -2
  173. package/src/Base/index.web.tsx +2 -2
  174. package/src/Base/mapping.native.tsx +1 -1
  175. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  176. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  177. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  178. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  179. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  180. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  181. package/src/Button/index.tsx +1 -0
  182. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  183. package/src/ButtonLinkBase/index.test.tsx +75 -0
  184. package/src/ButtonLinkBase/index.tsx +55 -0
  185. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  186. package/src/CallToActionBase/index.test.tsx +10 -0
  187. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  188. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  189. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  190. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  191. package/src/{CircularProgress → CircularProgressBase}/__snapshots__/index.test.tsx.snap +6 -6
  192. package/src/CircularProgressBase/index.test.tsx +38 -0
  193. package/src/{CircularProgress → CircularProgressBase}/index.tsx +7 -7
  194. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  195. package/src/DetailsContent/index.tsx +11 -2
  196. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  197. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  198. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  199. package/src/FooterLinkBase/index.test.tsx +16 -0
  200. package/src/FooterLinkBase/index.tsx +27 -0
  201. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  202. package/src/GovGRLogoBase/index.test.tsx +8 -0
  203. package/src/GovGRLogoBase/index.tsx +43 -0
  204. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  205. package/src/Grid/index.tsx +1 -7
  206. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  207. package/src/HeaderLogoBase/index.test.tsx +8 -0
  208. package/src/HeaderLogoBase/index.tsx +44 -0
  209. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  210. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  211. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  212. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  213. package/src/HeaderTitleBase/index.test.tsx +17 -0
  214. package/src/HeaderTitleBase/index.tsx +28 -0
  215. package/src/LinkBase/index.tsx +1 -0
  216. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  217. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
  218. package/src/NavListItemActionBase/index.test.tsx +42 -0
  219. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +13 -12
  220. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  221. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  222. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  223. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  224. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  225. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  226. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  227. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  228. package/src/Table/index.tsx +12 -0
  229. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  230. package/src/TableDataCell/index.tsx +23 -1
  231. package/src/Typography/index.tsx +21 -20
  232. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  233. package/src/WarningText/index.test.tsx +5 -0
  234. package/src/WarningText/index.tsx +17 -2
  235. package/src/index.ts +11 -12
  236. package/src/lazy.js +13 -14
  237. package/src/registry.js +36 -38
  238. package/src/utils/index.native.tsx +56 -54
  239. package/utils/index.native/index.js +32 -34
  240. package/utils/index.native.d.ts +3 -6
  241. package/utils/index.native.js.map +2 -2
  242. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  243. package/AutoCompleteInputTypeahead/index.js +0 -25
  244. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  245. package/BackLink/index.d.ts +0 -9
  246. package/BackLink/index.js +0 -31
  247. package/BackLink/index.js.map +0 -7
  248. package/BreadcrumbsListItemLink/index.js +0 -24
  249. package/BreadcrumbsListItemLink/index.js.map +0 -7
  250. package/ButtonLink/index.js +0 -29
  251. package/ButtonLink/index.js.map +0 -7
  252. package/CallToAction/index.d.ts +0 -9
  253. package/CallToAction/index.js.map +0 -7
  254. package/CircularProgress/index.js.map +0 -7
  255. package/FooterLink/index.d.ts +0 -9
  256. package/FooterLink/index.js +0 -25
  257. package/FooterLink/index.js.map +0 -7
  258. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  259. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  260. package/GovGRLogo/index.d.ts +0 -9
  261. package/GovGRLogo/index.js +0 -45
  262. package/GovGRLogo/index.js.map +0 -7
  263. package/GovGRLogo/package.json +0 -6
  264. package/HeaderLogo/index.d.ts +0 -19
  265. package/HeaderLogo/index.js +0 -35
  266. package/HeaderLogo/index.js.map +0 -7
  267. package/HeaderLogo/package.json +0 -6
  268. package/HeaderSecondaryLogo/index.d.ts +0 -19
  269. package/HeaderSecondaryLogo/index.js.map +0 -7
  270. package/HeaderSecondaryLogo/package.json +0 -6
  271. package/HeaderTitle/index.d.ts +0 -9
  272. package/HeaderTitle/index.js +0 -24
  273. package/HeaderTitle/index.js.map +0 -7
  274. package/HeaderTitle/package.json +0 -6
  275. package/NavListItemAction/index.js.map +0 -7
  276. package/NavListItemAction/package.json +0 -6
  277. package/NavListItemLink/index.js.map +0 -7
  278. package/NavListItemLink/index.test.d.ts +0 -1
  279. package/NavListItemLink/package.json +0 -6
  280. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  281. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  282. package/cjs/BackLink/index.js +0 -64
  283. package/cjs/BackLink/index.js.map +0 -7
  284. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  285. package/cjs/ButtonLink/index.js +0 -62
  286. package/cjs/ButtonLink/index.js.map +0 -7
  287. package/cjs/CallToAction/index.js.map +0 -7
  288. package/cjs/CircularProgress/index.js.map +0 -7
  289. package/cjs/FooterLink/index.js +0 -58
  290. package/cjs/FooterLink/index.js.map +0 -7
  291. package/cjs/GovGRLogo/index.js.map +0 -7
  292. package/cjs/HeaderLogo/index.js +0 -68
  293. package/cjs/HeaderLogo/index.js.map +0 -7
  294. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  295. package/cjs/HeaderTitle/index.js.map +0 -7
  296. package/cjs/NavListItemAction/index.js.map +0 -7
  297. package/cjs/NavListItemLink/index.js.map +0 -7
  298. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  299. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  300. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
  301. package/src/BackLink/index.test.tsx +0 -13
  302. package/src/BackLink/index.tsx +0 -35
  303. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  304. package/src/ButtonLink/index.test.tsx +0 -69
  305. package/src/ButtonLink/index.tsx +0 -54
  306. package/src/CallToAction/index.test.tsx +0 -10
  307. package/src/CircularProgress/index.test.tsx +0 -34
  308. package/src/FooterLink/index.test.tsx +0 -14
  309. package/src/FooterLink/index.tsx +0 -26
  310. package/src/GovGRLogo/index.test.tsx +0 -8
  311. package/src/GovGRLogo/index.tsx +0 -42
  312. package/src/HeaderLogo/index.test.tsx +0 -8
  313. package/src/HeaderLogo/index.tsx +0 -43
  314. package/src/HeaderTitle/index.test.tsx +0 -16
  315. package/src/HeaderTitle/index.tsx +0 -28
  316. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  317. package/src/NavListItemAction/index.test.tsx +0 -11
  318. package/src/NavListItemLink/index.test.tsx +0 -39
  319. /package/{AutoCompleteInputTypeahead → BackLinkBase}/index.test.d.ts +0 -0
  320. /package/{BackLink → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  321. /package/{BreadcrumbsListItemLink → ButtonLinkBase}/index.test.d.ts +0 -0
  322. /package/{ButtonLink → CallToActionBase}/index.test.d.ts +0 -0
  323. /package/{CallToAction → CircularProgressBase}/index.test.d.ts +0 -0
  324. /package/{CircularProgress → FooterLinkBase}/index.test.d.ts +0 -0
  325. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  326. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  327. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  328. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  329. /package/{FooterLink → GovGRLogoBase}/index.test.d.ts +0 -0
  330. /package/{GovGRLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  331. /package/{HeaderLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  332. /package/{HeaderSecondaryLogo → HeaderTitleBase}/index.test.d.ts +0 -0
  333. /package/{HeaderTitle → NavListItemActionBase}/index.test.d.ts +0 -0
  334. /package/{NavListItemAction → NavListItemLinkBase}/index.test.d.ts +0 -0
  335. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  336. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  337. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  338. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
@@ -0,0 +1,66 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var HeaderSecondaryLogoBase_exports = {};
29
+ __export(HeaderSecondaryLogoBase_exports, {
30
+ HeaderSecondaryLogoBase: () => HeaderSecondaryLogoBase,
31
+ default: () => HeaderSecondaryLogoBase_default
32
+ });
33
+ module.exports = __toCommonJS(HeaderSecondaryLogoBase_exports);
34
+ var import_react = __toESM(require("react"));
35
+ var import_clsx = __toESM(require("clsx"));
36
+ var import_LinkBase = require("@digigov/react-core/LinkBase");
37
+ const HeaderSecondaryLogoBase = import_react.default.forwardRef(function HeaderSecondaryLogoBase2({ href, src, altText, className, ...props }, ref) {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_LinkBase.LinkBase,
40
+ {
41
+ href,
42
+ ref,
43
+ defaultStyle: false,
44
+ className: (0, import_clsx.default)(className, {
45
+ "ds-header__link": true
46
+ }),
47
+ ...props
48
+ },
49
+ /* @__PURE__ */ import_react.default.createElement(
50
+ "img",
51
+ {
52
+ src,
53
+ className: (0, import_clsx.default)(className, {
54
+ "ds-header__secondary-logo": true
55
+ }),
56
+ alt: altText
57
+ }
58
+ )
59
+ );
60
+ });
61
+ var HeaderSecondaryLogoBase_default = HeaderSecondaryLogoBase;
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ HeaderSecondaryLogoBase
65
+ });
66
+ //# 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,sBAAwC;AAiBjC,MAAM,0BAA0B,aAAAA,QAAM,WAG3C,SAASC,yBACT,EAAE,MAAM,KAAK,SAAS,WAAW,GAAG,MAAM,GAC1C,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,eAAW,YAAAE,SAAK,WAAW;AAAA,QACzB,mBAAmB;AAAA,MACrB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ,6BAAAF,QAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,YAAAE,SAAK,WAAW;AAAA,UACzB,6BAA6B;AAAA,QAC/B,CAAC;AAAA,QACD,KAAK;AAAA;AAAA,IACP;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,kCAAQ;",
6
+ "names": ["React", "HeaderSecondaryLogoBase", "clsx"]
7
+ }
@@ -25,22 +25,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  mod
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var HeaderTitle_exports = {};
29
- __export(HeaderTitle_exports, {
30
- HeaderTitle: () => HeaderTitle,
31
- default: () => HeaderTitle_default
28
+ var HeaderTitleBase_exports = {};
29
+ __export(HeaderTitleBase_exports, {
30
+ HeaderTitleBase: () => HeaderTitleBase,
31
+ default: () => HeaderTitleBase_default
32
32
  });
33
- module.exports = __toCommonJS(HeaderTitle_exports);
33
+ module.exports = __toCommonJS(HeaderTitleBase_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_clsx = __toESM(require("clsx"));
36
- var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const HeaderTitle = import_react.default.forwardRef(function HeaderTitle2({ href = "/", className, children, ...props }, ref) {
36
+ var import_LinkBase = require("@digigov/react-core/LinkBase");
37
+ const HeaderTitleBase = import_react.default.forwardRef(function HeaderTitleBase2({ href = "/", className, children, ...props }, ref) {
38
38
  return /* @__PURE__ */ import_react.default.createElement(
39
- import_Base.default,
39
+ import_LinkBase.LinkBase,
40
40
  {
41
- as: "a",
42
41
  ref,
43
42
  href,
43
+ defaultStyle: false,
44
44
  className: (0, import_clsx.default)(className, {
45
45
  "ds-header__title": true
46
46
  }),
@@ -49,9 +49,9 @@ const HeaderTitle = import_react.default.forwardRef(function HeaderTitle2({ href
49
49
  children
50
50
  );
51
51
  });
52
- var HeaderTitle_default = HeaderTitle;
52
+ var HeaderTitleBase_default = HeaderTitleBase;
53
53
  // Annotate the CommonJS export names for ESM import in node:
54
54
  0 && (module.exports = {
55
- HeaderTitle
55
+ HeaderTitleBase
56
56
  });
57
57
  //# 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,sBAAwC;AAMjC,MAAM,kBAAkB,aAAAA,QAAM,WAGnC,SAASC,iBAAgB,EAAE,OAAO,KAAK,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC7E,SACE,6BAAAD,QAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,cAAc;AAAA,MACd,eAAW,YAAAE,SAAK,WAAW;AAAA,QACzB,oBAAoB;AAAA,MACtB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,0BAAQ;",
6
+ "names": ["React", "HeaderTitleBase", "clsx"]
7
+ }
@@ -45,6 +45,7 @@ const LinkBase = import_react.default.forwardRef(
45
45
  "ds-link": defaultStyle,
46
46
  "ds-link--no-underline": !underline
47
47
  }),
48
+ ...props.as && { defaultStyle, underline },
48
49
  ...props
49
50
  },
50
51
  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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAsBzB,MAAM,WAAW,aAAAA,QAAM;AAAA,EAC5B,SAASC,UACP,EAAE,YAAY,MAAM,eAAe,MAAM,WAAW,UAAU,GAAG,MAAM,GACvE,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAsBzB,MAAM,WAAW,aAAAA,QAAM;AAAA,EAC5B,SAASC,UACP,EAAE,YAAY,MAAM,eAAe,MAAM,WAAW,UAAU,GAAG,MAAM,GACvE,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,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": ["React", "LinkBase", "Base", "clsx"]
7
7
  }
@@ -25,20 +25,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  mod
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var NavListItemAction_exports = {};
29
- __export(NavListItemAction_exports, {
30
- NavListItemAction: () => NavListItemAction,
31
- default: () => NavListItemAction_default
28
+ var NavListItemActionBase_exports = {};
29
+ __export(NavListItemActionBase_exports, {
30
+ NavListItemActionBase: () => NavListItemActionBase,
31
+ default: () => NavListItemActionBase_default
32
32
  });
33
- module.exports = __toCommonJS(NavListItemAction_exports);
33
+ module.exports = __toCommonJS(NavListItemActionBase_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_NavListItemActionContainer = __toESM(require("@digigov/react-core/NavListItemActionContainer"));
36
36
  var import_NavListItemBadge = __toESM(require("@digigov/react-core/NavListItemBadge"));
37
37
  var import_NavListItemButton = __toESM(require("@digigov/react-core/NavListItemButton"));
38
- var import_NavListItemLink = __toESM(require("@digigov/react-core/NavListItemLink"));
39
- const NavListItemAction = import_react.default.forwardRef(function NavListItemAction2({ label, arrow = false, href, className, children, ...props }, ref) {
38
+ var import_NavListItemLinkBase = __toESM(require("@digigov/react-core/NavListItemLinkBase"));
39
+ const NavListItemActionBase = import_react.default.forwardRef(function NavListItemActionBase2({ label, arrow = false, href, className, children, ...props }, ref) {
40
40
  return /* @__PURE__ */ import_react.default.createElement(import_NavListItemActionContainer.default, null, href ? /* @__PURE__ */ import_react.default.createElement(
41
- import_NavListItemLink.default,
41
+ import_NavListItemLinkBase.default,
42
42
  {
43
43
  ...props,
44
44
  href,
@@ -57,9 +57,9 @@ const NavListItemAction = import_react.default.forwardRef(function NavListItemAc
57
57
  children || label
58
58
  ), props.badgeText && /* @__PURE__ */ import_react.default.createElement(import_NavListItemBadge.default, { text: props.badgeText }));
59
59
  });
60
- var NavListItemAction_default = NavListItemAction;
60
+ var NavListItemActionBase_default = NavListItemActionBase;
61
61
  // Annotate the CommonJS export names for ESM import in node:
62
62
  0 && (module.exports = {
63
- NavListItemAction
63
+ NavListItemActionBase
64
64
  });
65
65
  //# 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAoC;AACpC,wCAAuC;AACvC,8BAA6B;AAC7B,+BAEO;AACP,iCAEO;AAyBA,MAAM,wBAAwB,aAAAA,QAAM,WAGzC,SAASC,uBACT,EAAE,OAAO,QAAQ,OAAO,MAAM,WAAW,UAAU,GAAG,MAAM,GAC5D,KACA;AACA,SACE,6BAAAD,QAAA,cAAC,kCAAAE,SAAA,MACE,OACC,6BAAAF,QAAA;AAAA,IAAC,2BAAAG;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEC,YAAY;AAAA,EACf,IAEA,6BAAAH,QAAA;AAAA,IAAC,yBAAAI;AAAA,IAAA;AAAA,MACE,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA;AAAA,IAEC,YAAY;AAAA,EACf,GAED,MAAM,aAAa,6BAAAJ,QAAA,cAAC,wBAAAK,SAAA,EAAiB,MAAM,MAAM,WAAW,CAC/D;AAEJ,CAAC;AAED,IAAO,gCAAQ;",
6
+ "names": ["React", "NavListItemActionBase", "NavListItemActionContainer", "NavListItemLinkBase", "NavListItemButton", "NavListItemBadge"]
7
+ }
@@ -25,18 +25,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  mod
26
26
  ));
27
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var NavListItemLink_exports = {};
29
- __export(NavListItemLink_exports, {
30
- NavListItemLink: () => NavListItemLink,
31
- default: () => NavListItemLink_default
28
+ var NavListItemLinkBase_exports = {};
29
+ __export(NavListItemLinkBase_exports, {
30
+ NavListItemLinkBase: () => NavListItemLinkBase,
31
+ default: () => NavListItemLinkBase_default
32
32
  });
33
- module.exports = __toCommonJS(NavListItemLink_exports);
33
+ module.exports = __toCommonJS(NavListItemLinkBase_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_clsx = __toESM(require("clsx"));
36
- var import_LinkBase = __toESM(require("@digigov/react-core/LinkBase"));
37
- const NavListItemLink = import_react.default.forwardRef(function NavListItemLink2({ active, href, className, children, ...props }, ref) {
36
+ var import_LinkBase = require("@digigov/react-core/LinkBase");
37
+ const NavListItemLinkBase = import_react.default.forwardRef(function NavListItemLinkBase2({ active, href, className, children, ...props }, ref) {
38
38
  return /* @__PURE__ */ import_react.default.createElement(
39
- import_LinkBase.default,
39
+ import_LinkBase.LinkBase,
40
40
  {
41
41
  href,
42
42
  ref,
@@ -49,9 +49,9 @@ const NavListItemLink = import_react.default.forwardRef(function NavListItemLink
49
49
  children
50
50
  );
51
51
  });
52
- var NavListItemLink_default = NavListItemLink;
52
+ var NavListItemLinkBase_default = NavListItemLinkBase;
53
53
  // Annotate the CommonJS export names for ESM import in node:
54
54
  0 && (module.exports = {
55
- NavListItemLink
55
+ NavListItemLinkBase
56
56
  });
57
57
  //# 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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,sBAAwC;AAejC,MAAM,sBAAsB,aAAAA,QAAM,WAGvC,SAASC,qBACT,EAAE,QAAQ,MAAM,WAAW,UAAU,GAAG,MAAM,GAC9C,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,eAAW,YAAAE,SAAK,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": ["React", "NavListItemLinkBase", "clsx"]
7
+ }
@@ -41,6 +41,7 @@ const Table = import_react.default.forwardRef(
41
41
  dense = false,
42
42
  verticalBorders = false,
43
43
  stacked = "never",
44
+ verticalAlign = "middle",
44
45
  className,
45
46
  children,
46
47
  ...props
@@ -59,7 +60,9 @@ const Table = import_react.default.forwardRef(
59
60
  "ds-table--light": headerVariant === "light",
60
61
  "ds-table--dense": dense,
61
62
  "ds-table--zebra": variant === "zebra",
62
- "ds-table--vertical-lines": verticalBorders
63
+ "ds-table--vertical-lines": verticalBorders,
64
+ "ds-table--align-top": verticalAlign === "top",
65
+ "ds-table--align-bottom": verticalAlign === "bottom"
63
66
  }),
64
67
  ...props
65
68
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Table/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TableProps extends BaseProps<'table'> {\n /**\n * headerVariant is optional.\n * The `headerVariant` prop is used to either give blue background color to th tags\n * or a light grey background.\n * Default value is undefined which results to an opaque background color.\n * @value 'dark'\n * @value 'light'\n */\n headerVariant?: 'dark' | 'light';\n /**\n * dense is optional.\n * The dense prop is used to make font size smaller and give\n * extra padding.\n * @value true\n * @value false\n * @default false\n */\n dense?: boolean;\n /**\n * verticalBorders is optional.\n * The verticalBorders prop gives extra vertical lines to the table.\n * @value true\n * @value false\n * @default false\n */\n verticalBorders?: boolean;\n /**\n * stacked is optional.\n * The stacked prop gives responsiveness to the table. If used, make sure to add \"data-label\" to TableDataCell components.\n * Default value is never.\n * @value 'always'\n * @value 'sm'\n * @value 'md'\n * @value 'never'\n * @default 'never'\n */\n stacked?: 'always' | 'sm' | 'md' | 'never';\n /**\n * variant is optional.\n * @value 'default'\n * @value 'zebra' is used to make zebra table lines. If you have 'zebra' variant, color prop to TableRow component adds nothing.\n * @default 'default'\n */\n variant?: 'zebra' | 'default';\n}\n/**\n * Table component is used to wrap the sub components of a table\n */\nexport const Table = React.forwardRef<HTMLTableElement, TableProps>(\n function Table(\n {\n headerVariant,\n variant,\n dense = false,\n verticalBorders = false,\n stacked = 'never',\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"table\"\n ref={ref}\n className={clsx(className, {\n 'ds-table': true,\n 'ds-table--stacked-always': stacked === 'always',\n 'ds-table--stacked-sm': stacked === 'sm',\n 'ds-table--stacked-md': stacked == 'md',\n 'ds-table--dark': headerVariant === 'dark',\n 'ds-table--light': headerVariant === 'light',\n 'ds-table--dense': dense,\n 'ds-table--zebra': variant === 'zebra',\n 'ds-table--vertical-lines': verticalBorders,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Table;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAmDzB,MAAM,QAAQ,aAAAA,QAAM;AAAA,EACzB,SAASC,OACP;AAAA,IACE;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,4BAA4B,YAAY;AAAA,UACxC,wBAAwB,YAAY;AAAA,UACpC,wBAAwB,WAAW;AAAA,UACnC,kBAAkB,kBAAkB;AAAA,UACpC,mBAAmB,kBAAkB;AAAA,UACrC,mBAAmB;AAAA,UACnB,mBAAmB,YAAY;AAAA,UAC/B,4BAA4B;AAAA,QAC9B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,gBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TableProps extends BaseProps<'table'> {\n /**\n * headerVariant is optional.\n * The `headerVariant` prop is used to either give blue background color to th tags\n * or a light grey background.\n * Default value is undefined which results to an opaque background color.\n * @value 'dark'\n * @value 'light'\n */\n headerVariant?: 'dark' | 'light';\n /**\n * dense is optional.\n * The dense prop is used to make font size smaller and give\n * extra padding.\n * @value true\n * @value false\n * @default false\n */\n dense?: boolean;\n /**\n * verticalBorders is optional.\n * The verticalBorders prop gives extra vertical lines to the table.\n * @value true\n * @value false\n * @default false\n */\n verticalBorders?: boolean;\n /**\n * stacked is optional.\n * The stacked prop gives responsiveness to the table. If used, make sure to add \"data-label\" to TableDataCell components.\n * Default value is never.\n * @value 'always'\n * @value 'sm'\n * @value 'md'\n * @value 'never'\n * @default 'never'\n */\n stacked?: 'always' | 'sm' | 'md' | 'never';\n /**\n * variant is optional.\n * @value 'default'\n * @value 'zebra' is used to make zebra table lines. If you have 'zebra' variant, color prop to TableRow component adds nothing.\n * @default 'default'\n */\n variant?: 'zebra' | 'default';\n /**\n * verticalAlign is optional.\n * The verticalAlign property sets vertical alignment of the table-cells.\n * @value 'top'\n * @value 'middle'\n * @value 'bottom'\n * @default 'middle'\n */\n verticalAlign?: 'top' | 'middle' | 'bottom';\n}\n/**\n * Table component is used to wrap the sub components of a table\n */\nexport const Table = React.forwardRef<HTMLTableElement, TableProps>(\n function Table(\n {\n headerVariant,\n variant,\n dense = false,\n verticalBorders = false,\n stacked = 'never',\n verticalAlign = 'middle',\n className,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"table\"\n ref={ref}\n className={clsx(className, {\n 'ds-table': true,\n 'ds-table--stacked-always': stacked === 'always',\n 'ds-table--stacked-sm': stacked === 'sm',\n 'ds-table--stacked-md': stacked == 'md',\n 'ds-table--dark': headerVariant === 'dark',\n 'ds-table--light': headerVariant === 'light',\n 'ds-table--dense': dense,\n 'ds-table--zebra': variant === 'zebra',\n 'ds-table--vertical-lines': verticalBorders,\n 'ds-table--align-top': verticalAlign === 'top',\n 'ds-table--align-bottom': verticalAlign === 'bottom',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Table;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA4DzB,MAAM,QAAQ,aAAAA,QAAM;AAAA,EACzB,SAASC,OACP;AAAA,IACE;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,YAAY;AAAA,UACZ,4BAA4B,YAAY;AAAA,UACxC,wBAAwB,YAAY;AAAA,UACpC,wBAAwB,WAAW;AAAA,UACnC,kBAAkB,kBAAkB;AAAA,UACpC,mBAAmB,kBAAkB;AAAA,UACrC,mBAAmB;AAAA,UACnB,mBAAmB,YAAY;AAAA,UAC/B,4BAA4B;AAAA,UAC5B,uBAAuB,kBAAkB;AAAA,UACzC,0BAA0B,kBAAkB;AAAA,QAC9C,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,gBAAQ;",
6
6
  "names": ["React", "Table", "Base", "clsx"]
7
7
  }
@@ -34,7 +34,14 @@ module.exports = __toCommonJS(TableDataCell_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_clsx = __toESM(require("clsx"));
36
36
  var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const TableDataCell = import_react.default.forwardRef(function TableDataCell2({ dataType = "text", className, children, ...props }, ref) {
37
+ const TableDataCell = import_react.default.forwardRef(function TableDataCell2({
38
+ dataType = "text",
39
+ variant = "border",
40
+ wordBreak = "none",
41
+ className,
42
+ children,
43
+ ...props
44
+ }, ref) {
38
45
  return /* @__PURE__ */ import_react.default.createElement(
39
46
  import_Base.default,
40
47
  {
@@ -42,6 +49,8 @@ const TableDataCell = import_react.default.forwardRef(function TableDataCell2({
42
49
  ref,
43
50
  className: (0, import_clsx.default)(className, {
44
51
  "ds-table__cell": true,
52
+ "ds-table__cell--border": variant === "border",
53
+ "ds-table__cell--break-all": wordBreak === "break-all",
45
54
  "ds-table__cell--numeric": dataType === "numeric"
46
55
  }),
47
56
  ...props
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/TableDataCell/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n// import PhaseBannerTag from '@digigov/react-core/PhaseBannerTag';\n\nexport interface TableDataCellProps extends BaseProps<'td'> {\n /**\n * dataType is optional.\n * Use numeric value when comparing columns of numbers, align the numbers to the right in table cells\n * Default value is text which aligns texts to the center\n * @value 'text'\n * @value 'numeric'\n * @default 'text'\n */\n dataType?: 'text' | 'numeric';\n}\n/**\n * Use TableDataCell inside the Table component to fill the data of a cell in a table.\n */\nexport const TableDataCell = React.forwardRef<\n HTMLTableCellElement,\n TableDataCellProps\n>(function TableDataCell(\n { dataType = 'text', className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"td\"\n ref={ref}\n className={clsx(className, {\n 'ds-table__cell': true,\n 'ds-table__cell--numeric': dataType === 'numeric',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default TableDataCell;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAiBzB,MAAM,gBAAgB,aAAAA,QAAM,WAGjC,SAASC,eACT,EAAE,WAAW,QAAQ,WAAW,UAAU,GAAG,MAAM,GACnD,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,kBAAkB;AAAA,QAClB,2BAA2B,aAAa;AAAA,MAC1C,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,wBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n// import PhaseBannerTag from '@digigov/react-core/PhaseBannerTag';\n\nexport interface TableDataCellProps extends BaseProps<'td'> {\n /**\n * dataType is optional.\n * Use numeric value when comparing columns of numbers, align the numbers to the right in table cells\n * Default value is text which aligns texts to the center\n * @value 'text'\n * @value 'numeric'\n * @default 'text'\n */\n dataType?: 'text' | 'numeric';\n /**\n * variant is optional.\n * Use this prop to control the bottom border of the table-cell.\n * @value 'border'\n * @value 'none'\n * @default 'border'\n */\n variant?: 'border' | 'none';\n /**\n * wordBreak is optional.\n * Use this prop to control the word break of the table-cell contents.\n */\n wordBreak?: 'break-all' | 'none';\n}\n/**\n * Use TableDataCell inside the Table component to fill the data of a cell in a table.\n */\nexport const TableDataCell = React.forwardRef<\n HTMLTableCellElement,\n TableDataCellProps\n>(function TableDataCell(\n {\n dataType = 'text',\n variant = 'border',\n wordBreak = 'none',\n className,\n children,\n ...props\n },\n ref\n) {\n return (\n <Base\n as=\"td\"\n ref={ref}\n className={clsx(className, {\n 'ds-table__cell': true,\n 'ds-table__cell--border': variant === 'border',\n 'ds-table__cell--break-all': wordBreak === 'break-all',\n 'ds-table__cell--numeric': dataType === 'numeric',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default TableDataCell;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA8BzB,MAAM,gBAAgB,aAAAA,QAAM,WAGjC,SAASC,eACT;AAAA,EACE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,kBAAkB;AAAA,QAClB,0BAA0B,YAAY;AAAA,QACtC,6BAA6B,cAAc;AAAA,QAC3C,2BAA2B,aAAa;AAAA,MAC1C,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,wBAAQ;",
6
6
  "names": ["React", "TableDataCell", "Base", "clsx"]
7
7
  }
@@ -34,23 +34,21 @@ module.exports = __toCommonJS(Typography_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  var import_clsx = __toESM(require("clsx"));
36
36
  var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const Typography = import_react.default.forwardRef(
38
- function Typography2({ as, fontSize, fontWeight, className, children, ...props }, ref) {
39
- return /* @__PURE__ */ import_react.default.createElement(
40
- import_Base.default,
41
- {
42
- as,
43
- ref,
44
- className: (0, import_clsx.default)(className, {
45
- [`ds-!-font-size-${fontSize}`]: fontSize !== void 0,
46
- [`ds-!-font-weight-${fontWeight}`]: fontWeight !== void 0
47
- }),
48
- ...props
49
- },
50
- children
51
- );
52
- }
53
- );
37
+ const Typography = import_react.default.forwardRef(function Typography2({ as, fontSize, fontWeight, className, children, ...props }, ref) {
38
+ return /* @__PURE__ */ import_react.default.createElement(
39
+ import_Base.default,
40
+ {
41
+ as,
42
+ ref,
43
+ className: (0, import_clsx.default)(className, {
44
+ [`ds-!-font-size-${fontSize}`]: fontSize !== void 0,
45
+ [`ds-!-font-weight-${fontWeight}`]: fontWeight !== void 0
46
+ }),
47
+ ...props
48
+ },
49
+ children
50
+ );
51
+ });
54
52
  var Typography_default = Typography;
55
53
  // Annotate the CommonJS export names for ESM import in node:
56
54
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Typography/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TypographyProps\n extends BaseProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span' | 'p' | 'code'> {\n /**\n * fontSize is optional.\n * Add this fontSize override prop in order to change the font size.\n * @value 14\n * @value 16\n * @value 19\n * @value 24\n * @value 30\n * @value 36\n * @value 48\n * @value 72\n */\n fontSize?: 14 | 16 | 19 | 24 | 30 | 36 | 48 | 72;\n /**\n * fontWeight is optional.\n * You can add a fontWeight override prop to change the font weight to regular or bold.\n * @value 'regular'\n * @value 'bold'\n */\n fontWeight?: 'regular' | 'bold';\n}\n/**\n * Typography component is used as generic component for typography.\n * Use Typography component to extend components such as Heading, NormalText Paragraph etc.\n */\nexport const Typography = React.forwardRef<HTMLHeadingElement, TypographyProps>(\n function Typography(\n { as, fontSize, fontWeight, className, children, ...props },\n ref\n ) {\n return (\n <Base\n as={as}\n ref={ref}\n className={clsx(className, {\n [`ds-!-font-size-${fontSize}`]: fontSize !== undefined,\n [`ds-!-font-weight-${fontWeight}`]: fontWeight !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Typography;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA6BzB,MAAM,aAAa,aAAAA,QAAM;AAAA,EAC9B,SAASC,YACP,EAAE,IAAI,UAAU,YAAY,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,CAAC,kBAAkB,QAAQ,EAAE,GAAG,aAAa;AAAA,UAC7C,CAAC,oBAAoB,UAAU,EAAE,GAAG,eAAe;AAAA,QACrD,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,qBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface TypographyProps\n extends BaseProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span' | 'p' | 'code'> {\n /**\n * fontSize is optional.\n * Add this fontSize override prop in order to change the font size.\n * @value 14\n * @value 16\n * @value 19\n * @value 24\n * @value 30\n * @value 36\n * @value 48\n * @value 72\n */\n fontSize?: 14 | 16 | 19 | 24 | 30 | 36 | 48 | 72;\n /**\n * fontWeight is optional.\n * You can add a fontWeight override prop to change the font weight to regular or bold.\n * @value 'regular'\n * @value 'bold'\n */\n fontWeight?: 'regular' | 'bold';\n}\n/**\n * Typography component is used as generic component for typography.\n * Use Typography component to extend components such as Heading, NormalText Paragraph etc.\n */\nexport const Typography = React.forwardRef<\n HTMLSpanElement | HTMLParagraphElement | HTMLHeadingElement,\n TypographyProps\n>(function Typography(\n { as, fontSize, fontWeight, className, children, ...props },\n ref\n) {\n return (\n <Base\n as={as}\n ref={ref}\n className={clsx(className, {\n [`ds-!-font-size-${fontSize}`]: fontSize !== undefined,\n [`ds-!-font-weight-${fontWeight}`]: fontWeight !== undefined,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default Typography;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA6BzB,MAAM,aAAa,aAAAA,QAAM,WAG9B,SAASC,YACT,EAAE,IAAI,UAAU,YAAY,WAAW,UAAU,GAAG,MAAM,GAC1D,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,CAAC,kBAAkB,QAAQ,EAAE,GAAG,aAAa;AAAA,QAC7C,CAAC,oBAAoB,UAAU,EAAE,GAAG,eAAe;AAAA,MACrD,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,qBAAQ;",
6
6
  "names": ["React", "Typography", "Base", "clsx"]
7
7
  }
@@ -36,7 +36,15 @@ var import_clsx = __toESM(require("clsx"));
36
36
  var import_Base = __toESM(require("@digigov/react-core/Base"));
37
37
  var import_WarningTextAssistive = require("@digigov/react-core/WarningTextAssistive");
38
38
  const WarningText = import_react.default.forwardRef(
39
- function WarningText2({ className, assistiveText = "\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE", dense, children, ...props }, ref) {
39
+ function WarningText2({
40
+ className,
41
+ strong = true,
42
+ assistiveText = "\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE",
43
+ dense,
44
+ children,
45
+ ...props
46
+ }, ref) {
47
+ const Component = strong ? "strong" : "div";
40
48
  return /* @__PURE__ */ import_react.default.createElement(
41
49
  import_Base.default,
42
50
  {
@@ -61,7 +69,7 @@ const WarningText = import_react.default.forwardRef(
61
69
  /* @__PURE__ */ import_react.default.createElement(
62
70
  import_Base.default,
63
71
  {
64
- as: "strong",
72
+ as: Component,
65
73
  className: (0, import_clsx.default)({
66
74
  "ds-warning-text__content": true
67
75
  })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/WarningText/index.tsx"],
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';\nexport interface WarningTextProps 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 * dense is optional.\n * @value true WarningText will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * WarningText.\n * Use the WarningText component when you need to warn users about something important.\n * The component is used with a text inside it.\n */\nexport const WarningText = React.forwardRef<HTMLDivElement, WarningTextProps>(\n function WarningText(\n { className, assistiveText = '\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE', dense, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-warning-text': true,\n 'ds-warning-text--dense': dense,\n })}\n {...props}\n >\n <Base\n as=\"div\"\n className={clsx({\n 'ds-warning-text__icon': true,\n })}\n >\n !\n </Base>\n\n <Base\n as=\"strong\"\n className={clsx({\n 'ds-warning-text__content': true,\n })}\n >\n <WarningTextAssistive>{assistiveText}</WarningTextAssistive>\n {children}\n </Base>\n </Base>\n );\n }\n);\n\nexport default WarningText;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAChC,kCAAqC;AAqB9B,MAAM,cAAc,aAAAA,QAAM;AAAA,EAC/B,SAASC,aACP,EAAE,WAAW,gBAAgB,8CAAW,OAAO,UAAU,GAAG,MAAM,GAClE,KACA;AACA,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,0BAA0B;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ,6BAAAH,QAAA;AAAA,QAAC,YAAAE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,eAAW,YAAAC,SAAK;AAAA,YACd,yBAAyB;AAAA,UAC3B,CAAC;AAAA;AAAA,QACF;AAAA,MAED;AAAA,MAEA,6BAAAH,QAAA;AAAA,QAAC,YAAAE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,eAAW,YAAAC,SAAK;AAAA,YACd,4BAA4B;AAAA,UAC9B,CAAC;AAAA;AAAA,QAED,6BAAAH,QAAA,cAAC,wDAAsB,aAAc;AAAA,QACpC;AAAA,MACH;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
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';\nexport interface WarningTextProps 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 * dense is optional.\n * @value true WarningText will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n /**\n * strong is optional.\n * @value true if you want to emphasize importance, conveying meaning to both sighted and screen readers.\n * @value false WarningText will be a simple div element.\n * @default true\n * */\n strong?: boolean;\n}\n/**\n * WarningText.\n * Use the WarningText component when you need to warn users about something important.\n * The component is used with a text inside it.\n */\nexport const WarningText = React.forwardRef<HTMLDivElement, WarningTextProps>(\n function WarningText(\n {\n className,\n strong = true,\n assistiveText = '\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE',\n dense,\n children,\n ...props\n },\n ref\n ) {\n const Component = strong ? 'strong' : 'div';\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-warning-text': true,\n 'ds-warning-text--dense': dense,\n })}\n {...props}\n >\n <Base\n as=\"div\"\n className={clsx({\n 'ds-warning-text__icon': true,\n })}\n >\n !\n </Base>\n\n <Base\n as={Component}\n className={clsx({\n 'ds-warning-text__content': true,\n })}\n >\n <WarningTextAssistive>{assistiveText}</WarningTextAssistive>\n {children}\n </Base>\n </Base>\n );\n }\n);\n\nexport default WarningText;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAChC,kCAAqC;AA4B9B,MAAM,cAAc,aAAAA,QAAM;AAAA,EAC/B,SAASC,aACP;AAAA,IACE;AAAA,IACA,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,KACA;AACA,UAAM,YAAY,SAAS,WAAW;AACtC,WACE,6BAAAD,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,0BAA0B;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ,6BAAAH,QAAA;AAAA,QAAC,YAAAE;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,eAAW,YAAAC,SAAK;AAAA,YACd,yBAAyB;AAAA,UAC3B,CAAC;AAAA;AAAA,QACF;AAAA,MAED;AAAA,MAEA,6BAAAH,QAAA;AAAA,QAAC,YAAAE;AAAA,QAAA;AAAA,UACC,IAAI;AAAA,UACJ,eAAW,YAAAC,SAAK;AAAA,YACd,4BAA4B;AAAA,UAC9B,CAAC;AAAA;AAAA,QAED,6BAAAH,QAAA,cAAC,wDAAsB,aAAc;AAAA,QACpC;AAAA,MACH;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
6
6
  "names": ["React", "WarningText", "Base", "clsx"]
7
7
  }