@digigov/react-core 0.20.0-navlist.alpha.3 → 0.20.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 (322) hide show
  1. package/Accordion/index.d.ts +1 -1
  2. package/AccordionControls/index.d.ts +1 -1
  3. package/AccordionSection/index.d.ts +1 -1
  4. package/AccordionSectionContent/index.d.ts +1 -1
  5. package/AccordionSectionHeader/index.d.ts +1 -1
  6. package/AccordionSectionSummary/index.d.ts +1 -1
  7. package/AccordionSectionSummaryHeading/index.d.ts +1 -1
  8. package/Aside/index.d.ts +1 -1
  9. package/BackLink/index.d.ts +1 -1
  10. package/Base/index.d.ts +20 -0
  11. package/Base/index.js +25 -5
  12. package/Blockquote/index.d.ts +1 -1
  13. package/Bottom/index.d.ts +1 -1
  14. package/Breadcrumbs/index.d.ts +1 -1
  15. package/BreadcrumbsList/index.d.ts +1 -1
  16. package/BreadcrumbsListItem/index.d.ts +1 -1
  17. package/BurgerIcon/__snapshots__/index.test.tsx.snap +1 -211
  18. package/BurgerIcon/index.d.ts +0 -6
  19. package/BurgerIcon/index.js +2 -3
  20. package/BurgerIcon/index.test.js +2 -45
  21. package/Button/index.d.ts +1 -1
  22. package/ButtonGroup/index.d.ts +1 -1
  23. package/ButtonLink/index.d.ts +1 -1
  24. package/CHANGELOG.md +21 -1
  25. package/CallToAction/index.d.ts +1 -1
  26. package/Card/index.d.ts +1 -1
  27. package/CardAction/index.d.ts +1 -1
  28. package/CardHeading/index.d.ts +1 -1
  29. package/CardText/index.d.ts +1 -1
  30. package/Checkbox/index.d.ts +1 -1
  31. package/CheckboxConditional/index.d.ts +1 -1
  32. package/CheckboxItem/index.d.ts +1 -1
  33. package/Confirmation/index.d.ts +1 -1
  34. package/ConfirmationBody/index.d.ts +1 -1
  35. package/ConfirmationTitle/index.d.ts +1 -1
  36. package/Container/index.d.ts +1 -1
  37. package/CopyrightContainer/index.d.ts +1 -1
  38. package/DateInputContainer/index.d.ts +1 -1
  39. package/DateInputItem/index.d.ts +1 -1
  40. package/Details/index.d.ts +1 -1
  41. package/DetailsContent/index.d.ts +1 -1
  42. package/DetailsSummary/index.d.ts +1 -1
  43. package/ErrorMessage/index.d.ts +1 -1
  44. package/ErrorSummary/index.d.ts +1 -1
  45. package/FieldContainer/index.d.ts +1 -1
  46. package/Fieldset/index.d.ts +1 -1
  47. package/FieldsetLegend/index.d.ts +1 -1
  48. package/FileUpload/index.d.ts +1 -1
  49. package/FileUploadContainer/index.d.ts +1 -1
  50. package/Footer/index.d.ts +1 -1
  51. package/FooterContainer/index.d.ts +1 -1
  52. package/FooterContent/index.d.ts +1 -1
  53. package/FooterContentLogos/index.d.ts +1 -1
  54. package/FooterHeading/index.d.ts +1 -1
  55. package/FooterImage/index.d.ts +1 -1
  56. package/FooterInlineList/index.d.ts +1 -1
  57. package/FooterInlineListItem/index.d.ts +1 -1
  58. package/FooterLink/index.d.ts +1 -1
  59. package/FooterList/index.d.ts +1 -1
  60. package/FooterListItem/index.d.ts +1 -1
  61. package/FooterMeta/index.d.ts +1 -1
  62. package/FooterMetaItem/index.d.ts +1 -1
  63. package/FooterNavigation/index.d.ts +1 -1
  64. package/FooterSection/index.d.ts +1 -1
  65. package/Form/index.d.ts +1 -1
  66. package/GlobeIcon/__snapshots__/index.test.tsx.snap +178 -0
  67. package/GlobeIcon/index.d.ts +22 -0
  68. package/GlobeIcon/index.js +46 -0
  69. package/{NavHorizontal → GlobeIcon}/index.test.d.ts +0 -0
  70. package/GlobeIcon/index.test.js +56 -0
  71. package/GovGRLogo/index.d.ts +1 -1
  72. package/Grid/index.d.ts +1 -1
  73. package/Header/index.d.ts +1 -1
  74. package/HeaderContent/index.d.ts +1 -1
  75. package/HeaderLogo/index.d.ts +1 -1
  76. package/HeaderNavMenuContent/index.d.ts +1 -1
  77. package/HeaderSecondaryLogo/index.d.ts +1 -1
  78. package/HeaderSection/index.d.ts +1 -1
  79. package/HeaderSubtitle/index.d.ts +1 -1
  80. package/HeaderTitle/index.d.ts +1 -1
  81. package/Heading/index.d.ts +1 -1
  82. package/HeadingCaption/index.d.ts +1 -1
  83. package/HellenicRepublicLogo/index.d.ts +1 -1
  84. package/Hidden/index.d.ts +1 -1
  85. package/Hint/index.d.ts +1 -1
  86. package/LabelContainer/index.d.ts +1 -1
  87. package/LabelTitle/index.d.ts +1 -1
  88. package/Layout/index.d.ts +1 -1
  89. package/LinkBase/index.d.ts +1 -1
  90. package/List/index.d.ts +1 -1
  91. package/ListItem/index.d.ts +1 -1
  92. package/Main/index.d.ts +1 -1
  93. package/Masthead/__snapshots__/index.test.tsx.snap +2 -2
  94. package/Masthead/index.d.ts +1 -1
  95. package/MastheadBody/index.d.ts +1 -1
  96. package/Nav/__snapshots__/index.test.tsx.snap +33 -0
  97. package/Nav/index.d.ts +21 -0
  98. package/{NavHorizontal → Nav}/index.js +10 -8
  99. package/{NavHorizontalList → Nav}/index.test.d.ts +0 -0
  100. package/Nav/index.test.js +23 -0
  101. package/NavList/__snapshots__/index.test.tsx.snap +33 -0
  102. package/NavList/index.d.ts +20 -0
  103. package/{NavHorizontalList → NavList}/index.js +10 -8
  104. package/{NavHorizontalListItem → NavList}/index.test.d.ts +0 -0
  105. package/NavList/index.test.js +23 -0
  106. package/{esm/NavHorizontalListItem → NavListItem}/__snapshots__/index.test.tsx.snap +1 -1
  107. package/NavListItem/index.d.ts +15 -0
  108. package/{NavHorizontalListItem → NavListItem}/index.js +10 -8
  109. package/{NavHorizontalListItemButton → NavListItem}/index.test.d.ts +0 -0
  110. package/NavListItem/index.test.js +15 -0
  111. package/{esm/NavHorizontalListItemButton → NavListItemButton}/__snapshots__/index.test.tsx.snap +34 -28
  112. package/NavListItemButton/index.d.ts +22 -0
  113. package/{NavHorizontalListItemButton → NavListItemButton}/index.js +5 -5
  114. package/{NavHorizontalListItemLink → NavListItemButton}/index.test.d.ts +0 -0
  115. package/NavListItemButton/index.test.js +31 -0
  116. package/{esm/NavHorizontalListItemLink → NavListItemLink}/__snapshots__/index.test.tsx.snap +15 -15
  117. package/NavListItemLink/index.d.ts +20 -0
  118. package/{NavHorizontalListItemLink → NavListItemLink}/index.js +5 -5
  119. package/NavListItemLink/index.test.d.ts +1 -0
  120. package/NavListItemLink/index.test.js +49 -0
  121. package/NavMenu/__snapshots__/index.test.tsx.snap +4 -2
  122. package/NavMenu/index.d.ts +7 -2
  123. package/NavMenu/index.js +4 -2
  124. package/NavMenuContainer/__snapshots__/index.test.tsx.snap +1 -0
  125. package/NavMenuContainer/index.d.ts +6 -1
  126. package/NavMenuContainer/index.js +4 -1
  127. package/NavMenuContainerContent/index.d.ts +1 -1
  128. package/NavMenuContainerContentList/index.d.ts +6 -1
  129. package/NavMenuContainerContentList/index.js +4 -2
  130. package/NavMenuContainerContentListItem/index.d.ts +1 -1
  131. package/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +1 -0
  132. package/NavMenuContainerTitle/index.d.ts +6 -1
  133. package/NavMenuContainerTitle/index.js +6 -3
  134. package/NavVertical/index.d.ts +1 -1
  135. package/NavVerticalItem/index.d.ts +2 -2
  136. package/NormalText/index.d.ts +1 -1
  137. package/NotificationBannerContainer/index.d.ts +1 -1
  138. package/NotificationBannerContent/index.d.ts +1 -1
  139. package/NotificationBannerHeader/index.d.ts +1 -1
  140. package/NotificationBannerHeading/index.d.ts +1 -1
  141. package/NotificationBannerLink/index.d.ts +1 -1
  142. package/PageTitle/index.d.ts +1 -1
  143. package/PageTitleCaption/index.d.ts +1 -1
  144. package/PageTitleHeading/index.d.ts +1 -1
  145. package/PageTitleSection/index.d.ts +1 -1
  146. package/Paragraph/index.d.ts +1 -1
  147. package/PhaseBanner/index.d.ts +1 -1
  148. package/PhaseBannerHeaderContainer/index.d.ts +1 -1
  149. package/PhaseBannerTag/index.d.ts +1 -1
  150. package/PhaseBannerText/index.d.ts +1 -1
  151. package/RadioConditional/index.d.ts +1 -1
  152. package/RadioContainer/index.d.ts +1 -1
  153. package/RadioItem/index.d.ts +1 -1
  154. package/SectionBreak/index.d.ts +1 -1
  155. package/SelectContainer/index.d.ts +1 -1
  156. package/SelectOption/index.d.ts +1 -1
  157. package/SkipLink/index.d.ts +1 -1
  158. package/SummaryList/index.d.ts +1 -1
  159. package/SummaryListItem/index.d.ts +1 -1
  160. package/SummaryListItemAction/index.d.ts +1 -1
  161. package/SummaryListItemKey/index.d.ts +1 -1
  162. package/SummaryListItemValue/index.d.ts +1 -1
  163. package/SvgIcon/index.d.ts +1 -1
  164. package/Table/index.d.ts +1 -1
  165. package/TableBody/index.d.ts +1 -1
  166. package/TableCaption/index.d.ts +1 -1
  167. package/TableContainer/index.d.ts +1 -1
  168. package/TableDataCell/index.d.ts +1 -1
  169. package/TableHead/index.d.ts +1 -1
  170. package/TableHeadCell/index.d.ts +1 -1
  171. package/TableNoDataRow/index.d.ts +1 -1
  172. package/TableRow/index.d.ts +1 -1
  173. package/Tabs/index.d.ts +1 -1
  174. package/TabsHeading/index.d.ts +1 -1
  175. package/TabsList/index.d.ts +1 -1
  176. package/TabsListItem/index.d.ts +1 -1
  177. package/TabsPanel/index.d.ts +1 -1
  178. package/TextArea/index.d.ts +1 -1
  179. package/TextInput/index.d.ts +1 -1
  180. package/Top/index.d.ts +1 -1
  181. package/VisuallyHidden/index.d.ts +1 -1
  182. package/WarningText/index.d.ts +1 -1
  183. package/es/Base/index.js +25 -5
  184. package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +1 -211
  185. package/es/BurgerIcon/index.js +2 -3
  186. package/es/BurgerIcon/index.test.js +2 -45
  187. package/es/GlobeIcon/__snapshots__/index.test.tsx.snap +178 -0
  188. package/es/GlobeIcon/index.js +30 -0
  189. package/es/GlobeIcon/index.test.js +50 -0
  190. package/es/Masthead/__snapshots__/index.test.tsx.snap +2 -2
  191. package/es/Nav/__snapshots__/index.test.tsx.snap +33 -0
  192. package/{esm/NavHorizontal → es/Nav}/index.js +8 -6
  193. package/es/Nav/index.test.js +17 -0
  194. package/es/NavList/__snapshots__/index.test.tsx.snap +33 -0
  195. package/{esm/NavHorizontalList → es/NavList}/index.js +8 -6
  196. package/es/NavList/index.test.js +17 -0
  197. package/{src/NavHorizontalListItem → es/NavListItem}/__snapshots__/index.test.tsx.snap +1 -1
  198. package/es/NavListItem/index.js +25 -0
  199. package/es/NavListItem/index.test.js +9 -0
  200. package/es/{NavHorizontalListItemButton → NavListItemButton}/__snapshots__/index.test.tsx.snap +34 -28
  201. package/{esm/NavHorizontalListItemButton → es/NavListItemButton}/index.js +3 -3
  202. package/es/NavListItemButton/index.test.js +25 -0
  203. package/{NavHorizontalListItemLink → es/NavListItemLink}/__snapshots__/index.test.tsx.snap +15 -15
  204. package/es/{NavHorizontalListItemLink → NavListItemLink}/index.js +3 -3
  205. package/es/NavListItemLink/index.test.js +43 -0
  206. package/es/NavMenu/__snapshots__/index.test.tsx.snap +4 -2
  207. package/es/NavMenu/index.js +4 -2
  208. package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +1 -0
  209. package/es/NavMenuContainer/index.js +4 -1
  210. package/es/NavMenuContainerContentList/index.js +4 -2
  211. package/es/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +1 -0
  212. package/es/NavMenuContainerTitle/index.js +6 -3
  213. package/es/index.js +6 -5
  214. package/es/registry.js +12 -10
  215. package/esm/Base/index.js +25 -5
  216. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +1 -211
  217. package/esm/BurgerIcon/index.js +2 -3
  218. package/esm/BurgerIcon/index.test.js +2 -45
  219. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +178 -0
  220. package/esm/GlobeIcon/index.js +30 -0
  221. package/esm/GlobeIcon/index.test.js +50 -0
  222. package/esm/Masthead/__snapshots__/index.test.tsx.snap +2 -2
  223. package/esm/Nav/__snapshots__/index.test.tsx.snap +33 -0
  224. package/{es/NavHorizontal → esm/Nav}/index.js +8 -6
  225. package/esm/Nav/index.test.js +17 -0
  226. package/esm/NavList/__snapshots__/index.test.tsx.snap +33 -0
  227. package/{es/NavHorizontalList → esm/NavList}/index.js +8 -6
  228. package/esm/NavList/index.test.js +17 -0
  229. package/{NavHorizontalListItem → esm/NavListItem}/__snapshots__/index.test.tsx.snap +1 -1
  230. package/esm/NavListItem/index.js +25 -0
  231. package/esm/NavListItem/index.test.js +9 -0
  232. package/{src/NavHorizontalListItemButton → esm/NavListItemButton}/__snapshots__/index.test.tsx.snap +34 -28
  233. package/{es/NavHorizontalListItemButton → esm/NavListItemButton}/index.js +3 -3
  234. package/esm/NavListItemButton/index.test.js +25 -0
  235. package/{src/NavHorizontalListItemLink → esm/NavListItemLink}/__snapshots__/index.test.tsx.snap +15 -15
  236. package/esm/{NavHorizontalListItemLink → NavListItemLink}/index.js +3 -3
  237. package/esm/NavListItemLink/index.test.js +43 -0
  238. package/esm/NavMenu/__snapshots__/index.test.tsx.snap +4 -2
  239. package/esm/NavMenu/index.js +4 -2
  240. package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +1 -0
  241. package/esm/NavMenuContainer/index.js +4 -1
  242. package/esm/NavMenuContainerContentList/index.js +4 -2
  243. package/esm/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +1 -0
  244. package/esm/NavMenuContainerTitle/index.js +6 -3
  245. package/esm/index.js +7 -6
  246. package/esm/registry.js +12 -10
  247. package/index.d.ts +6 -5
  248. package/index.js +33 -20
  249. package/package.json +2 -3
  250. package/registry.d.ts +6 -5
  251. package/registry.js +13 -10
  252. package/src/Base/index.tsx +63 -3
  253. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +1 -211
  254. package/src/BurgerIcon/index.test.tsx +1 -20
  255. package/src/BurgerIcon/index.tsx +1 -14
  256. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +178 -0
  257. package/src/GlobeIcon/index.test.tsx +27 -0
  258. package/src/GlobeIcon/index.tsx +53 -0
  259. package/src/Masthead/__snapshots__/index.test.tsx.snap +2 -2
  260. package/src/Nav/__snapshots__/index.test.tsx.snap +33 -0
  261. package/src/Nav/index.test.tsx +12 -0
  262. package/src/Nav/index.tsx +42 -0
  263. package/src/NavList/__snapshots__/index.test.tsx.snap +33 -0
  264. package/src/NavList/index.test.tsx +11 -0
  265. package/src/NavList/index.tsx +44 -0
  266. package/{es/NavHorizontalListItem → src/NavListItem}/__snapshots__/index.test.tsx.snap +1 -1
  267. package/src/NavListItem/index.test.tsx +8 -0
  268. package/src/NavListItem/index.tsx +37 -0
  269. package/{NavHorizontalListItemButton → src/NavListItemButton}/__snapshots__/index.test.tsx.snap +34 -28
  270. package/src/NavListItemButton/index.test.tsx +19 -0
  271. package/src/{NavHorizontalListItemButton → NavListItemButton}/index.tsx +8 -8
  272. package/{es/NavHorizontalListItemLink → src/NavListItemLink}/__snapshots__/index.test.tsx.snap +15 -15
  273. package/src/NavListItemLink/index.test.tsx +37 -0
  274. package/src/{NavHorizontalListItemLink → NavListItemLink}/index.tsx +7 -7
  275. package/src/NavMenu/__snapshots__/index.test.tsx.snap +4 -2
  276. package/src/NavMenu/index.tsx +12 -3
  277. package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +1 -0
  278. package/src/NavMenuContainer/index.tsx +17 -3
  279. package/src/NavMenuContainerContentList/index.tsx +13 -3
  280. package/src/NavMenuContainerTitle/__snapshots__/index.test.tsx.snap +1 -0
  281. package/src/NavMenuContainerTitle/index.tsx +28 -4
  282. package/src/NavVerticalItem/index.tsx +1 -1
  283. package/src/index.ts +6 -5
  284. package/src/registry.js +12 -10
  285. package/NavHorizontal/__snapshots__/index.test.tsx.snap +0 -33
  286. package/NavHorizontal/index.d.ts +0 -16
  287. package/NavHorizontal/index.test.js +0 -23
  288. package/NavHorizontalList/__snapshots__/index.test.tsx.snap +0 -33
  289. package/NavHorizontalList/index.d.ts +0 -15
  290. package/NavHorizontalList/index.test.js +0 -23
  291. package/NavHorizontalListItem/index.d.ts +0 -10
  292. package/NavHorizontalListItem/index.test.js +0 -15
  293. package/NavHorizontalListItemButton/index.d.ts +0 -22
  294. package/NavHorizontalListItemButton/index.test.js +0 -31
  295. package/NavHorizontalListItemLink/index.d.ts +0 -20
  296. package/NavHorizontalListItemLink/index.test.js +0 -49
  297. package/es/NavHorizontal/__snapshots__/index.test.tsx.snap +0 -33
  298. package/es/NavHorizontal/index.test.js +0 -17
  299. package/es/NavHorizontalList/__snapshots__/index.test.tsx.snap +0 -33
  300. package/es/NavHorizontalList/index.test.js +0 -17
  301. package/es/NavHorizontalListItem/index.js +0 -23
  302. package/es/NavHorizontalListItem/index.test.js +0 -9
  303. package/es/NavHorizontalListItemButton/index.test.js +0 -25
  304. package/es/NavHorizontalListItemLink/index.test.js +0 -43
  305. package/esm/NavHorizontal/__snapshots__/index.test.tsx.snap +0 -33
  306. package/esm/NavHorizontal/index.test.js +0 -17
  307. package/esm/NavHorizontalList/__snapshots__/index.test.tsx.snap +0 -33
  308. package/esm/NavHorizontalList/index.test.js +0 -17
  309. package/esm/NavHorizontalListItem/index.js +0 -23
  310. package/esm/NavHorizontalListItem/index.test.js +0 -9
  311. package/esm/NavHorizontalListItemButton/index.test.js +0 -25
  312. package/esm/NavHorizontalListItemLink/index.test.js +0 -43
  313. package/src/NavHorizontal/__snapshots__/index.test.tsx.snap +0 -33
  314. package/src/NavHorizontal/index.test.tsx +0 -12
  315. package/src/NavHorizontal/index.tsx +0 -35
  316. package/src/NavHorizontalList/__snapshots__/index.test.tsx.snap +0 -33
  317. package/src/NavHorizontalList/index.test.tsx +0 -13
  318. package/src/NavHorizontalList/index.tsx +0 -39
  319. package/src/NavHorizontalListItem/index.test.tsx +0 -10
  320. package/src/NavHorizontalListItem/index.tsx +0 -28
  321. package/src/NavHorizontalListItemButton/index.test.tsx +0 -29
  322. package/src/NavHorizontalListItemLink/index.test.tsx +0 -45
@@ -1,128 +1,5 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the BurgerIcon prop hidden="l" 1`] = `
4
- <ForwardRef(BurgerIcon)
5
- hidden="l"
6
- >
7
- <ForwardRef(SvgIcon)
8
- className="govgr-burger-icon--hidden-l govgr-burger-icon"
9
- >
10
- <ForwardRef(Base)
11
- aria-hidden="true"
12
- as="svg"
13
- className="govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon"
14
- focusable="false"
15
- viewBox="0 0 24 24"
16
- >
17
- <svg
18
- aria-hidden="true"
19
- className="govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon"
20
- focusable="false"
21
- viewBox="0 0 24 24"
22
- >
23
- <rect
24
- height="3.3"
25
- id="govgr-burger-icon__line-1"
26
- width="20"
27
- />
28
- <rect
29
- height="3.3"
30
- id="govgr-burger-icon__line-2"
31
- width="20"
32
- />
33
- <rect
34
- height="3.3"
35
- id="govgr-burger-icon__line-3"
36
- width="20"
37
- />
38
- </svg>
39
- </ForwardRef(Base)>
40
- </ForwardRef(SvgIcon)>
41
- </ForwardRef(BurgerIcon)>
42
- `;
43
-
44
- exports[`renders the BurgerIcon prop hidden="m" 1`] = `
45
- <ForwardRef(BurgerIcon)
46
- hidden="m"
47
- >
48
- <ForwardRef(SvgIcon)
49
- className="govgr-burger-icon--hidden-m govgr-burger-icon"
50
- >
51
- <ForwardRef(Base)
52
- aria-hidden="true"
53
- as="svg"
54
- className="govgr-burger-icon--hidden-m govgr-burger-icon govgr-svg-icon"
55
- focusable="false"
56
- viewBox="0 0 24 24"
57
- >
58
- <svg
59
- aria-hidden="true"
60
- className="govgr-burger-icon--hidden-m govgr-burger-icon govgr-svg-icon"
61
- focusable="false"
62
- viewBox="0 0 24 24"
63
- >
64
- <rect
65
- height="3.3"
66
- id="govgr-burger-icon__line-1"
67
- width="20"
68
- />
69
- <rect
70
- height="3.3"
71
- id="govgr-burger-icon__line-2"
72
- width="20"
73
- />
74
- <rect
75
- height="3.3"
76
- id="govgr-burger-icon__line-3"
77
- width="20"
78
- />
79
- </svg>
80
- </ForwardRef(Base)>
81
- </ForwardRef(SvgIcon)>
82
- </ForwardRef(BurgerIcon)>
83
- `;
84
-
85
- exports[`renders the BurgerIcon prop hidden="s" 1`] = `
86
- <ForwardRef(BurgerIcon)
87
- hidden="s"
88
- >
89
- <ForwardRef(SvgIcon)
90
- className="govgr-burger-icon--hidden-s govgr-burger-icon"
91
- >
92
- <ForwardRef(Base)
93
- aria-hidden="true"
94
- as="svg"
95
- className="govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon"
96
- focusable="false"
97
- viewBox="0 0 24 24"
98
- >
99
- <svg
100
- aria-hidden="true"
101
- className="govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon"
102
- focusable="false"
103
- viewBox="0 0 24 24"
104
- >
105
- <rect
106
- height="3.3"
107
- id="govgr-burger-icon__line-1"
108
- width="20"
109
- />
110
- <rect
111
- height="3.3"
112
- id="govgr-burger-icon__line-2"
113
- width="20"
114
- />
115
- <rect
116
- height="3.3"
117
- id="govgr-burger-icon__line-3"
118
- width="20"
119
- />
120
- </svg>
121
- </ForwardRef(Base)>
122
- </ForwardRef(SvgIcon)>
123
- </ForwardRef(BurgerIcon)>
124
- `;
125
-
126
3
  exports[`renders the BurgerIcon prop variant= "error" 1`] = `
127
4
  <ForwardRef(BurgerIcon)
128
5
  variant="error"
@@ -207,7 +84,7 @@ exports[`renders the BurgerIcon prop variant= "light" 1`] = `
207
84
  </ForwardRef(BurgerIcon)>
208
85
  `;
209
86
 
210
- exports[`renders the BurgerIcon props active hidden="no" variant= "light" 1`] = `
87
+ exports[`renders the BurgerIcon props active variant= "light" 1`] = `
211
88
  <ForwardRef(BurgerIcon)
212
89
  active={true}
213
90
  variant="light"
@@ -371,90 +248,3 @@ exports[`renders the BurgerIcon with prop variant=dark 1`] = `
371
248
  </ForwardRef(SvgIcon)>
372
249
  </ForwardRef(BurgerIcon)>
373
250
  `;
374
-
375
- exports[`renders the BurgerIcon with props active hidden="s" and variant="dark" 1`] = `
376
- <ForwardRef(BurgerIcon)
377
- active={true}
378
- hidden="s"
379
- variant="dark"
380
- >
381
- <ForwardRef(SvgIcon)
382
- className="govgr-burger-icon--active govgr-burger-icon--hidden-s govgr-burger-icon"
383
- variant="dark"
384
- >
385
- <ForwardRef(Base)
386
- aria-hidden="true"
387
- as="svg"
388
- className="govgr-burger-icon--active govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon--dark govgr-svg-icon"
389
- focusable="false"
390
- viewBox="0 0 24 24"
391
- >
392
- <svg
393
- aria-hidden="true"
394
- className="govgr-burger-icon--active govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon--dark govgr-svg-icon"
395
- focusable="false"
396
- viewBox="0 0 24 24"
397
- >
398
- <rect
399
- height="3.3"
400
- id="govgr-burger-icon__line-1"
401
- width="20"
402
- />
403
- <rect
404
- height="3.3"
405
- id="govgr-burger-icon__line-2"
406
- width="20"
407
- />
408
- <rect
409
- height="3.3"
410
- id="govgr-burger-icon__line-3"
411
- width="20"
412
- />
413
- </svg>
414
- </ForwardRef(Base)>
415
- </ForwardRef(SvgIcon)>
416
- </ForwardRef(BurgerIcon)>
417
- `;
418
-
419
- exports[`renders the BurgerIcon with props hidden="l" and variant="success" 1`] = `
420
- <ForwardRef(BurgerIcon)
421
- hidden="l"
422
- variant="success"
423
- >
424
- <ForwardRef(SvgIcon)
425
- className="govgr-burger-icon--hidden-l govgr-burger-icon"
426
- variant="success"
427
- >
428
- <ForwardRef(Base)
429
- aria-hidden="true"
430
- as="svg"
431
- className="govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon--success govgr-svg-icon"
432
- focusable="false"
433
- viewBox="0 0 24 24"
434
- >
435
- <svg
436
- aria-hidden="true"
437
- className="govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon--success govgr-svg-icon"
438
- focusable="false"
439
- viewBox="0 0 24 24"
440
- >
441
- <rect
442
- height="3.3"
443
- id="govgr-burger-icon__line-1"
444
- width="20"
445
- />
446
- <rect
447
- height="3.3"
448
- id="govgr-burger-icon__line-2"
449
- width="20"
450
- />
451
- <rect
452
- height="3.3"
453
- id="govgr-burger-icon__line-3"
454
- width="20"
455
- />
456
- </svg>
457
- </ForwardRef(Base)>
458
- </ForwardRef(SvgIcon)>
459
- </ForwardRef(BurgerIcon)>
460
- `;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["variant", "size", "active", "hidden", "className"];
3
+ var _excluded = ["variant", "size", "active", "className"];
4
4
  import React from 'react';
5
5
  import SvgIcon from '@digigov/react-core/SvgIcon';
6
6
  import clsx from 'clsx';
@@ -31,14 +31,13 @@ export var BurgerIcon = /*#__PURE__*/React.forwardRef(function BurgerIcon(_ref,
31
31
  var variant = _ref.variant,
32
32
  size = _ref.size,
33
33
  active = _ref.active,
34
- hidden = _ref.hidden,
35
34
  className = _ref.className,
36
35
  props = _objectWithoutProperties(_ref, _excluded);
37
36
 
38
37
  return /*#__PURE__*/React.createElement(SvgIcon, _extends({
39
38
  variant: variant,
40
39
  size: size,
41
- className: clsx(className, active === true && 'govgr-burger-icon--active', hidden === 's' && 'govgr-burger-icon--hidden-s', hidden === 'm' && 'govgr-burger-icon--hidden-m', hidden === 'l' && 'govgr-burger-icon--hidden-l', true && 'govgr-burger-icon'),
40
+ className: clsx(className, active === true && 'govgr-burger-icon--active', true && 'govgr-burger-icon'),
42
41
  ref: ref
43
42
  }, props), _ref2, _ref3, _ref4);
44
43
  });
@@ -41,53 +41,10 @@ it('renders the BurgerIcon prop variant= "error"', function () {
41
41
  });
42
42
 
43
43
  var _ref6 = /*#__PURE__*/React.createElement(BurgerIcon, {
44
- hidden: "s"
45
- });
46
-
47
- it('renders the BurgerIcon prop hidden="s"', function () {
48
- expect(mount(_ref6)).toMatchSnapshot();
49
- });
50
-
51
- var _ref7 = /*#__PURE__*/React.createElement(BurgerIcon, {
52
- hidden: "m"
53
- });
54
-
55
- it('renders the BurgerIcon prop hidden="m"', function () {
56
- expect(mount(_ref7)).toMatchSnapshot();
57
- });
58
-
59
- var _ref8 = /*#__PURE__*/React.createElement(BurgerIcon, {
60
- hidden: "l"
61
- });
62
-
63
- it('renders the BurgerIcon prop hidden="l"', function () {
64
- expect(mount(_ref8)).toMatchSnapshot();
65
- });
66
-
67
- var _ref9 = /*#__PURE__*/React.createElement(BurgerIcon, {
68
- active: true,
69
- hidden: "s",
70
- variant: "dark"
71
- });
72
-
73
- it('renders the BurgerIcon with props active hidden="s" and variant="dark"', function () {
74
- expect(mount(_ref9)).toMatchSnapshot();
75
- });
76
-
77
- var _ref10 = /*#__PURE__*/React.createElement(BurgerIcon, {
78
- hidden: "l",
79
- variant: "success"
80
- });
81
-
82
- it('renders the BurgerIcon with props hidden="l" and variant="success"', function () {
83
- expect(mount(_ref10)).toMatchSnapshot();
84
- });
85
-
86
- var _ref11 = /*#__PURE__*/React.createElement(BurgerIcon, {
87
44
  active: true,
88
45
  variant: "light"
89
46
  });
90
47
 
91
- it('renders the BurgerIcon props active hidden="no" variant= "light"', function () {
92
- expect(mount(_ref11)).toMatchSnapshot();
48
+ it('renders the BurgerIcon props active variant= "light"', function () {
49
+ expect(mount(_ref6)).toMatchSnapshot();
93
50
  });
@@ -0,0 +1,178 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the GlobeIcon prop variant= "error" 1`] = `
4
+ <ForwardRef(GlobeIcon)
5
+ variant="error"
6
+ >
7
+ <ForwardRef(SvgIcon)
8
+ className="govgr-globe-icon"
9
+ variant="error"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="govgr-globe-icon govgr-svg-icon--error govgr-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="govgr-globe-icon govgr-svg-icon--error govgr-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <path
25
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
26
+ />
27
+ </svg>
28
+ </ForwardRef(Base)>
29
+ </ForwardRef(SvgIcon)>
30
+ </ForwardRef(GlobeIcon)>
31
+ `;
32
+
33
+ exports[`renders the GlobeIcon prop variant= "light" 1`] = `
34
+ <ForwardRef(GlobeIcon)
35
+ variant="light"
36
+ >
37
+ <ForwardRef(SvgIcon)
38
+ className="govgr-globe-icon"
39
+ variant="light"
40
+ >
41
+ <ForwardRef(Base)
42
+ aria-hidden="true"
43
+ as="svg"
44
+ className="govgr-globe-icon govgr-svg-icon--light govgr-svg-icon"
45
+ focusable="false"
46
+ viewBox="0 0 24 24"
47
+ >
48
+ <svg
49
+ aria-hidden="true"
50
+ className="govgr-globe-icon govgr-svg-icon--light govgr-svg-icon"
51
+ focusable="false"
52
+ viewBox="0 0 24 24"
53
+ >
54
+ <path
55
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
56
+ />
57
+ </svg>
58
+ </ForwardRef(Base)>
59
+ </ForwardRef(SvgIcon)>
60
+ </ForwardRef(GlobeIcon)>
61
+ `;
62
+
63
+ exports[`renders the GlobeIcon props active variant= "light" 1`] = `
64
+ <ForwardRef(GlobeIcon)
65
+ active={true}
66
+ variant="light"
67
+ >
68
+ <ForwardRef(SvgIcon)
69
+ className="govgr-globe-icon--active govgr-globe-icon"
70
+ variant="light"
71
+ >
72
+ <ForwardRef(Base)
73
+ aria-hidden="true"
74
+ as="svg"
75
+ className="govgr-globe-icon--active govgr-globe-icon govgr-svg-icon--light govgr-svg-icon"
76
+ focusable="false"
77
+ viewBox="0 0 24 24"
78
+ >
79
+ <svg
80
+ aria-hidden="true"
81
+ className="govgr-globe-icon--active govgr-globe-icon govgr-svg-icon--light govgr-svg-icon"
82
+ focusable="false"
83
+ viewBox="0 0 24 24"
84
+ >
85
+ <path
86
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
87
+ />
88
+ </svg>
89
+ </ForwardRef(Base)>
90
+ </ForwardRef(SvgIcon)>
91
+ </ForwardRef(GlobeIcon)>
92
+ `;
93
+
94
+ exports[`renders the GlobeIcon with no props 1`] = `
95
+ <ForwardRef(GlobeIcon)>
96
+ <ForwardRef(SvgIcon)
97
+ className="govgr-globe-icon"
98
+ >
99
+ <ForwardRef(Base)
100
+ aria-hidden="true"
101
+ as="svg"
102
+ className="govgr-globe-icon govgr-svg-icon"
103
+ focusable="false"
104
+ viewBox="0 0 24 24"
105
+ >
106
+ <svg
107
+ aria-hidden="true"
108
+ className="govgr-globe-icon govgr-svg-icon"
109
+ focusable="false"
110
+ viewBox="0 0 24 24"
111
+ >
112
+ <path
113
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
114
+ />
115
+ </svg>
116
+ </ForwardRef(Base)>
117
+ </ForwardRef(SvgIcon)>
118
+ </ForwardRef(GlobeIcon)>
119
+ `;
120
+
121
+ exports[`renders the GlobeIcon with prop active=true 1`] = `
122
+ <ForwardRef(GlobeIcon)
123
+ active={true}
124
+ >
125
+ <ForwardRef(SvgIcon)
126
+ className="govgr-globe-icon--active govgr-globe-icon"
127
+ >
128
+ <ForwardRef(Base)
129
+ aria-hidden="true"
130
+ as="svg"
131
+ className="govgr-globe-icon--active govgr-globe-icon govgr-svg-icon"
132
+ focusable="false"
133
+ viewBox="0 0 24 24"
134
+ >
135
+ <svg
136
+ aria-hidden="true"
137
+ className="govgr-globe-icon--active govgr-globe-icon govgr-svg-icon"
138
+ focusable="false"
139
+ viewBox="0 0 24 24"
140
+ >
141
+ <path
142
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
143
+ />
144
+ </svg>
145
+ </ForwardRef(Base)>
146
+ </ForwardRef(SvgIcon)>
147
+ </ForwardRef(GlobeIcon)>
148
+ `;
149
+
150
+ exports[`renders the GlobeIcon with prop variant=dark 1`] = `
151
+ <ForwardRef(GlobeIcon)
152
+ variant="dark"
153
+ >
154
+ <ForwardRef(SvgIcon)
155
+ className="govgr-globe-icon"
156
+ variant="dark"
157
+ >
158
+ <ForwardRef(Base)
159
+ aria-hidden="true"
160
+ as="svg"
161
+ className="govgr-globe-icon govgr-svg-icon--dark govgr-svg-icon"
162
+ focusable="false"
163
+ viewBox="0 0 24 24"
164
+ >
165
+ <svg
166
+ aria-hidden="true"
167
+ className="govgr-globe-icon govgr-svg-icon--dark govgr-svg-icon"
168
+ focusable="false"
169
+ viewBox="0 0 24 24"
170
+ >
171
+ <path
172
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
173
+ />
174
+ </svg>
175
+ </ForwardRef(Base)>
176
+ </ForwardRef(SvgIcon)>
177
+ </ForwardRef(GlobeIcon)>
178
+ `;
@@ -0,0 +1,30 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["variant", "size", "active", "className"];
4
+ import React from 'react';
5
+ import SvgIcon from '@digigov/react-core/SvgIcon';
6
+ import clsx from 'clsx';
7
+
8
+ var _ref2 = /*#__PURE__*/React.createElement("path", {
9
+ d: "M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
10
+ });
11
+
12
+ /**
13
+ * GlobeIcon is used inside the Header component.
14
+ * It should be linked with the NavHorizontal component. It is hidden when the NavHorizontal is visible and vice versa.
15
+ */
16
+ export var GlobeIcon = /*#__PURE__*/React.forwardRef(function GlobeIcon(_ref, ref) {
17
+ var variant = _ref.variant,
18
+ size = _ref.size,
19
+ active = _ref.active,
20
+ className = _ref.className,
21
+ props = _objectWithoutProperties(_ref, _excluded);
22
+
23
+ return /*#__PURE__*/React.createElement(SvgIcon, _extends({
24
+ variant: variant,
25
+ size: size,
26
+ className: clsx(className, active === true && 'govgr-globe-icon--active', true && 'govgr-globe-icon'),
27
+ ref: ref
28
+ }, props), _ref2);
29
+ });
30
+ export default GlobeIcon;
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import GlobeIcon from '@digigov/react-core/GlobeIcon';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(GlobeIcon, null);
6
+
7
+ it('renders the GlobeIcon with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(GlobeIcon, {
12
+ active: true
13
+ });
14
+
15
+ it('renders the GlobeIcon with prop active=true', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(GlobeIcon, {
20
+ variant: "dark"
21
+ });
22
+
23
+ it('renders the GlobeIcon with prop variant=dark', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
26
+
27
+ var _ref4 = /*#__PURE__*/React.createElement(GlobeIcon, {
28
+ variant: "light"
29
+ });
30
+
31
+ it('renders the GlobeIcon prop variant= "light"', function () {
32
+ expect(mount(_ref4)).toMatchSnapshot();
33
+ });
34
+
35
+ var _ref5 = /*#__PURE__*/React.createElement(GlobeIcon, {
36
+ variant: "error"
37
+ });
38
+
39
+ it('renders the GlobeIcon prop variant= "error"', function () {
40
+ expect(mount(_ref5)).toMatchSnapshot();
41
+ });
42
+
43
+ var _ref6 = /*#__PURE__*/React.createElement(GlobeIcon, {
44
+ active: true,
45
+ variant: "light"
46
+ });
47
+
48
+ it('renders the GlobeIcon props active variant= "light"', function () {
49
+ expect(mount(_ref6)).toMatchSnapshot();
50
+ });
@@ -4,10 +4,10 @@ exports[`renders the Masthead with no props 1`] = `
4
4
  <ForwardRef(Masthead)>
5
5
  <ForwardRef(Base)
6
6
  as="div"
7
- className="govgr-masthead govgr-background-dark"
7
+ className="govgr-background-dark govgr-masthead--primary govgr-masthead"
8
8
  >
9
9
  <div
10
- className="govgr-masthead govgr-background-dark"
10
+ className="govgr-background-dark govgr-masthead--primary govgr-masthead"
11
11
  >
12
12
  hello
13
13
  </div>
@@ -0,0 +1,33 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the Nav with no props 1`] = `
4
+ <ForwardRef(Nav)>
5
+ <ForwardRef(Base)
6
+ as="nav"
7
+ className="govgr-nav-horizontal--border govgr-horizontal-nav"
8
+ >
9
+ <nav
10
+ className="govgr-nav-horizontal--border govgr-horizontal-nav"
11
+ >
12
+ hello
13
+ </nav>
14
+ </ForwardRef(Base)>
15
+ </ForwardRef(Nav)>
16
+ `;
17
+
18
+ exports[`renders the Nav with open prop 1`] = `
19
+ <ForwardRef(Nav)
20
+ open={true}
21
+ >
22
+ <ForwardRef(Base)
23
+ as="nav"
24
+ className="govgr-nav-horizontal--border govgr-horizontal-nav govgr-horizontal-nav--open"
25
+ >
26
+ <nav
27
+ className="govgr-nav-horizontal--border govgr-horizontal-nav govgr-horizontal-nav--open"
28
+ >
29
+ hello
30
+ </nav>
31
+ </ForwardRef(Base)>
32
+ </ForwardRef(Nav)>
33
+ `;
@@ -1,25 +1,27 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["className", "open", "children"];
3
+ var _excluded = ["className", "open", "layout", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
7
7
 
8
8
  /**
9
- * NavHorizontal is mainly used under the Header.
10
- * This is a wrapper for the NavHorizontalList component.
9
+ * Nav is mainly used under the Header.
10
+ * This is a wrapper for the NavList component.
11
11
  */
12
- export var NavHorizontal = /*#__PURE__*/React.forwardRef(function NavHorizontal(_ref, ref) {
12
+ export var Nav = /*#__PURE__*/React.forwardRef(function Nav(_ref, ref) {
13
13
  var className = _ref.className,
14
14
  _ref$open = _ref.open,
15
15
  open = _ref$open === void 0 ? false : _ref$open,
16
+ _ref$layout = _ref.layout,
17
+ layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
16
18
  children = _ref.children,
17
19
  props = _objectWithoutProperties(_ref, _excluded);
18
20
 
19
21
  return /*#__PURE__*/React.createElement(Base, _extends({
20
22
  as: "nav",
21
23
  ref: ref,
22
- className: clsx(className, true && 'govgr-horizontal-nav', open && 'govgr-horizontal-nav--open')
24
+ className: clsx(className, layout === 'horizontal' && 'govgr-nav-horizontal--border', true && 'govgr-horizontal-nav', open && 'govgr-horizontal-nav--open')
23
25
  }, props), children);
24
26
  });
25
- export default NavHorizontal;
27
+ export default Nav;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import Nav from '@digigov/react-core/Nav';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(Nav, null, "hello");
6
+
7
+ it('renders the Nav with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(Nav, {
12
+ open: true
13
+ }, "hello");
14
+
15
+ it('renders the Nav with open prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });