@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
@@ -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;