@digigov/ui 1.0.0-266e80f3 → 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 (325) 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/navigation/NavList/NavList.stories.js +5 -1
  108. package/es/navigation/NavList/NavList.stories.playwright.json +5 -5
  109. package/es/navigation/NavList/__stories__/Default.js +20 -54
  110. package/es/navigation/NavList/__stories__/NavVertical.js +37 -0
  111. package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  112. package/es/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  113. package/es/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  114. package/es/navigation/Tabs/__stories__/Default.js +15 -4
  115. package/es/registry.js +4 -2
  116. package/esm/app/BannerContainer/BannerContainer.stories.js +10 -0
  117. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  118. package/esm/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  119. package/esm/app/Footer/__stories__/FooterWithLink.js +16 -12
  120. package/esm/app/Footer/__stories__/FooterWithLogo.js +17 -15
  121. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  122. package/esm/app/Masthead/Masthead.stories.js +3 -1
  123. package/esm/app/Masthead/__stories__/WithElements.js +21 -0
  124. package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
  125. package/esm/content/Blockquote/Blockquote.stories.js +2 -1
  126. package/esm/content/Blockquote/__stories__/Dense.js +11 -0
  127. package/esm/content/Card/Card.stories.js +3 -1
  128. package/esm/content/Card/__stories__/Default.js +1 -1
  129. package/esm/content/Card/__stories__/Dense.js +14 -0
  130. package/esm/content/Card/__stories__/WithLink.js +10 -0
  131. package/esm/content/StepNav/StepNav.stories.js +2 -1
  132. package/esm/content/StepNav/__stories__/Dense.js +180 -0
  133. package/esm/content/SummaryList/SummaryList.stories.js +1 -0
  134. package/esm/content/SummaryList/__stories__/Default.js +7 -3
  135. package/esm/content/SummaryList/__stories__/WithActions.js +5 -5
  136. package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
  137. package/esm/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  138. package/esm/content/Table/__stories__/RowColors.js +5 -5
  139. package/esm/content/TaskList/TaskList.stories.js +2 -1
  140. package/esm/content/TaskList/__stories__/Dense.js +76 -0
  141. package/esm/content/Timeline/Timeline.stories.js +2 -1
  142. package/esm/content/Timeline/__stories__/Default.js +2 -4
  143. package/esm/content/Timeline/__stories__/Dense.js +124 -0
  144. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  145. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  146. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  147. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  148. package/esm/form/Button/__stories__/CallToActionButton.js +1 -4
  149. package/esm/form/Button/__stories__/GroupingButtons.js +0 -3
  150. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  151. package/esm/form/Button/__stories__/Primary.js +0 -3
  152. package/esm/form/Button/__stories__/Secondary.js +0 -3
  153. package/esm/form/Button/__stories__/WithVariantLink.js +0 -4
  154. package/esm/form/Checkbox/__stories__/WithHint.js +1 -1
  155. package/esm/form/DateInputContainer/__stories__/Default.js +1 -1
  156. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  157. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  158. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  159. package/esm/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  160. package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  161. package/esm/form/ErrorMessage/__stories__/Default.js +11 -8
  162. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  163. package/esm/form/FileUpload/__stories__/Default.js +2 -2
  164. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  165. package/esm/form/RadioContainer/RadioContainer.stories.js +1 -0
  166. package/esm/form/RadioContainer/__stories__/Default.js +7 -4
  167. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  168. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  169. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  170. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  171. package/esm/form/RadioContainer/__stories__/WithHints.js +1 -1
  172. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  173. package/esm/form/TextInput/__stories__/FixedWidths.js +8 -18
  174. package/esm/form/TextInput/__stories__/FluidWidths.js +8 -18
  175. package/esm/govgr/Footer/Copyright.js +3 -3
  176. package/esm/index.js +1 -1
  177. package/esm/navigation/NavList/NavList.stories.js +5 -1
  178. package/esm/navigation/NavList/NavList.stories.playwright.json +5 -5
  179. package/esm/navigation/NavList/__stories__/Default.js +20 -54
  180. package/esm/navigation/NavList/__stories__/NavVertical.js +37 -0
  181. package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  182. package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  183. package/esm/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  184. package/esm/navigation/Tabs/__stories__/Default.js +15 -4
  185. package/esm/registry.js +4 -2
  186. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  187. package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
  188. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -1
  189. package/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  190. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
  191. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
  192. package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
  193. package/form/Button/__stories__/CallToActionButton.js +1 -4
  194. package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
  195. package/form/Button/__stories__/GroupingButtons.js +0 -3
  196. package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
  197. package/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  198. package/form/Button/__stories__/Primary.d.ts +0 -3
  199. package/form/Button/__stories__/Primary.js +0 -3
  200. package/form/Button/__stories__/Secondary.d.ts +0 -3
  201. package/form/Button/__stories__/Secondary.js +0 -3
  202. package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
  203. package/form/Button/__stories__/WithVariantLink.js +0 -3
  204. package/form/Checkbox/__stories__/WithHint.js +1 -1
  205. package/form/DateInputContainer/__stories__/Default.js +1 -1
  206. package/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  207. package/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  208. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  209. package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
  210. package/form/ErrorMessage/ErrorMessage.stories.js +28 -0
  211. package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
  212. package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
  213. package/form/ErrorMessage/__stories__/Default.js +11 -8
  214. package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
  215. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
  216. package/form/FileUpload/__stories__/Default.js +2 -2
  217. package/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  218. package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
  219. package/form/RadioContainer/RadioContainer.stories.js +14 -0
  220. package/form/RadioContainer/__stories__/Default.js +7 -4
  221. package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
  222. package/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  223. package/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  224. package/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  225. package/form/RadioContainer/__stories__/WithHints.js +1 -1
  226. package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
  227. package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
  228. package/form/TextInput/__stories__/FixedWidths.js +8 -18
  229. package/form/TextInput/__stories__/FluidWidths.js +8 -18
  230. package/govgr/Footer/Copyright.js +3 -3
  231. package/navigation/NavList/NavList.stories.d.ts +4 -0
  232. package/navigation/NavList/NavList.stories.js +56 -0
  233. package/navigation/NavList/NavList.stories.playwright.json +5 -5
  234. package/navigation/NavList/__stories__/Default.js +19 -60
  235. package/navigation/NavList/__stories__/NavVertical.d.ts +2 -0
  236. package/navigation/NavList/__stories__/NavVertical.js +53 -0
  237. package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +2 -0
  238. package/navigation/NavList/__stories__/NavVerticalWithTitle.js +59 -0
  239. package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +2 -0
  240. package/navigation/NavList/__stories__/WithBurgerIcon.js +82 -0
  241. package/navigation/NavList/__stories__/WithSubMenu.d.ts +2 -0
  242. package/navigation/NavList/__stories__/WithSubMenu.js +96 -0
  243. package/navigation/Tabs/__stories__/Default.js +16 -4
  244. package/package.json +3 -3
  245. package/registry.d.ts +4 -2
  246. package/registry.js +5 -2
  247. package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
  248. package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
  249. package/src/app/Footer/__stories__/Default.tsx +1 -1
  250. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +14 -18
  251. package/src/app/Footer/__stories__/FooterWithLink.tsx +5 -7
  252. package/src/app/Footer/__stories__/FooterWithLogo.tsx +11 -13
  253. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +58 -58
  254. package/src/app/Masthead/Masthead.stories.js +2 -0
  255. package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
  256. package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
  257. package/src/content/Blockquote/Blockquote.stories.js +1 -0
  258. package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
  259. package/src/content/Card/Card.stories.js +2 -0
  260. package/src/content/Card/__stories__/Default.tsx +1 -1
  261. package/src/content/Card/__stories__/Dense.tsx +24 -0
  262. package/src/content/Card/__stories__/WithLink.tsx +25 -0
  263. package/src/content/StepNav/StepNav.stories.js +1 -0
  264. package/src/content/StepNav/__stories__/Dense.tsx +261 -0
  265. package/src/content/SummaryList/SummaryList.stories.js +1 -0
  266. package/src/content/SummaryList/__stories__/Default.tsx +30 -21
  267. package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
  268. package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
  269. package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
  270. package/src/content/Table/__stories__/RowColors.tsx +5 -5
  271. package/src/content/TaskList/TaskList.stories.js +1 -0
  272. package/src/content/TaskList/__stories__/Dense.tsx +118 -0
  273. package/src/content/Timeline/Timeline.stories.js +1 -0
  274. package/src/content/Timeline/__stories__/Default.tsx +2 -2
  275. package/src/content/Timeline/__stories__/Dense.tsx +196 -0
  276. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  277. package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
  278. package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
  279. package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
  280. package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
  281. package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
  282. package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
  283. package/src/form/Button/__stories__/Primary.tsx +1 -3
  284. package/src/form/Button/__stories__/Secondary.tsx +0 -3
  285. package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
  286. package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
  287. package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
  288. package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
  289. package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
  290. package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
  291. package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
  292. package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
  293. package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
  294. package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
  295. package/src/form/FileUpload/__stories__/Default.tsx +2 -2
  296. package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
  297. package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
  298. package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
  299. package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +5 -5
  300. package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
  301. package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
  302. package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
  303. package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
  304. package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
  305. package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
  306. package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -2
  307. package/src/govgr/Footer/Copyright.tsx +11 -11
  308. package/src/navigation/NavList/NavList.stories.js +4 -0
  309. package/src/navigation/NavList/NavList.stories.playwright.json +5 -5
  310. package/src/navigation/NavList/__stories__/Default.tsx +16 -80
  311. package/src/navigation/NavList/__stories__/NavVertical.tsx +36 -0
  312. package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +40 -0
  313. package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +49 -0
  314. package/src/navigation/NavList/__stories__/WithSubMenu.tsx +101 -0
  315. package/src/navigation/Tabs/__stories__/Default.tsx +14 -9
  316. package/src/registry.js +6 -4
  317. /package/es/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  318. /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  319. /package/esm/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  320. /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  321. /package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +0 -0
  322. /package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  323. /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  324. /package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  325. /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
@@ -8,49 +8,45 @@ import {
8
8
  SummaryListItemValue,
9
9
  } from '@digigov/ui/content/SummaryList';
10
10
 
11
- import { ButtonGroup, Button } from '@digigov/ui/form/Button';
12
11
  import { Link } from '@digigov/ui/navigation/Link';
13
12
  import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
13
+ import Button, { ButtonGroup } from '@digigov/ui/form/Button';
14
14
 
15
- export const WithActions = () => {
16
- return (
17
- <>
18
- <SummaryList>
19
- <SummaryListItem>
20
- <SummaryListItemKey>Όνομα</SummaryListItemKey>
21
- <SummaryListItemValue> Γιώργος Παπαδόπουλος</SummaryListItemValue>
22
- <SummaryListItemAction>
23
- <Link href="#">
24
- Αλλαγή<VisuallyHidden>Ονόματος</VisuallyHidden>
25
- </Link>
26
- </SummaryListItemAction>
27
- </SummaryListItem>
28
- <SummaryListItem>
29
- <SummaryListItemKey>Διεύθυνση</SummaryListItemKey>
30
- <SummaryListItemValue>Συντάγματος 15, Αθήνα</SummaryListItemValue>
31
- <SummaryListItemAction>
32
- <Link href="#">
33
- Αλλαγή<VisuallyHidden>Διεύθυνσης</VisuallyHidden>
34
- </Link>
35
- </SummaryListItemAction>
36
- </SummaryListItem>
37
- <SummaryListItem>
38
- <SummaryListItemKey>Τηλέφωνο</SummaryListItemKey>
39
- <SummaryListItemValue>6941234567</SummaryListItemValue>
40
- <SummaryListItemAction>
41
- <ButtonGroup>
42
- <Button variant="link">
43
- Αλλαγή <VisuallyHidden>τηλεφώνου</VisuallyHidden>
44
- </Button>
45
- <Button variant="link">
46
- Διαγραφή <VisuallyHidden>τηλεφώνου</VisuallyHidden>
47
- </Button>
48
- </ButtonGroup>
49
- </SummaryListItemAction>
50
- </SummaryListItem>
51
- </SummaryList>
52
- </>
53
- );
54
- };
15
+ export const WithActions = () => (
16
+ <SummaryList>
17
+ <SummaryListItem>
18
+ <SummaryListItemKey>Όνομα</SummaryListItemKey>
19
+ <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
20
+ <SummaryListItemAction>
21
+ <Link href="#">
22
+ Αλλαγή<VisuallyHidden>διεύθυνσης</VisuallyHidden>
23
+ </Link>
24
+ </SummaryListItemAction>
25
+ </SummaryListItem>
26
+ <SummaryListItem>
27
+ <SummaryListItemKey>Ημερομηνία Γέννησης</SummaryListItemKey>
28
+ <SummaryListItemValue>11 Μαϊου 1990</SummaryListItemValue>
29
+ <SummaryListItemAction>
30
+ <Link href="#">
31
+ Αλλαγή<VisuallyHidden>ημερομηνίας</VisuallyHidden>
32
+ </Link>
33
+ </SummaryListItemAction>
34
+ </SummaryListItem>
35
+ <SummaryListItem>
36
+ <SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
37
+ <SummaryListItemValue>6941234567</SummaryListItemValue>
38
+ <SummaryListItemAction>
39
+ <ButtonGroup>
40
+ <Button variant="link">
41
+ Αλλαγή <VisuallyHidden>τηλεφώνου</VisuallyHidden>
42
+ </Button>
43
+ <Button variant="link">
44
+ Διαγραφή <VisuallyHidden>τηλεφώνου</VisuallyHidden>
45
+ </Button>
46
+ </ButtonGroup>
47
+ </SummaryListItemAction>
48
+ </SummaryListItem>
49
+ </SummaryList>
50
+ );
55
51
 
56
52
  export default WithActions;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+
3
+ import {
4
+ SummaryList,
5
+ SummaryListItem,
6
+ SummaryListItemKey,
7
+ SummaryListItemValue,
8
+ } from '@digigov/ui/content/SummaryList';
9
+
10
+ export const WithoutActions = () => (
11
+ <SummaryList>
12
+ <SummaryListItem>
13
+ <SummaryListItemKey>Όνομα</SummaryListItemKey>
14
+ <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
15
+ </SummaryListItem>
16
+ <SummaryListItem>
17
+ <SummaryListItemKey>Ημερομηνία Γέννησης</SummaryListItemKey>
18
+ <SummaryListItemValue>11 Μαϊου 1990</SummaryListItemValue>
19
+ </SummaryListItem>
20
+ <SummaryListItem>
21
+ <SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
22
+ <SummaryListItemValue>6941234567</SummaryListItemValue>
23
+ </SummaryListItem>
24
+ </SummaryList>
25
+ );
26
+
27
+ export default WithoutActions;
@@ -7,25 +7,39 @@ import {
7
7
  SummaryListItemKey,
8
8
  SummaryListItemValue,
9
9
  } from '@digigov/ui/content/SummaryList';
10
+ import VisuallyHidden from '@digigov/ui/utils/VisuallyHidden';
11
+ import Link from '@digigov/ui/navigation/Link';
10
12
 
11
13
  export const WithoutBorders = () => (
12
- <>
13
- <SummaryList border={false}>
14
- <SummaryListItem>
15
- <SummaryListItemKey>Όνομα</SummaryListItemKey>
16
- <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
17
- </SummaryListItem>
18
- <SummaryListItem>
19
- <SummaryListItemKey>Διεύθυνση</SummaryListItemKey>
20
- <SummaryListItemValue>Συντάγματος 15, Αθήνα</SummaryListItemValue>
21
- <SummaryListItemAction></SummaryListItemAction>
22
- </SummaryListItem>
23
- <SummaryListItem>
24
- <SummaryListItemKey>Τηλέφωνο</SummaryListItemKey>
25
- <SummaryListItemValue>6941234567</SummaryListItemValue>
26
- </SummaryListItem>
27
- </SummaryList>
28
- </>
14
+ <SummaryList border={false}>
15
+ <SummaryListItem>
16
+ <SummaryListItemKey>Όνομα</SummaryListItemKey>
17
+ <SummaryListItemValue>Γιώργος Παπαδόπουλος</SummaryListItemValue>
18
+ <SummaryListItemAction>
19
+ <Link href="#">
20
+ Αλλαγή<VisuallyHidden>διεύθυνσης</VisuallyHidden>
21
+ </Link>
22
+ </SummaryListItemAction>
23
+ </SummaryListItem>
24
+ <SummaryListItem>
25
+ <SummaryListItemKey>Ημερομηνία Γέννησης</SummaryListItemKey>
26
+ <SummaryListItemValue>11 Μαϊου 1990</SummaryListItemValue>
27
+ <SummaryListItemAction>
28
+ <Link href="#">
29
+ Αλλαγή<VisuallyHidden>ημερομηνίας</VisuallyHidden>
30
+ </Link>
31
+ </SummaryListItemAction>
32
+ </SummaryListItem>
33
+ <SummaryListItem>
34
+ <SummaryListItemKey>Τηλέφωνο επικοινωνίας</SummaryListItemKey>
35
+ <SummaryListItemValue>6941234567</SummaryListItemValue>
36
+ <SummaryListItemAction>
37
+ <Link href="#">
38
+ Αλλαγή<VisuallyHidden>τηλεφώνου</VisuallyHidden>
39
+ </Link>
40
+ </SummaryListItemAction>
41
+ </SummaryListItem>
42
+ </SummaryList>
29
43
  );
30
44
 
31
45
  export default WithoutBorders;
@@ -23,31 +23,31 @@ const data = {
23
23
  {
24
24
  date: '24-07-23 16:34',
25
25
  title: 'Ειδοποίηση',
26
- actions: 'λεπτομέρειες',
26
+ actions: 'Λεπτομέρειες',
27
27
  new: true,
28
28
  },
29
29
  {
30
30
  date: '24-07-23 12:41',
31
31
  title: 'Μήνυμα υπηρεσίας',
32
- actions: 'λεπτομέρειες',
32
+ actions: 'Λεπτομέρειες',
33
33
  new: true,
34
34
  },
35
35
  {
36
36
  date: '24-07-23 12:40',
37
37
  title: 'Μήνυμα από τον διαχειριστή',
38
- actions: 'λεπτομέρειες',
38
+ actions: 'Λεπτομέρειες',
39
39
  new: false,
40
40
  },
41
41
  {
42
42
  date: '23-07-23 15:14',
43
43
  title: 'Έχετε συνδεθεί',
44
- actions: 'λεπτομέρειες',
44
+ actions: 'Λεπτομέρειες',
45
45
  new: false,
46
46
  },
47
47
  {
48
48
  date: '23-07-23 13:25',
49
49
  title: 'Ο κωδικός άλλαξε',
50
- actions: 'λεπτομέρειες',
50
+ actions: 'Λεπτομέρειες',
51
51
  new: false,
52
52
  },
53
53
  ],
@@ -7,3 +7,4 @@ export default {
7
7
  displayName: 'TaskList',
8
8
  };
9
9
  export * from '@digigov/ui/content/TaskList/__stories__/Default';
10
+ export * from '@digigov/ui/content/TaskList/__stories__/Dense';
@@ -0,0 +1,118 @@
1
+ import React from 'react';
2
+
3
+ import {
4
+ SummaryList,
5
+ SummaryListItem,
6
+ SummaryListItemAction,
7
+ SummaryListItemKey,
8
+ } from '@digigov/ui/content/SummaryList';
9
+
10
+ import {
11
+ TaskList,
12
+ TaskListItem,
13
+ TaskListItemHeading,
14
+ TaskListItemContent,
15
+ TaskListItemTag,
16
+ } from '@digigov/ui/content/TaskList';
17
+ import { LinkBase } from '@digigov/ui/navigation/Link';
18
+
19
+ const fields = [
20
+ {
21
+ title: 'Έλεγχοι πριν ξεκινήσετε',
22
+ tasks: [
23
+ {
24
+ text: 'Ελέγξτε την καταλληλότητα',
25
+ status: 'Ολοκληρωθηκε',
26
+ },
27
+ {
28
+ text: 'Εμφάνιση δήλωσης',
29
+ status: 'Ολοκληρωθηκε',
30
+ },
31
+ ],
32
+ },
33
+ {
34
+ title: 'Προετοιμασία αίτησης',
35
+ tasks: [
36
+ {
37
+ text: 'Στοιχεία εταιρείας',
38
+ status: 'Ολοκληρωθηκε',
39
+ },
40
+ {
41
+ text: 'Στοιχεία επικοινωνίας',
42
+ status: 'Σε εξελιξη',
43
+ },
44
+ {
45
+ text: 'Λίστα αποδείξεων',
46
+ status: 'Δεν εχει ξεκινησει',
47
+ },
48
+ {
49
+ text: 'Παροχή οικονομικών στοιχείων',
50
+ status: 'Σε αναμονη',
51
+ },
52
+ {
53
+ text: 'Παροχή ιατρικών πληροφοριών',
54
+ status: 'Σε αναμονη',
55
+ },
56
+ ],
57
+ },
58
+ {
59
+ title: 'Αίτηση',
60
+ tasks: [
61
+ {
62
+ text: 'Υποβολή και πληρωμή',
63
+ status: 'Σε αναμονη',
64
+ },
65
+ ],
66
+ },
67
+ ];
68
+
69
+ export const Dense = () => (
70
+ <div>
71
+ <TaskList dense>
72
+ {fields &&
73
+ fields.map((field, index) => {
74
+ return (
75
+ <TaskListItem key={index}>
76
+ <TaskListItemHeading size="md">{`${index + 1}. ${field.title
77
+ }`}</TaskListItemHeading>
78
+ <TaskListItemContent>
79
+ <SummaryList>
80
+ {field.tasks.map((task, key) => {
81
+ let tagColor;
82
+ switch (task.status) {
83
+ case 'Ολοκληρωθηκε':
84
+ tagColor = 'info';
85
+ break;
86
+ case 'Σε εξελιξη':
87
+ tagColor = 'primary';
88
+ break;
89
+ case 'Δεν εχει ξεκινησει':
90
+ tagColor = 'secondary';
91
+ break;
92
+ case 'Σε αναμονη':
93
+ tagColor = 'secondary';
94
+ break;
95
+ }
96
+ return (
97
+ <SummaryListItem key={key}>
98
+ <SummaryListItemKey>
99
+ <LinkBase>{task.text}</LinkBase>
100
+ </SummaryListItemKey>
101
+ <SummaryListItemAction>
102
+ <TaskListItemTag color={tagColor}>
103
+ {task.status}
104
+ </TaskListItemTag>
105
+ </SummaryListItemAction>
106
+ </SummaryListItem>
107
+ );
108
+ })}
109
+ </SummaryList>
110
+ </TaskListItemContent>
111
+ </TaskListItem>
112
+ );
113
+ })}
114
+ </TaskList>
115
+ </div>
116
+ );
117
+
118
+ export default Dense;
@@ -7,3 +7,4 @@ export default {
7
7
  displayName: 'Timeline',
8
8
  };
9
9
  export * from '@digigov/ui/content/Timeline/__stories__/Default';
10
+ export * from '@digigov/ui/content/Timeline/__stories__/Dense';
@@ -132,8 +132,8 @@ export const Default = () => (
132
132
  {data &&
133
133
  data.map((field, index) => {
134
134
  return (
135
- <TimelineItem key={index} marginBottom={10}>
136
- <TimelineHeading size="md" marginBottom={2}>
135
+ <TimelineItem key={index}>
136
+ <TimelineHeading size="md">
137
137
  {field.title}
138
138
  {field.codename && (
139
139
  <>
@@ -0,0 +1,196 @@
1
+ import React from 'react';
2
+ import {
3
+ Timeline,
4
+ TimelineItem,
5
+ TimelineHeading,
6
+ TimelineContent,
7
+ TimelineActions,
8
+ } from '@digigov/ui/content/Timeline';
9
+ import { Button, ButtonGroup } from '@digigov/ui/form/Button';
10
+ import { Hint } from '@digigov/ui/typography/Hint';
11
+ import {
12
+ SummaryList,
13
+ SummaryListItem,
14
+ SummaryListItemAction,
15
+ SummaryListItemKey,
16
+ SummaryListItemValue,
17
+ } from '@digigov/ui/content/SummaryList';
18
+
19
+ const data = [
20
+ {
21
+ title: 'Απάντηση',
22
+ codename: '(KEP-APA)',
23
+ date: '7 Απριλίου 2023, 12:32μ.μ.',
24
+ details: [
25
+ {
26
+ name: 'Ημερομηνία',
27
+ value: '7 Απριλίου 2023, 12:32μ.μ.',
28
+ },
29
+ {
30
+ name: 'Χειριστής',
31
+ value: 'Καλλιόπη Παπαδοπούλου',
32
+ actions: ['Ανάθεση'],
33
+ },
34
+ {
35
+ name: 'Κωδικός επαλήθευσης',
36
+ value: '637283494',
37
+ },
38
+ {
39
+ name: 'Κατάσταση',
40
+ value: 'Εισερχόμενη',
41
+ actions: ['Αλλαγή'],
42
+ },
43
+ ],
44
+ },
45
+ {
46
+ title: 'Συμπληρωματικά έγγραφα ',
47
+ codename: '(MORE-DOCS)',
48
+ date: '5 Απριλίου 2023, 8:32π.μ.',
49
+ details: [
50
+ {
51
+ name: 'Ημερομηνία',
52
+ value: '7 Απριλίου 2023, 12:32μ.μ.',
53
+ },
54
+ {
55
+ name: 'Χειριστής',
56
+ value: 'Μαρία Φλούπη',
57
+ actions: ['Ανάθεση'],
58
+ },
59
+ {
60
+ name: 'Κωδικός επαλήθευσης',
61
+ value: '637283494',
62
+ },
63
+ {
64
+ name: 'Κατάσταση',
65
+ value: 'Εισερχόμενη',
66
+ actions: ['Αλλαγή'],
67
+ },
68
+ ],
69
+ },
70
+ {
71
+ title: 'Αίτηση για συμπληρωματικά έγγραφα',
72
+ codename: '(MORE-DOCS-REQUEST)',
73
+ date: '5 Απριλίου 2023, 8:32π.μ.',
74
+ details: [
75
+ {
76
+ name: 'Ημερομηνία',
77
+ value: '5 Απριλίου 2023, 8:32π.μ.',
78
+ },
79
+ {
80
+ name: 'Χειριστής',
81
+ value: 'Μαρία Φλούπη',
82
+ actions: ['Ανάθεση'],
83
+ },
84
+ {
85
+ name: 'Κωδικός επαλήθευσης',
86
+ value: '974256',
87
+ },
88
+ {
89
+ name: 'Κατάσταση',
90
+ value: 'Εισερχόμενη',
91
+ actions: ['Αλλαγή'],
92
+ },
93
+ ],
94
+ },
95
+ {
96
+ title: 'Αίτηση Βεβαίωσης Μόνιμης Κατοικίας',
97
+ codename: '(PERMRES-FOREIS)',
98
+ date: '3 Απριλίου 2023, 5:42μ.μ.',
99
+ actions: [
100
+ {
101
+ label: 'Απάντηση',
102
+ },
103
+ {
104
+ label: 'Αίτημα για συμπληρωματικά έγγραφα',
105
+ },
106
+ ],
107
+ details: [
108
+ {
109
+ name: 'Ημερομηνία',
110
+ value: '3 Απριλίου 2023, 5:42μ.μ.',
111
+ },
112
+ {
113
+ name: 'Χειριστής',
114
+ value: 'Μαρία Φλούπη',
115
+ actions: ['Ανάθεση'],
116
+ },
117
+ {
118
+ name: 'Κωδικός επαλήθευσης',
119
+ value: '475747',
120
+ },
121
+ {
122
+ name: 'Κατάσταση',
123
+ value: 'Εισερχόμενη',
124
+ actions: ['Αλλαγή'],
125
+ },
126
+ ],
127
+ },
128
+ ];
129
+
130
+ export const Dense = () => (
131
+ <Timeline dense>
132
+ {data &&
133
+ data.map((field, index) => {
134
+ return (
135
+ <TimelineItem key={index}>
136
+ <TimelineHeading size="md">
137
+ {field.title}
138
+ {field.codename && (
139
+ <>
140
+ {' - '} {field.codename}
141
+ </>
142
+ )}
143
+ </TimelineHeading>
144
+ <Hint>{field.date}</Hint>
145
+ <TimelineContent>
146
+ {field.details && (
147
+ <SummaryList>
148
+ {field.details.map((field, index) => {
149
+ return (
150
+ <SummaryListItem key={index}>
151
+ <SummaryListItemKey>{field.name}</SummaryListItemKey>
152
+ <SummaryListItemValue>
153
+ {field.value}
154
+ </SummaryListItemValue>
155
+ {field.actions && (
156
+ <SummaryListItemAction>
157
+ <ButtonGroup>
158
+ {field.actions &&
159
+ field.actions.map((action, subIndex) => {
160
+ return (
161
+ <Button key={subIndex} variant="link">
162
+ {action}
163
+ </Button>
164
+ );
165
+ })}
166
+ </ButtonGroup>
167
+ </SummaryListItemAction>
168
+ )}
169
+ </SummaryListItem>
170
+ );
171
+ })}
172
+ </SummaryList>
173
+ )}
174
+ </TimelineContent>
175
+ <TimelineActions>
176
+ <ButtonGroup>
177
+ {(field.actions || []).map((action, subIndex) => (
178
+ <Button key={subIndex} variant="link">
179
+ {action.label}
180
+ </Button>
181
+ ))}
182
+ <Button color="secondary" variant="link">
183
+ Προβολή εγγράφου
184
+ </Button>
185
+ <Button color="secondary" variant="link">
186
+ Λήψη PDF
187
+ </Button>
188
+ </ButtonGroup>
189
+ </TimelineActions>
190
+ </TimelineItem>
191
+ );
192
+ })}
193
+ </Timeline>
194
+ );
195
+
196
+ export default Dense;
@@ -11,3 +11,4 @@ export * from '@digigov/ui/feedback/ErrorSummary/__stories__/Default';
11
11
  export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput';
12
12
  export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToField';
13
13
  export * from '@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToCheckbox';
14
+ export * from '@digigov/ui/feedback/ErrorSummary/__stories__/WithBackLinkAndButton';
@@ -10,6 +10,7 @@ import {
10
10
  import { Link } from '@digigov/ui/navigation/Link';
11
11
  import { Heading } from '@digigov/ui/typography/Heading';
12
12
  import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
13
+ import { Hint } from '@digigov/ui/typography/Hint';
13
14
 
14
15
  export const LinkedToCheckbox = () => (
15
16
  <div>
@@ -17,12 +18,12 @@ export const LinkedToCheckbox = () => (
17
18
  <Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
18
19
  <Link href="#england">Επιλέξτε μία ή παραπάνω χώρες.</Link>
19
20
  </ErrorSummary>
20
-
21
21
  <FieldContainer error>
22
22
  <Fieldset>
23
23
  <FieldsetLegend>
24
24
  Θα ταξιδέψετε σε κάποια από αυτές τις χώρες;
25
25
  </FieldsetLegend>
26
+ <Hint>Πείτε μας σχετικά με πρόσφατες αλλαγές. Επιλέξτε ό,τι ισχύει.</Hint>
26
27
  <ErrorMessage>
27
28
  <VisuallyHidden>Λάθος:</VisuallyHidden> Επιλέξτε μία ή παραπάνω χώρες.
28
29
  </ErrorMessage>
@@ -20,23 +20,21 @@ export const LinkedToField = () => (
20
20
  <ErrorSummary>
21
21
  <Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
22
22
  <Link href="#passport-date">
23
- Η ημερομηνία έκδοσης του διαβατηρίου πρέπει να είναι στο
24
- παρελθόν.
23
+ Πρέπει να συμπληρώσετε το έτος.
25
24
  </Link>
26
25
  </ErrorSummary>
27
26
  <FieldContainer error id="passport-date">
28
27
  <Fieldset>
29
- <FieldsetLegend>Πότε εκδόθηκε το διαβατήριο;</FieldsetLegend>
28
+ <FieldsetLegend>Ποιά είναι η ημερομηνία γέννησής σας;</FieldsetLegend>
30
29
  <Hint>Για παράδειγμα, 05 11 2020</Hint>
31
30
  <ErrorMessage>
32
- <VisuallyHidden>Λάθος:</VisuallyHidden> Η ημερομηνία έκδοσης του
33
- διαβατηρίου σας θα πρέπει να είναι στο παρελθόν.
31
+ <VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να έχει έτος.
34
32
  </ErrorMessage>
35
33
  <DateInputContainer>
36
34
  <DateInputItem name="day">Ημέρα</DateInputItem>
37
35
  <DateInputItem name="month">Μήνας</DateInputItem>
38
36
  <DateInputItem error width={4} name="year">
39
- Χρόνος
37
+ Έτος
40
38
  </DateInputItem>
41
39
  </DateInputContainer>
42
40
  </Fieldset>
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { ErrorSummary } from '@digigov/ui/feedback/ErrorSummary';
3
+ import {
4
+ DateInputContainer,
5
+ DateInputItem,
6
+ } from '@digigov/ui/form/DateInputContainer';
7
+ import { ErrorMessage } from '@digigov/ui/form/ErrorMessage';
8
+ import {
9
+ FieldContainer,
10
+ Fieldset,
11
+ FieldsetLegend,
12
+ } from '@digigov/ui/form/FieldContainer';
13
+ import { Link } from '@digigov/ui/navigation/Link';
14
+ import { Heading } from '@digigov/ui/typography/Heading';
15
+ import { Hint } from '@digigov/ui/typography/Hint';
16
+ import { VisuallyHidden } from '@digigov/ui/utils/VisuallyHidden';
17
+ import { BackLink } from '@digigov/ui/navigation/BackLink';
18
+ import Button from '@digigov/ui/form/Button';
19
+
20
+ export const WithBackLinkAndButton = () => (
21
+ <div>
22
+ <BackLink href="/">Πίσω</BackLink>
23
+ <ErrorSummary>
24
+ <Heading size="sm">Υπήρξε κάποιο πρόβλημα</Heading>
25
+ <Link href="#passport-date">
26
+ Πρέπει να συμπληρώσετε το έτος
27
+ </Link>
28
+ </ErrorSummary>
29
+ <FieldContainer error id="passport-date">
30
+ <Fieldset>
31
+ <FieldsetLegend>Ποιά είναι η ημερομηνία γέννησής σας</FieldsetLegend>
32
+ <Hint>Για παράδειγμα, 05 11 2020</Hint>
33
+ <ErrorMessage>
34
+ <VisuallyHidden>Λάθος:</VisuallyHidden>Η ημερομηνία γέννησης πρέπει να έχει έτος.
35
+ </ErrorMessage>
36
+ <DateInputContainer>
37
+ <DateInputItem name="day">Ημέρα</DateInputItem>
38
+ <DateInputItem name="month">Μήνας</DateInputItem>
39
+ <DateInputItem error width={4} name="year">
40
+ Έτος
41
+ </DateInputItem>
42
+ </DateInputContainer>
43
+ </Fieldset>
44
+ </FieldContainer>
45
+ <Button>Συνέχεια</Button>
46
+ </div>
47
+ );
48
+
49
+ export default WithBackLinkAndButton;