@digigov/react-core 0.15.5 → 0.16.2

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 (568) hide show
  1. package/Accordion/index.d.ts +3 -3
  2. package/Accordion/index.js +4 -1
  3. package/AccordionControls/index.d.ts +3 -3
  4. package/AccordionControls/index.js +4 -1
  5. package/AccordionSection/index.d.ts +3 -3
  6. package/AccordionSection/index.js +5 -2
  7. package/AccordionSectionContent/index.d.ts +3 -3
  8. package/AccordionSectionContent/index.js +4 -1
  9. package/AccordionSectionHeader/index.d.ts +3 -3
  10. package/AccordionSectionHeader/index.js +4 -1
  11. package/AccordionSectionSummary/index.d.ts +3 -3
  12. package/AccordionSectionSummary/index.js +4 -1
  13. package/AccordionSectionSummaryHeading/index.d.ts +3 -3
  14. package/AccordionSectionSummaryHeading/index.js +4 -1
  15. package/Aside/index.d.ts +3 -3
  16. package/Aside/index.js +4 -1
  17. package/BackLink/index.d.ts +3 -3
  18. package/BackLink/index.js +4 -1
  19. package/Base/index.d.ts +43 -0
  20. package/Base/index.js +65 -0
  21. package/Blockquote/index.d.ts +3 -3
  22. package/Blockquote/index.js +4 -1
  23. package/Bottom/index.d.ts +3 -3
  24. package/Bottom/index.js +4 -1
  25. package/Breadcrumbs/index.d.ts +3 -3
  26. package/Breadcrumbs/index.js +4 -1
  27. package/BreadcrumbsList/index.d.ts +3 -3
  28. package/BreadcrumbsList/index.js +4 -1
  29. package/BreadcrumbsListItem/index.d.ts +3 -3
  30. package/BreadcrumbsListItem/index.js +4 -1
  31. package/Button/index.d.ts +3 -3
  32. package/Button/index.js +4 -1
  33. package/ButtonGroup/index.d.ts +3 -3
  34. package/ButtonGroup/index.js +4 -1
  35. package/ButtonLink/index.d.ts +3 -3
  36. package/ButtonLink/index.js +4 -1
  37. package/CHANGELOG.md +27 -1
  38. package/CallToAction/index.d.ts +1 -1
  39. package/Card/index.d.ts +3 -3
  40. package/Card/index.js +5 -3
  41. package/CardAction/index.d.ts +3 -3
  42. package/CardAction/index.js +4 -1
  43. package/CardHeading/index.d.ts +3 -3
  44. package/CardHeading/index.js +4 -1
  45. package/CardText/index.d.ts +3 -3
  46. package/CardText/index.js +4 -1
  47. package/Checkbox/index.d.ts +3 -3
  48. package/Checkbox/index.js +4 -1
  49. package/CheckboxConditional/index.d.ts +3 -7
  50. package/CheckboxConditional/index.js +6 -4
  51. package/CheckboxConditional/index.test.js +0 -8
  52. package/CheckboxItem/index.d.ts +3 -3
  53. package/CheckboxItem/index.js +4 -1
  54. package/Confirmation/index.d.ts +3 -3
  55. package/Confirmation/index.js +4 -1
  56. package/ConfirmationBody/index.d.ts +3 -3
  57. package/ConfirmationBody/index.js +4 -1
  58. package/ConfirmationTitle/index.d.ts +3 -3
  59. package/ConfirmationTitle/index.js +4 -1
  60. package/Container/index.d.ts +3 -3
  61. package/Container/index.js +6 -2
  62. package/Copyright/index.d.ts +3 -3
  63. package/Copyright/index.js +4 -1
  64. package/DateInput/index.d.ts +3 -3
  65. package/DateInput/index.js +4 -1
  66. package/DateInputItem/index.d.ts +3 -3
  67. package/DateInputItem/index.js +4 -1
  68. package/Details/index.d.ts +3 -3
  69. package/Details/index.js +4 -1
  70. package/DetailsContent/index.d.ts +3 -3
  71. package/DetailsContent/index.js +4 -1
  72. package/DetailsSummary/index.d.ts +3 -3
  73. package/DetailsSummary/index.js +4 -1
  74. package/ErrorMessage/index.d.ts +3 -3
  75. package/ErrorMessage/index.js +4 -1
  76. package/ErrorSummary/index.d.ts +3 -3
  77. package/ErrorSummary/index.js +4 -1
  78. package/Field/index.d.ts +1 -1
  79. package/Fieldset/index.d.ts +3 -3
  80. package/Fieldset/index.js +4 -1
  81. package/FieldsetLegend/index.d.ts +3 -3
  82. package/FieldsetLegend/index.js +6 -3
  83. package/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
  84. package/FileUpload/index.d.ts +11 -3
  85. package/FileUpload/index.js +16 -6
  86. package/Footer/index.d.ts +3 -3
  87. package/Footer/index.js +4 -1
  88. package/FooterContainer/index.d.ts +3 -3
  89. package/FooterContainer/index.js +4 -1
  90. package/FooterContent/index.d.ts +3 -3
  91. package/FooterContent/index.js +4 -1
  92. package/FooterContentLogos/index.d.ts +3 -3
  93. package/FooterContentLogos/index.js +4 -1
  94. package/FooterHeading/index.d.ts +3 -3
  95. package/FooterHeading/index.js +4 -1
  96. package/FooterImage/index.d.ts +3 -3
  97. package/FooterImage/index.js +4 -1
  98. package/FooterInlineList/index.d.ts +3 -3
  99. package/FooterInlineList/index.js +4 -1
  100. package/FooterInlineListItem/index.d.ts +3 -3
  101. package/FooterInlineListItem/index.js +4 -1
  102. package/FooterLink/index.d.ts +3 -3
  103. package/FooterLink/index.js +4 -1
  104. package/FooterList/index.d.ts +3 -3
  105. package/FooterList/index.js +4 -1
  106. package/FooterListItem/index.d.ts +3 -3
  107. package/FooterListItem/index.js +4 -1
  108. package/FooterMeta/index.d.ts +3 -3
  109. package/FooterMeta/index.js +4 -1
  110. package/FooterMetaItem/index.d.ts +3 -3
  111. package/FooterMetaItem/index.js +4 -1
  112. package/FooterNavigation/index.d.ts +3 -3
  113. package/FooterNavigation/index.js +4 -1
  114. package/FooterSection/index.d.ts +3 -3
  115. package/FooterSection/index.js +4 -1
  116. package/Form/index.d.ts +3 -3
  117. package/Form/index.js +4 -1
  118. package/GovGRFooter/index.d.ts +3 -3
  119. package/GovGRFooter/index.js +4 -1
  120. package/GovGRLogo/govgr-logo-base64.d.ts +2 -0
  121. package/GovGRLogo/govgr-logo-base64.js +8 -0
  122. package/GovGRLogo/index.d.ts +3 -3
  123. package/GovGRLogo/index.js +7 -2
  124. package/Grid/index.d.ts +3 -3
  125. package/Grid/index.js +4 -1
  126. package/Header/index.d.ts +3 -3
  127. package/Header/index.js +4 -1
  128. package/HeaderContent/index.d.ts +3 -3
  129. package/HeaderContent/index.js +4 -1
  130. package/HeaderLogo/index.d.ts +3 -3
  131. package/HeaderLogo/index.js +4 -1
  132. package/HeaderSecondaryLogo/index.d.ts +3 -3
  133. package/HeaderSecondaryLogo/index.js +4 -1
  134. package/HeaderSection/index.d.ts +3 -3
  135. package/HeaderSection/index.js +4 -1
  136. package/HeaderSubtitle/index.d.ts +3 -3
  137. package/HeaderSubtitle/index.js +4 -1
  138. package/HeaderTitle/index.d.ts +3 -3
  139. package/HeaderTitle/index.js +4 -1
  140. package/Heading/index.d.ts +3 -3
  141. package/Heading/index.js +4 -1
  142. package/HeadingCaption/index.d.ts +3 -3
  143. package/HeadingCaption/index.js +4 -1
  144. package/HellenicRepublicLogo/index.d.ts +3 -3
  145. package/HellenicRepublicLogo/index.js +4 -1
  146. package/Hidden/index.d.ts +3 -3
  147. package/Hidden/index.js +4 -1
  148. package/Hint/index.d.ts +3 -3
  149. package/Hint/index.js +4 -1
  150. package/Label/index.d.ts +3 -3
  151. package/Label/index.js +4 -1
  152. package/LabelTitle/index.d.ts +7 -7
  153. package/LabelTitle/index.js +6 -3
  154. package/Layout/index.d.ts +3 -3
  155. package/Layout/index.js +4 -1
  156. package/Link/index.d.ts +3 -3
  157. package/Link/index.js +4 -1
  158. package/List/index.d.ts +3 -3
  159. package/List/index.js +4 -1
  160. package/ListItem/index.d.ts +3 -3
  161. package/ListItem/index.js +4 -1
  162. package/Main/index.d.ts +3 -3
  163. package/Main/index.js +4 -1
  164. package/Masthead/index.d.ts +3 -3
  165. package/Masthead/index.js +4 -1
  166. package/MastheadBody/index.d.ts +3 -3
  167. package/MastheadBody/index.js +4 -1
  168. package/NavHorizontal/index.d.ts +3 -3
  169. package/NavHorizontal/index.js +4 -1
  170. package/NavHorizontalList/index.d.ts +3 -3
  171. package/NavHorizontalList/index.js +4 -1
  172. package/NavHorizontalListItem/index.d.ts +3 -3
  173. package/NavHorizontalListItem/index.js +4 -1
  174. package/NavVertical/index.d.ts +3 -3
  175. package/NavVertical/index.js +4 -1
  176. package/NavVerticalItem/index.d.ts +3 -3
  177. package/NavVerticalItem/index.js +4 -1
  178. package/NormalText/index.d.ts +3 -3
  179. package/NormalText/index.js +4 -1
  180. package/NotificationBanner/index.d.ts +3 -3
  181. package/NotificationBanner/index.js +4 -1
  182. package/NotificationBannerContent/index.d.ts +3 -3
  183. package/NotificationBannerContent/index.js +4 -1
  184. package/NotificationBannerHeader/index.d.ts +3 -3
  185. package/NotificationBannerHeader/index.js +4 -1
  186. package/NotificationBannerHeading/index.d.ts +3 -3
  187. package/NotificationBannerHeading/index.js +4 -1
  188. package/NotificationBannerLink/index.d.ts +3 -3
  189. package/NotificationBannerLink/index.js +4 -1
  190. package/PageTitle/index.d.ts +3 -3
  191. package/PageTitle/index.js +4 -1
  192. package/PageTitleCaption/index.d.ts +3 -3
  193. package/PageTitleCaption/index.js +4 -1
  194. package/PageTitleHeading/index.d.ts +3 -3
  195. package/PageTitleHeading/index.js +4 -1
  196. package/PageTitleSection/index.d.ts +3 -3
  197. package/PageTitleSection/index.js +4 -1
  198. package/Paragraph/index.d.ts +3 -3
  199. package/Paragraph/index.js +4 -1
  200. package/PhaseBanner/index.d.ts +3 -3
  201. package/PhaseBanner/index.js +4 -1
  202. package/PhaseBannerHeaderContainer/index.d.ts +3 -3
  203. package/PhaseBannerHeaderContainer/index.js +4 -1
  204. package/PhaseBannerTag/index.d.ts +3 -3
  205. package/PhaseBannerTag/index.js +4 -1
  206. package/PhaseBannerText/index.d.ts +3 -3
  207. package/PhaseBannerText/index.js +4 -1
  208. package/Radio/index.d.ts +3 -3
  209. package/Radio/index.js +4 -1
  210. package/RadioConditional/index.d.ts +3 -7
  211. package/RadioConditional/index.js +6 -4
  212. package/RadioConditional/index.test.js +0 -8
  213. package/RadioItem/index.d.ts +3 -3
  214. package/RadioItem/index.js +4 -1
  215. package/SectionBreak/index.d.ts +3 -3
  216. package/SectionBreak/index.js +4 -1
  217. package/Select/index.d.ts +3 -3
  218. package/Select/index.js +4 -1
  219. package/SelectOption/index.d.ts +3 -3
  220. package/SelectOption/index.js +4 -1
  221. package/ServiceBadge/index.d.ts +3 -3
  222. package/ServiceBadge/index.js +4 -1
  223. package/SkipLink/index.d.ts +3 -3
  224. package/SkipLink/index.js +4 -1
  225. package/SummaryList/index.d.ts +3 -3
  226. package/SummaryList/index.js +4 -1
  227. package/SummaryListItem/index.d.ts +3 -3
  228. package/SummaryListItem/index.js +4 -1
  229. package/SummaryListItemAction/index.d.ts +3 -3
  230. package/SummaryListItemAction/index.js +4 -1
  231. package/SummaryListItemKey/index.d.ts +3 -3
  232. package/SummaryListItemKey/index.js +4 -1
  233. package/SummaryListItemValue/index.d.ts +3 -3
  234. package/SummaryListItemValue/index.js +4 -1
  235. package/SvgIcon/index.d.ts +3 -3
  236. package/SvgIcon/index.js +4 -1
  237. package/Table/index.d.ts +3 -3
  238. package/Table/index.js +4 -1
  239. package/TableBody/index.d.ts +3 -3
  240. package/TableBody/index.js +4 -1
  241. package/TableCaption/index.d.ts +3 -3
  242. package/TableCaption/index.js +4 -1
  243. package/TableContainer/index.d.ts +3 -3
  244. package/TableContainer/index.js +4 -1
  245. package/TableDataCell/index.d.ts +3 -3
  246. package/TableDataCell/index.js +4 -1
  247. package/TableHead/index.d.ts +3 -3
  248. package/TableHead/index.js +4 -1
  249. package/TableHeadCell/index.d.ts +3 -3
  250. package/TableHeadCell/index.js +4 -1
  251. package/TableNoDataRow/index.d.ts +3 -3
  252. package/TableNoDataRow/index.js +4 -1
  253. package/TableRow/index.d.ts +3 -3
  254. package/TableRow/index.js +4 -1
  255. package/Tabs/index.d.ts +3 -3
  256. package/Tabs/index.js +4 -1
  257. package/TabsHeading/index.d.ts +3 -3
  258. package/TabsHeading/index.js +4 -1
  259. package/TabsList/index.d.ts +3 -3
  260. package/TabsList/index.js +4 -1
  261. package/TabsListItem/index.d.ts +3 -3
  262. package/TabsListItem/index.js +4 -1
  263. package/TabsPanel/index.d.ts +3 -3
  264. package/TabsPanel/index.js +4 -1
  265. package/TextArea/index.d.ts +3 -3
  266. package/TextArea/index.js +4 -1
  267. package/TextInput/index.d.ts +3 -3
  268. package/TextInput/index.js +4 -1
  269. package/Top/index.d.ts +3 -3
  270. package/Top/index.js +4 -1
  271. package/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  272. package/UncheckIcon/index.d.ts +4 -4
  273. package/UncheckIcon/index.js +5 -5
  274. package/Unpurge/index.d.ts +2 -0
  275. package/Unpurge/index.js +19 -0
  276. package/VisuallyHidden/index.d.ts +3 -3
  277. package/VisuallyHidden/index.js +4 -1
  278. package/WarningText/index.d.ts +3 -3
  279. package/WarningText/index.js +4 -1
  280. package/es/Accordion/index.js +3 -1
  281. package/es/AccordionControls/index.js +3 -1
  282. package/es/AccordionSection/index.js +4 -2
  283. package/es/AccordionSectionContent/index.js +3 -1
  284. package/es/AccordionSectionHeader/index.js +3 -1
  285. package/es/AccordionSectionSummary/index.js +3 -1
  286. package/es/AccordionSectionSummaryHeading/index.js +3 -1
  287. package/es/Aside/index.js +3 -1
  288. package/es/BackLink/index.js +3 -1
  289. package/es/Base/index.js +50 -0
  290. package/es/Blockquote/index.js +3 -1
  291. package/es/Bottom/index.js +3 -1
  292. package/es/Breadcrumbs/index.js +3 -1
  293. package/es/BreadcrumbsList/index.js +3 -1
  294. package/es/BreadcrumbsListItem/index.js +3 -1
  295. package/es/Button/index.js +3 -1
  296. package/es/ButtonGroup/index.js +3 -1
  297. package/es/ButtonLink/index.js +3 -1
  298. package/es/Card/index.js +4 -3
  299. package/es/CardAction/index.js +3 -1
  300. package/es/CardHeading/index.js +3 -1
  301. package/es/CardText/index.js +3 -1
  302. package/es/Checkbox/index.js +3 -1
  303. package/es/CheckboxConditional/index.js +5 -4
  304. package/es/CheckboxConditional/index.test.js +0 -8
  305. package/es/CheckboxItem/index.js +3 -1
  306. package/es/Confirmation/index.js +3 -1
  307. package/es/ConfirmationBody/index.js +3 -1
  308. package/es/ConfirmationTitle/index.js +3 -1
  309. package/es/Container/index.js +5 -2
  310. package/es/Copyright/index.js +3 -1
  311. package/es/DateInput/index.js +3 -1
  312. package/es/DateInputItem/index.js +3 -1
  313. package/es/Details/index.js +3 -1
  314. package/es/DetailsContent/index.js +3 -1
  315. package/es/DetailsSummary/index.js +3 -1
  316. package/es/ErrorMessage/index.js +3 -1
  317. package/es/ErrorSummary/index.js +3 -1
  318. package/es/Fieldset/index.js +3 -1
  319. package/es/FieldsetLegend/index.js +5 -3
  320. package/es/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
  321. package/es/FileUpload/index.js +15 -6
  322. package/es/Footer/index.js +3 -1
  323. package/es/FooterContainer/index.js +3 -1
  324. package/es/FooterContent/index.js +3 -1
  325. package/es/FooterContentLogos/index.js +3 -1
  326. package/es/FooterHeading/index.js +3 -1
  327. package/es/FooterImage/index.js +3 -1
  328. package/es/FooterInlineList/index.js +3 -1
  329. package/es/FooterInlineListItem/index.js +3 -1
  330. package/es/FooterLink/index.js +3 -1
  331. package/es/FooterList/index.js +3 -1
  332. package/es/FooterListItem/index.js +3 -1
  333. package/es/FooterMeta/index.js +3 -1
  334. package/es/FooterMetaItem/index.js +3 -1
  335. package/es/FooterNavigation/index.js +3 -1
  336. package/es/FooterSection/index.js +3 -1
  337. package/es/Form/index.js +3 -1
  338. package/es/GovGRFooter/index.js +3 -1
  339. package/es/GovGRLogo/govgr-logo-base64.js +1 -0
  340. package/es/GovGRLogo/index.js +5 -2
  341. package/es/Grid/index.js +3 -1
  342. package/es/Header/index.js +3 -1
  343. package/es/HeaderContent/index.js +3 -1
  344. package/es/HeaderLogo/index.js +3 -1
  345. package/es/HeaderSecondaryLogo/index.js +3 -1
  346. package/es/HeaderSection/index.js +3 -1
  347. package/es/HeaderSubtitle/index.js +3 -1
  348. package/es/HeaderTitle/index.js +3 -1
  349. package/es/Heading/index.js +3 -1
  350. package/es/HeadingCaption/index.js +3 -1
  351. package/es/HellenicRepublicLogo/index.js +3 -1
  352. package/es/Hidden/index.js +3 -1
  353. package/es/Hint/index.js +3 -1
  354. package/es/Label/index.js +3 -1
  355. package/es/LabelTitle/index.js +5 -3
  356. package/es/Layout/index.js +3 -1
  357. package/es/Link/index.js +3 -1
  358. package/es/List/index.js +3 -1
  359. package/es/ListItem/index.js +3 -1
  360. package/es/Main/index.js +3 -1
  361. package/es/Masthead/index.js +3 -1
  362. package/es/MastheadBody/index.js +3 -1
  363. package/es/NavHorizontal/index.js +3 -1
  364. package/es/NavHorizontalList/index.js +3 -1
  365. package/es/NavHorizontalListItem/index.js +3 -1
  366. package/es/NavVertical/index.js +3 -1
  367. package/es/NavVerticalItem/index.js +3 -1
  368. package/es/NormalText/index.js +3 -1
  369. package/es/NotificationBanner/index.js +3 -1
  370. package/es/NotificationBannerContent/index.js +3 -1
  371. package/es/NotificationBannerHeader/index.js +3 -1
  372. package/es/NotificationBannerHeading/index.js +3 -1
  373. package/es/NotificationBannerLink/index.js +3 -1
  374. package/es/PageTitle/index.js +3 -1
  375. package/es/PageTitleCaption/index.js +3 -1
  376. package/es/PageTitleHeading/index.js +3 -1
  377. package/es/PageTitleSection/index.js +3 -1
  378. package/es/Paragraph/index.js +3 -1
  379. package/es/PhaseBanner/index.js +3 -1
  380. package/es/PhaseBannerHeaderContainer/index.js +3 -1
  381. package/es/PhaseBannerTag/index.js +3 -1
  382. package/es/PhaseBannerText/index.js +3 -1
  383. package/es/Radio/index.js +3 -1
  384. package/es/RadioConditional/index.js +5 -4
  385. package/es/RadioConditional/index.test.js +0 -8
  386. package/es/RadioItem/index.js +3 -1
  387. package/es/SectionBreak/index.js +3 -1
  388. package/es/Select/index.js +3 -1
  389. package/es/SelectOption/index.js +3 -1
  390. package/es/ServiceBadge/index.js +3 -1
  391. package/es/SkipLink/index.js +3 -1
  392. package/es/SummaryList/index.js +3 -1
  393. package/es/SummaryListItem/index.js +3 -1
  394. package/es/SummaryListItemAction/index.js +3 -1
  395. package/es/SummaryListItemKey/index.js +3 -1
  396. package/es/SummaryListItemValue/index.js +3 -1
  397. package/es/SvgIcon/index.js +3 -1
  398. package/es/Table/index.js +3 -1
  399. package/es/TableBody/index.js +3 -1
  400. package/es/TableCaption/index.js +3 -1
  401. package/es/TableContainer/index.js +3 -1
  402. package/es/TableDataCell/index.js +3 -1
  403. package/es/TableHead/index.js +3 -1
  404. package/es/TableHeadCell/index.js +3 -1
  405. package/es/TableNoDataRow/index.js +3 -1
  406. package/es/TableRow/index.js +3 -1
  407. package/es/Tabs/index.js +3 -1
  408. package/es/TabsHeading/index.js +3 -1
  409. package/es/TabsList/index.js +3 -1
  410. package/es/TabsListItem/index.js +3 -1
  411. package/es/TabsPanel/index.js +3 -1
  412. package/es/TextArea/index.js +3 -1
  413. package/es/TextInput/index.js +3 -1
  414. package/es/Top/index.js +3 -1
  415. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  416. package/es/UncheckIcon/index.js +3 -3
  417. package/es/Unpurge/index.js +9 -0
  418. package/es/VisuallyHidden/index.js +3 -1
  419. package/es/WarningText/index.js +3 -1
  420. package/es/index.js +1 -0
  421. package/es/registry.js +10 -4
  422. package/esm/Accordion/index.js +3 -1
  423. package/esm/AccordionControls/index.js +3 -1
  424. package/esm/AccordionSection/index.js +4 -2
  425. package/esm/AccordionSectionContent/index.js +3 -1
  426. package/esm/AccordionSectionHeader/index.js +3 -1
  427. package/esm/AccordionSectionSummary/index.js +3 -1
  428. package/esm/AccordionSectionSummaryHeading/index.js +3 -1
  429. package/esm/Aside/index.js +3 -1
  430. package/esm/BackLink/index.js +3 -1
  431. package/esm/Base/index.js +50 -0
  432. package/esm/Blockquote/index.js +3 -1
  433. package/esm/Bottom/index.js +3 -1
  434. package/esm/Breadcrumbs/index.js +3 -1
  435. package/esm/BreadcrumbsList/index.js +3 -1
  436. package/esm/BreadcrumbsListItem/index.js +3 -1
  437. package/esm/Button/index.js +3 -1
  438. package/esm/ButtonGroup/index.js +3 -1
  439. package/esm/ButtonLink/index.js +3 -1
  440. package/esm/Card/index.js +4 -3
  441. package/esm/CardAction/index.js +3 -1
  442. package/esm/CardHeading/index.js +3 -1
  443. package/esm/CardText/index.js +3 -1
  444. package/esm/Checkbox/index.js +3 -1
  445. package/esm/CheckboxConditional/index.js +5 -4
  446. package/esm/CheckboxConditional/index.test.js +0 -8
  447. package/esm/CheckboxItem/index.js +3 -1
  448. package/esm/Confirmation/index.js +3 -1
  449. package/esm/ConfirmationBody/index.js +3 -1
  450. package/esm/ConfirmationTitle/index.js +3 -1
  451. package/esm/Container/index.js +5 -2
  452. package/esm/Copyright/index.js +3 -1
  453. package/esm/DateInput/index.js +3 -1
  454. package/esm/DateInputItem/index.js +3 -1
  455. package/esm/Details/index.js +3 -1
  456. package/esm/DetailsContent/index.js +3 -1
  457. package/esm/DetailsSummary/index.js +3 -1
  458. package/esm/ErrorMessage/index.js +3 -1
  459. package/esm/ErrorSummary/index.js +3 -1
  460. package/esm/Fieldset/index.js +3 -1
  461. package/esm/FieldsetLegend/index.js +5 -3
  462. package/esm/FileUpload/__snapshots__/index.test.tsx.snap +2 -2
  463. package/esm/FileUpload/index.js +15 -6
  464. package/esm/Footer/index.js +3 -1
  465. package/esm/FooterContainer/index.js +3 -1
  466. package/esm/FooterContent/index.js +3 -1
  467. package/esm/FooterContentLogos/index.js +3 -1
  468. package/esm/FooterHeading/index.js +3 -1
  469. package/esm/FooterImage/index.js +3 -1
  470. package/esm/FooterInlineList/index.js +3 -1
  471. package/esm/FooterInlineListItem/index.js +3 -1
  472. package/esm/FooterLink/index.js +3 -1
  473. package/esm/FooterList/index.js +3 -1
  474. package/esm/FooterListItem/index.js +3 -1
  475. package/esm/FooterMeta/index.js +3 -1
  476. package/esm/FooterMetaItem/index.js +3 -1
  477. package/esm/FooterNavigation/index.js +3 -1
  478. package/esm/FooterSection/index.js +3 -1
  479. package/esm/Form/index.js +3 -1
  480. package/esm/GovGRFooter/index.js +3 -1
  481. package/esm/GovGRLogo/govgr-logo-base64.js +1 -0
  482. package/esm/GovGRLogo/index.js +5 -2
  483. package/esm/Grid/index.js +3 -1
  484. package/esm/Header/index.js +3 -1
  485. package/esm/HeaderContent/index.js +3 -1
  486. package/esm/HeaderLogo/index.js +3 -1
  487. package/esm/HeaderSecondaryLogo/index.js +3 -1
  488. package/esm/HeaderSection/index.js +3 -1
  489. package/esm/HeaderSubtitle/index.js +3 -1
  490. package/esm/HeaderTitle/index.js +3 -1
  491. package/esm/Heading/index.js +3 -1
  492. package/esm/HeadingCaption/index.js +3 -1
  493. package/esm/HellenicRepublicLogo/index.js +3 -1
  494. package/esm/Hidden/index.js +3 -1
  495. package/esm/Hint/index.js +3 -1
  496. package/esm/Label/index.js +3 -1
  497. package/esm/LabelTitle/index.js +5 -3
  498. package/esm/Layout/index.js +3 -1
  499. package/esm/Link/index.js +3 -1
  500. package/esm/List/index.js +3 -1
  501. package/esm/ListItem/index.js +3 -1
  502. package/esm/Main/index.js +3 -1
  503. package/esm/Masthead/index.js +3 -1
  504. package/esm/MastheadBody/index.js +3 -1
  505. package/esm/NavHorizontal/index.js +3 -1
  506. package/esm/NavHorizontalList/index.js +3 -1
  507. package/esm/NavHorizontalListItem/index.js +3 -1
  508. package/esm/NavVertical/index.js +3 -1
  509. package/esm/NavVerticalItem/index.js +3 -1
  510. package/esm/NormalText/index.js +3 -1
  511. package/esm/NotificationBanner/index.js +3 -1
  512. package/esm/NotificationBannerContent/index.js +3 -1
  513. package/esm/NotificationBannerHeader/index.js +3 -1
  514. package/esm/NotificationBannerHeading/index.js +3 -1
  515. package/esm/NotificationBannerLink/index.js +3 -1
  516. package/esm/PageTitle/index.js +3 -1
  517. package/esm/PageTitleCaption/index.js +3 -1
  518. package/esm/PageTitleHeading/index.js +3 -1
  519. package/esm/PageTitleSection/index.js +3 -1
  520. package/esm/Paragraph/index.js +3 -1
  521. package/esm/PhaseBanner/index.js +3 -1
  522. package/esm/PhaseBannerHeaderContainer/index.js +3 -1
  523. package/esm/PhaseBannerTag/index.js +3 -1
  524. package/esm/PhaseBannerText/index.js +3 -1
  525. package/esm/Radio/index.js +3 -1
  526. package/esm/RadioConditional/index.js +5 -4
  527. package/esm/RadioConditional/index.test.js +0 -8
  528. package/esm/RadioItem/index.js +3 -1
  529. package/esm/SectionBreak/index.js +3 -1
  530. package/esm/Select/index.js +3 -1
  531. package/esm/SelectOption/index.js +3 -1
  532. package/esm/ServiceBadge/index.js +3 -1
  533. package/esm/SkipLink/index.js +3 -1
  534. package/esm/SummaryList/index.js +3 -1
  535. package/esm/SummaryListItem/index.js +3 -1
  536. package/esm/SummaryListItemAction/index.js +3 -1
  537. package/esm/SummaryListItemKey/index.js +3 -1
  538. package/esm/SummaryListItemValue/index.js +3 -1
  539. package/esm/SvgIcon/index.js +3 -1
  540. package/esm/Table/index.js +3 -1
  541. package/esm/TableBody/index.js +3 -1
  542. package/esm/TableCaption/index.js +3 -1
  543. package/esm/TableContainer/index.js +3 -1
  544. package/esm/TableDataCell/index.js +3 -1
  545. package/esm/TableHead/index.js +3 -1
  546. package/esm/TableHeadCell/index.js +3 -1
  547. package/esm/TableNoDataRow/index.js +3 -1
  548. package/esm/TableRow/index.js +3 -1
  549. package/esm/Tabs/index.js +3 -1
  550. package/esm/TabsHeading/index.js +3 -1
  551. package/esm/TabsList/index.js +3 -1
  552. package/esm/TabsListItem/index.js +3 -1
  553. package/esm/TabsPanel/index.js +3 -1
  554. package/esm/TextArea/index.js +3 -1
  555. package/esm/TextInput/index.js +3 -1
  556. package/esm/Top/index.js +3 -1
  557. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  558. package/esm/UncheckIcon/index.js +3 -3
  559. package/esm/Unpurge/index.js +9 -0
  560. package/esm/VisuallyHidden/index.js +3 -1
  561. package/esm/WarningText/index.js +3 -1
  562. package/esm/index.js +2 -1
  563. package/esm/registry.js +10 -4
  564. package/index.d.ts +1 -0
  565. package/index.js +8 -0
  566. package/package.json +2 -2
  567. package/registry.d.ts +4 -2
  568. package/registry.js +14 -6
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type ImgElementAttributes = JSX.IntrinsicElements['img'];
3
- export interface HellenicRepublicLogoProps extends ImgElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface HellenicRepublicLogoProps extends BaseProps<'img'> {
4
4
  /**
5
5
  * src is optional.
6
6
  * By default, the src is the official logo of the Hellenic Republic uploaded to the government.gov.gr site.
@@ -16,5 +16,5 @@ export interface HellenicRepublicLogoProps extends ImgElementAttributes {
16
16
  * HellenicRepublicLogo is used mainly at the Footer.
17
17
  * This component can't have children.
18
18
  */
19
- export declare const HellenicRepublicLogo: React.ForwardRefExoticComponent<Pick<HellenicRepublicLogoProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "crossOrigin" | "referrerPolicy" | "alt" | "src" | "decoding" | "loading" | "sizes" | "srcSet" | "useMap"> & React.RefAttributes<HTMLImageElement>>;
19
+ export declare const HellenicRepublicLogo: React.ForwardRefExoticComponent<Pick<HellenicRepublicLogoProps, "slot" | "style" | "title" | "as" | "className" | "color" | "height" | "id" | "lang" | "width" | "role" | "tabIndex" | "crossOrigin" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "useMap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "referrerPolicy" | "alt" | "src" | "loading" | "decoding" | "sizes" | "srcSet" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden"> & React.RefAttributes<HTMLImageElement>>;
20
20
  export default HellenicRepublicLogo;
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _logoEl = _interopRequireDefault(require("@digigov/react-core/HellenicRepublicLogo/logo-el"));
@@ -31,7 +33,8 @@ var HellenicRepublicLogo = /*#__PURE__*/_react["default"].forwardRef(function He
31
33
  children = _ref.children,
32
34
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
33
35
  var logo = lang === 'en' ? _logoEn["default"] : _logoEl["default"];
34
- return /*#__PURE__*/_react["default"].createElement("img", (0, _extends2["default"])({
36
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
37
+ as: "img",
35
38
  src: logo,
36
39
  ref: ref,
37
40
  className: (0, _clsx["default"])(className, true && 'govgr-footer__government-logo')
package/Hidden/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface HiddenProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface HiddenProps extends BaseProps<'div'> {
4
4
  ref?: React.Ref<HTMLDivElement>;
5
5
  lgUp?: boolean;
6
6
  mdUp?: boolean;
@@ -13,5 +13,5 @@ export interface HiddenProps extends DivElementAttributes {
13
13
  * Each property refers to a specific screen sizes and applies the "invisible"
14
14
  * property at the selected screen size and above.
15
15
  */
16
- export declare const Hidden: React.ForwardRefExoticComponent<Pick<HiddenProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "lgUp" | "mdUp" | "smUp" | "xlUp" | "xsUp"> & React.RefAttributes<HTMLDivElement>>;
16
+ export declare const Hidden: React.ForwardRefExoticComponent<Pick<HiddenProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "lgUp" | "mdUp" | "smUp" | "xlUp" | "xsUp"> & React.RefAttributes<HTMLDivElement>>;
17
17
  export default Hidden;
package/Hidden/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["className", "children", "lgUp", "mdUp", "smUp", "xlUp", "xsUp"];
@@ -36,7 +38,8 @@ var Hidden = /*#__PURE__*/_react["default"].forwardRef(function Hidden(_ref, ref
36
38
  _ref$xsUp = _ref.xsUp,
37
39
  xsUp = _ref$xsUp === void 0 ? false : _ref$xsUp,
38
40
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
39
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
41
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
42
+ as: "div",
40
43
  ref: ref,
41
44
  className: (0, _clsx["default"])(className, lgUp && 'govgr-lg-up', mdUp && 'govgr-md-up', smUp && 'govgr-sm-up', xlUp && 'govgr-xl-up', xsUp && 'govgr-xs-up')
42
45
  }, props), children);
package/Hint/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type PElementAttributes = JSX.IntrinsicElements['p'];
3
- export interface HintProps extends PElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface HintProps extends BaseProps<'p'> {
4
4
  /**
5
5
  * fontSize is optional.
6
6
  * You can add this fontSize override prop in order to change the font size.
@@ -10,5 +10,5 @@ export interface HintProps extends PElementAttributes {
10
10
  /**
11
11
  * Hint component can be used in form pages and it gives an extra hint description to the form.
12
12
  */
13
- export declare const Hint: React.ForwardRefExoticComponent<Pick<HintProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "fontSize"> & React.RefAttributes<HTMLParagraphElement>>;
13
+ export declare const Hint: React.ForwardRefExoticComponent<Pick<HintProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "fontSize" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden"> & React.RefAttributes<HTMLParagraphElement>>;
14
14
  export default Hint;
package/Hint/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["fontSize", "className", "children"];
@@ -25,7 +27,8 @@ var Hint = /*#__PURE__*/_react["default"].forwardRef(function Hint(_ref, ref) {
25
27
  className = _ref.className,
26
28
  children = _ref.children,
27
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
- return /*#__PURE__*/_react["default"].createElement("p", (0, _extends2["default"])({
30
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
31
+ as: "p",
29
32
  ref: ref,
30
33
  className: (0, _clsx["default"])(className, fontSize === '14' && 'govgr-!-font-size-14', fontSize === '16' && 'govgr-!-font-size-16', fontSize === '24' && 'govgr-!-font-size-24', true && 'govgr-hint')
31
34
  }, props), children);
package/Label/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- declare type LabelElementAttributes = JSX.IntrinsicElements['label'];
3
- export interface LabelProps extends LabelElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface LabelProps extends BaseProps<'label'> {
4
4
  }
5
5
  /**
6
6
  * Label component defines a label for several elements at forms.
7
7
  */
8
- export declare const Label: React.ForwardRefExoticComponent<Pick<LabelProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "htmlFor"> & React.RefAttributes<HTMLLabelElement>>;
8
+ export declare const Label: React.ForwardRefExoticComponent<Pick<LabelProps, "form" | "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "htmlFor" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden"> & React.RefAttributes<HTMLLabelElement>>;
9
9
  export default Label;
package/Label/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["className", "children"];
@@ -24,7 +26,8 @@ var Label = /*#__PURE__*/_react["default"].forwardRef(function Label(_ref, ref)
24
26
  var className = _ref.className,
25
27
  children = _ref.children,
26
28
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
27
- return /*#__PURE__*/_react["default"].createElement("label", (0, _extends2["default"])({
29
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
30
+ as: "label",
28
31
  ref: ref,
29
32
  className: (0, _clsx["default"])(className, true && 'govgr-label')
30
33
  }, props), children);
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
- declare type SpanElementAttributes = JSX.IntrinsicElements['span'];
3
- export interface LabelFieldProps extends SpanElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface LabelFieldProps extends BaseProps<'span'> {
4
4
  /**
5
5
  * size is optional. The default value is 'l'
6
6
  */
7
7
  size?: 'xl' | 'l' | 'm' | 's';
8
8
  /**
9
- * heading is optional.
10
- * Add this prop if this Field component is the only one in this page.
11
- * The default value is false.
12
- */
9
+ * heading is optional.
10
+ * Add this prop if this Field component is the only one in this page.
11
+ * The default value is false.
12
+ */
13
13
  heading?: boolean;
14
14
  }
15
15
  /**
16
16
  * Label component defines a label for several elements at forms.
17
17
  */
18
- export declare const LabelTitle: React.ForwardRefExoticComponent<Pick<LabelFieldProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "heading" | "size"> & React.RefAttributes<HTMLSpanElement>>;
18
+ export declare const LabelTitle: React.ForwardRefExoticComponent<Pick<LabelFieldProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "heading"> & React.RefAttributes<HTMLSpanElement>>;
19
19
  export default LabelTitle;
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["size", "className", "heading", "children"];
@@ -27,12 +29,13 @@ var LabelTitle = /*#__PURE__*/_react["default"].forwardRef(function LabelTitle(_
27
29
  heading = _ref$heading === void 0 ? false : _ref$heading,
28
30
  children = _ref.children,
29
31
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
- return /*#__PURE__*/_react["default"].createElement("span", (0, _extends2["default"])({
32
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
33
+ as: "span",
31
34
  ref: ref,
32
35
  className: (0, _clsx["default"])(className, size === 'xl' && 'govgr-heading-xl', size === 'l' && 'govgr-heading-l', size === 'm' && 'govgr-heading-m', size === 's' && 'govgr-heading-s')
33
36
  }, heading && {
34
- role: "heading",
35
- "aria-level": 1
37
+ role: 'heading',
38
+ 'aria-level': 1
36
39
  }, props), children);
37
40
  });
38
41
 
package/Layout/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface LayoutProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface LayoutProps extends BaseProps<'div'> {
4
4
  fullHeight?: boolean;
5
5
  }
6
6
  /**
7
7
  * Wrapper component for the entire page except the Header and the Footer.
8
8
  */
9
- export declare const Layout: React.ForwardRefExoticComponent<Pick<LayoutProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "fullHeight"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const Layout: React.ForwardRefExoticComponent<Pick<LayoutProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "fullHeight"> & React.RefAttributes<HTMLDivElement>>;
10
10
  export default Layout;
package/Layout/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["className", "children", "fullHeight"];
@@ -26,7 +28,8 @@ var Layout = /*#__PURE__*/_react["default"].forwardRef(function Layout(_ref, ref
26
28
  _ref$fullHeight = _ref.fullHeight,
27
29
  fullHeight = _ref$fullHeight === void 0 ? true : _ref$fullHeight,
28
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
31
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
32
+ as: "div",
30
33
  ref: ref,
31
34
  className: (0, _clsx["default"])(className, fullHeight === true && 'govgr-layout-wrapper__full-height', true && 'govgr-layout-wrapper')
32
35
  }, props), children);
package/Link/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type AElementAttributes = JSX.IntrinsicElements['a'];
3
- export interface LinkProps extends AElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface LinkProps extends BaseProps<'a'> {
4
4
  /**
5
5
  * underline is optional. The default value is 'true'.
6
6
  * Make it 'false' only if the context tells the user that the text is a link, even without the underline.
@@ -10,5 +10,5 @@ export interface LinkProps extends AElementAttributes {
10
10
  /**
11
11
  * This component defines a hyperlink, which is used to link from one page to another.
12
12
  */
13
- export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | "target" | "type" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
13
+ export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "target" | "type" | "role" | "tabIndex" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
14
14
  export default Link;
package/Link/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["underline", "className", "children"];
@@ -25,7 +27,8 @@ var Link = /*#__PURE__*/_react["default"].forwardRef(function Link(_ref, ref) {
25
27
  className = _ref.className,
26
28
  children = _ref.children,
27
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
- return /*#__PURE__*/_react["default"].createElement("a", (0, _extends2["default"])({
30
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
31
+ as: "a",
29
32
  ref: ref,
30
33
  className: (0, _clsx["default"])(className, underline === false && 'govgr-link--no-underline', true && 'govgr-link')
31
34
  }, props), children);
package/List/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type UlElementAttributes = JSX.IntrinsicElements['ol'];
3
- export interface ListProps extends UlElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface ListProps extends BaseProps<'ol'> {
4
4
  /**
5
5
  * listStyle is optional. By default, the list style is none.
6
6
  */
@@ -14,5 +14,5 @@ export interface ListProps extends UlElementAttributes {
14
14
  * List component is used for listing items.
15
15
  * This component must contain ListItem component.
16
16
  */
17
- export declare const List: React.ForwardRefExoticComponent<Pick<ListProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "type" | "reversed" | "start" | "listStyle" | "spaced"> & React.RefAttributes<HTMLOListElement>>;
17
+ export declare const List: React.ForwardRefExoticComponent<Pick<ListProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "reversed" | "start" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "listStyle" | "spaced"> & React.RefAttributes<HTMLOListElement>>;
18
18
  export default List;
package/List/index.js CHANGED
@@ -13,6 +13,8 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
+ var _Base = _interopRequireDefault(require("@digigov/react-core/Base"));
17
+
16
18
  var _clsx = _interopRequireDefault(require("clsx"));
17
19
 
18
20
  var _excluded = ["listStyle", "spaced", "className", "children"];
@@ -29,7 +31,8 @@ var List = /*#__PURE__*/_react["default"].forwardRef(function List(_ref, ref) {
29
31
  className = _ref.className,
30
32
  children = _ref.children,
31
33
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
- return /*#__PURE__*/_react["default"].createElement("ol", (0, _extends2["default"])({
34
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
35
+ as: "ol",
33
36
  ref: ref,
34
37
  className: (0, _clsx["default"])(className, listStyle === 'bullet' && 'govgr-list--bullet', listStyle === 'number' && 'govgr-list--number', spaced === true && 'govgr-list--spaced', true && 'govgr-list')
35
38
  }, props), children);