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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/Accordion/index.d.ts +2 -28
  2. package/Accordion/index.js +3 -34
  3. package/Accordion/index.js.map +3 -3
  4. package/Accordion/index.native/index.js +22 -0
  5. package/Accordion/index.native/package.json +6 -0
  6. package/Accordion/index.native.d.ts +6 -0
  7. package/Accordion/index.native.js.map +7 -0
  8. package/Accordion/index.web/index.js +37 -0
  9. package/Accordion/index.web/package.json +6 -0
  10. package/Accordion/index.web.d.ts +28 -0
  11. package/Accordion/index.web.js.map +7 -0
  12. package/AccordionSection/index.d.ts +2 -11
  13. package/AccordionSection/index.js +3 -20
  14. package/AccordionSection/index.js.map +3 -3
  15. package/AccordionSection/index.native/index.js +21 -0
  16. package/AccordionSection/index.native/package.json +6 -0
  17. package/AccordionSection/index.native.d.ts +4 -0
  18. package/AccordionSection/index.native.js.map +7 -0
  19. package/AccordionSection/index.web/index.js +23 -0
  20. package/AccordionSection/index.web/package.json +6 -0
  21. package/AccordionSection/index.web.d.ts +11 -0
  22. package/AccordionSection/index.web.js.map +7 -0
  23. package/AccordionSectionSummaryHeading/index.js +2 -1
  24. package/AccordionSectionSummaryHeading/index.js.map +2 -2
  25. package/BackLinkBase/index.d.ts +9 -0
  26. package/BackLinkBase/index.js +29 -0
  27. package/BackLinkBase/index.js.map +7 -0
  28. package/{BackLink → BackLinkBase}/package.json +1 -1
  29. package/Base/compat/details.native/index.js +2 -1
  30. package/Base/compat/details.native.d.ts +2 -1
  31. package/Base/compat/details.native.js.map +2 -2
  32. package/Base/index.web.d.ts +1 -1
  33. package/Base/index.web.js.map +1 -1
  34. package/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.d.ts +5 -5
  35. package/BreadcrumbsListItemLinkBase/index.js +23 -0
  36. package/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  37. package/BreadcrumbsListItemLinkBase/package.json +6 -0
  38. package/BreadcrumbsListItemWrapper/index.d.ts +10 -0
  39. package/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +4 -4
  40. package/BreadcrumbsListItemWrapper/index.js.map +7 -0
  41. package/BreadcrumbsListItemWrapper/package.json +6 -0
  42. package/Button/index.js +2 -0
  43. package/Button/index.js.map +2 -2
  44. package/{ButtonLink → ButtonLinkBase}/index.d.ts +4 -4
  45. package/ButtonLinkBase/index.js +27 -0
  46. package/ButtonLinkBase/index.js.map +7 -0
  47. package/{CallToAction → ButtonLinkBase}/package.json +1 -1
  48. package/CallToActionBase/index.d.ts +9 -0
  49. package/{CallToAction → CallToActionBase}/index.js +6 -6
  50. package/CallToActionBase/index.js.map +7 -0
  51. package/CallToActionBase/package.json +6 -0
  52. package/CopyToClipboardMessage/index.native/index.js +1 -1
  53. package/CopyToClipboardMessage/index.native.js.map +1 -1
  54. package/DateInputItem/index.native/index.js +1 -1
  55. package/DateInputItem/index.native.js.map +1 -1
  56. package/Details/index.native/index.js +1 -1
  57. package/Details/index.native.js.map +1 -1
  58. package/FileUpload/index.d.ts +7 -0
  59. package/FileUpload/index.js +12 -4
  60. package/FileUpload/index.js.map +2 -2
  61. package/FileUploadContainer/index.d.ts +7 -0
  62. package/FileUploadContainer/index.js +3 -2
  63. package/FileUploadContainer/index.js.map +2 -2
  64. package/FooterLinkBase/index.d.ts +9 -0
  65. package/FooterLinkBase/index.js +23 -0
  66. package/FooterLinkBase/index.js.map +7 -0
  67. package/{ButtonLink → FooterLinkBase}/package.json +1 -1
  68. package/GovGRLogoBase/govgr-logo-base64/package.json +6 -0
  69. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  70. package/GovGRLogoBase/govgr-logo-blue-base64/package.json +6 -0
  71. package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  72. package/GovGRLogoBase/index.d.ts +9 -0
  73. package/GovGRLogoBase/index.js +43 -0
  74. package/GovGRLogoBase/index.js.map +7 -0
  75. package/{FooterLink → GovGRLogoBase}/package.json +1 -1
  76. package/Grid/index.js +1 -0
  77. package/Grid/index.js.map +2 -2
  78. package/HeaderLogoBase/index.d.ts +19 -0
  79. package/HeaderLogoBase/index.js +33 -0
  80. package/HeaderLogoBase/index.js.map +7 -0
  81. package/HeaderLogoBase/package.json +6 -0
  82. package/HeaderSecondaryLogoBase/index.d.ts +19 -0
  83. package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.js +7 -7
  84. package/HeaderSecondaryLogoBase/index.js.map +7 -0
  85. package/{BreadcrumbsListItemLink → HeaderSecondaryLogoBase}/package.json +1 -1
  86. package/HeaderTitleBase/index.d.ts +9 -0
  87. package/HeaderTitleBase/index.js +24 -0
  88. package/HeaderTitleBase/index.js.map +7 -0
  89. package/HeaderTitleBase/package.json +6 -0
  90. package/LinkBase/index.js +1 -0
  91. package/LinkBase/index.js.map +2 -2
  92. package/{NavListItemAction → NavListItemActionBase}/index.d.ts +6 -6
  93. package/{NavListItemAction → NavListItemActionBase}/index.js +6 -6
  94. package/NavListItemActionBase/index.js.map +7 -0
  95. package/NavListItemActionBase/package.json +6 -0
  96. package/NavListItemActionContainer/index.native/index.js +1 -1
  97. package/NavListItemActionContainer/index.native.js.map +1 -1
  98. package/{NavListItemLink → NavListItemLinkBase}/index.d.ts +4 -4
  99. package/{NavListItemLink → NavListItemLinkBase}/index.js +6 -6
  100. package/NavListItemLinkBase/index.js.map +7 -0
  101. package/{BreadcrumbsListItem → NavListItemLinkBase}/package.json +1 -1
  102. package/NotificationBannerContent/index.js +1 -1
  103. package/NotificationBannerContent/index.js.map +2 -2
  104. package/NotificationBannerLink/index.native/index.js +1 -1
  105. package/NotificationBannerLink/index.native.js.map +1 -1
  106. package/Table/index.d.ts +9 -0
  107. package/Table/index.js +4 -1
  108. package/Table/index.js.map +2 -2
  109. package/TableDataCell/index.d.ts +13 -0
  110. package/TableDataCell/index.js +10 -1
  111. package/TableDataCell/index.js.map +2 -2
  112. package/TextArea/index.native/index.js +1 -1
  113. package/TextArea/index.native.js.map +1 -1
  114. package/TextInput/index.native/index.js +1 -1
  115. package/TextInput/index.native.js.map +1 -1
  116. package/WarningText/index.d.ts +7 -0
  117. package/WarningText/index.js +10 -2
  118. package/WarningText/index.js.map +2 -2
  119. package/cjs/Accordion/index.js +5 -35
  120. package/cjs/Accordion/index.js.map +3 -3
  121. package/cjs/{utils/extend.native → Accordion/index.native}/index.js +22 -16
  122. package/cjs/Accordion/index.native.js.map +7 -0
  123. package/cjs/{BackLink → Accordion/index.web}/index.js +24 -18
  124. package/cjs/Accordion/index.web.js.map +7 -0
  125. package/cjs/AccordionSection/index.js +5 -21
  126. package/cjs/AccordionSection/index.js.map +3 -3
  127. package/cjs/{CheckboxItemInput → AccordionSection}/index.native/index.js +13 -12
  128. package/cjs/AccordionSection/index.native.js.map +7 -0
  129. package/cjs/{HeaderTitle → AccordionSection/index.web}/index.js +11 -12
  130. package/cjs/AccordionSection/index.web.js.map +7 -0
  131. package/cjs/AccordionSectionSummaryHeading/index.js +2 -1
  132. package/cjs/AccordionSectionSummaryHeading/index.js.map +2 -2
  133. package/cjs/BackLinkBase/index.js +62 -0
  134. package/cjs/BackLinkBase/index.js.map +7 -0
  135. package/cjs/Base/compat/details.native/index.js +2 -1
  136. package/cjs/Base/compat/details.native.js.map +2 -2
  137. package/cjs/Base/index.web.js.map +1 -1
  138. package/cjs/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.js +10 -11
  139. package/cjs/BreadcrumbsListItemLinkBase/index.js.map +7 -0
  140. package/cjs/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.js +8 -8
  141. package/cjs/BreadcrumbsListItemWrapper/index.js.map +7 -0
  142. package/cjs/Button/index.js +2 -0
  143. package/cjs/Button/index.js.map +2 -2
  144. package/cjs/ButtonLinkBase/index.js +60 -0
  145. package/cjs/ButtonLinkBase/index.js.map +7 -0
  146. package/cjs/{CallToAction → CallToActionBase}/index.js +10 -10
  147. package/cjs/CallToActionBase/index.js.map +7 -0
  148. package/cjs/CopyToClipboardMessage/index.native/index.js +2 -2
  149. package/cjs/CopyToClipboardMessage/index.native.js.map +2 -2
  150. package/cjs/DateInputItem/index.native/index.js +2 -2
  151. package/cjs/DateInputItem/index.native.js.map +2 -2
  152. package/cjs/Details/index.native/index.js +2 -2
  153. package/cjs/Details/index.native.js.map +2 -2
  154. package/cjs/FileUpload/index.js +12 -4
  155. package/cjs/FileUpload/index.js.map +2 -2
  156. package/cjs/FileUploadContainer/index.js +3 -2
  157. package/cjs/FileUploadContainer/index.js.map +2 -2
  158. package/cjs/FooterLinkBase/index.js +56 -0
  159. package/cjs/FooterLinkBase/index.js.map +7 -0
  160. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js.map +1 -1
  161. package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.js.map +1 -1
  162. package/cjs/{GovGRLogo → GovGRLogoBase}/index.js +41 -43
  163. package/cjs/GovGRLogoBase/index.js.map +7 -0
  164. package/cjs/Grid/index.js +1 -0
  165. package/cjs/Grid/index.js.map +2 -2
  166. package/cjs/{HeaderSecondaryLogo → HeaderLogoBase}/index.js +12 -12
  167. package/cjs/HeaderLogoBase/index.js.map +7 -0
  168. package/cjs/HeaderSecondaryLogoBase/index.js +66 -0
  169. package/cjs/HeaderSecondaryLogoBase/index.js.map +7 -0
  170. package/cjs/HeaderTitleBase/index.js +57 -0
  171. package/cjs/HeaderTitleBase/index.js.map +7 -0
  172. package/cjs/LinkBase/index.js +1 -0
  173. package/cjs/LinkBase/index.js.map +2 -2
  174. package/cjs/{NavListItemAction → NavListItemActionBase}/index.js +10 -10
  175. package/cjs/NavListItemActionBase/index.js.map +7 -0
  176. package/cjs/NavListItemActionContainer/index.native/index.js +2 -2
  177. package/cjs/NavListItemActionContainer/index.native.js.map +2 -2
  178. package/cjs/{NavListItemLink → NavListItemLinkBase}/index.js +10 -10
  179. package/cjs/NavListItemLinkBase/index.js.map +7 -0
  180. package/cjs/NotificationBannerContent/index.js +1 -1
  181. package/cjs/NotificationBannerContent/index.js.map +2 -2
  182. package/cjs/NotificationBannerLink/index.native/index.js +2 -2
  183. package/cjs/NotificationBannerLink/index.native.js.map +2 -2
  184. package/cjs/Table/index.js +4 -1
  185. package/cjs/Table/index.js.map +2 -2
  186. package/cjs/TableDataCell/index.js +10 -1
  187. package/cjs/TableDataCell/index.js.map +2 -2
  188. package/cjs/TextArea/index.native/index.js +2 -2
  189. package/cjs/TextArea/index.native.js.map +2 -2
  190. package/cjs/TextInput/index.native/index.js +2 -2
  191. package/cjs/TextInput/index.native.js.map +2 -2
  192. package/cjs/WarningText/index.js +10 -2
  193. package/cjs/WarningText/index.js.map +2 -2
  194. package/cjs/index.js +22 -22
  195. package/cjs/index.js.map +2 -2
  196. package/cjs/lazy/index.js +14 -14
  197. package/cjs/lazy.js.map +2 -2
  198. package/cjs/registry/index.js +36 -32
  199. package/cjs/registry.js.map +2 -2
  200. package/cjs/utils/index.native/index.js +88 -0
  201. package/cjs/utils/index.native.js.map +7 -0
  202. package/index.d.ts +11 -11
  203. package/index.js +12 -12
  204. package/index.js.map +1 -1
  205. package/lazy/index.js +14 -14
  206. package/package.json +3 -3
  207. package/registry/index.js +36 -32
  208. package/src/Accordion/index.native.tsx +19 -0
  209. package/src/Accordion/index.tsx +2 -71
  210. package/src/Accordion/index.web.tsx +71 -0
  211. package/src/AccordionSection/index.native.tsx +18 -0
  212. package/src/AccordionSection/index.tsx +2 -28
  213. package/src/AccordionSection/index.web.tsx +28 -0
  214. package/src/AccordionSectionSummaryHeading/index.tsx +3 -2
  215. package/src/AdminAside/__snapshots__/index.test.tsx.snap +1 -1
  216. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +2 -2
  217. package/src/AdminMain/__snapshots__/index.test.tsx.snap +1 -1
  218. package/src/AdminTopSection/__snapshots__/index.test.tsx.snap +1 -1
  219. package/src/Aside/__snapshots__/index.test.tsx.snap +1 -1
  220. package/src/{BackLink → BackLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  221. package/src/BackLinkBase/index.test.tsx +15 -0
  222. package/src/BackLinkBase/index.tsx +36 -0
  223. package/src/Base/compat/details.native.tsx +3 -1
  224. package/src/Base/index.web.tsx +1 -1
  225. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +1 -1
  226. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +1 -1
  227. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +1 -1
  228. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/__snapshots__/index.test.tsx.snap +4 -4
  229. package/src/BreadcrumbsListItemLinkBase/index.test.tsx +18 -0
  230. package/src/{BreadcrumbsListItemLink → BreadcrumbsListItemLinkBase}/index.tsx +10 -11
  231. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.test.tsx +1 -1
  232. package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/index.tsx +5 -5
  233. package/src/Button/index.tsx +2 -0
  234. package/src/{ButtonLink → ButtonLinkBase}/__snapshots__/index.test.tsx.snap +22 -22
  235. package/src/ButtonLinkBase/index.test.tsx +75 -0
  236. package/src/ButtonLinkBase/index.tsx +55 -0
  237. package/src/{CallToAction → CallToActionBase}/__snapshots__/index.test.tsx.snap +1 -1
  238. package/src/CallToActionBase/index.test.tsx +10 -0
  239. package/src/{CallToAction → CallToActionBase}/index.tsx +10 -8
  240. package/src/CheckboxConditional/__snapshots__/index.test.tsx.snap +1 -1
  241. package/src/Container/__snapshots__/index.test.tsx.snap +3 -3
  242. package/src/CopyToClipboardMessage/index.native.tsx +1 -1
  243. package/src/DateInputItem/index.native.tsx +1 -1
  244. package/src/Details/index.native.tsx +1 -1
  245. package/src/FieldContainer/__snapshots__/index.test.tsx.snap +3 -3
  246. package/src/FileUpload/index.tsx +20 -4
  247. package/src/FileUploadContainer/index.tsx +10 -1
  248. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +1 -1
  249. package/src/{FooterLink → FooterLinkBase}/__snapshots__/index.test.tsx.snap +2 -2
  250. package/src/FooterLinkBase/index.test.tsx +16 -0
  251. package/src/FooterLinkBase/index.tsx +27 -0
  252. package/src/{GovGRLogo → GovGRLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  253. package/src/GovGRLogoBase/index.test.tsx +8 -0
  254. package/src/GovGRLogoBase/index.tsx +43 -0
  255. package/src/Grid/__snapshots__/index.test.tsx.snap +8 -8
  256. package/src/Grid/index.tsx +1 -0
  257. package/src/{HeaderLogo → HeaderLogoBase}/__snapshots__/index.test.tsx.snap +1 -1
  258. package/src/HeaderLogoBase/index.test.tsx +8 -0
  259. package/src/HeaderLogoBase/index.tsx +44 -0
  260. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/__snapshots__/index.test.tsx.snap +2 -2
  261. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.tsx +7 -7
  262. package/src/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.tsx +9 -9
  263. package/src/{HeaderTitle → HeaderTitleBase}/__snapshots__/index.test.tsx.snap +2 -2
  264. package/src/HeaderTitleBase/index.test.tsx +17 -0
  265. package/src/HeaderTitleBase/index.tsx +28 -0
  266. package/src/LinkBase/index.tsx +1 -0
  267. package/src/Main/__snapshots__/index.test.tsx.snap +1 -1
  268. package/src/NavListItemActionBase/__snapshots__/index.test.tsx.snap +101 -0
  269. package/src/NavListItemActionBase/index.test.tsx +42 -0
  270. package/src/{NavListItemAction → NavListItemActionBase}/index.tsx +13 -12
  271. package/src/NavListItemActionContainer/index.native.tsx +1 -1
  272. package/src/{NavListItemLink → NavListItemLinkBase}/__snapshots__/index.test.tsx.snap +5 -5
  273. package/src/NavListItemLinkBase/index.test.tsx +41 -0
  274. package/src/{NavListItemLink → NavListItemLinkBase}/index.tsx +8 -9
  275. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +4 -4
  276. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +1 -1
  277. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +1 -1
  278. package/src/NotificationBannerContent/index.tsx +1 -1
  279. package/src/NotificationBannerLink/index.native.tsx +1 -1
  280. package/src/RadioConditional/__snapshots__/index.test.tsx.snap +1 -1
  281. package/src/Table/index.tsx +12 -0
  282. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  283. package/src/TableDataCell/index.tsx +23 -1
  284. package/src/TextArea/index.native.tsx +1 -1
  285. package/src/TextInput/index.native.tsx +1 -1
  286. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  287. package/src/WarningText/index.test.tsx +5 -0
  288. package/src/WarningText/index.tsx +17 -2
  289. package/src/index.ts +11 -11
  290. package/src/lazy.js +14 -14
  291. package/src/registry.js +36 -32
  292. package/src/utils/index.native.tsx +120 -0
  293. package/utils/index.native/index.js +54 -0
  294. package/utils/index.native/package.json +6 -0
  295. package/utils/{extend.native.d.ts → index.native.d.ts} +23 -0
  296. package/utils/index.native.js.map +7 -0
  297. package/BackLink/index.d.ts +0 -9
  298. package/BackLink/index.js +0 -31
  299. package/BackLink/index.js.map +0 -7
  300. package/BreadcrumbsListItem/index.d.ts +0 -10
  301. package/BreadcrumbsListItem/index.js.map +0 -7
  302. package/BreadcrumbsListItemLink/index.js +0 -24
  303. package/BreadcrumbsListItemLink/index.js.map +0 -7
  304. package/ButtonLink/index.js +0 -29
  305. package/ButtonLink/index.js.map +0 -7
  306. package/CallToAction/index.d.ts +0 -9
  307. package/CallToAction/index.js.map +0 -7
  308. package/CheckboxItemInput/index.native/index.js +0 -20
  309. package/CheckboxItemInput/index.native/package.json +0 -6
  310. package/CheckboxItemInput/index.native.d.ts +0 -4
  311. package/CheckboxItemInput/index.native.js.map +0 -7
  312. package/FooterLink/index.d.ts +0 -9
  313. package/FooterLink/index.js +0 -25
  314. package/FooterLink/index.js.map +0 -7
  315. package/GovGRLogo/govgr-logo-base64/package.json +0 -6
  316. package/GovGRLogo/govgr-logo-blue-base64/package.json +0 -6
  317. package/GovGRLogo/index.d.ts +0 -9
  318. package/GovGRLogo/index.js +0 -45
  319. package/GovGRLogo/index.js.map +0 -7
  320. package/GovGRLogo/package.json +0 -6
  321. package/HeaderLogo/index.d.ts +0 -19
  322. package/HeaderLogo/index.js +0 -35
  323. package/HeaderLogo/index.js.map +0 -7
  324. package/HeaderLogo/package.json +0 -6
  325. package/HeaderSecondaryLogo/index.d.ts +0 -19
  326. package/HeaderSecondaryLogo/index.js.map +0 -7
  327. package/HeaderSecondaryLogo/package.json +0 -6
  328. package/HeaderTitle/index.d.ts +0 -9
  329. package/HeaderTitle/index.js +0 -24
  330. package/HeaderTitle/index.js.map +0 -7
  331. package/HeaderTitle/package.json +0 -6
  332. package/NavListItemAction/index.js.map +0 -7
  333. package/NavListItemAction/package.json +0 -6
  334. package/NavListItemLink/index.js.map +0 -7
  335. package/NavListItemLink/package.json +0 -6
  336. package/cjs/BackLink/index.js.map +0 -7
  337. package/cjs/BreadcrumbsListItem/index.js.map +0 -7
  338. package/cjs/BreadcrumbsListItemLink/index.js.map +0 -7
  339. package/cjs/ButtonLink/index.js +0 -62
  340. package/cjs/ButtonLink/index.js.map +0 -7
  341. package/cjs/CallToAction/index.js.map +0 -7
  342. package/cjs/CheckboxItemInput/index.native.js.map +0 -7
  343. package/cjs/FooterLink/index.js +0 -58
  344. package/cjs/FooterLink/index.js.map +0 -7
  345. package/cjs/GovGRLogo/index.js.map +0 -7
  346. package/cjs/HeaderLogo/index.js +0 -68
  347. package/cjs/HeaderLogo/index.js.map +0 -7
  348. package/cjs/HeaderSecondaryLogo/index.js.map +0 -7
  349. package/cjs/HeaderTitle/index.js.map +0 -7
  350. package/cjs/NavListItemAction/index.js.map +0 -7
  351. package/cjs/NavListItemLink/index.js.map +0 -7
  352. package/cjs/utils/extend.native.js.map +0 -7
  353. package/src/BackLink/index.test.tsx +0 -13
  354. package/src/BackLink/index.tsx +0 -35
  355. package/src/BreadcrumbsListItemLink/index.test.tsx +0 -16
  356. package/src/ButtonLink/index.test.tsx +0 -69
  357. package/src/ButtonLink/index.tsx +0 -54
  358. package/src/CallToAction/index.test.tsx +0 -10
  359. package/src/CheckboxItemInput/index.native.tsx +0 -17
  360. package/src/FooterLink/index.test.tsx +0 -14
  361. package/src/FooterLink/index.tsx +0 -26
  362. package/src/GovGRLogo/index.test.tsx +0 -8
  363. package/src/GovGRLogo/index.tsx +0 -42
  364. package/src/HeaderLogo/index.test.tsx +0 -8
  365. package/src/HeaderLogo/index.tsx +0 -43
  366. package/src/HeaderTitle/index.test.tsx +0 -16
  367. package/src/HeaderTitle/index.tsx +0 -28
  368. package/src/NavListItemAction/__snapshots__/index.test.tsx.snap +0 -13
  369. package/src/NavListItemAction/index.test.tsx +0 -11
  370. package/src/NavListItemLink/index.test.tsx +0 -39
  371. package/src/utils/extend.native.tsx +0 -36
  372. package/utils/extend.native/index.js +0 -14
  373. package/utils/extend.native/package.json +0 -6
  374. package/utils/extend.native.js.map +0 -7
  375. /package/{BackLink → BackLinkBase}/index.test.d.ts +0 -0
  376. /package/{BreadcrumbsListItem → BreadcrumbsListItemLinkBase}/index.test.d.ts +0 -0
  377. /package/{BreadcrumbsListItemLink → BreadcrumbsListItemWrapper}/index.test.d.ts +0 -0
  378. /package/{ButtonLink → ButtonLinkBase}/index.test.d.ts +0 -0
  379. /package/{CallToAction → CallToActionBase}/index.test.d.ts +0 -0
  380. /package/{FooterLink → FooterLinkBase}/index.test.d.ts +0 -0
  381. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  382. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.d.ts +0 -0
  383. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  384. /package/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.d.ts +0 -0
  385. /package/{GovGRLogo → GovGRLogoBase}/index.test.d.ts +0 -0
  386. /package/{HeaderLogo → HeaderLogoBase}/index.test.d.ts +0 -0
  387. /package/{HeaderSecondaryLogo → HeaderSecondaryLogoBase}/index.test.d.ts +0 -0
  388. /package/{HeaderTitle → HeaderTitleBase}/index.test.d.ts +0 -0
  389. /package/{NavListItemAction → NavListItemActionBase}/index.test.d.ts +0 -0
  390. /package/{NavListItemLink → NavListItemLinkBase}/index.test.d.ts +0 -0
  391. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64/index.js +0 -0
  392. /package/cjs/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64/index.js +0 -0
  393. /package/src/{BreadcrumbsListItem → BreadcrumbsListItemWrapper}/__snapshots__/index.test.tsx.snap +0 -0
  394. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-base64.js +0 -0
  395. /package/src/{GovGRLogo → GovGRLogoBase}/govgr-logo-blue-base64.ts +0 -0
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
+ defaultStyle,
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 defaultStyle={defaultStyle}\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,QACD;AAAA,QACC,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,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
  }
@@ -23,7 +23,7 @@ const NotificationBannerContent = React.forwardRef(function NotificationBannerCo
23
23
  })
24
24
  },
25
25
  "!"
26
- ), /* @__PURE__ */ React.createElement(WarningTextAssistive, null, assistiveText), /* @__PURE__ */ React.createElement(Base, { as: "div", className: "ds-notification-banner__text-error-group" }, children)) : /* @__PURE__ */ React.createElement(React.Fragment, null, children)
26
+ ), /* @__PURE__ */ React.createElement(WarningTextAssistive, null, assistiveText), /* @__PURE__ */ React.createElement(Base, { as: "div", className: "ds-notification-banner__text-error-group" }, children)) : children
27
27
  );
28
28
  });
29
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';\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,0DAAG,QAAS;AAAA,EAEhB;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",
@@ -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
  }
package/Table/index.d.ts CHANGED
@@ -45,6 +45,15 @@ export interface TableProps extends BaseProps<'table'> {
45
45
  * @default 'default'
46
46
  */
47
47
  variant?: 'zebra' | 'default';
48
+ /**
49
+ * verticalAlign is optional.
50
+ * The verticalAlign property sets vertical alignment of the table-cells.
51
+ * @value 'top'
52
+ * @value 'middle'
53
+ * @value 'bottom'
54
+ * @default 'middle'
55
+ */
56
+ verticalAlign?: 'top' | 'middle' | 'bottom';
48
57
  }
49
58
  /**
50
59
  * Table component is used to wrap the sub components of a table
package/Table/index.js CHANGED
@@ -8,6 +8,7 @@ const Table = React.forwardRef(
8
8
  dense = false,
9
9
  verticalBorders = false,
10
10
  stacked = "never",
11
+ verticalAlign = "middle",
11
12
  className,
12
13
  children,
13
14
  ...props
@@ -26,7 +27,9 @@ const Table = React.forwardRef(
26
27
  "ds-table--light": headerVariant === "light",
27
28
  "ds-table--dense": dense,
28
29
  "ds-table--zebra": variant === "zebra",
29
- "ds-table--vertical-lines": verticalBorders
30
+ "ds-table--vertical-lines": verticalBorders,
31
+ "ds-table--align-top": verticalAlign === "top",
32
+ "ds-table--align-bottom": verticalAlign === "bottom"
30
33
  }),
31
34
  ...props
32
35
  },
@@ -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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAmDzB,MAAM,QAAQ,MAAM;AAAA,EACzB,SAASA,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;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA4DzB,MAAM,QAAQ,MAAM;AAAA,EACzB,SAASA,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;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,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": ["Table"]
7
7
  }
@@ -10,6 +10,19 @@ export interface TableDataCellProps extends BaseProps<'td'> {
10
10
  * @default 'text'
11
11
  */
12
12
  dataType?: 'text' | 'numeric';
13
+ /**
14
+ * variant is optional.
15
+ * Use this prop to control the bottom border of the table-cell.
16
+ * @value 'border'
17
+ * @value 'none'
18
+ * @default 'border'
19
+ */
20
+ variant?: 'border' | 'none';
21
+ /**
22
+ * wordBreak is optional.
23
+ * Use this prop to control the word break of the table-cell contents.
24
+ */
25
+ wordBreak?: 'break-all' | 'none';
13
26
  }
14
27
  /**
15
28
  * Use TableDataCell inside the Table component to fill the data of a cell in a table.
@@ -1,7 +1,14 @@
1
1
  import React from "react";
2
2
  import clsx from "clsx";
3
3
  import Base from "@digigov/react-core/Base";
4
- const TableDataCell = React.forwardRef(function TableDataCell2({ dataType = "text", className, children, ...props }, ref) {
4
+ const TableDataCell = React.forwardRef(function TableDataCell2({
5
+ dataType = "text",
6
+ variant = "border",
7
+ wordBreak = "none",
8
+ className,
9
+ children,
10
+ ...props
11
+ }, ref) {
5
12
  return /* @__PURE__ */ React.createElement(
6
13
  Base,
7
14
  {
@@ -9,6 +16,8 @@ const TableDataCell = React.forwardRef(function TableDataCell2({ dataType = "tex
9
16
  ref,
10
17
  className: clsx(className, {
11
18
  "ds-table__cell": true,
19
+ "ds-table__cell--border": variant === "border",
20
+ "ds-table__cell--break-all": wordBreak === "break-all",
12
21
  "ds-table__cell--numeric": dataType === "numeric"
13
22
  }),
14
23
  ...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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAiBzB,MAAM,gBAAgB,MAAM,WAGjC,SAASA,eACT,EAAE,WAAW,QAAQ,WAAW,UAAU,GAAG,MAAM,GACnD,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA8BzB,MAAM,gBAAgB,MAAM,WAGjC,SAASA,eACT;AAAA,EACE,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,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": ["TableDataCell"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx";
2
2
  import CoreTextArea from "@digigov/react-core/TextArea/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 TextArea = extend(CoreTextArea, ({ className, ...props }) => ({
5
5
  ...props,
6
6
  multiline: true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/TextArea/index.native.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport CoreTextArea from '@digigov/react-core/TextArea/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\nexport const TextArea = extend(CoreTextArea, ({ className, ...props }) => ({\n ...props,\n multiline: true,\n className: clsx(className, {\n 'ds-textarea__wrapper': true,\n }),\n}));\nexport default TextArea;\n"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport CoreTextArea from '@digigov/react-core/TextArea/index.web';\nimport extend from '@digigov/react-core/utils/index.native';\nexport const TextArea = extend(CoreTextArea, ({ className, ...props }) => ({\n ...props,\n multiline: true,\n className: clsx(className, {\n 'ds-textarea__wrapper': true,\n }),\n}));\nexport default TextArea;\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,kBAAkB;AACzB,OAAO,YAAY;AACZ,MAAM,WAAW,OAAO,cAAc,CAAC,EAAE,WAAW,GAAG,MAAM,OAAO;AAAA,EACzE,GAAG;AAAA,EACH,WAAW;AAAA,EACX,WAAW,KAAK,WAAW;AAAA,IACzB,wBAAwB;AAAA,EAC1B,CAAC;AACH,EAAE;AACF,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx";
2
2
  import CoreTextInput from "@digigov/react-core/TextInput/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 TextInput = extend(CoreTextInput, ({ className, ...props }) => {
5
5
  return {
6
6
  ...props,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/TextInput/index.native.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport CoreTextInput from '@digigov/react-core/TextInput/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\nexport const TextInput = extend(CoreTextInput, ({ className, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-input__wrapper': true,\n 'ds-input--disabled': props.disabled,\n [`ds-input--width-${props.maxWidth}__wrapper`]:\n props.maxWidth !== undefined,\n }),\n };\n});\nexport default TextInput;\n"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport CoreTextInput from '@digigov/react-core/TextInput/index.web';\nimport extend from '@digigov/react-core/utils/index.native';\nexport const TextInput = extend(CoreTextInput, ({ className, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-input__wrapper': true,\n 'ds-input--disabled': props.disabled,\n [`ds-input--width-${props.maxWidth}__wrapper`]:\n props.maxWidth !== undefined,\n }),\n };\n});\nexport default TextInput;\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,mBAAmB;AAC1B,OAAO,YAAY;AACZ,MAAM,YAAY,OAAO,eAAe,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AAC1E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,KAAK,WAAW;AAAA,MACzB,qBAAqB;AAAA,MACrB,sBAAsB,MAAM;AAAA,MAC5B,CAAC,mBAAmB,MAAM,QAAQ,WAAW,GAC3C,MAAM,aAAa;AAAA,IACvB,CAAC;AAAA,EACH;AACF,CAAC;AACD,IAAO,uBAAQ;",
6
6
  "names": []
7
7
  }
@@ -14,6 +14,13 @@ export interface WarningTextProps extends BaseProps<'div'> {
14
14
  * @default false
15
15
  * */
16
16
  dense?: boolean;
17
+ /**
18
+ * strong is optional.
19
+ * @value true if you want to emphasize importance, conveying meaning to both sighted and screen readers.
20
+ * @value false WarningText will be a simple div element.
21
+ * @default true
22
+ * */
23
+ strong?: boolean;
17
24
  }
18
25
  /**
19
26
  * WarningText.
@@ -3,7 +3,15 @@ import clsx from "clsx";
3
3
  import Base from "@digigov/react-core/Base";
4
4
  import { WarningTextAssistive } from "@digigov/react-core/WarningTextAssistive";
5
5
  const WarningText = React.forwardRef(
6
- function WarningText2({ className, assistiveText = "\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE", dense, children, ...props }, ref) {
6
+ function WarningText2({
7
+ className,
8
+ strong = true,
9
+ assistiveText = "\u03A0\u03C1\u03BF\u03C3\u03BF\u03C7\u03AE",
10
+ dense,
11
+ children,
12
+ ...props
13
+ }, ref) {
14
+ const Component = strong ? "strong" : "div";
7
15
  return /* @__PURE__ */ React.createElement(
8
16
  Base,
9
17
  {
@@ -28,7 +36,7 @@ const WarningText = React.forwardRef(
28
36
  /* @__PURE__ */ React.createElement(
29
37
  Base,
30
38
  {
31
- as: "strong",
39
+ as: Component,
32
40
  className: clsx({
33
41
  "ds-warning-text__content": true
34
42
  })
@@ -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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,4BAA4B;AAqB9B,MAAM,cAAc,MAAM;AAAA,EAC/B,SAASA,aACP,EAAE,WAAW,gBAAgB,8CAAW,OAAO,UAAU,GAAG,MAAM,GAClE,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,0BAA0B;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAW,KAAK;AAAA,YACd,yBAAyB;AAAA,UAC3B,CAAC;AAAA;AAAA,QACF;AAAA,MAED;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAW,KAAK;AAAA,YACd,4BAA4B;AAAA,UAC9B,CAAC;AAAA;AAAA,QAED,oCAAC,4BAAsB,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,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAChC,SAAS,4BAA4B;AA4B9B,MAAM,cAAc,MAAM;AAAA,EAC/B,SAASA,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;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,0BAA0B;AAAA,QAC5B,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAW,KAAK;AAAA,YACd,yBAAyB;AAAA,UAC3B,CAAC;AAAA;AAAA,QACF;AAAA,MAED;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,IAAI;AAAA,UACJ,WAAW,KAAK;AAAA,YACd,4BAA4B;AAAA,UAC9B,CAAC;AAAA;AAAA,QAED,oCAAC,4BAAsB,aAAc;AAAA,QACpC;AAAA,MACH;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
6
6
  "names": ["WarningText"]
7
7
  }
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -27,44 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
29
  var Accordion_exports = {};
29
30
  __export(Accordion_exports, {
30
- Accordion: () => Accordion,
31
- default: () => Accordion_default
31
+ default: () => import_Accordion.default
32
32
  });
33
33
  module.exports = __toCommonJS(Accordion_exports);
34
- var import_react = __toESM(require("react"));
35
- var import_clsx = __toESM(require("clsx"));
36
- var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const Accordion = import_react.default.forwardRef(
38
- function Accordion2({
39
- className,
40
- horizontalBorders = "top",
41
- summaryColor = "primary",
42
- dense,
43
- children,
44
- ...props
45
- }, ref) {
46
- return /* @__PURE__ */ import_react.default.createElement(
47
- import_Base.default,
48
- {
49
- as: "div",
50
- ref,
51
- className: (0, import_clsx.default)(className, {
52
- "ds-accordion": true,
53
- "ds-accordion--no-border": horizontalBorders === "none",
54
- "ds-accordion--border-top": horizontalBorders === "top",
55
- "ds-accordion--border-bottom": horizontalBorders === "bottom",
56
- "ds-accordion--dense": dense,
57
- "ds-accordion--secondary": summaryColor === "secondary"
58
- }),
59
- ...props
60
- },
61
- children
62
- );
63
- }
64
- );
65
- var Accordion_default = Accordion;
34
+ __reExport(Accordion_exports, require("@digigov/react-core/Accordion/index.web"), module.exports);
35
+ var import_Accordion = __toESM(require("@digigov/react-core/Accordion/index.web"));
66
36
  // Annotate the CommonJS export names for ESM import in node:
67
37
  0 && (module.exports = {
68
- Accordion
38
+ ...require("@digigov/react-core/Accordion/index.web")
69
39
  });
70
40
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/Accordion/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AccordionProps extends BaseProps<'div'> {\n /*\n * horizontalBorders is optional.\n * If 'none', Accordion will have no borders.\n * If 'top', Accordion will have a border on top.\n * If 'bottom', Accordion will have a border on bottom.\n * @value none\n * @value top\n * @value bottom\n * @default top\n */\n horizontalBorders?: 'none' | 'top' | 'bottom';\n /**\n * summaryColor is optional.\n * 'primary' color gives AccordionSectionSummary the default color.\n * 'secondary' color gives AccordionSectionSummary a gray background.\n * @value primary\n * @value secondary\n * @default primary\n * */\n summaryColor?: 'primary' | 'secondary';\n /**\n * dense is optional.\n * If true, AccordionSection will have a smaller padding.\n * @value true\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * Accordion is the main component for an accordion.\n * Inside this component must be a list of AccordionSection components.\n */\nexport const Accordion = React.forwardRef<HTMLDivElement, AccordionProps>(\n function Accordion(\n {\n className,\n horizontalBorders = 'top',\n summaryColor = 'primary',\n dense,\n children,\n ...props\n },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-accordion': true,\n 'ds-accordion--no-border': horizontalBorders === 'none',\n 'ds-accordion--border-top': horizontalBorders === 'top',\n 'ds-accordion--border-bottom': horizontalBorders === 'bottom',\n 'ds-accordion--dense': dense,\n 'ds-accordion--secondary': summaryColor === 'secondary',\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Accordion;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAoCzB,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WACP;AAAA,IACE;AAAA,IACA,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf;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,gBAAgB;AAAA,UAChB,2BAA2B,sBAAsB;AAAA,UACjD,4BAA4B,sBAAsB;AAAA,UAClD,+BAA+B,sBAAsB;AAAA,UACrD,uBAAuB;AAAA,UACvB,2BAA2B,iBAAiB;AAAA,QAC9C,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
6
- "names": ["React", "Accordion", "Base", "clsx"]
4
+ "sourcesContent": ["export * from '@digigov/react-core/Accordion/index.web';\nexport { default as default } from '@digigov/react-core/Accordion/index.web';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAc,oDAAd;AACA,uBAAmC;",
6
+ "names": []
7
7
  }
@@ -25,23 +25,29 @@ 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 extend_native_exports = {};
29
- __export(extend_native_exports, {
30
- default: () => extend_native_default,
31
- extend: () => extend
28
+ var index_native_exports = {};
29
+ __export(index_native_exports, {
30
+ Accordion: () => Accordion,
31
+ default: () => index_native_default
32
32
  });
33
- module.exports = __toCommonJS(extend_native_exports);
34
- var import_react = __toESM(require("react"));
35
- function extend(Component, propFactory = (props) => props) {
36
- const ExtendedComponent = import_react.default.forwardRef(function ExtendedComponent2(props, ref) {
37
- const transformedProps = propFactory(props);
38
- return /* @__PURE__ */ import_react.default.createElement(Component, { ref, ...transformedProps });
39
- });
40
- return ExtendedComponent;
41
- }
42
- var extend_native_default = extend;
33
+ module.exports = __toCommonJS(index_native_exports);
34
+ var import_Accordion = __toESM(require("@digigov/react-core/Accordion/index.web"));
35
+ var import_utils = __toESM(require("@digigov/react-core/utils/index.native"));
36
+ const Accordion = (0, import_utils.enablePseudoclass)(
37
+ (0, import_utils.default)(import_Accordion.default, ({ className, ...props }) => ({
38
+ ...props,
39
+ multiline: true,
40
+ className
41
+ })),
42
+ {
43
+ children: {
44
+ "first-child": ["ds-accordion__section__first-child"]
45
+ }
46
+ }
47
+ );
48
+ var index_native_default = Accordion;
43
49
  // Annotate the CommonJS export names for ESM import in node:
44
50
  0 && (module.exports = {
45
- extend
51
+ Accordion
46
52
  });
47
- //# sourceMappingURL=extend.native.js.map
53
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/Accordion/index.native.tsx"],
4
+ "sourcesContent": ["import CoreAccordion from '@digigov/react-core/Accordion/index.web';\nimport extend, {\n enablePseudoclass,\n} from '@digigov/react-core/utils/index.native';\n\nexport const Accordion = enablePseudoclass(\n extend(CoreAccordion, ({ className, ...props }) => ({\n ...props,\n multiline: true,\n className,\n })),\n {\n children: {\n 'first-child': ['ds-accordion__section__first-child'],\n },\n }\n);\n\nexport default Accordion;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA0B;AAC1B,mBAEO;AAEA,MAAM,gBAAY;AAAA,MACvB,aAAAA,SAAO,iBAAAC,SAAe,CAAC,EAAE,WAAW,GAAG,MAAM,OAAO;AAAA,IAClD,GAAG;AAAA,IACH,WAAW;AAAA,IACX;AAAA,EACF,EAAE;AAAA,EACF;AAAA,IACE,UAAU;AAAA,MACR,eAAe,CAAC,oCAAoC;AAAA,IACtD;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
6
+ "names": ["extend", "CoreAccordion"]
7
+ }