@digigov/ui 1.0.0-290a96e2 → 1.0.0-3bfc7d37

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 (335) hide show
  1. package/app/BannerContainer/BannerContainer.stories.d.ts +10 -0
  2. package/app/BannerContainer/BannerContainer.stories.js +35 -0
  3. package/app/BannerContainer/__stories__/CookiesBanner.d.ts +2 -0
  4. package/app/BannerContainer/__stories__/CookiesBanner.js +42 -0
  5. package/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  6. package/app/Footer/__stories__/FooterWithLink.js +16 -12
  7. package/app/Footer/__stories__/FooterWithLogo.js +17 -15
  8. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  9. package/app/Masthead/Masthead.stories.d.ts +2 -0
  10. package/app/Masthead/Masthead.stories.js +28 -0
  11. package/app/Masthead/__stories__/WithElements.d.ts +2 -0
  12. package/app/Masthead/__stories__/WithElements.js +41 -0
  13. package/app/Masthead/__stories__/WithLogo.d.ts +2 -0
  14. package/app/Masthead/__stories__/WithLogo.js +37 -0
  15. package/content/Blockquote/Blockquote.stories.d.ts +1 -0
  16. package/content/Blockquote/Blockquote.stories.js +14 -0
  17. package/content/Blockquote/__stories__/Dense.d.ts +2 -0
  18. package/content/Blockquote/__stories__/Dense.js +24 -0
  19. package/content/Card/Card.stories.d.ts +2 -0
  20. package/content/Card/Card.stories.js +28 -0
  21. package/content/Card/__stories__/Default.js +1 -1
  22. package/content/Card/__stories__/Dense.d.ts +2 -0
  23. package/content/Card/__stories__/Dense.js +28 -0
  24. package/content/Card/__stories__/WithLink.d.ts +2 -0
  25. package/content/Card/__stories__/WithLink.js +24 -0
  26. package/content/StepNav/StepNav.stories.d.ts +1 -0
  27. package/content/StepNav/StepNav.stories.js +14 -0
  28. package/content/StepNav/__stories__/Dense.d.ts +2 -0
  29. package/content/StepNav/__stories__/Dense.js +204 -0
  30. package/content/SummaryList/SummaryList.stories.d.ts +1 -0
  31. package/content/SummaryList/SummaryList.stories.js +14 -0
  32. package/content/SummaryList/__stories__/Default.js +7 -3
  33. package/content/SummaryList/__stories__/WithActions.js +13 -7
  34. package/content/SummaryList/__stories__/WithoutActions.d.ts +2 -0
  35. package/content/SummaryList/__stories__/WithoutActions.js +22 -0
  36. package/content/SummaryList/__stories__/WithoutBorders.js +12 -2
  37. package/content/Table/__stories__/RowColors.js +5 -5
  38. package/content/TaskList/TaskList.stories.d.ts +1 -0
  39. package/content/TaskList/TaskList.stories.js +14 -0
  40. package/content/TaskList/__stories__/Dense.d.ts +2 -0
  41. package/content/TaskList/__stories__/Dense.js +93 -0
  42. package/content/Timeline/Timeline.stories.d.ts +1 -0
  43. package/content/Timeline/Timeline.stories.js +14 -0
  44. package/content/Timeline/__stories__/Default.js +2 -4
  45. package/content/Timeline/__stories__/Dense.d.ts +2 -0
  46. package/content/Timeline/__stories__/Dense.js +141 -0
  47. package/es/app/BannerContainer/BannerContainer.stories.js +10 -0
  48. package/es/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  49. package/es/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  50. package/es/app/Footer/__stories__/FooterWithLink.js +16 -12
  51. package/es/app/Footer/__stories__/FooterWithLogo.js +17 -15
  52. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  53. package/es/app/Masthead/Masthead.stories.js +3 -1
  54. package/es/app/Masthead/__stories__/WithElements.js +21 -0
  55. package/es/app/Masthead/__stories__/WithLogo.js +19 -0
  56. package/es/content/Blockquote/Blockquote.stories.js +2 -1
  57. package/es/content/Blockquote/__stories__/Dense.js +11 -0
  58. package/es/content/Card/Card.stories.js +3 -1
  59. package/es/content/Card/__stories__/Default.js +1 -1
  60. package/es/content/Card/__stories__/Dense.js +14 -0
  61. package/es/content/Card/__stories__/WithLink.js +10 -0
  62. package/es/content/StepNav/StepNav.stories.js +2 -1
  63. package/es/content/StepNav/__stories__/Dense.js +180 -0
  64. package/es/content/SummaryList/SummaryList.stories.js +1 -0
  65. package/es/content/SummaryList/__stories__/Default.js +7 -3
  66. package/es/content/SummaryList/__stories__/WithActions.js +5 -5
  67. package/es/content/SummaryList/__stories__/WithoutActions.js +9 -0
  68. package/es/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  69. package/es/content/Table/__stories__/RowColors.js +5 -5
  70. package/es/content/TaskList/TaskList.stories.js +2 -1
  71. package/es/content/TaskList/__stories__/Dense.js +76 -0
  72. package/es/content/Timeline/Timeline.stories.js +2 -1
  73. package/es/content/Timeline/__stories__/Default.js +2 -4
  74. package/es/content/Timeline/__stories__/Dense.js +124 -0
  75. package/es/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  76. package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  77. package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  78. package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  79. package/es/form/Button/__stories__/CallToActionButton.js +1 -4
  80. package/es/form/Button/__stories__/GroupingButtons.js +0 -3
  81. package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  82. package/es/form/Button/__stories__/Primary.js +0 -3
  83. package/es/form/Button/__stories__/Secondary.js +0 -3
  84. package/es/form/Button/__stories__/WithVariantLink.js +0 -4
  85. package/es/form/Checkbox/__stories__/WithHint.js +1 -1
  86. package/es/form/DateInputContainer/__stories__/Default.js +1 -1
  87. package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  88. package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  89. package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  90. package/es/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  91. package/es/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  92. package/es/form/ErrorMessage/__stories__/Default.js +11 -8
  93. package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  94. package/es/form/FileUpload/__stories__/Default.js +2 -2
  95. package/es/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  96. package/es/form/RadioContainer/RadioContainer.stories.js +1 -0
  97. package/es/form/RadioContainer/__stories__/Default.js +7 -4
  98. package/es/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  99. package/es/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  100. package/es/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  101. package/es/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  102. package/es/form/RadioContainer/__stories__/WithHints.js +1 -1
  103. package/es/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  104. package/es/form/TextInput/__stories__/FixedWidths.js +8 -18
  105. package/es/form/TextInput/__stories__/FluidWidths.js +8 -18
  106. package/es/govgr/Footer/Copyright.js +3 -3
  107. package/es/icons/ImageLogo/index.js +3 -0
  108. package/es/icons/ImageLogoSet/index.js +3 -0
  109. package/es/navigation/NavList/NavList.stories.js +5 -1
  110. package/es/navigation/NavList/NavList.stories.playwright.json +5 -5
  111. package/es/navigation/NavList/__stories__/Default.js +20 -54
  112. package/es/navigation/NavList/__stories__/NavVertical.js +37 -0
  113. package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  114. package/es/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  115. package/es/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  116. package/es/navigation/Tabs/__stories__/Default.js +15 -4
  117. package/es/registry.js +8 -2
  118. package/esm/app/BannerContainer/BannerContainer.stories.js +10 -0
  119. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  120. package/esm/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  121. package/esm/app/Footer/__stories__/FooterWithLink.js +16 -12
  122. package/esm/app/Footer/__stories__/FooterWithLogo.js +17 -15
  123. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  124. package/esm/app/Masthead/Masthead.stories.js +3 -1
  125. package/esm/app/Masthead/__stories__/WithElements.js +21 -0
  126. package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
  127. package/esm/content/Blockquote/Blockquote.stories.js +2 -1
  128. package/esm/content/Blockquote/__stories__/Dense.js +11 -0
  129. package/esm/content/Card/Card.stories.js +3 -1
  130. package/esm/content/Card/__stories__/Default.js +1 -1
  131. package/esm/content/Card/__stories__/Dense.js +14 -0
  132. package/esm/content/Card/__stories__/WithLink.js +10 -0
  133. package/esm/content/StepNav/StepNav.stories.js +2 -1
  134. package/esm/content/StepNav/__stories__/Dense.js +180 -0
  135. package/esm/content/SummaryList/SummaryList.stories.js +1 -0
  136. package/esm/content/SummaryList/__stories__/Default.js +7 -3
  137. package/esm/content/SummaryList/__stories__/WithActions.js +5 -5
  138. package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
  139. package/esm/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  140. package/esm/content/Table/__stories__/RowColors.js +5 -5
  141. package/esm/content/TaskList/TaskList.stories.js +2 -1
  142. package/esm/content/TaskList/__stories__/Dense.js +76 -0
  143. package/esm/content/Timeline/Timeline.stories.js +2 -1
  144. package/esm/content/Timeline/__stories__/Default.js +2 -4
  145. package/esm/content/Timeline/__stories__/Dense.js +124 -0
  146. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  147. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  148. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  149. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  150. package/esm/form/Button/__stories__/CallToActionButton.js +1 -4
  151. package/esm/form/Button/__stories__/GroupingButtons.js +0 -3
  152. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  153. package/esm/form/Button/__stories__/Primary.js +0 -3
  154. package/esm/form/Button/__stories__/Secondary.js +0 -3
  155. package/esm/form/Button/__stories__/WithVariantLink.js +0 -4
  156. package/esm/form/Checkbox/__stories__/WithHint.js +1 -1
  157. package/esm/form/DateInputContainer/__stories__/Default.js +1 -1
  158. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  159. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  160. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  161. package/esm/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  162. package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  163. package/esm/form/ErrorMessage/__stories__/Default.js +11 -8
  164. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  165. package/esm/form/FileUpload/__stories__/Default.js +2 -2
  166. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  167. package/esm/form/RadioContainer/RadioContainer.stories.js +1 -0
  168. package/esm/form/RadioContainer/__stories__/Default.js +7 -4
  169. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  170. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  171. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  172. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  173. package/esm/form/RadioContainer/__stories__/WithHints.js +1 -1
  174. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  175. package/esm/form/TextInput/__stories__/FixedWidths.js +8 -18
  176. package/esm/form/TextInput/__stories__/FluidWidths.js +8 -18
  177. package/esm/govgr/Footer/Copyright.js +3 -3
  178. package/esm/icons/ImageLogo/index.js +3 -0
  179. package/esm/icons/ImageLogoSet/index.js +3 -0
  180. package/esm/index.js +1 -1
  181. package/esm/navigation/NavList/NavList.stories.js +5 -1
  182. package/esm/navigation/NavList/NavList.stories.playwright.json +5 -5
  183. package/esm/navigation/NavList/__stories__/Default.js +20 -54
  184. package/esm/navigation/NavList/__stories__/NavVertical.js +37 -0
  185. package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  186. package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  187. package/esm/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  188. package/esm/navigation/Tabs/__stories__/Default.js +15 -4
  189. package/esm/registry.js +8 -2
  190. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  191. package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
  192. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -1
  193. package/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  194. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
  195. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
  196. package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
  197. package/form/Button/__stories__/CallToActionButton.js +1 -4
  198. package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
  199. package/form/Button/__stories__/GroupingButtons.js +0 -3
  200. package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
  201. package/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  202. package/form/Button/__stories__/Primary.d.ts +0 -3
  203. package/form/Button/__stories__/Primary.js +0 -3
  204. package/form/Button/__stories__/Secondary.d.ts +0 -3
  205. package/form/Button/__stories__/Secondary.js +0 -3
  206. package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
  207. package/form/Button/__stories__/WithVariantLink.js +0 -3
  208. package/form/Checkbox/__stories__/WithHint.js +1 -1
  209. package/form/DateInputContainer/__stories__/Default.js +1 -1
  210. package/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  211. package/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  212. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  213. package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
  214. package/form/ErrorMessage/ErrorMessage.stories.js +28 -0
  215. package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
  216. package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
  217. package/form/ErrorMessage/__stories__/Default.js +11 -8
  218. package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
  219. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
  220. package/form/FileUpload/__stories__/Default.js +2 -2
  221. package/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  222. package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
  223. package/form/RadioContainer/RadioContainer.stories.js +14 -0
  224. package/form/RadioContainer/__stories__/Default.js +7 -4
  225. package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
  226. package/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  227. package/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  228. package/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  229. package/form/RadioContainer/__stories__/WithHints.js +1 -1
  230. package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
  231. package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
  232. package/form/TextInput/__stories__/FixedWidths.js +8 -18
  233. package/form/TextInput/__stories__/FluidWidths.js +8 -18
  234. package/govgr/Footer/Copyright.js +3 -3
  235. package/icons/ImageLogo/index.d.ts +3 -0
  236. package/icons/ImageLogo/index.js +30 -0
  237. package/icons/ImageLogoSet/index.d.ts +3 -0
  238. package/icons/ImageLogoSet/index.js +30 -0
  239. package/navigation/NavList/NavList.stories.d.ts +4 -0
  240. package/navigation/NavList/NavList.stories.js +56 -0
  241. package/navigation/NavList/NavList.stories.playwright.json +5 -5
  242. package/navigation/NavList/__stories__/Default.js +19 -60
  243. package/navigation/NavList/__stories__/NavVertical.d.ts +2 -0
  244. package/navigation/NavList/__stories__/NavVertical.js +53 -0
  245. package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +2 -0
  246. package/navigation/NavList/__stories__/NavVerticalWithTitle.js +59 -0
  247. package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +2 -0
  248. package/navigation/NavList/__stories__/WithBurgerIcon.js +82 -0
  249. package/navigation/NavList/__stories__/WithSubMenu.d.ts +2 -0
  250. package/navigation/NavList/__stories__/WithSubMenu.js +96 -0
  251. package/navigation/Tabs/__stories__/Default.js +16 -4
  252. package/package.json +3 -3
  253. package/registry.d.ts +6 -2
  254. package/registry.js +11 -2
  255. package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
  256. package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
  257. package/src/app/Footer/__stories__/Default.tsx +1 -1
  258. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +14 -18
  259. package/src/app/Footer/__stories__/FooterWithLink.tsx +5 -7
  260. package/src/app/Footer/__stories__/FooterWithLogo.tsx +11 -13
  261. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +58 -58
  262. package/src/app/Masthead/Masthead.stories.js +2 -0
  263. package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
  264. package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
  265. package/src/content/Blockquote/Blockquote.stories.js +1 -0
  266. package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
  267. package/src/content/Card/Card.stories.js +2 -0
  268. package/src/content/Card/__stories__/Default.tsx +1 -1
  269. package/src/content/Card/__stories__/Dense.tsx +24 -0
  270. package/src/content/Card/__stories__/WithLink.tsx +25 -0
  271. package/src/content/StepNav/StepNav.stories.js +1 -0
  272. package/src/content/StepNav/__stories__/Dense.tsx +261 -0
  273. package/src/content/SummaryList/SummaryList.stories.js +1 -0
  274. package/src/content/SummaryList/__stories__/Default.tsx +30 -21
  275. package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
  276. package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
  277. package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
  278. package/src/content/Table/__stories__/RowColors.tsx +5 -5
  279. package/src/content/TaskList/TaskList.stories.js +1 -0
  280. package/src/content/TaskList/__stories__/Dense.tsx +118 -0
  281. package/src/content/Timeline/Timeline.stories.js +1 -0
  282. package/src/content/Timeline/__stories__/Default.tsx +2 -2
  283. package/src/content/Timeline/__stories__/Dense.tsx +196 -0
  284. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  285. package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
  286. package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
  287. package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
  288. package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
  289. package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
  290. package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
  291. package/src/form/Button/__stories__/Primary.tsx +1 -3
  292. package/src/form/Button/__stories__/Secondary.tsx +0 -3
  293. package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
  294. package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
  295. package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
  296. package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
  297. package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
  298. package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
  299. package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
  300. package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
  301. package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
  302. package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
  303. package/src/form/FileUpload/__stories__/Default.tsx +2 -2
  304. package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
  305. package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
  306. package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
  307. package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +5 -5
  308. package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
  309. package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
  310. package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
  311. package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
  312. package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
  313. package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
  314. package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -2
  315. package/src/govgr/Footer/Copyright.tsx +11 -11
  316. package/src/icons/ImageLogo/index.tsx +5 -0
  317. package/src/icons/ImageLogoSet/index.tsx +4 -0
  318. package/src/navigation/NavList/NavList.stories.js +4 -0
  319. package/src/navigation/NavList/NavList.stories.playwright.json +5 -5
  320. package/src/navigation/NavList/__stories__/Default.tsx +16 -80
  321. package/src/navigation/NavList/__stories__/NavVertical.tsx +36 -0
  322. package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +40 -0
  323. package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +49 -0
  324. package/src/navigation/NavList/__stories__/WithSubMenu.tsx +101 -0
  325. package/src/navigation/Tabs/__stories__/Default.tsx +14 -9
  326. package/src/registry.js +10 -4
  327. /package/es/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  328. /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  329. /package/esm/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  330. /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  331. /package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +0 -0
  332. /package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  333. /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  334. /package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  335. /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
@@ -9,8 +9,8 @@ import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
9
9
 
10
10
  export const NoneAnswer = () => (
11
11
  <FieldContainer>
12
- <Fieldset>
13
- <FieldsetLegend>Πόσα παιδιά έχετε;</FieldsetLegend>
12
+ <Fieldset aria-describedby="name-hint">
13
+ <FieldsetLegend size='md'>Πόσα παιδιά έχετε;</FieldsetLegend>
14
14
  <RadioContainer>
15
15
  <RadioItem name="children" value="onetwo">
16
16
  1-2 παιδιά
@@ -18,7 +18,7 @@ export const NoneAnswer = () => (
18
18
  <RadioItem name="children" value="threefour">
19
19
  3 ή περισσότερα παιδιά
20
20
  </RadioItem>
21
- <RadioItem divider="ή" name="children" value="none">
21
+ <RadioItem dividerText="ή" name="children" value="none">
22
22
  Κανένα παιδί
23
23
  </RadioItem>
24
24
  </RadioContainer>
@@ -14,7 +14,7 @@ import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
14
14
  export const WithErrorMessage = () => (
15
15
  <FieldContainer error>
16
16
  <Fieldset aria-describedby="travel-hint travel-error">
17
- <FieldsetLegend>
17
+ <FieldsetLegend size='md'>
18
18
  Θα ταξιδέψετε σε κάποια από αυτές τις χώρες;
19
19
  </FieldsetLegend>
20
20
  <Hint id="travel-hint">Μπορείτε να επιλέξετε μόνο μία επιλογή.</Hint>
@@ -14,7 +14,7 @@ export const WithHints = () => (
14
14
  <Fieldset aria-describedby="login-hint">
15
15
  <FieldsetLegend size="md">Πώς θέλετε να συνδεθείτε;</FieldsetLegend>
16
16
  <Hint id="login-hint">
17
- Θα χρειαστείτε έναν λογαριασμό με τον οποίο θα αποδείξετε την ταύτοτητα
17
+ Θα χρειαστείτε έναν λογαριασμό με τον οποίο θα αποδείξετε την ταυτότητά
18
18
  σας ώστε να προχωρήσετε.
19
19
  </Hint>
20
20
  <RadioContainer>
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+
3
+ import {
4
+ FieldContainer,
5
+ Fieldset,
6
+ FieldsetLegend,
7
+ } from '@digigov/ui/form/FieldContainer';
8
+ import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
9
+
10
+ export const WithMediumLegend = () => (
11
+ <FieldContainer>
12
+ <Fieldset>
13
+ <FieldsetLegend size="md">Ποιά είναι η χώρα της διαμονής σας;</FieldsetLegend>
14
+ <RadioContainer>
15
+ <RadioItem name="country" value="greece">
16
+ Ελλάδα
17
+ </RadioItem>
18
+ <RadioItem name="country" value="cyprus">
19
+ Κύπρος
20
+ </RadioItem>
21
+ <RadioItem name="country" value="eu">
22
+ Χώρα της Ευρωπαϊκής Ένωσης
23
+ </RadioItem>
24
+ <RadioItem name="country" value="us">
25
+ Hνωμένες Πολιτείες της Αμερικής
26
+ </RadioItem>
27
+ </RadioContainer>
28
+ </Fieldset>
29
+ </FieldContainer>
30
+ );
31
+
32
+ export default WithMediumLegend;
@@ -5,44 +5,44 @@ import { LabelTitle } from '@digigov/ui/form/LabelContainer';
5
5
  import { TextInput } from '@digigov/ui/form/TextInput';
6
6
 
7
7
  export const FixedWidths = () => (
8
- <>
8
+ <div>
9
9
  <FieldContainer>
10
10
  <LabelContainer>
11
11
  <LabelTitle size="sm">Πεδίο 20 χαρακτήρων</LabelTitle>
12
- <TextInput name="inputext" maxWidth={'20-char'}></TextInput>
12
+ <TextInput name="inputext" maxWidth={'20-char'}></TextInput>
13
13
  </LabelContainer>
14
14
  </FieldContainer>
15
15
  <FieldContainer>
16
16
  <LabelContainer>
17
17
  <LabelTitle size="sm">Πεδίο 10 χαρακτήρων</LabelTitle>
18
- <TextInput name="inputext" maxWidth={'10-char'}></TextInput>
18
+ <TextInput name="inputext" maxWidth={'10-char'}></TextInput>
19
19
  </LabelContainer>
20
20
  </FieldContainer>
21
21
  <FieldContainer>
22
22
  <LabelContainer>
23
23
  <LabelTitle size="sm">Πεδίο 5 χαρακτήρων</LabelTitle>
24
- <TextInput name="inputext" maxWidth={'5-char'}></TextInput>
24
+ <TextInput name="inputext" maxWidth={'5-char'}></TextInput>
25
25
  </LabelContainer>
26
26
  </FieldContainer>
27
27
  <FieldContainer>
28
28
  <LabelContainer>
29
29
  <LabelTitle size="sm">Πεδίο 4 χαρακτήρων</LabelTitle>
30
- <TextInput name="inputext" maxWidth={'4-char'}></TextInput>
30
+ <TextInput name="inputext" maxWidth={'4-char'}></TextInput>
31
31
  </LabelContainer>
32
32
  </FieldContainer>
33
33
  <FieldContainer>
34
34
  <LabelContainer>
35
35
  <LabelTitle size="sm">Πεδίο 3 χαρακτήρων</LabelTitle>
36
- <TextInput name="inputext" maxWidth={'3-char'}></TextInput>
36
+ <TextInput name="inputext" maxWidth={'3-char'}></TextInput>
37
37
  </LabelContainer>
38
38
  </FieldContainer>
39
39
  <FieldContainer>
40
40
  <LabelContainer>
41
41
  <LabelTitle size="sm">Πεδίο 2 χαρακτήρων</LabelTitle>
42
- <TextInput name="inputext" maxWidth={'2-char'}></TextInput>
42
+ <TextInput name="inputext" maxWidth={'2-char'}></TextInput>
43
43
  </LabelContainer>
44
44
  </FieldContainer>
45
- </>
45
+ </div>
46
46
  );
47
47
 
48
48
  export default FixedWidths;
@@ -5,7 +5,7 @@ import { LabelTitle } from '@digigov/ui/form/LabelContainer';
5
5
  import { TextInput } from '@digigov/ui/form/TextInput';
6
6
 
7
7
  export const FluidWidths = () => (
8
- <>
8
+ <div>
9
9
  <FieldContainer>
10
10
  <LabelContainer>
11
11
  <LabelTitle size="sm">Μέγιστο πλάτος</LabelTitle>
@@ -42,7 +42,7 @@ export const FluidWidths = () => (
42
42
  <TextInput name="inputext" width='25%'></TextInput>
43
43
  </LabelContainer>
44
44
  </FieldContainer>
45
- </>
45
+ </div>
46
46
  );
47
47
 
48
48
  export default FluidWidths;
@@ -23,13 +23,13 @@ export const Copyright: React.FC<CopyrightProps> = ({
23
23
  const { t } = useTranslation();
24
24
  const copyrightInfo = minDigitalCopyright
25
25
  ? {
26
- url: 'https://mindigital.gr',
27
- label: t('footer.mindigital'),
28
- }
26
+ url: 'https://mindigital.gr',
27
+ label: t('footer.mindigital'),
28
+ }
29
29
  : {
30
- url: 'https://grnet.gr',
31
- label: t('footer.grnet'),
32
- };
30
+ url: 'https://grnet.gr',
31
+ label: t('footer.grnet'),
32
+ };
33
33
 
34
34
  return (
35
35
  <CopyrightContainer {...props}>
@@ -40,23 +40,23 @@ export const Copyright: React.FC<CopyrightProps> = ({
40
40
  {copyright}
41
41
  {createdBy || (
42
42
  <>
43
- {t('footer.created_by')}{' '}
43
+ {`${t('footer.created_by')} `}
44
44
  <Link
45
45
  href={copyrightInfo.url}
46
46
  target="_blank"
47
47
  rel="noopener noreferrer"
48
48
  >
49
- {copyrightInfo.label}
50
- </Link>{' '}
49
+ {`${copyrightInfo.label}`}
50
+ </Link>
51
51
  {!minDigitalCopyright && (
52
52
  <>
53
- {t('footer.created_for')}{' '}
53
+ {` ${t('footer.created_for')} `}
54
54
  <Link
55
55
  href="https://mindigital.gr"
56
56
  target="_blank"
57
57
  rel="noopener noreferrer"
58
58
  >
59
- {t('footer.mindigital')}
59
+ {`${t('footer.mindigital')}`}
60
60
  </Link>
61
61
  </>
62
62
  )}
@@ -0,0 +1,5 @@
1
+
2
+ import ImageLogo from '@digigov/react-core/ImageLogo';
3
+ export * from '@digigov/react-core/ImageLogo';
4
+
5
+ export default ImageLogo;
@@ -0,0 +1,4 @@
1
+ import ImageLogoSet from '@digigov/react-core/ImageLogoSet';
2
+ export * from '@digigov/react-core/ImageLogoSet';
3
+
4
+ export default ImageLogoSet;
@@ -8,4 +8,8 @@ export default {
8
8
  displayName: 'NavList',
9
9
  };
10
10
  export * from '@digigov/ui/navigation/NavList/__stories__/Default';
11
+ export * from '@digigov/ui/navigation/NavList/__stories__/NavVertical';
12
+ export * from '@digigov/ui/navigation/NavList/__stories__/NavVerticalWithTitle';
13
+ export * from '@digigov/ui/navigation/NavList/__stories__/WithSubMenu';
11
14
  export * from '@digigov/ui/navigation/NavList/__stories__/NavVerticalLayout';
15
+ export * from '@digigov/ui/navigation/NavList/__stories__/WithBurgerIcon';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": "4",
3
3
  "stories": {
4
- "digigov-ui-navigation-navlist--default": {
4
+ "digigov-ui-navigation-navlist--with-sub-menu": {
5
5
  "actionSets": [
6
6
  {
7
7
  "actions": [
@@ -12,8 +12,8 @@
12
12
  }
13
13
  }
14
14
  ],
15
- "id": "dHQxEQCIJ4bJ",
16
- "title": "Hover item"
15
+ "id": "FO0jt9D4koTE",
16
+ "title": "Hover Item"
17
17
  },
18
18
  {
19
19
  "actions": [
@@ -24,8 +24,8 @@
24
24
  }
25
25
  }
26
26
  ],
27
- "id": "WMfgyO3E_9S_",
28
- "title": "Open sub menu"
27
+ "id": "pSAeXNWiklxX",
28
+ "title": "Open submenu"
29
29
  }
30
30
  ]
31
31
  }
@@ -1,97 +1,33 @@
1
- import React, { Fragment } from 'react';
1
+ import React from 'react';
2
2
  import {
3
3
  Nav,
4
4
  NavList,
5
5
  NavListItemAction,
6
- NavMenuContainer,
7
- NavMenuContent,
8
- NavMenuContentList,
9
- NavMenuContentListItem,
10
- NavMenuTitle,
11
6
  useNavList
12
7
  } from '@digigov/ui/navigation/NavList';
13
- import { Link } from '@digigov/ui/navigation/Link';
14
8
 
15
9
  const links = [
16
- { name: 'home', href: '#home', label: 'Αρχική' },
17
- {
18
- name: 'educational',
19
- label: 'Εκπαιδευτικό υλικό',
20
- subMenu: [
21
- {
22
- name: 'elearning',
23
- href: '#elearning',
24
- label: 'Εκπαιδευτική πλατφόρμα',
25
- },
26
- {
27
- name: 'videos',
28
- href: '#videos',
29
- label: 'Βίντεο',
30
- },
31
- {
32
- name: 'presentations',
33
- href: '#presentations',
34
- label: 'Παρουσιάσεις',
35
- },
36
- {
37
- name: 'promoting',
38
- href: '#promoting',
39
- label: 'Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά',
40
- },
41
- {
42
- name: 'other-texts',
43
- href: '#other-texts',
44
- label: 'Άλλα κείμενα',
45
- },
46
- ],
47
- },
10
+ { name: 'home', href: '#home', label: 'Αρχική', active: true },
11
+ { name: 'new_form', href: '#new_form', label: 'Καταχώριση φόρμας' },
48
12
  { name: 'news', href: '#news', label: 'Νέα' },
13
+ { name: 'contact', href: '#contact', label: 'Επικοινωνία' },
49
14
  ];
50
15
 
51
-
52
16
  export const Default = () => {
53
- const layout = 'horizontal';
54
- const border = false;
55
- const { registerNavItemMenu, registerNavItem } = useNavList();
17
+ const { registerNavItem } = useNavList();
18
+
56
19
  return (
57
- <Nav open={true} border={border} aria-orientation={layout}>
58
- <NavList layout={layout}>
20
+ <Nav
21
+ role="menubar"
22
+ aria-orientation="horizontal"
23
+ aria-label="Nav list"
24
+ fixed={false}
25
+ >
26
+ <NavList>
59
27
  {links.map((item, key) => (
60
- <Fragment key={key}>
61
- <NavListItemAction {...registerNavItem(item)} >
62
- {item.label}
63
- </NavListItemAction>
64
- {item.subMenu &&
65
- <NavMenuContainer
66
- layout={layout}
67
- {...registerNavItemMenu(item.name)}
68
- >
69
- <NavMenuTitle>{item.label}</NavMenuTitle>
70
- <NavMenuContent>
71
- <NavMenuContentList role="menu">
72
- {item.subMenu?.map((subMenu, menuIndex) => {
73
- return (
74
- subMenu?.href && (
75
- <NavMenuContentListItem
76
- key={menuIndex}
77
- role="presentation"
78
- >
79
- <Link
80
- role="menuitem"
81
- id={subMenu.name}
82
- href={subMenu.href}
83
- >
84
- {subMenu.label}
85
- </Link>
86
- </NavMenuContentListItem>
87
- )
88
- );
89
- })}
90
- </NavMenuContentList>
91
- </NavMenuContent>
92
- </NavMenuContainer>
93
- }
94
- </Fragment>
28
+ <NavListItemAction key={key} {...registerNavItem(item)} active={item?.active}>
29
+ {item.label}
30
+ </NavListItemAction>
95
31
  ))}
96
32
  </NavList>
97
33
  </Nav>
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import {
3
+ Nav,
4
+ NavList,
5
+ NavListItemAction,
6
+ useNavList
7
+ } from '@digigov/ui/navigation/NavList';
8
+
9
+ const links = [
10
+ { name: 'link_1', href: '#link_1', label: 'Σύνδεσμος 1', active: true },
11
+ { name: 'link_2', href: '#link_2', label: 'Σύνδεσμος 2' },
12
+ { name: 'link_3', href: '#link_3', label: 'Σύνδεσμος 3' },
13
+ ];
14
+
15
+ export const NavVertical = () => {
16
+ const { registerNavItem } = useNavList();
17
+
18
+ return (
19
+ <Nav
20
+ aria-orientation="vertical"
21
+ aria-label="Nav list"
22
+ fixed={false}
23
+ border={false}
24
+ >
25
+ <NavList layout="vertical">
26
+ {links.map((item, key) => (
27
+ <NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
28
+ {item.label}
29
+ </NavListItemAction>
30
+ ))}
31
+ </NavList>
32
+ </Nav>
33
+ );
34
+ };
35
+
36
+ export default NavVertical;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import {
3
+ Nav,
4
+ NavList,
5
+ NavListItemAction,
6
+ useNavList
7
+ } from '@digigov/ui/navigation/NavList';
8
+ import { Heading } from '@digigov/ui/typography/Heading';
9
+
10
+ const links = [
11
+ { name: 'link_1', href: '#link_1', label: 'Σύνδεσμος 1', active: true },
12
+ { name: 'link_2', href: '#link_2', label: 'Σύνδεσμος 2' },
13
+ { name: 'link_3', href: '#link_3', label: 'Σύνδεσμος 3' },
14
+ ];
15
+
16
+ export const NavVerticalWithTitle = () => {
17
+ const { registerNavItem } = useNavList();
18
+
19
+ return (
20
+ <div>
21
+ <Heading size='sm'>Σχετικοί Σύνδεσμοι</Heading>
22
+ <Nav
23
+ aria-orientation="vertical"
24
+ aria-label="Nav list"
25
+ fixed={false}
26
+ border={false}
27
+ >
28
+ <NavList layout="vertical">
29
+ {links.map((item, key) => (
30
+ <NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
31
+ {item.label}
32
+ </NavListItemAction>
33
+ ))}
34
+ </NavList>
35
+ </Nav>
36
+ </div>
37
+ );
38
+ };
39
+
40
+ export default NavVerticalWithTitle;
@@ -0,0 +1,49 @@
1
+ import React, { useState } from 'react';
2
+ import NavList from '@digigov/ui/navigation/NavList/NavList';
3
+ import { BurgerIcon } from '@digigov/ui/icons';
4
+ import {
5
+ Nav, NavListItemAction,
6
+ } from '@digigov/ui/navigation/NavList';
7
+ import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
8
+
9
+ const links = [
10
+ { name: 'home', href: '#home', label: 'Αρχική', active: true },
11
+ { name: 'new_form', href: '#new_form', label: 'Καταχώριση φόρμας' },
12
+ { name: 'news', href: '#news', label: 'Νέα' },
13
+ { name: 'contact', href: '#contact', label: 'Επικοινωνία' },
14
+ ];
15
+
16
+ export const WithBurgerIcon = () => {
17
+ const { registerNavItem } = useNavList();
18
+ const [open, setOpen] = useState<boolean>(true);
19
+
20
+ return (
21
+ <div>
22
+ <BurgerIcon
23
+ mdUpHidden
24
+ size="lg"
25
+ onClick={() => {
26
+ setOpen(!open)
27
+ }}
28
+ />
29
+ <Nav
30
+ role="menubar"
31
+ aria-orientation="horizontal"
32
+ aria-label="Nav list"
33
+ fixed={false}
34
+ border={false}
35
+ open={open}
36
+ >
37
+ <NavList>
38
+ {links.map((item, key) => (
39
+ <NavListItemAction key={key} {...registerNavItem(item)} active={item?.active} >
40
+ {item.label}
41
+ </NavListItemAction>
42
+ ))}
43
+ </NavList>
44
+ </Nav>
45
+ </div>
46
+ );
47
+ };
48
+
49
+ export default WithBurgerIcon;
@@ -0,0 +1,101 @@
1
+ import React, { Fragment } from 'react';
2
+ import {
3
+ Nav,
4
+ NavList,
5
+ NavListItemAction,
6
+ NavMenuContainer,
7
+ NavMenuContent,
8
+ NavMenuContentList,
9
+ NavMenuContentListItem,
10
+ NavMenuTitle,
11
+ useNavList
12
+ } from '@digigov/ui/navigation/NavList';
13
+ import { Link } from '@digigov/ui/navigation/Link';
14
+
15
+ const links = [
16
+ { name: 'home', href: '#home', label: 'Αρχική' },
17
+ {
18
+ name: 'educational',
19
+ label: 'Εκπαιδευτικό υλικό',
20
+ subMenu: [
21
+ {
22
+ name: 'elearning',
23
+ href: '#elearning',
24
+ label: 'Εκπαιδευτική πλατφόρμα',
25
+ },
26
+ {
27
+ name: 'videos',
28
+ href: '#videos',
29
+ label: 'Βίντεο',
30
+ },
31
+ {
32
+ name: 'presentations',
33
+ href: '#presentations',
34
+ label: 'Παρουσιάσεις',
35
+ },
36
+ {
37
+ name: 'promoting',
38
+ href: '#promoting',
39
+ label: 'Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά',
40
+ },
41
+ {
42
+ name: 'other-texts',
43
+ href: '#other-texts',
44
+ label: 'Άλλα κείμενα',
45
+ },
46
+ ],
47
+ },
48
+ { name: 'news', href: '#news', label: 'Νέα' },
49
+ ];
50
+
51
+
52
+ export const WithSubMenu = () => {
53
+ const layout = 'horizontal';
54
+ const border = false;
55
+ const { registerNavItemMenu, registerNavItem } = useNavList();
56
+ return (
57
+ <Nav open={true} border={border} aria-orientation={layout}>
58
+ <NavList layout={layout}>
59
+ {links.map((item, key) => (
60
+ <Fragment key={key}>
61
+ <NavListItemAction {...registerNavItem(item)} >
62
+ {item.label}
63
+ </NavListItemAction>
64
+ {item.subMenu &&
65
+ <NavMenuContainer
66
+ layout={layout}
67
+ {...registerNavItemMenu(item.name)}
68
+ >
69
+ <NavMenuTitle>{item.label}</NavMenuTitle>
70
+ <NavMenuContent>
71
+ <NavMenuContentList role="menu">
72
+ {item.subMenu?.map((subMenu, menuIndex) => {
73
+ return (
74
+ subMenu?.href && (
75
+ <NavMenuContentListItem
76
+ key={menuIndex}
77
+ role="presentation"
78
+ >
79
+ <Link
80
+ role="menuitem"
81
+ id={subMenu.name}
82
+ href={subMenu.href}
83
+ >
84
+ {subMenu.label}
85
+ </Link>
86
+ </NavMenuContentListItem>
87
+ )
88
+ );
89
+ })}
90
+ </NavMenuContentList>
91
+ </NavMenuContent>
92
+ </NavMenuContainer>
93
+ }
94
+ </Fragment>
95
+ ))}
96
+ </NavList>
97
+ </Nav>
98
+ );
99
+ };
100
+
101
+ export default WithSubMenu;
@@ -21,15 +21,17 @@ import { Heading } from '@digigov/ui/typography/Heading';
21
21
  import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
22
22
 
23
23
  export function Default() {
24
- const { register, panel } = useTabs();
24
+ const { register, opened, panel } = useTabs();
25
+
25
26
  return (
26
27
  <Tabs>
27
28
  <TabsHeading size='md'>Περιεχόμενα</TabsHeading>
28
29
  <TabsList>
29
- <TabsListItem {...register('a')}>Στοιχεία πολίτη</TabsListItem>
30
- <TabsListItem {...register('b')}>Yποθέσεις</TabsListItem>
30
+ <TabsListItem {...register('citizen')} open={Object.keys(opened).length === 0 || opened['citizen']}>Στοιχεία πολίτη</TabsListItem>
31
+ <TabsListItem {...register('cases')}>Οι υποθέσεις τους</TabsListItem>
32
+ <TabsListItem {...register('history')}>Ιστορικό</TabsListItem>
31
33
  </TabsList>
32
- <TabsPanel {...panel('a')}>
34
+ <TabsPanel {...panel('citizen')} active={Object.keys(opened).length === 0 || opened['citizen']}>
33
35
  <Heading size="md" element="h3">
34
36
  Στοιχεία πολίτη
35
37
  </Heading>
@@ -38,7 +40,6 @@ export function Default() {
38
40
  <SummaryListItemKey>Όνομα</SummaryListItemKey>
39
41
  <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
40
42
  <SummaryListItemAction>
41
- {' '}
42
43
  <Link href="#">
43
44
  Αλλαγή <VisuallyHidden> ονόματος </VisuallyHidden>
44
45
  </Link>
@@ -52,21 +53,25 @@ export function Default() {
52
53
  <SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
53
54
  <SummaryListItemValue>6941234567</SummaryListItemValue>
54
55
  <SummaryListItemAction>
55
- {' '}
56
56
  <Link>
57
- {' '}
58
57
  Αλλαγή <VisuallyHidden> τηλεφώνου </VisuallyHidden>
59
58
  </Link>
60
59
  </SummaryListItemAction>
61
60
  </SummaryListItem>
62
61
  </SummaryList>
63
62
  </TabsPanel>
64
- <TabsPanel {...panel('b')}>
63
+ <TabsPanel {...panel('cases')}>
65
64
  <Heading size="md" element="h3">
66
- Yποθέσεις
65
+ Οι υποθέσεις τους
67
66
  </Heading>
68
67
  Περιεχόμενα υποθέσεων
69
68
  </TabsPanel>
69
+ <TabsPanel {...panel('history')}>
70
+ <Heading size="md" element="h3">
71
+ Ιστορικό
72
+ </Heading>
73
+ Περιεχόμενο ιστορικού
74
+ </TabsPanel>
70
75
  </Tabs>
71
76
  );
72
77
  }