@digigov/react-core 0.20.0-navlist.alpha.3 → 0.20.1

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 +26 -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
@@ -0,0 +1,33 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the NavList with active prop 1`] = `
4
+ <ForwardRef(NavList)
5
+ active={true}
6
+ >
7
+ <ForwardRef(Base)
8
+ as="ul"
9
+ className="govgr-horizontal-nav__list govgr-horizontal-nav__list--active"
10
+ >
11
+ <ul
12
+ className="govgr-horizontal-nav__list govgr-horizontal-nav__list--active"
13
+ >
14
+ hello
15
+ </ul>
16
+ </ForwardRef(Base)>
17
+ </ForwardRef(NavList)>
18
+ `;
19
+
20
+ exports[`renders the NavList with no props 1`] = `
21
+ <ForwardRef(NavList)>
22
+ <ForwardRef(Base)
23
+ as="ul"
24
+ className="govgr-horizontal-nav__list"
25
+ >
26
+ <ul
27
+ className="govgr-horizontal-nav__list"
28
+ >
29
+ hello
30
+ </ul>
31
+ </ForwardRef(Base)>
32
+ </ForwardRef(NavList)>
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", "active", "children"];
3
+ var _excluded = ["className", "active", "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
- * NavHorizontalList must be inside the NavHorizontal.
10
- * This component has a list of NavHorizontalListItem component inside.
9
+ * NavList must be inside the Nav.
10
+ * This component has a list of NavListItem component inside.
11
11
  */
12
- export var NavHorizontalList = /*#__PURE__*/React.forwardRef(function NavHorizontalList(_ref, ref) {
12
+ export var NavList = /*#__PURE__*/React.forwardRef(function NavList(_ref, ref) {
13
13
  var className = _ref.className,
14
14
  _ref$active = _ref.active,
15
15
  active = _ref$active === void 0 ? false : _ref$active,
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: "ul",
21
23
  ref: ref,
22
- className: clsx(className, active && 'govgr-horizontal-nav__list--active', true && 'govgr-horizontal-nav__list')
24
+ className: clsx(className, layout === 'horizontal' && 'govgr-horizontal-nav__list', layout === 'vertical' && 'govgr-vertical-nav__list', active && 'govgr-horizontal-nav__list--active')
23
25
  }, props), children);
24
26
  });
25
- export default NavHorizontalList;
27
+ export default NavList;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import NavList from '@digigov/react-core/NavList';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(NavList, null, "hello");
6
+
7
+ it('renders the NavList with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(NavList, {
12
+ active: true
13
+ }, "hello");
14
+
15
+ it('renders the NavList with active prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
@@ -1,6 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the NavHorizontalListItem with no props 1`] = `
3
+ exports[`renders the NavListItem with no props 1`] = `
4
4
  <ForwardRef(NavHeaderListItem)>
5
5
  <ForwardRef(Base)
6
6
  as="li"
@@ -0,0 +1,25 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "layout", "children"];
4
+ import React from 'react';
5
+ import Base from '@digigov/react-core/Base';
6
+ import clsx from 'clsx';
7
+
8
+ /**
9
+ * NavListItem must be inside the NavList.
10
+ * This component has a items of NavListItemLink component inside.
11
+ */
12
+ export var NavListItem = /*#__PURE__*/React.forwardRef(function NavHeaderListItem(_ref, ref) {
13
+ var className = _ref.className,
14
+ _ref$layout = _ref.layout,
15
+ layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
16
+ children = _ref.children,
17
+ props = _objectWithoutProperties(_ref, _excluded);
18
+
19
+ return /*#__PURE__*/React.createElement(Base, _extends({
20
+ as: "li",
21
+ ref: ref,
22
+ className: clsx(className, layout === 'horizontal' && 'govgr-horizontal-nav__list-item', layout === 'vertical' && 'govgr-vertical-nav__list-item')
23
+ }, props), children);
24
+ });
25
+ export default NavListItem;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import NavListItem from '@digigov/react-core/NavListItem';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(NavListItem, null, "hello");
6
+
7
+ it('renders the NavListItem with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
@@ -1,43 +1,46 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the NavHorizontalListItemButton with active=true 1`] = `
4
- <ForwardRef(NavHorizontalListItemButton)
5
- active={true}
3
+ exports[`renders the NavListItemButton with active=false 1`] = `
4
+ <ForwardRef(NavListItemButton)
5
+ active={false}
6
6
  >
7
7
  <ForwardRef(Button)
8
- className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn"
8
+ aria-selected={false}
9
+ className="govgr-horizontal-nav__list-item-btn"
9
10
  variant="link"
10
11
  >
11
12
  <ForwardRef(Base)
13
+ aria-selected={false}
12
14
  as="button"
13
- className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn govgr-link"
15
+ className="govgr-horizontal-nav__list-item-btn govgr-link"
14
16
  printHidden={true}
15
17
  >
16
18
  <button
17
- className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn govgr-link govgr-print-hidden"
19
+ aria-selected={false}
20
+ className="govgr-horizontal-nav__list-item-btn govgr-link govgr-print-hidden"
18
21
  >
19
22
  hello
20
23
  <ForwardRef(ArrowIcon)
21
- direction="up"
24
+ direction="down"
22
25
  >
23
26
  <ForwardRef(SvgIcon)
24
- className="govgr-arrow--up"
27
+ className="govgr-arrow--down"
25
28
  >
26
29
  <ForwardRef(Base)
27
30
  aria-hidden="true"
28
31
  as="svg"
29
- className="govgr-arrow--up govgr-svg-icon"
32
+ className="govgr-arrow--down govgr-svg-icon"
30
33
  focusable="false"
31
34
  viewBox="0 0 24 24"
32
35
  >
33
36
  <svg
34
37
  aria-hidden="true"
35
- className="govgr-arrow--up govgr-svg-icon"
38
+ className="govgr-arrow--down govgr-svg-icon"
36
39
  focusable="false"
37
40
  viewBox="0 0 24 24"
38
41
  >
39
42
  <path
40
- d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
43
+ d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
41
44
  />
42
45
  </svg>
43
46
  </ForwardRef(Base)>
@@ -46,45 +49,50 @@ exports[`renders the NavHorizontalListItemButton with active=true 1`] = `
46
49
  </button>
47
50
  </ForwardRef(Base)>
48
51
  </ForwardRef(Button)>
49
- </ForwardRef(NavHorizontalListItemButton)>
52
+ </ForwardRef(NavListItemButton)>
50
53
  `;
51
54
 
52
- exports[`renders the NavHorizontalListItemButton with no props 1`] = `
53
- <ForwardRef(NavHorizontalListItemButton)>
55
+ exports[`renders the NavListItemButton with active=true 1`] = `
56
+ <ForwardRef(NavListItemButton)
57
+ active={true}
58
+ >
54
59
  <ForwardRef(Button)
55
- className="govgr-horizontal-nav__list-item-btn"
60
+ aria-selected={true}
61
+ className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn"
56
62
  variant="link"
57
63
  >
58
64
  <ForwardRef(Base)
65
+ aria-selected={true}
59
66
  as="button"
60
- className="govgr-horizontal-nav__list-item-btn govgr-link"
67
+ className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn govgr-link"
61
68
  printHidden={true}
62
69
  >
63
70
  <button
64
- className="govgr-horizontal-nav__list-item-btn govgr-link govgr-print-hidden"
71
+ aria-selected={true}
72
+ className="govgr-horizontal-nav__list-item-btn--active govgr-horizontal-nav__list-item-btn govgr-link govgr-print-hidden"
65
73
  >
66
74
  hello
67
75
  <ForwardRef(ArrowIcon)
68
- direction="down"
76
+ direction="up"
69
77
  >
70
78
  <ForwardRef(SvgIcon)
71
- className="govgr-arrow--down"
79
+ className="govgr-arrow--up"
72
80
  >
73
81
  <ForwardRef(Base)
74
82
  aria-hidden="true"
75
83
  as="svg"
76
- className="govgr-arrow--down govgr-svg-icon"
84
+ className="govgr-arrow--up govgr-svg-icon"
77
85
  focusable="false"
78
86
  viewBox="0 0 24 24"
79
87
  >
80
88
  <svg
81
89
  aria-hidden="true"
82
- className="govgr-arrow--down govgr-svg-icon"
90
+ className="govgr-arrow--up govgr-svg-icon"
83
91
  focusable="false"
84
92
  viewBox="0 0 24 24"
85
93
  >
86
94
  <path
87
- d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
95
+ d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
88
96
  />
89
97
  </svg>
90
98
  </ForwardRef(Base)>
@@ -93,13 +101,11 @@ exports[`renders the NavHorizontalListItemButton with no props 1`] = `
93
101
  </button>
94
102
  </ForwardRef(Base)>
95
103
  </ForwardRef(Button)>
96
- </ForwardRef(NavHorizontalListItemButton)>
104
+ </ForwardRef(NavListItemButton)>
97
105
  `;
98
106
 
99
- exports[`renders the NavHorizontalListItemLink with active=false 1`] = `
100
- <ForwardRef(NavHorizontalListItemButton)
101
- active={false}
102
- >
107
+ exports[`renders the NavListItemButton with no props 1`] = `
108
+ <ForwardRef(NavListItemButton)>
103
109
  <ForwardRef(Button)
104
110
  className="govgr-horizontal-nav__list-item-btn"
105
111
  variant="link"
@@ -142,5 +148,5 @@ exports[`renders the NavHorizontalListItemLink with active=false 1`] = `
142
148
  </button>
143
149
  </ForwardRef(Base)>
144
150
  </ForwardRef(Button)>
145
- </ForwardRef(NavHorizontalListItemButton)>
151
+ </ForwardRef(NavListItemButton)>
146
152
  `;
@@ -7,9 +7,9 @@ import Button from '@digigov/react-core/Button';
7
7
  import ArrowIcon from '@digigov/react-core/ArrowIcon';
8
8
 
9
9
  /**
10
- * NavHorizontalListItemButton is an <button> element. It should be inside the NavHorizontalListItem component.
10
+ * NavListItemButton is an <button> element. It should be inside the NavListItem component.
11
11
  */
12
- export var NavHorizontalListItemButton = /*#__PURE__*/React.forwardRef(function NavHorizontalListItemButton(_ref, ref) {
12
+ export var NavListItemButton = /*#__PURE__*/React.forwardRef(function NavListItemButton(_ref, ref) {
13
13
  var active = _ref.active,
14
14
  className = _ref.className,
15
15
  _ref$arrow = _ref.arrow,
@@ -26,4 +26,4 @@ export var NavHorizontalListItemButton = /*#__PURE__*/React.forwardRef(function
26
26
  direction: active ? 'up' : 'down'
27
27
  }));
28
28
  });
29
- export default NavHorizontalListItemButton;
29
+ export default NavListItemButton;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import NavListItemButton from '@digigov/react-core/NavListItemButton';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(NavListItemButton, null, "hello");
6
+
7
+ it('renders the NavListItemButton with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(NavListItemButton, {
12
+ active: true
13
+ }, "hello");
14
+
15
+ it('renders the NavListItemButton with active=true', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(NavListItemButton, {
20
+ active: false
21
+ }, "hello");
22
+
23
+ it('renders the NavListItemButton with active=false', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`renders the NavHorizontalListItemLink with active=false 1`] = `
4
- <ForwardRef(NavHorizontalListItemLink)
3
+ exports[`renders the NavListItemLink with active=false 1`] = `
4
+ <ForwardRef(NavListItemLink)
5
5
  active={false}
6
6
  >
7
7
  <ForwardRef(LinkBase)
@@ -21,11 +21,11 @@ exports[`renders the NavHorizontalListItemLink with active=false 1`] = `
21
21
  </a>
22
22
  </ForwardRef(Base)>
23
23
  </ForwardRef(LinkBase)>
24
- </ForwardRef(NavHorizontalListItemLink)>
24
+ </ForwardRef(NavListItemLink)>
25
25
  `;
26
26
 
27
- exports[`renders the NavHorizontalListItemLink with active=true 1`] = `
28
- <ForwardRef(NavHorizontalListItemLink)
27
+ exports[`renders the NavListItemLink with active=true 1`] = `
28
+ <ForwardRef(NavListItemLink)
29
29
  active={true}
30
30
  >
31
31
  <ForwardRef(LinkBase)
@@ -45,11 +45,11 @@ exports[`renders the NavHorizontalListItemLink with active=true 1`] = `
45
45
  </a>
46
46
  </ForwardRef(Base)>
47
47
  </ForwardRef(LinkBase)>
48
- </ForwardRef(NavHorizontalListItemLink)>
48
+ </ForwardRef(NavListItemLink)>
49
49
  `;
50
50
 
51
- exports[`renders the NavHorizontalListItemLink with href and active=false 1`] = `
52
- <ForwardRef(NavHorizontalListItemLink)
51
+ exports[`renders the NavListItemLink with href and active=false 1`] = `
52
+ <ForwardRef(NavListItemLink)
53
53
  active={false}
54
54
  href="/"
55
55
  >
@@ -70,11 +70,11 @@ exports[`renders the NavHorizontalListItemLink with href and active=false 1`] =
70
70
  </a>
71
71
  </ForwardRef(Base)>
72
72
  </ForwardRef(LinkBase)>
73
- </ForwardRef(NavHorizontalListItemLink)>
73
+ </ForwardRef(NavListItemLink)>
74
74
  `;
75
75
 
76
- exports[`renders the NavHorizontalListItemLink with href and active=true 1`] = `
77
- <ForwardRef(NavHorizontalListItemLink)
76
+ exports[`renders the NavListItemLink with href and active=true 1`] = `
77
+ <ForwardRef(NavListItemLink)
78
78
  active={false}
79
79
  href="/"
80
80
  >
@@ -95,11 +95,11 @@ exports[`renders the NavHorizontalListItemLink with href and active=true 1`] = `
95
95
  </a>
96
96
  </ForwardRef(Base)>
97
97
  </ForwardRef(LinkBase)>
98
- </ForwardRef(NavHorizontalListItemLink)>
98
+ </ForwardRef(NavListItemLink)>
99
99
  `;
100
100
 
101
- exports[`renders the NavHorizontalListItemLink with no props 1`] = `
102
- <ForwardRef(NavHorizontalListItemLink)>
101
+ exports[`renders the NavListItemLink with no props 1`] = `
102
+ <ForwardRef(NavListItemLink)>
103
103
  <ForwardRef(LinkBase)
104
104
  className="govgr-horizontal-nav__list-item-link"
105
105
  href="#"
@@ -117,5 +117,5 @@ exports[`renders the NavHorizontalListItemLink with no props 1`] = `
117
117
  </a>
118
118
  </ForwardRef(Base)>
119
119
  </ForwardRef(LinkBase)>
120
- </ForwardRef(NavHorizontalListItemLink)>
120
+ </ForwardRef(NavListItemLink)>
121
121
  `;
@@ -6,9 +6,9 @@ import clsx from 'clsx';
6
6
  import Link from '@digigov/react-core/LinkBase';
7
7
 
8
8
  /**
9
- * NavHorizontalListItemLink is an <a> element. It should be inside the NavHorizontalListItem component.
9
+ * NavListItemLink is an <a> element. It should be inside the NavListItem component.
10
10
  */
11
- export var NavHorizontalListItemLink = /*#__PURE__*/React.forwardRef(function NavHorizontalListItemLink(_ref, ref) {
11
+ export var NavListItemLink = /*#__PURE__*/React.forwardRef(function NavListItemLink(_ref, ref) {
12
12
  var active = _ref.active,
13
13
  _ref$href = _ref.href,
14
14
  href = _ref$href === void 0 ? '#' : _ref$href,
@@ -22,4 +22,4 @@ export var NavHorizontalListItemLink = /*#__PURE__*/React.forwardRef(function Na
22
22
  className: clsx(className, active === true && 'govgr-horizontal-nav__list-item-link--active', true && 'govgr-horizontal-nav__list-item-link')
23
23
  }, props), children);
24
24
  });
25
- export default NavHorizontalListItemLink;
25
+ export default NavListItemLink;
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import NavListItemLink from '@digigov/react-core/NavListItemLink';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(NavListItemLink, null, "hello");
6
+
7
+ it('renders the NavListItemLink with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(NavListItemLink, {
12
+ active: true
13
+ }, "hello");
14
+
15
+ it('renders the NavListItemLink with active=true', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(NavListItemLink, {
20
+ active: false
21
+ }, "hello");
22
+
23
+ it('renders the NavListItemLink with active=false', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
26
+
27
+ var _ref4 = /*#__PURE__*/React.createElement(NavListItemLink, {
28
+ href: "/",
29
+ active: false
30
+ }, "hello");
31
+
32
+ it('renders the NavListItemLink with href and active=false', function () {
33
+ expect(mount(_ref4)).toMatchSnapshot();
34
+ });
35
+
36
+ var _ref5 = /*#__PURE__*/React.createElement(NavListItemLink, {
37
+ href: "/",
38
+ active: false
39
+ }, "hello");
40
+
41
+ it('renders the NavListItemLink with href and active=true', function () {
42
+ expect(mount(_ref5)).toMatchSnapshot();
43
+ });
@@ -3,11 +3,13 @@
3
3
  exports[`renders the NavMenu with no props 1`] = `
4
4
  <ForwardRef(NavMenu)>
5
5
  <ForwardRef(Base)
6
+ aria-hidden={true}
6
7
  as="div"
7
- className="govgr-nav-list__menu"
8
+ className="govgr-nav-list__menu govgr-nav-list__menu-hidden"
8
9
  >
9
10
  <div
10
- className="govgr-nav-list__menu"
11
+ aria-hidden={true}
12
+ className="govgr-nav-list__menu govgr-nav-list__menu-hidden"
11
13
  >
12
14
  hello
13
15
  </div>
@@ -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 = ["active", "className", "children"];
3
+ var _excluded = ["active", "layout", "className", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -11,6 +11,8 @@ import clsx from 'clsx';
11
11
  */
12
12
  export var NavMenu = /*#__PURE__*/React.forwardRef(function NavMenu(_ref, ref) {
13
13
  var active = _ref.active,
14
+ _ref$layout = _ref.layout,
15
+ layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
14
16
  className = _ref.className,
15
17
  children = _ref.children,
16
18
  props = _objectWithoutProperties(_ref, _excluded);
@@ -19,7 +21,7 @@ export var NavMenu = /*#__PURE__*/React.forwardRef(function NavMenu(_ref, ref) {
19
21
  as: "div",
20
22
  ref: ref,
21
23
  "aria-hidden": !active,
22
- className: clsx(className, !active && 'govgr-nav-list__menu-hidden', true && 'govgr-nav-list__menu')
24
+ className: clsx(className, layout === 'horizontal' && 'govgr-nav-list__menu', layout === 'vertical' && 'govgr-vertical-nav-list__menu', !active && 'govgr-nav-list__menu-hidden')
23
25
  }, props), children);
24
26
  });
25
27
  export default NavMenu;
@@ -4,6 +4,7 @@ exports[`renders the NavMenuContainer with no props 1`] = `
4
4
  <ForwardRef(NavMenuContainer)>
5
5
  <ForwardRef(Container)
6
6
  className=""
7
+ cols={true}
7
8
  >
8
9
  <ForwardRef(Base)
9
10
  as="div"
@@ -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 = ["className", "children"];
3
+ var _excluded = ["className", "layout", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import Container from '@digigov/react-core/Container';
@@ -11,10 +11,13 @@ import Container from '@digigov/react-core/Container';
11
11
  */
12
12
  export var NavMenuContainer = /*#__PURE__*/React.forwardRef(function NavMenuContainer(_ref, ref) {
13
13
  var className = _ref.className,
14
+ _ref$layout = _ref.layout,
15
+ layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
14
16
  children = _ref.children,
15
17
  props = _objectWithoutProperties(_ref, _excluded);
16
18
 
17
19
  return /*#__PURE__*/React.createElement(Container, _extends({
20
+ cols: layout === 'horizontal',
18
21
  ref: ref,
19
22
  className: clsx(className)
20
23
  }, props), children);
@@ -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 = ["className", "children"];
3
+ var _excluded = ["className", "layout", "children"];
4
4
  import React from 'react';
5
5
  import Base from '@digigov/react-core/Base';
6
6
  import clsx from 'clsx';
@@ -11,13 +11,15 @@ import clsx from 'clsx';
11
11
  */
12
12
  export var NavMenuContainerContentList = /*#__PURE__*/React.forwardRef(function NavMenuContainerContentList(_ref, ref) {
13
13
  var className = _ref.className,
14
+ _ref$layout = _ref.layout,
15
+ layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
14
16
  children = _ref.children,
15
17
  props = _objectWithoutProperties(_ref, _excluded);
16
18
 
17
19
  return /*#__PURE__*/React.createElement(Base, _extends({
18
20
  as: "ul",
19
21
  ref: ref,
20
- className: clsx(className, true && 'govgr-nav-list__content-list')
22
+ className: clsx(className, layout === 'horizontal' && 'govgr-nav-list__content-list', layout === 'vertical' && 'govgr-vertical-nav-list__content-list')
21
23
  }, props), children);
22
24
  });
23
25
  export default NavMenuContainerContentList;
@@ -15,6 +15,7 @@ exports[`renders the NavMenuContainerTitle with no props 1`] = `
15
15
  className="md:govgr-grid__col-span-1"
16
16
  >
17
17
  <ForwardRef(Heading)
18
+ className=""
18
19
  element="h3"
19
20
  size="m"
20
21
  >
@@ -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 = ["className", "children"];
3
+ var _excluded = ["className", "layout", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
  import Grid from '@digigov/react-core/Grid';
@@ -13,6 +13,8 @@ import Heading from '@digigov/react-core/Heading';
13
13
  */
14
14
  export var NavMenuContainerTitle = /*#__PURE__*/React.forwardRef(function NavMenuContainerTitle(_ref, ref) {
15
15
  var className = _ref.className,
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
 
@@ -20,10 +22,11 @@ export var NavMenuContainerTitle = /*#__PURE__*/React.forwardRef(function NavMen
20
22
  item: true,
21
23
  md: 1,
22
24
  ref: ref,
23
- className: clsx(className)
25
+ className: clsx(className, layout === 'vertical' && 'govgr-vertical-nav-list__container-title')
24
26
  }, props), /*#__PURE__*/React.createElement(Heading, {
25
27
  element: "h3",
26
- size: "m"
28
+ size: "m",
29
+ className: clsx(layout === 'vertical' && 'govgr-vertical-nav-list__container-title-heading')
27
30
  }, children));
28
31
  });
29
32
  export default NavMenuContainerTitle;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.20.0-navlist.alpha.3
1
+ /** @license Digigov v0.20.1
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -67,6 +67,7 @@ export * from '@digigov/react-core/FooterSection';
67
67
  export * from '@digigov/react-core/FieldContainer';
68
68
  export * from '@digigov/react-core/GovGRLogo';
69
69
  export * from '@digigov/react-core/Grid';
70
+ export * from '@digigov/react-core/GlobeIcon';
70
71
  export * from '@digigov/react-core/Header';
71
72
  export * from '@digigov/react-core/HeaderContent';
72
73
  export * from '@digigov/react-core/HeaderLogo';
@@ -89,11 +90,11 @@ export * from '@digigov/react-core/Main';
89
90
  export * from '@digigov/react-core/Masthead';
90
91
  export * from '@digigov/react-core/MastheadBody';
91
92
  export * from '@digigov/react-core/MoreVertIcon';
92
- export * from '@digigov/react-core/NavHorizontal';
93
- export * from '@digigov/react-core/NavHorizontalList';
94
- export * from '@digigov/react-core/NavHorizontalListItem';
95
- export * from '@digigov/react-core/NavHorizontalListItemLink';
96
- export * from '@digigov/react-core/NavHorizontalListItemButton';
93
+ export * from '@digigov/react-core/Nav';
94
+ export * from '@digigov/react-core/NavList';
95
+ export * from '@digigov/react-core/NavListItem';
96
+ export * from '@digigov/react-core/NavListItemLink';
97
+ export * from '@digigov/react-core/NavListItemButton';
97
98
  export * from '@digigov/react-core/NavMenu';
98
99
  export * from '@digigov/react-core/NavMenuContainer';
99
100
  export * from '@digigov/react-core/NavMenuContainerContent';