@digigov/ui 1.0.0-079f34f3d → 1.0.0-21c8c3dc

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 (361) 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/Masthead.stories.playwright.json +1 -1
  12. package/app/Masthead/__stories__/WithElements.d.ts +2 -0
  13. package/app/Masthead/__stories__/WithElements.js +41 -0
  14. package/app/Masthead/__stories__/WithLogo.d.ts +2 -0
  15. package/app/Masthead/__stories__/WithLogo.js +37 -0
  16. package/content/Blockquote/Blockquote.stories.d.ts +1 -0
  17. package/content/Blockquote/Blockquote.stories.js +14 -0
  18. package/content/Blockquote/__stories__/Dense.d.ts +2 -0
  19. package/content/Blockquote/__stories__/Dense.js +24 -0
  20. package/content/Card/Card.stories.d.ts +2 -0
  21. package/content/Card/Card.stories.js +28 -0
  22. package/content/Card/__stories__/Default.js +1 -1
  23. package/content/Card/__stories__/Dense.d.ts +2 -0
  24. package/content/Card/__stories__/Dense.js +28 -0
  25. package/content/Card/__stories__/WithLink.d.ts +2 -0
  26. package/content/Card/__stories__/WithLink.js +24 -0
  27. package/content/StepNav/StepNav.stories.d.ts +1 -0
  28. package/content/StepNav/StepNav.stories.js +14 -0
  29. package/content/StepNav/__stories__/Dense.d.ts +2 -0
  30. package/content/StepNav/__stories__/Dense.js +204 -0
  31. package/content/SummaryList/SummaryList.stories.d.ts +1 -0
  32. package/content/SummaryList/SummaryList.stories.js +14 -0
  33. package/content/SummaryList/__stories__/Default.js +7 -3
  34. package/content/SummaryList/__stories__/WithActions.js +13 -7
  35. package/content/SummaryList/__stories__/WithoutActions.d.ts +2 -0
  36. package/content/SummaryList/__stories__/WithoutActions.js +22 -0
  37. package/content/SummaryList/__stories__/WithoutBorders.js +12 -2
  38. package/content/Table/__stories__/RowColors.js +5 -5
  39. package/content/TaskList/TaskList.stories.d.ts +1 -0
  40. package/content/TaskList/TaskList.stories.js +14 -0
  41. package/content/TaskList/__stories__/Dense.d.ts +2 -0
  42. package/content/TaskList/__stories__/Dense.js +93 -0
  43. package/content/Timeline/Timeline.stories.d.ts +1 -0
  44. package/content/Timeline/Timeline.stories.js +14 -0
  45. package/content/Timeline/__stories__/Default.js +2 -4
  46. package/content/Timeline/__stories__/Dense.d.ts +2 -0
  47. package/content/Timeline/__stories__/Dense.js +141 -0
  48. package/es/app/BannerContainer/BannerContainer.stories.js +10 -0
  49. package/es/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  50. package/es/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  51. package/es/app/Footer/__stories__/FooterWithLink.js +16 -12
  52. package/es/app/Footer/__stories__/FooterWithLogo.js +17 -15
  53. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  54. package/es/app/Masthead/Masthead.stories.js +3 -1
  55. package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
  56. package/es/app/Masthead/__stories__/WithElements.js +21 -0
  57. package/es/app/Masthead/__stories__/WithLogo.js +19 -0
  58. package/es/content/Blockquote/Blockquote.stories.js +2 -1
  59. package/es/content/Blockquote/__stories__/Dense.js +11 -0
  60. package/es/content/Card/Card.stories.js +3 -1
  61. package/es/content/Card/__stories__/Default.js +1 -1
  62. package/es/content/Card/__stories__/Dense.js +14 -0
  63. package/es/content/Card/__stories__/WithLink.js +10 -0
  64. package/es/content/StepNav/StepNav.stories.js +2 -1
  65. package/es/content/StepNav/__stories__/Dense.js +180 -0
  66. package/es/content/SummaryList/SummaryList.stories.js +1 -0
  67. package/es/content/SummaryList/__stories__/Default.js +7 -3
  68. package/es/content/SummaryList/__stories__/WithActions.js +5 -5
  69. package/es/content/SummaryList/__stories__/WithoutActions.js +9 -0
  70. package/es/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  71. package/es/content/Table/__stories__/RowColors.js +5 -5
  72. package/es/content/TaskList/TaskList.stories.js +2 -1
  73. package/es/content/TaskList/__stories__/Dense.js +76 -0
  74. package/es/content/Timeline/Timeline.stories.js +2 -1
  75. package/es/content/Timeline/__stories__/Default.js +2 -4
  76. package/es/content/Timeline/__stories__/Dense.js +124 -0
  77. package/es/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  78. package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  79. package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  80. package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  81. package/es/form/Button/__stories__/CallToActionButton.js +1 -4
  82. package/es/form/Button/__stories__/GroupingButtons.js +0 -3
  83. package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  84. package/es/form/Button/__stories__/Primary.js +0 -3
  85. package/es/form/Button/__stories__/Secondary.js +0 -3
  86. package/es/form/Button/__stories__/WithVariantLink.js +0 -4
  87. package/es/form/Checkbox/__stories__/WithHint.js +1 -1
  88. package/es/form/DateInputContainer/__stories__/Default.js +1 -1
  89. package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  90. package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  91. package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  92. package/es/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  93. package/es/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  94. package/es/form/ErrorMessage/__stories__/Default.js +11 -8
  95. package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  96. package/es/form/FileUpload/__stories__/Default.js +2 -2
  97. package/es/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  98. package/es/form/RadioContainer/RadioContainer.stories.js +1 -0
  99. package/es/form/RadioContainer/__stories__/Default.js +7 -4
  100. package/es/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  101. package/es/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  102. package/es/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  103. package/es/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  104. package/es/form/RadioContainer/__stories__/WithHints.js +1 -1
  105. package/es/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  106. package/es/form/TextInput/__stories__/FixedWidths.js +8 -18
  107. package/es/form/TextInput/__stories__/FluidWidths.js +8 -18
  108. package/es/govgr/Footer/Copyright.js +3 -3
  109. package/es/icons/Icon/index.js +2 -2
  110. package/es/icons/ImageLogo/index.js +3 -0
  111. package/es/icons/ImageLogoSet/index.js +3 -0
  112. package/es/layouts/Grid/Grid.stories.js +1 -0
  113. package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
  114. package/es/navigation/Link/index.js +1 -1
  115. package/es/navigation/NavList/NavList.stories.js +5 -1
  116. package/es/navigation/NavList/NavList.stories.playwright.json +5 -5
  117. package/es/navigation/NavList/__stories__/Default.js +20 -54
  118. package/es/navigation/NavList/__stories__/NavVertical.js +37 -0
  119. package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  120. package/es/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  121. package/es/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  122. package/es/navigation/Tabs/__stories__/Default.js +15 -4
  123. package/es/registry.js +8 -2
  124. package/esm/app/BannerContainer/BannerContainer.stories.js +10 -0
  125. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  126. package/esm/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  127. package/esm/app/Footer/__stories__/FooterWithLink.js +16 -12
  128. package/esm/app/Footer/__stories__/FooterWithLogo.js +17 -15
  129. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  130. package/esm/app/Masthead/Masthead.stories.js +3 -1
  131. package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
  132. package/esm/app/Masthead/__stories__/WithElements.js +21 -0
  133. package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
  134. package/esm/content/Blockquote/Blockquote.stories.js +2 -1
  135. package/esm/content/Blockquote/__stories__/Dense.js +11 -0
  136. package/esm/content/Card/Card.stories.js +3 -1
  137. package/esm/content/Card/__stories__/Default.js +1 -1
  138. package/esm/content/Card/__stories__/Dense.js +14 -0
  139. package/esm/content/Card/__stories__/WithLink.js +10 -0
  140. package/esm/content/StepNav/StepNav.stories.js +2 -1
  141. package/esm/content/StepNav/__stories__/Dense.js +180 -0
  142. package/esm/content/SummaryList/SummaryList.stories.js +1 -0
  143. package/esm/content/SummaryList/__stories__/Default.js +7 -3
  144. package/esm/content/SummaryList/__stories__/WithActions.js +5 -5
  145. package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
  146. package/esm/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  147. package/esm/content/Table/__stories__/RowColors.js +5 -5
  148. package/esm/content/TaskList/TaskList.stories.js +2 -1
  149. package/esm/content/TaskList/__stories__/Dense.js +76 -0
  150. package/esm/content/Timeline/Timeline.stories.js +2 -1
  151. package/esm/content/Timeline/__stories__/Default.js +2 -4
  152. package/esm/content/Timeline/__stories__/Dense.js +124 -0
  153. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  154. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  155. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  156. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  157. package/esm/form/Button/__stories__/CallToActionButton.js +1 -4
  158. package/esm/form/Button/__stories__/GroupingButtons.js +0 -3
  159. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  160. package/esm/form/Button/__stories__/Primary.js +0 -3
  161. package/esm/form/Button/__stories__/Secondary.js +0 -3
  162. package/esm/form/Button/__stories__/WithVariantLink.js +0 -4
  163. package/esm/form/Checkbox/__stories__/WithHint.js +1 -1
  164. package/esm/form/DateInputContainer/__stories__/Default.js +1 -1
  165. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  166. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  167. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  168. package/esm/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  169. package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  170. package/esm/form/ErrorMessage/__stories__/Default.js +11 -8
  171. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  172. package/esm/form/FileUpload/__stories__/Default.js +2 -2
  173. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  174. package/esm/form/RadioContainer/RadioContainer.stories.js +1 -0
  175. package/esm/form/RadioContainer/__stories__/Default.js +7 -4
  176. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  177. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  178. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  179. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  180. package/esm/form/RadioContainer/__stories__/WithHints.js +1 -1
  181. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  182. package/esm/form/TextInput/__stories__/FixedWidths.js +8 -18
  183. package/esm/form/TextInput/__stories__/FluidWidths.js +8 -18
  184. package/esm/govgr/Footer/Copyright.js +3 -3
  185. package/esm/icons/Icon/index.js +2 -2
  186. package/esm/icons/ImageLogo/index.js +3 -0
  187. package/esm/icons/ImageLogoSet/index.js +3 -0
  188. package/esm/index.js +1 -1
  189. package/esm/layouts/Grid/Grid.stories.js +1 -0
  190. package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
  191. package/esm/navigation/Link/index.js +1 -1
  192. package/esm/navigation/NavList/NavList.stories.js +5 -1
  193. package/esm/navigation/NavList/NavList.stories.playwright.json +5 -5
  194. package/esm/navigation/NavList/__stories__/Default.js +20 -54
  195. package/esm/navigation/NavList/__stories__/NavVertical.js +37 -0
  196. package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  197. package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  198. package/esm/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  199. package/esm/navigation/Tabs/__stories__/Default.js +15 -4
  200. package/esm/registry.js +8 -2
  201. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  202. package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
  203. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -1
  204. package/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  205. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
  206. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
  207. package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
  208. package/form/Button/__stories__/CallToActionButton.js +1 -4
  209. package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
  210. package/form/Button/__stories__/GroupingButtons.js +0 -3
  211. package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
  212. package/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  213. package/form/Button/__stories__/Primary.d.ts +0 -3
  214. package/form/Button/__stories__/Primary.js +0 -3
  215. package/form/Button/__stories__/Secondary.d.ts +0 -3
  216. package/form/Button/__stories__/Secondary.js +0 -3
  217. package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
  218. package/form/Button/__stories__/WithVariantLink.js +0 -3
  219. package/form/Checkbox/__stories__/WithHint.js +1 -1
  220. package/form/DateInputContainer/__stories__/Default.js +1 -1
  221. package/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  222. package/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  223. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  224. package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
  225. package/form/ErrorMessage/ErrorMessage.stories.js +28 -0
  226. package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
  227. package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
  228. package/form/ErrorMessage/__stories__/Default.js +11 -8
  229. package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
  230. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
  231. package/form/FileUpload/__stories__/Default.js +2 -2
  232. package/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  233. package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
  234. package/form/RadioContainer/RadioContainer.stories.js +14 -0
  235. package/form/RadioContainer/__stories__/Default.js +7 -4
  236. package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
  237. package/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  238. package/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  239. package/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  240. package/form/RadioContainer/__stories__/WithHints.js +1 -1
  241. package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
  242. package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
  243. package/form/TextInput/__stories__/FixedWidths.js +8 -18
  244. package/form/TextInput/__stories__/FluidWidths.js +8 -18
  245. package/govgr/Footer/Copyright.js +3 -3
  246. package/icons/Icon/index.d.ts +2 -2
  247. package/icons/Icon/index.js +1 -1
  248. package/icons/ImageLogo/index.d.ts +3 -0
  249. package/icons/ImageLogo/index.js +30 -0
  250. package/icons/ImageLogoSet/index.d.ts +3 -0
  251. package/icons/ImageLogoSet/index.js +30 -0
  252. package/layouts/Basic/Content/index.d.ts +1 -1
  253. package/layouts/Basic/Side/index.d.ts +1 -1
  254. package/layouts/Grid/Grid.stories.d.ts +1 -0
  255. package/layouts/Grid/Grid.stories.js +14 -0
  256. package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -0
  257. package/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
  258. package/navigation/Link/index.d.ts +1 -1
  259. package/navigation/Link/index.js +12 -13
  260. package/navigation/NavList/NavList.stories.d.ts +4 -0
  261. package/navigation/NavList/NavList.stories.js +56 -0
  262. package/navigation/NavList/NavList.stories.playwright.json +5 -5
  263. package/navigation/NavList/__stories__/Default.js +19 -60
  264. package/navigation/NavList/__stories__/NavVertical.d.ts +2 -0
  265. package/navigation/NavList/__stories__/NavVertical.js +53 -0
  266. package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +2 -0
  267. package/navigation/NavList/__stories__/NavVerticalWithTitle.js +59 -0
  268. package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +2 -0
  269. package/navigation/NavList/__stories__/WithBurgerIcon.js +82 -0
  270. package/navigation/NavList/__stories__/WithSubMenu.d.ts +2 -0
  271. package/navigation/NavList/__stories__/WithSubMenu.js +96 -0
  272. package/navigation/Tabs/__stories__/Default.js +16 -4
  273. package/package.json +3 -3
  274. package/registry.d.ts +6 -2
  275. package/registry.js +11 -2
  276. package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
  277. package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
  278. package/src/app/Footer/__stories__/Default.tsx +1 -1
  279. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +14 -18
  280. package/src/app/Footer/__stories__/FooterWithLink.tsx +5 -7
  281. package/src/app/Footer/__stories__/FooterWithLogo.tsx +11 -13
  282. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +58 -58
  283. package/src/app/Masthead/Masthead.stories.js +2 -0
  284. package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
  285. package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
  286. package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
  287. package/src/content/Blockquote/Blockquote.stories.js +1 -0
  288. package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
  289. package/src/content/Card/Card.stories.js +2 -0
  290. package/src/content/Card/__stories__/Default.tsx +1 -1
  291. package/src/content/Card/__stories__/Dense.tsx +24 -0
  292. package/src/content/Card/__stories__/WithLink.tsx +25 -0
  293. package/src/content/StepNav/StepNav.stories.js +1 -0
  294. package/src/content/StepNav/__stories__/Dense.tsx +261 -0
  295. package/src/content/SummaryList/SummaryList.stories.js +1 -0
  296. package/src/content/SummaryList/__stories__/Default.tsx +30 -21
  297. package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
  298. package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
  299. package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
  300. package/src/content/Table/__stories__/RowColors.tsx +5 -5
  301. package/src/content/TaskList/TaskList.stories.js +1 -0
  302. package/src/content/TaskList/__stories__/Dense.tsx +118 -0
  303. package/src/content/Timeline/Timeline.stories.js +1 -0
  304. package/src/content/Timeline/__stories__/Default.tsx +2 -2
  305. package/src/content/Timeline/__stories__/Dense.tsx +196 -0
  306. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  307. package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
  308. package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
  309. package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
  310. package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
  311. package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
  312. package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
  313. package/src/form/Button/__stories__/Primary.tsx +1 -3
  314. package/src/form/Button/__stories__/Secondary.tsx +0 -3
  315. package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
  316. package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
  317. package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
  318. package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
  319. package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
  320. package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
  321. package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
  322. package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
  323. package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
  324. package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
  325. package/src/form/FileUpload/__stories__/Default.tsx +2 -2
  326. package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
  327. package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
  328. package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
  329. package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +5 -5
  330. package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
  331. package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
  332. package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
  333. package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
  334. package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
  335. package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
  336. package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -2
  337. package/src/govgr/Footer/Copyright.tsx +11 -11
  338. package/src/icons/Icon/index.tsx +2 -2
  339. package/src/icons/ImageLogo/index.tsx +5 -0
  340. package/src/icons/ImageLogoSet/index.tsx +4 -0
  341. package/src/layouts/Grid/Grid.stories.js +1 -0
  342. package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +43 -0
  343. package/src/navigation/Link/index.tsx +1 -1
  344. package/src/navigation/NavList/NavList.stories.js +4 -0
  345. package/src/navigation/NavList/NavList.stories.playwright.json +5 -5
  346. package/src/navigation/NavList/__stories__/Default.tsx +16 -80
  347. package/src/navigation/NavList/__stories__/NavVertical.tsx +36 -0
  348. package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +40 -0
  349. package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +49 -0
  350. package/src/navigation/NavList/__stories__/WithSubMenu.tsx +101 -0
  351. package/src/navigation/Tabs/__stories__/Default.tsx +14 -9
  352. package/src/registry.js +10 -4
  353. /package/es/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  354. /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  355. /package/esm/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  356. /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  357. /package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +0 -0
  358. /package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  359. /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  360. /package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  361. /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
@@ -22,64 +22,64 @@ export const FooterWithSecondaryNavigation = () => {
22
22
  return (
23
23
  <Footer>
24
24
  <FooterContainer>
25
- <FooterNavigation>
26
- <FooterNavigationSection aria-label='footer navigation section'>
27
- <FooterHeading>Επιλογές</FooterHeading>
28
- <FooterList columns={2}>
29
- <FooterListItem>
30
- <FooterLink href="#">Υπηρεσίες</FooterLink>
31
- </FooterListItem>
32
- <FooterListItem>
33
- <FooterLink href="#">Φορείς</FooterLink>
34
- </FooterListItem>
35
- <FooterListItem>
36
- <FooterLink href="#">Αρχές</FooterLink>
37
- </FooterListItem>
38
- <FooterListItem>
39
- <FooterLink href="#">Σχετικά με το gov.gr</FooterLink>
40
- </FooterListItem>
41
- <FooterListItem>
42
- <FooterLink href="#">Όροι χρήσης</FooterLink>
43
- </FooterListItem>
44
- <FooterListItem>
45
- <FooterLink href="#">Ιδιωτικό απόρρητο </FooterLink>
46
- </FooterListItem>
47
- </FooterList>
48
- </FooterNavigationSection>
49
- <FooterNavigationSection aria-label='footer navigation section'>
50
- <FooterHeading>Εξωτερικές Υπηρεσίες</FooterHeading>
51
- <FooterList>
52
- <FooterListItem>
53
- <FooterLink href="#">ΕΜΔΔ - ΜΙΤΟΣ</FooterLink>
54
- </FooterListItem>
55
- <FooterListItem>
56
- <FooterLink href="#">EUGO</FooterLink>
57
- </FooterListItem>
58
- </FooterList>
59
- </FooterNavigationSection>
60
- </FooterNavigation>
61
- <SectionBreak visible={false} size="md" />
62
- <FooterInfo>
63
- <FooterInfoSection grow aria-label='footer info section'>
64
- <FooterContent>
65
- <Copyright>
66
- Υλοποίηση από το{' '}
67
- <Link href="https://grnet.gr/" target="_blank">
68
- ΕΔΥΤΕ
69
- <VisuallyHidden>{' '}(ανοίγει σε καινούρια καρτέλα)</VisuallyHidden>
70
- </Link>{' '}
71
- για το{' '}
72
- <Link href="https://mindigital.gr/" target="_blank">
73
- Υπουργείο Ψηφιακής Διακυβέρνησης
74
- <VisuallyHidden>{' '}(ανοίγει σε καινούρια καρτέλα)</VisuallyHidden>
75
- </Link>
76
- </Copyright>
77
- </FooterContent>
78
- </FooterInfoSection>
79
- <FooterInfoSection>
80
- <HellenicRepublicLogo></HellenicRepublicLogo>
81
- </FooterInfoSection>
82
- </FooterInfo>
25
+ <FooterNavigation>
26
+ <FooterNavigationSection aria-label='footer navigation section'>
27
+ <FooterHeading>Επιλογές</FooterHeading>
28
+ <FooterList columns={2}>
29
+ <FooterListItem>
30
+ <FooterLink href="#">Υπηρεσίες</FooterLink>
31
+ </FooterListItem>
32
+ <FooterListItem>
33
+ <FooterLink href="#">Φορείς</FooterLink>
34
+ </FooterListItem>
35
+ <FooterListItem>
36
+ <FooterLink href="#">Αρχές</FooterLink>
37
+ </FooterListItem>
38
+ <FooterListItem>
39
+ <FooterLink href="#">Σχετικά με το gov.gr</FooterLink>
40
+ </FooterListItem>
41
+ <FooterListItem>
42
+ <FooterLink href="#">Όροι χρήσης</FooterLink>
43
+ </FooterListItem>
44
+ <FooterListItem>
45
+ <FooterLink href="#">Ιδιωτικό απόρρητο</FooterLink>
46
+ </FooterListItem>
47
+ </FooterList>
48
+ </FooterNavigationSection>
49
+ <FooterNavigationSection aria-label='footer navigation section'>
50
+ <FooterHeading>Εξωτερικές Υπηρεσίες</FooterHeading>
51
+ <FooterList>
52
+ <FooterListItem>
53
+ <FooterLink href="#">ΕΜΔΔ - ΜΙΤΟΣ</FooterLink>
54
+ </FooterListItem>
55
+ <FooterListItem>
56
+ <FooterLink href="#">EUGO</FooterLink>
57
+ </FooterListItem>
58
+ </FooterList>
59
+ </FooterNavigationSection>
60
+ </FooterNavigation>
61
+ <SectionBreak visible={false} size="md" />
62
+ <FooterInfo>
63
+ <FooterInfoSection grow aria-label='footer info section'>
64
+ <FooterContent>
65
+ <Copyright>
66
+ {`Υλοποίηση από το `}
67
+ <Link href="https://grnet.gr/" target="_blank">
68
+ ΕΔΥΤΕ
69
+ <VisuallyHidden>{` (ανοίγει σε καινούρια καρτέλα)`}</VisuallyHidden>
70
+ </Link>
71
+ {` για το `}
72
+ <Link href="https://mindigital.gr/" target="_blank">
73
+ Υπουργείο Ψηφιακής Διακυβέρνησης
74
+ <VisuallyHidden>{` (ανοίγει σε καινούρια καρτέλα)`}</VisuallyHidden>
75
+ </Link>
76
+ </Copyright>
77
+ </FooterContent>
78
+ </FooterInfoSection>
79
+ <FooterInfoSection>
80
+ <HellenicRepublicLogo></HellenicRepublicLogo>
81
+ </FooterInfoSection>
82
+ </FooterInfo>
83
83
  </FooterContainer>
84
84
  </Footer>
85
85
  );
@@ -9,3 +9,5 @@ export default {
9
9
  displayName: 'Masthead',
10
10
  };
11
11
  export * from '@digigov/ui/app/Masthead/__stories__/Default';
12
+ export * from '@digigov/ui/app/Masthead/__stories__/WithLogo';
13
+ export * from '@digigov/ui/app/Masthead/__stories__/WithElements';
@@ -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
  ],
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+
3
+ import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
4
+ import { Container } from '@digigov/ui/layouts/Basic/Container';
5
+ import { Main } from '@digigov/ui/layouts/Basic/Main';
6
+ import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/layouts/Basic/Masthead';
7
+ import { Heading } from '@digigov/ui/typography/Heading';
8
+ import Hint from '@digigov/ui/typography/Hint';
9
+ import mineduLogo from '@digigov/ui/govgr/images/minedu-logo-base64';
10
+ import Link from '@digigov/ui/navigation/Link';
11
+
12
+ export const WithElements = () => (
13
+ <Masthead>
14
+ <Container>
15
+ <Main>
16
+ <MastheadLogo src={mineduLogo} alt="minedu logo" />
17
+ <Heading>Σχεδιάστε την υπηρεσία σας, με το στυλ του GOV.GR</Heading>
18
+ <MastheadBody>
19
+ Χρησιμοποιείστε αυτόν τον οδηγό ώστε να φτιάξετε μια υπηρεσία συνεπή
20
+ στα πρότυπα του GOV.GR. Αποκτήστε γνώση από την έρευνα και την
21
+ εμπειρία άλλων ομάδων και αποφύγετε την επανάληψη εργασιών που έχουν
22
+ ήδη γίνει. <Link>Προτείνετε βελτιώσεις.</Link>
23
+ </MastheadBody>
24
+ <Hint>Τελευταία ενημέρωση: 08/12/2021</Hint>
25
+ <CallToAction href="#">Ξεκινήστε εδώ</CallToAction>
26
+ </Main>
27
+ </Container>
28
+ </Masthead>
29
+ );
30
+
31
+ export default WithElements;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+
3
+ import { CallToAction } from '@digigov/ui/form/Button/CallToAction';
4
+ import { Container } from '@digigov/ui/layouts/Basic/Container';
5
+ import { Main } from '@digigov/ui/layouts/Basic/Main';
6
+ import { Masthead, MastheadBody, MastheadLogo } from '@digigov/ui/layouts/Basic/Masthead';
7
+ import { Heading } from '@digigov/ui/typography/Heading';
8
+ import logo3 from '@digigov/ui/govgr/images/minedu-logo-base64';
9
+
10
+ export const WithLogo = () => (
11
+ <Masthead>
12
+ <Container>
13
+ <Main>
14
+ <MastheadLogo src={logo3} alt="minedu logo" />
15
+ <Heading>Σχεδιάστε την υπηρεσία σας, με το στυλ του GOV.GR</Heading>
16
+ <MastheadBody>
17
+ Χρησιμοποιείστε αυτόν τον οδηγό ώστε να φτιάξετε μια υπηρεσία συνεπή
18
+ στα πρότυπα του GOV.GR. Αποκτήστε γνώση από την έρευνα και την
19
+ εμπειρία άλλων ομάδων και αποφύγετε την επανάληψη εργασιών που έχουν
20
+ ήδη γίνει.
21
+ </MastheadBody>
22
+ <CallToAction href="#">Ξεκινήστε εδώ</CallToAction>
23
+ </Main>
24
+ </Container>
25
+ </Masthead>
26
+ );
27
+
28
+ export default WithLogo;
@@ -8,3 +8,4 @@ export default {
8
8
  displayName: 'Blockquote',
9
9
  };
10
10
  export * from '@digigov/ui/content/Blockquote/__stories__/Default';
11
+ export * from '@digigov/ui/content/Blockquote/__stories__/Dense';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Blockquote } from '@digigov/ui/content/Blockquote';
3
+
4
+ export const Dense = () => (
5
+ <Blockquote dense>
6
+ Η διαδικασία έκδοσης του διαβατηρίου σας μπορεί να διαρκέσει εώς 10 μέρες,
7
+ εφόσον η αίτηση σας δεν περιέχει λάθη.
8
+ </Blockquote>
9
+ );
10
+
11
+ export default Dense;
@@ -17,3 +17,5 @@ export * from '@digigov/ui/content/Card/__stories__/WithDivider';
17
17
  export * from '@digigov/ui/content/Card/__stories__/WithClickableContent';
18
18
  export * from '@digigov/ui/content/Card/__stories__/WithClickableLink';
19
19
  export * from '@digigov/ui/content/Card/__stories__/WithGroupButton';
20
+ export * from '@digigov/ui/content/Card/__stories__/WithLink';
21
+ export * from '@digigov/ui/content/Card/__stories__/Dense';
@@ -16,7 +16,7 @@ export const Default = () => (
16
16
  αλιευτική σας δραστηριότητα.
17
17
  </CardContent>
18
18
  <CardAction>
19
- <Button>Συνέχεια</Button>
19
+ <Button>Είσοδος</Button>
20
20
  </CardAction>
21
21
  </Card>
22
22
  );
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+
3
+ import {
4
+ Card,
5
+ CardAction,
6
+ CardHeading,
7
+ CardContent,
8
+ } from '@digigov/ui/content/Card';
9
+ import { Button } from '@digigov/ui/form/Button';
10
+
11
+ export const Dense = () => (
12
+ <Card variant="border" borderColor="dark" dense>
13
+ <CardHeading>Γεωργία και κτηνοτροφία</CardHeading>
14
+ <CardContent>
15
+ Διαδικασίες, επιδοτήσεις και αποζημιώσεις για την γεωργική, κτηνοτροφική ή
16
+ αλιευτική σας δραστηριότητα.
17
+ </CardContent>
18
+ <CardAction>
19
+ <Button>Συνέχεια</Button>
20
+ </CardAction>
21
+ </Card>
22
+ );
23
+
24
+ export default Dense;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+
3
+ import {
4
+ Card,
5
+ CardHeading,
6
+ CardContent,
7
+ CardAction,
8
+ } from '@digigov/ui/content/Card';
9
+
10
+ import { Link } from '@digigov/ui/navigation/Link';
11
+
12
+ export const WithLink = () => (
13
+ <Card>
14
+ <CardHeading>Γεωργία και κτηνοτροφία</CardHeading>
15
+ <CardContent>
16
+ Διαδικασίες, επιδοτήσεις και αποζημιώσεις για την γεωργική, κτηνοτροφική ή
17
+ αλιευτική σας δραστηριότητα.
18
+ </CardContent>
19
+ <CardAction>
20
+ <Link>Είσοδος</Link>
21
+ </CardAction>
22
+ </Card>
23
+ );
24
+
25
+ export default WithLink;
@@ -10,3 +10,4 @@ export default {
10
10
  };
11
11
  export * from './__stories__/Default';
12
12
  export * from './__stories__/WithHints';
13
+ export * from './__stories__/Dense';
@@ -0,0 +1,261 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import {
3
+ StepNav,
4
+ StepNavCircleNumber,
5
+ StepNavControls,
6
+ StepNavList,
7
+ StepNavListItem,
8
+ StepNavAccordion,
9
+ StepNavAccordionContent,
10
+ StepNavAccordionSummary,
11
+ StepNavAccordionSummaryHeading,
12
+ StepNavAccordionHeadingTitle,
13
+ StepNavAccordionHeadingText,
14
+ } from '@digigov/ui/content/StepNav';
15
+ import { Button, ButtonGroup } from '@digigov/ui/form/Button';
16
+ import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
17
+ import {
18
+ SummaryList,
19
+ SummaryListItem,
20
+ SummaryListItemAction,
21
+ SummaryListItemKey,
22
+ SummaryListItemValue,
23
+ } from '@digigov/ui/content/SummaryList';
24
+
25
+ const data = [
26
+ {
27
+ title: 'Απάντηση',
28
+ codename: '(KEP-APA)',
29
+ date: '7 Απριλίου 2023, 12:32μ.μ.',
30
+ details: [
31
+ {
32
+ name: 'Ημερομηνία',
33
+ value: '7 Απριλίου 2023, 12:32μ.μ.',
34
+ },
35
+ {
36
+ name: 'Χειριστής',
37
+ value: 'Καλλιόπη Παπαδοπούλου',
38
+ actions: ['Ανάθεση'],
39
+ },
40
+ {
41
+ name: 'Κωδικός επαλήθευσης',
42
+ value: '637283494',
43
+ },
44
+ {
45
+ name: 'Κατάσταση',
46
+ value: 'Εισερχόμενη',
47
+ actions: ['Αλλαγή'],
48
+ },
49
+ ],
50
+ },
51
+ {
52
+ title: 'Συμπληρωματικά έγγραφα ',
53
+ codename: '(MORE-DOCS)',
54
+ date: '5 Απριλίου 2023, 8:32π.μ.',
55
+ details: [
56
+ {
57
+ name: 'Ημερομηνία',
58
+ value: '7 Απριλίου 2023, 12:32μ.μ.',
59
+ },
60
+ {
61
+ name: 'Χειριστής',
62
+ value: 'Μαρία Φλούπη',
63
+ actions: ['Ανάθεση'],
64
+ },
65
+ {
66
+ name: 'Κωδικός επαλήθευσης',
67
+ value: '637283494',
68
+ },
69
+ {
70
+ name: 'Κατάσταση',
71
+ value: 'Εισερχόμενη',
72
+ actions: ['Αλλαγή'],
73
+ },
74
+ ],
75
+ },
76
+ {
77
+ title: 'Αίτηση για συμπληρωματικά έγγραφα',
78
+ codename: '(MORE-DOCS-REQUEST)',
79
+ date: '5 Απριλίου 2023, 8:32π.μ.',
80
+ details: [
81
+ {
82
+ name: 'Ημερομηνία',
83
+ value: '5 Απριλίου 2023, 8:32π.μ.',
84
+ },
85
+ {
86
+ name: 'Χειριστής',
87
+ value: 'Μαρία Φλούπη',
88
+ actions: ['Ανάθεση'],
89
+ },
90
+ {
91
+ name: 'Κωδικός επαλήθευσης',
92
+ value: '974256',
93
+ },
94
+ {
95
+ name: 'Κατάσταση',
96
+ value: 'Εισερχόμενη',
97
+ actions: ['Αλλαγή'],
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ title: 'Αίτηση Βεβαίωσης Μόνιμης Κατοικίας',
103
+ codename: '(PERMRES-FOREIS)',
104
+ date: '3 Απριλίου 2023, 5:42μ.μ.',
105
+ actions: [
106
+ {
107
+ label: 'Απάντηση',
108
+ },
109
+ {
110
+ label: 'Αίτημα για συμπληρωματικά έγγραφα',
111
+ },
112
+ ],
113
+ details: [
114
+ {
115
+ name: 'Ημερομηνία',
116
+ value: '3 Απριλίου 2023, 5:42μ.μ.',
117
+ },
118
+ {
119
+ name: 'Χειριστής',
120
+ value: 'Μαρία Φλούπη',
121
+ actions: ['Ανάθεση'],
122
+ },
123
+ {
124
+ name: 'Κωδικός επαλήθευσης',
125
+ value: '475747',
126
+ },
127
+ {
128
+ name: 'Κατάσταση',
129
+ value: 'Εισερχόμενη',
130
+ actions: ['Αλλαγή'],
131
+ },
132
+ ],
133
+ },
134
+ ];
135
+
136
+ export const Dense = () => {
137
+ const [open, setOpen] = useState<boolean>(false);
138
+ const [openItem, setOpenItem] = useState(
139
+ Array<boolean>(data.length).fill(false)
140
+ );
141
+ useEffect(() => {
142
+ const stateArray: boolean[] = [];
143
+ if (open === false) {
144
+ openItem.map(() => {
145
+ stateArray.push(false);
146
+ });
147
+ setOpenItem(stateArray);
148
+ } else {
149
+ openItem.map(() => {
150
+ stateArray.push(true);
151
+ });
152
+ setOpenItem(stateArray);
153
+ }
154
+ }, [open]);
155
+
156
+ function openCloseItem(index): void {
157
+ const statusOpenItem = [...openItem];
158
+ statusOpenItem[index] = !statusOpenItem[index];
159
+ setOpenItem(statusOpenItem);
160
+ }
161
+ function openCloseAll(): void {
162
+ setOpen(!open);
163
+ }
164
+ return (
165
+ <StepNav dense>
166
+ <StepNavControls>
167
+ <Button
168
+ variant="link"
169
+ onClick={() => {
170
+ openCloseAll();
171
+ }}
172
+ >
173
+ {open === false ? 'Εμφάνιση όλων' : 'Απόκρυψη όλων'}
174
+ </Button>
175
+ </StepNavControls>
176
+ <StepNavList>
177
+ {data &&
178
+ data.map((field, index) => {
179
+ return (
180
+ <StepNavListItem key={index}>
181
+ <StepNavAccordion open={open}>
182
+ <StepNavAccordionSummary
183
+ onClick={() => {
184
+ openCloseItem(index);
185
+ }}
186
+ >
187
+ <StepNavAccordionSummaryHeading aria-controls="content1">
188
+ <StepNavCircleNumber border={false}></StepNavCircleNumber>
189
+ {index === 1 ? (
190
+ <StepNavCircleNumber border={false}>
191
+ <VisuallyHidden>Βήμα</VisuallyHidden>
192
+ και
193
+ </StepNavCircleNumber>
194
+ ) : (
195
+ <StepNavCircleNumber>
196
+ <VisuallyHidden>Βήμα</VisuallyHidden>
197
+ {index > 1 ? index : index + 1}
198
+ </StepNavCircleNumber>
199
+ )}
200
+ <StepNavAccordionHeadingTitle>
201
+ <StepNavAccordionHeadingText>
202
+ {field.title}
203
+ {field.codename && (
204
+ <>
205
+ {' - '} {field.codename}
206
+ </>
207
+ )}
208
+ </StepNavAccordionHeadingText>
209
+ </StepNavAccordionHeadingTitle>
210
+ </StepNavAccordionSummaryHeading>
211
+ </StepNavAccordionSummary>
212
+ <StepNavAccordionContent id="content1">
213
+ <ButtonGroup>
214
+ {(field.actions || []).map((action, subIndex) => (
215
+ <Button color="primary" key={subIndex}>
216
+ {action.label}
217
+ </Button>
218
+ ))}
219
+ <Button color="secondary">Προβολή εγγράφου</Button>
220
+ </ButtonGroup>
221
+ {field.details && (
222
+ <SummaryList>
223
+ {field.details.map((field, index) => {
224
+ return (
225
+ <SummaryListItem key={index}>
226
+ <SummaryListItemKey>
227
+ {field.name}
228
+ </SummaryListItemKey>
229
+ <SummaryListItemValue>
230
+ {field.value}
231
+ </SummaryListItemValue>
232
+ {field.actions && (
233
+ <SummaryListItemAction>
234
+ <ButtonGroup>
235
+ {field.actions &&
236
+ field.actions.map((action, subIndex) => {
237
+ return (
238
+ <Button key={subIndex} variant="link">
239
+ {action}
240
+ </Button>
241
+ );
242
+ })}
243
+ </ButtonGroup>
244
+ </SummaryListItemAction>
245
+ )}
246
+ </SummaryListItem>
247
+ );
248
+ })}
249
+ </SummaryList>
250
+ )}
251
+ </StepNavAccordionContent>
252
+ </StepNavAccordion>
253
+ </StepNavListItem>
254
+ );
255
+ })}
256
+ </StepNavList>
257
+ </StepNav>
258
+ );
259
+ };
260
+
261
+ export default Dense;
@@ -10,6 +10,7 @@ export default {
10
10
  };
11
11
  export * from './__stories__/Default';
12
12
  export * from './__stories__/WithActions';
13
+ export * from './__stories__/WithoutActions';
13
14
  export * from './__stories__/WithoutBorders';
14
15
  export * from './__stories__/WithKeyAndAction';
15
16
  export * from './__stories__/RowVariations';
@@ -10,28 +10,37 @@ import {
10
10
 
11
11
  import { Link } from '@digigov/ui/navigation/Link';
12
12
  import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
13
+
13
14
  export const Default = () => (
14
- <>
15
- <SummaryList>
16
- <SummaryListItem>
17
- <SummaryListItemKey>Όνομα</SummaryListItemKey>
18
- <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
19
- </SummaryListItem>
20
- <SummaryListItem>
21
- <SummaryListItemKey>Διεύθυνση</SummaryListItemKey>
22
- <SummaryListItemValue>Συντάγματος 15, Αθήνα</SummaryListItemValue>
23
- <SummaryListItemAction>
24
- <Link href="#">
25
- Αλλαγή<VisuallyHidden>Διεύθυνσης</VisuallyHidden>
26
- </Link>
27
- </SummaryListItemAction>
28
- </SummaryListItem>
29
- <SummaryListItem>
30
- <SummaryListItemKey>Τηλέφωνο</SummaryListItemKey>
31
- <SummaryListItemValue>6941234567</SummaryListItemValue>
32
- </SummaryListItem>
33
- </SummaryList>
34
- </>
15
+ <SummaryList>
16
+ <SummaryListItem>
17
+ <SummaryListItemKey>Όνομα</SummaryListItemKey>
18
+ <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
19
+ <SummaryListItemAction>
20
+ <Link href="#">
21
+ Αλλαγή<VisuallyHidden>Διεύθυνσης</VisuallyHidden>
22
+ </Link>
23
+ </SummaryListItemAction>
24
+ </SummaryListItem>
25
+ <SummaryListItem>
26
+ <SummaryListItemKey>Ημερομηνία Γέννησης</SummaryListItemKey>
27
+ <SummaryListItemValue>11 Μαϊου 1990</SummaryListItemValue>
28
+ <SummaryListItemAction>
29
+ <Link href="#">
30
+ Αλλαγή<VisuallyHidden>Διεύθυνσης</VisuallyHidden>
31
+ </Link>
32
+ </SummaryListItemAction>
33
+ </SummaryListItem>
34
+ <SummaryListItem>
35
+ <SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
36
+ <SummaryListItemValue>6941234567</SummaryListItemValue>
37
+ <SummaryListItemAction>
38
+ <Link href="#">
39
+ Αλλαγή<VisuallyHidden>Διεύθυνσης</VisuallyHidden>
40
+ </Link>
41
+ </SummaryListItemAction>
42
+ </SummaryListItem>
43
+ </SummaryList>
35
44
  );
36
45
 
37
46
  export default Default;