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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/app/BannerContainer/BannerContainer.stories.d.ts +10 -0
  2. package/app/BannerContainer/BannerContainer.stories.js +35 -0
  3. package/app/BannerContainer/__stories__/CookiesBanner.d.ts +2 -0
  4. package/app/BannerContainer/__stories__/CookiesBanner.js +42 -0
  5. package/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  6. package/app/Footer/__stories__/FooterWithLink.js +16 -12
  7. package/app/Footer/__stories__/FooterWithLogo.js +17 -15
  8. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  9. package/app/Masthead/Masthead.stories.d.ts +2 -0
  10. package/app/Masthead/Masthead.stories.js +28 -0
  11. package/app/Masthead/__stories__/WithElements.d.ts +2 -0
  12. package/app/Masthead/__stories__/WithElements.js +41 -0
  13. package/app/Masthead/__stories__/WithLogo.d.ts +2 -0
  14. package/app/Masthead/__stories__/WithLogo.js +37 -0
  15. package/content/Blockquote/Blockquote.stories.d.ts +1 -0
  16. package/content/Blockquote/Blockquote.stories.js +14 -0
  17. package/content/Blockquote/__stories__/Dense.d.ts +2 -0
  18. package/content/Blockquote/__stories__/Dense.js +24 -0
  19. package/content/Card/Card.stories.d.ts +2 -0
  20. package/content/Card/Card.stories.js +28 -0
  21. package/content/Card/__stories__/Default.js +1 -1
  22. package/content/Card/__stories__/Dense.d.ts +2 -0
  23. package/content/Card/__stories__/Dense.js +28 -0
  24. package/content/Card/__stories__/WithLink.d.ts +2 -0
  25. package/content/Card/__stories__/WithLink.js +24 -0
  26. package/content/StepNav/StepNav.stories.d.ts +1 -0
  27. package/content/StepNav/StepNav.stories.js +14 -0
  28. package/content/StepNav/__stories__/Dense.d.ts +2 -0
  29. package/content/StepNav/__stories__/Dense.js +204 -0
  30. package/content/SummaryList/SummaryList.stories.d.ts +1 -0
  31. package/content/SummaryList/SummaryList.stories.js +14 -0
  32. package/content/SummaryList/__stories__/Default.js +7 -3
  33. package/content/SummaryList/__stories__/WithActions.js +13 -7
  34. package/content/SummaryList/__stories__/WithoutActions.d.ts +2 -0
  35. package/content/SummaryList/__stories__/WithoutActions.js +22 -0
  36. package/content/SummaryList/__stories__/WithoutBorders.js +12 -2
  37. package/content/Table/__stories__/RowColors.js +5 -5
  38. package/content/TaskList/TaskList.stories.d.ts +1 -0
  39. package/content/TaskList/TaskList.stories.js +14 -0
  40. package/content/TaskList/__stories__/Dense.d.ts +2 -0
  41. package/content/TaskList/__stories__/Dense.js +93 -0
  42. package/content/Timeline/Timeline.stories.d.ts +1 -0
  43. package/content/Timeline/Timeline.stories.js +14 -0
  44. package/content/Timeline/__stories__/Default.js +2 -4
  45. package/content/Timeline/__stories__/Dense.d.ts +2 -0
  46. package/content/Timeline/__stories__/Dense.js +141 -0
  47. package/es/app/BannerContainer/BannerContainer.stories.js +10 -0
  48. package/es/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  49. package/es/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  50. package/es/app/Footer/__stories__/FooterWithLink.js +16 -12
  51. package/es/app/Footer/__stories__/FooterWithLogo.js +17 -15
  52. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  53. package/es/app/Masthead/Masthead.stories.js +3 -1
  54. package/es/app/Masthead/__stories__/WithElements.js +21 -0
  55. package/es/app/Masthead/__stories__/WithLogo.js +19 -0
  56. package/es/content/Blockquote/Blockquote.stories.js +2 -1
  57. package/es/content/Blockquote/__stories__/Dense.js +11 -0
  58. package/es/content/Card/Card.stories.js +3 -1
  59. package/es/content/Card/__stories__/Default.js +1 -1
  60. package/es/content/Card/__stories__/Dense.js +14 -0
  61. package/es/content/Card/__stories__/WithLink.js +10 -0
  62. package/es/content/StepNav/StepNav.stories.js +2 -1
  63. package/es/content/StepNav/__stories__/Dense.js +180 -0
  64. package/es/content/SummaryList/SummaryList.stories.js +1 -0
  65. package/es/content/SummaryList/__stories__/Default.js +7 -3
  66. package/es/content/SummaryList/__stories__/WithActions.js +5 -5
  67. package/es/content/SummaryList/__stories__/WithoutActions.js +9 -0
  68. package/es/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  69. package/es/content/Table/__stories__/RowColors.js +5 -5
  70. package/es/content/TaskList/TaskList.stories.js +2 -1
  71. package/es/content/TaskList/__stories__/Dense.js +76 -0
  72. package/es/content/Timeline/Timeline.stories.js +2 -1
  73. package/es/content/Timeline/__stories__/Default.js +2 -4
  74. package/es/content/Timeline/__stories__/Dense.js +124 -0
  75. package/es/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  76. package/es/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  77. package/es/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  78. package/es/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  79. package/es/form/Button/__stories__/CallToActionButton.js +1 -4
  80. package/es/form/Button/__stories__/GroupingButtons.js +0 -3
  81. package/es/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  82. package/es/form/Button/__stories__/Primary.js +0 -3
  83. package/es/form/Button/__stories__/Secondary.js +0 -3
  84. package/es/form/Button/__stories__/WithVariantLink.js +0 -4
  85. package/es/form/Checkbox/__stories__/WithHint.js +1 -1
  86. package/es/form/DateInputContainer/__stories__/Default.js +1 -1
  87. package/es/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  88. package/es/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  89. package/es/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  90. package/es/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  91. package/es/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  92. package/es/form/ErrorMessage/__stories__/Default.js +11 -8
  93. package/es/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  94. package/es/form/FileUpload/__stories__/Default.js +2 -2
  95. package/es/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  96. package/es/form/RadioContainer/RadioContainer.stories.js +1 -0
  97. package/es/form/RadioContainer/__stories__/Default.js +7 -4
  98. package/es/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  99. package/es/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  100. package/es/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  101. package/es/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  102. package/es/form/RadioContainer/__stories__/WithHints.js +1 -1
  103. package/es/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  104. package/es/form/TextInput/__stories__/FixedWidths.js +8 -18
  105. package/es/form/TextInput/__stories__/FluidWidths.js +8 -18
  106. package/es/govgr/Footer/Copyright.js +3 -3
  107. package/es/icons/ImageLogo/index.js +3 -0
  108. package/es/icons/ImageLogoSet/index.js +3 -0
  109. package/es/navigation/NavList/NavList.stories.js +5 -1
  110. package/es/navigation/NavList/NavList.stories.playwright.json +5 -5
  111. package/es/navigation/NavList/__stories__/Default.js +20 -54
  112. package/es/navigation/NavList/__stories__/NavVertical.js +37 -0
  113. package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  114. package/es/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  115. package/es/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  116. package/es/navigation/Tabs/__stories__/Default.js +15 -4
  117. package/es/registry.js +8 -2
  118. package/esm/app/BannerContainer/BannerContainer.stories.js +10 -0
  119. package/esm/app/BannerContainer/__stories__/CookiesBanner.js +18 -0
  120. package/esm/app/Footer/__stories__/FooterAllInclusive.js +33 -23
  121. package/esm/app/Footer/__stories__/FooterWithLink.js +16 -12
  122. package/esm/app/Footer/__stories__/FooterWithLogo.js +17 -15
  123. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -14
  124. package/esm/app/Masthead/Masthead.stories.js +3 -1
  125. package/esm/app/Masthead/__stories__/WithElements.js +21 -0
  126. package/esm/app/Masthead/__stories__/WithLogo.js +19 -0
  127. package/esm/content/Blockquote/Blockquote.stories.js +2 -1
  128. package/esm/content/Blockquote/__stories__/Dense.js +11 -0
  129. package/esm/content/Card/Card.stories.js +3 -1
  130. package/esm/content/Card/__stories__/Default.js +1 -1
  131. package/esm/content/Card/__stories__/Dense.js +14 -0
  132. package/esm/content/Card/__stories__/WithLink.js +10 -0
  133. package/esm/content/StepNav/StepNav.stories.js +2 -1
  134. package/esm/content/StepNav/__stories__/Dense.js +180 -0
  135. package/esm/content/SummaryList/SummaryList.stories.js +1 -0
  136. package/esm/content/SummaryList/__stories__/Default.js +7 -3
  137. package/esm/content/SummaryList/__stories__/WithActions.js +5 -5
  138. package/esm/content/SummaryList/__stories__/WithoutActions.js +9 -0
  139. package/esm/content/SummaryList/__stories__/WithoutBorders.js +10 -2
  140. package/esm/content/Table/__stories__/RowColors.js +5 -5
  141. package/esm/content/TaskList/TaskList.stories.js +2 -1
  142. package/esm/content/TaskList/__stories__/Dense.js +76 -0
  143. package/esm/content/Timeline/Timeline.stories.js +2 -1
  144. package/esm/content/Timeline/__stories__/Default.js +2 -4
  145. package/esm/content/Timeline/__stories__/Dense.js +124 -0
  146. package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +2 -1
  147. package/esm/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +2 -1
  148. package/esm/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  149. package/esm/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +35 -0
  150. package/esm/form/Button/__stories__/CallToActionButton.js +1 -4
  151. package/esm/form/Button/__stories__/GroupingButtons.js +0 -3
  152. package/esm/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  153. package/esm/form/Button/__stories__/Primary.js +0 -3
  154. package/esm/form/Button/__stories__/Secondary.js +0 -3
  155. package/esm/form/Button/__stories__/WithVariantLink.js +0 -4
  156. package/esm/form/Checkbox/__stories__/WithHint.js +1 -1
  157. package/esm/form/DateInputContainer/__stories__/Default.js +1 -1
  158. package/esm/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  159. package/esm/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  160. package/esm/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  161. package/esm/form/ErrorMessage/ErrorMessage.stories.js +3 -1
  162. package/esm/form/ErrorMessage/__stories__/DateInputError.js +24 -0
  163. package/esm/form/ErrorMessage/__stories__/Default.js +11 -8
  164. package/esm/form/ErrorMessage/__stories__/ErrorMessageOnly.js +12 -0
  165. package/esm/form/FileUpload/__stories__/Default.js +2 -2
  166. package/esm/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  167. package/esm/form/RadioContainer/RadioContainer.stories.js +1 -0
  168. package/esm/form/RadioContainer/__stories__/Default.js +7 -4
  169. package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +5 -5
  170. package/esm/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  171. package/esm/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  172. package/esm/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  173. package/esm/form/RadioContainer/__stories__/WithHints.js +1 -1
  174. package/esm/form/RadioContainer/__stories__/WithMediumLegend.js +24 -0
  175. package/esm/form/TextInput/__stories__/FixedWidths.js +8 -18
  176. package/esm/form/TextInput/__stories__/FluidWidths.js +8 -18
  177. package/esm/govgr/Footer/Copyright.js +3 -3
  178. package/esm/icons/ImageLogo/index.js +3 -0
  179. package/esm/icons/ImageLogoSet/index.js +3 -0
  180. package/esm/index.js +1 -1
  181. package/esm/navigation/NavList/NavList.stories.js +5 -1
  182. package/esm/navigation/NavList/NavList.stories.playwright.json +5 -5
  183. package/esm/navigation/NavList/__stories__/Default.js +20 -54
  184. package/esm/navigation/NavList/__stories__/NavVertical.js +37 -0
  185. package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +43 -0
  186. package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +56 -0
  187. package/esm/navigation/NavList/__stories__/WithSubMenu.js +73 -0
  188. package/esm/navigation/Tabs/__stories__/Default.js +15 -4
  189. package/esm/registry.js +8 -2
  190. package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
  191. package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
  192. package/feedback/ErrorSummary/__stories__/LinkedToCheckbox.js +3 -1
  193. package/feedback/ErrorSummary/__stories__/LinkedToField.js +3 -3
  194. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.d.ts +2 -0
  195. package/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.js +57 -0
  196. package/form/Button/__stories__/CallToActionButton.d.ts +0 -3
  197. package/form/Button/__stories__/CallToActionButton.js +1 -4
  198. package/form/Button/__stories__/GroupingButtons.d.ts +0 -3
  199. package/form/Button/__stories__/GroupingButtons.js +0 -3
  200. package/form/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -3
  201. package/form/Button/__stories__/GroupingButtonsAndLinks.js +0 -3
  202. package/form/Button/__stories__/Primary.d.ts +0 -3
  203. package/form/Button/__stories__/Primary.js +0 -3
  204. package/form/Button/__stories__/Secondary.d.ts +0 -3
  205. package/form/Button/__stories__/Secondary.js +0 -3
  206. package/form/Button/__stories__/WithVariantLink.d.ts +0 -3
  207. package/form/Button/__stories__/WithVariantLink.js +0 -3
  208. package/form/Checkbox/__stories__/WithHint.js +1 -1
  209. package/form/DateInputContainer/__stories__/Default.js +1 -1
  210. package/form/DateInputContainer/__stories__/MultipleQuestions.js +2 -2
  211. package/form/DateInputContainer/__stories__/WithErrorMessage.js +1 -1
  212. package/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.js +1 -1
  213. package/form/ErrorMessage/ErrorMessage.stories.d.ts +2 -0
  214. package/form/ErrorMessage/ErrorMessage.stories.js +28 -0
  215. package/form/ErrorMessage/__stories__/DateInputError.d.ts +2 -0
  216. package/form/ErrorMessage/__stories__/DateInputError.js +41 -0
  217. package/form/ErrorMessage/__stories__/Default.js +11 -8
  218. package/form/ErrorMessage/__stories__/ErrorMessageOnly.d.ts +2 -0
  219. package/form/ErrorMessage/__stories__/ErrorMessageOnly.js +26 -0
  220. package/form/FileUpload/__stories__/Default.js +2 -2
  221. package/form/FileUpload/__stories__/WithErrorMessage.js +2 -2
  222. package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
  223. package/form/RadioContainer/RadioContainer.stories.js +14 -0
  224. package/form/RadioContainer/__stories__/Default.js +7 -4
  225. package/form/RadioContainer/__stories__/InlineWithDivider.js +6 -6
  226. package/form/RadioContainer/__stories__/MultipleQuestions.js +1 -1
  227. package/form/RadioContainer/__stories__/NoneAnswer.js +6 -2
  228. package/form/RadioContainer/__stories__/WithErrorMessage.js +3 -1
  229. package/form/RadioContainer/__stories__/WithHints.js +1 -1
  230. package/form/RadioContainer/__stories__/WithMediumLegend.d.ts +2 -0
  231. package/form/RadioContainer/__stories__/WithMediumLegend.js +38 -0
  232. package/form/TextInput/__stories__/FixedWidths.js +8 -18
  233. package/form/TextInput/__stories__/FluidWidths.js +8 -18
  234. package/govgr/Footer/Copyright.js +3 -3
  235. package/icons/ImageLogo/index.d.ts +3 -0
  236. package/icons/ImageLogo/index.js +30 -0
  237. package/icons/ImageLogoSet/index.d.ts +3 -0
  238. package/icons/ImageLogoSet/index.js +30 -0
  239. package/navigation/NavList/NavList.stories.d.ts +4 -0
  240. package/navigation/NavList/NavList.stories.js +56 -0
  241. package/navigation/NavList/NavList.stories.playwright.json +5 -5
  242. package/navigation/NavList/__stories__/Default.js +19 -60
  243. package/navigation/NavList/__stories__/NavVertical.d.ts +2 -0
  244. package/navigation/NavList/__stories__/NavVertical.js +53 -0
  245. package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +2 -0
  246. package/navigation/NavList/__stories__/NavVerticalWithTitle.js +59 -0
  247. package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +2 -0
  248. package/navigation/NavList/__stories__/WithBurgerIcon.js +82 -0
  249. package/navigation/NavList/__stories__/WithSubMenu.d.ts +2 -0
  250. package/navigation/NavList/__stories__/WithSubMenu.js +96 -0
  251. package/navigation/Tabs/__stories__/Default.js +16 -4
  252. package/package.json +3 -3
  253. package/registry.d.ts +6 -2
  254. package/registry.js +11 -2
  255. package/src/app/BannerContainer/BannerContainer.stories.js +12 -0
  256. package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +32 -0
  257. package/src/app/Footer/__stories__/Default.tsx +1 -1
  258. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +14 -18
  259. package/src/app/Footer/__stories__/FooterWithLink.tsx +5 -7
  260. package/src/app/Footer/__stories__/FooterWithLogo.tsx +11 -13
  261. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +58 -58
  262. package/src/app/Masthead/Masthead.stories.js +2 -0
  263. package/src/app/Masthead/__stories__/WithElements.tsx +31 -0
  264. package/src/app/Masthead/__stories__/WithLogo.tsx +28 -0
  265. package/src/content/Blockquote/Blockquote.stories.js +1 -0
  266. package/src/content/Blockquote/__stories__/Dense.tsx +11 -0
  267. package/src/content/Card/Card.stories.js +2 -0
  268. package/src/content/Card/__stories__/Default.tsx +1 -1
  269. package/src/content/Card/__stories__/Dense.tsx +24 -0
  270. package/src/content/Card/__stories__/WithLink.tsx +25 -0
  271. package/src/content/StepNav/StepNav.stories.js +1 -0
  272. package/src/content/StepNav/__stories__/Dense.tsx +261 -0
  273. package/src/content/SummaryList/SummaryList.stories.js +1 -0
  274. package/src/content/SummaryList/__stories__/Default.tsx +30 -21
  275. package/src/content/SummaryList/__stories__/WithActions.tsx +37 -41
  276. package/src/content/SummaryList/__stories__/WithoutActions.tsx +27 -0
  277. package/src/content/SummaryList/__stories__/WithoutBorders.tsx +31 -17
  278. package/src/content/Table/__stories__/RowColors.tsx +5 -5
  279. package/src/content/TaskList/TaskList.stories.js +1 -0
  280. package/src/content/TaskList/__stories__/Dense.tsx +118 -0
  281. package/src/content/Timeline/Timeline.stories.js +1 -0
  282. package/src/content/Timeline/__stories__/Default.tsx +2 -2
  283. package/src/content/Timeline/__stories__/Dense.tsx +196 -0
  284. package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
  285. package/src/feedback/ErrorSummary/__stories__/LinkedToCheckbox.tsx +2 -1
  286. package/src/feedback/ErrorSummary/__stories__/LinkedToField.tsx +4 -6
  287. package/src/feedback/ErrorSummary/__stories__/WithBackLinkAndButton.tsx +49 -0
  288. package/src/form/Button/__stories__/CallToActionButton.tsx +1 -4
  289. package/src/form/Button/__stories__/GroupingButtons.tsx +0 -3
  290. package/src/form/Button/__stories__/GroupingButtonsAndLinks.tsx +0 -3
  291. package/src/form/Button/__stories__/Primary.tsx +1 -3
  292. package/src/form/Button/__stories__/Secondary.tsx +0 -3
  293. package/src/form/Button/__stories__/WithVariantLink.tsx +1 -3
  294. package/src/form/Checkbox/__stories__/WithHint.tsx +1 -1
  295. package/src/form/DateInputContainer/__stories__/Default.tsx +1 -1
  296. package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +2 -2
  297. package/src/form/DateInputContainer/__stories__/WithErrorMessage.tsx +1 -1
  298. package/src/form/DateInputContainer/__stories__/WithErrorMessageForSingleField.tsx +1 -1
  299. package/src/form/ErrorMessage/ErrorMessage.stories.js +2 -0
  300. package/src/form/ErrorMessage/__stories__/DateInputError.tsx +34 -0
  301. package/src/form/ErrorMessage/__stories__/Default.tsx +12 -6
  302. package/src/form/ErrorMessage/__stories__/ErrorMessageOnly.tsx +12 -0
  303. package/src/form/FileUpload/__stories__/Default.tsx +2 -2
  304. package/src/form/FileUpload/__stories__/WithErrorMessage.tsx +2 -2
  305. package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
  306. package/src/form/RadioContainer/__stories__/Default.tsx +7 -4
  307. package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +5 -5
  308. package/src/form/RadioContainer/__stories__/MultipleQuestions.tsx +1 -1
  309. package/src/form/RadioContainer/__stories__/NoneAnswer.tsx +3 -3
  310. package/src/form/RadioContainer/__stories__/WithErrorMessage.tsx +1 -1
  311. package/src/form/RadioContainer/__stories__/WithHints.tsx +1 -1
  312. package/src/form/RadioContainer/__stories__/WithMediumLegend.tsx +32 -0
  313. package/src/form/TextInput/__stories__/FixedWidths.tsx +8 -8
  314. package/src/form/TextInput/__stories__/FluidWidths.tsx +2 -2
  315. package/src/govgr/Footer/Copyright.tsx +11 -11
  316. package/src/icons/ImageLogo/index.tsx +5 -0
  317. package/src/icons/ImageLogoSet/index.tsx +4 -0
  318. package/src/navigation/NavList/NavList.stories.js +4 -0
  319. package/src/navigation/NavList/NavList.stories.playwright.json +5 -5
  320. package/src/navigation/NavList/__stories__/Default.tsx +16 -80
  321. package/src/navigation/NavList/__stories__/NavVertical.tsx +36 -0
  322. package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +40 -0
  323. package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +49 -0
  324. package/src/navigation/NavList/__stories__/WithSubMenu.tsx +101 -0
  325. package/src/navigation/Tabs/__stories__/Default.tsx +14 -9
  326. package/src/registry.js +10 -4
  327. /package/es/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  328. /package/es/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  329. /package/esm/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  330. /package/esm/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  331. /package/form/SelectContainer/{Select.stories.d.ts → SelectContainer.stories.d.ts} +0 -0
  332. /package/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  333. /package/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
  334. /package/src/form/SelectContainer/{Select.stories.js → SelectContainer.stories.js} +0 -0
  335. /package/src/form/SelectContainer/{Select.stories.playwright.json → SelectContainer.stories.playwright.json} +0 -0
@@ -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;
@@ -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';