@digigov/ui 1.0.0-480e3d97 → 1.0.0-758a1807

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 (281) hide show
  1. package/app/Footer/Footer.stories.playwright.json +2 -2
  2. package/app/Header/Header.stories.playwright.json +1 -1
  3. package/app/Header/__stories__/WithHeaderNavigation.js +13 -21
  4. package/app/Header/__stories__/WithNavigation.js +8 -40
  5. package/app/Masthead/Masthead.stories.playwright.json +1 -1
  6. package/app/ThemeOptions/index.js +2 -2
  7. package/content/Details/index.mdx +5 -0
  8. package/content/Table/__stories__/WithFloatingScroll.js +10 -4
  9. package/content/Table/index.js +7 -5
  10. package/content/Table/index.mdx +1 -1
  11. package/es/app/Footer/Footer.stories.playwright.json +2 -2
  12. package/es/app/Header/Header.stories.playwright.json +1 -1
  13. package/es/app/Header/__stories__/WithHeaderNavigation.js +13 -13
  14. package/es/app/Header/__stories__/WithNavigation.js +9 -36
  15. package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
  16. package/es/app/ThemeOptions/index.js +2 -2
  17. package/es/content/Details/index.mdx +5 -0
  18. package/es/content/Table/__stories__/WithFloatingScroll.js +5 -4
  19. package/es/content/Table/index.js +7 -4
  20. package/es/content/Table/index.mdx +1 -1
  21. package/es/feedback/ServiceBadge/index.mdx +9 -5
  22. package/es/form/Button/index.mdx +4 -4
  23. package/es/form/Checkbox/index.mdx +5 -0
  24. package/es/form/DateInputContainer/index.mdx +5 -0
  25. package/es/form/FileUpload/index.mdx +2 -0
  26. package/es/form/RadioContainer/index.mdx +5 -0
  27. package/es/form/SelectContainer/index.mdx +6 -0
  28. package/es/icons/Icon/index.js +2 -2
  29. package/es/layouts/Grid/Grid.stories.js +1 -0
  30. package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
  31. package/es/navigation/Breadcrumbs/index.mdx +5 -0
  32. package/es/navigation/Drawer/__stories__/Default.js +25 -66
  33. package/es/navigation/Dropdown/__stories__/AlignRight.js +9 -8
  34. package/es/navigation/Dropdown/__stories__/Default.js +9 -8
  35. package/es/navigation/Dropdown/__stories__/PlacementTop.js +9 -8
  36. package/es/navigation/Dropdown/index.mdx +0 -2
  37. package/es/navigation/Link/index.mdx +2 -0
  38. package/es/navigation/NavList/NavList.stories.playwright.json +2 -2
  39. package/es/navigation/NavList/NavListAuto/index.js +54 -0
  40. package/es/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
  41. package/es/navigation/NavList/__stories__/Default.js +12 -28
  42. package/es/navigation/NavList/__stories__/NavVerticalLayout.js +12 -26
  43. package/es/navigation/NavList/hooks/useNavList.js +2 -2
  44. package/es/navigation/NavList/hooks/useTogglableNav.js +33 -18
  45. package/es/navigation/NavList/index.js +16 -17
  46. package/es/navigation/NavList/types.js +1 -6
  47. package/es/navigation/Pagination/__stories__/Default.js +7 -65
  48. package/es/navigation/Pagination/index.mdx +1 -2
  49. package/es/navigation/Tabs/index.mdx +6 -0
  50. package/es/registry.js +4 -40
  51. package/es/typography/Hint/index.mdx +2 -0
  52. package/es/typography/NormalText/index.mdx +2 -0
  53. package/es/typography/Paragraph/index.mdx +1 -0
  54. package/esm/app/Footer/Footer.stories.playwright.json +2 -2
  55. package/esm/app/Header/Header.stories.playwright.json +1 -1
  56. package/esm/app/Header/__stories__/WithHeaderNavigation.js +13 -13
  57. package/esm/app/Header/__stories__/WithNavigation.js +9 -36
  58. package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
  59. package/esm/app/ThemeOptions/index.js +2 -2
  60. package/esm/content/Details/index.mdx +5 -0
  61. package/esm/content/Table/__stories__/WithFloatingScroll.js +5 -4
  62. package/esm/content/Table/index.js +7 -4
  63. package/esm/content/Table/index.mdx +1 -1
  64. package/esm/feedback/ServiceBadge/index.mdx +9 -5
  65. package/esm/form/Button/index.mdx +4 -4
  66. package/esm/form/Checkbox/index.mdx +5 -0
  67. package/esm/form/DateInputContainer/index.mdx +5 -0
  68. package/esm/form/FileUpload/index.mdx +2 -0
  69. package/esm/form/RadioContainer/index.mdx +5 -0
  70. package/esm/form/SelectContainer/index.mdx +6 -0
  71. package/esm/icons/Icon/index.js +2 -2
  72. package/esm/index.js +1 -1
  73. package/esm/layouts/Grid/Grid.stories.js +1 -0
  74. package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
  75. package/esm/navigation/Breadcrumbs/index.mdx +5 -0
  76. package/esm/navigation/Drawer/__stories__/Default.js +25 -66
  77. package/esm/navigation/Dropdown/__stories__/AlignRight.js +9 -8
  78. package/esm/navigation/Dropdown/__stories__/Default.js +9 -8
  79. package/esm/navigation/Dropdown/__stories__/PlacementTop.js +9 -8
  80. package/esm/navigation/Dropdown/index.mdx +0 -2
  81. package/esm/navigation/Link/index.mdx +2 -0
  82. package/esm/navigation/NavList/NavList.stories.playwright.json +2 -2
  83. package/esm/navigation/NavList/NavListAuto/index.js +54 -0
  84. package/esm/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
  85. package/esm/navigation/NavList/__stories__/Default.js +12 -28
  86. package/esm/navigation/NavList/__stories__/NavVerticalLayout.js +12 -26
  87. package/esm/navigation/NavList/hooks/useNavList.js +2 -2
  88. package/esm/navigation/NavList/hooks/useTogglableNav.js +33 -18
  89. package/esm/navigation/NavList/index.js +16 -17
  90. package/esm/navigation/NavList/types.js +1 -6
  91. package/esm/navigation/Pagination/__stories__/Default.js +7 -65
  92. package/esm/navigation/Pagination/index.mdx +1 -2
  93. package/esm/navigation/Tabs/index.mdx +6 -0
  94. package/esm/registry.js +4 -40
  95. package/esm/typography/Hint/index.mdx +2 -0
  96. package/esm/typography/NormalText/index.mdx +2 -0
  97. package/esm/typography/Paragraph/index.mdx +1 -0
  98. package/feedback/ServiceBadge/index.mdx +9 -5
  99. package/form/Button/index.mdx +4 -4
  100. package/form/Checkbox/index.mdx +5 -0
  101. package/form/DateInputContainer/index.mdx +5 -0
  102. package/form/FileUpload/index.mdx +2 -0
  103. package/form/RadioContainer/index.mdx +5 -0
  104. package/form/SelectContainer/index.mdx +6 -0
  105. package/icons/Icon/index.d.ts +2 -2
  106. package/icons/Icon/index.js +1 -1
  107. package/layouts/Basic/Content/index.d.ts +1 -1
  108. package/layouts/Basic/Side/index.d.ts +1 -1
  109. package/layouts/Grid/Grid.stories.d.ts +1 -0
  110. package/layouts/Grid/Grid.stories.js +14 -0
  111. package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -0
  112. package/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
  113. package/navigation/Breadcrumbs/index.mdx +5 -0
  114. package/navigation/Drawer/__stories__/Default.js +24 -68
  115. package/navigation/Dropdown/__stories__/AlignRight.js +9 -9
  116. package/navigation/Dropdown/__stories__/Default.js +9 -9
  117. package/navigation/Dropdown/__stories__/PlacementTop.js +9 -9
  118. package/navigation/Dropdown/index.mdx +0 -2
  119. package/navigation/Link/index.mdx +2 -0
  120. package/navigation/NavList/NavList.stories.playwright.json +2 -2
  121. package/navigation/NavList/NavListAuto/index.js +80 -0
  122. package/navigation/NavList/NavMenuContentList.d.ts +5 -0
  123. package/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +10 -10
  124. package/navigation/NavList/__stories__/Default.js +12 -28
  125. package/navigation/NavList/__stories__/NavVerticalLayout.js +12 -32
  126. package/navigation/NavList/hooks/useNavList.d.ts +1 -1
  127. package/navigation/NavList/hooks/useNavList.js +2 -2
  128. package/navigation/NavList/hooks/useTogglableNav.d.ts +1 -0
  129. package/navigation/NavList/hooks/useTogglableNav.js +33 -18
  130. package/navigation/NavList/index.d.ts +16 -17
  131. package/navigation/NavList/index.js +54 -96
  132. package/navigation/NavList/types.d.ts +14 -17
  133. package/navigation/NavList/types.js +1 -14
  134. package/navigation/Pagination/__stories__/Default.js +7 -65
  135. package/navigation/Pagination/index.mdx +1 -2
  136. package/navigation/Tabs/index.mdx +6 -0
  137. package/package.json +3 -3
  138. package/registry.d.ts +2 -20
  139. package/registry.js +4 -58
  140. package/src/app/Footer/Footer.stories.playwright.json +2 -2
  141. package/src/app/Header/Header.stories.playwright.json +1 -1
  142. package/src/app/Header/__stories__/WithHeaderNavigation.tsx +23 -35
  143. package/src/app/Header/__stories__/WithNavigation.tsx +13 -34
  144. package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
  145. package/src/app/ThemeOptions/index.tsx +3 -3
  146. package/src/content/Details/index.mdx +5 -0
  147. package/src/content/Table/__stories__/WithFloatingScroll.tsx +5 -7
  148. package/src/content/Table/index.mdx +1 -1
  149. package/src/content/Table/index.tsx +9 -8
  150. package/src/feedback/ServiceBadge/index.mdx +9 -5
  151. package/src/form/Button/index.mdx +4 -4
  152. package/src/form/Checkbox/index.mdx +5 -0
  153. package/src/form/DateInputContainer/index.mdx +5 -0
  154. package/src/form/FileUpload/index.mdx +2 -0
  155. package/src/form/RadioContainer/index.mdx +5 -0
  156. package/src/form/SelectContainer/index.mdx +6 -0
  157. package/src/icons/Icon/index.tsx +2 -2
  158. package/src/layouts/Grid/Grid.stories.js +1 -0
  159. package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +43 -0
  160. package/src/navigation/Breadcrumbs/index.mdx +5 -0
  161. package/src/navigation/Drawer/__stories__/Default.tsx +31 -84
  162. package/src/navigation/Dropdown/__stories__/AlignRight.tsx +13 -12
  163. package/src/navigation/Dropdown/__stories__/Default.tsx +10 -11
  164. package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +11 -11
  165. package/src/navigation/Dropdown/index.mdx +0 -2
  166. package/src/navigation/Link/index.mdx +2 -0
  167. package/src/navigation/NavList/NavList.stories.playwright.json +2 -2
  168. package/src/navigation/NavList/NavListAuto/index.tsx +68 -0
  169. package/src/navigation/NavList/{NavMenuContainerContentList.tsx → NavMenuContentList.tsx} +8 -8
  170. package/src/navigation/NavList/__stories__/Default.tsx +28 -40
  171. package/src/navigation/NavList/__stories__/NavVerticalLayout.tsx +25 -33
  172. package/src/navigation/NavList/hooks/useNavList.ts +3 -3
  173. package/src/navigation/NavList/hooks/useTogglableNav.tsx +31 -19
  174. package/src/navigation/NavList/index.tsx +16 -17
  175. package/src/navigation/NavList/types.tsx +16 -28
  176. package/src/navigation/Pagination/__stories__/Default.tsx +2 -76
  177. package/src/navigation/Pagination/index.mdx +1 -2
  178. package/src/navigation/Tabs/index.mdx +6 -0
  179. package/src/registry.js +4 -40
  180. package/src/typography/Hint/index.mdx +2 -0
  181. package/src/typography/NormalText/index.mdx +2 -0
  182. package/src/typography/Paragraph/index.mdx +1 -0
  183. package/typography/Hint/index.mdx +2 -0
  184. package/typography/NormalText/index.mdx +2 -0
  185. package/typography/Paragraph/index.mdx +1 -0
  186. package/es/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
  187. package/es/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
  188. package/es/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
  189. package/es/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
  190. package/es/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
  191. package/es/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
  192. package/es/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
  193. package/es/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
  194. package/es/navigation/NavList/NavListItem.js +0 -23
  195. package/es/navigation/NavList/NavListItemBase.js +0 -44
  196. package/es/navigation/NavList/NavListItemButton.js +0 -3
  197. package/es/navigation/NavList/NavListItemLink.js +0 -3
  198. package/es/navigation/NavList/NavMenu.js +0 -3
  199. package/es/navigation/NavList/NavMenuContainer.js +0 -3
  200. package/es/navigation/NavList/NavMenuContainerContent.js +0 -3
  201. package/es/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
  202. package/es/navigation/NavList/NavMenuContainerTitle.js +0 -3
  203. package/es/navigation/NavList/NavVertical.js +0 -3
  204. package/es/navigation/NavList/NavVerticalItem.js +0 -3
  205. package/esm/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
  206. package/esm/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
  207. package/esm/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
  208. package/esm/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
  209. package/esm/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
  210. package/esm/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
  211. package/esm/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
  212. package/esm/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
  213. package/esm/navigation/NavList/NavListItem.js +0 -23
  214. package/esm/navigation/NavList/NavListItemBase.js +0 -44
  215. package/esm/navigation/NavList/NavListItemButton.js +0 -3
  216. package/esm/navigation/NavList/NavListItemLink.js +0 -3
  217. package/esm/navigation/NavList/NavMenu.js +0 -3
  218. package/esm/navigation/NavList/NavMenuContainer.js +0 -3
  219. package/esm/navigation/NavList/NavMenuContainerContent.js +0 -3
  220. package/esm/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
  221. package/esm/navigation/NavList/NavMenuContainerTitle.js +0 -3
  222. package/esm/navigation/NavList/NavVertical.js +0 -3
  223. package/esm/navigation/NavList/NavVerticalItem.js +0 -3
  224. package/navigation/NavList/NavListAuto/NavListAuto.js +0 -48
  225. package/navigation/NavList/NavListAuto/NavListBaseAuto.d.ts +0 -3
  226. package/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -38
  227. package/navigation/NavList/NavListAuto/NavListContextAuto.d.ts +0 -29
  228. package/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -128
  229. package/navigation/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +0 -9
  230. package/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -51
  231. package/navigation/NavList/NavListAuto/NavListItemAuto.d.ts +0 -8
  232. package/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -63
  233. package/navigation/NavList/NavListAuto/NavListItemButtonAuto.d.ts +0 -12
  234. package/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -48
  235. package/navigation/NavList/NavListAuto/NavListMenuAuto.d.ts +0 -11
  236. package/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -56
  237. package/navigation/NavList/NavListAuto/NavListSubMenuAuto.d.ts +0 -9
  238. package/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -44
  239. package/navigation/NavList/NavListItem.d.ts +0 -4
  240. package/navigation/NavList/NavListItem.js +0 -42
  241. package/navigation/NavList/NavListItemBase.d.ts +0 -15
  242. package/navigation/NavList/NavListItemBase.js +0 -68
  243. package/navigation/NavList/NavListItemButton.d.ts +0 -3
  244. package/navigation/NavList/NavListItemButton.js +0 -30
  245. package/navigation/NavList/NavListItemLink.d.ts +0 -3
  246. package/navigation/NavList/NavListItemLink.js +0 -30
  247. package/navigation/NavList/NavMenu.d.ts +0 -3
  248. package/navigation/NavList/NavMenu.js +0 -30
  249. package/navigation/NavList/NavMenuContainer.d.ts +0 -3
  250. package/navigation/NavList/NavMenuContainer.js +0 -30
  251. package/navigation/NavList/NavMenuContainerContent.d.ts +0 -3
  252. package/navigation/NavList/NavMenuContainerContent.js +0 -30
  253. package/navigation/NavList/NavMenuContainerContentList.d.ts +0 -5
  254. package/navigation/NavList/NavMenuContainerContentListItem.d.ts +0 -3
  255. package/navigation/NavList/NavMenuContainerContentListItem.js +0 -30
  256. package/navigation/NavList/NavMenuContainerTitle.d.ts +0 -3
  257. package/navigation/NavList/NavMenuContainerTitle.js +0 -30
  258. package/navigation/NavList/NavVertical.d.ts +0 -3
  259. package/navigation/NavList/NavVertical.js +0 -30
  260. package/navigation/NavList/NavVerticalItem.d.ts +0 -3
  261. package/navigation/NavList/NavVerticalItem.js +0 -30
  262. package/src/navigation/NavList/NavListAuto/NavListAuto.tsx +0 -34
  263. package/src/navigation/NavList/NavListAuto/NavListBaseAuto.tsx +0 -20
  264. package/src/navigation/NavList/NavListAuto/NavListContextAuto.tsx +0 -112
  265. package/src/navigation/NavList/NavListAuto/NavListItemAnchorAuto.tsx +0 -38
  266. package/src/navigation/NavList/NavListAuto/NavListItemAuto.tsx +0 -49
  267. package/src/navigation/NavList/NavListAuto/NavListItemButtonAuto.tsx +0 -53
  268. package/src/navigation/NavList/NavListAuto/NavListMenuAuto.tsx +0 -51
  269. package/src/navigation/NavList/NavListAuto/NavListSubMenuAuto.tsx +0 -32
  270. package/src/navigation/NavList/NavListItem.tsx +0 -46
  271. package/src/navigation/NavList/NavListItemBase.tsx +0 -63
  272. package/src/navigation/NavList/NavListItemButton.tsx +0 -3
  273. package/src/navigation/NavList/NavListItemLink.tsx +0 -3
  274. package/src/navigation/NavList/NavMenu.tsx +0 -3
  275. package/src/navigation/NavList/NavMenuContainer.tsx +0 -3
  276. package/src/navigation/NavList/NavMenuContainerContent.tsx +0 -3
  277. package/src/navigation/NavList/NavMenuContainerContentListItem.tsx +0 -3
  278. package/src/navigation/NavList/NavMenuContainerTitle.tsx +0 -3
  279. package/src/navigation/NavList/NavVertical.tsx +0 -3
  280. package/src/navigation/NavList/NavVerticalItem.tsx +0 -3
  281. /package/navigation/NavList/NavListAuto/{NavListAuto.d.ts → index.d.ts} +0 -0
@@ -8,13 +8,13 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>footer>div>div>div>section:nth-child(1)>p>a:nth-child(1)"
11
+ "selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
12
12
  }
13
13
  },
14
14
  {
15
15
  "name": "click",
16
16
  "args": {
17
- "selector": "html>body>div:nth-child(5)>footer>div>div>div>section:nth-child(1)>p>a:nth-child(1)"
17
+ "selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
18
18
  }
19
19
  }
20
20
  ],
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "name": "hover",
38
38
  "args": {
39
- "selector": "html>body>div:nth-child(5)>div>header>div>div:nth-child(2)>div:nth-child(1)>details>summary"
39
+ "selector": "html>body>div:nth-child(5)>div>header>div>div:nth-child(2)>ul>li>button"
40
40
  }
41
41
  }
42
42
  ],
@@ -2,8 +2,6 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
@@ -31,36 +29,30 @@ var _Dropdown = require("@digigov/ui/navigation/Dropdown");
31
29
 
32
30
  var _NavList = _interopRequireDefault(require("@digigov/ui/navigation/NavList/NavList"));
33
31
 
34
- var _NavListItem = _interopRequireDefault(require("@digigov/ui/navigation/NavList/NavListItem"));
35
-
36
- var _NavListItemLink = _interopRequireDefault(require("@digigov/ui/navigation/NavList/NavListItemLink"));
37
-
38
- var _List = _interopRequireWildcard(require("@digigov/ui/content/List"));
39
-
40
- var _Link = _interopRequireDefault(require("@digigov/ui/navigation/Link"));
41
-
42
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
43
-
44
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
32
+ var _NavList2 = require("@digigov/ui/navigation/NavList");
45
33
 
46
34
  var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderContent["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderSection["default"], null, /*#__PURE__*/_react["default"].createElement(_GovGRLogo["default"], null), /*#__PURE__*/_react["default"].createElement(_HeaderTitle["default"], {
47
35
  href: "#"
48
- }, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(_HeaderSection["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderNavMenuContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
36
+ }, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(_HeaderNavMenuContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
49
37
  active: true
50
- }, /*#__PURE__*/_react["default"].createElement(_NavListItem["default"], null, /*#__PURE__*/_react["default"].createElement(_NavListItemLink["default"], null, "\u039C\u03B5\u03BD\u03BF\u03CD ", /*#__PURE__*/_react["default"].createElement(_icons.ArrowIcon, {
51
- direction: "down"
52
- })))), /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
38
+ }, /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
39
+ arrow: true
40
+ }, "\u039C\u03B5\u03BD\u03BF\u03CD")), /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
53
41
  align: "right"
54
42
  }, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
55
43
  variant: "link"
56
44
  }, "\u039C\u0391\u03A1\u0399\u039F\u03A3 \u039C\u0395\u039D\u0395\u039E\u0395\u03A3", /*#__PURE__*/_react["default"].createElement(_icons.MoreVertIcon, {
57
45
  size: "md"
58
- })), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_List["default"], {
59
- margin: 0
60
- }, /*#__PURE__*/_react["default"].createElement(_List.ListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(_List.ListItem, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], null, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2")))))), /*#__PURE__*/_react["default"].createElement(_HeaderNavMenuContent["default"], null, /*#__PURE__*/_react["default"].createElement(_icons.BurgerIcon, {
46
+ })), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
47
+ layout: "vertical"
48
+ }, /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
49
+ href: "#"
50
+ }, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
51
+ href: "#"
52
+ }, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2"))))), /*#__PURE__*/_react["default"].createElement(_icons.BurgerIcon, {
61
53
  smUpHidden: true,
62
54
  size: "sm"
63
- }))))));
55
+ }))));
64
56
 
65
57
  var WithHeaderNavigation = function WithHeaderNavigation() {
66
58
  return _ref;
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = exports.WithNavigation = void 0;
9
9
 
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
10
  var _react = _interopRequireDefault(require("react"));
13
11
 
14
12
  var _ui = require("@digigov/ui");
@@ -23,61 +21,31 @@ var _GovGRLogo = require("@digigov/ui/govgr/GovGRLogo");
23
21
 
24
22
  var _Basic = require("@digigov/ui/layouts/Basic");
25
23
 
26
- var _useNavList2 = require("@digigov/ui/navigation/NavList/hooks/useNavList");
27
-
28
- var _Nav = require("@digigov/ui/navigation/NavList/Nav");
29
-
30
- var _NavList = require("@digigov/ui/navigation/NavList/NavList");
31
-
32
- var _NavListItem = require("@digigov/ui/navigation/NavList/NavListItem");
33
-
34
24
  var _ref = /*#__PURE__*/_react["default"].createElement(_Header.Header, null, /*#__PURE__*/_react["default"].createElement(_HeaderContent.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_HeaderSection.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_GovGRLogo.GovGRLogo, {
35
25
  href: "#"
36
26
  }))));
37
27
 
38
- var _ref2 = /*#__PURE__*/_react["default"].createElement(_ui.SectionBreak, {
39
- visible: false
40
- });
41
-
42
28
  var WithNavigation = function WithNavigation() {
43
- var _useNavList = (0, _useNavList2.useNavList)(),
44
- registerButton = _useNavList.registerButton;
45
-
46
- var setRegisterButton = function setRegisterButton(name) {
47
- return (0, _extends2["default"])({}, registerButton(name));
48
- };
49
-
50
- return /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, _ref, /*#__PURE__*/_react["default"].createElement(_Nav.Nav, {
51
- open: true
52
- }, /*#__PURE__*/_react["default"].createElement(_NavList.NavList, null, /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
53
- link: {
29
+ return /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, _ref, /*#__PURE__*/_react["default"].createElement(_ui.NavListAuto, {
30
+ links: [{
54
31
  name: 'home',
55
32
  label: 'Αρχική',
56
33
  href: '#home'
57
- },
58
- setRegisterButton: setRegisterButton
59
- }), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
60
- link: {
34
+ }, {
61
35
  name: 'news',
62
36
  label: 'Νέα',
63
37
  href: '#news'
64
- },
65
- setRegisterButton: setRegisterButton
66
- }), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
67
- link: {
38
+ }, {
68
39
  name: 'links',
69
40
  label: 'Σύνδεσμοι',
70
41
  href: '#links'
71
- },
72
- setRegisterButton: setRegisterButton
73
- }), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
74
- link: {
42
+ }, {
75
43
  name: 'contact',
76
44
  label: 'Επικοινωνία',
77
45
  href: '#contact'
78
- },
79
- setRegisterButton: setRegisterButton
80
- }), _ref2)));
46
+ }],
47
+ border: true
48
+ }));
81
49
  };
82
50
 
83
51
  exports.WithNavigation = WithNavigation;
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -275,10 +275,10 @@ var ThemeOptions = /*#__PURE__*/_react["default"].forwardRef(function ThemeOptio
275
275
  setSelectedHighlightLinks('highlight');
276
276
  },
277
277
  checked: selectedHighlightLinks === 'highlight'
278
- }, "\u039D\u03B1\u03B9")), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
278
+ }, "\u039D\u03B1\u03B9")))), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
279
279
  onClick: resetOptions,
280
280
  variant: "link"
281
- }, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"))), _ref7, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
281
+ }, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"), _ref7, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
282
282
  onClick: handleOptions,
283
283
  disabled: !optionsHasChanged()
284
284
  }, "\u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE"));
@@ -15,6 +15,11 @@ import Details from '@digigov/ui/content/Details';
15
15
 
16
16
  <Story packageName="@digigov/ui" component="content/Details" story="Default.tsx" />
17
17
 
18
+ ## Accessibility
19
+
20
+ You can read more about the accessibility patterns used in our Details
21
+ implementation in the ARIA Authoring Practices Guide (APG) at [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) section.
22
+
18
23
  ## API
19
24
 
20
25
  <PropTypes packageName="@digigov/ui" component="Details" />
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
@@ -15,9 +17,11 @@ var _TableFloatingScroll = require("@digigov/ui/content/Table/TableFloatingScrol
15
17
 
16
18
  var _Dropdown = require("@digigov/ui/navigation/Dropdown");
17
19
 
18
- var _NavVertical = require("@digigov/ui/navigation/NavList/NavVertical");
20
+ var _NavList = _interopRequireWildcard(require("@digigov/ui/navigation/NavList"));
21
+
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
23
 
20
- var _NavVerticalItem = require("@digigov/ui/navigation/NavList/NavVerticalItem");
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
25
 
22
26
  var labels = {
23
27
  name: 'Ονοματεπώνυμο',
@@ -62,9 +66,11 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Table.TableDataCell, n
62
66
  placement: "bottom"
63
67
  }, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
64
68
  variant: "link"
65
- }, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavVertical.NavVertical, null, /*#__PURE__*/_react["default"].createElement(_NavVerticalItem.NavVerticalItem, {
69
+ }, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
70
+ layout: "vertical"
71
+ }, /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
66
72
  href: "#"
67
- }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(_NavVerticalItem.NavVerticalItem, {
73
+ }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
68
74
  href: "#"
69
75
  }, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))));
70
76
 
@@ -50,9 +50,7 @@ var _icons = require("@digigov/ui/icons");
50
50
 
51
51
  var _Dropdown = require("@digigov/ui/navigation/Dropdown");
52
52
 
53
- var _NavVertical = require("@digigov/ui/navigation/NavList/NavVertical");
54
-
55
- var _NavVerticalItem = require("@digigov/ui/navigation/NavList/NavVerticalItem");
53
+ var _NavList = require("@digigov/ui/navigation/NavList");
56
54
 
57
55
  var _TableContainer = require("@digigov/react-core/TableContainer");
58
56
 
@@ -259,9 +257,12 @@ var TableSortLabel = /*#__PURE__*/_react["default"].forwardRef(function TableSor
259
257
  direction: 'down',
260
258
  size: "sm",
261
259
  variant: direction === -1 ? 'dark' : 'gray'
262
- }))), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavVertical.NavVertical, null, /*#__PURE__*/_react["default"].createElement(_NavVerticalItem.NavVerticalItem, {
260
+ }))), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavList, {
261
+ layout: "vertical"
262
+ }, /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
263
263
  active: direction === 1,
264
264
  tabIndex: 0,
265
+ arrow: false,
265
266
  onClick: function onClick() {
266
267
  onSort(1);
267
268
  dropdownRef.current && (dropdownRef.current.open = false);
@@ -272,9 +273,10 @@ var TableSortLabel = /*#__PURE__*/_react["default"].forwardRef(function TableSor
272
273
  dropdownRef.current && (dropdownRef.current.open = false);
273
274
  }
274
275
  }
275
- }, _ref2, labels.asc), /*#__PURE__*/_react["default"].createElement(_NavVerticalItem.NavVerticalItem, {
276
+ }, _ref2, labels.asc), /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
276
277
  active: direction === -1,
277
278
  tabIndex: 0,
279
+ arrow: false,
278
280
  onClick: function onClick() {
279
281
  onSort(-1);
280
282
  dropdownRef.current && (dropdownRef.current.open = false);
@@ -69,7 +69,7 @@ The prop `color='primary'` or `color='secondary'` is only functional when Table
69
69
  ## Accessibility
70
70
 
71
71
  You can read more about the accessibility patterns used in our Table
72
- implementation in the ARIA Authoring Practices Guide (APG) at
72
+ implementation in the ARIA Authoring Practices Guide (APG) at [Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) section.
73
73
 
74
74
  ## API
75
75
 
@@ -8,13 +8,13 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>footer>div>div>div>section:nth-child(1)>p>a:nth-child(1)"
11
+ "selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
12
12
  }
13
13
  },
14
14
  {
15
15
  "name": "click",
16
16
  "args": {
17
- "selector": "html>body>div:nth-child(5)>footer>div>div>div>section:nth-child(1)>p>a:nth-child(1)"
17
+ "selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
18
18
  }
19
19
  }
20
20
  ],
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "name": "hover",
38
38
  "args": {
39
- "selector": "html>body>div:nth-child(5)>div>header>div>div:nth-child(2)>div:nth-child(1)>details>summary"
39
+ "selector": "html>body>div:nth-child(5)>div>header>div>div:nth-child(2)>ul>li>button"
40
40
  }
41
41
  }
42
42
  ],
@@ -5,34 +5,34 @@ import HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
5
5
  import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
6
6
  import HeaderTitle from '@digigov/ui/app/Header/HeaderTitle';
7
7
  import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
8
- import { ArrowIcon } from '@digigov/ui/icons';
9
8
  import { BurgerIcon, MoreVertIcon } from '@digigov/ui/icons';
10
9
  import { Top } from '@digigov/ui/layouts/Basic';
11
10
  import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
12
11
  import NavList from '@digigov/ui/navigation/NavList/NavList';
13
- import NavListItem from '@digigov/ui/navigation/NavList/NavListItem';
14
- import NavListItemLink from '@digigov/ui/navigation/NavList/NavListItemLink';
15
- import List, { ListItem } from '@digigov/ui/content/List';
16
- import Link from '@digigov/ui/navigation/Link';
12
+ import { NavListItemAction } from '@digigov/ui/navigation/NavList';
17
13
 
18
14
  var _ref = /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, {
19
15
  href: "#"
20
- }, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(HeaderNavMenuContent, null, /*#__PURE__*/React.createElement(NavList, {
16
+ }, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(HeaderNavMenuContent, null, /*#__PURE__*/React.createElement(NavList, {
21
17
  active: true
22
- }, /*#__PURE__*/React.createElement(NavListItem, null, /*#__PURE__*/React.createElement(NavListItemLink, null, "\u039C\u03B5\u03BD\u03BF\u03CD ", /*#__PURE__*/React.createElement(ArrowIcon, {
23
- direction: "down"
24
- })))), /*#__PURE__*/React.createElement(Dropdown, {
18
+ }, /*#__PURE__*/React.createElement(NavListItemAction, {
19
+ arrow: true
20
+ }, "\u039C\u03B5\u03BD\u03BF\u03CD")), /*#__PURE__*/React.createElement(Dropdown, {
25
21
  align: "right"
26
22
  }, /*#__PURE__*/React.createElement(DropdownButton, {
27
23
  variant: "link"
28
24
  }, "\u039C\u0391\u03A1\u0399\u039F\u03A3 \u039C\u0395\u039D\u0395\u039E\u0395\u03A3", /*#__PURE__*/React.createElement(MoreVertIcon, {
29
25
  size: "md"
30
- })), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(List, {
31
- margin: 0
32
- }, /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(ListItem, null, /*#__PURE__*/React.createElement(Link, null, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2")))))), /*#__PURE__*/React.createElement(HeaderNavMenuContent, null, /*#__PURE__*/React.createElement(BurgerIcon, {
26
+ })), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
27
+ layout: "vertical"
28
+ }, /*#__PURE__*/React.createElement(NavListItemAction, {
29
+ href: "#"
30
+ }, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/React.createElement(NavListItemAction, {
31
+ href: "#"
32
+ }, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2"))))), /*#__PURE__*/React.createElement(BurgerIcon, {
33
33
  smUpHidden: true,
34
34
  size: "sm"
35
- }))))));
35
+ }))));
36
36
 
37
37
  export var WithHeaderNavigation = function WithHeaderNavigation() {
38
38
  return _ref;
@@ -1,62 +1,35 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import React from 'react';
3
- import { SectionBreak } from '@digigov/ui';
2
+ import { NavListAuto } from '@digigov/ui';
4
3
  import { Header } from '@digigov/ui/app/Header';
5
4
  import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
6
5
  import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
7
6
  import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
8
7
  import { Top } from '@digigov/ui/layouts/Basic';
9
- import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
10
- import { Nav } from '@digigov/ui/navigation/NavList/Nav';
11
- import { NavList } from '@digigov/ui/navigation/NavList/NavList';
12
- import { NavListItem } from '@digigov/ui/navigation/NavList/NavListItem';
13
8
 
14
9
  var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, {
15
10
  href: "#"
16
11
  }))));
17
12
 
18
- var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
19
- visible: false
20
- });
21
-
22
13
  export var WithNavigation = function WithNavigation() {
23
- var _useNavList = useNavList(),
24
- registerButton = _useNavList.registerButton;
25
-
26
- var setRegisterButton = function setRegisterButton(name) {
27
- return _extends({}, registerButton(name));
28
- };
29
-
30
- return /*#__PURE__*/React.createElement(Top, null, _ref, /*#__PURE__*/React.createElement(Nav, {
31
- open: true
32
- }, /*#__PURE__*/React.createElement(NavList, null, /*#__PURE__*/React.createElement(NavListItem, {
33
- link: {
14
+ return /*#__PURE__*/React.createElement(Top, null, _ref, /*#__PURE__*/React.createElement(NavListAuto, {
15
+ links: [{
34
16
  name: 'home',
35
17
  label: 'Αρχική',
36
18
  href: '#home'
37
- },
38
- setRegisterButton: setRegisterButton
39
- }), /*#__PURE__*/React.createElement(NavListItem, {
40
- link: {
19
+ }, {
41
20
  name: 'news',
42
21
  label: 'Νέα',
43
22
  href: '#news'
44
- },
45
- setRegisterButton: setRegisterButton
46
- }), /*#__PURE__*/React.createElement(NavListItem, {
47
- link: {
23
+ }, {
48
24
  name: 'links',
49
25
  label: 'Σύνδεσμοι',
50
26
  href: '#links'
51
- },
52
- setRegisterButton: setRegisterButton
53
- }), /*#__PURE__*/React.createElement(NavListItem, {
54
- link: {
27
+ }, {
55
28
  name: 'contact',
56
29
  label: 'Επικοινωνία',
57
30
  href: '#contact'
58
- },
59
- setRegisterButton: setRegisterButton
60
- }), _ref2)));
31
+ }],
32
+ border: true
33
+ }));
61
34
  };
62
35
  export default WithNavigation;
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "hover",
10
10
  "args": {
11
- "selector": "html>body>div:nth-child(5)>section>div>div>main>a"
11
+ "selector": "html>body>div:nth-child(5)>section>div>main>a"
12
12
  }
13
13
  }
14
14
  ],
@@ -244,10 +244,10 @@ export var ThemeOptions = /*#__PURE__*/React.forwardRef(function ThemeOptions(_r
244
244
  setSelectedHighlightLinks('highlight');
245
245
  },
246
246
  checked: selectedHighlightLinks === 'highlight'
247
- }, "\u039D\u03B1\u03B9")), /*#__PURE__*/React.createElement(Button, {
247
+ }, "\u039D\u03B1\u03B9")))), /*#__PURE__*/React.createElement(Button, {
248
248
  onClick: resetOptions,
249
249
  variant: "link"
250
- }, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"))), _ref7, /*#__PURE__*/React.createElement(Button, {
250
+ }, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"), _ref7, /*#__PURE__*/React.createElement(Button, {
251
251
  onClick: handleOptions,
252
252
  disabled: !optionsHasChanged()
253
253
  }, "\u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE"));
@@ -15,6 +15,11 @@ import Details from '@digigov/ui/content/Details';
15
15
 
16
16
  <Story packageName="@digigov/ui" component="content/Details" story="Default.tsx" />
17
17
 
18
+ ## Accessibility
19
+
20
+ You can read more about the accessibility patterns used in our Details
21
+ implementation in the ARIA Authoring Practices Guide (APG) at [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) section.
22
+
18
23
  ## API
19
24
 
20
25
  <PropTypes packageName="@digigov/ui" component="Details" />
@@ -2,8 +2,7 @@ import React from 'react';
2
2
  import { Table, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/ui/content/Table';
3
3
  import { TableFloatingScroll } from '@digigov/ui/content/Table/TableFloatingScroll';
4
4
  import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
5
- import { NavVertical } from '@digigov/ui/navigation/NavList/NavVertical';
6
- import { NavVerticalItem } from '@digigov/ui/navigation/NavList/NavVerticalItem';
5
+ import NavList, { NavListItemAction } from '@digigov/ui/navigation/NavList';
7
6
  var labels = {
8
7
  name: 'Ονοματεπώνυμο',
9
8
  email: 'Email',
@@ -47,9 +46,11 @@ var _ref2 = /*#__PURE__*/React.createElement(TableDataCell, null, /*#__PURE__*/R
47
46
  placement: "bottom"
48
47
  }, /*#__PURE__*/React.createElement(DropdownButton, {
49
48
  variant: "link"
50
- }, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
49
+ }, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
50
+ layout: "vertical"
51
+ }, /*#__PURE__*/React.createElement(NavListItemAction, {
51
52
  href: "#"
52
- }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavVerticalItem, {
53
+ }, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavListItemAction, {
53
54
  href: "#"
54
55
  }, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))));
55
56
 
@@ -6,8 +6,7 @@ import Table from '@digigov/react-core/Table';
6
6
  import TableSortIconContainer from '@digigov/react-core/TableSortIconContainer';
7
7
  import { CaretIcon } from '@digigov/ui/icons';
8
8
  import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
9
- import { NavVertical } from '@digigov/ui/navigation/NavList/NavVertical';
10
- import { NavVerticalItem } from '@digigov/ui/navigation/NavList/NavVerticalItem';
9
+ import { NavList, NavListItemAction } from '@digigov/ui/navigation/NavList';
11
10
 
12
11
  var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
13
12
  direction: 'up',
@@ -56,9 +55,12 @@ export var TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabe
56
55
  direction: 'down',
57
56
  size: "sm",
58
57
  variant: direction === -1 ? 'dark' : 'gray'
59
- }))), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavVertical, null, /*#__PURE__*/React.createElement(NavVerticalItem, {
58
+ }))), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
59
+ layout: "vertical"
60
+ }, /*#__PURE__*/React.createElement(NavListItemAction, {
60
61
  active: direction === 1,
61
62
  tabIndex: 0,
63
+ arrow: false,
62
64
  onClick: function onClick() {
63
65
  onSort(1);
64
66
  dropdownRef.current && (dropdownRef.current.open = false);
@@ -69,9 +71,10 @@ export var TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabe
69
71
  dropdownRef.current && (dropdownRef.current.open = false);
70
72
  }
71
73
  }
72
- }, _ref2, labels.asc), /*#__PURE__*/React.createElement(NavVerticalItem, {
74
+ }, _ref2, labels.asc), /*#__PURE__*/React.createElement(NavListItemAction, {
73
75
  active: direction === -1,
74
76
  tabIndex: 0,
77
+ arrow: false,
75
78
  onClick: function onClick() {
76
79
  onSort(-1);
77
80
  dropdownRef.current && (dropdownRef.current.open = false);
@@ -69,7 +69,7 @@ The prop `color='primary'` or `color='secondary'` is only functional when Table
69
69
  ## Accessibility
70
70
 
71
71
  You can read more about the accessibility patterns used in our Table
72
- implementation in the ARIA Authoring Practices Guide (APG) at
72
+ implementation in the ARIA Authoring Practices Guide (APG) at [Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) section.
73
73
 
74
74
  ## API
75
75
 
@@ -5,17 +5,21 @@ parent: docs/ui/component
5
5
  ---
6
6
 
7
7
  import ServiceBadge from '@digigov/ui/feedback/ServiceBadge';
8
- import Header, { HeaderTitle } from '@digigov/ui/app/Header';
8
+ import Header, { HeaderContent, HeaderSection, HeaderTitle } from '@digigov/ui/app/Header';
9
9
  import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
10
10
 
11
11
  ## Example
12
12
 
13
13
  <Header>
14
- <GovGRLogo />
15
- <HeaderTitle>
16
- Service Name <ServiceBadge label="ALPHA" />
17
- </HeaderTitle>
14
+ <HeaderContent>
15
+ <HeaderSection>
16
+ <GovGRLogo />
17
+ <HeaderTitle>Service Name </HeaderTitle>
18
+ <ServiceBadge label="ALPHA" />
19
+ </HeaderSection>
20
+ </HeaderContent>
18
21
  </Header>
22
+ <br/>
19
23
 
20
24
  ## How to use
21
25
 
@@ -55,7 +55,7 @@ Any links within a button group will automatically align with the buttons.
55
55
  <Story packageName="@digigov/ui" component="form/Button" story="GroupingButtonsAndLinks.tsx" />
56
56
 
57
57
  Write button text in sentence case, describing the action it performs. For
58
- example:'
58
+ example:
59
59
 
60
60
  - `Start now` at the [start of the service](https://guide.services.gov.gr/docs/start-pages)
61
61
  - `Sign in` to an account a user has already created
@@ -85,12 +85,12 @@ to do next.
85
85
 
86
86
  ## API Docs
87
87
 
88
- Read more about [how to use the React types](/docs/api/Button)
88
+ Read more about [how to use the React types](/docs/api/Button).
89
89
 
90
90
  ## Accessibility
91
91
 
92
- You can read more about the accessibility patterns used in our Select
93
- implementation in the ARIA Authoring Practices Guide (APG) at
92
+ You can read more about the accessibility patterns used in our Button
93
+ implementation in the ARIA Authoring Practices Guide (APG) at [button](https://www.w3.org/WAI/ARIA/apg/patterns/button/) section.
94
94
 
95
95
  ## API
96
96
 
@@ -47,6 +47,11 @@ This might make 2 related questions easier to answer by grouping them on the sam
47
47
 
48
48
  <Story packageName="@digigov/ui" component="form/Checkbox" story="ConditionalReveal.tsx" />
49
49
 
50
+ ## Accessibility
51
+
52
+ You can read more about the accessibility patterns used in our Checkbox
53
+ implementation in the ARIA Authoring Practices Guide (APG) at [Checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/) section.
54
+
50
55
  ## API
51
56
 
52
57
  <PropTypes packageName="@digigov/ui" component="Checkbox" />
@@ -26,3 +26,8 @@ If you’re highlighting the whole date, style all the fields like this:
26
26
  If you’re highlighting just one field - either the day, month or year - only style the field that has an error. The error message must say which field has an error, like this:
27
27
 
28
28
  <Story packageName="@digigov/ui" component="form/DateInputContainer"story="WithErrorMessageForSingleField.tsx" />
29
+
30
+
31
+ ## API
32
+
33
+ <PropTypes packageName="@digigov/ui" component="DateInputContainer" />