@digigov/react-core 1.0.0-871b6be5 → 1.0.0-8ae63a77

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 (297) hide show
  1. package/Accordion/__snapshots__/index.test.tsx.snap +2 -2
  2. package/AdminAside/index.d.ts +1 -1
  3. package/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
  4. package/AdminContainer/index.d.ts +1 -1
  5. package/AdminMain/index.d.ts +1 -1
  6. package/AdminTopSection/index.d.ts +1 -1
  7. package/Aside/__snapshots__/index.test.tsx.snap +16 -7
  8. package/Aside/index.d.ts +5 -5
  9. package/Aside/index.js +9 -5
  10. package/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
  11. package/Blockquote/index.d.ts +8 -1
  12. package/Blockquote/index.js +3 -2
  13. package/Blockquote/index.test.js +8 -0
  14. package/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
  15. package/BottomInfo/index.d.ts +1 -1
  16. package/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
  17. package/BottomInfoContainer/index.d.ts +1 -1
  18. package/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
  19. package/BottomInfoContent/index.d.ts +1 -1
  20. package/BottomInfoContent/index.js +2 -11
  21. package/Card/__snapshots__/index.test.tsx.snap +21 -0
  22. package/Card/index.d.ts +8 -1
  23. package/Card/index.js +3 -2
  24. package/Card/index.test.js +23 -15
  25. package/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
  26. package/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
  27. package/CircularProgress/index.js +2 -2
  28. package/Container/__snapshots__/index.test.tsx.snap +32 -44
  29. package/Container/index.d.ts +12 -12
  30. package/Container/index.js +7 -6
  31. package/Drawer/__snapshots__/index.test.tsx.snap +10 -5
  32. package/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
  33. package/FieldContainer/index.d.ts +1 -1
  34. package/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
  35. package/FooterContainer/index.d.ts +1 -1
  36. package/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
  37. package/Grid/index.d.ts +64 -32
  38. package/Grid/index.js +1 -1
  39. package/Heading/__snapshots__/index.test.tsx.snap +190 -95
  40. package/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
  41. package/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
  42. package/ImageLogo/index.d.ts +20 -0
  43. package/ImageLogo/index.js +45 -0
  44. package/ImageLogo/index.test.js +26 -0
  45. package/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
  46. package/ImageLogoSet/index.d.ts +20 -0
  47. package/ImageLogoSet/index.js +45 -0
  48. package/ImageLogoSet/index.test.d.ts +1 -0
  49. package/ImageLogoSet/index.test.js +29 -0
  50. package/KitchenSinkCard/index.d.ts +1 -1
  51. package/Main/__snapshots__/index.test.tsx.snap +16 -7
  52. package/Main/index.d.ts +4 -4
  53. package/Main/index.js +7 -4
  54. package/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
  55. package/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
  56. package/NavMenuContainer/index.js +1 -0
  57. package/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
  58. package/NavMenuContent/index.d.ts +1 -1
  59. package/NavMenuContent/index.js +3 -1
  60. package/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
  61. package/NavMenuTitle/index.js +2 -1
  62. package/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
  63. package/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
  64. package/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
  65. package/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
  66. package/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
  67. package/RadioItem/index.d.ts +4 -4
  68. package/RadioItem/index.js +3 -3
  69. package/RadioItem/index.test.js +4 -4
  70. package/StepNav/__snapshots__/index.test.tsx.snap +17 -0
  71. package/StepNav/index.d.ts +8 -1
  72. package/StepNav/index.js +3 -2
  73. package/StepNav/index.test.js +8 -0
  74. package/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
  75. package/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
  76. package/TaskList/__snapshots__/index.test.tsx.snap +17 -0
  77. package/TaskList/index.d.ts +8 -1
  78. package/TaskList/index.js +3 -2
  79. package/TaskList/index.test.js +8 -0
  80. package/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
  81. package/TextInput/__snapshots__/index.test.tsx.snap +72 -72
  82. package/Timeline/__snapshots__/index.test.tsx.snap +17 -0
  83. package/Timeline/index.d.ts +2 -2
  84. package/Timeline/index.js +2 -3
  85. package/Timeline/index.test.js +8 -0
  86. package/Unpurge/index.js +1 -1
  87. package/es/Accordion/__snapshots__/index.test.tsx.snap +2 -2
  88. package/es/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
  89. package/es/Aside/__snapshots__/index.test.tsx.snap +16 -7
  90. package/es/Aside/index.js +9 -5
  91. package/es/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
  92. package/es/Blockquote/index.js +3 -2
  93. package/es/Blockquote/index.test.js +8 -0
  94. package/es/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
  95. package/es/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
  96. package/es/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
  97. package/es/BottomInfoContent/index.js +2 -11
  98. package/es/Card/__snapshots__/index.test.tsx.snap +21 -0
  99. package/es/Card/index.js +3 -2
  100. package/es/Card/index.test.js +23 -15
  101. package/es/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
  102. package/es/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
  103. package/es/CircularProgress/index.js +2 -2
  104. package/es/Container/__snapshots__/index.test.tsx.snap +32 -44
  105. package/es/Container/index.js +7 -6
  106. package/es/Drawer/__snapshots__/index.test.tsx.snap +10 -5
  107. package/es/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
  108. package/es/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
  109. package/es/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
  110. package/es/Grid/index.js +1 -1
  111. package/es/Heading/__snapshots__/index.test.tsx.snap +190 -95
  112. package/es/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
  113. package/es/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
  114. package/es/ImageLogo/index.js +29 -0
  115. package/es/ImageLogo/index.test.js +20 -0
  116. package/es/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
  117. package/es/ImageLogoSet/index.js +30 -0
  118. package/es/ImageLogoSet/index.test.js +23 -0
  119. package/es/Main/__snapshots__/index.test.tsx.snap +16 -7
  120. package/es/Main/index.js +7 -4
  121. package/es/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
  122. package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
  123. package/es/NavMenuContainer/index.js +1 -0
  124. package/es/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
  125. package/es/NavMenuContent/index.js +3 -1
  126. package/es/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
  127. package/es/NavMenuTitle/index.js +2 -1
  128. package/es/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
  129. package/es/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
  130. package/es/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
  131. package/es/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
  132. package/es/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
  133. package/es/RadioItem/index.js +3 -3
  134. package/es/RadioItem/index.test.js +4 -4
  135. package/es/StepNav/__snapshots__/index.test.tsx.snap +17 -0
  136. package/es/StepNav/index.js +3 -2
  137. package/es/StepNav/index.test.js +8 -0
  138. package/es/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
  139. package/es/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
  140. package/es/TaskList/__snapshots__/index.test.tsx.snap +17 -0
  141. package/es/TaskList/index.js +3 -2
  142. package/es/TaskList/index.test.js +8 -0
  143. package/es/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
  144. package/es/TextInput/__snapshots__/index.test.tsx.snap +72 -72
  145. package/es/Timeline/__snapshots__/index.test.tsx.snap +17 -0
  146. package/es/Timeline/index.js +2 -3
  147. package/es/Timeline/index.test.js +8 -0
  148. package/es/Unpurge/index.js +1 -1
  149. package/es/index.js +2 -1
  150. package/es/registry.js +4 -2
  151. package/esm/Accordion/__snapshots__/index.test.tsx.snap +2 -2
  152. package/esm/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
  153. package/esm/Aside/__snapshots__/index.test.tsx.snap +16 -7
  154. package/esm/Aside/index.js +9 -5
  155. package/esm/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
  156. package/esm/Blockquote/index.js +3 -2
  157. package/esm/Blockquote/index.test.js +8 -0
  158. package/esm/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
  159. package/esm/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
  160. package/esm/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
  161. package/esm/BottomInfoContent/index.js +2 -11
  162. package/esm/Card/__snapshots__/index.test.tsx.snap +21 -0
  163. package/esm/Card/index.js +3 -2
  164. package/esm/Card/index.test.js +23 -15
  165. package/esm/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
  166. package/esm/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
  167. package/esm/CircularProgress/index.js +2 -2
  168. package/esm/Container/__snapshots__/index.test.tsx.snap +32 -44
  169. package/esm/Container/index.js +7 -6
  170. package/esm/Drawer/__snapshots__/index.test.tsx.snap +10 -5
  171. package/esm/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
  172. package/esm/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
  173. package/esm/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
  174. package/esm/Grid/index.js +1 -1
  175. package/esm/Heading/__snapshots__/index.test.tsx.snap +190 -95
  176. package/esm/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
  177. package/esm/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
  178. package/esm/ImageLogo/index.js +29 -0
  179. package/esm/ImageLogo/index.test.js +20 -0
  180. package/esm/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
  181. package/esm/ImageLogoSet/index.js +30 -0
  182. package/esm/ImageLogoSet/index.test.js +23 -0
  183. package/esm/Main/__snapshots__/index.test.tsx.snap +16 -7
  184. package/esm/Main/index.js +7 -4
  185. package/esm/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
  186. package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
  187. package/esm/NavMenuContainer/index.js +1 -0
  188. package/esm/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
  189. package/esm/NavMenuContent/index.js +3 -1
  190. package/esm/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
  191. package/esm/NavMenuTitle/index.js +2 -1
  192. package/esm/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
  193. package/esm/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
  194. package/esm/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
  195. package/esm/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
  196. package/esm/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
  197. package/esm/RadioItem/index.js +3 -3
  198. package/esm/RadioItem/index.test.js +4 -4
  199. package/esm/StepNav/__snapshots__/index.test.tsx.snap +17 -0
  200. package/esm/StepNav/index.js +3 -2
  201. package/esm/StepNav/index.test.js +8 -0
  202. package/esm/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
  203. package/esm/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
  204. package/esm/TaskList/__snapshots__/index.test.tsx.snap +17 -0
  205. package/esm/TaskList/index.js +3 -2
  206. package/esm/TaskList/index.test.js +8 -0
  207. package/esm/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
  208. package/esm/TextInput/__snapshots__/index.test.tsx.snap +72 -72
  209. package/esm/Timeline/__snapshots__/index.test.tsx.snap +17 -0
  210. package/esm/Timeline/index.js +2 -3
  211. package/esm/Timeline/index.test.js +8 -0
  212. package/esm/Unpurge/index.js +1 -1
  213. package/esm/index.js +3 -2
  214. package/esm/registry.js +4 -2
  215. package/index.d.ts +2 -1
  216. package/index.js +17 -4
  217. package/package.json +3 -3
  218. package/registry.d.ts +2 -1
  219. package/registry.js +5 -2
  220. package/src/Accordion/__snapshots__/index.test.tsx.snap +2 -2
  221. package/src/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
  222. package/src/Aside/__snapshots__/index.test.tsx.snap +16 -7
  223. package/src/Aside/index.tsx +10 -7
  224. package/src/Blockquote/__snapshots__/index.test.tsx.snap +17 -0
  225. package/src/Blockquote/index.test.tsx +4 -0
  226. package/src/Blockquote/index.tsx +11 -2
  227. package/src/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
  228. package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
  229. package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
  230. package/src/BottomInfoContent/index.tsx +1 -4
  231. package/src/Card/__snapshots__/index.test.tsx.snap +21 -0
  232. package/src/Card/index.test.tsx +3 -0
  233. package/src/Card/index.tsx +9 -1
  234. package/src/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
  235. package/src/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
  236. package/src/CircularProgress/index.tsx +2 -2
  237. package/src/Container/__snapshots__/index.test.tsx.snap +32 -44
  238. package/src/Container/index.tsx +16 -23
  239. package/src/Drawer/__snapshots__/index.test.tsx.snap +10 -5
  240. package/src/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
  241. package/src/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
  242. package/src/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
  243. package/src/Grid/index.tsx +82 -39
  244. package/src/Heading/__snapshots__/index.test.tsx.snap +190 -95
  245. package/src/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
  246. package/src/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
  247. package/src/ImageLogo/index.test.tsx +13 -0
  248. package/src/ImageLogo/index.tsx +43 -0
  249. package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
  250. package/src/ImageLogoSet/index.test.tsx +17 -0
  251. package/src/ImageLogoSet/index.tsx +36 -0
  252. package/src/Main/__snapshots__/index.test.tsx.snap +16 -7
  253. package/src/Main/index.tsx +9 -6
  254. package/src/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
  255. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
  256. package/src/NavMenuContainer/index.tsx +1 -0
  257. package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
  258. package/src/NavMenuContent/index.tsx +1 -1
  259. package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
  260. package/src/NavMenuTitle/index.tsx +2 -1
  261. package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
  262. package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
  263. package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
  264. package/src/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
  265. package/src/RadioItem/__snapshots__/index.test.tsx.snap +2 -2
  266. package/src/RadioItem/index.test.tsx +4 -4
  267. package/src/RadioItem/index.tsx +5 -5
  268. package/src/StepNav/__snapshots__/index.test.tsx.snap +17 -0
  269. package/src/StepNav/index.test.tsx +4 -0
  270. package/src/StepNav/index.tsx +11 -2
  271. package/src/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
  272. package/src/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
  273. package/src/TaskList/__snapshots__/index.test.tsx.snap +17 -0
  274. package/src/TaskList/index.test.tsx +4 -0
  275. package/src/TaskList/index.tsx +11 -2
  276. package/src/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
  277. package/src/TextInput/__snapshots__/index.test.tsx.snap +72 -72
  278. package/src/Timeline/__snapshots__/index.test.tsx.snap +17 -0
  279. package/src/Timeline/index.test.tsx +4 -0
  280. package/src/Timeline/index.tsx +4 -4
  281. package/src/Unpurge/index.tsx +42 -0
  282. package/src/index.ts +2 -1
  283. package/src/registry.js +4 -2
  284. package/Icon/__snapshots__/index.test.tsx.snap +0 -343
  285. package/Icon/index.d.ts +0 -25
  286. package/Icon/index.js +0 -58
  287. package/Icon/index.test.js +0 -88
  288. package/es/Icon/__snapshots__/index.test.tsx.snap +0 -343
  289. package/es/Icon/index.js +0 -34
  290. package/es/Icon/index.test.js +0 -82
  291. package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
  292. package/esm/Icon/index.js +0 -34
  293. package/esm/Icon/index.test.js +0 -82
  294. package/src/Icon/__snapshots__/index.test.tsx.snap +0 -343
  295. package/src/Icon/index.test.tsx +0 -36
  296. package/src/Icon/index.tsx +0 -63
  297. /package/{Icon → ImageLogo}/index.test.d.ts +0 -0
@@ -3,16 +3,21 @@
3
3
  exports[`renders the PageTitleHeading with no props 1`] = `
4
4
  <ForwardRef(PageTitleHeading)>
5
5
  <ForwardRef(Heading)>
6
- <ForwardRef(Base)
6
+ <ForwardRef(Typography)
7
7
  as="h1"
8
8
  className="govgr-heading-xl"
9
9
  >
10
- <h1
10
+ <ForwardRef(Base)
11
+ as="h1"
11
12
  className="govgr-heading-xl"
12
13
  >
13
- hello
14
- </h1>
15
- </ForwardRef(Base)>
14
+ <h1
15
+ className="govgr-heading-xl"
16
+ >
17
+ hello
18
+ </h1>
19
+ </ForwardRef(Base)>
20
+ </ForwardRef(Typography)>
16
21
  </ForwardRef(Heading)>
17
22
  </ForwardRef(PageTitleHeading)>
18
23
  `;
@@ -24,16 +29,21 @@ exports[`renders the PageTitleHeading with size=l 1`] = `
24
29
  <ForwardRef(Heading)
25
30
  size="lg"
26
31
  >
27
- <ForwardRef(Base)
32
+ <ForwardRef(Typography)
28
33
  as="h2"
29
34
  className="govgr-heading-lg"
30
35
  >
31
- <h2
36
+ <ForwardRef(Base)
37
+ as="h2"
32
38
  className="govgr-heading-lg"
33
39
  >
34
- hello
35
- </h2>
36
- </ForwardRef(Base)>
40
+ <h2
41
+ className="govgr-heading-lg"
42
+ >
43
+ hello
44
+ </h2>
45
+ </ForwardRef(Base)>
46
+ </ForwardRef(Typography)>
37
47
  </ForwardRef(Heading)>
38
48
  </ForwardRef(PageTitleHeading)>
39
49
  `;
@@ -45,16 +55,21 @@ exports[`renders the PageTitleHeading with size=m 1`] = `
45
55
  <ForwardRef(Heading)
46
56
  size="md"
47
57
  >
48
- <ForwardRef(Base)
58
+ <ForwardRef(Typography)
49
59
  as="h3"
50
60
  className="govgr-heading-md"
51
61
  >
52
- <h3
62
+ <ForwardRef(Base)
63
+ as="h3"
53
64
  className="govgr-heading-md"
54
65
  >
55
- hello
56
- </h3>
57
- </ForwardRef(Base)>
66
+ <h3
67
+ className="govgr-heading-md"
68
+ >
69
+ hello
70
+ </h3>
71
+ </ForwardRef(Base)>
72
+ </ForwardRef(Typography)>
58
73
  </ForwardRef(Heading)>
59
74
  </ForwardRef(PageTitleHeading)>
60
75
  `;
@@ -66,16 +81,21 @@ exports[`renders the PageTitleHeading with size=s 1`] = `
66
81
  <ForwardRef(Heading)
67
82
  size="sm"
68
83
  >
69
- <ForwardRef(Base)
84
+ <ForwardRef(Typography)
70
85
  as="h4"
71
86
  className="govgr-heading-sm"
72
87
  >
73
- <h4
88
+ <ForwardRef(Base)
89
+ as="h4"
74
90
  className="govgr-heading-sm"
75
91
  >
76
- hello
77
- </h4>
78
- </ForwardRef(Base)>
92
+ <h4
93
+ className="govgr-heading-sm"
94
+ >
95
+ hello
96
+ </h4>
97
+ </ForwardRef(Base)>
98
+ </ForwardRef(Typography)>
79
99
  </ForwardRef(Heading)>
80
100
  </ForwardRef(PageTitleHeading)>
81
101
  `;
@@ -87,16 +107,21 @@ exports[`renders the PageTitleHeading with size=xl 1`] = `
87
107
  <ForwardRef(Heading)
88
108
  size="xl"
89
109
  >
90
- <ForwardRef(Base)
110
+ <ForwardRef(Typography)
91
111
  as="h1"
92
112
  className="govgr-heading-xl"
93
113
  >
94
- <h1
114
+ <ForwardRef(Base)
115
+ as="h1"
95
116
  className="govgr-heading-xl"
96
117
  >
97
- hello
98
- </h1>
99
- </ForwardRef(Base)>
118
+ <h1
119
+ className="govgr-heading-xl"
120
+ >
121
+ hello
122
+ </h1>
123
+ </ForwardRef(Base)>
124
+ </ForwardRef(Typography)>
100
125
  </ForwardRef(Heading)>
101
126
  </ForwardRef(PageTitleHeading)>
102
127
  `;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`renders the RadioItem \`divider\` props 1`] = `
4
4
  <ForwardRef(RadioItem)
5
- divider="ή"
5
+ dividerText="ή"
6
6
  >
7
7
  <ForwardRef(ChoiceDividerText)>
8
8
  <ForwardRef(Base)
@@ -91,7 +91,7 @@ exports[`renders the RadioItem value props 1`] = `
91
91
  exports[`renders the RadioItem with \`name\`, \`disabled\`, \`divider\` and \`value\` props 1`] = `
92
92
  <ForwardRef(RadioItem)
93
93
  disabled={true}
94
- divider="ή"
94
+ dividerText="ή"
95
95
  name="name"
96
96
  value="someValue"
97
97
  >
@@ -17,8 +17,8 @@ it('renders the RadioItem value props', () => {
17
17
  ).toMatchSnapshot();
18
18
  });
19
19
 
20
- it('renders the RadioItem `divider` props', () => {
21
- expect(mount(<RadioItem divider={'ή'}>hello</RadioItem>)).toMatchSnapshot();
20
+ it('renders the RadioItem `dividerText` props', () => {
21
+ expect(mount(<RadioItem dividerText={'ή'}>hello</RadioItem>)).toMatchSnapshot();
22
22
  });
23
23
 
24
24
  it('renders the RadioItem with name and value props', () => {
@@ -45,10 +45,10 @@ it('renders the RadioItem with name disabled and value props', () => {
45
45
  ).toMatchSnapshot();
46
46
  });
47
47
 
48
- it('renders the RadioItem with `name`, `disabled`, `divider` and `value` props', () => {
48
+ it('renders the RadioItem with `name`, `disabled`, `dividerText` and `value` props', () => {
49
49
  expect(
50
50
  mount(
51
- <RadioItem name={'name'} value={'someValue'} divider={'ή'} disabled>
51
+ <RadioItem name={'name'} value={'someValue'} dividerText={'ή'} disabled>
52
52
  hello
53
53
  </RadioItem>
54
54
  )
@@ -6,11 +6,11 @@ import LabelContainer from '@digigov/react-core/LabelContainer';
6
6
 
7
7
  export interface RadioItemProps extends BaseProps<'input'> {
8
8
  /**
9
- * divider is optional.
10
- * Add this prop to add a choice divider ontop of a radio item.
9
+ * dividerText is optional.
10
+ * Add this prop to add a choice dividerText on top of a radio item.
11
11
  * The string is the text that it will appear above this radio item.
12
12
  */
13
- divider?: string;
13
+ dividerText?: string;
14
14
  }
15
15
  /**
16
16
  * RadioItem component is used for display radio buttons.
@@ -18,11 +18,11 @@ export interface RadioItemProps extends BaseProps<'input'> {
18
18
  */
19
19
  export const RadioItem = React.forwardRef<HTMLInputElement, RadioItemProps>(
20
20
  function RadioItem(
21
- { divider, name, value, className, disabled = false, children, ...props },
21
+ { dividerText, name, value, className, disabled = false, children, ...props },
22
22
  ref
23
23
  ) {
24
24
  return <>
25
- {divider && <ChoiceDividerText>{divider}</ChoiceDividerText>}
25
+ {dividerText && <ChoiceDividerText>{dividerText}</ChoiceDividerText>}
26
26
  <div
27
27
  className={clsx(className, {
28
28
  'govgr-radios__item': true,
@@ -1,5 +1,22 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`renders the StepNav with dense props 1`] = `
4
+ <ForwardRef(StepNav)
5
+ dense={true}
6
+ >
7
+ <ForwardRef(Base)
8
+ as="div"
9
+ className="govgr-step--dense govgr-step-nav"
10
+ >
11
+ <div
12
+ className="govgr-step--dense govgr-step-nav"
13
+ >
14
+ hello
15
+ </div>
16
+ </ForwardRef(Base)>
17
+ </ForwardRef(StepNav)>
18
+ `;
19
+
3
20
  exports[`renders the StepNav with no props 1`] = `
4
21
  <ForwardRef(StepNav)>
5
22
  <ForwardRef(Base)
@@ -6,3 +6,7 @@ import StepNav from '@digigov/react-core/StepNav';
6
6
  it('renders the StepNav with no props', () => {
7
7
  expect(mount(<StepNav>hello</StepNav>)).toMatchSnapshot();
8
8
  });
9
+
10
+ it('renders the StepNav with dense props', () => {
11
+ expect(mount(<StepNav dense>hello</StepNav>)).toMatchSnapshot();
12
+ });
@@ -2,19 +2,28 @@ import React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
- export interface StepNavProps extends BaseProps<'div'> {}
5
+ export interface StepNavProps extends BaseProps<'div'> {
6
+ /**
7
+ * dense is optional.
8
+ * @value true StepNav will be dense.
9
+ * @value false
10
+ * @default false
11
+ * */
12
+ dense?: boolean;
13
+ }
6
14
  /**
7
15
  * StepNav contains the content or any other element for step-by-step implementation.
8
16
  * Use StepNav as wrapper component.
9
17
  */
10
18
  export const StepNav = React.forwardRef<HTMLDivElement, StepNavProps>(
11
- function StepNav({ className, children, ...props }, ref) {
19
+ function StepNav({ className, dense, children, ...props }, ref) {
12
20
  return (
13
21
  <Base
14
22
  as="div"
15
23
  ref={ref}
16
24
  className={clsx(className, {
17
25
  'govgr-step-nav': true,
26
+ 'govgr-step-nav--dense': dense,
18
27
  })}
19
28
  {...props}
20
29
  >
@@ -15,16 +15,21 @@ exports[`renders the TabsHeading with no props 1`] = `
15
15
  <ForwardRef(Heading)
16
16
  size="sm"
17
17
  >
18
- <ForwardRef(Base)
18
+ <ForwardRef(Typography)
19
19
  as="h4"
20
20
  className="govgr-heading-sm"
21
21
  >
22
- <h4
22
+ <ForwardRef(Base)
23
+ as="h4"
23
24
  className="govgr-heading-sm"
24
25
  >
25
- hello
26
- </h4>
27
- </ForwardRef(Base)>
26
+ <h4
27
+ className="govgr-heading-sm"
28
+ >
29
+ hello
30
+ </h4>
31
+ </ForwardRef(Base)>
32
+ </ForwardRef(Typography)>
28
33
  </ForwardRef(Heading)>
29
34
  </div>
30
35
  </ForwardRef(Base)>
@@ -49,16 +54,21 @@ exports[`renders the TabsHeading with size=m 1`] = `
49
54
  <ForwardRef(Heading)
50
55
  size="md"
51
56
  >
52
- <ForwardRef(Base)
57
+ <ForwardRef(Typography)
53
58
  as="h3"
54
59
  className="govgr-heading-md"
55
60
  >
56
- <h3
61
+ <ForwardRef(Base)
62
+ as="h3"
57
63
  className="govgr-heading-md"
58
64
  >
59
- hello
60
- </h3>
61
- </ForwardRef(Base)>
65
+ <h3
66
+ className="govgr-heading-md"
67
+ >
68
+ hello
69
+ </h3>
70
+ </ForwardRef(Base)>
71
+ </ForwardRef(Typography)>
62
72
  </ForwardRef(Heading)>
63
73
  </div>
64
74
  </ForwardRef(Base)>
@@ -83,16 +93,21 @@ exports[`renders the TabsHeading with size=s 1`] = `
83
93
  <ForwardRef(Heading)
84
94
  size="sm"
85
95
  >
86
- <ForwardRef(Base)
96
+ <ForwardRef(Typography)
87
97
  as="h4"
88
98
  className="govgr-heading-sm"
89
99
  >
90
- <h4
100
+ <ForwardRef(Base)
101
+ as="h4"
91
102
  className="govgr-heading-sm"
92
103
  >
93
- hello
94
- </h4>
95
- </ForwardRef(Base)>
104
+ <h4
105
+ className="govgr-heading-sm"
106
+ >
107
+ hello
108
+ </h4>
109
+ </ForwardRef(Base)>
110
+ </ForwardRef(Typography)>
96
111
  </ForwardRef(Heading)>
97
112
  </div>
98
113
  </ForwardRef(Base)>
@@ -1,9 +1,9 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the TabsListItem with href and selected=false 1`] = `
3
+ exports[`renders the TabsListItem with href and open=false 1`] = `
4
4
  <ForwardRef(TabsListItem)
5
5
  href="/"
6
- selected={false}
6
+ open={false}
7
7
  >
8
8
  <li
9
9
  className="govgr-tabs__list-item"
@@ -11,19 +11,19 @@ exports[`renders the TabsListItem with href and selected=false 1`] = `
11
11
  >
12
12
  <ForwardRef(Base)
13
13
  aria-selected={false}
14
- as="a"
14
+ as="button"
15
15
  className="govgr-tabs__tab"
16
16
  href="/"
17
17
  role="tab"
18
18
  >
19
- <a
19
+ <button
20
20
  aria-selected={false}
21
21
  className="govgr-tabs__tab"
22
22
  href="/"
23
23
  role="tab"
24
24
  >
25
25
  hello
26
- </a>
26
+ </button>
27
27
  </ForwardRef(Base)>
28
28
  </li>
29
29
  </ForwardRef(TabsListItem)>
@@ -36,24 +36,24 @@ exports[`renders the TabsListItem with no props 1`] = `
36
36
  role="presentation"
37
37
  >
38
38
  <ForwardRef(Base)
39
- as="a"
39
+ as="button"
40
40
  className="govgr-tabs__tab"
41
41
  role="tab"
42
42
  >
43
- <a
43
+ <button
44
44
  className="govgr-tabs__tab"
45
45
  role="tab"
46
46
  >
47
47
  hello
48
- </a>
48
+ </button>
49
49
  </ForwardRef(Base)>
50
50
  </li>
51
51
  </ForwardRef(TabsListItem)>
52
52
  `;
53
53
 
54
- exports[`renders the TabsListItem with selected=false 1`] = `
54
+ exports[`renders the TabsListItem with open=false 1`] = `
55
55
  <ForwardRef(TabsListItem)
56
- selected={false}
56
+ open={false}
57
57
  >
58
58
  <li
59
59
  className="govgr-tabs__list-item"
@@ -61,72 +61,72 @@ exports[`renders the TabsListItem with selected=false 1`] = `
61
61
  >
62
62
  <ForwardRef(Base)
63
63
  aria-selected={false}
64
- as="a"
64
+ as="button"
65
65
  className="govgr-tabs__tab"
66
66
  role="tab"
67
67
  >
68
- <a
68
+ <button
69
69
  aria-selected={false}
70
70
  className="govgr-tabs__tab"
71
71
  role="tab"
72
72
  >
73
73
  hello
74
- </a>
74
+ </button>
75
75
  </ForwardRef(Base)>
76
76
  </li>
77
77
  </ForwardRef(TabsListItem)>
78
78
  `;
79
79
 
80
- exports[`renders the TabsListItem with selected=true 1`] = `
80
+ exports[`renders the TabsListItem with open=true 1`] = `
81
81
  <ForwardRef(TabsListItem)
82
- selected={true}
82
+ open={true}
83
83
  >
84
84
  <li
85
- className="govgr-tabs__list-item-selected govgr-tabs__list-item"
85
+ className="govgr-tabs__list-item govgr-tabs__list-item-selected"
86
86
  role="presentation"
87
87
  >
88
88
  <ForwardRef(Base)
89
89
  aria-selected={true}
90
- as="a"
90
+ as="button"
91
91
  className="govgr-tabs__tab"
92
92
  role="tab"
93
93
  >
94
- <a
94
+ <button
95
95
  aria-selected={true}
96
96
  className="govgr-tabs__tab"
97
97
  role="tab"
98
98
  >
99
99
  hello
100
- </a>
100
+ </button>
101
101
  </ForwardRef(Base)>
102
102
  </li>
103
103
  </ForwardRef(TabsListItem)>
104
104
  `;
105
105
 
106
- exports[`renders the TabsListItem with selected=true 2`] = `
106
+ exports[`renders the TabsListItem with open=true 2`] = `
107
107
  <ForwardRef(TabsListItem)
108
108
  href="/"
109
- selected={true}
109
+ open={true}
110
110
  >
111
111
  <li
112
- className="govgr-tabs__list-item-selected govgr-tabs__list-item"
112
+ className="govgr-tabs__list-item govgr-tabs__list-item-selected"
113
113
  role="presentation"
114
114
  >
115
115
  <ForwardRef(Base)
116
116
  aria-selected={true}
117
- as="a"
117
+ as="button"
118
118
  className="govgr-tabs__tab"
119
119
  href="/"
120
120
  role="tab"
121
121
  >
122
- <a
122
+ <button
123
123
  aria-selected={true}
124
124
  className="govgr-tabs__tab"
125
125
  href="/"
126
126
  role="tab"
127
127
  >
128
128
  hello
129
- </a>
129
+ </button>
130
130
  </ForwardRef(Base)>
131
131
  </li>
132
132
  </ForwardRef(TabsListItem)>
@@ -1,5 +1,22 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`renders the TaskList with dense prop 1`] = `
4
+ <ForwardRef(TaskList)
5
+ dense={true}
6
+ >
7
+ <ForwardRef(Base)
8
+ as="ol"
9
+ className="govgr-task--dense govgr-task-list"
10
+ >
11
+ <ol
12
+ className="govgr-task--dense govgr-task-list"
13
+ >
14
+ hello
15
+ </ol>
16
+ </ForwardRef(Base)>
17
+ </ForwardRef(TaskList)>
18
+ `;
19
+
3
20
  exports[`renders the TaskList with no prop 1`] = `
4
21
  <ForwardRef(TaskList)>
5
22
  <ForwardRef(Base)
@@ -6,3 +6,7 @@ import TaskList from '@digigov/react-core/TaskList';
6
6
  it('renders the TaskList with no prop', () => {
7
7
  expect(mount(<TaskList>hello</TaskList>)).toMatchSnapshot();
8
8
  });
9
+
10
+ it('renders the TaskList with dense prop', () => {
11
+ expect(mount(<TaskList dense>hello</TaskList>)).toMatchSnapshot();
12
+ });
@@ -2,19 +2,28 @@ import React from 'react';
2
2
  import clsx from 'clsx';
3
3
  import Base, { BaseProps } from '@digigov/react-core/Base';
4
4
 
5
- export interface TaskListProps extends BaseProps<'ol'> {}
5
+ export interface TaskListProps extends BaseProps<'ol'> {
6
+ /**
7
+ * dense is optional.
8
+ * @value true TaskList will be dense.
9
+ * @value false
10
+ * @default false
11
+ * */
12
+ dense?: boolean;
13
+ }
6
14
  /**
7
15
  * TaskList component is used for listing items.
8
16
  * This component must contain TaskListItem component.
9
17
  */
10
18
  export const TaskList = React.forwardRef<HTMLOListElement, TaskListProps>(
11
- function TaskList({ className, children, ...props }, ref) {
19
+ function TaskList({ className, dense, children, ...props }, ref) {
12
20
  return (
13
21
  <Base
14
22
  as="ol"
15
23
  ref={ref}
16
24
  className={clsx(className, {
17
25
  'govgr-task-list': true,
26
+ 'govgr-task-list--dense': dense,
18
27
  })}
19
28
  {...props}
20
29
  >
@@ -1,50 +1,86 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`renders the TaskListItemHeading with no prop 1`] = `
4
- <ForwardRef(TaskListItemHeading)>
5
- <ForwardRef(Base)
6
- as="h2"
7
- className="govgr-task-list__heading"
4
+ <ForwardRef(TaskListItemHeaading)>
5
+ <ForwardRef(Heading)
6
+ marginBottom={4}
7
+ size="lg"
8
8
  >
9
- <h2
10
- className="govgr-task-list__heading"
9
+ <ForwardRef(Typography)
10
+ as="h2"
11
+ className="govgr-heading-lg"
12
+ marginBottom={4}
11
13
  >
12
- hello
13
- </h2>
14
- </ForwardRef(Base)>
15
- </ForwardRef(TaskListItemHeading)>
14
+ <ForwardRef(Base)
15
+ as="h2"
16
+ className="govgr-heading-lg"
17
+ marginBottom={4}
18
+ >
19
+ <h2
20
+ className="govgr-heading-lg govgr-mb-4"
21
+ >
22
+ hello
23
+ </h2>
24
+ </ForwardRef(Base)>
25
+ </ForwardRef(Typography)>
26
+ </ForwardRef(Heading)>
27
+ </ForwardRef(TaskListItemHeaading)>
16
28
  `;
17
29
 
18
30
  exports[`renders the TaskListItemHeading with size = "md" prop 1`] = `
19
- <ForwardRef(TaskListItemHeading)
31
+ <ForwardRef(TaskListItemHeaading)
20
32
  size="md"
21
33
  >
22
- <ForwardRef(Base)
23
- as="h3"
24
- className="govgr-task-list__heading--md govgr-task-list__heading"
34
+ <ForwardRef(Heading)
35
+ marginBottom={4}
36
+ size="md"
25
37
  >
26
- <h3
27
- className="govgr-task-list__heading--md govgr-task-list__heading"
38
+ <ForwardRef(Typography)
39
+ as="h3"
40
+ className="govgr-heading-md"
41
+ marginBottom={4}
28
42
  >
29
- hello
30
- </h3>
31
- </ForwardRef(Base)>
32
- </ForwardRef(TaskListItemHeading)>
43
+ <ForwardRef(Base)
44
+ as="h3"
45
+ className="govgr-heading-md"
46
+ marginBottom={4}
47
+ >
48
+ <h3
49
+ className="govgr-heading-md govgr-mb-4"
50
+ >
51
+ hello
52
+ </h3>
53
+ </ForwardRef(Base)>
54
+ </ForwardRef(Typography)>
55
+ </ForwardRef(Heading)>
56
+ </ForwardRef(TaskListItemHeaading)>
33
57
  `;
34
58
 
35
59
  exports[`renders the TaskListItemHeading with size = "sm" prop 1`] = `
36
- <ForwardRef(TaskListItemHeading)
60
+ <ForwardRef(TaskListItemHeaading)
37
61
  size="sm"
38
62
  >
39
- <ForwardRef(Base)
40
- as="h4"
41
- className="govgr-task-list__heading--sm govgr-task-list__heading"
63
+ <ForwardRef(Heading)
64
+ marginBottom={4}
65
+ size="sm"
42
66
  >
43
- <h4
44
- className="govgr-task-list__heading--sm govgr-task-list__heading"
67
+ <ForwardRef(Typography)
68
+ as="h4"
69
+ className="govgr-heading-sm"
70
+ marginBottom={4}
45
71
  >
46
- hello
47
- </h4>
48
- </ForwardRef(Base)>
49
- </ForwardRef(TaskListItemHeading)>
72
+ <ForwardRef(Base)
73
+ as="h4"
74
+ className="govgr-heading-sm"
75
+ marginBottom={4}
76
+ >
77
+ <h4
78
+ className="govgr-heading-sm govgr-mb-4"
79
+ >
80
+ hello
81
+ </h4>
82
+ </ForwardRef(Base)>
83
+ </ForwardRef(Typography)>
84
+ </ForwardRef(Heading)>
85
+ </ForwardRef(TaskListItemHeaading)>
50
86
  `;