@digigov/react-core 1.0.0-002c630d → 1.0.0-6b93ebf2

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 (582) hide show
  1. package/AccessibilityMenu/index.d.ts +5 -0
  2. package/AccessibilityMenuOptionButton/index.d.ts +5 -0
  3. package/AccessibilityMenuSteps/index.d.ts +11 -0
  4. package/AdminLayout/index.d.ts +4 -0
  5. package/AutoCompleteInput/index.d.ts +11 -6
  6. package/AutoCompleteResultList/index.d.ts +15 -10
  7. package/AutoCompleteResultListItem/index.d.ts +28 -20
  8. package/AutoCompleteWrapper/index.d.ts +9 -3
  9. package/BottomInfo/index.d.ts +1 -1
  10. package/BottomInfoContainer/index.d.ts +1 -1
  11. package/BreadcrumbsListItem/index.d.ts +3 -2
  12. package/Button/index.d.ts +15 -8
  13. package/ButtonLink/index.d.ts +10 -6
  14. package/Card/index.d.ts +19 -12
  15. package/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
  16. package/Checkbox/index.d.ts +8 -5
  17. package/Checkbox/index.js +3 -3
  18. package/Checkbox/index.test.js +2 -2
  19. package/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
  20. package/CheckboxItem/index.d.ts +4 -4
  21. package/CheckboxItem/index.js +4 -6
  22. package/CheckboxItem/index.test.js +2 -2
  23. package/Chip/index.d.ts +3 -0
  24. package/ChipKeyValue/index.d.ts +1 -1
  25. package/ChipKeyValue/index.test.js +15 -0
  26. package/ChipSection/index.d.ts +4 -0
  27. package/ChipSectionWrapper/index.d.ts +2 -2
  28. package/ChipSectionWrapper/index.js +1 -1
  29. package/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
  30. package/{ConfirmationTitle → ChoiceDividerText}/index.d.ts +5 -4
  31. package/{ChoiceDivider → ChoiceDividerText}/index.js +9 -9
  32. package/{ChoiceDivider → ChoiceDividerText}/index.test.js +2 -4
  33. package/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
  34. package/CircularProgress/index.d.ts +15 -10
  35. package/CircularProgress/index.js +4 -4
  36. package/CircularProgress/index.test.js +8 -8
  37. package/Container/__snapshots__/index.test.tsx.snap +6 -6
  38. package/Container/index.d.ts +12 -6
  39. package/Container/index.js +5 -5
  40. package/Container/index.test.js +1 -1
  41. package/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
  42. package/CopyToClipboardContainer/index.d.ts +13 -4
  43. package/CopyToClipboardContainer/index.js +7 -4
  44. package/CopyToClipboardContainer/index.spec.js +2 -1
  45. package/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
  46. package/CopyToClipboardMessage/index.d.ts +7 -10
  47. package/CopyToClipboardMessage/index.js +3 -4
  48. package/CopyToClipboardMessage/index.test.js +2 -8
  49. package/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
  50. package/CopyrightContainer/index.js +1 -1
  51. package/DateInputItem/index.d.ts +11 -6
  52. package/Details/index.d.ts +1 -1
  53. package/Drawer/index.d.ts +20 -10
  54. package/DrawerHeading/index.d.ts +5 -17
  55. package/DrawerHeading/index.js +7 -10
  56. package/DropdownBase/index.d.ts +16 -9
  57. package/DropdownBase/index.js +0 -1
  58. package/DropdownButton/index.d.ts +28 -16
  59. package/ErrorSummary/index.d.ts +1 -1
  60. package/ErrorSummary/index.js +8 -8
  61. package/FieldContainer/index.d.ts +4 -2
  62. package/FieldsetLegend/index.d.ts +14 -6
  63. package/FieldsetLegend/index.js +2 -2
  64. package/FileUpload/index.d.ts +5 -2
  65. package/FileUploadContainer/index.d.ts +5 -2
  66. package/FilterCloseButton/index.d.ts +5 -4
  67. package/FilterOptionsSection/index.d.ts +4 -0
  68. package/FilterSection/index.d.ts +21 -9
  69. package/FilterSelectedSection/index.d.ts +4 -0
  70. package/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
  71. package/FooterContainer/index.d.ts +7 -5
  72. package/FooterContainer/index.js +1 -1
  73. package/FooterHeading/index.d.ts +7 -4
  74. package/FooterList/index.d.ts +5 -3
  75. package/FooterMetaItem/index.d.ts +5 -3
  76. package/Form/index.d.ts +5 -0
  77. package/Grid/index.d.ts +38 -0
  78. package/HeaderLogo/index.d.ts +6 -4
  79. package/HeaderSecondaryLogo/index.d.ts +6 -4
  80. package/Heading/index.d.ts +12 -6
  81. package/HeadingCaption/index.d.ts +7 -3
  82. package/HellenicRepublicLogo/index.d.ts +5 -3
  83. package/Hidden/__snapshots__/index.test.tsx.snap +96 -0
  84. package/Hidden/index.d.ts +29 -4
  85. package/Hidden/index.js +5 -9
  86. package/Hint/index.d.ts +6 -3
  87. package/KitchenSinkContent/index.d.ts +7 -4
  88. package/LabelTitle/index.d.ts +13 -6
  89. package/LabeledText/index.d.ts +5 -3
  90. package/Layout/index.d.ts +5 -0
  91. package/LinkBase/index.d.ts +5 -3
  92. package/LinkBase/index.js +3 -2
  93. package/List/index.d.ts +15 -6
  94. package/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
  95. package/LoaderContainer/index.js +1 -1
  96. package/Masthead/__snapshots__/index.test.tsx.snap +3 -3
  97. package/Masthead/index.d.ts +8 -5
  98. package/Masthead/index.js +1 -1
  99. package/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
  100. package/ModalContainer/index.d.ts +4 -0
  101. package/Nav/index.d.ts +31 -16
  102. package/NavList/index.d.ts +6 -3
  103. package/NavListItemButton/index.d.ts +14 -9
  104. package/NavListItemLink/index.d.ts +6 -4
  105. package/NavMenu/index.d.ts +12 -7
  106. package/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
  107. package/NavMenuContainer/index.d.ts +6 -3
  108. package/NavMenuContainer/index.js +1 -1
  109. package/NavVerticalItem/index.d.ts +5 -3
  110. package/NormalText/index.d.ts +27 -13
  111. package/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
  112. package/NotificationBannerContainer/index.d.ts +10 -5
  113. package/NotificationBannerContainer/index.js +6 -5
  114. package/NotificationBannerContainer/index.test.js +2 -10
  115. package/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
  116. package/NotificationBannerHeader/index.js +6 -1
  117. package/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
  118. package/NotificationBannerHeading/index.d.ts +3 -3
  119. package/NotificationBannerHeading/index.js +4 -3
  120. package/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
  121. package/NotificationBannerLink/index.d.ts +3 -3
  122. package/NotificationBannerLink/index.js +3 -7
  123. package/PageTitleHeading/index.d.ts +4 -7
  124. package/PageTitleHeading/index.js +7 -9
  125. package/Pagination/index.d.ts +6 -3
  126. package/PaginationListItem/index.d.ts +13 -6
  127. package/Panel/__snapshots__/index.test.tsx.snap +16 -0
  128. package/Panel/index.d.ts +15 -0
  129. package/{Confirmation → Panel}/index.js +10 -8
  130. package/{PageTitle → Panel}/index.test.js +3 -3
  131. package/{es/ConfirmationBody → PanelBody}/__snapshots__/index.test.tsx.snap +3 -3
  132. package/{PageTitle → PanelBody}/index.d.ts +4 -4
  133. package/{ConfirmationBody → PanelBody}/index.js +5 -5
  134. package/PanelBody/index.test.js +15 -0
  135. package/{ConfirmationBody → PanelTitle}/__snapshots__/index.test.tsx.snap +3 -3
  136. package/PanelTitle/index.d.ts +9 -0
  137. package/{ConfirmationTitle → PanelTitle}/index.js +5 -5
  138. package/PanelTitle/index.test.js +15 -0
  139. package/Paragraph/index.d.ts +2 -18
  140. package/Paragraph/index.js +5 -13
  141. package/PhaseBanner/index.d.ts +6 -3
  142. package/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
  143. package/RadioContainer/index.d.ts +8 -5
  144. package/RadioContainer/index.js +4 -4
  145. package/RadioContainer/index.test.js +8 -0
  146. package/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
  147. package/RadioItem/index.d.ts +4 -4
  148. package/RadioItem/index.js +2 -4
  149. package/Section/index.d.ts +10 -0
  150. package/{HeaderSubtitle → Section}/index.js +6 -5
  151. package/Section/index.test.js +15 -0
  152. package/SectionBreak/index.d.ts +13 -5
  153. package/SingleCharacterInputItem/index.d.ts +16 -10
  154. package/StepNavAccordionHeadingText/index.d.ts +16 -10
  155. package/StepNavAccordionSummaryHeading/index.d.ts +11 -4
  156. package/StepNavCircleNumber/index.d.ts +7 -4
  157. package/SummaryList/index.d.ts +7 -4
  158. package/SummaryListItem/index.d.ts +7 -4
  159. package/SvgIcon/index.d.ts +20 -6
  160. package/Table/__snapshots__/index.test.tsx.snap +7 -7
  161. package/Table/index.d.ts +37 -24
  162. package/Table/index.js +4 -5
  163. package/Table/index.test.js +5 -5
  164. package/TableBody/index.d.ts +7 -3
  165. package/TableCaption/index.d.ts +9 -4
  166. package/TableContainer/index.d.ts +5 -2
  167. package/TableDataCell/index.d.ts +7 -4
  168. package/TableHeadCell/index.d.ts +17 -8
  169. package/TableRow/__snapshots__/index.test.tsx.snap +34 -0
  170. package/TableRow/index.d.ts +15 -4
  171. package/TableRow/index.js +5 -4
  172. package/TableRow/index.test.js +16 -0
  173. package/TabsHeading/index.d.ts +7 -4
  174. package/TabsListItem/index.d.ts +6 -4
  175. package/TabsPanel/index.d.ts +6 -4
  176. package/TaskListItemHeading/index.d.ts +11 -4
  177. package/TaskListItemTag/index.d.ts +5 -2
  178. package/TextArea/index.d.ts +5 -3
  179. package/TextInput/index.d.ts +22 -8
  180. package/Timeline/index.d.ts +5 -2
  181. package/TimelineHeading/index.d.ts +11 -4
  182. package/es/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
  183. package/es/Checkbox/index.js +3 -3
  184. package/es/Checkbox/index.test.js +2 -2
  185. package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
  186. package/es/CheckboxItem/index.js +4 -6
  187. package/es/CheckboxItem/index.test.js +2 -2
  188. package/es/ChipKeyValue/index.test.js +9 -0
  189. package/es/ChipSectionWrapper/index.js +1 -1
  190. package/es/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
  191. package/{esm/ChoiceDivider → es/ChoiceDividerText}/index.js +7 -7
  192. package/{esm/ChoiceDivider → es/ChoiceDividerText}/index.test.js +2 -4
  193. package/es/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
  194. package/es/CircularProgress/index.js +4 -4
  195. package/es/CircularProgress/index.test.js +8 -8
  196. package/es/Container/__snapshots__/index.test.tsx.snap +6 -6
  197. package/es/Container/index.js +5 -5
  198. package/es/Container/index.test.js +1 -1
  199. package/es/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
  200. package/es/CopyToClipboardContainer/index.js +7 -4
  201. package/es/CopyToClipboardContainer/index.spec.js +2 -1
  202. package/es/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
  203. package/es/CopyToClipboardMessage/index.js +3 -4
  204. package/es/CopyToClipboardMessage/index.test.js +2 -8
  205. package/es/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
  206. package/es/CopyrightContainer/index.js +1 -1
  207. package/es/DrawerHeading/index.js +6 -9
  208. package/es/DropdownBase/index.js +0 -1
  209. package/es/ErrorSummary/index.js +8 -8
  210. package/es/FieldsetLegend/index.js +2 -2
  211. package/es/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
  212. package/es/FooterContainer/index.js +1 -1
  213. package/es/Hidden/__snapshots__/index.test.tsx.snap +96 -0
  214. package/es/Hidden/index.js +5 -9
  215. package/es/LinkBase/index.js +3 -2
  216. package/es/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
  217. package/es/LoaderContainer/index.js +1 -1
  218. package/es/Masthead/__snapshots__/index.test.tsx.snap +3 -3
  219. package/es/Masthead/index.js +1 -1
  220. package/es/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
  221. package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
  222. package/es/NavMenuContainer/index.js +1 -1
  223. package/es/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
  224. package/es/NotificationBannerContainer/index.js +6 -5
  225. package/es/NotificationBannerContainer/index.test.js +2 -10
  226. package/es/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
  227. package/es/NotificationBannerHeader/index.js +5 -1
  228. package/es/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
  229. package/es/NotificationBannerHeading/index.js +4 -3
  230. package/es/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
  231. package/es/NotificationBannerLink/index.js +3 -7
  232. package/es/PageTitleHeading/index.js +7 -8
  233. package/es/Panel/__snapshots__/index.test.tsx.snap +16 -0
  234. package/es/Panel/index.js +24 -0
  235. package/es/Panel/index.test.js +9 -0
  236. package/{esm/ConfirmationBody → es/PanelBody}/__snapshots__/index.test.tsx.snap +3 -3
  237. package/{esm/ConfirmationBody → es/PanelBody}/index.js +3 -3
  238. package/es/PanelBody/index.test.js +9 -0
  239. package/{src/ConfirmationBody → es/PanelTitle}/__snapshots__/index.test.tsx.snap +3 -3
  240. package/{esm/ConfirmationTitle → es/PanelTitle}/index.js +3 -3
  241. package/es/PanelTitle/index.test.js +9 -0
  242. package/es/Paragraph/index.js +5 -12
  243. package/es/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
  244. package/es/RadioContainer/index.js +4 -4
  245. package/es/RadioContainer/index.test.js +8 -0
  246. package/es/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
  247. package/es/RadioItem/index.js +2 -4
  248. package/es/{PageTitle → Section}/index.js +4 -3
  249. package/es/Section/index.test.js +9 -0
  250. package/es/Table/__snapshots__/index.test.tsx.snap +7 -7
  251. package/es/Table/index.js +4 -5
  252. package/es/Table/index.test.js +5 -5
  253. package/es/TableDataCell/index.js +1 -1
  254. package/es/TableRow/__snapshots__/index.test.tsx.snap +34 -0
  255. package/es/TableRow/index.js +5 -4
  256. package/es/TableRow/index.test.js +16 -0
  257. package/es/index.js +5 -8
  258. package/es/registry.js +10 -16
  259. package/esm/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
  260. package/esm/Checkbox/index.js +3 -3
  261. package/esm/Checkbox/index.test.js +2 -2
  262. package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
  263. package/esm/CheckboxItem/index.js +4 -6
  264. package/esm/CheckboxItem/index.test.js +2 -2
  265. package/esm/ChipKeyValue/index.test.js +9 -0
  266. package/esm/ChipSectionWrapper/index.js +1 -1
  267. package/esm/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
  268. package/{es/ChoiceDivider → esm/ChoiceDividerText}/index.js +7 -7
  269. package/{es/ChoiceDivider → esm/ChoiceDividerText}/index.test.js +2 -4
  270. package/esm/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
  271. package/esm/CircularProgress/index.js +4 -4
  272. package/esm/CircularProgress/index.test.js +8 -8
  273. package/esm/Container/__snapshots__/index.test.tsx.snap +6 -6
  274. package/esm/Container/index.js +5 -5
  275. package/esm/Container/index.test.js +1 -1
  276. package/esm/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
  277. package/esm/CopyToClipboardContainer/index.js +7 -4
  278. package/esm/CopyToClipboardContainer/index.spec.js +2 -1
  279. package/esm/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
  280. package/esm/CopyToClipboardMessage/index.js +3 -4
  281. package/esm/CopyToClipboardMessage/index.test.js +2 -8
  282. package/esm/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
  283. package/esm/CopyrightContainer/index.js +1 -1
  284. package/esm/DrawerHeading/index.js +6 -9
  285. package/esm/DropdownBase/index.js +0 -1
  286. package/esm/ErrorSummary/index.js +8 -8
  287. package/esm/FieldsetLegend/index.js +2 -2
  288. package/esm/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
  289. package/esm/FooterContainer/index.js +1 -1
  290. package/esm/Hidden/__snapshots__/index.test.tsx.snap +96 -0
  291. package/esm/Hidden/index.js +5 -9
  292. package/esm/LinkBase/index.js +3 -2
  293. package/esm/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
  294. package/esm/LoaderContainer/index.js +1 -1
  295. package/esm/Masthead/__snapshots__/index.test.tsx.snap +3 -3
  296. package/esm/Masthead/index.js +1 -1
  297. package/esm/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
  298. package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
  299. package/esm/NavMenuContainer/index.js +1 -1
  300. package/esm/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
  301. package/esm/NotificationBannerContainer/index.js +6 -5
  302. package/esm/NotificationBannerContainer/index.test.js +2 -10
  303. package/esm/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
  304. package/esm/NotificationBannerHeader/index.js +5 -1
  305. package/esm/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
  306. package/esm/NotificationBannerHeading/index.js +4 -3
  307. package/esm/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
  308. package/esm/NotificationBannerLink/index.js +3 -7
  309. package/esm/PageTitleHeading/index.js +7 -8
  310. package/esm/Panel/__snapshots__/index.test.tsx.snap +16 -0
  311. package/esm/Panel/index.js +24 -0
  312. package/esm/Panel/index.test.js +9 -0
  313. package/esm/PanelBody/__snapshots__/index.test.tsx.snap +16 -0
  314. package/{es/ConfirmationBody → esm/PanelBody}/index.js +3 -3
  315. package/esm/PanelBody/index.test.js +9 -0
  316. package/esm/PanelTitle/__snapshots__/index.test.tsx.snap +16 -0
  317. package/{es/ConfirmationTitle → esm/PanelTitle}/index.js +3 -3
  318. package/esm/PanelTitle/index.test.js +9 -0
  319. package/esm/Paragraph/index.js +5 -12
  320. package/esm/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
  321. package/esm/RadioContainer/index.js +4 -4
  322. package/esm/RadioContainer/index.test.js +8 -0
  323. package/esm/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
  324. package/esm/RadioItem/index.js +2 -4
  325. package/{es/HeaderSubtitle → esm/Section}/index.js +4 -3
  326. package/esm/Section/index.test.js +9 -0
  327. package/esm/Table/__snapshots__/index.test.tsx.snap +7 -7
  328. package/esm/Table/index.js +4 -5
  329. package/esm/Table/index.test.js +5 -5
  330. package/esm/TableDataCell/index.js +1 -1
  331. package/esm/TableRow/__snapshots__/index.test.tsx.snap +34 -0
  332. package/esm/TableRow/index.js +5 -4
  333. package/esm/TableRow/index.test.js +16 -0
  334. package/esm/index.js +6 -9
  335. package/esm/registry.js +10 -16
  336. package/index.d.ts +5 -8
  337. package/index.js +16 -68
  338. package/package.json +3 -3
  339. package/registry.d.ts +5 -8
  340. package/registry.js +14 -23
  341. package/src/AccessibilityMenu/index.tsx +6 -1
  342. package/src/AccessibilityMenuHeader/index.tsx +1 -2
  343. package/src/AccessibilityMenuOptionButton/index.tsx +6 -1
  344. package/src/AccessibilityMenuSteps/index.tsx +13 -3
  345. package/src/AccordionSection/index.tsx +6 -3
  346. package/src/AdminLayout/index.tsx +5 -1
  347. package/src/AutoCompleteInput/index.tsx +11 -6
  348. package/src/AutoCompleteResultList/index.tsx +15 -10
  349. package/src/AutoCompleteResultListItem/index.tsx +28 -20
  350. package/src/AutoCompleteWrapper/index.tsx +9 -3
  351. package/src/BreadcrumbsListItem/index.tsx +3 -2
  352. package/src/Button/index.tsx +15 -8
  353. package/src/ButtonLink/index.tsx +10 -6
  354. package/src/Card/index.tsx +19 -12
  355. package/src/Checkbox/__snapshots__/index.test.tsx.snap +4 -4
  356. package/src/Checkbox/index.test.tsx +2 -2
  357. package/src/Checkbox/index.tsx +9 -6
  358. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +10 -14
  359. package/src/CheckboxItem/index.test.tsx +2 -2
  360. package/src/CheckboxItem/index.tsx +6 -6
  361. package/src/Chip/index.tsx +4 -1
  362. package/src/ChipKeyValue/index.test.tsx +8 -0
  363. package/src/ChipKeyValue/index.tsx +2 -2
  364. package/src/ChipSection/index.tsx +5 -1
  365. package/src/ChipSectionWrapper/index.tsx +3 -3
  366. package/src/{ChoiceDivider → ChoiceDividerText}/__snapshots__/index.test.tsx.snap +4 -6
  367. package/src/ChoiceDividerText/index.test.tsx +8 -0
  368. package/src/{ChoiceDivider → ChoiceDividerText}/index.tsx +7 -9
  369. package/src/CircularProgress/__snapshots__/index.test.tsx.snap +20 -20
  370. package/src/CircularProgress/index.test.tsx +8 -8
  371. package/src/CircularProgress/index.tsx +20 -17
  372. package/src/Container/__snapshots__/index.test.tsx.snap +6 -6
  373. package/src/Container/index.test.tsx +1 -1
  374. package/src/Container/index.tsx +15 -9
  375. package/src/CopyToClipboardContainer/__snapshots__/index.spec.tsx.snap +11 -10
  376. package/src/CopyToClipboardContainer/index.spec.tsx +2 -1
  377. package/src/CopyToClipboardContainer/index.tsx +18 -8
  378. package/src/CopyToClipboardMessage/__snapshots__/index.test.tsx.snap +14 -20
  379. package/src/CopyToClipboardMessage/index.test.tsx +4 -4
  380. package/src/CopyToClipboardMessage/index.tsx +8 -18
  381. package/src/CopyrightContainer/__snapshots__/index.test.tsx.snap +2 -2
  382. package/src/CopyrightContainer/index.tsx +2 -2
  383. package/src/DateInputItem/index.tsx +11 -6
  384. package/src/Details/index.tsx +1 -1
  385. package/src/DetailsSummary/index.tsx +4 -2
  386. package/src/Drawer/index.tsx +20 -10
  387. package/src/DrawerHeading/index.tsx +9 -26
  388. package/src/DropdownBase/index.tsx +16 -10
  389. package/src/DropdownButton/index.tsx +28 -16
  390. package/src/ErrorSummary/index.tsx +12 -11
  391. package/src/FieldContainer/index.tsx +4 -2
  392. package/src/FieldsetLegend/index.tsx +29 -23
  393. package/src/FileUpload/index.tsx +5 -2
  394. package/src/FileUploadContainer/index.tsx +5 -2
  395. package/src/FilterCloseButton/index.tsx +5 -4
  396. package/src/FilterOptionsSection/index.tsx +5 -1
  397. package/src/FilterSection/index.tsx +21 -9
  398. package/src/FilterSelectedSection/index.tsx +5 -1
  399. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +2 -2
  400. package/src/FooterContainer/index.tsx +9 -7
  401. package/src/FooterHeading/index.tsx +7 -4
  402. package/src/FooterList/index.tsx +5 -3
  403. package/src/FooterMetaItem/index.tsx +5 -3
  404. package/src/Form/index.tsx +6 -1
  405. package/src/Grid/index.tsx +47 -9
  406. package/src/HeaderLogo/index.tsx +6 -4
  407. package/src/HeaderSecondaryLogo/index.tsx +6 -4
  408. package/src/Heading/index.tsx +12 -6
  409. package/src/HeadingCaption/index.tsx +7 -3
  410. package/src/HellenicRepublicLogo/index.tsx +5 -3
  411. package/src/Hidden/__snapshots__/index.test.tsx.snap +96 -0
  412. package/src/Hidden/index.tsx +34 -9
  413. package/src/Hint/index.tsx +6 -3
  414. package/src/KitchenSinkContent/index.tsx +7 -4
  415. package/src/LabelTitle/index.tsx +13 -6
  416. package/src/LabeledText/index.tsx +5 -3
  417. package/src/Layout/index.tsx +6 -1
  418. package/src/LinkBase/index.tsx +7 -5
  419. package/src/List/index.tsx +15 -6
  420. package/src/LoaderContainer/__snapshots__/index.test.tsx.snap +2 -2
  421. package/src/LoaderContainer/index.tsx +2 -2
  422. package/src/Masthead/__snapshots__/index.test.tsx.snap +3 -3
  423. package/src/Masthead/index.tsx +9 -6
  424. package/src/MastheadLogo/__snapshots__/index.test.tsx.snap +16 -0
  425. package/src/ModalContainer/index.tsx +5 -1
  426. package/src/Nav/index.tsx +31 -16
  427. package/src/NavList/index.tsx +6 -3
  428. package/src/NavListItemButton/index.tsx +14 -9
  429. package/src/NavListItemLink/index.tsx +6 -4
  430. package/src/NavMenu/index.tsx +12 -7
  431. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +2 -2
  432. package/src/NavMenuContainer/index.tsx +7 -4
  433. package/src/NavVerticalItem/index.tsx +5 -3
  434. package/src/NormalText/index.tsx +58 -43
  435. package/src/NotificationBannerContainer/__snapshots__/index.test.tsx.snap +4 -27
  436. package/src/NotificationBannerContainer/index.test.tsx +2 -11
  437. package/src/NotificationBannerContainer/index.tsx +11 -6
  438. package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +16 -3
  439. package/src/NotificationBannerHeader/index.tsx +6 -2
  440. package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +13 -7
  441. package/src/NotificationBannerHeading/index.tsx +6 -5
  442. package/src/NotificationBannerLink/__snapshots__/index.test.tsx.snap +23 -16
  443. package/src/NotificationBannerLink/index.tsx +5 -7
  444. package/src/PageTitleHeading/index.tsx +6 -24
  445. package/src/Pagination/index.tsx +6 -3
  446. package/src/PaginationListItem/index.tsx +13 -6
  447. package/src/Panel/__snapshots__/index.test.tsx.snap +16 -0
  448. package/src/Panel/index.test.tsx +8 -0
  449. package/src/Panel/index.tsx +34 -0
  450. package/src/PanelBody/__snapshots__/index.test.tsx.snap +16 -0
  451. package/src/PanelBody/index.test.tsx +8 -0
  452. package/src/PanelBody/index.tsx +27 -0
  453. package/src/PanelTitle/__snapshots__/index.test.tsx.snap +16 -0
  454. package/src/PanelTitle/index.test.tsx +8 -0
  455. package/src/PanelTitle/index.tsx +27 -0
  456. package/src/Paragraph/index.tsx +8 -48
  457. package/src/PhaseBanner/index.tsx +6 -3
  458. package/src/RadioContainer/__snapshots__/index.test.tsx.snap +17 -0
  459. package/src/RadioContainer/index.test.tsx +3 -0
  460. package/src/RadioContainer/index.tsx +9 -6
  461. package/src/RadioItem/__snapshots__/index.test.tsx.snap +8 -12
  462. package/src/RadioItem/index.tsx +6 -6
  463. package/src/Section/index.test.tsx +8 -0
  464. package/src/Section/index.tsx +20 -0
  465. package/src/SectionBreak/index.tsx +13 -5
  466. package/src/SingleCharacterInputItem/index.tsx +16 -10
  467. package/src/StepNavAccordionHeadingText/index.tsx +16 -10
  468. package/src/StepNavAccordionSummaryHeading/index.tsx +11 -4
  469. package/src/StepNavCircleNumber/index.tsx +7 -4
  470. package/src/SummaryList/index.tsx +7 -4
  471. package/src/SummaryListItem/index.tsx +7 -4
  472. package/src/SvgIcon/index.tsx +20 -6
  473. package/src/Table/__snapshots__/index.test.tsx.snap +7 -7
  474. package/src/Table/index.test.tsx +5 -5
  475. package/src/Table/index.tsx +40 -27
  476. package/src/TableBody/index.tsx +7 -3
  477. package/src/TableCaption/index.tsx +9 -4
  478. package/src/TableContainer/index.tsx +5 -2
  479. package/src/TableDataCell/index.tsx +8 -4
  480. package/src/TableHeadCell/index.tsx +17 -8
  481. package/src/TableRow/__snapshots__/index.test.tsx.snap +34 -0
  482. package/src/TableRow/index.test.tsx +7 -0
  483. package/src/TableRow/index.tsx +18 -5
  484. package/src/TabsHeading/index.tsx +7 -4
  485. package/src/TabsListItem/index.tsx +6 -4
  486. package/src/TabsPanel/index.tsx +6 -4
  487. package/src/TaskListItemHeading/index.tsx +11 -4
  488. package/src/TaskListItemTag/index.tsx +5 -2
  489. package/src/TextArea/index.tsx +5 -3
  490. package/src/TextInput/index.tsx +22 -8
  491. package/src/Timeline/index.tsx +5 -2
  492. package/src/TimelineHeading/index.tsx +11 -4
  493. package/src/index.ts +5 -8
  494. package/src/registry.js +10 -16
  495. package/ChoiceDivider/index.d.ts +0 -11
  496. package/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
  497. package/Confirmation/index.d.ts +0 -9
  498. package/Confirmation/index.test.js +0 -15
  499. package/ConfirmationBody/index.d.ts +0 -9
  500. package/ConfirmationBody/index.test.js +0 -15
  501. package/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
  502. package/ConfirmationTitle/index.test.js +0 -15
  503. package/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
  504. package/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
  505. package/HeaderSubtitle/index.d.ts +0 -9
  506. package/HeaderSubtitle/index.test.js +0 -15
  507. package/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
  508. package/PageTitle/index.js +0 -38
  509. package/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
  510. package/PageTitleCaption/index.d.ts +0 -14
  511. package/PageTitleCaption/index.js +0 -40
  512. package/PageTitleCaption/index.test.d.ts +0 -1
  513. package/PageTitleCaption/index.test.js +0 -39
  514. package/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
  515. package/PageTitleSection/index.d.ts +0 -10
  516. package/PageTitleSection/index.js +0 -39
  517. package/PageTitleSection/index.test.d.ts +0 -1
  518. package/PageTitleSection/index.test.js +0 -15
  519. package/es/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
  520. package/es/Confirmation/index.js +0 -22
  521. package/es/Confirmation/index.test.js +0 -9
  522. package/es/ConfirmationBody/index.test.js +0 -9
  523. package/es/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
  524. package/es/ConfirmationTitle/index.test.js +0 -9
  525. package/es/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
  526. package/es/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
  527. package/es/HeaderSubtitle/index.test.js +0 -9
  528. package/es/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
  529. package/es/PageTitle/index.test.js +0 -9
  530. package/es/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
  531. package/es/PageTitleCaption/index.js +0 -24
  532. package/es/PageTitleCaption/index.test.js +0 -33
  533. package/es/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
  534. package/es/PageTitleSection/index.js +0 -23
  535. package/es/PageTitleSection/index.test.js +0 -9
  536. package/esm/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
  537. package/esm/Confirmation/index.js +0 -22
  538. package/esm/Confirmation/index.test.js +0 -9
  539. package/esm/ConfirmationBody/index.test.js +0 -9
  540. package/esm/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
  541. package/esm/ConfirmationTitle/index.test.js +0 -9
  542. package/esm/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
  543. package/esm/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
  544. package/esm/HeaderSubtitle/index.js +0 -22
  545. package/esm/HeaderSubtitle/index.test.js +0 -9
  546. package/esm/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
  547. package/esm/PageTitle/index.js +0 -22
  548. package/esm/PageTitle/index.test.js +0 -9
  549. package/esm/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
  550. package/esm/PageTitleCaption/index.js +0 -24
  551. package/esm/PageTitleCaption/index.test.js +0 -33
  552. package/esm/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
  553. package/esm/PageTitleSection/index.js +0 -23
  554. package/esm/PageTitleSection/index.test.js +0 -9
  555. package/src/ChoiceDivider/index.test.tsx +0 -8
  556. package/src/Confirmation/__snapshots__/index.test.tsx.snap +0 -16
  557. package/src/Confirmation/index.test.tsx +0 -8
  558. package/src/Confirmation/index.tsx +0 -27
  559. package/src/ConfirmationBody/index.test.tsx +0 -8
  560. package/src/ConfirmationBody/index.tsx +0 -27
  561. package/src/ConfirmationTitle/__snapshots__/index.test.tsx.snap +0 -16
  562. package/src/ConfirmationTitle/index.test.tsx +0 -8
  563. package/src/ConfirmationTitle/index.tsx +0 -27
  564. package/src/ErrorSummary/__snapshots__/index.test.tsx.snap +0 -16
  565. package/src/HeaderSubtitle/__snapshots__/index.test.tsx.snap +0 -16
  566. package/src/HeaderSubtitle/index.test.tsx +0 -8
  567. package/src/HeaderSubtitle/index.tsx +0 -20
  568. package/src/PageTitle/__snapshots__/index.test.tsx.snap +0 -16
  569. package/src/PageTitle/index.test.tsx +0 -8
  570. package/src/PageTitle/index.tsx +0 -19
  571. package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +0 -67
  572. package/src/PageTitleCaption/index.test.tsx +0 -26
  573. package/src/PageTitleCaption/index.tsx +0 -38
  574. package/src/PageTitleSection/__snapshots__/index.test.tsx.snap +0 -16
  575. package/src/PageTitleSection/index.test.tsx +0 -8
  576. package/src/PageTitleSection/index.tsx +0 -21
  577. /package/{ChoiceDivider → ChipKeyValue}/index.test.d.ts +0 -0
  578. /package/{Confirmation → ChoiceDividerText}/index.test.d.ts +0 -0
  579. /package/{ConfirmationBody → Panel}/index.test.d.ts +0 -0
  580. /package/{ConfirmationTitle → PanelBody}/index.test.d.ts +0 -0
  581. /package/{HeaderSubtitle → PanelTitle}/index.test.d.ts +0 -0
  582. /package/{PageTitle → Section}/index.test.d.ts +0 -0
@@ -4,15 +4,29 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface SvgIconProps extends BaseProps<'svg'> {
6
6
  /**
7
- * size prop declares the size of the svg icon.
8
- * size is optional. The default value is 'md'.
9
- */
7
+ * size prop declares the size of the svg icon.
8
+ * size is optional. The default value is 'md'.
9
+ * @value 'sm'
10
+ * @value 'md'
11
+ * @value 'lg'
12
+ * @value 'xl'
13
+ * @value 'xxl'
14
+ */
10
15
  size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
11
16
 
12
17
  /**
13
- * variant property styles svg icon with Gov.gr palette's basic colors.
14
- * variant property is optional.
15
- */
18
+ * variant property styles svg icon with Gov.gr palette's basic colors.
19
+ * variant property is optional.
20
+ * @value 'dark'
21
+ * @value 'light'
22
+ * @value 'gray'
23
+ * @value 'primary'
24
+ * @value 'success'
25
+ * @value 'warning'
26
+ * @value 'error'
27
+ * @value 'focus'
28
+ * @value 'link'
29
+ */
16
30
  variant?:
17
31
  | 'dark'
18
32
  | 'light'
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the Table with dark variant prop 1`] = `
3
+ exports[`renders the Table with dark headerVariant prop 1`] = `
4
4
  <ForwardRef(Table)
5
- variant="dark"
5
+ headerVariant="dark"
6
6
  >
7
7
  <ForwardRef(Base)
8
8
  as="table"
@@ -17,9 +17,9 @@ exports[`renders the Table with dark variant prop 1`] = `
17
17
  </ForwardRef(Table)>
18
18
  `;
19
19
 
20
- exports[`renders the Table with light variant prop 1`] = `
20
+ exports[`renders the Table with light headerVariant prop 1`] = `
21
21
  <ForwardRef(Table)
22
- variant="light"
22
+ headerVariant="light"
23
23
  >
24
24
  <ForwardRef(Base)
25
25
  as="table"
@@ -51,7 +51,7 @@ exports[`renders the Table with no props 1`] = `
51
51
 
52
52
  exports[`renders the Table with zebra prop 1`] = `
53
53
  <ForwardRef(Table)
54
- zebra={true}
54
+ variant="zebra"
55
55
  >
56
56
  <ForwardRef(Base)
57
57
  as="table"
@@ -72,10 +72,10 @@ exports[`renders the Table with zebra prop 2`] = `
72
72
  >
73
73
  <ForwardRef(Base)
74
74
  as="table"
75
- className="govgr-table--vertical-header govgr-table--vertical-lines govgr-table"
75
+ className="govgr-table--vertical-lines govgr-table"
76
76
  >
77
77
  <table
78
- className="govgr-table--vertical-header govgr-table--vertical-lines govgr-table"
78
+ className="govgr-table--vertical-lines govgr-table"
79
79
  >
80
80
  hello
81
81
  </table>
@@ -7,16 +7,16 @@ it('renders the Table with no props', () => {
7
7
  expect(mount(<Table>hello</Table>)).toMatchSnapshot();
8
8
  });
9
9
 
10
- it('renders the Table with dark variant prop', () => {
11
- expect(mount(<Table variant="dark">hello</Table>)).toMatchSnapshot();
10
+ it('renders the Table with dark headerVariant prop', () => {
11
+ expect(mount(<Table headerVariant="dark">hello</Table>)).toMatchSnapshot();
12
12
  });
13
13
 
14
- it('renders the Table with light variant prop', () => {
15
- expect(mount(<Table variant="light">hello</Table>)).toMatchSnapshot();
14
+ it('renders the Table with light headerVariant prop', () => {
15
+ expect(mount(<Table headerVariant="light">hello</Table>)).toMatchSnapshot();
16
16
  });
17
17
 
18
18
  it('renders the Table with zebra prop', () => {
19
- expect(mount(<Table zebra>hello</Table>)).toMatchSnapshot();
19
+ expect(mount(<Table variant='zebra'>hello</Table>)).toMatchSnapshot();
20
20
  });
21
21
 
22
22
  it('renders the Table with zebra prop', () => {
@@ -4,36 +4,49 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableProps extends BaseProps<'table'> {
6
6
  /**
7
- * variant is optional.
8
- * The `variant` prop is used to either give blue background color to th tags
9
- * or a light grey background.
10
- * Default value is undefined which results to an opaque background color.
11
- */
12
- variant?: 'dark' | 'light';
7
+ * headerVariant is optional.
8
+ * The `headerVariant` prop is used to either give blue background color to th tags
9
+ * or a light grey background.
10
+ * Default value is undefined which results to an opaque background color.
11
+ * @value 'dark'
12
+ * @value 'light'
13
+ */
14
+ headerVariant?: 'dark' | 'light';
13
15
  /**
14
- * dense is optional.
15
- * The dense prop is used to make font size smaller and give
16
- * extra padding.
17
- */
16
+ * dense is optional.
17
+ * The dense prop is used to make font size smaller and give
18
+ * extra padding.
19
+ * @value true
20
+ * @value false
21
+ * @default false
22
+ */
18
23
  dense?: boolean;
19
24
  /**
20
- * zebra is optional.
21
- * The zebra prop is used to make zebra table lines.
22
- * Default value is false.
23
- */
24
- zebra?: boolean;
25
- /**
26
- * verticalBorders is optional.
27
- * The verticalBorders prop gives extra vertical lines to the table.
28
- * Default value is false.
25
+ * verticalBorders is optional.
26
+ * The verticalBorders prop gives extra vertical lines to the table.
27
+ * @value true
28
+ * @value false
29
+ * @default false
29
30
  */
30
31
  verticalBorders?: boolean;
31
32
  /**
32
- * stacked is optional.
33
- * The stacked prop gives responsiveness to the table. If used, make sure to add "data-label" to TableDataCell components.
34
- * Default value is never.
35
- */
33
+ * stacked is optional.
34
+ * The stacked prop gives responsiveness to the table. If used, make sure to add "data-label" to TableDataCell components.
35
+ * Default value is never.
36
+ * @value 'always'
37
+ * @value 'sm'
38
+ * @value 'md'
39
+ * @value 'never'
40
+ * @default 'never'
41
+ */
36
42
  stacked?: 'always' | 'sm' | 'md' | 'never';
43
+ /**
44
+ * variant is optional.
45
+ * @value 'default'
46
+ * @value 'zebra' is used to make zebra table lines. If you have 'zebra' variant, color prop to TableRow component adds nothing.
47
+ * @default 'default'
48
+ */
49
+ variant?: 'zebra' | 'default';
37
50
  }
38
51
  /**
39
52
  * Table component is used to wrap the sub components of a table
@@ -41,8 +54,8 @@ export interface TableProps extends BaseProps<'table'> {
41
54
  export const Table = React.forwardRef<HTMLTableElement, TableProps>(
42
55
  function Table(
43
56
  {
57
+ headerVariant,
44
58
  variant,
45
- zebra = false,
46
59
  dense = false,
47
60
  verticalBorders = false,
48
61
  stacked = 'never',
@@ -61,10 +74,10 @@ export const Table = React.forwardRef<HTMLTableElement, TableProps>(
61
74
  'govgr-table--stacked-always': stacked === 'always',
62
75
  'govgr-table--stacked-sm': stacked === 'sm',
63
76
  'govgr-table--stacked-md': stacked == 'md',
64
- 'govgr-table--dark': variant === 'dark',
65
- 'govgr-table--light': variant === 'light',
66
- 'govgr-table--zebra': zebra,
77
+ 'govgr-table--dark': headerVariant === 'dark',
78
+ 'govgr-table--light': headerVariant === 'light',
67
79
  'govgr-table--dense': dense,
80
+ 'govgr-table--zebra': variant === 'zebra',
68
81
  'govgr-table--vertical-lines': verticalBorders,
69
82
  })}
70
83
  {...props}
@@ -4,9 +4,13 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableBodyProps extends BaseProps<'tbody'> {
6
6
  /**
7
- * verticalAlign is optional. Default value is 'middle'.
8
- * This prop set the vertical align of the body's content.
9
- */
7
+ * verticalAlign is optional. Default value is 'middle'.
8
+ * This prop set the vertical align of the body's content.
9
+ * @value 'middle'
10
+ * @value 'top'
11
+ * @value 'bottom'
12
+ * @default 'middle'
13
+ */
10
14
  verticalAlign?: 'middle' | 'top' | 'bottom';
11
15
  }
12
16
  /**
@@ -4,10 +4,15 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableCaptionProps extends BaseProps<'caption'> {
6
6
  /**
7
- * size is optional.
8
- * The props are 'sm' for small, 'md' for medium, 'lg' for large and 'xl' for extra large .
9
- * Default value is 'md'.
10
- */
7
+ * size is optional.
8
+ * The props are 'sm' for small, 'md' for medium, 'lg' for large and 'xl' for extra large .
9
+ * Default value is 'md'.
10
+ * @value 'sm'
11
+ * @value 'md'
12
+ * @value 'lg'
13
+ * @value 'xl'
14
+ * @default 'md'
15
+ */
11
16
  size?: 'sm' | 'md' | 'lg' | 'xl';
12
17
  }
13
18
  /**
@@ -4,8 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableContainerProps extends BaseProps<'div'> {
6
6
  /**
7
- * border is optional. Set to true if you need a border for the Table.
8
- */
7
+ * border is optional. Set to true if you need a border for the Table.
8
+ * @value true
9
+ * @value false
10
+ * @default false
11
+ */
9
12
  border?: boolean;
10
13
  }
11
14
  /**
@@ -1,13 +1,17 @@
1
1
  import React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import Base, { BaseProps } from '@digigov/react-core/Base';
4
+ // import PhaseBannerTag from '@digigov/react-core/PhaseBannerTag';
4
5
 
5
6
  export interface TableDataCellProps extends BaseProps<'td'> {
6
7
  /**
7
- * dataType is optional.
8
- * Use numeric value when comparing columns of numbers, align the numbers to the right in table cells
9
- * Default value is text which aligns texts to the center
10
- */
8
+ * dataType is optional.
9
+ * Use numeric value when comparing columns of numbers, align the numbers to the right in table cells
10
+ * Default value is text which aligns texts to the center
11
+ * @value 'text'
12
+ * @value 'numeric'
13
+ * @default 'text'
14
+ */
11
15
  dataType?: 'text' | 'numeric';
12
16
  }
13
17
  /**
@@ -4,16 +4,25 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableHeadCellProps extends BaseProps<'th'> {
6
6
  /**
7
- * dataType is optional.
8
- * Use numeric value prop when comparing columns of numbers, align the numbers to the right in table cells.
9
- * Default value is text which aligns texts to the center
10
- */
7
+ * dataType is optional.
8
+ * Use numeric value prop when comparing columns of numbers, align the numbers to the right in table cells.
9
+ * Default value is text which aligns texts to the center
10
+ * @value 'text'
11
+ * @value 'numeric'
12
+ * @default 'text'
13
+ */
11
14
  dataType?: 'text' | 'numeric';
12
15
  /**
13
- * cellWidth is optional.
14
- * Use cellWidth prop to define a custom width for a specific reference number in your table cell.
15
- *
16
- */
16
+ * cellWidth is optional.
17
+ * Use cellWidth prop to define a custom width for a specific reference number in your table cell.
18
+ *
19
+ * @value 'one-quarter'
20
+ * @value 'one-third'
21
+ * @value 'one-half'
22
+ * @value 'two-thirds'
23
+ * @value 'three-quarters'
24
+ * @value 'full'
25
+ */
17
26
  cellWidth?:
18
27
  | 'one-quarter'
19
28
  | 'one-third'
@@ -1,5 +1,39 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`renders the Table with color="secondary" prop 1`] = `
4
+ <ForwardRef(TableRow)
5
+ color="secondary"
6
+ >
7
+ <ForwardRef(Base)
8
+ as="tr"
9
+ className="govgr-table__row--secondary govgr-table__row"
10
+ >
11
+ <tr
12
+ className="govgr-table__row--secondary govgr-table__row"
13
+ >
14
+ hello
15
+ </tr>
16
+ </ForwardRef(Base)>
17
+ </ForwardRef(TableRow)>
18
+ `;
19
+
20
+ exports[`renders the Table with highlight prop 1`] = `
21
+ <ForwardRef(TableRow)
22
+ highlight={true}
23
+ >
24
+ <ForwardRef(Base)
25
+ as="tr"
26
+ className="govgr-table__row--highlight govgr-table__row"
27
+ >
28
+ <tr
29
+ className="govgr-table__row--highlight govgr-table__row"
30
+ >
31
+ hello
32
+ </tr>
33
+ </ForwardRef(Base)>
34
+ </ForwardRef(TableRow)>
35
+ `;
36
+
3
37
  exports[`renders the Table with no props 1`] = `
4
38
  <ForwardRef(TableRow)>
5
39
  <ForwardRef(Base)
@@ -6,3 +6,10 @@ import TableRow from '@digigov/react-core/TableRow';
6
6
  it('renders the Table with no props', () => {
7
7
  expect(mount(<TableRow>hello</TableRow>)).toMatchSnapshot();
8
8
  });
9
+
10
+ it('renders the Table with highlight prop', () => {
11
+ expect(mount(<TableRow highlight>hello</TableRow>)).toMatchSnapshot();
12
+ });
13
+ it('renders the Table with color="secondary" prop', () => {
14
+ expect(mount(<TableRow color='secondary'>hello</TableRow>)).toMatchSnapshot();
15
+ });
@@ -4,23 +4,36 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TableRowProps extends BaseProps<'tr'> {
6
6
  /**
7
- * warning is optional. Default value is false.
8
- * Add the warning prop to add a warning line on the left of the row.
7
+ * highlight is optional.
8
+ * Add the highlight prop to add a highlight line on the left of the row.
9
+ * @value true
10
+ * @value false
11
+ * @default false
9
12
  */
10
- warning?: boolean;
13
+ highlight?: boolean;
14
+
15
+ /**
16
+ * color is optional.
17
+ * color doesn't apply if the Table parent component has the prop variant='zebra'.
18
+ * @value 'primary'
19
+ * @value 'secondary'
20
+ * @default 'primary'
21
+ */
22
+ color?: 'primary' | 'secondary';
11
23
  }
12
24
  /**
13
25
  * Use TableRow inside the Table component to provide a new row to the table.
14
26
  */
15
27
  export const TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(
16
- function TableRow({ warning = false, className, children, ...props }, ref) {
28
+ function TableRow({ highlight = false, color, className, children, ...props }, ref) {
17
29
  return (
18
30
  <Base
19
31
  as="tr"
20
32
  ref={ref}
21
33
  className={clsx(className, {
22
34
  'govgr-table__row': true,
23
- 'govgr-table__row--warning': warning,
35
+ 'govgr-table__row--highlight': highlight,
36
+ 'govgr-table__row--secondary': color ==='secondary',
24
37
  })}
25
38
  {...props}
26
39
  >
@@ -4,10 +4,13 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TabsHeadingProps extends BaseProps<'h6'> {
6
6
  /**
7
- * size is optional.
8
- * The values are 'md' for medium and 'sm' for small.
9
- * Default value is 'sm'.
10
- */
7
+ * size is optional.
8
+ * The values are 'md' for medium and 'sm' for small.
9
+ * Default value is 'sm'.
10
+ * @value 'md'
11
+ * @value 'sm'
12
+ * @default 'sm'
13
+ */
11
14
  size?: 'md' | 'sm';
12
15
  }
13
16
  /**
@@ -4,10 +4,12 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TabsListItemProps extends BaseProps<'a'> {
6
6
  /**
7
- * selected is optional.
8
- * Exaclty one TabsListItem should be selected every time.
9
- * This declares that this tab is selected.
10
- */
7
+ * selected is optional.
8
+ * Exaclty one TabsListItem should be selected every time.
9
+ * This declares that this tab is selected.
10
+ * @value true
11
+ * @value false
12
+ */
11
13
  selected?: boolean;
12
14
  }
13
15
  /**
@@ -4,10 +4,12 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TabsPanelProps extends BaseProps<'div'> {
6
6
  /**
7
- * active is optional.
8
- * Exaclty one TabsPanel should be active every time.
9
- * This declares that this content is active and should depend of the 'selected' TabsList.
10
- */
7
+ * active is optional.
8
+ * Exaclty one TabsPanel should be active every time.
9
+ * This declares that this content is active and should depend of the 'selected' TabsList.
10
+ * @value true
11
+ * @value false
12
+ */
11
13
  active?: boolean;
12
14
  }
13
15
  /**
@@ -4,12 +4,19 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TaskListItemHeadingProps extends BaseProps<'h2'> {
6
6
  /**
7
- * size is optional. 'lg' is the default value.
8
- */
7
+ * size is optional. 'lg' is the default value.
8
+ * @value 'lg'
9
+ * @value 'md'
10
+ * @value 'sm'
11
+ * @default 'lg'
12
+ */
9
13
  size?: 'lg' | 'md' | 'sm';
10
14
  /**
11
- * element is optional. 'h2' is the default value.
12
- */
15
+ * element is optional. 'h2' is the default value.
16
+ * @value 'h2'
17
+ * @value 'h3'
18
+ * @value 'h4'
19
+ */
13
20
  element?: 'h2' | 'h3' | 'h4';
14
21
  }
15
22
 
@@ -4,8 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TaskListItemTagProps extends BaseProps<'strong'> {
6
6
  /**
7
- * Set status to change the background color of the TaskListItemTag element.
8
- */
7
+ * Set status to change the background color of the TaskListItemTag element.
8
+ * @value 'completed'
9
+ * @value 'in-progress'
10
+ * @value 'not-started'
11
+ */
9
12
  status?: 'completed' | 'in-progress' | 'not-started';
10
13
  }
11
14
  /**
@@ -4,9 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TextAreaProps extends BaseProps<'textarea'> {
6
6
  /**
7
- * error is optional. The default value is false.
8
- * Use this prop when there is an error at the input.
9
- */
7
+ * error is optional. The default value is false.
8
+ * Use this prop when there is an error at the input.
9
+ * @value true
10
+ * @value false
11
+ */
10
12
  error?: boolean;
11
13
  }
12
14
  /**
@@ -4,14 +4,26 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TextInputProps extends BaseProps<'input'> {
6
6
  /**
7
- * characterWidth is optional.
8
- */
7
+ * characterWidth is optional.
8
+ * @value 2
9
+ * @value 3
10
+ * @value 4
11
+ * @value 5
12
+ * @value 10
13
+ * @value 20
14
+ */
9
15
  characterWidth?: 2 | 3 | 4 | 5 | 10 | 20;
10
16
 
11
17
  /**
12
- * cellWidth is optional.
13
- * Use cellWidth prop to define a custom width for a specific reference number in your components.
14
- */
18
+ * cellWidth is optional.
19
+ * Use cellWidth prop to define a custom width for a specific reference number in your components.
20
+ * @value 'one-quarter'
21
+ * @value 'one-third'
22
+ * @value 'one-half'
23
+ * @value 'two-thirds'
24
+ * @value 'three-quarters'
25
+ * @value 'full'
26
+ */
15
27
  cellWidth?:
16
28
  | 'one-quarter'
17
29
  | 'one-third'
@@ -21,9 +33,11 @@ export interface TextInputProps extends BaseProps<'input'> {
21
33
  | 'full';
22
34
 
23
35
  /**
24
- * error is optional. The default value is false.
25
- * Use this prop when there is an error at the input.
26
- */
36
+ * error is optional. The default value is false.
37
+ * Use this prop when there is an error at the input.
38
+ * @value true
39
+ * @value false
40
+ */
27
41
  error?: boolean;
28
42
  }
29
43
  /**
@@ -4,8 +4,11 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TimelineProps extends BaseProps<'ol'> {
6
6
  /**
7
- * spaced is optional. Use it to add space between the list items.
8
- */
7
+ * spaced is optional. Use it to add space between the list items.
8
+ * @value true
9
+ * @value false
10
+ * @default false
11
+ */
9
12
  spaced?: boolean;
10
13
  }
11
14
  /**
@@ -4,12 +4,19 @@ import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
5
  export interface TimelineHeadingProps extends BaseProps<'h2'> {
6
6
  /**
7
- * size is optional. 'lg' is the default value.
8
- */
7
+ * size is optional. 'lg' is the default value.
8
+ * @value 'lg'
9
+ * @value 'md'
10
+ * @value 'sm'
11
+ * @default 'lg'
12
+ */
9
13
  size?: 'lg' | 'md' | 'sm';
10
14
  /**
11
- * element is optional. 'h2' is the default value.
12
- */
15
+ * element is optional. 'h2' is the default value.
16
+ * @value 'h2'
17
+ * @value 'h3'
18
+ * @value 'h4'
19
+ */
13
20
  element?: 'h2' | 'h3' | 'h4';
14
21
  }
15
22
 
package/src/index.ts CHANGED
@@ -23,10 +23,10 @@ export * from '@digigov/react-core/TableSortIconContainer';
23
23
  export * from '@digigov/react-core/Checkbox';
24
24
  export * from '@digigov/react-core/CheckboxConditional';
25
25
  export * from '@digigov/react-core/CheckboxItem';
26
- export * from '@digigov/react-core/ChoiceDivider';
27
- export * from '@digigov/react-core/Confirmation';
28
- export * from '@digigov/react-core/ConfirmationBody';
29
- export * from '@digigov/react-core/ConfirmationTitle';
26
+ export * from '@digigov/react-core/ChoiceDividerText';
27
+ export * from '@digigov/react-core/Panel';
28
+ export * from '@digigov/react-core/PanelBody';
29
+ export * from '@digigov/react-core/PanelBody';
30
30
  export * from '@digigov/react-core/Container';
31
31
  export * from '@digigov/react-core/CopyrightContainer';
32
32
  export * from '@digigov/react-core/DateInputContainer';
@@ -62,7 +62,6 @@ export * from '@digigov/react-core/HeaderContent';
62
62
  export * from '@digigov/react-core/HeaderLogo';
63
63
  export * from '@digigov/react-core/HeaderSecondaryLogo';
64
64
  export * from '@digigov/react-core/HeaderSection';
65
- export * from '@digigov/react-core/HeaderSubtitle';
66
65
  export * from '@digigov/react-core/HeaderTitle';
67
66
  export * from '@digigov/react-core/Heading';
68
67
  export * from '@digigov/react-core/HeadingCaption';
@@ -97,10 +96,8 @@ export * from '@digigov/react-core/NotificationBannerContent';
97
96
  export * from '@digigov/react-core/NotificationBannerHeader';
98
97
  export * from '@digigov/react-core/NotificationBannerHeading';
99
98
  export * from '@digigov/react-core/NotificationBannerLink';
100
- export * from '@digigov/react-core/PageTitle';
101
- export * from '@digigov/react-core/PageTitleCaption';
99
+ export * from '@digigov/react-core/Section';
102
100
  export * from '@digigov/react-core/PageTitleHeading';
103
- export * from '@digigov/react-core/PageTitleSection';
104
101
  export * from '@digigov/react-core/Paragraph';
105
102
  export * from '@digigov/react-core/PhaseBannerHeaderContainer';
106
103
  export * from '@digigov/react-core/PhaseBanner';