@digigov/react-core 0.15.3 → 0.16.0

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 (561) 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 +26 -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/index.d.ts +3 -3
  84. package/FileUpload/index.js +4 -1
  85. package/Footer/index.d.ts +3 -3
  86. package/Footer/index.js +4 -1
  87. package/FooterContainer/index.d.ts +3 -3
  88. package/FooterContainer/index.js +4 -1
  89. package/FooterContent/index.d.ts +3 -3
  90. package/FooterContent/index.js +4 -1
  91. package/FooterContentLogos/index.d.ts +3 -3
  92. package/FooterContentLogos/index.js +4 -1
  93. package/FooterHeading/index.d.ts +3 -3
  94. package/FooterHeading/index.js +4 -1
  95. package/FooterImage/index.d.ts +3 -3
  96. package/FooterImage/index.js +4 -1
  97. package/FooterInlineList/index.d.ts +3 -3
  98. package/FooterInlineList/index.js +4 -1
  99. package/FooterInlineListItem/index.d.ts +3 -3
  100. package/FooterInlineListItem/index.js +4 -1
  101. package/FooterLink/index.d.ts +3 -3
  102. package/FooterLink/index.js +4 -1
  103. package/FooterList/index.d.ts +3 -3
  104. package/FooterList/index.js +4 -1
  105. package/FooterListItem/index.d.ts +3 -3
  106. package/FooterListItem/index.js +4 -1
  107. package/FooterMeta/index.d.ts +3 -3
  108. package/FooterMeta/index.js +4 -1
  109. package/FooterMetaItem/index.d.ts +3 -3
  110. package/FooterMetaItem/index.js +4 -1
  111. package/FooterNavigation/index.d.ts +3 -3
  112. package/FooterNavigation/index.js +4 -1
  113. package/FooterSection/index.d.ts +3 -3
  114. package/FooterSection/index.js +4 -1
  115. package/Form/index.d.ts +3 -3
  116. package/Form/index.js +4 -1
  117. package/GovGRFooter/index.d.ts +3 -3
  118. package/GovGRFooter/index.js +4 -1
  119. package/GovGRLogo/index.d.ts +3 -3
  120. package/GovGRLogo/index.js +4 -1
  121. package/Grid/index.d.ts +3 -3
  122. package/Grid/index.js +4 -1
  123. package/Header/index.d.ts +3 -3
  124. package/Header/index.js +4 -1
  125. package/HeaderContent/index.d.ts +3 -3
  126. package/HeaderContent/index.js +4 -1
  127. package/HeaderLogo/index.d.ts +3 -3
  128. package/HeaderLogo/index.js +4 -1
  129. package/HeaderSecondaryLogo/index.d.ts +3 -3
  130. package/HeaderSecondaryLogo/index.js +4 -1
  131. package/HeaderSection/index.d.ts +3 -3
  132. package/HeaderSection/index.js +4 -1
  133. package/HeaderSubtitle/index.d.ts +3 -3
  134. package/HeaderSubtitle/index.js +4 -1
  135. package/HeaderTitle/index.d.ts +3 -3
  136. package/HeaderTitle/index.js +4 -1
  137. package/Heading/index.d.ts +3 -3
  138. package/Heading/index.js +4 -1
  139. package/HeadingCaption/index.d.ts +3 -3
  140. package/HeadingCaption/index.js +4 -1
  141. package/HellenicRepublicLogo/index.d.ts +3 -3
  142. package/HellenicRepublicLogo/index.js +4 -1
  143. package/Hidden/index.d.ts +3 -3
  144. package/Hidden/index.js +4 -1
  145. package/Hint/index.d.ts +3 -3
  146. package/Hint/index.js +4 -1
  147. package/Label/index.d.ts +3 -3
  148. package/Label/index.js +4 -1
  149. package/LabelTitle/index.d.ts +7 -7
  150. package/LabelTitle/index.js +6 -3
  151. package/Layout/index.d.ts +3 -3
  152. package/Layout/index.js +4 -1
  153. package/Link/index.d.ts +3 -3
  154. package/Link/index.js +4 -1
  155. package/List/index.d.ts +3 -3
  156. package/List/index.js +4 -1
  157. package/ListItem/index.d.ts +3 -3
  158. package/ListItem/index.js +4 -1
  159. package/Main/index.d.ts +3 -3
  160. package/Main/index.js +4 -1
  161. package/Masthead/index.d.ts +3 -3
  162. package/Masthead/index.js +4 -1
  163. package/MastheadBody/index.d.ts +3 -3
  164. package/MastheadBody/index.js +4 -1
  165. package/NavHorizontal/index.d.ts +3 -3
  166. package/NavHorizontal/index.js +4 -1
  167. package/NavHorizontalList/index.d.ts +3 -3
  168. package/NavHorizontalList/index.js +4 -1
  169. package/NavHorizontalListItem/index.d.ts +3 -3
  170. package/NavHorizontalListItem/index.js +4 -1
  171. package/NavVertical/index.d.ts +3 -3
  172. package/NavVertical/index.js +4 -1
  173. package/NavVerticalItem/index.d.ts +3 -3
  174. package/NavVerticalItem/index.js +4 -1
  175. package/NormalText/index.d.ts +3 -3
  176. package/NormalText/index.js +4 -1
  177. package/NotificationBanner/index.d.ts +3 -3
  178. package/NotificationBanner/index.js +4 -1
  179. package/NotificationBannerContent/index.d.ts +3 -3
  180. package/NotificationBannerContent/index.js +4 -1
  181. package/NotificationBannerHeader/index.d.ts +3 -3
  182. package/NotificationBannerHeader/index.js +4 -1
  183. package/NotificationBannerHeading/index.d.ts +3 -3
  184. package/NotificationBannerHeading/index.js +4 -1
  185. package/NotificationBannerLink/index.d.ts +3 -3
  186. package/NotificationBannerLink/index.js +4 -1
  187. package/PageTitle/index.d.ts +3 -3
  188. package/PageTitle/index.js +4 -1
  189. package/PageTitleCaption/index.d.ts +3 -3
  190. package/PageTitleCaption/index.js +4 -1
  191. package/PageTitleHeading/index.d.ts +3 -3
  192. package/PageTitleHeading/index.js +4 -1
  193. package/PageTitleSection/index.d.ts +3 -3
  194. package/PageTitleSection/index.js +4 -1
  195. package/Paragraph/index.d.ts +3 -3
  196. package/Paragraph/index.js +4 -1
  197. package/PhaseBanner/index.d.ts +3 -3
  198. package/PhaseBanner/index.js +4 -1
  199. package/PhaseBannerHeaderContainer/index.d.ts +3 -3
  200. package/PhaseBannerHeaderContainer/index.js +4 -1
  201. package/PhaseBannerTag/index.d.ts +3 -3
  202. package/PhaseBannerTag/index.js +4 -1
  203. package/PhaseBannerText/index.d.ts +3 -3
  204. package/PhaseBannerText/index.js +4 -1
  205. package/Radio/index.d.ts +3 -3
  206. package/Radio/index.js +4 -1
  207. package/RadioConditional/index.d.ts +3 -7
  208. package/RadioConditional/index.js +6 -4
  209. package/RadioConditional/index.test.js +0 -8
  210. package/RadioItem/index.d.ts +3 -3
  211. package/RadioItem/index.js +4 -1
  212. package/SectionBreak/index.d.ts +3 -3
  213. package/SectionBreak/index.js +4 -1
  214. package/Select/index.d.ts +3 -3
  215. package/Select/index.js +4 -1
  216. package/SelectOption/index.d.ts +3 -3
  217. package/SelectOption/index.js +4 -1
  218. package/ServiceBadge/index.d.ts +3 -3
  219. package/ServiceBadge/index.js +4 -1
  220. package/SkipLink/index.d.ts +3 -3
  221. package/SkipLink/index.js +4 -1
  222. package/SummaryList/index.d.ts +3 -3
  223. package/SummaryList/index.js +4 -1
  224. package/SummaryListItem/index.d.ts +3 -3
  225. package/SummaryListItem/index.js +4 -1
  226. package/SummaryListItemAction/index.d.ts +3 -3
  227. package/SummaryListItemAction/index.js +4 -1
  228. package/SummaryListItemKey/index.d.ts +3 -3
  229. package/SummaryListItemKey/index.js +4 -1
  230. package/SummaryListItemValue/index.d.ts +3 -3
  231. package/SummaryListItemValue/index.js +4 -1
  232. package/SvgIcon/index.d.ts +3 -3
  233. package/SvgIcon/index.js +4 -1
  234. package/Table/index.d.ts +3 -3
  235. package/Table/index.js +4 -1
  236. package/TableBody/index.d.ts +3 -3
  237. package/TableBody/index.js +4 -1
  238. package/TableCaption/index.d.ts +3 -3
  239. package/TableCaption/index.js +4 -1
  240. package/TableContainer/index.d.ts +3 -3
  241. package/TableContainer/index.js +4 -1
  242. package/TableDataCell/index.d.ts +3 -3
  243. package/TableDataCell/index.js +4 -1
  244. package/TableHead/index.d.ts +3 -3
  245. package/TableHead/index.js +4 -1
  246. package/TableHeadCell/index.d.ts +3 -3
  247. package/TableHeadCell/index.js +4 -1
  248. package/TableNoDataRow/index.d.ts +3 -3
  249. package/TableNoDataRow/index.js +4 -1
  250. package/TableRow/index.d.ts +3 -3
  251. package/TableRow/index.js +4 -1
  252. package/Tabs/index.d.ts +3 -3
  253. package/Tabs/index.js +4 -1
  254. package/TabsHeading/index.d.ts +3 -3
  255. package/TabsHeading/index.js +4 -1
  256. package/TabsList/index.d.ts +3 -3
  257. package/TabsList/index.js +4 -1
  258. package/TabsListItem/index.d.ts +3 -3
  259. package/TabsListItem/index.js +4 -1
  260. package/TabsPanel/index.d.ts +3 -3
  261. package/TabsPanel/index.js +4 -1
  262. package/TextArea/index.d.ts +3 -3
  263. package/TextArea/index.js +4 -1
  264. package/TextInput/index.d.ts +3 -3
  265. package/TextInput/index.js +4 -1
  266. package/Top/index.d.ts +3 -3
  267. package/Top/index.js +4 -1
  268. package/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  269. package/UncheckIcon/index.d.ts +4 -4
  270. package/UncheckIcon/index.js +5 -5
  271. package/Unpurge/index.d.ts +2 -0
  272. package/Unpurge/index.js +19 -0
  273. package/VisuallyHidden/index.d.ts +3 -3
  274. package/VisuallyHidden/index.js +4 -1
  275. package/WarningText/index.d.ts +3 -3
  276. package/WarningText/index.js +4 -1
  277. package/es/Accordion/index.js +3 -1
  278. package/es/AccordionControls/index.js +3 -1
  279. package/es/AccordionSection/index.js +4 -2
  280. package/es/AccordionSectionContent/index.js +3 -1
  281. package/es/AccordionSectionHeader/index.js +3 -1
  282. package/es/AccordionSectionSummary/index.js +3 -1
  283. package/es/AccordionSectionSummaryHeading/index.js +3 -1
  284. package/es/Aside/index.js +3 -1
  285. package/es/BackLink/index.js +3 -1
  286. package/es/Base/index.js +50 -0
  287. package/es/Blockquote/index.js +3 -1
  288. package/es/Bottom/index.js +3 -1
  289. package/es/Breadcrumbs/index.js +3 -1
  290. package/es/BreadcrumbsList/index.js +3 -1
  291. package/es/BreadcrumbsListItem/index.js +3 -1
  292. package/es/Button/index.js +3 -1
  293. package/es/ButtonGroup/index.js +3 -1
  294. package/es/ButtonLink/index.js +3 -1
  295. package/es/Card/index.js +4 -3
  296. package/es/CardAction/index.js +3 -1
  297. package/es/CardHeading/index.js +3 -1
  298. package/es/CardText/index.js +3 -1
  299. package/es/Checkbox/index.js +3 -1
  300. package/es/CheckboxConditional/index.js +5 -4
  301. package/es/CheckboxConditional/index.test.js +0 -8
  302. package/es/CheckboxItem/index.js +3 -1
  303. package/es/Confirmation/index.js +3 -1
  304. package/es/ConfirmationBody/index.js +3 -1
  305. package/es/ConfirmationTitle/index.js +3 -1
  306. package/es/Container/index.js +5 -2
  307. package/es/Copyright/index.js +3 -1
  308. package/es/DateInput/index.js +3 -1
  309. package/es/DateInputItem/index.js +3 -1
  310. package/es/Details/index.js +3 -1
  311. package/es/DetailsContent/index.js +3 -1
  312. package/es/DetailsSummary/index.js +3 -1
  313. package/es/ErrorMessage/index.js +3 -1
  314. package/es/ErrorSummary/index.js +3 -1
  315. package/es/Fieldset/index.js +3 -1
  316. package/es/FieldsetLegend/index.js +5 -3
  317. package/es/FileUpload/index.js +3 -1
  318. package/es/Footer/index.js +3 -1
  319. package/es/FooterContainer/index.js +3 -1
  320. package/es/FooterContent/index.js +3 -1
  321. package/es/FooterContentLogos/index.js +3 -1
  322. package/es/FooterHeading/index.js +3 -1
  323. package/es/FooterImage/index.js +3 -1
  324. package/es/FooterInlineList/index.js +3 -1
  325. package/es/FooterInlineListItem/index.js +3 -1
  326. package/es/FooterLink/index.js +3 -1
  327. package/es/FooterList/index.js +3 -1
  328. package/es/FooterListItem/index.js +3 -1
  329. package/es/FooterMeta/index.js +3 -1
  330. package/es/FooterMetaItem/index.js +3 -1
  331. package/es/FooterNavigation/index.js +3 -1
  332. package/es/FooterSection/index.js +3 -1
  333. package/es/Form/index.js +3 -1
  334. package/es/GovGRFooter/index.js +3 -1
  335. package/es/GovGRLogo/index.js +3 -1
  336. package/es/Grid/index.js +3 -1
  337. package/es/Header/index.js +3 -1
  338. package/es/HeaderContent/index.js +3 -1
  339. package/es/HeaderLogo/index.js +3 -1
  340. package/es/HeaderSecondaryLogo/index.js +3 -1
  341. package/es/HeaderSection/index.js +3 -1
  342. package/es/HeaderSubtitle/index.js +3 -1
  343. package/es/HeaderTitle/index.js +3 -1
  344. package/es/Heading/index.js +3 -1
  345. package/es/HeadingCaption/index.js +3 -1
  346. package/es/HellenicRepublicLogo/index.js +3 -1
  347. package/es/Hidden/index.js +3 -1
  348. package/es/Hint/index.js +3 -1
  349. package/es/Label/index.js +3 -1
  350. package/es/LabelTitle/index.js +5 -3
  351. package/es/Layout/index.js +3 -1
  352. package/es/Link/index.js +3 -1
  353. package/es/List/index.js +3 -1
  354. package/es/ListItem/index.js +3 -1
  355. package/es/Main/index.js +3 -1
  356. package/es/Masthead/index.js +3 -1
  357. package/es/MastheadBody/index.js +3 -1
  358. package/es/NavHorizontal/index.js +3 -1
  359. package/es/NavHorizontalList/index.js +3 -1
  360. package/es/NavHorizontalListItem/index.js +3 -1
  361. package/es/NavVertical/index.js +3 -1
  362. package/es/NavVerticalItem/index.js +3 -1
  363. package/es/NormalText/index.js +3 -1
  364. package/es/NotificationBanner/index.js +3 -1
  365. package/es/NotificationBannerContent/index.js +3 -1
  366. package/es/NotificationBannerHeader/index.js +3 -1
  367. package/es/NotificationBannerHeading/index.js +3 -1
  368. package/es/NotificationBannerLink/index.js +3 -1
  369. package/es/PageTitle/index.js +3 -1
  370. package/es/PageTitleCaption/index.js +3 -1
  371. package/es/PageTitleHeading/index.js +3 -1
  372. package/es/PageTitleSection/index.js +3 -1
  373. package/es/Paragraph/index.js +3 -1
  374. package/es/PhaseBanner/index.js +3 -1
  375. package/es/PhaseBannerHeaderContainer/index.js +3 -1
  376. package/es/PhaseBannerTag/index.js +3 -1
  377. package/es/PhaseBannerText/index.js +3 -1
  378. package/es/Radio/index.js +3 -1
  379. package/es/RadioConditional/index.js +5 -4
  380. package/es/RadioConditional/index.test.js +0 -8
  381. package/es/RadioItem/index.js +3 -1
  382. package/es/SectionBreak/index.js +3 -1
  383. package/es/Select/index.js +3 -1
  384. package/es/SelectOption/index.js +3 -1
  385. package/es/ServiceBadge/index.js +3 -1
  386. package/es/SkipLink/index.js +3 -1
  387. package/es/SummaryList/index.js +3 -1
  388. package/es/SummaryListItem/index.js +3 -1
  389. package/es/SummaryListItemAction/index.js +3 -1
  390. package/es/SummaryListItemKey/index.js +3 -1
  391. package/es/SummaryListItemValue/index.js +3 -1
  392. package/es/SvgIcon/index.js +3 -1
  393. package/es/Table/index.js +3 -1
  394. package/es/TableBody/index.js +3 -1
  395. package/es/TableCaption/index.js +3 -1
  396. package/es/TableContainer/index.js +3 -1
  397. package/es/TableDataCell/index.js +3 -1
  398. package/es/TableHead/index.js +3 -1
  399. package/es/TableHeadCell/index.js +3 -1
  400. package/es/TableNoDataRow/index.js +3 -1
  401. package/es/TableRow/index.js +3 -1
  402. package/es/Tabs/index.js +3 -1
  403. package/es/TabsHeading/index.js +3 -1
  404. package/es/TabsList/index.js +3 -1
  405. package/es/TabsListItem/index.js +3 -1
  406. package/es/TabsPanel/index.js +3 -1
  407. package/es/TextArea/index.js +3 -1
  408. package/es/TextInput/index.js +3 -1
  409. package/es/Top/index.js +3 -1
  410. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  411. package/es/UncheckIcon/index.js +3 -3
  412. package/es/Unpurge/index.js +9 -0
  413. package/es/VisuallyHidden/index.js +3 -1
  414. package/es/WarningText/index.js +3 -1
  415. package/es/index.js +1 -0
  416. package/es/registry.js +20 -12
  417. package/esm/Accordion/index.js +3 -1
  418. package/esm/AccordionControls/index.js +3 -1
  419. package/esm/AccordionSection/index.js +4 -2
  420. package/esm/AccordionSectionContent/index.js +3 -1
  421. package/esm/AccordionSectionHeader/index.js +3 -1
  422. package/esm/AccordionSectionSummary/index.js +3 -1
  423. package/esm/AccordionSectionSummaryHeading/index.js +3 -1
  424. package/esm/Aside/index.js +3 -1
  425. package/esm/BackLink/index.js +3 -1
  426. package/esm/Base/index.js +50 -0
  427. package/esm/Blockquote/index.js +3 -1
  428. package/esm/Bottom/index.js +3 -1
  429. package/esm/Breadcrumbs/index.js +3 -1
  430. package/esm/BreadcrumbsList/index.js +3 -1
  431. package/esm/BreadcrumbsListItem/index.js +3 -1
  432. package/esm/Button/index.js +3 -1
  433. package/esm/ButtonGroup/index.js +3 -1
  434. package/esm/ButtonLink/index.js +3 -1
  435. package/esm/Card/index.js +4 -3
  436. package/esm/CardAction/index.js +3 -1
  437. package/esm/CardHeading/index.js +3 -1
  438. package/esm/CardText/index.js +3 -1
  439. package/esm/Checkbox/index.js +3 -1
  440. package/esm/CheckboxConditional/index.js +5 -4
  441. package/esm/CheckboxConditional/index.test.js +0 -8
  442. package/esm/CheckboxItem/index.js +3 -1
  443. package/esm/Confirmation/index.js +3 -1
  444. package/esm/ConfirmationBody/index.js +3 -1
  445. package/esm/ConfirmationTitle/index.js +3 -1
  446. package/esm/Container/index.js +5 -2
  447. package/esm/Copyright/index.js +3 -1
  448. package/esm/DateInput/index.js +3 -1
  449. package/esm/DateInputItem/index.js +3 -1
  450. package/esm/Details/index.js +3 -1
  451. package/esm/DetailsContent/index.js +3 -1
  452. package/esm/DetailsSummary/index.js +3 -1
  453. package/esm/ErrorMessage/index.js +3 -1
  454. package/esm/ErrorSummary/index.js +3 -1
  455. package/esm/Fieldset/index.js +3 -1
  456. package/esm/FieldsetLegend/index.js +5 -3
  457. package/esm/FileUpload/index.js +3 -1
  458. package/esm/Footer/index.js +3 -1
  459. package/esm/FooterContainer/index.js +3 -1
  460. package/esm/FooterContent/index.js +3 -1
  461. package/esm/FooterContentLogos/index.js +3 -1
  462. package/esm/FooterHeading/index.js +3 -1
  463. package/esm/FooterImage/index.js +3 -1
  464. package/esm/FooterInlineList/index.js +3 -1
  465. package/esm/FooterInlineListItem/index.js +3 -1
  466. package/esm/FooterLink/index.js +3 -1
  467. package/esm/FooterList/index.js +3 -1
  468. package/esm/FooterListItem/index.js +3 -1
  469. package/esm/FooterMeta/index.js +3 -1
  470. package/esm/FooterMetaItem/index.js +3 -1
  471. package/esm/FooterNavigation/index.js +3 -1
  472. package/esm/FooterSection/index.js +3 -1
  473. package/esm/Form/index.js +3 -1
  474. package/esm/GovGRFooter/index.js +3 -1
  475. package/esm/GovGRLogo/index.js +3 -1
  476. package/esm/Grid/index.js +3 -1
  477. package/esm/Header/index.js +3 -1
  478. package/esm/HeaderContent/index.js +3 -1
  479. package/esm/HeaderLogo/index.js +3 -1
  480. package/esm/HeaderSecondaryLogo/index.js +3 -1
  481. package/esm/HeaderSection/index.js +3 -1
  482. package/esm/HeaderSubtitle/index.js +3 -1
  483. package/esm/HeaderTitle/index.js +3 -1
  484. package/esm/Heading/index.js +3 -1
  485. package/esm/HeadingCaption/index.js +3 -1
  486. package/esm/HellenicRepublicLogo/index.js +3 -1
  487. package/esm/Hidden/index.js +3 -1
  488. package/esm/Hint/index.js +3 -1
  489. package/esm/Label/index.js +3 -1
  490. package/esm/LabelTitle/index.js +5 -3
  491. package/esm/Layout/index.js +3 -1
  492. package/esm/Link/index.js +3 -1
  493. package/esm/List/index.js +3 -1
  494. package/esm/ListItem/index.js +3 -1
  495. package/esm/Main/index.js +3 -1
  496. package/esm/Masthead/index.js +3 -1
  497. package/esm/MastheadBody/index.js +3 -1
  498. package/esm/NavHorizontal/index.js +3 -1
  499. package/esm/NavHorizontalList/index.js +3 -1
  500. package/esm/NavHorizontalListItem/index.js +3 -1
  501. package/esm/NavVertical/index.js +3 -1
  502. package/esm/NavVerticalItem/index.js +3 -1
  503. package/esm/NormalText/index.js +3 -1
  504. package/esm/NotificationBanner/index.js +3 -1
  505. package/esm/NotificationBannerContent/index.js +3 -1
  506. package/esm/NotificationBannerHeader/index.js +3 -1
  507. package/esm/NotificationBannerHeading/index.js +3 -1
  508. package/esm/NotificationBannerLink/index.js +3 -1
  509. package/esm/PageTitle/index.js +3 -1
  510. package/esm/PageTitleCaption/index.js +3 -1
  511. package/esm/PageTitleHeading/index.js +3 -1
  512. package/esm/PageTitleSection/index.js +3 -1
  513. package/esm/Paragraph/index.js +3 -1
  514. package/esm/PhaseBanner/index.js +3 -1
  515. package/esm/PhaseBannerHeaderContainer/index.js +3 -1
  516. package/esm/PhaseBannerTag/index.js +3 -1
  517. package/esm/PhaseBannerText/index.js +3 -1
  518. package/esm/Radio/index.js +3 -1
  519. package/esm/RadioConditional/index.js +5 -4
  520. package/esm/RadioConditional/index.test.js +0 -8
  521. package/esm/RadioItem/index.js +3 -1
  522. package/esm/SectionBreak/index.js +3 -1
  523. package/esm/Select/index.js +3 -1
  524. package/esm/SelectOption/index.js +3 -1
  525. package/esm/ServiceBadge/index.js +3 -1
  526. package/esm/SkipLink/index.js +3 -1
  527. package/esm/SummaryList/index.js +3 -1
  528. package/esm/SummaryListItem/index.js +3 -1
  529. package/esm/SummaryListItemAction/index.js +3 -1
  530. package/esm/SummaryListItemKey/index.js +3 -1
  531. package/esm/SummaryListItemValue/index.js +3 -1
  532. package/esm/SvgIcon/index.js +3 -1
  533. package/esm/Table/index.js +3 -1
  534. package/esm/TableBody/index.js +3 -1
  535. package/esm/TableCaption/index.js +3 -1
  536. package/esm/TableContainer/index.js +3 -1
  537. package/esm/TableDataCell/index.js +3 -1
  538. package/esm/TableHead/index.js +3 -1
  539. package/esm/TableHeadCell/index.js +3 -1
  540. package/esm/TableNoDataRow/index.js +3 -1
  541. package/esm/TableRow/index.js +3 -1
  542. package/esm/Tabs/index.js +3 -1
  543. package/esm/TabsHeading/index.js +3 -1
  544. package/esm/TabsList/index.js +3 -1
  545. package/esm/TabsListItem/index.js +3 -1
  546. package/esm/TabsPanel/index.js +3 -1
  547. package/esm/TextArea/index.js +3 -1
  548. package/esm/TextInput/index.js +3 -1
  549. package/esm/Top/index.js +3 -1
  550. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +45 -45
  551. package/esm/UncheckIcon/index.js +3 -3
  552. package/esm/Unpurge/index.js +9 -0
  553. package/esm/VisuallyHidden/index.js +3 -1
  554. package/esm/WarningText/index.js +3 -1
  555. package/esm/index.js +2 -1
  556. package/esm/registry.js +20 -12
  557. package/index.d.ts +1 -0
  558. package/index.js +8 -0
  559. package/package.json +2 -2
  560. package/registry.d.ts +9 -6
  561. package/registry.js +27 -16
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type LinkElementAttributes = JSX.IntrinsicElements['a'];
3
- export interface ButtonLinkProps extends LinkElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface ButtonLinkProps extends BaseProps<'a'> {
4
4
  /**
5
5
  * color is optional.
6
6
  * 'primary' color is used for the main call to action on a page.
@@ -13,5 +13,5 @@ export interface ButtonLinkProps extends LinkElementAttributes {
13
13
  /**
14
14
  * Use the Button component to help users carry out an action.
15
15
  */
16
- export declare const ButtonLink: React.ForwardRefExoticComponent<Pick<ButtonLinkProps, "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"> & React.RefAttributes<HTMLAnchorElement>>;
16
+ export declare const ButtonLink: React.ForwardRefExoticComponent<Pick<ButtonLinkProps, "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"> & React.RefAttributes<HTMLAnchorElement>>;
17
17
  export default ButtonLink;
@@ -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 = ["color", "className", "children"];
@@ -26,7 +28,8 @@ var ButtonLink = /*#__PURE__*/_react["default"].forwardRef(function ButtonLink(_
26
28
  className = _ref.className,
27
29
  children = _ref.children,
28
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
29
- return /*#__PURE__*/_react["default"].createElement("a", (0, _extends2["default"])({
31
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
32
+ as: "a",
30
33
  ref: ref,
31
34
  className: (0, _clsx["default"])(className, color === 'secondary' && 'govgr-btn-secondary', color === 'primary' && 'govgr-btn-primary', color === 'warning' && 'govgr-btn-warning', true && 'govgr-btn')
32
35
  }, props), children);
package/CHANGELOG.md CHANGED
@@ -1,6 +1,31 @@
1
1
  # Change Log - @digigov/react-core
2
2
 
3
- This log was last generated on Tue, 26 Jul 2022 07:39:59 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 31 Aug 2022 16:10:12 GMT and should not be manually modified.
4
+
5
+ ## 0.16.0
6
+ Wed, 31 Aug 2022 16:10:12 GMT
7
+
8
+ ### Minor changes
9
+
10
+ - Create Base component, add dummy component to stop purging util classes and update components to use Base component
11
+
12
+ ### Patches
13
+
14
+ - Fix typo on UncheckIcon
15
+
16
+ ## 0.15.5
17
+ Tue, 16 Aug 2022 07:40:15 GMT
18
+
19
+ ### Patches
20
+
21
+ - create components and removed them to digigov-ui
22
+
23
+ ## 0.15.4
24
+ Thu, 04 Aug 2022 14:33:46 GMT
25
+
26
+ ### Patches
27
+
28
+ - Fix visual bug in floating scroll tables
4
29
 
5
30
  ## 0.15.3
6
31
  Tue, 26 Jul 2022 07:39:59 GMT
@@ -6,5 +6,5 @@ export interface CallToActionProps extends ButtonLinkProps {
6
6
  /**
7
7
  * Use this button for the main call to action on your service’s start page.
8
8
  */
9
- export declare const CallToAction: React.ForwardRefExoticComponent<Pick<CallToActionProps, "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"> & React.RefAttributes<HTMLAnchorElement>>;
9
+ export declare const CallToAction: React.ForwardRefExoticComponent<Pick<CallToActionProps, "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"> & React.RefAttributes<HTMLAnchorElement>>;
10
10
  export default CallToAction;
package/Card/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CardProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CardProps extends BaseProps<'div'> {
4
4
  /**
5
5
  * By default, we recommend using Cards without border style. Card border increases the contrast to its background.
6
6
  * divider
@@ -25,5 +25,5 @@ export interface CardProps extends DivElementAttributes {
25
25
  * Cards can help your users to scan through vast amounts of information quicker.
26
26
  * Use Card as parent component to wrap CardHeading, CardText and CartAction components
27
27
  */
28
- export declare const Card: React.ForwardRefExoticComponent<Pick<CardProps, "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" | "variant" | "borderColor" | "callToAction"> & React.RefAttributes<HTMLDivElement>>;
28
+ export declare const Card: React.ForwardRefExoticComponent<Pick<CardProps, "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" | "variant" | "borderColor" | "callToAction"> & React.RefAttributes<HTMLDivElement>>;
29
29
  export default Card;
package/Card/index.js CHANGED
@@ -13,9 +13,11 @@ 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
- var _excluded = ["variant", "borderColor", "callToAction", "style", "className", "children"];
20
+ var _excluded = ["variant", "borderColor", "callToAction", "className", "children"];
19
21
 
20
22
  /**
21
23
  * Cards can be used to divide and organise interface content for better understandability and readability.
@@ -26,11 +28,11 @@ var Card = /*#__PURE__*/_react["default"].forwardRef(function Card(_ref, ref) {
26
28
  var variant = _ref.variant,
27
29
  borderColor = _ref.borderColor,
28
30
  callToAction = _ref.callToAction,
29
- style = _ref.style,
30
31
  className = _ref.className,
31
32
  children = _ref.children,
32
33
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
33
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
34
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
35
+ as: "div",
34
36
  ref: ref,
35
37
  className: (0, _clsx["default"])(className, variant === 'border-top' && 'govgr-card--border-top', borderColor === 'gray' && 'govgr-card--border-gray', borderColor === 'dark' && 'govgr-card--border-dark', variant === 'divider' && 'govgr-card--divider', variant === 'border' && 'govgr-card--border', callToAction && 'govgr-card--cta', true && 'govgr-card')
36
38
  }, props), /*#__PURE__*/_react["default"].createElement("div", {
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CardActionProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CardActionProps extends BaseProps<'div'> {
4
4
  }
5
5
  /**
6
6
  * CardAction contains the action behavior for Card Component.
7
7
  * We can use links, Buttons or ButtonGroup with max of two buttons
8
8
  * Use CardAction inside Card component as childern
9
9
  */
10
- export declare const CardAction: React.ForwardRefExoticComponent<Pick<CardActionProps, "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"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const CardAction: React.ForwardRefExoticComponent<Pick<CardActionProps, "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"> & React.RefAttributes<HTMLDivElement>>;
11
11
  export default CardAction;
@@ -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"];
@@ -26,7 +28,8 @@ var CardAction = /*#__PURE__*/_react["default"].forwardRef(function CardText(_re
26
28
  var className = _ref.className,
27
29
  children = _ref.children,
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, true && 'govgr-card__action')
32
35
  }, props), children);
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CardHeadingProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CardHeadingProps extends BaseProps<'div'> {
4
4
  }
5
5
  /**
6
6
  * CardHeading gives header title to Card Component
7
7
  * Use CardHeading inside Card component as children
8
8
  */
9
- export declare const CardHeading: React.ForwardRefExoticComponent<Pick<CardHeadingProps, "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"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const CardHeading: React.ForwardRefExoticComponent<Pick<CardHeadingProps, "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"> & React.RefAttributes<HTMLDivElement>>;
10
10
  export default CardHeading;
@@ -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"];
@@ -25,7 +27,8 @@ var CardHeading = /*#__PURE__*/_react["default"].forwardRef(function CardHeading
25
27
  var className = _ref.className,
26
28
  children = _ref.children,
27
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
30
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
31
+ as: "div",
29
32
  ref: ref,
30
33
  role: "heading",
31
34
  "aria-level": 2,
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CardTextProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CardTextProps extends BaseProps<'div'> {
4
4
  }
5
5
  /**
6
6
  * CardText contains the text for Card Component
7
7
  * Use CardText inside Card component as children
8
8
  */
9
- export declare const CardText: React.ForwardRefExoticComponent<Pick<CardTextProps, "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"> & React.RefAttributes<HTMLDivElement>>;
9
+ export declare const CardText: React.ForwardRefExoticComponent<Pick<CardTextProps, "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"> & React.RefAttributes<HTMLDivElement>>;
10
10
  export default CardText;
package/CardText/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"];
@@ -25,7 +27,8 @@ var CardText = /*#__PURE__*/_react["default"].forwardRef(function CardText(_ref,
25
27
  var className = _ref.className,
26
28
  children = _ref.children,
27
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
30
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
31
+ as: "div",
29
32
  ref: ref,
30
33
  className: (0, _clsx["default"])(className, true && 'govgr-card__text')
31
34
  }, props), children);
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CheckboxProps extends DivElementAttributes {
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CheckboxProps extends BaseProps<'div'> {
4
4
  }
5
5
  /**
6
6
  * Details for the Checkbox.
7
7
  * Checkbox component allow the user to select one or more items from a set.
8
8
  * It takes CheckboxItem as children
9
9
  */
10
- export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "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"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const Checkbox: React.ForwardRefExoticComponent<Pick<CheckboxProps, "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"> & React.RefAttributes<HTMLDivElement>>;
11
11
  export default Checkbox;
package/Checkbox/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"];
@@ -26,7 +28,8 @@ var Checkbox = /*#__PURE__*/_react["default"].forwardRef(function Checkbox(_ref,
26
28
  var className = _ref.className,
27
29
  children = _ref.children,
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, true && 'govgr-checkboxes')
32
35
  }, props), children);
@@ -1,15 +1,11 @@
1
1
  import React from 'react';
2
- declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
- export interface CheckboxConditionalProps extends DivElementAttributes {
4
- /**
5
- * Name property is optional and it contains a single value which describes the name of the <input> element.
6
- */
7
- name?: string;
2
+ import { BaseProps } from '@digigov/react-core/Base';
3
+ export interface CheckboxConditionalProps extends BaseProps<'div'> {
8
4
  }
9
5
  /**
10
6
  * CheckboxConditional asks the user a related question when they select a particular checkbox,
11
7
  * so they only see the question when it’s relevant to them.
12
8
  * CheckboxConditional must be used inside Checkbox component
13
9
  */
14
- export declare const CheckboxConditional: React.ForwardRefExoticComponent<Pick<CheckboxConditionalProps, "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" | "name"> & React.RefAttributes<HTMLDivElement>>;
10
+ export declare const CheckboxConditional: React.ForwardRefExoticComponent<Pick<CheckboxConditionalProps, "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"> & React.RefAttributes<HTMLDivElement>>;
15
11
  export default CheckboxConditional;
@@ -13,9 +13,11 @@ 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
- var _excluded = ["name", "className", "children"];
20
+ var _excluded = ["className", "children"];
19
21
 
20
22
  /**
21
23
  * CheckboxConditional asks the user a related question when they select a particular checkbox,
@@ -23,11 +25,11 @@ var _excluded = ["name", "className", "children"];
23
25
  * CheckboxConditional must be used inside Checkbox component
24
26
  */
25
27
  var CheckboxConditional = /*#__PURE__*/_react["default"].forwardRef(function CheckboxConditional(_ref, ref) {
26
- var name = _ref.name,
27
- className = _ref.className,
28
+ var className = _ref.className,
28
29
  children = _ref.children,
29
30
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
31
+ return /*#__PURE__*/_react["default"].createElement(_Base["default"], (0, _extends2["default"])({
32
+ as: "div",
31
33
  ref: ref,
32
34
  className: (0, _clsx["default"])(className, true && 'govgr-checkboxes__conditional')
33
35
  }, props), /*#__PURE__*/_react["default"].createElement("div", {
@@ -12,12 +12,4 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_CheckboxConditional["de
12
12
 
13
13
  it('renders the Blockquote with no props', function () {
14
14
  expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
- });
16
-
17
- var _ref2 = /*#__PURE__*/_react["default"].createElement(_CheckboxConditional["default"], {
18
- name: 'some-name'
19
- }, "hello");
20
-
21
- it('renders the Blockquote with name prop', function () {
22
- expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
15
  });