@digigov/ui 0.30.2 → 0.31.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 (313) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/admin/AccessibilityMenu/index.d.ts +13 -0
  3. package/admin/AccessibilityMenu/index.js +170 -0
  4. package/admin/AutoComplete/index.d.ts +2 -2
  5. package/admin/Chip/index.d.ts +1 -0
  6. package/admin/Chip/index.js +14 -0
  7. package/admin/Drawer/__stories__/Default.js +18 -7
  8. package/admin/Dropdown/__stories__/AlignRight.js +0 -2
  9. package/admin/Dropdown/__stories__/Default.js +0 -2
  10. package/admin/Dropdown/__stories__/PlacementTop.js +0 -2
  11. package/admin/FilterSection/index.d.ts +1 -2
  12. package/admin/FilterSection/index.js +4 -18
  13. package/admin/Modal/index.d.ts +2 -2
  14. package/admin/Modal/index.js +17 -12
  15. package/admin/Pagination/__stories__/Default.js +4 -7
  16. package/admin/Pagination/__stories__/PaginationSmall.js +2 -3
  17. package/app/Footer/__stories__/FooterAllInclusive.js +1 -0
  18. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
  19. package/app/Header/__stories__/WithNavigation.js +10 -8
  20. package/app/QrCodeScanner/__stories__/Default.js +3 -3
  21. package/app/QrCodeViewer/QRCode.stories.d.ts +0 -1
  22. package/app/QrCodeViewer/index.d.ts +1 -2
  23. package/app/QrCodeViewer/index.js +10 -10
  24. package/app/ThemeOptionsForm/index.d.ts +2 -0
  25. package/app/ThemeOptionsForm/index.js +243 -0
  26. package/app/ThemePaletteForm/index.d.ts +2 -0
  27. package/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +9 -8
  28. package/app/index.d.ts +2 -1
  29. package/app/index.js +17 -4
  30. package/core/Accordion/index.d.ts +2 -2
  31. package/core/Accordion/index.js +7 -7
  32. package/core/Divider/__stories__/Default.js +5 -10
  33. package/core/ErrorSummary/__stories__/Default.js +3 -3
  34. package/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
  35. package/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
  36. package/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
  37. package/core/Link/__stories__/DarkBackground.js +6 -2
  38. package/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
  39. package/core/NavList/NavList.stories.d.ts +3 -1
  40. package/core/NavList/NavList.stories.js +32 -4
  41. package/core/NavList/NavList.stories.playwright.json +6 -6
  42. package/core/NavList/{NavListAuto.js → NavListAuto/NavListAuto.js} +11 -5
  43. package/core/NavList/{NavListBase.d.ts → NavListAuto/NavListBaseAuto.d.ts} +1 -1
  44. package/core/NavList/{NavListBase.js → NavListAuto/NavListBaseAuto.js} +6 -4
  45. package/core/NavList/{NavListContext.d.ts → NavListAuto/NavListContextAuto.d.ts} +7 -4
  46. package/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +23 -11
  47. package/core/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +11 -0
  48. package/core/NavList/{NavListSubMenu.js → NavListAuto/NavListItemAnchorAuto.js} +25 -21
  49. package/core/NavList/{NavListItemAuto.js → NavListAuto/NavListItemAuto.js} +23 -20
  50. package/core/NavList/NavListAuto/NavListItemButtonAuto.d.ts +12 -0
  51. package/core/NavList/NavListAuto/NavListItemButtonAuto.js +50 -0
  52. package/core/NavList/NavListAuto/NavListMenuAuto.d.ts +11 -0
  53. package/core/NavList/NavListAuto/NavListMenuAuto.js +59 -0
  54. package/core/NavList/NavListAuto/NavListSubMenuAuto.d.ts +9 -0
  55. package/core/NavList/NavListAuto/NavListSubMenuAuto.js +46 -0
  56. package/core/NavList/NavListItem.js +6 -5
  57. package/core/NavList/NavListItemBase.d.ts +1 -1
  58. package/core/NavList/NavListItemBase.js +3 -3
  59. package/core/NavList/NavMenuContainerContentList.d.ts +3 -1
  60. package/core/NavList/NavMenuContainerContentList.js +76 -3
  61. package/core/NavList/__stories__/Default.js +19 -6
  62. package/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
  63. package/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
  64. package/core/NavList/__stories__/NavListHorizontalAutoExample.d.ts +2 -0
  65. package/core/NavList/__stories__/NavListHorizontalAutoExample.js +67 -0
  66. package/core/NavList/__stories__/NavListSecondaryAutoExample.d.ts +2 -0
  67. package/core/NavList/__stories__/NavListSecondaryAutoExample.js +281 -0
  68. package/core/NavList/__stories__/NavListVerticalAutoExample.d.ts +2 -0
  69. package/core/NavList/__stories__/NavListVerticalAutoExample.js +67 -0
  70. package/core/NavList/index.d.ts +2 -5
  71. package/core/NavList/index.js +5 -33
  72. package/core/NavList/types.d.ts +20 -10
  73. package/core/Tabs/__stories__/Default.js +5 -5
  74. package/core/Tabs/index.d.ts +2 -2
  75. package/core/Tabs/index.js +5 -7
  76. package/es/admin/AccessibilityMenu/index.js +13 -0
  77. package/es/admin/Chip/index.js +1 -0
  78. package/es/admin/Drawer/__stories__/Default.js +19 -8
  79. package/es/admin/Dropdown/__stories__/AlignRight.js +0 -2
  80. package/es/admin/Dropdown/__stories__/Default.js +0 -2
  81. package/es/admin/Dropdown/__stories__/PlacementTop.js +0 -2
  82. package/es/admin/FilterSection/index.js +1 -2
  83. package/es/admin/Modal/index.js +16 -11
  84. package/es/admin/Pagination/__stories__/Default.js +4 -7
  85. package/es/admin/Pagination/__stories__/PaginationSmall.js +2 -3
  86. package/es/app/Footer/__stories__/FooterAllInclusive.js +1 -0
  87. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
  88. package/es/app/Header/__stories__/WithNavigation.js +10 -8
  89. package/es/app/QrCodeScanner/__stories__/Default.js +3 -3
  90. package/es/app/QrCodeViewer/index.js +8 -9
  91. package/es/app/ThemeOptionsForm/index.js +215 -0
  92. package/es/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
  93. package/es/app/index.js +2 -1
  94. package/es/core/Accordion/index.js +7 -7
  95. package/es/core/Divider/__stories__/Default.js +5 -10
  96. package/es/core/ErrorSummary/__stories__/Default.js +3 -3
  97. package/es/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
  98. package/es/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
  99. package/es/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
  100. package/es/core/Link/__stories__/DarkBackground.js +6 -2
  101. package/es/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
  102. package/es/core/NavList/NavList.stories.js +3 -1
  103. package/es/core/NavList/NavList.stories.playwright.json +6 -6
  104. package/{esm/core/NavList → es/core/NavList/NavListAuto}/NavListAuto.js +11 -5
  105. package/{esm/core/NavList/NavListBase.js → es/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -2
  106. package/es/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
  107. package/es/core/NavList/NavListAuto/NavListItemAnchorAuto.js +29 -0
  108. package/es/core/NavList/NavListAuto/NavListItemAuto.js +42 -0
  109. package/es/core/NavList/NavListAuto/NavListItemButtonAuto.js +32 -0
  110. package/es/core/NavList/NavListAuto/NavListMenuAuto.js +39 -0
  111. package/es/core/NavList/NavListAuto/NavListSubMenuAuto.js +28 -0
  112. package/es/core/NavList/NavListItem.js +8 -7
  113. package/es/core/NavList/NavListItemBase.js +3 -3
  114. package/es/core/NavList/NavMenuContainerContentList.js +67 -1
  115. package/es/core/NavList/__stories__/Default.js +19 -6
  116. package/es/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
  117. package/es/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
  118. package/es/core/NavList/__stories__/NavListHorizontalAutoExample.js +51 -0
  119. package/es/core/NavList/__stories__/NavListSecondaryAutoExample.js +255 -0
  120. package/es/core/NavList/__stories__/NavListVerticalAutoExample.js +51 -0
  121. package/es/core/NavList/index.js +2 -5
  122. package/es/core/Tabs/__stories__/Default.js +5 -5
  123. package/es/core/Tabs/index.js +5 -7
  124. package/es/hooks/useFontSize.js +10 -0
  125. package/es/hooks/useHighlightLinks.js +38 -0
  126. package/es/hooks/useLetterSpacing.js +10 -0
  127. package/es/hooks/useLineHeight.js +10 -0
  128. package/es/hooks/useNavList.js +10 -7
  129. package/es/hooks/useTheme.js +19 -11
  130. package/es/hooks/useTogglableNav.js +292 -0
  131. package/es/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
  132. package/es/hooks/useVariantVars.js +30 -0
  133. package/es/layouts/Basic/__stories__/Default.js +2 -2
  134. package/es/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
  135. package/es/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
  136. package/es/registry.js +36 -14
  137. package/es/typography/NormalText/__stories__/FontSizes.js +18 -6
  138. package/es/typography/NormalText/__stories__/FontWeight.js +3 -1
  139. package/es/typography/NormalText/__stories__/Variants.js +3 -1
  140. package/esm/admin/AccessibilityMenu/index.js +13 -0
  141. package/esm/admin/Chip/index.js +1 -0
  142. package/esm/admin/Drawer/__stories__/Default.js +19 -8
  143. package/esm/admin/Dropdown/__stories__/AlignRight.js +0 -2
  144. package/esm/admin/Dropdown/__stories__/Default.js +0 -2
  145. package/esm/admin/Dropdown/__stories__/PlacementTop.js +0 -2
  146. package/esm/admin/FilterSection/index.js +1 -2
  147. package/esm/admin/Modal/index.js +16 -11
  148. package/esm/admin/Pagination/__stories__/Default.js +4 -7
  149. package/esm/admin/Pagination/__stories__/PaginationSmall.js +2 -3
  150. package/esm/app/Footer/__stories__/FooterAllInclusive.js +1 -0
  151. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +1 -0
  152. package/esm/app/Header/__stories__/WithNavigation.js +10 -8
  153. package/esm/app/QrCodeScanner/__stories__/Default.js +3 -3
  154. package/esm/app/QrCodeViewer/index.js +8 -9
  155. package/esm/app/ThemeOptionsForm/index.js +215 -0
  156. package/esm/app/{ThemeSelectorOptions → ThemePaletteForm}/index.js +5 -4
  157. package/esm/app/index.js +2 -1
  158. package/esm/core/Accordion/index.js +7 -7
  159. package/esm/core/Divider/__stories__/Default.js +5 -10
  160. package/esm/core/ErrorSummary/__stories__/Default.js +3 -3
  161. package/esm/core/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -3
  162. package/esm/core/ErrorSummary/__stories__/LinkedToField.js +3 -3
  163. package/esm/core/ErrorSummary/__stories__/LinkedToInput.js +3 -3
  164. package/esm/core/Link/__stories__/DarkBackground.js +6 -2
  165. package/esm/core/Link/__stories__/DarkBackgroundNoUnderline.js +6 -2
  166. package/esm/core/NavList/NavList.stories.js +3 -1
  167. package/esm/core/NavList/NavList.stories.playwright.json +6 -6
  168. package/{es/core/NavList → esm/core/NavList/NavListAuto}/NavListAuto.js +11 -5
  169. package/{es/core/NavList/NavListBase.js → esm/core/NavList/NavListAuto/NavListBaseAuto.js} +4 -2
  170. package/esm/core/NavList/{NavListContext.js → NavListAuto/NavListContextAuto.js} +20 -8
  171. package/esm/core/NavList/NavListAuto/NavListItemAnchorAuto.js +29 -0
  172. package/esm/core/NavList/NavListAuto/NavListItemAuto.js +42 -0
  173. package/esm/core/NavList/NavListAuto/NavListItemButtonAuto.js +32 -0
  174. package/esm/core/NavList/NavListAuto/NavListMenuAuto.js +39 -0
  175. package/esm/core/NavList/NavListAuto/NavListSubMenuAuto.js +28 -0
  176. package/esm/core/NavList/NavListItem.js +8 -7
  177. package/esm/core/NavList/NavListItemBase.js +3 -3
  178. package/esm/core/NavList/NavMenuContainerContentList.js +67 -1
  179. package/esm/core/NavList/__stories__/Default.js +19 -6
  180. package/esm/core/NavList/__stories__/NavHorizontalLayout.js +17 -5
  181. package/esm/core/NavList/__stories__/NavListEpathlaExample.js +24 -12
  182. package/esm/core/NavList/__stories__/NavListHorizontalAutoExample.js +51 -0
  183. package/esm/core/NavList/__stories__/NavListSecondaryAutoExample.js +255 -0
  184. package/esm/core/NavList/__stories__/NavListVerticalAutoExample.js +51 -0
  185. package/esm/core/NavList/index.js +2 -5
  186. package/esm/core/Tabs/__stories__/Default.js +5 -5
  187. package/esm/core/Tabs/index.js +5 -7
  188. package/esm/hooks/useFontSize.js +10 -0
  189. package/esm/hooks/useHighlightLinks.js +38 -0
  190. package/esm/hooks/useLetterSpacing.js +10 -0
  191. package/esm/hooks/useLineHeight.js +10 -0
  192. package/esm/hooks/useNavList.js +10 -7
  193. package/esm/hooks/useTheme.js +19 -11
  194. package/esm/hooks/useTogglableNav.js +292 -0
  195. package/esm/hooks/{useTogglableSections.js → useTogglableTab.js} +2 -8
  196. package/esm/hooks/useVariantVars.js +30 -0
  197. package/esm/index.js +1 -1
  198. package/esm/layouts/Basic/__stories__/Default.js +2 -2
  199. package/esm/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
  200. package/esm/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
  201. package/esm/registry.js +36 -14
  202. package/esm/typography/NormalText/__stories__/FontSizes.js +18 -6
  203. package/esm/typography/NormalText/__stories__/FontWeight.js +3 -1
  204. package/esm/typography/NormalText/__stories__/Variants.js +3 -1
  205. package/hooks/useFontSize.d.ts +6 -0
  206. package/hooks/useFontSize.js +23 -0
  207. package/hooks/useHighlightLinks.d.ts +8 -0
  208. package/hooks/useHighlightLinks.js +52 -0
  209. package/hooks/useLetterSpacing.d.ts +6 -0
  210. package/hooks/useLetterSpacing.js +23 -0
  211. package/hooks/useLineHeight.d.ts +6 -0
  212. package/hooks/useLineHeight.js +23 -0
  213. package/hooks/useNavList.d.ts +2 -2
  214. package/hooks/useNavList.js +11 -8
  215. package/hooks/useTheme.d.ts +4 -4
  216. package/hooks/useTheme.js +19 -12
  217. package/hooks/useTogglableNav.d.ts +25 -0
  218. package/hooks/useTogglableNav.js +305 -0
  219. package/hooks/{useTogglableSections.d.ts → useTogglableTab.d.ts} +4 -3
  220. package/hooks/{useTogglableSections.js → useTogglableTab.js} +3 -9
  221. package/hooks/useVariantVars.d.ts +11 -0
  222. package/hooks/useVariantVars.js +41 -0
  223. package/layouts/Basic/__stories__/Default.js +2 -2
  224. package/layouts/Basic/__stories__/MultipleRowsLayout.js +3 -3
  225. package/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.js +3 -3
  226. package/package.json +3 -3
  227. package/registry.d.ts +18 -7
  228. package/registry.js +49 -16
  229. package/src/admin/AccessibilityMenu/index.tsx +14 -0
  230. package/src/admin/AutoComplete/index.tsx +2 -2
  231. package/src/admin/Chip/index.tsx +1 -0
  232. package/src/admin/Drawer/__stories__/Default.tsx +23 -9
  233. package/src/admin/Dropdown/__stories__/AlignRight.tsx +2 -2
  234. package/src/admin/Dropdown/__stories__/Default.tsx +2 -2
  235. package/src/admin/Dropdown/__stories__/PlacementTop.tsx +2 -2
  236. package/src/admin/FilterSection/index.tsx +1 -2
  237. package/src/admin/Modal/index.tsx +43 -39
  238. package/src/admin/Pagination/__stories__/Default.tsx +4 -4
  239. package/src/admin/Pagination/__stories__/PaginationSmall.tsx +2 -2
  240. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +1 -1
  241. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +1 -1
  242. package/src/app/Header/__stories__/WithNavigation.tsx +8 -8
  243. package/src/app/QrCodeScanner/__stories__/Default.tsx +2 -2
  244. package/src/app/QrCodeViewer/index.tsx +16 -14
  245. package/src/app/ThemeOptionsForm/index.tsx +220 -0
  246. package/src/app/{ThemeSelectorOptions → ThemePaletteForm}/index.tsx +3 -3
  247. package/src/app/index.ts +2 -1
  248. package/src/core/Accordion/index.tsx +5 -11
  249. package/src/core/Divider/__stories__/Default.tsx +5 -5
  250. package/src/core/ErrorSummary/__stories__/Default.tsx +2 -2
  251. package/src/core/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -2
  252. package/src/core/ErrorSummary/__stories__/LinkedToField.tsx +2 -2
  253. package/src/core/ErrorSummary/__stories__/LinkedToInput.tsx +2 -2
  254. package/src/core/Link/__stories__/DarkBackground.tsx +2 -3
  255. package/src/core/Link/__stories__/DarkBackgroundNoUnderline.tsx +2 -3
  256. package/src/core/NavList/NavList.stories.js +3 -1
  257. package/src/core/NavList/NavList.stories.playwright.json +6 -6
  258. package/src/core/NavList/NavListAuto/NavListAuto.tsx +34 -0
  259. package/src/core/NavList/{NavListBase.tsx → NavListAuto/NavListBaseAuto.tsx} +2 -2
  260. package/src/core/NavList/{NavListContext.tsx → NavListAuto/NavListContextAuto.tsx} +26 -11
  261. package/src/core/NavList/NavListAuto/NavListItemAnchorAuto.tsx +41 -0
  262. package/src/core/NavList/NavListAuto/NavListItemAuto.tsx +51 -0
  263. package/src/core/NavList/NavListAuto/NavListItemButtonAuto.tsx +53 -0
  264. package/src/core/NavList/NavListAuto/NavListMenuAuto.tsx +51 -0
  265. package/src/core/NavList/NavListAuto/NavListSubMenuAuto.tsx +32 -0
  266. package/src/core/NavList/NavListItem.tsx +15 -9
  267. package/src/core/NavList/NavListItemBase.tsx +3 -3
  268. package/src/core/NavList/NavMenuContainerContentList.tsx +63 -1
  269. package/src/core/NavList/__stories__/Default.tsx +23 -8
  270. package/src/core/NavList/__stories__/NavHorizontalLayout.tsx +24 -8
  271. package/src/core/NavList/__stories__/NavListEpathlaExample.tsx +46 -25
  272. package/src/core/NavList/__stories__/NavListHorizontalAutoExample.tsx +65 -0
  273. package/src/core/NavList/__stories__/NavListSecondaryAutoExample.tsx +284 -0
  274. package/src/core/NavList/__stories__/NavListVerticalAutoExample.tsx +65 -0
  275. package/src/core/NavList/index.tsx +2 -5
  276. package/src/core/NavList/types.tsx +23 -9
  277. package/src/core/Tabs/__stories__/Default.tsx +5 -5
  278. package/src/core/Tabs/index.tsx +5 -9
  279. package/src/hooks/useFontSize.ts +32 -0
  280. package/src/hooks/useHighlightLinks.ts +45 -0
  281. package/src/hooks/useLetterSpacing.ts +27 -0
  282. package/src/hooks/useLineHeight.ts +31 -0
  283. package/src/hooks/useNavList.ts +5 -7
  284. package/src/hooks/useTheme.ts +28 -20
  285. package/src/hooks/useTogglableNav.tsx +294 -0
  286. package/src/hooks/{useTogglableSections.tsx → useTogglableTab.tsx} +12 -13
  287. package/src/hooks/useVariantVars.ts +35 -0
  288. package/src/layouts/Basic/__stories__/Default.tsx +3 -3
  289. package/src/layouts/Basic/__stories__/MultipleRowsLayout.tsx +8 -8
  290. package/src/layouts/Basic/__stories__/TwoThirdsOneThirdColumns.tsx +6 -6
  291. package/src/registry.js +36 -14
  292. package/src/typography/NormalText/__stories__/FontSizes.tsx +6 -6
  293. package/src/typography/NormalText/__stories__/FontWeight.tsx +1 -1
  294. package/src/typography/NormalText/__stories__/Variants.tsx +1 -1
  295. package/typography/NormalText/__stories__/FontSizes.js +18 -6
  296. package/typography/NormalText/__stories__/FontWeight.js +3 -1
  297. package/typography/NormalText/__stories__/Variants.js +3 -1
  298. package/app/ThemeSelectorOptions/index.d.ts +0 -2
  299. package/core/NavList/NavListSubMenu.d.ts +0 -8
  300. package/core/NavList/__stories__/NavListAutoExample.d.ts +0 -2
  301. package/core/NavList/__stories__/NavListAutoExample.js +0 -63
  302. package/es/core/NavList/NavListItemAuto.js +0 -40
  303. package/es/core/NavList/NavListSubMenu.js +0 -25
  304. package/es/core/NavList/__stories__/NavListAutoExample.js +0 -48
  305. package/esm/core/NavList/NavListItemAuto.js +0 -40
  306. package/esm/core/NavList/NavListSubMenu.js +0 -25
  307. package/esm/core/NavList/__stories__/NavListAutoExample.js +0 -48
  308. package/src/core/NavList/NavListAuto.tsx +0 -20
  309. package/src/core/NavList/NavListItemAuto.tsx +0 -41
  310. package/src/core/NavList/NavListSubMenu.tsx +0 -28
  311. package/src/core/NavList/__stories__/NavListAutoExample.tsx +0 -53
  312. /package/core/NavList/{NavListAuto.d.ts → NavListAuto/NavListAuto.d.ts} +0 -0
  313. /package/core/NavList/{NavListItemAuto.d.ts → NavListAuto/NavListItemAuto.d.ts} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
11
11
  import { Link } from '@digigov/ui/core/Link';
12
- import { Divider } from '@digigov/ui/core/Divider';
12
+ import { SectionBreak } from '@digigov/ui/core/SectionBreak';
13
13
  import { I18NProvider } from '@digigov/ui/app/i18n';
14
14
 
15
15
  export const Default = () => (
@@ -50,7 +50,7 @@ export const Default = () => (
50
50
  </PaginationList>
51
51
  </Pagination>
52
52
 
53
- <Divider visible size="l" />
53
+ <SectionBreak size="l" />
54
54
 
55
55
  <Pagination>
56
56
  <PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
@@ -87,7 +87,7 @@ export const Default = () => (
87
87
  </PaginationList>
88
88
  </Pagination>
89
89
 
90
- <Divider visible size="l" />
90
+ <SectionBreak size="l" />
91
91
 
92
92
  <Pagination>
93
93
  <PaginationLabel start={10} end={20} total={10000}></PaginationLabel>
@@ -124,7 +124,7 @@ export const Default = () => (
124
124
  </PaginationList>
125
125
  </Pagination>
126
126
 
127
- <Divider visible size="l" />
127
+ <SectionBreak size="l" />
128
128
 
129
129
  <Pagination>
130
130
  <PaginationLabel start={1} end={10} total={15}></PaginationLabel>
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  import { ArrowIcon } from '@digigov/ui/core/SvgIcon';
11
11
  import { Link } from '@digigov/ui/core/Link';
12
- import { Divider } from '@digigov/ui/core/Divider';
12
+ import { SectionBreak } from '@digigov/ui/core/SectionBreak';
13
13
  import { I18NProvider } from '@digigov/ui/app/i18n';
14
14
 
15
15
  export const PaginationSmall = () => (
@@ -36,7 +36,7 @@ export const PaginationSmall = () => (
36
36
  </PaginationListItem>
37
37
  </PaginationList>
38
38
  </Pagination>
39
- <Divider visible size="l" />
39
+ <SectionBreak size="l" />
40
40
  </I18NProvider>
41
41
  </div>
42
42
  );
@@ -58,7 +58,7 @@ export const FooterAllInclusive = () => {
58
58
  </FooterList>
59
59
  </FooterSection>
60
60
  </FooterNavigation>
61
- <SectionBreak size="m" />
61
+ <SectionBreak visible={false} size="m" />
62
62
  <FooterMeta>
63
63
  <FooterMetaItem grow>
64
64
  <FooterContent>
@@ -52,7 +52,7 @@ export const FooterWithSecondaryNavigation = () => {
52
52
  </FooterList>
53
53
  </FooterSection>
54
54
  </FooterNavigation>
55
- <SectionBreak size="m" />
55
+ <SectionBreak visible={false} size="m" />
56
56
  <FooterMeta>
57
57
  <FooterMetaItem grow>
58
58
  <FooterContent>
@@ -11,10 +11,10 @@ import { SectionBreak } from '@digigov/ui';
11
11
  import { useNavList } from '@digigov/ui/hooks/useNavList';
12
12
 
13
13
  export const WithNavigation = () => {
14
- const { register } = useNavList();
14
+ const { registerButton } = useNavList();
15
15
 
16
- const setRegister = (name: string) => {
17
- return { ...register(name) };
16
+ const setRegisterButton = (name: string) => {
17
+ return { ...registerButton(name) };
18
18
  };
19
19
 
20
20
  return (
@@ -34,21 +34,21 @@ export const WithNavigation = () => {
34
34
  label: 'Home',
35
35
  subMenu: [],
36
36
  }}
37
- setRegister={setRegister}
37
+ setRegisterButton={setRegisterButton}
38
38
  />
39
39
  <NavListItem
40
40
  link={{ name: 'form', label: 'Form registration', subMenu: [] }}
41
- setRegister={setRegister}
41
+ setRegisterButton={setRegisterButton}
42
42
  />
43
43
  <NavListItem
44
44
  link={{ name: 'news', label: 'News', subMenu: [] }}
45
- setRegister={setRegister}
45
+ setRegisterButton={setRegisterButton}
46
46
  />
47
47
  <NavListItem
48
48
  link={{ name: 'contact', label: 'Contact', subMenu: [] }}
49
- setRegister={setRegister}
49
+ setRegisterButton={setRegisterButton}
50
50
  />
51
- <SectionBreak></SectionBreak>
51
+ <SectionBreak visible={false} />
52
52
  </NavList>
53
53
  </Nav>
54
54
  </Top>
@@ -1,6 +1,6 @@
1
1
  import React, { Suspense, useState } from 'react';
2
2
  import { QrCodeScanner } from '@digigov/ui/app/QrCodeScanner';
3
- import { Title } from '@digigov/ui/typography/Title';
3
+ import { Heading } from '@digigov/ui/typography/Heading';
4
4
  import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
5
5
 
6
6
  export const Default = () => {
@@ -32,7 +32,7 @@ export const Default = () => {
32
32
  >
33
33
  {error.message && (
34
34
  <ErrorSummary>
35
- <Title size="sm">{error.message}</Title>
35
+ <Heading size="s">{error.message}</Heading>
36
36
  </ErrorSummary>
37
37
  )}
38
38
  </QrCodeScanner>
@@ -14,7 +14,7 @@ const DEFAULT_BGCOLOR = '#FFFFFF';
14
14
  const DEFAULT_FGCOLOR = '#000000';
15
15
  const DEFAULT_INCLUDEMARGIN = false;
16
16
 
17
- const SUPPORTS_PATH2D = (function () {
17
+ const SUPPORTS_PATH2D = (function() {
18
18
  try {
19
19
  new Path2D().addPath(new Path2D());
20
20
  } catch (e) {
@@ -28,8 +28,10 @@ const ERROR_LEVEL_MAP: { [index: string]: qrcodegen.QrCode.Ecc } = {
28
28
  Q: qrcodegen.QrCode.Ecc.QUARTILE,
29
29
  H: qrcodegen.QrCode.Ecc.HIGH,
30
30
  };
31
-
32
- function QrCodeViewerCanvas(props: QRPropsCanvas) {
31
+ const QrCodeViewerCanvas = React.forwardRef(function QrCodeViewerCanvas(
32
+ props: QRPropsCanvas,
33
+ ref: any
34
+ ) {
33
35
  const {
34
36
  value,
35
37
  size = DEFAULT_SIZE,
@@ -42,9 +44,8 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
42
44
  ...otherProps
43
45
  } = props;
44
46
  const imgSrc = imageSettings?.src;
45
- const _canvas = useRef<HTMLCanvasElement>(null);
47
+ const _canvas = ref || useRef<HTMLCanvasElement>(null);
46
48
  const _image = useRef<HTMLImageElement>(null);
47
-
48
49
  // We're just using this state to trigger rerenders when images load. We
49
50
  // Don't actually read the value anywhere. A smarter use of useEffect would
50
51
  // depend on this value.
@@ -108,8 +109,8 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
108
109
  // $FlowFixMe: Path2D c'tor doesn't support args yet.
109
110
  ctx.fill(new Path2D(generatePath(cells, margin)));
110
111
  } else {
111
- cells.forEach(function (row, rdx) {
112
- row.forEach(function (cell, cdx) {
112
+ cells.forEach(function(row, rdx) {
113
+ row.forEach(function(cell, cdx) {
113
114
  if (cell) {
114
115
  ctx.fillRect(cdx + margin, rdx + margin, 1, 1);
115
116
  }
@@ -164,12 +165,13 @@ function QrCodeViewerCanvas(props: QRPropsCanvas) {
164
165
  {img}
165
166
  </>
166
167
  );
167
- }
168
+ });
168
169
 
169
- export interface QrCodeViewerProps extends QRPropsCanvas {}
170
-
171
- export const QrCodeViewer = (props: QrCodeViewerProps): React.ReactElement => {
172
- return <QrCodeViewerCanvas {...props} />;
173
- };
170
+ export interface QrCodeViewerProps extends QRPropsCanvas { }
174
171
 
175
- export default QrCodeViewer;
172
+ export const QrCodeViewer = React.forwardRef(function QrCodeViewer(
173
+ props: QrCodeViewerProps,
174
+ ref
175
+ ) {
176
+ return <QrCodeViewerCanvas {...props} ref={ref} />;
177
+ });
@@ -0,0 +1,220 @@
1
+ import React, { useState } from 'react';
2
+ import Button from '@digigov/ui/core/Button';
3
+ import FieldContainer, {
4
+ Fieldset,
5
+ FieldsetLegend,
6
+ } from '@digigov/ui/core/FieldContainer';
7
+ import { RadioContainer, RadioItem } from '@digigov/ui/core/RadioContainer';
8
+ import SectionBreak from '@digigov/ui/core/SectionBreak';
9
+
10
+ import useTheme, { ThemeSelectOptions } from '@digigov/ui/hooks/useTheme';
11
+ import useFontSize, { FontSizeOptions } from '@digigov/ui/hooks/useFontSize';
12
+ import useLineHeight, {
13
+ LineHeightOptions,
14
+ } from '@digigov/ui/hooks/useLineHeight';
15
+ import useLetterSpacing, {
16
+ LetterSpacingOptions,
17
+ } from '@digigov/ui/hooks/useLetterSpacing';
18
+ import useHighlightLinks, {
19
+ HighlightLinksOptions,
20
+ } from '@digigov/ui/hooks/useHighlightLinks';
21
+
22
+ export const ThemeOptionsForm = () => {
23
+ const [theme, changeTheme] = useTheme();
24
+ const [selectedTheme, setSelectedTheme] = useState<ThemeSelectOptions>(
25
+ theme || 'auto'
26
+ );
27
+ const [fontSize, changeFontSize] = useFontSize();
28
+ const [selectedFontSize, setSelectedFontSize] = useState<FontSizeOptions>(
29
+ fontSize || 'default'
30
+ );
31
+ const [lineHeight, changeLineHeight] = useLineHeight();
32
+ const [
33
+ selectedLineHeight,
34
+ setSelectedLineHeight,
35
+ ] = useState<LineHeightOptions>(lineHeight || 'default');
36
+ const [letterSpacing, changeLetterSpacing] = useLetterSpacing();
37
+ const [
38
+ selectedLetterSpacing,
39
+ setSelectedLetterSpacing,
40
+ ] = useState<LetterSpacingOptions>(letterSpacing || 'default');
41
+
42
+ const [highlightLinks, changeHighlightLinks] = useHighlightLinks();
43
+ const [
44
+ selectedHighlightLinks,
45
+ setSelectedHighlightLinks,
46
+ ] = useState<HighlightLinksOptions>(highlightLinks || 'default');
47
+
48
+ function handleOptions() {
49
+ changeTheme(selectedTheme);
50
+ changeFontSize(selectedFontSize);
51
+ changeLineHeight(selectedLineHeight);
52
+ changeLetterSpacing(selectedLetterSpacing);
53
+ changeHighlightLinks(selectedHighlightLinks);
54
+ }
55
+ function resetOptions() {
56
+ setSelectedTheme('light');
57
+ setSelectedFontSize('default');
58
+ setSelectedLineHeight('default');
59
+ setSelectedLetterSpacing('default');
60
+ setSelectedHighlightLinks('default');
61
+ }
62
+
63
+ function optionsHasChanged() {
64
+ if (
65
+ theme != selectedTheme ||
66
+ fontSize != selectedFontSize ||
67
+ lineHeight != selectedLineHeight ||
68
+ letterSpacing != selectedLetterSpacing ||
69
+ highlightLinks != selectedHighlightLinks
70
+ ) {
71
+ return true;
72
+ } else {
73
+ return false;
74
+ }
75
+ }
76
+
77
+ return (
78
+ <>
79
+ <FieldContainer marginBottom={4}>
80
+ <Fieldset>
81
+ <FieldsetLegend size="s">Επιλογή θέματος</FieldsetLegend>
82
+ <RadioContainer>
83
+ <RadioItem
84
+ name="theme_mode"
85
+ value="light"
86
+ onChange={() => setSelectedTheme('light')}
87
+ checked={selectedTheme === 'light'}
88
+ >
89
+ Φωτεινό θέμα
90
+ </RadioItem>
91
+ <RadioItem
92
+ name="theme_mode"
93
+ value="dark"
94
+ onChange={() => setSelectedTheme('dark')}
95
+ checked={selectedTheme === 'dark'}
96
+ >
97
+ Σκούρο θέμα
98
+ </RadioItem>
99
+ <RadioItem
100
+ name="theme_mode"
101
+ value="auto"
102
+ onChange={() => setSelectedTheme('auto')}
103
+ checked={selectedTheme === 'auto'}
104
+ >
105
+ Επιλογή συστήματος
106
+ </RadioItem>
107
+ </RadioContainer>
108
+ </Fieldset>
109
+ </FieldContainer>
110
+ <FieldContainer marginBottom={4}>
111
+ <Fieldset>
112
+ <FieldsetLegend size="s">Mέγεθος γραμμάτων</FieldsetLegend>
113
+ <RadioContainer inline>
114
+ <RadioItem
115
+ name="font-size"
116
+ value="no"
117
+ onChange={() => setSelectedFontSize('default')}
118
+ checked={selectedFontSize === 'default'}
119
+ >
120
+ Κανονικό (προεπιλογή)
121
+ </RadioItem>
122
+ <RadioItem
123
+ name="font-size"
124
+ value="yes"
125
+ onChange={() => {
126
+ setSelectedFontSize('large');
127
+ }}
128
+ checked={selectedFontSize === 'large'}
129
+ >
130
+ Μεγαλύτερο
131
+ </RadioItem>
132
+ </RadioContainer>
133
+ </Fieldset>
134
+ </FieldContainer>
135
+ <FieldContainer marginBottom={4}>
136
+ <Fieldset>
137
+ <FieldsetLegend size="s">Ύψος γραμμής κειμένων</FieldsetLegend>
138
+ <RadioContainer inline>
139
+ <RadioItem
140
+ name="line-height"
141
+ value="no"
142
+ onChange={() => setSelectedLineHeight('default')}
143
+ checked={selectedLineHeight === 'default'}
144
+ >
145
+ Κανονικό (προεπιλογή)
146
+ </RadioItem>
147
+ <RadioItem
148
+ name="line-height"
149
+ value="yes"
150
+ onChange={() => {
151
+ setSelectedLineHeight('large');
152
+ }}
153
+ checked={selectedLineHeight === 'large'}
154
+ >
155
+ Μεγαλύτερο
156
+ </RadioItem>
157
+ </RadioContainer>
158
+ </Fieldset>
159
+ </FieldContainer>
160
+ <FieldContainer marginBottom={4}>
161
+ <Fieldset>
162
+ <FieldsetLegend size="s">Απόσταση γραμμάτων</FieldsetLegend>
163
+ <RadioContainer inline>
164
+ <RadioItem
165
+ name="letter-spacing"
166
+ value="no"
167
+ onChange={() => setSelectedLetterSpacing('default')}
168
+ checked={selectedLetterSpacing === 'default'}
169
+ >
170
+ Κανονική (προεπιλογή)
171
+ </RadioItem>
172
+ <RadioItem
173
+ name="letter-spacing"
174
+ value="yes"
175
+ onChange={() => {
176
+ setSelectedLetterSpacing('extra');
177
+ }}
178
+ checked={selectedLetterSpacing === 'extra'}
179
+ >
180
+ Μεγαλύτερη
181
+ </RadioItem>
182
+ </RadioContainer>
183
+ </Fieldset>
184
+ </FieldContainer>
185
+ <FieldContainer marginBottom={4}>
186
+ <Fieldset>
187
+ <FieldsetLegend size="s">Έντονη εμφάνιση συνδέσμων</FieldsetLegend>
188
+ <RadioContainer inline>
189
+ <RadioItem
190
+ name="highlight-links"
191
+ value="no"
192
+ onChange={() => setSelectedHighlightLinks('default')}
193
+ checked={selectedHighlightLinks === 'default'}
194
+ >
195
+ Όχι (προεπιλογή)
196
+ </RadioItem>
197
+ <RadioItem
198
+ name="highlight-links"
199
+ value="yes"
200
+ onChange={() => {
201
+ setSelectedHighlightLinks('highlight');
202
+ }}
203
+ checked={selectedHighlightLinks === 'highlight'}
204
+ >
205
+ Ναι
206
+ </RadioItem>
207
+ </RadioContainer>
208
+ <Button onClick={resetOptions} variant="link">
209
+ Επαναφορά όλων των επιλογών
210
+ </Button>
211
+ </Fieldset>
212
+ </FieldContainer>
213
+ <SectionBreak visible={false} />
214
+ <Button onClick={handleOptions} disabled={!optionsHasChanged()}>
215
+ Εφαρμογή
216
+ </Button>
217
+ </>
218
+ );
219
+ };
220
+ export default ThemeOptionsForm;
@@ -7,8 +7,8 @@ import SectionBreak from '@digigov/ui/core/SectionBreak';
7
7
 
8
8
  import useTheme, { ThemeSelectOptions } from '@digigov/ui/hooks/useTheme';
9
9
 
10
- export const ThemeToggleOptions = () => {
11
- const {theme, changeTheme} = useTheme();
10
+ export const ThemePaletteForm = () => {
11
+ const [ theme, changeTheme ] = useTheme();
12
12
  const [selectedOption, setSelectedOption] = useState<ThemeSelectOptions>(
13
13
  theme || 'auto'
14
14
  );
@@ -51,4 +51,4 @@ export const ThemeToggleOptions = () => {
51
51
  </>
52
52
  );
53
53
  };
54
- export default ThemeToggleOptions;
54
+ export default ThemePaletteForm;
package/src/app/index.ts CHANGED
@@ -10,4 +10,5 @@ export * from '@digigov/ui/app/Header';
10
10
  export * from '@digigov/ui/app/i18n';
11
11
  export * from '@digigov/ui/app/I18nText';
12
12
  export * from '@digigov/ui/app/PhaseBannerHeader';
13
- export * from '@digigov/ui/app/ThemeSelectorOptions';
13
+ export * from '@digigov/ui/app/ThemePaletteForm';
14
+ export * from '@digigov/ui/app/ThemeOptionsForm';
@@ -8,9 +8,9 @@ import AccordionSectionSummary from '@digigov/react-core/AccordionSectionSummary
8
8
  import AccordionControls from '@digigov/react-core/AccordionControls';
9
9
  import withDeprecation from '@digigov/ui/utils/withDeprecation';
10
10
  import {
11
- useTogglableSections,
12
- UseTogglableSectionsReturn,
13
- } from '@digigov/ui/hooks/useTogglableSections';
11
+ useTogglableTab,
12
+ UseTogglableTabReturn,
13
+ } from '@digigov/ui/hooks/useTogglableTab';
14
14
 
15
15
  export const AccordionItemDetails = withDeprecation(AccordionSectionContent, {
16
16
  name: 'AccordionItemDetails',
@@ -44,15 +44,9 @@ export const AccordionItem = withDeprecation(
44
44
  export interface UseAccordionProps {
45
45
  singleOpen?: boolean;
46
46
  }
47
- export interface UseAccordionReturn extends UseTogglableSectionsReturn {}
47
+ export interface UseAccordionReturn extends UseTogglableTabReturn {}
48
48
  const useAccordion = (props: UseAccordionProps): UseAccordionReturn => {
49
- const {
50
- register,
51
- setOpened,
52
- opened,
53
- registered,
54
- ...rest
55
- } = useTogglableSections({
49
+ const { register, setOpened, opened, registered, ...rest } = useTogglableTab({
56
50
  toggleProperty: 'open',
57
51
  onToggleProperty: 'onToggle',
58
52
  singleOpen: props && !!props.singleOpen,
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { Divider } from '@digigov/ui/core/Divider';
2
+ import { SectionBreak } from '@digigov/ui/core/SectionBreak';
3
3
 
4
4
  export const Default = () => (
5
5
  <>
6
- <Divider visible />
7
- <Divider visible size="m" />
8
- <Divider visible size="l" />
9
- <Divider visible size="xl" />
6
+ <SectionBreak />
7
+ <SectionBreak size="m" />
8
+ <SectionBreak size="l" />
9
+ <SectionBreak size="xl" />
10
10
  </>
11
11
  );
12
12
 
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
3
- import { Title } from '@digigov/ui/typography/Title';
3
+ import { Heading } from '@digigov/ui/typography/Heading';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
 
6
6
  export const Default = () => (
7
7
  <ErrorSummary>
8
- <Title size="sm">Υπήρξε κάποιο πρόβλημα</Title>
8
+ <Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
9
9
  <Link>Πρέπει να συμπληρώσετε το έτος</Link>
10
10
  </ErrorSummary>
11
11
  );
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
3
- import { Title } from '@digigov/ui/typography/Title';
3
+ import { Heading } from '@digigov/ui/typography/Heading';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
  import { Hint } from '@digigov/ui/typography/Hint';
6
6
  import { ErrorMessage } from '@digigov/ui/core/ErrorMessage';
@@ -17,7 +17,7 @@ import { Checkbox, CheckboxItem } from '@digigov/ui/core/Checkbox';
17
17
  export const LinkedToCheckbox = () => (
18
18
  <div className="example">
19
19
  <ErrorSummary>
20
- <Title size="sm">Υπήρξε κάποιο πρόβλημα</Title>
20
+ <Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
21
21
  <Link href="#england">Επιλέξτε μία ή παραπάνω χώρες.</Link>
22
22
  </ErrorSummary>
23
23
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
3
- import { Title } from '@digigov/ui/typography/Title';
3
+ import { Heading } from '@digigov/ui/typography/Heading';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
  import { Hint } from '@digigov/ui/typography/Hint';
6
6
  import { ErrorMessage } from '@digigov/ui/core/ErrorMessage';
@@ -20,7 +20,7 @@ import {
20
20
  export const LinkedToField = () => (
21
21
  <div className="example">
22
22
  <ErrorSummary>
23
- <Title size="sm">Υπήρξε κάποιο πρόβλημα</Title>
23
+ <Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
24
24
  <Link href="#passport-date">
25
25
  Η ημερομηνία έκδοσης του διαβατηρίου σας θα πρέπει να είναι στο
26
26
  παρελθόν.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ErrorSummary } from '@digigov/ui/core/ErrorSummary';
3
- import { Title } from '@digigov/ui/typography/Title';
3
+ import { Heading } from '@digigov/ui/typography/Heading';
4
4
  import { Link } from '@digigov/ui/core/Link';
5
5
  import { TextInput } from '@digigov/ui/core/TextInput';
6
6
  import { FieldContainer } from '@digigov/ui/core/FieldContainer';
@@ -13,7 +13,7 @@ import { VisuallyHidden } from '@digigov/ui/core/VisuallyHidden';
13
13
  export const LinkedToInput = () => (
14
14
  <div className="example">
15
15
  <ErrorSummary>
16
- <Title size="sm">Υπήρξε κάποιο πρόβλημα</Title>
16
+ <Heading size="s">Υπήρξε κάποιο πρόβλημα</Heading>
17
17
  <Link href="#business-name">
18
18
  Πρέπει να συμπληρώσετε το όνομα επιχείρησης
19
19
  </Link>
@@ -2,10 +2,9 @@ import React from 'react';
2
2
  import { Link } from '@digigov/ui/core/Link';
3
3
  import { Masthead } from '@digigov/ui/layouts/Basic/Masthead';
4
4
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
5
-
6
5
  export const DarkBackground = () => (
7
6
  <Masthead>
8
- <SectionBreak />
7
+ <SectionBreak visible={false} />
9
8
  <Link
10
9
  aria-label="πλοηγηθείτε στην ιστοσελίδα το govgr"
11
10
  role="link"
@@ -13,7 +12,7 @@ export const DarkBackground = () => (
13
12
  >
14
13
  govgr link
15
14
  </Link>
16
- <SectionBreak />
15
+ <SectionBreak visible={false} />
17
16
  </Masthead>
18
17
  );
19
18
 
@@ -2,10 +2,9 @@ import React from 'react';
2
2
  import { Link } from '@digigov/ui/core/Link';
3
3
  import { Masthead } from '@digigov/ui/layouts/Basic/Masthead';
4
4
  import { SectionBreak } from '@digigov/ui/core/SectionBreak';
5
-
6
5
  export const DarkBackgroundNoUnderline = () => (
7
6
  <Masthead>
8
- <SectionBreak />
7
+ <SectionBreak visible={false} />
9
8
  <Link
10
9
  aria-label="πλοηγηθείτε στην ιστοσελίδα το govgr"
11
10
  role="link"
@@ -14,7 +13,7 @@ export const DarkBackgroundNoUnderline = () => (
14
13
  >
15
14
  govgr link
16
15
  </Link>
17
- <SectionBreak />
16
+ <SectionBreak visible={false} />
18
17
  </Masthead>
19
18
  );
20
19
 
@@ -8,6 +8,8 @@ export default {
8
8
  displayName: 'NavList',
9
9
  };
10
10
  export * from '@digigov/ui/core/NavList/__stories__/Default';
11
- export * from '@digigov/ui/core/NavList/__stories__/NavListAutoExample';
11
+ export * from '@digigov/ui/core/NavList/__stories__/NavListHorizontalAutoExample';
12
+ export * from '@digigov/ui/core/NavList/__stories__/NavListVerticalAutoExample';
13
+ export * from '@digigov/ui/core/NavList/__stories__/NavListSecondaryAutoExample';
12
14
  export * from '@digigov/ui/core/NavList/__stories__/NavListEpathlaExample';
13
15
  export * from '@digigov/ui/core/NavList/__stories__/NavHorizontalLayout';
@@ -6,26 +6,26 @@
6
6
  {
7
7
  "actions": [
8
8
  {
9
- "name": "click",
9
+ "name": "hover",
10
10
  "args": {
11
11
  "selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(3)>button"
12
12
  }
13
13
  }
14
14
  ],
15
- "id": "WMfgyO3E_9S_",
16
- "title": "Open sub menu"
15
+ "id": "dHQxEQCIJ4bJ",
16
+ "title": "Hover item"
17
17
  },
18
18
  {
19
19
  "actions": [
20
20
  {
21
- "name": "hover",
21
+ "name": "click",
22
22
  "args": {
23
23
  "selector": "html>body>div:nth-child(5)>nav>ul>li:nth-child(3)>button"
24
24
  }
25
25
  }
26
26
  ],
27
- "id": "dHQxEQCIJ4bJ",
28
- "title": "Hover item"
27
+ "id": "WMfgyO3E_9S_",
28
+ "title": "Open sub menu"
29
29
  }
30
30
  ]
31
31
  }