@digigov/ui 1.0.0-6b93ebf2 → 1.0.0-88820b1e

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 (560) hide show
  1. package/app/CloseButton/index.d.ts +3 -0
  2. package/app/CloseButton/index.js +30 -0
  3. package/app/{FilterSection → FilterContainer}/index.d.ts +4 -5
  4. package/app/{FilterSection → FilterContainer}/index.js +9 -23
  5. package/app/Footer/Footer.stories.playwright.json +2 -2
  6. package/app/Footer/__stories__/DefaultCopyright.js +10 -7
  7. package/app/Footer/__stories__/FooterAllInclusive.js +22 -15
  8. package/app/Footer/__stories__/FooterWithLink.js +14 -11
  9. package/app/Footer/__stories__/FooterWithLogo.js +10 -8
  10. package/app/Footer/__stories__/FooterWithSecondaryNavigation.js +18 -13
  11. package/app/Footer/__stories__/YearCopyright.js +8 -5
  12. package/app/Footer/index.d.ts +3 -5
  13. package/app/Footer/index.js +12 -40
  14. package/app/Footer/index.mdx +4 -20
  15. package/app/Header/Header.stories.playwright.json +1 -1
  16. package/app/Header/__stories__/Default.js +1 -1
  17. package/app/Header/__stories__/WithHeaderNavigation.js +5 -5
  18. package/app/Header/__stories__/WithNavigation.js +1 -1
  19. package/app/Header/__stories__/WithServiceName.js +1 -1
  20. package/app/Header/__stories__/WithServiceNameAndLogo.js +1 -1
  21. package/app/Header/index.mdx +4 -21
  22. package/app/Header/index.spec.js +1 -1
  23. package/app/Modal/__stories__/Default.js +1 -1
  24. package/app/Modal/index.mdx +1 -5
  25. package/app/NotFound/index.js +5 -9
  26. package/app/PageTitleContainer/index.d.ts +5 -0
  27. package/app/PageTitleContainer/index.js +58 -0
  28. package/app/Panel/index.mdx +1 -5
  29. package/app/PhaseBannerHeader/index.js +2 -2
  30. package/app/PhaseBannerHeader/index.mdx +1 -5
  31. package/app/QrCodeViewer/index.mdx +2 -10
  32. package/app/index.d.ts +2 -3
  33. package/app/index.js +8 -8
  34. package/content/Accordion/index.d.ts +1 -1
  35. package/content/Accordion/index.mdx +2 -10
  36. package/content/Blockquote/index.mdx +1 -5
  37. package/content/Card/index.mdx +8 -40
  38. package/content/Chip/__stories__/GroupOfChips.js +1 -1
  39. package/content/Chip/index.d.ts +1 -2
  40. package/content/Chip/index.js +4 -18
  41. package/content/Chip/index.mdx +39 -0
  42. package/content/Details/index.mdx +1 -5
  43. package/content/List/__stories__/HorizontalList.js +1 -1
  44. package/content/List/__stories__/WithExtraSpace.js +1 -1
  45. package/content/List/index.mdx +3 -15
  46. package/content/StepNav/__stories__/Default.js +3 -5
  47. package/content/StepNav/__stories__/WithHints.js +2 -4
  48. package/content/StepNav/index.mdx +21 -0
  49. package/content/SummaryList/index.mdx +3 -15
  50. package/content/Table/__stories__/DefinedWidth.js +3 -3
  51. package/content/Table/index.js +4 -4
  52. package/content/TaskList/__stories__/Default.js +5 -5
  53. package/content/TaskList/index.mdx +21 -0
  54. package/content/Timeline/__stories__/Default.js +2 -2
  55. package/content/Timeline/index.mdx +23 -0
  56. package/es/app/CloseButton/index.js +3 -0
  57. package/{esm/app/FilterSection → es/app/FilterContainer}/index.js +4 -5
  58. package/es/app/Footer/Footer.stories.playwright.json +2 -2
  59. package/es/app/Footer/__stories__/DefaultCopyright.js +11 -9
  60. package/es/app/Footer/__stories__/FooterAllInclusive.js +19 -13
  61. package/es/app/Footer/__stories__/FooterWithLink.js +13 -11
  62. package/es/app/Footer/__stories__/FooterWithLogo.js +9 -8
  63. package/es/app/Footer/__stories__/FooterWithSecondaryNavigation.js +16 -12
  64. package/es/app/Footer/__stories__/YearCopyright.js +9 -7
  65. package/es/app/Footer/index.js +3 -5
  66. package/es/app/Footer/index.mdx +4 -20
  67. package/es/app/Header/Header.stories.playwright.json +1 -1
  68. package/es/app/Header/__stories__/Default.js +1 -1
  69. package/es/app/Header/__stories__/WithHeaderNavigation.js +5 -5
  70. package/es/app/Header/__stories__/WithNavigation.js +1 -1
  71. package/es/app/Header/__stories__/WithServiceName.js +1 -1
  72. package/es/app/Header/__stories__/WithServiceNameAndLogo.js +1 -1
  73. package/es/app/Header/index.mdx +4 -21
  74. package/es/app/Header/index.spec.js +2 -2
  75. package/es/app/Modal/__stories__/Default.js +1 -1
  76. package/es/app/Modal/index.mdx +1 -5
  77. package/es/app/NotFound/index.js +4 -3
  78. package/es/app/PageTitleContainer/index.js +5 -0
  79. package/es/app/Panel/index.mdx +1 -5
  80. package/es/app/PhaseBannerHeader/index.js +2 -2
  81. package/es/app/PhaseBannerHeader/index.mdx +1 -5
  82. package/es/app/QrCodeViewer/index.mdx +2 -10
  83. package/es/app/index.js +3 -4
  84. package/es/content/Accordion/index.mdx +2 -10
  85. package/es/content/Blockquote/index.mdx +1 -5
  86. package/es/content/Card/index.mdx +8 -40
  87. package/es/content/Chip/__stories__/GroupOfChips.js +2 -2
  88. package/es/content/Chip/index.js +1 -2
  89. package/es/content/Chip/index.mdx +39 -0
  90. package/es/content/Details/index.mdx +1 -5
  91. package/es/content/List/__stories__/HorizontalList.js +1 -1
  92. package/es/content/List/__stories__/WithExtraSpace.js +1 -1
  93. package/es/content/List/index.mdx +3 -15
  94. package/es/content/StepNav/__stories__/Default.js +3 -5
  95. package/es/content/StepNav/__stories__/WithHints.js +2 -4
  96. package/es/content/StepNav/index.mdx +21 -0
  97. package/es/content/SummaryList/index.mdx +3 -15
  98. package/es/content/Table/__stories__/DefinedWidth.js +3 -3
  99. package/es/content/Table/index.js +4 -4
  100. package/es/content/TaskList/__stories__/Default.js +5 -5
  101. package/es/content/TaskList/index.mdx +21 -0
  102. package/es/content/Timeline/__stories__/Default.js +2 -2
  103. package/es/content/Timeline/index.mdx +23 -0
  104. package/es/feedback/CopyToClipboard/index.mdx +2 -10
  105. package/es/feedback/ErrorSummary/index.mdx +4 -20
  106. package/es/feedback/NotificationBanner/index.mdx +2 -10
  107. package/es/feedback/PhaseBanner/index.mdx +2 -10
  108. package/es/feedback/WarningText/WarningText.stories.js +2 -1
  109. package/es/feedback/WarningText/__stories__/AssistiveText.js +11 -0
  110. package/es/feedback/WarningText/index.mdx +1 -5
  111. package/es/form/AutoComplete/__stories__/Default.js +1 -1
  112. package/es/form/AutoComplete/index.js +10 -5
  113. package/es/form/AutoComplete/index.mdx +7 -35
  114. package/es/form/Button/index.mdx +4 -20
  115. package/es/form/Checkbox/__stories__/ConditionalReveal.js +1 -1
  116. package/es/form/Checkbox/index.mdx +7 -35
  117. package/es/form/DateInputContainer/index.mdx +4 -20
  118. package/es/form/ErrorMessage/index.mdx +1 -5
  119. package/es/form/FileUpload/index.mdx +1 -5
  120. package/es/form/RadioContainer/__stories__/ConditionalReveal.js +1 -1
  121. package/es/form/RadioContainer/index.mdx +7 -35
  122. package/es/form/SearchContainer/index.js +5 -0
  123. package/es/form/SelectContainer/__stories__/Default.js +4 -4
  124. package/es/form/SelectContainer/index.mdx +3 -15
  125. package/es/form/SingleCharacterInputs/SingleCharacterInput.stories.js +12 -0
  126. package/es/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.js +13 -13
  127. package/{esm/form/SingleCharacterInputContainer → es/form/SingleCharacterInputs}/__stories__/WithDefaultError.js +7 -7
  128. package/{esm/form/SingleCharacterInputContainer → es/form/SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +14 -14
  129. package/{esm/form/SingleCharacterInputContainer → es/form/SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +11 -11
  130. package/es/form/SingleCharacterInputs/index.js +4 -0
  131. package/es/form/SingleCharacterInputs/index.mdx +24 -0
  132. package/es/form/TextArea/index.mdx +7 -35
  133. package/es/form/TextInput/__stories__/FixedWidths.js +6 -6
  134. package/es/form/TextInput/__stories__/FluidWidths.js +6 -6
  135. package/es/form/TextInput/index.mdx +8 -40
  136. package/es/form/index.js +2 -2
  137. package/es/govgr/Footer/index.js +4 -4
  138. package/es/layouts/Admin/index.js +1 -1
  139. package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
  140. package/es/layouts/Section/index.js +3 -0
  141. package/es/layouts/Stack/Stack.stories.js +12 -0
  142. package/es/layouts/Stack/__stories__/AlignItems.js +67 -0
  143. package/es/layouts/Stack/__stories__/Default.js +24 -0
  144. package/es/layouts/Stack/__stories__/JustifyContent.js +84 -0
  145. package/es/layouts/Stack/__stories__/NoWrap.js +26 -0
  146. package/es/layouts/Stack/__stories__/Row.js +25 -0
  147. package/es/layouts/Stack/__stories__/Spacing.js +55 -0
  148. package/es/layouts/Stack/index.js +2 -0
  149. package/es/layouts/index.js +3 -1
  150. package/es/navigation/BackLink/index.mdx +1 -5
  151. package/es/navigation/Breadcrumbs/index.mdx +1 -5
  152. package/es/navigation/Drawer/index.mdx +1 -5
  153. package/es/navigation/Dropdown/index.js +0 -1
  154. package/es/navigation/Dropdown/index.mdx +3 -15
  155. package/es/navigation/Link/index.mdx +5 -25
  156. package/es/navigation/NavList/index.mdx +2 -10
  157. package/es/navigation/Pagination/__stories__/Default.js +2 -2
  158. package/es/navigation/Pagination/__stories__/PaginationSmall.js +1 -1
  159. package/es/navigation/Pagination/__stories__/PaginationWithSmallFont.js +1 -1
  160. package/es/navigation/Pagination/__stories__/WithInactiveValues.js +2 -2
  161. package/es/navigation/Pagination/index.mdx +7 -14
  162. package/es/navigation/SkipLink/SkipLink.stories.js +8 -0
  163. package/es/navigation/SkipLink/__stories__/Default.js +12 -0
  164. package/es/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  165. package/es/navigation/Tabs/__stories__/Default.js +9 -5
  166. package/es/navigation/Tabs/index.js +1 -1
  167. package/es/navigation/Tabs/index.mdx +1 -5
  168. package/es/registry.js +20 -10
  169. package/es/typography/Heading/__stories__/Default.js +9 -4
  170. package/es/typography/Heading/index.mdx +1 -5
  171. package/es/typography/HeadingCaption/index.mdx +1 -5
  172. package/es/typography/Hint/__stories__/FontSizes.js +3 -3
  173. package/es/typography/Hint/index.mdx +1 -5
  174. package/es/typography/NormalText/__stories__/FontSizes.js +7 -7
  175. package/es/typography/NormalText/__stories__/Variants.js +4 -4
  176. package/es/typography/NormalText/index.mdx +3 -15
  177. package/es/typography/Paragraph/__stories__/FontSizes.js +7 -7
  178. package/es/typography/Paragraph/__stories__/LeadVariant.js +1 -1
  179. package/es/typography/Paragraph/__stories__/SmallVariant.js +1 -1
  180. package/es/typography/Paragraph/index.mdx +4 -20
  181. package/es/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  182. package/esm/app/CloseButton/index.js +3 -0
  183. package/{es/app/FilterSection → esm/app/FilterContainer}/index.js +4 -5
  184. package/esm/app/Footer/Footer.stories.playwright.json +2 -2
  185. package/esm/app/Footer/__stories__/DefaultCopyright.js +11 -9
  186. package/esm/app/Footer/__stories__/FooterAllInclusive.js +19 -13
  187. package/esm/app/Footer/__stories__/FooterWithLink.js +13 -11
  188. package/esm/app/Footer/__stories__/FooterWithLogo.js +9 -8
  189. package/esm/app/Footer/__stories__/FooterWithSecondaryNavigation.js +16 -12
  190. package/esm/app/Footer/__stories__/YearCopyright.js +9 -7
  191. package/esm/app/Footer/index.js +3 -5
  192. package/esm/app/Footer/index.mdx +4 -20
  193. package/esm/app/Header/Header.stories.playwright.json +1 -1
  194. package/esm/app/Header/__stories__/Default.js +1 -1
  195. package/esm/app/Header/__stories__/WithHeaderNavigation.js +5 -5
  196. package/esm/app/Header/__stories__/WithNavigation.js +1 -1
  197. package/esm/app/Header/__stories__/WithServiceName.js +1 -1
  198. package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +1 -1
  199. package/esm/app/Header/index.mdx +4 -21
  200. package/esm/app/Header/index.spec.js +2 -2
  201. package/esm/app/Modal/__stories__/Default.js +1 -1
  202. package/esm/app/Modal/index.mdx +1 -5
  203. package/esm/app/NotFound/index.js +4 -3
  204. package/esm/app/PageTitleContainer/index.js +5 -0
  205. package/esm/app/Panel/index.mdx +1 -5
  206. package/esm/app/PhaseBannerHeader/index.js +2 -2
  207. package/esm/app/PhaseBannerHeader/index.mdx +1 -5
  208. package/esm/app/QrCodeViewer/index.mdx +2 -10
  209. package/esm/app/index.js +3 -4
  210. package/esm/content/Accordion/index.mdx +2 -10
  211. package/esm/content/Blockquote/index.mdx +1 -5
  212. package/esm/content/Card/index.mdx +8 -40
  213. package/esm/content/Chip/__stories__/GroupOfChips.js +2 -2
  214. package/esm/content/Chip/index.js +1 -2
  215. package/esm/content/Chip/index.mdx +39 -0
  216. package/esm/content/Details/index.mdx +1 -5
  217. package/esm/content/List/__stories__/HorizontalList.js +1 -1
  218. package/esm/content/List/__stories__/WithExtraSpace.js +1 -1
  219. package/esm/content/List/index.mdx +3 -15
  220. package/esm/content/StepNav/__stories__/Default.js +3 -5
  221. package/esm/content/StepNav/__stories__/WithHints.js +2 -4
  222. package/esm/content/StepNav/index.mdx +21 -0
  223. package/esm/content/SummaryList/index.mdx +3 -15
  224. package/esm/content/Table/__stories__/DefinedWidth.js +3 -3
  225. package/esm/content/Table/index.js +4 -4
  226. package/esm/content/TaskList/__stories__/Default.js +5 -5
  227. package/esm/content/TaskList/index.mdx +21 -0
  228. package/esm/content/Timeline/__stories__/Default.js +2 -2
  229. package/esm/content/Timeline/index.mdx +23 -0
  230. package/esm/feedback/CopyToClipboard/index.mdx +2 -10
  231. package/esm/feedback/ErrorSummary/index.mdx +4 -20
  232. package/esm/feedback/NotificationBanner/index.mdx +2 -10
  233. package/esm/feedback/PhaseBanner/index.mdx +2 -10
  234. package/esm/feedback/WarningText/WarningText.stories.js +2 -1
  235. package/esm/feedback/WarningText/__stories__/AssistiveText.js +11 -0
  236. package/esm/feedback/WarningText/index.mdx +1 -5
  237. package/esm/form/AutoComplete/__stories__/Default.js +1 -1
  238. package/esm/form/AutoComplete/index.js +10 -5
  239. package/esm/form/AutoComplete/index.mdx +7 -35
  240. package/esm/form/Button/index.mdx +4 -20
  241. package/esm/form/Checkbox/__stories__/ConditionalReveal.js +1 -1
  242. package/esm/form/Checkbox/index.mdx +7 -35
  243. package/esm/form/DateInputContainer/index.mdx +4 -20
  244. package/esm/form/ErrorMessage/index.mdx +1 -5
  245. package/esm/form/FileUpload/index.mdx +1 -5
  246. package/esm/form/RadioContainer/__stories__/ConditionalReveal.js +1 -1
  247. package/esm/form/RadioContainer/index.mdx +7 -35
  248. package/esm/form/SearchContainer/index.js +5 -0
  249. package/esm/form/SelectContainer/__stories__/Default.js +4 -4
  250. package/esm/form/SelectContainer/index.mdx +3 -15
  251. package/esm/form/SingleCharacterInputs/SingleCharacterInput.stories.js +12 -0
  252. package/esm/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.js +13 -13
  253. package/{es/form/SingleCharacterInputContainer → esm/form/SingleCharacterInputs}/__stories__/WithDefaultError.js +7 -7
  254. package/{es/form/SingleCharacterInputContainer → esm/form/SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +14 -14
  255. package/{es/form/SingleCharacterInputContainer → esm/form/SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +11 -11
  256. package/esm/form/SingleCharacterInputs/index.js +4 -0
  257. package/esm/form/SingleCharacterInputs/index.mdx +24 -0
  258. package/esm/form/TextArea/index.mdx +7 -35
  259. package/esm/form/TextInput/__stories__/FixedWidths.js +6 -6
  260. package/esm/form/TextInput/__stories__/FluidWidths.js +6 -6
  261. package/esm/form/TextInput/index.mdx +8 -40
  262. package/esm/form/index.js +2 -2
  263. package/esm/govgr/Footer/index.js +4 -4
  264. package/esm/index.js +1 -1
  265. package/esm/layouts/Admin/index.js +1 -1
  266. package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
  267. package/esm/layouts/Section/index.js +3 -0
  268. package/esm/layouts/Stack/Stack.stories.js +12 -0
  269. package/esm/layouts/Stack/__stories__/AlignItems.js +67 -0
  270. package/esm/layouts/Stack/__stories__/Default.js +24 -0
  271. package/esm/layouts/Stack/__stories__/JustifyContent.js +84 -0
  272. package/esm/layouts/Stack/__stories__/NoWrap.js +26 -0
  273. package/esm/layouts/Stack/__stories__/Row.js +25 -0
  274. package/esm/layouts/Stack/__stories__/Spacing.js +55 -0
  275. package/esm/layouts/Stack/index.js +2 -0
  276. package/esm/layouts/index.js +3 -1
  277. package/esm/navigation/BackLink/index.mdx +1 -5
  278. package/esm/navigation/Breadcrumbs/index.mdx +1 -5
  279. package/esm/navigation/Drawer/index.mdx +1 -5
  280. package/esm/navigation/Dropdown/index.js +0 -1
  281. package/esm/navigation/Dropdown/index.mdx +3 -15
  282. package/esm/navigation/Link/index.mdx +5 -25
  283. package/esm/navigation/NavList/index.mdx +2 -10
  284. package/esm/navigation/Pagination/__stories__/Default.js +2 -2
  285. package/esm/navigation/Pagination/__stories__/PaginationSmall.js +1 -1
  286. package/esm/navigation/Pagination/__stories__/PaginationWithSmallFont.js +1 -1
  287. package/esm/navigation/Pagination/__stories__/WithInactiveValues.js +2 -2
  288. package/esm/navigation/Pagination/index.mdx +7 -14
  289. package/esm/navigation/SkipLink/SkipLink.stories.js +8 -0
  290. package/esm/navigation/SkipLink/__stories__/Default.js +12 -0
  291. package/esm/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  292. package/esm/navigation/Tabs/__stories__/Default.js +9 -5
  293. package/esm/navigation/Tabs/index.js +1 -1
  294. package/esm/navigation/Tabs/index.mdx +1 -5
  295. package/esm/registry.js +20 -10
  296. package/esm/typography/Heading/__stories__/Default.js +9 -4
  297. package/esm/typography/Heading/index.mdx +1 -5
  298. package/esm/typography/HeadingCaption/index.mdx +1 -5
  299. package/esm/typography/Hint/__stories__/FontSizes.js +3 -3
  300. package/esm/typography/Hint/index.mdx +1 -5
  301. package/esm/typography/NormalText/__stories__/FontSizes.js +7 -7
  302. package/esm/typography/NormalText/__stories__/Variants.js +4 -4
  303. package/esm/typography/NormalText/index.mdx +3 -15
  304. package/esm/typography/Paragraph/__stories__/FontSizes.js +7 -7
  305. package/esm/typography/Paragraph/__stories__/LeadVariant.js +1 -1
  306. package/esm/typography/Paragraph/__stories__/SmallVariant.js +1 -1
  307. package/esm/typography/Paragraph/index.mdx +4 -20
  308. package/esm/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  309. package/feedback/CopyToClipboard/index.mdx +2 -10
  310. package/feedback/ErrorSummary/index.mdx +4 -20
  311. package/feedback/NotificationBanner/index.mdx +2 -10
  312. package/feedback/PhaseBanner/index.mdx +2 -10
  313. package/feedback/WarningText/WarningText.stories.d.ts +1 -0
  314. package/feedback/WarningText/WarningText.stories.js +14 -0
  315. package/feedback/WarningText/__stories__/AssistiveText.d.ts +2 -0
  316. package/feedback/WarningText/__stories__/AssistiveText.js +24 -0
  317. package/feedback/WarningText/index.mdx +1 -5
  318. package/form/AutoComplete/__stories__/Default.js +1 -1
  319. package/form/AutoComplete/index.d.ts +3 -3
  320. package/form/AutoComplete/index.js +11 -6
  321. package/form/AutoComplete/index.mdx +7 -35
  322. package/form/Button/index.mdx +4 -20
  323. package/form/Checkbox/__stories__/ConditionalReveal.js +1 -1
  324. package/form/Checkbox/index.mdx +7 -35
  325. package/form/DateInputContainer/index.mdx +4 -20
  326. package/form/ErrorMessage/index.mdx +1 -5
  327. package/form/FileUpload/index.mdx +1 -5
  328. package/form/RadioContainer/__stories__/ConditionalReveal.js +1 -1
  329. package/form/RadioContainer/index.mdx +7 -35
  330. package/form/SearchContainer/index.d.ts +5 -0
  331. package/form/{SearchSection → SearchContainer}/index.js +5 -5
  332. package/form/SelectContainer/__stories__/Default.js +4 -4
  333. package/form/SelectContainer/index.mdx +3 -15
  334. package/form/SingleCharacterInputs/SingleCharacterInput.stories.d.ts +13 -0
  335. package/form/{SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js → SingleCharacterInputs/SingleCharacterInput.stories.js} +8 -8
  336. package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.js +13 -13
  337. package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.js +7 -7
  338. package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.js +14 -14
  339. package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.js +11 -11
  340. package/form/SingleCharacterInputs/index.d.ts +4 -0
  341. package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/index.js +9 -9
  342. package/form/SingleCharacterInputs/index.mdx +24 -0
  343. package/form/TextArea/index.mdx +7 -35
  344. package/form/TextInput/__stories__/FixedWidths.js +6 -6
  345. package/form/TextInput/__stories__/FluidWidths.js +6 -6
  346. package/form/TextInput/index.mdx +8 -40
  347. package/form/index.d.ts +2 -2
  348. package/form/index.js +8 -8
  349. package/govgr/Footer/index.js +4 -4
  350. package/layouts/Admin/index.d.ts +1 -1
  351. package/layouts/Admin/index.js +4 -4
  352. package/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
  353. package/layouts/Section/index.d.ts +3 -0
  354. package/{app/PageTitle → layouts/Section}/index.js +1 -23
  355. package/layouts/Stack/Stack.stories.d.ts +13 -0
  356. package/layouts/Stack/Stack.stories.js +101 -0
  357. package/layouts/Stack/__stories__/AlignItems.d.ts +2 -0
  358. package/layouts/Stack/__stories__/AlignItems.js +81 -0
  359. package/layouts/Stack/__stories__/Default.d.ts +2 -0
  360. package/layouts/Stack/__stories__/Default.js +38 -0
  361. package/layouts/Stack/__stories__/JustifyContent.d.ts +2 -0
  362. package/layouts/Stack/__stories__/JustifyContent.js +98 -0
  363. package/layouts/Stack/__stories__/NoWrap.d.ts +2 -0
  364. package/layouts/Stack/__stories__/NoWrap.js +40 -0
  365. package/layouts/Stack/__stories__/Row.d.ts +2 -0
  366. package/layouts/Stack/__stories__/Row.js +39 -0
  367. package/layouts/Stack/__stories__/Spacing.d.ts +2 -0
  368. package/layouts/Stack/__stories__/Spacing.js +69 -0
  369. package/layouts/Stack/index.d.ts +2 -0
  370. package/layouts/Stack/index.js +13 -0
  371. package/layouts/index.d.ts +2 -0
  372. package/layouts/index.js +21 -0
  373. package/navigation/BackLink/index.mdx +1 -5
  374. package/navigation/Breadcrumbs/index.mdx +1 -5
  375. package/navigation/Drawer/index.mdx +1 -5
  376. package/navigation/Dropdown/index.d.ts +0 -1
  377. package/navigation/Dropdown/index.js +0 -14
  378. package/navigation/Dropdown/index.mdx +3 -15
  379. package/navigation/Link/index.mdx +5 -25
  380. package/navigation/NavList/index.mdx +2 -10
  381. package/navigation/Pagination/__stories__/Default.js +2 -2
  382. package/navigation/Pagination/__stories__/PaginationSmall.js +1 -1
  383. package/navigation/Pagination/__stories__/PaginationWithSmallFont.js +1 -1
  384. package/navigation/Pagination/__stories__/WithInactiveValues.js +2 -2
  385. package/navigation/Pagination/index.mdx +7 -14
  386. package/navigation/SkipLink/SkipLink.stories.d.ts +9 -0
  387. package/navigation/SkipLink/SkipLink.stories.js +32 -0
  388. package/navigation/SkipLink/__stories__/Default.d.ts +2 -0
  389. package/navigation/SkipLink/__stories__/Default.js +26 -0
  390. package/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  391. package/navigation/Tabs/__stories__/Default.js +8 -4
  392. package/navigation/Tabs/index.js +1 -1
  393. package/navigation/Tabs/index.mdx +1 -5
  394. package/package.json +3 -3
  395. package/registry.d.ts +13 -6
  396. package/registry.js +25 -10
  397. package/src/app/CloseButton/index.tsx +4 -0
  398. package/src/app/{FilterSection → FilterContainer}/index.tsx +4 -5
  399. package/src/app/Footer/Footer.stories.playwright.json +2 -2
  400. package/src/app/Footer/__stories__/DefaultCopyright.tsx +27 -25
  401. package/src/app/Footer/__stories__/FooterAllInclusive.tsx +98 -89
  402. package/src/app/Footer/__stories__/FooterWithLink.tsx +48 -40
  403. package/src/app/Footer/__stories__/FooterWithLogo.tsx +41 -33
  404. package/src/app/Footer/__stories__/FooterWithSecondaryNavigation.tsx +22 -20
  405. package/src/app/Footer/__stories__/YearCopyright.tsx +24 -23
  406. package/src/app/Footer/index.mdx +4 -20
  407. package/src/app/Footer/index.tsx +3 -5
  408. package/src/app/Header/Header.stories.playwright.json +1 -1
  409. package/src/app/Header/__stories__/Default.tsx +4 -4
  410. package/src/app/Header/__stories__/WithHeaderNavigation.tsx +34 -32
  411. package/src/app/Header/__stories__/WithNavigation.tsx +4 -4
  412. package/src/app/Header/__stories__/WithServiceName.tsx +4 -4
  413. package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +4 -4
  414. package/src/app/Header/index.mdx +4 -21
  415. package/src/app/Header/index.spec.tsx +6 -1
  416. package/src/app/Modal/__stories__/Default.tsx +1 -1
  417. package/src/app/Modal/index.mdx +1 -5
  418. package/src/app/NotFound/index.tsx +5 -4
  419. package/src/app/PageTitleContainer/index.tsx +5 -0
  420. package/src/app/Panel/index.mdx +1 -5
  421. package/src/app/PhaseBannerHeader/index.mdx +1 -5
  422. package/src/app/PhaseBannerHeader/index.tsx +3 -3
  423. package/src/app/QrCodeViewer/index.mdx +2 -10
  424. package/src/app/index.ts +2 -3
  425. package/src/content/Accordion/index.mdx +2 -10
  426. package/src/content/Blockquote/index.mdx +1 -5
  427. package/src/content/Card/index.mdx +8 -40
  428. package/src/content/Chip/__stories__/GroupOfChips.tsx +3 -3
  429. package/src/content/Chip/index.mdx +39 -0
  430. package/src/content/Chip/index.tsx +1 -2
  431. package/src/content/Details/index.mdx +1 -5
  432. package/src/content/List/__stories__/HorizontalList.tsx +1 -1
  433. package/src/content/List/__stories__/WithExtraSpace.tsx +1 -1
  434. package/src/content/List/index.mdx +3 -15
  435. package/src/content/StepNav/__stories__/Default.tsx +3 -4
  436. package/src/content/StepNav/__stories__/WithHints.tsx +4 -4
  437. package/src/content/StepNav/index.mdx +21 -0
  438. package/src/content/SummaryList/index.mdx +3 -15
  439. package/src/content/Table/__stories__/DefinedWidth.tsx +3 -3
  440. package/src/content/Table/index.tsx +4 -4
  441. package/src/content/TaskList/__stories__/Default.tsx +5 -5
  442. package/src/content/TaskList/index.mdx +21 -0
  443. package/src/content/Timeline/__stories__/Default.tsx +55 -57
  444. package/src/content/Timeline/index.mdx +23 -0
  445. package/src/feedback/CopyToClipboard/index.mdx +2 -10
  446. package/src/feedback/ErrorSummary/index.mdx +4 -20
  447. package/src/feedback/NotificationBanner/index.mdx +2 -10
  448. package/src/feedback/PhaseBanner/index.mdx +2 -10
  449. package/src/feedback/WarningText/WarningText.stories.js +1 -0
  450. package/src/feedback/WarningText/__stories__/AssistiveText.tsx +10 -0
  451. package/src/feedback/WarningText/index.mdx +1 -5
  452. package/src/form/AutoComplete/__stories__/Default.tsx +1 -1
  453. package/src/form/AutoComplete/index.mdx +7 -35
  454. package/src/form/AutoComplete/index.tsx +6 -12
  455. package/src/form/Button/index.mdx +4 -20
  456. package/src/form/Checkbox/__stories__/ConditionalReveal.tsx +1 -1
  457. package/src/form/Checkbox/index.mdx +7 -35
  458. package/src/form/DateInputContainer/index.mdx +4 -20
  459. package/src/form/ErrorMessage/index.mdx +1 -5
  460. package/src/form/FileUpload/index.mdx +1 -5
  461. package/src/form/RadioContainer/__stories__/ConditionalReveal.tsx +1 -1
  462. package/src/form/RadioContainer/index.mdx +7 -35
  463. package/src/form/SearchContainer/index.tsx +6 -0
  464. package/src/form/SelectContainer/__stories__/Default.tsx +4 -4
  465. package/src/form/SelectContainer/index.mdx +3 -15
  466. package/src/form/SingleCharacterInputs/SingleCharacterInput.stories.js +13 -0
  467. package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.tsx +11 -11
  468. package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.tsx +11 -11
  469. package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.tsx +11 -11
  470. package/src/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.tsx +11 -11
  471. package/src/form/SingleCharacterInputs/index.mdx +24 -0
  472. package/src/form/SingleCharacterInputs/index.tsx +4 -0
  473. package/src/form/TextArea/index.mdx +7 -35
  474. package/src/form/TextInput/__stories__/FixedWidths.tsx +6 -6
  475. package/src/form/TextInput/__stories__/FluidWidths.tsx +6 -6
  476. package/src/form/TextInput/index.mdx +8 -40
  477. package/src/form/index.ts +2 -2
  478. package/src/govgr/Footer/index.tsx +8 -8
  479. package/src/layouts/Admin/index.tsx +1 -1
  480. package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
  481. package/src/layouts/Section/index.tsx +3 -0
  482. package/src/layouts/Stack/Stack.stories.js +12 -0
  483. package/src/layouts/Stack/__stories__/AlignItems.tsx +36 -0
  484. package/src/layouts/Stack/__stories__/Default.tsx +17 -0
  485. package/src/layouts/Stack/__stories__/JustifyContent.tsx +47 -0
  486. package/src/layouts/Stack/__stories__/NoWrap.tsx +17 -0
  487. package/src/layouts/Stack/__stories__/Row.tsx +17 -0
  488. package/src/layouts/Stack/__stories__/Spacing.tsx +35 -0
  489. package/src/layouts/Stack/index.tsx +3 -0
  490. package/src/layouts/index.ts +2 -0
  491. package/src/navigation/BackLink/index.mdx +1 -5
  492. package/src/navigation/Breadcrumbs/index.mdx +1 -5
  493. package/src/navigation/Drawer/index.mdx +1 -5
  494. package/src/navigation/Dropdown/index.mdx +3 -15
  495. package/src/navigation/Dropdown/index.tsx +0 -1
  496. package/src/navigation/Link/index.mdx +5 -25
  497. package/src/navigation/NavList/index.mdx +2 -10
  498. package/src/navigation/Pagination/__stories__/Default.tsx +2 -2
  499. package/src/navigation/Pagination/__stories__/PaginationSmall.tsx +1 -1
  500. package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +1 -1
  501. package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +2 -2
  502. package/src/navigation/Pagination/index.mdx +7 -14
  503. package/src/navigation/SkipLink/SkipLink.stories.js +9 -0
  504. package/src/navigation/SkipLink/__stories__/Default.tsx +15 -0
  505. package/src/navigation/Tabs/Tabs.stories.playwright.json +2 -2
  506. package/src/navigation/Tabs/__stories__/Default.tsx +2 -0
  507. package/src/navigation/Tabs/index.mdx +1 -5
  508. package/src/navigation/Tabs/index.tsx +1 -1
  509. package/src/registry.js +20 -10
  510. package/src/typography/Heading/__stories__/Default.tsx +6 -6
  511. package/src/typography/Heading/index.mdx +1 -5
  512. package/src/typography/HeadingCaption/index.mdx +1 -5
  513. package/src/typography/Hint/__stories__/FontSizes.tsx +3 -3
  514. package/src/typography/Hint/index.mdx +1 -5
  515. package/src/typography/NormalText/__stories__/FontSizes.tsx +7 -7
  516. package/src/typography/NormalText/__stories__/Variants.tsx +2 -2
  517. package/src/typography/NormalText/index.mdx +3 -15
  518. package/src/typography/Paragraph/__stories__/FontSizes.tsx +7 -7
  519. package/src/typography/Paragraph/__stories__/LeadVariant.tsx +1 -1
  520. package/src/typography/Paragraph/__stories__/SmallVariant.tsx +1 -1
  521. package/src/typography/Paragraph/index.mdx +4 -20
  522. package/src/utils/Kitchensink/KitchensinkDashboard.tsx +1 -1
  523. package/typography/Caption/index.d.ts +1 -1
  524. package/typography/Heading/__stories__/Default.js +9 -4
  525. package/typography/Heading/index.mdx +1 -5
  526. package/typography/HeadingCaption/index.mdx +1 -5
  527. package/typography/Hint/__stories__/FontSizes.js +3 -3
  528. package/typography/Hint/index.mdx +1 -5
  529. package/typography/NormalText/__stories__/FontSizes.js +7 -7
  530. package/typography/NormalText/__stories__/Variants.js +4 -4
  531. package/typography/NormalText/index.mdx +3 -15
  532. package/typography/Paragraph/__stories__/FontSizes.js +7 -7
  533. package/typography/Paragraph/__stories__/LeadVariant.js +1 -1
  534. package/typography/Paragraph/__stories__/SmallVariant.js +1 -1
  535. package/typography/Paragraph/index.mdx +4 -20
  536. package/utils/Kitchensink/KitchensinkDashboard.js +1 -1
  537. package/app/PageTitle/index.d.ts +0 -5
  538. package/es/app/PageTitle/index.js +0 -5
  539. package/es/form/SearchSection/index.js +0 -5
  540. package/es/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -12
  541. package/es/form/SingleCharacterInputContainer/index.js +0 -4
  542. package/es/form/SingleCharacterInputContainer/index.mdx +0 -36
  543. package/esm/app/PageTitle/index.js +0 -5
  544. package/esm/form/SearchSection/index.js +0 -5
  545. package/esm/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -12
  546. package/esm/form/SingleCharacterInputContainer/index.js +0 -4
  547. package/esm/form/SingleCharacterInputContainer/index.mdx +0 -36
  548. package/form/SearchSection/index.d.ts +0 -5
  549. package/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.d.ts +0 -13
  550. package/form/SingleCharacterInputContainer/index.d.ts +0 -4
  551. package/form/SingleCharacterInputContainer/index.mdx +0 -36
  552. package/src/app/PageTitle/index.tsx +0 -5
  553. package/src/form/SearchSection/index.tsx +0 -6
  554. package/src/form/SingleCharacterInputContainer/SingleCharacterInputContainer.stories.js +0 -13
  555. package/src/form/SingleCharacterInputContainer/index.mdx +0 -36
  556. package/src/form/SingleCharacterInputContainer/index.tsx +0 -4
  557. /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/Default.d.ts +0 -0
  558. /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithDefaultError.d.ts +0 -0
  559. /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageInvalidCode.d.ts +0 -0
  560. /package/form/{SingleCharacterInputContainer → SingleCharacterInputs}/__stories__/WithErrorMessageLessDigit.d.ts +0 -0
@@ -199,16 +199,16 @@ export const WithHints = () => {
199
199
  {index > 1 ? index : index + 1}
200
200
  </StepNavCircleNumber>
201
201
  )}
202
- <StepNavAccordionHeadingTitle>
203
- <StepNavAccordionHeadingText open={openItem[index]}>
202
+ <StepNavAccordionHeadingTitle>
203
+ <StepNavAccordionHeadingText>
204
204
  {field.title}
205
205
  {field.codename && (
206
206
  <>
207
207
  {' - '} {field.codename}
208
208
  </>
209
209
  )}
210
- </StepNavAccordionHeadingText>
211
- <Hint fontSize='14'>
210
+ </StepNavAccordionHeadingText>
211
+ <Hint fontSize={14}>
212
212
  {field.date}
213
213
  </Hint>
214
214
  </StepNavAccordionHeadingTitle>
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: step-nav
3
+ title: StepNav
4
+ ---
5
+
6
+ # StepNav
7
+ StepNav is a component that displays number of steps required to complete a process inside your application.
8
+
9
+ ```bash
10
+ import StepNav from '@digigov/ui/content/StepNav';
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ ### Default
16
+
17
+ <Story packageName="@digigov/ui" component="content/StepNav" story="Default.tsx" />
18
+
19
+ ### With hints
20
+
21
+ <Story packageName="@digigov/ui" component="content/StepNav" story="WithHints.tsx" />
@@ -13,11 +13,7 @@ import SummaryList from '@digigov/ui/content/SummaryList';
13
13
 
14
14
  ## How to use
15
15
 
16
- <Story
17
- packageName="@digigov/ui"
18
- component="content/SummaryList"
19
- story="Default.tsx"
20
- />
16
+ <Story packageName="@digigov/ui" component="content/SummaryList" story="Default.tsx" />
21
17
 
22
18
  ### Summary list with actions
23
19
 
@@ -25,21 +21,13 @@ Assistive technology users, like those who use a screen reader, may hear the lin
25
21
  To give more context, add visually hidden text to the links.
26
22
  This means a screen reader user will hear a meaningful action, like ‘Αλλαγή ονόματος’ or ‘Αλλαγή ημερομηνίας γέννησης’.
27
23
 
28
- <Story
29
- packageName="@digigov/ui"
30
- component="content/SummaryList"
31
- story="WithActions.tsx"
32
- />
24
+ <Story packageName="@digigov/ui" component="content/SummaryList" story="WithActions.tsx" />
33
25
 
34
26
  ### Summary list without borders
35
27
 
36
28
  If you do not include actions in your summary list and it would be better for your design to remove the separating borders, use the `border={false}` prop.
37
29
 
38
- <Story
39
- packageName="@digigov/ui"
40
- component="content/SummaryList"
41
- story="WithoutBorders.tsx"
42
- />
30
+ <Story packageName="@digigov/ui" component="content/SummaryList" story="WithoutBorders.tsx" />
43
31
 
44
32
  ## API
45
33
 
@@ -47,13 +47,13 @@ export const DefinedWidth = () => {
47
47
  <TableRow>
48
48
  {data.labels && (
49
49
  <>
50
- <TableHeadCell cellWidth="one-half">
50
+ <TableHeadCell width='50%'>
51
51
  {data.labels.name}
52
52
  </TableHeadCell>
53
- <TableHeadCell cellWidth="one-quarter">
53
+ <TableHeadCell width='25%'>
54
54
  {data.labels.role}
55
55
  </TableHeadCell>
56
- <TableHeadCell cellWidth="one-quarter">
56
+ <TableHeadCell width='25%'>
57
57
  {data.labels.email}
58
58
  </TableHeadCell>
59
59
  </>
@@ -48,12 +48,12 @@ export const TableSortLabel = React.forwardRef<
48
48
  <TableSortIconContainer marginLeft={1}>
49
49
  <CaretIcon
50
50
  direction={'up'}
51
- size="md"
51
+ size="sm"
52
52
  variant={direction === 1 ? 'dark' : 'gray'}
53
53
  />
54
54
  <CaretIcon
55
55
  direction={'down'}
56
- size="md"
56
+ size="sm"
57
57
  variant={direction === -1 ? 'dark' : 'gray'}
58
58
  />
59
59
  </TableSortIconContainer>
@@ -78,7 +78,7 @@ export const TableSortLabel = React.forwardRef<
78
78
  direction={'up'}
79
79
  marginRight={1}
80
80
  marginTop={1}
81
- size="md"
81
+ size="sm"
82
82
  />
83
83
  {labels.asc}
84
84
  </NavVerticalItem>
@@ -100,7 +100,7 @@ export const TableSortLabel = React.forwardRef<
100
100
  direction={'down'}
101
101
  marginRight={1}
102
102
  marginTop={1}
103
- size="md"
103
+ size="sm"
104
104
  />
105
105
  {labels.desc}
106
106
  </NavVerticalItem>
@@ -82,16 +82,16 @@ export const Default = () => (
82
82
  let tagColor;
83
83
  switch (task.status) {
84
84
  case 'Ολοκληρωθηκε':
85
- tagColor = 'completed';
85
+ tagColor = 'info';
86
86
  break;
87
87
  case 'Σε εξελιξη':
88
- tagColor = 'in-progress';
88
+ tagColor = 'primary';
89
89
  break;
90
90
  case 'Δεν εχει ξεκινησει':
91
- tagColor = 'not-started';
91
+ tagColor = 'secondary';
92
92
  break;
93
93
  case 'Σε αναμονη':
94
- tagColor = 'not-started';
94
+ tagColor = 'secondary';
95
95
  break;
96
96
  }
97
97
  return (
@@ -100,7 +100,7 @@ export const Default = () => (
100
100
  <LinkBase>{task.text}</LinkBase>
101
101
  </SummaryListItemKey>
102
102
  <SummaryListItemAction>
103
- <TaskListItemTag status={tagColor}>
103
+ <TaskListItemTag color={tagColor}>
104
104
  {task.status}
105
105
  </TaskListItemTag>
106
106
  </SummaryListItemAction>
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: task-list
3
+ title: TaskList
4
+ ---
5
+
6
+ # TaskList
7
+ TaskList is a component that displays number of steps required to complete a process inside your application.
8
+
9
+ ```bash
10
+ import TaskList from '@digigov/ui/content/TaskList';
11
+ ```
12
+
13
+ ## How to use
14
+
15
+ ### Default
16
+
17
+ <Story packageName="@digigov/ui" component="content/TaskList" story="Default.tsx" />
18
+
19
+ ## API
20
+
21
+ <PropTypes packageName="@digigov/ui" component="TaskList" />
@@ -132,64 +132,62 @@ export const Default = () => (
132
132
  {data &&
133
133
  data.map((field, index) => {
134
134
  return (
135
- <>
136
- <TimelineItem key={index} marginBottom={10}>
137
- <TimelineHeading size="md" marginBottom={2}>
138
- {field.title}
139
- {field.codename && (
140
- <>
141
- {' - '} {field.codename}
142
- </>
143
- )}
144
- </TimelineHeading>
145
- <Hint>{field.date}</Hint>
146
- <TimelineContent>
147
- {field.details && (
148
- <SummaryList>
149
- {field.details.map((field, index) => {
150
- return (
151
- <SummaryListItem key={index}>
152
- <SummaryListItemKey>{field.name}</SummaryListItemKey>
153
- <SummaryListItemValue>
154
- {field.value}
155
- </SummaryListItemValue>
156
- {field.actions && (
157
- <SummaryListItemAction>
158
- <ButtonGroup>
159
- {field.actions &&
160
- field.actions.map((action, subIndex) => {
161
- return (
162
- <Button key={subIndex} variant="link">
163
- {action}
164
- </Button>
165
- );
166
- })}
167
- </ButtonGroup>
168
- </SummaryListItemAction>
169
- )}
170
- </SummaryListItem>
171
- );
172
- })}
173
- </SummaryList>
174
- )}
175
- </TimelineContent>
176
- <TimelineActions>
177
- <ButtonGroup>
178
- {(field.actions || []).map((action, subIndex) => (
179
- <Button key={subIndex} variant="link">
180
- {action.label}
181
- </Button>
182
- ))}
183
- <Button color="secondary" variant="link">
184
- Προβολή εγγράφου
135
+ <TimelineItem key={index} marginBottom={10}>
136
+ <TimelineHeading size="md" marginBottom={2}>
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}
185
180
  </Button>
186
- <Button color="secondary" variant="link">
187
- Λήψη PDF
188
- </Button>
189
- </ButtonGroup>
190
- </TimelineActions>
191
- </TimelineItem>
192
- </>
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>
193
191
  );
194
192
  })}
195
193
  </Timeline>
@@ -0,0 +1,23 @@
1
+ ---
2
+ id: timeline
3
+ title: Timeline
4
+ ---
5
+
6
+ # Timeline
7
+ A timeline is a useful way to display a whole range of information and/or data points to a user.
8
+ Keeping things organized in logical sequence timeline helps to keep track of what’s happening.
9
+ User can better understand what has happened and also understand what the next steps should be.
10
+
11
+ ```bash
12
+ import Timeline from '@digigov/ui/content/Timeline';
13
+ ```
14
+
15
+ ## How to use
16
+
17
+ ### Default
18
+
19
+ <Story packageName="@digigov/ui" component="content/Timeline" story="Default.tsx" />
20
+
21
+ ## API
22
+
23
+ <PropTypes packageName="@digigov/ui" component="Timeline" />
@@ -11,19 +11,11 @@ import CopyToClipboard from '@digigov/ui/feedback/CopyToClipboard';
11
11
 
12
12
  ### Default
13
13
 
14
- <Story
15
- packageName="@digigov/ui"
16
- component="feedback/CopyToClipboard"
17
- story="Default.tsx"
18
- />
14
+ <Story packageName="@digigov/ui" component="feedback/CopyToClipboard" story="Default.tsx" />
19
15
 
20
16
  ### Banner
21
17
 
22
- <Story
23
- packageName="@digigov/ui"
24
- component="feedback/CopyToClipboard"
25
- story="Banner.tsx"
26
- />
18
+ <Story packageName="@digigov/ui" component="feedback/CopyToClipboard" story="Banner.tsx" />
27
19
 
28
20
  ## API
29
21
 
@@ -15,11 +15,7 @@ import ErrorSummary from '@digigov/ui/feedback/ErrorSummary';
15
15
 
16
16
  ## How to use
17
17
 
18
- <Story
19
- packageName="@digigov/ui"
20
- component="feedback/ErrorSummary"
21
- story="Default.tsx"
22
- />
18
+ <Story packageName="@digigov/ui" component="feedback/ErrorSummary" story="Default.tsx" />
23
19
 
24
20
  ### Linking from the error summary to each answer
25
21
 
@@ -27,29 +23,17 @@ You must link the errors in the error summary to the answer they relate to.
27
23
 
28
24
  For questions that require a user to answer using a single field, like a file upload, select, textarea, text input or character count, link to the field.
29
25
 
30
- <Story
31
- packageName="@digigov/ui"
32
- component="feedback/ErrorSummary"
33
- story="LinkedToInput.tsx"
34
- />
26
+ <Story packageName="@digigov/ui" component="feedback/ErrorSummary" story="LinkedToInput.tsx" />
35
27
 
36
28
  When a user has to enter their answer into multiple fields, such as the day, month and year fields in the date input component, link to the first field that contains an error.
37
29
 
38
30
  If you do not know which field contains an error, link to the first field.
39
31
 
40
- <Story
41
- packageName="@digigov/ui"
42
- component="feedback/ErrorSummary"
43
- story="LinkedToField.tsx"
44
- />
32
+ <Story packageName="@digigov/ui" component="feedback/ErrorSummary" story="LinkedToField.tsx" />
45
33
 
46
34
  For questions that require a user to select one or more options from a list using radios or checkboxes, link to the first radio or checkbox.
47
35
 
48
- <Story
49
- packageName="@digigov/ui"
50
- component="feedback/ErrorSummary"
51
- story="LinkedToCheckbox.tsx"
52
- />
36
+ <Story packageName="@digigov/ui" component="feedback/ErrorSummary" story="LinkedToCheckbox.tsx" />
53
37
 
54
38
  ## API
55
39
 
@@ -19,19 +19,11 @@ Use a ‘neutral’ blue notification banner if the user needs to know about a p
19
19
 
20
20
  Use a ‘neutral’ notification banner if the user needs to know about something that’s happening elsewhere in the service.
21
21
 
22
- <Story
23
- packageName="@digigov/ui"
24
- component="feedback/NotificationBanner"
25
- story="Default.tsx"
26
- />
22
+ <Story packageName="@digigov/ui" component="feedback/NotificationBanner" story="Default.tsx" />
27
23
 
28
24
  You can also use a notification banner to tell the user about the outcome of something they’ve just done - but they have not finished using the service, so it does not make sense to use a confirmation page.
29
25
 
30
- <Story
31
- packageName="@digigov/ui"
32
- component="feedback/NotificationBanner"
33
- story="Success.tsx"
34
- />
26
+ <Story packageName="@digigov/ui" component="feedback/NotificationBanner" story="Success.tsx" />
35
27
 
36
28
  ## API
37
29
 
@@ -15,19 +15,11 @@ import PhaseBanner from '@digigov/ui/feedback/PhaseBanner';
15
15
 
16
16
  Your banner must be directly under the blue GOV.GR header and colour bar.
17
17
 
18
- <Story
19
- packageName="@digigov/ui"
20
- component="feedback/PhaseBanner"
21
- story="Default.tsx"
22
- />
18
+ <Story packageName="@digigov/ui" component="feedback/PhaseBanner" story="Default.tsx" />
23
19
 
24
20
  ### Underlined
25
21
 
26
- <Story
27
- packageName="@digigov/ui"
28
- component="feedback/PhaseBanner"
29
- story="Underlined.tsx"
30
- />
22
+ <Story packageName="@digigov/ui" component="feedback/PhaseBanner"story="Underlined.tsx" />
31
23
 
32
24
  ## API
33
25
 
@@ -8,3 +8,4 @@ export default {
8
8
  displayName: 'WarningText',
9
9
  };
10
10
  export * from '@digigov/ui/feedback/WarningText/__stories__/Default';
11
+ export * from '@digigov/ui/feedback/WarningText/__stories__/AssistiveText';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { WarningText } from '@digigov/ui/feedback/WarningText';
3
+
4
+ export const AssistiveText = () => (
5
+ <WarningText assistiveText='Σημαντικό'>
6
+ Μπορεί να σας επιβληθεί πρόστιμο έως και 5.000 ευρώ εάν δεν εγγραφείτε.
7
+ </WarningText>
8
+ );
9
+
10
+ export default AssistiveText;
@@ -14,11 +14,7 @@ import WarningText from '@digigov/ui/feedback/WarningText';
14
14
  You might need to rewrite the hidden text ("Προσοχή" in the example) to make it appropriate for your context.
15
15
  This will be used by screen-readers.
16
16
 
17
- <Story
18
- packageName="@digigov/ui"
19
- component="feedback/WarningText"
20
- story="Default.tsx"
21
- />
17
+ <Story packageName="@digigov/ui" component="feedback/WarningText" story="Default.tsx" />
22
18
 
23
19
  ## API
24
20
 
@@ -7,7 +7,7 @@ import { FieldContainer } from '@digigov/ui/form/FieldContainer';
7
7
  export const Default = () => (
8
8
  <div>
9
9
  <FieldContainer>
10
- <AutoComplete source={suggest} cellWidth="one-third" id="govgr" />
10
+ <AutoComplete source={suggest} width='33.3%' id="govgr" />
11
11
  </FieldContainer>
12
12
  <Button>Υποβολή</Button>
13
13
  </div>
@@ -16,61 +16,33 @@ import AutoComplete from '@digigov/ui/form/AutoComplete';
16
16
 
17
17
  ### AutoComplete
18
18
 
19
- <Story
20
- packageName="@digigov/ui"
21
- component="form/AutoComplete"
22
- story="Default.tsx"
23
- />
19
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="Default.tsx" />
24
20
 
25
21
  ### AutoComplete with auto select
26
22
 
27
- <Story
28
- packageName="@digigov/ui"
29
- component="form/AutoComplete"
30
- story="WithAutoSelect.tsx"
31
- />
23
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="WithAutoSelect.tsx" />
32
24
 
33
25
  ### AutoComplete with inline style
34
26
 
35
- <Story
36
- packageName="@digigov/ui"
37
- component="form/AutoComplete"
38
- story="WithInLine.tsx"
39
- />
27
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="WithInLine.tsx" />
40
28
 
41
29
  ### AutoComplete with default value
42
30
 
43
- <Story
44
- packageName="@digigov/ui"
45
- component="form/AutoComplete"
46
- story="WithDefaultValue.tsx"
47
- />
31
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="WithDefaultValue.tsx" />
48
32
 
49
33
  ### AutoComplete with placeholder
50
34
 
51
- <Story
52
- packageName="@digigov/ui"
53
- component="form/AutoComplete"
54
- story="WithPlaceHolder.tsx"
55
- />
35
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="WithPlaceHolder.tsx" />
56
36
 
57
37
  ### AutoComplete with all option's values
58
38
 
59
- <Story
60
- packageName="@digigov/ui"
61
- component="form/AutoComplete"
62
- story="WithShowAllValues.tsx"
63
- />
39
+ <Story packageName="@digigov/ui" component="form/AutoComplete"story="WithShowAllValues.tsx" />
64
40
 
65
41
  ### AutoComplete with min length
66
42
 
67
43
  This is the minimum number of characters that should be entered before the autocomplete will attempt to suggest options(in above example is 2)
68
44
 
69
- <Story
70
- packageName="@digigov/ui"
71
- component="form/AutoComplete"
72
- story="WithMinLength.tsx"
73
- />
45
+ <Story packageName="@digigov/ui" component="form/AutoComplete" story="WithMinLength.tsx" />
74
46
 
75
47
  ## API
76
48
 
@@ -7,13 +7,13 @@ import AutoCompleteResultList from '@digigov/react-core/AutoCompleteResultList';
7
7
  import AutoCompleteResultListItem from '@digigov/react-core/AutoCompleteResultListItem';
8
8
  import AutoCompleteWrapper from '@digigov/react-core/AutoCompleteWrapper';
9
9
 
10
- import DropdownArrowDown from '@digigov/react-core/DropdownArrowDown';
11
10
  import Status from '@digigov/ui/form/AutoComplete/Status';
12
11
  import {
13
12
  isIosDevice,
14
13
  keyCodes,
15
14
  isPrintableKeyCode,
16
15
  } from '@digigov/ui/form/AutoComplete/utils';
16
+ import { CaretIcon } from '@digigov/react-icons/CaretIcon';
17
17
 
18
18
  export interface AutoCompleteProps {
19
19
  source: (query: string, syncResults: (options: string[]) => void) => void;
@@ -28,13 +28,7 @@ export interface AutoCompleteProps {
28
28
  suggestion?: (value: any) => any;
29
29
  inputValue?: (value: any) => string;
30
30
  };
31
- cellWidth?:
32
- | 'one-third'
33
- | 'one-quarter'
34
- | 'one-half'
35
- | 'two-thirds'
36
- | 'three-quarters'
37
- | 'full';
31
+ width?: '25%' | '33.3%' | '50%' | '66.6%' | '75%' | '100%' | 'full';
38
32
  autoselect?: boolean;
39
33
  defaultValue?: string;
40
34
  displayMenu?: 'overlay' | 'inline';
@@ -64,7 +58,7 @@ export type NewQueryProps = { menuOpen?: boolean; query?: string };
64
58
 
65
59
  export default class AutoComplete extends Component<AutoCompleteProps, State> {
66
60
  static defaultProps = {
67
- cellWidth: 'one-third',
61
+ width: '33.3%',
68
62
  autoselect: false,
69
63
  defaultValue: '',
70
64
  displayMenu: 'overlay',
@@ -81,7 +75,7 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
81
75
  tNoResults: (): string => 'No results found',
82
76
  tAssistiveHint: (): string =>
83
77
  'When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.',
84
- dropdownArrow: DropdownArrowDown as React.ElementType,
78
+ dropdownArrow: (props) => (<CaretIcon direction="down" size="sm" {...props} />),
85
79
  };
86
80
 
87
81
  elementReferences = {};
@@ -469,7 +463,7 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
469
463
  render(): JSX.Element {
470
464
  const {
471
465
  id,
472
- cellWidth,
466
+ width,
473
467
  displayMenu,
474
468
  minLength,
475
469
  name,
@@ -527,7 +521,7 @@ export default class AutoComplete extends Component<AutoCompleteProps, State> {
527
521
  : null;
528
522
 
529
523
  return (
530
- <AutoCompleteWrapper onKeyDown={this.handleKeyDown} cellWidth={cellWidth}>
524
+ <AutoCompleteWrapper onKeyDown={this.handleKeyDown} width={width}>
531
525
  <Status
532
526
  id={id}
533
527
  length={options.length}