@digigov/ui 2.0.0-b4cd6916 → 2.0.0-d0adc9fb

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 (879) hide show
  1. package/app/Footer/__stories__/FooterWithText/index.js +1 -1
  2. package/app/Footer/__stories__/FooterWithText.js.map +2 -2
  3. package/app/Header/__stories__/WithServiceNameAndLogo/index.js +2 -2
  4. package/app/Header/__stories__/WithServiceNameAndLogo.js.map +2 -2
  5. package/app/Loader/index.d.ts +1 -1
  6. package/app/Loader/index.js +1 -1
  7. package/app/Loader/index.js.map +1 -1
  8. package/app/Loader/index.native/index.js +102 -0
  9. package/{api → app/Loader/index.native}/package.json +1 -1
  10. package/app/Loader/index.native.d.ts +3 -0
  11. package/app/Loader/index.native.js.map +7 -0
  12. package/app/Loader/index.web/index.js +2 -0
  13. package/{api/APIProvider → app/Loader/index.web}/package.json +1 -1
  14. package/app/Loader/index.web.d.ts +1 -0
  15. package/app/Loader/index.web.js.map +7 -0
  16. package/app/Masthead/Masthead.stories/index.js +2 -0
  17. package/app/Masthead/Masthead.stories.d.ts +1 -0
  18. package/app/Masthead/Masthead.stories.js.map +2 -2
  19. package/app/Masthead/__stories__/Default/index.js +1 -1
  20. package/app/Masthead/__stories__/Default.js.map +2 -2
  21. package/app/Masthead/__stories__/Secondary/index.js +13 -0
  22. package/app/Masthead/__stories__/Secondary/package.json +6 -0
  23. package/app/Masthead/__stories__/Secondary.d.ts +3 -0
  24. package/app/Masthead/__stories__/Secondary.js.map +7 -0
  25. package/app/Masthead/__stories__/WithElements/index.js +1 -5
  26. package/app/Masthead/__stories__/WithElements.js.map +2 -2
  27. package/app/Masthead/__stories__/WithLogo/index.js +1 -5
  28. package/app/Masthead/__stories__/WithLogo.js.map +2 -2
  29. package/app/Modal/Modal.stories.js.map +2 -2
  30. package/app/Modal/__stories__/Auto/index.js +1 -5
  31. package/app/Modal/__stories__/Auto.js.map +2 -2
  32. package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +2 -2
  33. package/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js.map +2 -2
  34. package/app/QrCodeScanner/__stories__/Default.js.map +1 -1
  35. package/app/QrCodeScanner/index.js +1 -1
  36. package/app/QrCodeScanner/index.js.map +2 -2
  37. package/app/QrCodeViewer/index.js +1 -1
  38. package/app/QrCodeViewer/index.js.map +2 -2
  39. package/app/QrCodeViewer/qrcodegen.js.map +1 -1
  40. package/app/QrCodeViewer/types.d.ts +6 -6
  41. package/app/QrCodeViewer/utils.js.map +2 -2
  42. package/app/Skeleton/__stories__/SpecificWidthAndHeight.js.map +2 -2
  43. package/app/ThemeOptions/index.js +0 -4
  44. package/app/ThemeOptions/index.js.map +2 -2
  45. package/app/hooks/useHighlightLinks.js.map +2 -2
  46. package/app/hooks/useTheme/index.js +3 -1
  47. package/app/hooks/useTheme.js.map +2 -2
  48. package/cjs/app/Footer/__stories__/FooterWithText/index.js +1 -1
  49. package/cjs/app/Footer/__stories__/FooterWithText.js.map +2 -2
  50. package/cjs/app/Header/__stories__/WithServiceNameAndLogo.js.map +3 -3
  51. package/cjs/app/Loader/index.js +3 -3
  52. package/cjs/app/Loader/index.js.map +2 -2
  53. package/cjs/app/Loader/index.native/index.js +135 -0
  54. package/cjs/app/Loader/index.native.js.map +7 -0
  55. package/cjs/{test-utils/delay → app/Loader/index.web}/index.js +6 -19
  56. package/cjs/app/Loader/index.web.js.map +7 -0
  57. package/cjs/app/Masthead/Masthead.stories/index.js +3 -0
  58. package/cjs/app/Masthead/Masthead.stories.js.map +2 -2
  59. package/cjs/app/Masthead/__stories__/Default/index.js +1 -1
  60. package/cjs/app/Masthead/__stories__/Default.js.map +2 -2
  61. package/cjs/app/Masthead/__stories__/Secondary/index.js +46 -0
  62. package/cjs/app/Masthead/__stories__/Secondary.js.map +7 -0
  63. package/cjs/app/Masthead/__stories__/WithElements/index.js +1 -1
  64. package/cjs/app/Masthead/__stories__/WithElements.js.map +2 -2
  65. package/cjs/app/Masthead/__stories__/WithLogo/index.js +1 -1
  66. package/cjs/app/Masthead/__stories__/WithLogo.js.map +2 -2
  67. package/cjs/app/Modal/Modal.stories.js.map +2 -2
  68. package/cjs/app/Modal/__stories__/Auto.js.map +2 -2
  69. package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion/index.js +2 -2
  70. package/cjs/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.js.map +2 -2
  71. package/cjs/app/QrCodeScanner/__stories__/Default.js.map +1 -1
  72. package/cjs/app/QrCodeScanner/index.js +1 -1
  73. package/cjs/app/QrCodeScanner/index.js.map +2 -2
  74. package/cjs/app/QrCodeViewer/index.js +1 -1
  75. package/cjs/app/QrCodeViewer/index.js.map +2 -2
  76. package/cjs/app/QrCodeViewer/qrcodegen.js.map +1 -1
  77. package/cjs/app/QrCodeViewer/types.js.map +1 -1
  78. package/cjs/app/QrCodeViewer/utils.js.map +2 -2
  79. package/cjs/app/Skeleton/__stories__/SpecificWidthAndHeight.js.map +2 -2
  80. package/cjs/app/ThemeOptions/index.js +0 -4
  81. package/cjs/app/ThemeOptions/index.js.map +2 -2
  82. package/cjs/app/hooks/useHighlightLinks.js.map +2 -2
  83. package/cjs/app/hooks/useTheme/index.js +3 -1
  84. package/cjs/app/hooks/useTheme.js.map +2 -2
  85. package/cjs/content/Accordion/__stories__/Auto.js.map +1 -1
  86. package/cjs/content/Accordion/auto.js.map +2 -2
  87. package/cjs/content/Accordion/index.js.map +2 -2
  88. package/cjs/content/List/__stories__/Default.js.map +2 -2
  89. package/cjs/content/Markdown/Markdown.stories.js.map +2 -2
  90. package/cjs/content/Markdown/__stories__/Default/index.js +1 -1
  91. package/cjs/content/Markdown/__stories__/Default.js.map +2 -2
  92. package/cjs/content/Markdown/index.js +4 -1
  93. package/cjs/content/Markdown/index.js.map +2 -2
  94. package/cjs/content/SafeHTML/SafeHTML.stories.js.map +2 -2
  95. package/cjs/content/SafeHTML/__stories__/Default/index.js +1 -1
  96. package/cjs/content/SafeHTML/__stories__/Default.js.map +2 -2
  97. package/cjs/content/SafeHTML/index.js.map +2 -2
  98. package/cjs/content/StepNav/__stories__/Auto.js.map +2 -2
  99. package/cjs/content/StepNav/auto/index.js +2 -2
  100. package/cjs/content/StepNav/auto.js.map +3 -3
  101. package/cjs/content/Table/Table.stories/index.js +3 -3
  102. package/cjs/content/Table/Table.stories.js.map +2 -2
  103. package/cjs/content/Table/TableFloatingScroll.js.map +2 -2
  104. package/cjs/content/Table/__stories__/{Densed → Dense}/index.js +9 -9
  105. package/cjs/content/Table/__stories__/{Densed.js.map → Dense.js.map} +3 -3
  106. package/cjs/content/Table/__stories__/WithLoader/index.js +3 -5
  107. package/cjs/content/Table/__stories__/WithLoader.js.map +3 -3
  108. package/cjs/content/Table/hooks/useSort/index.js +1 -2
  109. package/cjs/content/Table/hooks/useSort.js.map +3 -3
  110. package/cjs/content/Table/index.js +5 -5
  111. package/cjs/content/Table/index.js.map +2 -2
  112. package/cjs/feedback/CopyToClipboard/__stories__/Default/index.js +1 -1
  113. package/cjs/feedback/CopyToClipboard/__stories__/Default.js.map +2 -2
  114. package/cjs/feedback/CopyToClipboard/index.js +1 -1
  115. package/cjs/feedback/CopyToClipboard/index.js.map +2 -2
  116. package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +1 -2
  117. package/cjs/feedback/ErrorSummary/__stories__/LinkedToInput.js.map +3 -3
  118. package/cjs/form/AutoComplete/Status/index.js.map +1 -1
  119. package/cjs/form/AutoComplete/__stories__/Multiple/index.js +9 -1
  120. package/cjs/form/AutoComplete/__stories__/Multiple.js.map +2 -2
  121. package/cjs/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +10 -1
  122. package/cjs/form/AutoComplete/__stories__/MultipleShowingTwoSelected.js.map +2 -2
  123. package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +10 -1
  124. package/cjs/form/AutoComplete/__stories__/MultipleWithDefaultValues.js.map +2 -2
  125. package/cjs/form/AutoComplete/__stories__/MultipleWithMinLength.js.map +1 -1
  126. package/cjs/form/AutoComplete/__stories__/WithShowAllValues/index.js +1 -8
  127. package/cjs/form/AutoComplete/__stories__/WithShowAllValues.js.map +2 -2
  128. package/cjs/form/AutoComplete/index.js +64 -53
  129. package/cjs/form/AutoComplete/index.js.map +3 -3
  130. package/cjs/form/DateInputContainer/__stories__/MultipleQuestions/index.js +1 -1
  131. package/cjs/form/DateInputContainer/__stories__/MultipleQuestions.js.map +1 -1
  132. package/cjs/form/SearchContainer/SearchContainer.stories/index.js +46 -0
  133. package/cjs/form/SearchContainer/SearchContainer.stories.js.map +7 -0
  134. package/cjs/{api/APIProvider → form/SearchContainer/__stories__/Default}/index.js +11 -27
  135. package/cjs/form/SearchContainer/__stories__/Default.js.map +7 -0
  136. package/cjs/form/TextArea/__stories__/Default/index.js +1 -2
  137. package/cjs/form/TextArea/__stories__/Default.js.map +3 -3
  138. package/cjs/form/TextArea/__stories__/DisabledInput/index.js +1 -2
  139. package/cjs/form/TextArea/__stories__/DisabledInput.js.map +3 -3
  140. package/cjs/form/TextArea/__stories__/LimitedCharacters/index.js +1 -2
  141. package/cjs/form/TextArea/__stories__/LimitedCharacters.js.map +3 -3
  142. package/cjs/form/TextArea/__stories__/WithDeclaredRows/index.js +1 -2
  143. package/cjs/form/TextArea/__stories__/WithDeclaredRows.js.map +3 -3
  144. package/cjs/form/TextArea/__stories__/WithErrorMessage/index.js +1 -2
  145. package/cjs/form/TextArea/__stories__/WithErrorMessage.js.map +3 -3
  146. package/cjs/form/TextArea/__stories__/WithHint/index.js +1 -2
  147. package/cjs/form/TextArea/__stories__/WithHint.js.map +3 -3
  148. package/cjs/form/TextInput/__stories__/AskingForNumbers/index.js +1 -2
  149. package/cjs/form/TextInput/__stories__/AskingForNumbers.js.map +3 -3
  150. package/cjs/form/TextInput/__stories__/Default/index.js +1 -2
  151. package/cjs/form/TextInput/__stories__/Default.js.map +3 -3
  152. package/cjs/form/TextInput/__stories__/DisabledInput/index.js +1 -2
  153. package/cjs/form/TextInput/__stories__/DisabledInput.js.map +3 -3
  154. package/cjs/form/TextInput/__stories__/DisabledInputWithValue/index.js +2 -3
  155. package/cjs/form/TextInput/__stories__/DisabledInputWithValue.js.map +3 -3
  156. package/cjs/form/TextInput/__stories__/FixedWidths/index.js +1 -2
  157. package/cjs/form/TextInput/__stories__/FixedWidths.js.map +3 -3
  158. package/cjs/form/TextInput/__stories__/FluidWidths/index.js +1 -2
  159. package/cjs/form/TextInput/__stories__/FluidWidths.js.map +3 -3
  160. package/cjs/form/TextInput/__stories__/WithErrorMessage/index.js +1 -2
  161. package/cjs/form/TextInput/__stories__/WithErrorMessage.js.map +3 -3
  162. package/cjs/form/TextInput/__stories__/WithHint/index.js +1 -2
  163. package/cjs/form/TextInput/__stories__/WithHint.js.map +3 -3
  164. package/cjs/i18n/index.js +19 -2
  165. package/cjs/i18n/index.js.map +2 -2
  166. package/cjs/i18n/locales/el/index.js +25 -2
  167. package/cjs/i18n/locales/el.js.map +2 -2
  168. package/cjs/i18n/locales/en/index.js +25 -2
  169. package/cjs/i18n/locales/en.js.map +2 -2
  170. package/cjs/{layouts/Basic/Masthead → icons/IconBase}/index.js +8 -12
  171. package/cjs/icons/IconBase/index.js.map +7 -0
  172. package/cjs/{utils → icons}/SvgIcon/index.js +3 -5
  173. package/cjs/icons/SvgIcon/index.js.map +7 -0
  174. package/cjs/icons/index.js +5 -1
  175. package/cjs/icons/index.js.map +2 -2
  176. package/cjs/layouts/Basic/Basic.stories.js.map +1 -1
  177. package/cjs/layouts/Basic/Bottom/__stories__/Default/index.js +7 -5
  178. package/cjs/layouts/Basic/Bottom/__stories__/Default.js.map +3 -3
  179. package/cjs/layouts/Basic/Container/__stories__/Default/index.js +6 -4
  180. package/cjs/layouts/Basic/Container/__stories__/Default.js.map +3 -3
  181. package/cjs/layouts/Basic/Main/__stories__/Default/index.js +6 -4
  182. package/cjs/layouts/Basic/Main/__stories__/Default.js.map +3 -3
  183. package/cjs/layouts/Basic/Top/__stories__/Default/index.js +6 -4
  184. package/cjs/layouts/Basic/Top/__stories__/Default.js.map +3 -3
  185. package/cjs/layouts/Basic/__stories__/WithBasicLayout/index.js +2 -2
  186. package/cjs/layouts/Basic/__stories__/WithBasicLayout.js.map +2 -2
  187. package/cjs/layouts/Basic/index.js +1 -3
  188. package/cjs/layouts/Basic/index.js.map +2 -2
  189. package/cjs/layouts/Screen/Screen.stories.js.map +1 -1
  190. package/cjs/layouts/Screen/__stories__/Default.js.map +1 -1
  191. package/cjs/layouts/Screen/__stories__/ScreenDown.js.map +1 -1
  192. package/cjs/layouts/Screen/__stories__/ScreenUp.js.map +1 -1
  193. package/cjs/layouts/Screen/__stories__/SpecificScreenSize.js.map +1 -1
  194. package/cjs/layouts/Screen/index.js.map +1 -1
  195. package/cjs/lazy/index.js +99 -97
  196. package/cjs/lazy.js.map +3 -3
  197. package/cjs/navigation/BackToTopLink/index.js +1 -3
  198. package/cjs/navigation/BackToTopLink/index.js.map +2 -2
  199. package/cjs/navigation/Breadcrumbs/Breadcrumbs.stories/index.js +9 -0
  200. package/cjs/navigation/Breadcrumbs/Breadcrumbs.stories.js.map +2 -2
  201. package/cjs/{api/APIErrors → navigation/Breadcrumbs/BreadcrumbsListItem}/index.js +29 -42
  202. package/cjs/navigation/Breadcrumbs/BreadcrumbsListItem.js.map +7 -0
  203. package/cjs/navigation/Breadcrumbs/__stories__/Auto/index.js +202 -0
  204. package/cjs/navigation/Breadcrumbs/__stories__/Auto.js.map +7 -0
  205. package/cjs/navigation/Breadcrumbs/__stories__/WithHook/index.js +208 -0
  206. package/cjs/navigation/Breadcrumbs/__stories__/WithHook.js.map +7 -0
  207. package/cjs/navigation/Breadcrumbs/__stories__/WithProvider/index.js +46 -0
  208. package/cjs/navigation/Breadcrumbs/__stories__/WithProvider.js.map +7 -0
  209. package/cjs/navigation/Breadcrumbs/auto/index.js +79 -0
  210. package/cjs/navigation/Breadcrumbs/auto.js.map +7 -0
  211. package/cjs/navigation/Breadcrumbs/hooks/index.js +74 -0
  212. package/cjs/navigation/Breadcrumbs/hooks.js.map +7 -0
  213. package/cjs/navigation/Breadcrumbs/index.js +7 -1
  214. package/cjs/navigation/Breadcrumbs/index.js.map +2 -2
  215. package/cjs/navigation/Breadcrumbs/slug/index.js +120 -0
  216. package/cjs/navigation/Breadcrumbs/slug.js.map +7 -0
  217. package/cjs/navigation/Breadcrumbs/utils/index.js +52 -0
  218. package/cjs/navigation/Breadcrumbs/utils.js.map +7 -0
  219. package/cjs/navigation/Drawer/__stories__/Auto/index.js +3 -1
  220. package/cjs/navigation/Drawer/__stories__/Auto.js.map +2 -2
  221. package/cjs/navigation/Drawer/__stories__/Default/index.js +2 -3
  222. package/cjs/navigation/Drawer/__stories__/Default.js.map +3 -3
  223. package/cjs/navigation/Dropdown/Dropdown.stories.js.map +2 -2
  224. package/cjs/navigation/Dropdown/__stories__/AlignRight/index.js +1 -2
  225. package/cjs/navigation/Dropdown/__stories__/AlignRight.js.map +3 -3
  226. package/cjs/navigation/Dropdown/__stories__/Default/index.js +1 -2
  227. package/cjs/navigation/Dropdown/__stories__/Default.js.map +3 -3
  228. package/cjs/navigation/Dropdown/__stories__/Dense/index.js +1 -2
  229. package/cjs/navigation/Dropdown/__stories__/Dense.js.map +3 -3
  230. package/cjs/navigation/Dropdown/__stories__/Disabled/index.js +1 -2
  231. package/cjs/navigation/Dropdown/__stories__/Disabled.js.map +3 -3
  232. package/cjs/navigation/Dropdown/__stories__/PlacementTop/index.js +1 -2
  233. package/cjs/navigation/Dropdown/__stories__/PlacementTop.js.map +3 -3
  234. package/cjs/navigation/Dropdown/__stories__/ScrollableContent/index.js +1 -1
  235. package/cjs/navigation/Dropdown/__stories__/ScrollableContent.js.map +2 -2
  236. package/cjs/navigation/Dropdown/__stories__/VariantLink/index.js +1 -2
  237. package/cjs/navigation/Dropdown/__stories__/VariantLink.js.map +3 -3
  238. package/cjs/navigation/Link/__stories__/DarkBackground/index.js +1 -1
  239. package/cjs/navigation/Link/__stories__/DarkBackground.js.map +1 -1
  240. package/cjs/navigation/Link/__stories__/DarkBackgroundNoUnderline/index.js +1 -1
  241. package/cjs/navigation/Link/__stories__/DarkBackgroundNoUnderline.js.map +1 -1
  242. package/cjs/navigation/Link/__stories__/WithProvider/index.js +9 -1
  243. package/cjs/navigation/Link/__stories__/WithProvider.js.map +2 -2
  244. package/cjs/navigation/NavList/__stories__/Default/index.js +9 -9
  245. package/cjs/navigation/NavList/__stories__/Default.js.map +2 -2
  246. package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +21 -21
  247. package/cjs/navigation/NavList/__stories__/HorizontalWithDrawer.js.map +2 -2
  248. package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +21 -21
  249. package/cjs/navigation/NavList/__stories__/HorizontalWithoutDrawer.js.map +2 -2
  250. package/cjs/navigation/NavList/__stories__/NavListWithoutNav/index.js +9 -9
  251. package/cjs/navigation/NavList/__stories__/NavListWithoutNav.js.map +2 -2
  252. package/cjs/navigation/NavList/__stories__/UsingNavListAuto/index.js +24 -24
  253. package/cjs/navigation/NavList/__stories__/UsingNavListAuto.js.map +3 -3
  254. package/cjs/navigation/NavList/__stories__/Vertical/index.js +25 -17
  255. package/cjs/navigation/NavList/__stories__/Vertical.js.map +2 -2
  256. package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +21 -21
  257. package/cjs/navigation/NavList/__stories__/VerticalWithoutDrawer.js.map +2 -2
  258. package/cjs/navigation/NavList/__stories__/WithBadge/index.js +10 -10
  259. package/cjs/navigation/NavList/__stories__/WithBadge.js.map +2 -2
  260. package/cjs/navigation/NavList/hooks/useTogglableNav/index.js +2 -2
  261. package/cjs/navigation/NavList/hooks/useTogglableNav.js.map +2 -2
  262. package/cjs/navigation/Pagination/Pagination.stories.js.map +2 -2
  263. package/cjs/navigation/Pagination/__stories__/Auto/index.js +7 -9
  264. package/cjs/navigation/Pagination/__stories__/Auto.js.map +3 -3
  265. package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +2 -2
  266. package/cjs/navigation/Pagination/__stories__/PaginationWithSmallFont.js.map +2 -2
  267. package/cjs/navigation/Pagination/__stories__/WithInactiveValues/index.js +2 -2
  268. package/cjs/navigation/Pagination/__stories__/WithInactiveValues.js.map +2 -2
  269. package/cjs/navigation/Pagination/__stories__/WithResultsPerPage/index.js +2 -2
  270. package/cjs/navigation/Pagination/__stories__/WithResultsPerPage.js.map +2 -2
  271. package/cjs/navigation/Tabs/__stories__/Auto.js.map +2 -2
  272. package/cjs/navigation/Tabs/__stories__/Default.js.map +2 -2
  273. package/cjs/navigation/Tabs/__stories__/Dense.js.map +2 -2
  274. package/cjs/navigation/Tabs/__stories__/UsingAccordion/index.js +2 -2
  275. package/cjs/navigation/Tabs/__stories__/UsingAccordion.js.map +2 -2
  276. package/cjs/navigation/Tabs/hooks/index.js +1 -1
  277. package/cjs/navigation/Tabs/hooks.js.map +2 -2
  278. package/cjs/registry/index.js +816 -230
  279. package/cjs/registry.js.map +3 -3
  280. package/cjs/typography/Code/index.js.map +1 -1
  281. package/cjs/typography/Typography/index.js.map +1 -1
  282. package/cjs/utils/hooks/useDebounce/index.js +2 -2
  283. package/cjs/utils/hooks/useDebounce.js.map +2 -2
  284. package/cjs/utils/hooks/useLatest.js.map +2 -2
  285. package/cjs/utils/hooks/useScreen/index.js +12 -3
  286. package/cjs/utils/hooks/useScreen.js.map +2 -2
  287. package/cjs/utils/hooks/useSearch.js.map +2 -2
  288. package/cjs/utils/index.js +0 -2
  289. package/cjs/utils/index.js.map +2 -2
  290. package/content/Accordion/__stories__/Auto.js.map +1 -1
  291. package/content/Accordion/auto.d.ts +1 -2
  292. package/content/Accordion/auto.js.map +2 -2
  293. package/content/Accordion/index.js.map +2 -2
  294. package/content/List/__stories__/Default.js.map +2 -2
  295. package/content/Markdown/Markdown.stories.js.map +2 -2
  296. package/content/Markdown/__stories__/Default/index.js +1 -1
  297. package/content/Markdown/__stories__/Default.js.map +2 -2
  298. package/content/Markdown/index.d.ts +1 -1
  299. package/content/Markdown/index.js +4 -1
  300. package/content/Markdown/index.js.map +2 -2
  301. package/content/SafeHTML/SafeHTML.stories.js.map +2 -2
  302. package/content/SafeHTML/__stories__/Default/index.js +1 -1
  303. package/content/SafeHTML/__stories__/Default.js.map +2 -2
  304. package/content/SafeHTML/index.d.ts +1 -1
  305. package/content/SafeHTML/index.js.map +2 -2
  306. package/content/StepNav/__stories__/Auto.js.map +2 -2
  307. package/content/StepNav/auto/index.js +3 -1
  308. package/content/StepNav/auto.d.ts +1 -2
  309. package/content/StepNav/auto.js.map +2 -2
  310. package/content/Table/Table.stories/index.js +2 -2
  311. package/content/Table/Table.stories.d.ts +1 -1
  312. package/content/Table/Table.stories.js.map +2 -2
  313. package/content/Table/TableFloatingScroll.js.map +2 -2
  314. package/content/Table/__stories__/{Densed → Dense}/index.js +5 -5
  315. package/content/Table/__stories__/Dense/package.json +6 -0
  316. package/content/Table/__stories__/Dense.d.ts +3 -0
  317. package/content/Table/__stories__/{Densed.js.map → Dense.js.map} +3 -3
  318. package/content/Table/__stories__/WithLoader/index.js +2 -3
  319. package/content/Table/__stories__/WithLoader.js.map +2 -2
  320. package/content/Table/hooks/useSort/index.js +1 -2
  321. package/content/Table/hooks/useSort.js.map +2 -2
  322. package/content/Table/index.js +5 -5
  323. package/content/Table/index.js.map +2 -2
  324. package/feedback/CopyToClipboard/__stories__/Default/index.js +1 -1
  325. package/feedback/CopyToClipboard/__stories__/Default.js.map +2 -2
  326. package/feedback/CopyToClipboard/index.js +1 -1
  327. package/feedback/CopyToClipboard/index.js.map +2 -2
  328. package/feedback/ErrorSummary/__stories__/LinkedToInput/index.js +1 -2
  329. package/feedback/ErrorSummary/__stories__/LinkedToInput.js.map +2 -2
  330. package/form/AutoComplete/Status/index.d.ts +4 -4
  331. package/form/AutoComplete/Status/index.js.map +1 -1
  332. package/form/AutoComplete/__stories__/Multiple/index.js +9 -1
  333. package/form/AutoComplete/__stories__/Multiple.js.map +2 -2
  334. package/form/AutoComplete/__stories__/MultipleShowingTwoSelected/index.js +10 -1
  335. package/form/AutoComplete/__stories__/MultipleShowingTwoSelected.js.map +2 -2
  336. package/form/AutoComplete/__stories__/MultipleWithDefaultValues/index.js +10 -1
  337. package/form/AutoComplete/__stories__/MultipleWithDefaultValues.js.map +2 -2
  338. package/form/AutoComplete/__stories__/MultipleWithMinLength.js.map +1 -1
  339. package/form/AutoComplete/__stories__/WithShowAllValues/index.js +1 -8
  340. package/form/AutoComplete/__stories__/WithShowAllValues.js.map +2 -2
  341. package/form/AutoComplete/index.d.ts +14 -15
  342. package/form/AutoComplete/index.js +45 -34
  343. package/form/AutoComplete/index.js.map +2 -2
  344. package/form/DateInputContainer/__stories__/MultipleQuestions/index.js +1 -1
  345. package/form/DateInputContainer/__stories__/MultipleQuestions.js.map +1 -1
  346. package/form/SearchContainer/SearchContainer.stories/index.js +13 -0
  347. package/form/SearchContainer/SearchContainer.stories/package.json +6 -0
  348. package/form/SearchContainer/SearchContainer.stories.d.ts +9 -0
  349. package/form/SearchContainer/SearchContainer.stories.js.map +7 -0
  350. package/form/SearchContainer/__stories__/Default/index.js +13 -0
  351. package/form/SearchContainer/__stories__/Default/package.json +6 -0
  352. package/form/SearchContainer/__stories__/Default.d.ts +3 -0
  353. package/form/SearchContainer/__stories__/Default.js.map +7 -0
  354. package/form/SearchContainer/index.test.d.ts +1 -0
  355. package/form/TextArea/__stories__/Default/index.js +1 -2
  356. package/form/TextArea/__stories__/Default.js.map +2 -2
  357. package/form/TextArea/__stories__/DisabledInput/index.js +1 -2
  358. package/form/TextArea/__stories__/DisabledInput.js.map +2 -2
  359. package/form/TextArea/__stories__/LimitedCharacters/index.js +1 -2
  360. package/form/TextArea/__stories__/LimitedCharacters.js.map +2 -2
  361. package/form/TextArea/__stories__/WithDeclaredRows/index.js +1 -2
  362. package/form/TextArea/__stories__/WithDeclaredRows.js.map +2 -2
  363. package/form/TextArea/__stories__/WithErrorMessage/index.js +1 -2
  364. package/form/TextArea/__stories__/WithErrorMessage.js.map +2 -2
  365. package/form/TextArea/__stories__/WithHint/index.js +1 -2
  366. package/form/TextArea/__stories__/WithHint.js.map +2 -2
  367. package/form/TextInput/__stories__/AskingForNumbers/index.js +1 -2
  368. package/form/TextInput/__stories__/AskingForNumbers.js.map +2 -2
  369. package/form/TextInput/__stories__/Default/index.js +1 -2
  370. package/form/TextInput/__stories__/Default.js.map +2 -2
  371. package/form/TextInput/__stories__/DisabledInput/index.js +1 -2
  372. package/form/TextInput/__stories__/DisabledInput.js.map +2 -2
  373. package/form/TextInput/__stories__/DisabledInputWithValue/index.js +2 -3
  374. package/form/TextInput/__stories__/DisabledInputWithValue.js.map +2 -2
  375. package/form/TextInput/__stories__/FixedWidths/index.js +1 -2
  376. package/form/TextInput/__stories__/FixedWidths.js.map +2 -2
  377. package/form/TextInput/__stories__/FluidWidths/index.js +1 -2
  378. package/form/TextInput/__stories__/FluidWidths.js.map +2 -2
  379. package/form/TextInput/__stories__/WithErrorMessage/index.js +1 -2
  380. package/form/TextInput/__stories__/WithErrorMessage.js.map +2 -2
  381. package/form/TextInput/__stories__/WithHint/index.js +1 -2
  382. package/form/TextInput/__stories__/WithHint.js.map +2 -2
  383. package/i18n/index.js +19 -2
  384. package/i18n/index.js.map +2 -2
  385. package/i18n/locales/el/index.js +25 -2
  386. package/i18n/locales/el.d.ts +23 -0
  387. package/i18n/locales/el.js.map +2 -2
  388. package/i18n/locales/en/index.js +25 -2
  389. package/i18n/locales/en.d.ts +23 -0
  390. package/i18n/locales/en.js.map +2 -2
  391. package/icons/IconBase/index.d.ts +3 -0
  392. package/icons/IconBase/index.js +7 -0
  393. package/icons/IconBase/index.js.map +7 -0
  394. package/{api/fetchAPI → icons/IconBase}/package.json +1 -1
  395. package/icons/SvgIcon/index.d.ts +3 -0
  396. package/icons/SvgIcon/index.js +7 -0
  397. package/icons/SvgIcon/index.js.map +7 -0
  398. package/{api/utils → icons/SvgIcon}/package.json +1 -1
  399. package/icons/index.d.ts +2 -0
  400. package/icons/index.js +2 -0
  401. package/icons/index.js.map +2 -2
  402. package/index.js +1 -1
  403. package/layouts/Basic/Basic.stories.js.map +1 -1
  404. package/layouts/Basic/Bottom/__stories__/Default/index.js +7 -5
  405. package/layouts/Basic/Bottom/__stories__/Default.js.map +2 -2
  406. package/layouts/Basic/Container/__stories__/Default/index.js +6 -4
  407. package/layouts/Basic/Container/__stories__/Default.js.map +2 -2
  408. package/layouts/Basic/Main/__stories__/Default/index.js +6 -4
  409. package/layouts/Basic/Main/__stories__/Default.js.map +2 -2
  410. package/layouts/Basic/Top/__stories__/Default/index.js +6 -4
  411. package/layouts/Basic/Top/__stories__/Default.js.map +2 -2
  412. package/layouts/Basic/__stories__/WithBasicLayout/index.js +2 -2
  413. package/layouts/Basic/__stories__/WithBasicLayout.js.map +2 -2
  414. package/layouts/Basic/index.d.ts +0 -1
  415. package/layouts/Basic/index.js +0 -1
  416. package/layouts/Basic/index.js.map +2 -2
  417. package/layouts/Screen/Screen.stories.js.map +1 -1
  418. package/layouts/Screen/__stories__/Default.js.map +1 -1
  419. package/layouts/Screen/__stories__/ScreenDown.js.map +1 -1
  420. package/layouts/Screen/__stories__/ScreenUp.js.map +1 -1
  421. package/layouts/Screen/__stories__/SpecificScreenSize.js.map +1 -1
  422. package/layouts/Screen/index.js.map +1 -1
  423. package/lazy/index.js +332 -334
  424. package/navigation/BackToTopLink/index.js +1 -3
  425. package/navigation/BackToTopLink/index.js.map +2 -2
  426. package/navigation/Breadcrumbs/Breadcrumbs.stories/index.js +6 -0
  427. package/navigation/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -0
  428. package/navigation/Breadcrumbs/Breadcrumbs.stories.js.map +2 -2
  429. package/navigation/Breadcrumbs/BreadcrumbsListItem/index.js +28 -0
  430. package/navigation/Breadcrumbs/BreadcrumbsListItem/package.json +6 -0
  431. package/navigation/Breadcrumbs/BreadcrumbsListItem.d.ts +8 -0
  432. package/navigation/Breadcrumbs/BreadcrumbsListItem.js.map +7 -0
  433. package/navigation/Breadcrumbs/__stories__/Auto/index.js +173 -0
  434. package/navigation/Breadcrumbs/__stories__/Auto/package.json +6 -0
  435. package/navigation/Breadcrumbs/__stories__/Auto.d.ts +3 -0
  436. package/navigation/Breadcrumbs/__stories__/Auto.js.map +7 -0
  437. package/navigation/Breadcrumbs/__stories__/WithHook/index.js +181 -0
  438. package/navigation/Breadcrumbs/__stories__/WithHook/package.json +6 -0
  439. package/navigation/Breadcrumbs/__stories__/WithHook.d.ts +3 -0
  440. package/navigation/Breadcrumbs/__stories__/WithHook.js.map +7 -0
  441. package/navigation/Breadcrumbs/__stories__/WithProvider/index.js +17 -0
  442. package/navigation/Breadcrumbs/__stories__/WithProvider/package.json +6 -0
  443. package/navigation/Breadcrumbs/__stories__/WithProvider.d.ts +3 -0
  444. package/navigation/Breadcrumbs/__stories__/WithProvider.js.map +7 -0
  445. package/navigation/Breadcrumbs/auto/index.js +49 -0
  446. package/{api/APIErrors → navigation/Breadcrumbs/auto}/package.json +1 -1
  447. package/navigation/Breadcrumbs/auto.d.ts +14 -0
  448. package/navigation/Breadcrumbs/auto.js.map +7 -0
  449. package/navigation/Breadcrumbs/hooks/index.js +51 -0
  450. package/navigation/Breadcrumbs/hooks/package.json +6 -0
  451. package/navigation/Breadcrumbs/hooks.d.ts +11 -0
  452. package/navigation/Breadcrumbs/hooks.js.map +7 -0
  453. package/navigation/Breadcrumbs/index.d.ts +3 -0
  454. package/navigation/Breadcrumbs/index.js +3 -0
  455. package/navigation/Breadcrumbs/index.js.map +2 -2
  456. package/navigation/Breadcrumbs/slug/index.js +97 -0
  457. package/navigation/Breadcrumbs/slug/package.json +6 -0
  458. package/navigation/Breadcrumbs/slug.d.ts +1 -0
  459. package/navigation/Breadcrumbs/slug.js.map +7 -0
  460. package/navigation/Breadcrumbs/utils/index.js +29 -0
  461. package/navigation/Breadcrumbs/utils/package.json +6 -0
  462. package/navigation/Breadcrumbs/utils.d.ts +1 -0
  463. package/navigation/Breadcrumbs/utils.js.map +7 -0
  464. package/navigation/Drawer/__stories__/Auto/index.js +3 -1
  465. package/navigation/Drawer/__stories__/Auto.d.ts +1 -0
  466. package/navigation/Drawer/__stories__/Auto.js.map +2 -2
  467. package/navigation/Drawer/__stories__/Default/index.js +2 -3
  468. package/navigation/Drawer/__stories__/Default.js.map +2 -2
  469. package/navigation/Dropdown/Dropdown.stories.js.map +2 -2
  470. package/navigation/Dropdown/__stories__/AlignRight/index.js +1 -2
  471. package/navigation/Dropdown/__stories__/AlignRight.js.map +2 -2
  472. package/navigation/Dropdown/__stories__/Default/index.js +1 -2
  473. package/navigation/Dropdown/__stories__/Default.js.map +2 -2
  474. package/navigation/Dropdown/__stories__/Dense/index.js +1 -2
  475. package/navigation/Dropdown/__stories__/Dense.js.map +2 -2
  476. package/navigation/Dropdown/__stories__/Disabled/index.js +1 -2
  477. package/navigation/Dropdown/__stories__/Disabled.js.map +2 -2
  478. package/navigation/Dropdown/__stories__/PlacementTop/index.js +1 -2
  479. package/navigation/Dropdown/__stories__/PlacementTop.js.map +2 -2
  480. package/navigation/Dropdown/__stories__/ScrollableContent/index.js +1 -1
  481. package/navigation/Dropdown/__stories__/ScrollableContent.js.map +2 -2
  482. package/navigation/Dropdown/__stories__/VariantLink/index.js +1 -2
  483. package/navigation/Dropdown/__stories__/VariantLink.js.map +2 -2
  484. package/navigation/Link/__stories__/DarkBackground/index.js +1 -1
  485. package/navigation/Link/__stories__/DarkBackground.js.map +1 -1
  486. package/navigation/Link/__stories__/DarkBackgroundNoUnderline/index.js +1 -1
  487. package/navigation/Link/__stories__/DarkBackgroundNoUnderline.js.map +1 -1
  488. package/navigation/Link/__stories__/WithProvider/index.js +9 -1
  489. package/navigation/Link/__stories__/WithProvider.js.map +2 -2
  490. package/navigation/NavList/__stories__/Default/index.js +9 -9
  491. package/navigation/NavList/__stories__/Default.js.map +2 -2
  492. package/navigation/NavList/__stories__/HorizontalWithDrawer/index.js +21 -21
  493. package/navigation/NavList/__stories__/HorizontalWithDrawer.js.map +2 -2
  494. package/navigation/NavList/__stories__/HorizontalWithoutDrawer/index.js +21 -21
  495. package/navigation/NavList/__stories__/HorizontalWithoutDrawer.js.map +2 -2
  496. package/navigation/NavList/__stories__/NavListWithoutNav/index.js +9 -9
  497. package/navigation/NavList/__stories__/NavListWithoutNav.js.map +2 -2
  498. package/navigation/NavList/__stories__/UsingNavListAuto/index.js +24 -24
  499. package/navigation/NavList/__stories__/UsingNavListAuto.js.map +2 -2
  500. package/navigation/NavList/__stories__/Vertical/index.js +25 -17
  501. package/navigation/NavList/__stories__/Vertical.js.map +2 -2
  502. package/navigation/NavList/__stories__/VerticalWithoutDrawer/index.js +21 -21
  503. package/navigation/NavList/__stories__/VerticalWithoutDrawer.js.map +2 -2
  504. package/navigation/NavList/__stories__/WithBadge/index.js +10 -10
  505. package/navigation/NavList/__stories__/WithBadge.js.map +2 -2
  506. package/navigation/NavList/hooks/useTogglableNav/index.js +2 -2
  507. package/navigation/NavList/hooks/useTogglableNav.js.map +2 -2
  508. package/navigation/Pagination/Pagination.stories.js.map +2 -2
  509. package/navigation/Pagination/__stories__/Auto/index.js +8 -12
  510. package/navigation/Pagination/__stories__/Auto.js.map +2 -2
  511. package/navigation/Pagination/__stories__/PaginationWithSmallFont/index.js +1 -1
  512. package/navigation/Pagination/__stories__/PaginationWithSmallFont.js.map +2 -2
  513. package/navigation/Pagination/__stories__/WithInactiveValues/index.js +1 -1
  514. package/navigation/Pagination/__stories__/WithInactiveValues.js.map +2 -2
  515. package/navigation/Pagination/__stories__/WithResultsPerPage/index.js +1 -1
  516. package/navigation/Pagination/__stories__/WithResultsPerPage.js.map +2 -2
  517. package/navigation/Tabs/__stories__/Auto/index.js +1 -4
  518. package/navigation/Tabs/__stories__/Auto.js.map +2 -2
  519. package/navigation/Tabs/__stories__/Default/index.js +1 -4
  520. package/navigation/Tabs/__stories__/Default.js.map +2 -2
  521. package/navigation/Tabs/__stories__/Dense/index.js +1 -4
  522. package/navigation/Tabs/__stories__/Dense.js.map +2 -2
  523. package/navigation/Tabs/__stories__/UsingAccordion/index.js +9 -12
  524. package/navigation/Tabs/__stories__/UsingAccordion.js.map +2 -2
  525. package/navigation/Tabs/hooks/index.js +1 -1
  526. package/navigation/Tabs/hooks.js.map +2 -2
  527. package/package.json +5 -8
  528. package/registry/index.js +960 -374
  529. package/src/app/Footer/__stories__/FooterWithText.tsx +9 -6
  530. package/src/app/Footer/{index.mdx → doc.mdx} +7 -23
  531. package/src/app/Footer/interaction.test.tsx +11 -7
  532. package/src/app/Header/__snapshots__/index.spec.tsx.snap +43 -37
  533. package/src/app/Header/__stories__/WithServiceNameAndLogo.tsx +2 -2
  534. package/src/app/Header/doc.mdx +32 -0
  535. package/src/app/Header/index.spec.tsx +1 -1
  536. package/src/app/Header/interaction.test.tsx +22 -17
  537. package/src/app/Loader/index.native.tsx +98 -0
  538. package/src/app/Loader/index.tsx +1 -1
  539. package/src/app/Loader/index.web.tsx +1 -0
  540. package/src/app/Masthead/Masthead.stories.js +1 -0
  541. package/src/app/Masthead/__stories__/Default.tsx +1 -1
  542. package/src/app/Masthead/__stories__/Secondary.tsx +26 -0
  543. package/src/app/Masthead/__stories__/WithElements.tsx +1 -5
  544. package/src/app/Masthead/__stories__/WithLogo.tsx +1 -5
  545. package/src/app/Masthead/{index.mdx → doc.mdx} +13 -1
  546. package/src/app/Masthead/index.test.tsx +4 -0
  547. package/src/app/Masthead/interaction.test.tsx +6 -6
  548. package/src/app/Modal/Modal.stories.js +1 -2
  549. package/src/app/Modal/__stories__/Auto.tsx +1 -5
  550. package/src/app/Modal/{index.mdx → doc.mdx} +9 -6
  551. package/src/app/Modal/interaction.test.tsx +22 -21
  552. package/src/app/NotFound/{index.mdx → doc.mdx} +2 -4
  553. package/src/app/OutdatedBrowserBanner/hooks/evaluateBrowserVersion.ts +2 -2
  554. package/src/app/Panel/{index.mdx → doc.mdx} +3 -1
  555. package/src/app/PhaseBannerHeader/{index.mdx → doc.mdx} +3 -5
  556. package/src/app/QrCodeScanner/__snapshots__/index.spec.tsx.snap +6 -10
  557. package/src/app/QrCodeScanner/__stories__/Default.tsx +1 -1
  558. package/src/app/QrCodeScanner/index.tsx +2 -1
  559. package/src/app/QrCodeViewer/{index.mdx → doc.mdx} +4 -12
  560. package/src/app/QrCodeViewer/index.tsx +4 -4
  561. package/src/app/QrCodeViewer/qrcodegen.ts +3 -3
  562. package/src/app/QrCodeViewer/types.ts +10 -5
  563. package/src/app/QrCodeViewer/utils.ts +1 -1
  564. package/src/app/Skeleton/__stories__/SpecificWidthAndHeight.tsx +1 -1
  565. package/src/app/Skeleton/doc.mdx +42 -0
  566. package/src/app/ThemeOptions/index.tsx +6 -15
  567. package/src/app/hooks/useHighlightLinks.ts +3 -4
  568. package/src/app/hooks/useTheme.ts +4 -3
  569. package/src/content/Accordion/__snapshots__/index.spec.tsx.snap +48 -147
  570. package/src/content/Accordion/__stories__/Auto.tsx +1 -1
  571. package/src/content/Accordion/auto.tsx +1 -2
  572. package/src/content/Accordion/{index.mdx → doc.mdx} +2 -13
  573. package/src/content/Accordion/index.tsx +0 -1
  574. package/src/content/Accordion/interaction.test.tsx +6 -6
  575. package/src/content/Blockquote/__snapshots__/index.spec.tsx.snap +6 -9
  576. package/src/content/Blockquote/{index.mdx → doc.mdx} +5 -5
  577. package/src/content/Card/doc.mdx +71 -0
  578. package/src/content/Card/interaction.test.tsx +6 -6
  579. package/src/content/Chip/doc.mdx +34 -0
  580. package/src/content/Details/__snapshots__/index.spec.tsx.snap +32 -69
  581. package/src/content/Details/{index.mdx → doc.mdx} +1 -5
  582. package/src/content/Details/interaction.test.tsx +6 -6
  583. package/src/content/List/__snapshots__/index.spec.tsx.snap +3 -3
  584. package/src/content/List/__stories__/Default.tsx +3 -9
  585. package/src/content/List/doc.mdx +28 -0
  586. package/src/content/Markdown/Markdown.stories.js +1 -2
  587. package/src/content/Markdown/__stories__/Default.tsx +3 -2
  588. package/src/content/Markdown/index.tsx +9 -3
  589. package/src/content/SafeHTML/SafeHTML.stories.js +1 -2
  590. package/src/content/SafeHTML/__stories__/Default.tsx +4 -3
  591. package/src/content/SafeHTML/index.tsx +3 -3
  592. package/src/content/StepNav/__stories__/Auto.tsx +0 -1
  593. package/src/content/StepNav/auto.tsx +5 -3
  594. package/src/content/StepNav/{index.mdx → doc.mdx} +5 -19
  595. package/src/content/StepNav/interaction.test.tsx +16 -8
  596. package/src/content/SummaryList/__snapshots__/index.spec.tsx.snap +37 -89
  597. package/src/content/SummaryList/{index.mdx → doc.mdx} +6 -18
  598. package/src/content/SummaryList/interaction.test.tsx +11 -8
  599. package/src/content/Table/Table.stories.js +1 -1
  600. package/src/content/Table/TableFloatingScroll.tsx +0 -1
  601. package/src/content/Table/__stories__/{Densed.tsx → Dense.tsx} +2 -2
  602. package/src/content/Table/__stories__/WithLoader.tsx +2 -3
  603. package/src/content/Table/doc.mdx +81 -0
  604. package/src/content/Table/hooks/useSort.tsx +1 -2
  605. package/src/content/Table/index.test.tsx +3 -3
  606. package/src/content/Table/index.tsx +5 -5
  607. package/src/content/Table/interaction.test.tsx +19 -15
  608. package/src/content/TaskList/{index.mdx → doc.mdx} +4 -6
  609. package/src/content/Timeline/{index.mdx → doc.mdx} +4 -6
  610. package/src/feedback/CopyToClipboard/__stories__/Default.tsx +1 -1
  611. package/src/feedback/CopyToClipboard/doc.mdx +22 -0
  612. package/src/feedback/CopyToClipboard/index.tsx +1 -1
  613. package/src/feedback/CopyToClipboard/interaction.test.tsx +18 -20
  614. package/src/feedback/ErrorSummary/__snapshots__/index.spec.tsx.snap +3 -3
  615. package/src/feedback/ErrorSummary/__stories__/LinkedToInput.tsx +1 -2
  616. package/src/feedback/ErrorSummary/{index.mdx → doc.mdx} +6 -22
  617. package/src/feedback/ErrorSummary/interaction.test.tsx +7 -7
  618. package/src/feedback/NotificationBanner/__snapshots__/index.spec.tsx.snap +1 -1
  619. package/src/feedback/NotificationBanner/{index.mdx → doc.mdx} +8 -19
  620. package/src/feedback/NotificationBanner/interaction.test.tsx +14 -15
  621. package/src/feedback/PhaseBanner/{index.mdx → doc.mdx} +2 -12
  622. package/src/feedback/PhaseBanner/interaction.test.tsx +6 -6
  623. package/src/feedback/WarningText/__snapshots__/index.spec.tsx.snap +3 -3
  624. package/src/feedback/WarningText/{index.mdx → doc.mdx} +8 -6
  625. package/src/form/AutoComplete/Status/index.tsx +4 -4
  626. package/src/form/AutoComplete/__stories__/Multiple.tsx +6 -1
  627. package/src/form/AutoComplete/__stories__/MultipleShowingTwoSelected.tsx +7 -1
  628. package/src/form/AutoComplete/__stories__/MultipleWithDefaultValues.tsx +7 -1
  629. package/src/form/AutoComplete/__stories__/MultipleWithMinLength.tsx +2 -2
  630. package/src/form/AutoComplete/__stories__/WithShowAllValues.tsx +1 -5
  631. package/src/form/AutoComplete/doc.mdx +50 -0
  632. package/src/form/AutoComplete/index.tsx +63 -47
  633. package/src/form/AutoComplete/interaction.test.tsx +16 -8
  634. package/src/form/Button/__snapshots__/index.spec.tsx.snap +6 -10
  635. package/src/form/Button/{index.mdx → doc.mdx} +12 -27
  636. package/src/form/Button/interaction.test.tsx +38 -39
  637. package/src/form/Checkbox/{index.mdx → doc.mdx} +10 -36
  638. package/src/form/Checkbox/interaction.test.tsx +25 -17
  639. package/src/form/DateInputContainer/__stories__/MultipleQuestions.tsx +1 -1
  640. package/src/form/DateInputContainer/{index.mdx → doc.mdx} +7 -21
  641. package/src/form/ErrorMessage/{index.mdx → doc.mdx} +1 -5
  642. package/src/form/FileUpload/{index.mdx → doc.mdx} +2 -10
  643. package/src/form/RadioContainer/{index.mdx → doc.mdx} +10 -36
  644. package/src/form/RadioContainer/interaction.test.tsx +16 -15
  645. package/src/form/SearchContainer/SearchContainer.stories.js +9 -0
  646. package/src/form/SearchContainer/__stories__/Default.tsx +15 -0
  647. package/src/form/SearchContainer/doc.mdx +16 -0
  648. package/src/form/SearchContainer/index.test.tsx +20 -0
  649. package/src/form/SelectContainer/{index.mdx → doc.mdx} +3 -19
  650. package/src/form/SelectContainer/interaction.test.tsx +10 -7
  651. package/src/form/SingleCharacterInputs/{index.mdx → doc.mdx} +3 -11
  652. package/src/form/TextArea/__stories__/Default.tsx +1 -2
  653. package/src/form/TextArea/__stories__/DisabledInput.tsx +1 -2
  654. package/src/form/TextArea/__stories__/LimitedCharacters.tsx +1 -2
  655. package/src/form/TextArea/__stories__/WithDeclaredRows.tsx +1 -2
  656. package/src/form/TextArea/__stories__/WithErrorMessage.tsx +1 -2
  657. package/src/form/TextArea/__stories__/WithHint.tsx +1 -2
  658. package/src/form/TextArea/doc.mdx +48 -0
  659. package/src/form/TextInput/__stories__/AskingForNumbers.tsx +1 -2
  660. package/src/form/TextInput/__stories__/Default.tsx +1 -2
  661. package/src/form/TextInput/__stories__/DisabledInput.tsx +1 -2
  662. package/src/form/TextInput/__stories__/DisabledInputWithValue.tsx +4 -5
  663. package/src/form/TextInput/__stories__/FixedWidths.tsx +1 -2
  664. package/src/form/TextInput/__stories__/FluidWidths.tsx +1 -2
  665. package/src/form/TextInput/__stories__/WithErrorMessage.tsx +1 -2
  666. package/src/form/TextInput/__stories__/WithHint.tsx +1 -2
  667. package/src/form/TextInput/{index.mdx → doc.mdx} +12 -44
  668. package/src/i18n/index.tsx +15 -2
  669. package/src/i18n/locales/el.ts +37 -8
  670. package/src/i18n/locales/en.ts +26 -6
  671. package/src/icons/IconBase/index.tsx +4 -0
  672. package/src/icons/SvgIcon/index.tsx +4 -0
  673. package/src/icons/index.tsx +3 -1
  674. package/src/layouts/Basic/Basic.stories.js +1 -1
  675. package/src/layouts/Basic/Bottom/__stories__/Default.tsx +13 -9
  676. package/src/layouts/Basic/Bottom/{index.mdx → doc.mdx} +1 -5
  677. package/src/layouts/Basic/Container/__stories__/Default.tsx +15 -8
  678. package/src/layouts/Basic/Container/{index.mdx → doc.mdx} +1 -6
  679. package/src/layouts/Basic/Main/__stories__/Default.tsx +15 -8
  680. package/src/layouts/Basic/Main/{index.mdx → doc.mdx} +3 -5
  681. package/src/layouts/Basic/Top/__stories__/Default.tsx +13 -6
  682. package/src/layouts/Basic/Top/doc.mdx +19 -0
  683. package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +30 -102
  684. package/src/layouts/Basic/__stories__/WithBasicLayout.tsx +2 -2
  685. package/src/layouts/Basic/{index.mdx → doc.mdx} +7 -18
  686. package/src/layouts/Basic/index.spec.tsx +1 -1
  687. package/src/layouts/Basic/index.tsx +0 -1
  688. package/src/layouts/Grid/doc.mdx +26 -0
  689. package/src/layouts/Screen/Screen.stories.js +1 -1
  690. package/src/layouts/Screen/__stories__/Default.tsx +4 -4
  691. package/src/layouts/Screen/__stories__/ScreenDown.tsx +1 -1
  692. package/src/layouts/Screen/__stories__/ScreenUp.tsx +1 -1
  693. package/src/layouts/Screen/__stories__/SpecificScreenSize.tsx +1 -1
  694. package/src/layouts/Screen/index.tsx +0 -1
  695. package/src/layouts/Stack/doc.mdx +38 -0
  696. package/src/lazy.js +332 -331
  697. package/src/navigation/BackLink/{index.mdx → doc.mdx} +1 -5
  698. package/src/navigation/BackLink/interaction.test.tsx +6 -6
  699. package/src/navigation/BackToTopLink/index.tsx +1 -2
  700. package/src/navigation/Breadcrumbs/Breadcrumbs.stories.js +3 -0
  701. package/src/navigation/Breadcrumbs/BreadcrumbsListItem.tsx +34 -0
  702. package/src/navigation/Breadcrumbs/__stories__/Auto.tsx +201 -0
  703. package/src/navigation/Breadcrumbs/__stories__/WithHook.tsx +219 -0
  704. package/src/navigation/Breadcrumbs/__stories__/WithProvider.tsx +28 -0
  705. package/src/navigation/Breadcrumbs/auto.tsx +71 -0
  706. package/src/navigation/Breadcrumbs/{index.mdx → doc.mdx} +5 -5
  707. package/src/navigation/Breadcrumbs/hooks.ts +66 -0
  708. package/src/navigation/Breadcrumbs/index.test.tsx +12 -0
  709. package/src/navigation/Breadcrumbs/index.tsx +5 -0
  710. package/src/navigation/Breadcrumbs/interaction.test.tsx +34 -8
  711. package/src/navigation/Breadcrumbs/slug.ts +141 -0
  712. package/src/navigation/Breadcrumbs/utils.ts +39 -0
  713. package/src/navigation/Drawer/__stories__/Auto.tsx +3 -1
  714. package/src/navigation/Drawer/__stories__/Default.tsx +3 -4
  715. package/src/navigation/Drawer/{index.mdx → doc.mdx} +5 -1
  716. package/src/navigation/Dropdown/Dropdown.stories.js +1 -2
  717. package/src/navigation/Dropdown/__stories__/AlignRight.tsx +1 -2
  718. package/src/navigation/Dropdown/__stories__/Default.tsx +1 -2
  719. package/src/navigation/Dropdown/__stories__/Dense.tsx +1 -2
  720. package/src/navigation/Dropdown/__stories__/Disabled.tsx +1 -2
  721. package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +1 -2
  722. package/src/navigation/Dropdown/__stories__/ScrollableContent.tsx +1 -1
  723. package/src/navigation/Dropdown/__stories__/VariantLink.tsx +1 -2
  724. package/src/navigation/Dropdown/{index.mdx → doc.mdx} +3 -15
  725. package/src/navigation/Dropdown/interaction.test.tsx +34 -35
  726. package/src/navigation/Link/__snapshots__/index.spec.tsx.snap +16 -30
  727. package/src/navigation/Link/__stories__/DarkBackground.tsx +1 -1
  728. package/src/navigation/Link/__stories__/DarkBackgroundNoUnderline.tsx +1 -1
  729. package/src/navigation/Link/__stories__/WithProvider.tsx +5 -1
  730. package/src/navigation/Link/{index.mdx → doc.mdx} +7 -19
  731. package/src/navigation/Link/interaction.test.tsx +20 -22
  732. package/src/navigation/NavList/__snapshots__/index.spec.tsx.snap +3 -3
  733. package/src/navigation/NavList/__stories__/Default.tsx +11 -11
  734. package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +24 -24
  735. package/src/navigation/NavList/__stories__/HorizontalWithoutDrawer.tsx +24 -24
  736. package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +11 -11
  737. package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +27 -28
  738. package/src/navigation/NavList/__stories__/Vertical.tsx +16 -12
  739. package/src/navigation/NavList/__stories__/VerticalWithoutDrawer.tsx +24 -24
  740. package/src/navigation/NavList/__stories__/WithBadge.tsx +12 -12
  741. package/src/navigation/NavList/{index.mdx → doc.mdx} +19 -22
  742. package/src/navigation/NavList/hooks/useTogglableNav.tsx +2 -2
  743. package/src/navigation/Pagination/Pagination.stories.js +1 -2
  744. package/src/navigation/Pagination/__stories__/Auto.tsx +29 -31
  745. package/src/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx +1 -2
  746. package/src/navigation/Pagination/__stories__/WithInactiveValues.tsx +1 -1
  747. package/src/navigation/Pagination/__stories__/WithResultsPerPage.tsx +1 -2
  748. package/src/navigation/Pagination/doc.mdx +32 -0
  749. package/src/navigation/Pagination/interaction.test.tsx +7 -7
  750. package/src/navigation/Tabs/__stories__/Auto.tsx +1 -5
  751. package/src/navigation/Tabs/__stories__/Default.tsx +1 -4
  752. package/src/navigation/Tabs/__stories__/Dense.tsx +1 -4
  753. package/src/navigation/Tabs/__stories__/UsingAccordion.tsx +10 -13
  754. package/src/navigation/Tabs/doc.mdx +47 -0
  755. package/src/navigation/Tabs/hooks.ts +5 -10
  756. package/src/navigation/Tabs/interaction.test.tsx +7 -7
  757. package/src/registry.js +952 -368
  758. package/src/typography/Code/index.tsx +1 -1
  759. package/src/typography/CodeBlock/doc.mdx +30 -0
  760. package/src/typography/Heading/{index.mdx → doc.mdx} +3 -5
  761. package/src/typography/HeadingCaption/{index.mdx → doc.mdx} +5 -5
  762. package/src/typography/Hint/{index.mdx → doc.mdx} +4 -10
  763. package/src/typography/NormalText/doc.mdx +30 -0
  764. package/src/typography/Paragraph/doc.mdx +34 -0
  765. package/src/typography/Typography/doc.mdx +14 -0
  766. package/src/typography/Typography/index.tsx +1 -1
  767. package/src/utils/VisuallyHidden/{index.mdx → doc.mdx} +3 -6
  768. package/src/utils/hooks/useDebounce.ts +4 -4
  769. package/src/utils/hooks/useLatest.ts +1 -1
  770. package/src/utils/hooks/useScreen.ts +34 -24
  771. package/src/utils/hooks/useSearch.ts +2 -3
  772. package/src/utils/index.ts +0 -1
  773. package/typography/Code/index.js.map +1 -1
  774. package/typography/Typography/index.js.map +1 -1
  775. package/utils/hooks/useDebounce/index.js +2 -2
  776. package/utils/hooks/useDebounce.d.ts +1 -1
  777. package/utils/hooks/useDebounce.js.map +2 -2
  778. package/utils/hooks/useLatest.d.ts +1 -1
  779. package/utils/hooks/useLatest.js.map +2 -2
  780. package/utils/hooks/useScreen/index.js +12 -3
  781. package/utils/hooks/useScreen.js.map +2 -2
  782. package/utils/hooks/useSearch.d.ts +2 -2
  783. package/utils/hooks/useSearch.js.map +2 -2
  784. package/utils/index.d.ts +0 -1
  785. package/utils/index.js +0 -1
  786. package/utils/index.js.map +2 -2
  787. package/api/APIErrors/index.js +0 -40
  788. package/api/APIErrors.d.ts +0 -23
  789. package/api/APIErrors.js.map +0 -7
  790. package/api/APIProvider/index.js +0 -24
  791. package/api/APIProvider.d.ts +0 -16
  792. package/api/APIProvider.js.map +0 -7
  793. package/api/fetchAPI/index.js +0 -29
  794. package/api/fetchAPI.d.ts +0 -14
  795. package/api/fetchAPI.js.map +0 -7
  796. package/api/index.d.ts +0 -8
  797. package/api/index.js +0 -12
  798. package/api/index.js.map +0 -7
  799. package/api/index.spec.d.ts +0 -1
  800. package/api/useResource/index.js +0 -79
  801. package/api/useResource/package.json +0 -6
  802. package/api/useResource.d.ts +0 -11
  803. package/api/useResource.js.map +0 -7
  804. package/api/useResourceAction/index.js +0 -74
  805. package/api/useResourceAction/package.json +0 -6
  806. package/api/useResourceAction.d.ts +0 -2
  807. package/api/useResourceAction.js.map +0 -7
  808. package/api/useResourceQuery/index.js +0 -149
  809. package/api/useResourceQuery/package.json +0 -6
  810. package/api/useResourceQuery.d.ts +0 -18
  811. package/api/useResourceQuery.js.map +0 -7
  812. package/api/utils/index.js +0 -131
  813. package/api/utils.d.ts +0 -10
  814. package/api/utils.js.map +0 -7
  815. package/cjs/api/APIErrors.js.map +0 -7
  816. package/cjs/api/APIProvider.js.map +0 -7
  817. package/cjs/api/fetchAPI/index.js +0 -49
  818. package/cjs/api/fetchAPI.js.map +0 -7
  819. package/cjs/api/index.js +0 -41
  820. package/cjs/api/index.js.map +0 -7
  821. package/cjs/api/useResource/index.js +0 -102
  822. package/cjs/api/useResource.js.map +0 -7
  823. package/cjs/api/useResourceAction/index.js +0 -97
  824. package/cjs/api/useResourceAction.js.map +0 -7
  825. package/cjs/api/useResourceQuery/index.js +0 -173
  826. package/cjs/api/useResourceQuery.js.map +0 -7
  827. package/cjs/api/utils/index.js +0 -157
  828. package/cjs/api/utils.js.map +0 -7
  829. package/cjs/layouts/Basic/Masthead/index.js.map +0 -7
  830. package/cjs/test-utils/delay.js.map +0 -7
  831. package/cjs/utils/SvgIcon/index.js.map +0 -7
  832. package/content/Table/__stories__/Densed/package.json +0 -6
  833. package/content/Table/__stories__/Densed.d.ts +0 -3
  834. package/layouts/Basic/Masthead/index.d.ts +0 -5
  835. package/layouts/Basic/Masthead/index.js +0 -9
  836. package/layouts/Basic/Masthead/index.js.map +0 -7
  837. package/layouts/Basic/Masthead/package.json +0 -6
  838. package/lazy.d.ts +0 -359
  839. package/lazy.js.map +0 -7
  840. package/registry.d.ts +0 -315
  841. package/registry.js.map +0 -7
  842. package/src/api/APIErrors.tsx +0 -46
  843. package/src/api/APIProvider.tsx +0 -31
  844. package/src/api/fetchAPI.ts +0 -43
  845. package/src/api/index.spec.tsx +0 -417
  846. package/src/api/index.tsx +0 -9
  847. package/src/api/introduction.md +0 -6
  848. package/src/api/useResource.tsx +0 -96
  849. package/src/api/useResourceAction.tsx +0 -80
  850. package/src/api/useResourceQuery.tsx +0 -178
  851. package/src/api/utils.tsx +0 -162
  852. package/src/app/Header/index.mdx +0 -49
  853. package/src/content/Card/index.mdx +0 -103
  854. package/src/content/Chip/index.mdx +0 -53
  855. package/src/content/List/index.mdx +0 -40
  856. package/src/content/Table/index.mdx +0 -111
  857. package/src/feedback/CopyToClipboard/index.mdx +0 -28
  858. package/src/form/AutoComplete/index.mdx +0 -70
  859. package/src/form/TextArea/index.mdx +0 -74
  860. package/src/govgr/Footer/index.mdx +0 -101
  861. package/src/layouts/Basic/Masthead/index.tsx +0 -5
  862. package/src/layouts/Basic/Top/index.mdx +0 -23
  863. package/src/layouts/Grid/index.mdx +0 -39
  864. package/src/navigation/Pagination/index.mdx +0 -48
  865. package/src/navigation/Tabs/index.mdx +0 -31
  866. package/src/test-utils/delay.ts +0 -9
  867. package/src/typography/NormalText/index.mdx +0 -44
  868. package/src/typography/Paragraph/index.mdx +0 -32
  869. package/src/typography/Typography/index.mdx +0 -12
  870. package/src/utils/SvgIcon/index.tsx +0 -5
  871. package/test-utils/delay/index.js +0 -12
  872. package/test-utils/delay/package.json +0 -6
  873. package/test-utils/delay.d.ts +0 -2
  874. package/test-utils/delay.js.map +0 -7
  875. package/utils/SvgIcon/index.d.ts +0 -4
  876. package/utils/SvgIcon/index.js +0 -8
  877. package/utils/SvgIcon/index.js.map +0 -7
  878. package/utils/SvgIcon/package.json +0 -6
  879. /package/src/utils/Base/{index.mdx → doc.mdx} +0 -0
@@ -9,11 +9,7 @@ Use the back link component to help users go back to the previous page in a mult
9
9
 
10
10
  ## How to use
11
11
 
12
- <Story
13
- packageName="@digigov/ui"
14
- component="navigation/BackLink"
15
- story="Default.tsx"
16
- />
12
+ <code src="@digigov/ui/navigation/BackLink/__stories__/Default.tsx" />
17
13
 
18
14
  ## API
19
15
 
@@ -4,12 +4,12 @@ import { test, expect } from '@playwright/experimental-ct-react';
4
4
  import { Default } from '@digigov/ui/navigation/BackLink/__stories__/Default';
5
5
 
6
6
  test('renders the Default Click link', async ({ mount, page }) => {
7
- await mount(
8
- <Default />
9
- )
7
+ await mount(<Default />);
10
8
  await page.evaluate(() => document.fonts.ready);
11
- await page.locator("#root>a").click();
12
- const screenshot = await page.screenshot({ fullPage: true, animations: 'disabled' });
9
+ await page.locator('#root>a').click();
10
+ const screenshot = await page.screenshot({
11
+ fullPage: true,
12
+ animations: 'disabled',
13
+ });
13
14
  expect(screenshot).toMatchSnapshot();
14
15
  });
15
-
@@ -34,9 +34,8 @@ export const BackToTop: React.FC<BackToTopProps> = React.forwardRef(
34
34
  ...props
35
35
  }) {
36
36
  const [persistent, setPersistent] = useState<boolean>(false);
37
- const callSetPersistent = (value) => {
37
+ const callSetPersistent = (value) =>
38
38
  window.scrollY > 0 && setPersistent(value);
39
- };
40
39
  useObserver(topLimitId, callSetPersistent);
41
40
  useObserver('back-to-top-element', callSetPersistent);
42
41
 
@@ -9,3 +9,6 @@ export default {
9
9
  };
10
10
  export { Default } from '@digigov/ui/navigation/Breadcrumbs/__stories__/Default';
11
11
  export { WithoutCurrentPage } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithoutCurrentPage';
12
+ export { WithHook } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithHook';
13
+ export { WithProvider } from '@digigov/ui/navigation/Breadcrumbs/__stories__/WithProvider';
14
+ export { Auto } from '@digigov/ui/navigation/Breadcrumbs/__stories__/Auto';
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import BreadcrumbsListItemBase, {
4
+ BreadcrumbsListItemBaseProps,
5
+ } from '@digigov/react-core/BreadcrumbsListItem';
6
+ import Link from '@digigov/ui/navigation/Link';
7
+
8
+ export interface BreadcrumbsListItemProps extends BreadcrumbsListItemBaseProps {
9
+ href?: string;
10
+ }
11
+
12
+ const BreadcrumbsListItem: React.FC<BreadcrumbsListItemProps> = ({
13
+ href,
14
+ children,
15
+ ...props
16
+ }) => {
17
+ return (
18
+ <BreadcrumbsListItemBase {...props}>
19
+ <Link
20
+ href={href}
21
+ defaultStyle={false}
22
+ className={clsx({
23
+ 'ds-breadcrumbs__link': true,
24
+ 'ds-breadcrumbs__link--inactive': href === undefined,
25
+ })}
26
+ >
27
+ {children}
28
+ </Link>
29
+ </BreadcrumbsListItemBase>
30
+ );
31
+ };
32
+
33
+ export { BreadcrumbsListItem };
34
+ export default BreadcrumbsListItem;
@@ -0,0 +1,201 @@
1
+ import React from 'react';
2
+ import { List, ListItem } from '@digigov/ui/content/List';
3
+ import { Button } from '@digigov/ui/form/Button/';
4
+ import {
5
+ BreadcrumbsAuto,
6
+ BreadcrumbsListAuto,
7
+ useBreadcrumbsContext,
8
+ } from '@digigov/ui/navigation/Breadcrumbs/auto';
9
+ import { BreadcrumbItem } from '@digigov/ui/navigation/Breadcrumbs/hooks';
10
+ import { Heading } from '@digigov/ui/typography';
11
+
12
+ const items: BreadcrumbItem[] = [
13
+ {
14
+ title: 'Νομοθεσία Πυροπροστασίας',
15
+ children: [
16
+ { title: 'Εγχειρίδια Νομοθεσίας Πυρασφάλειας', pdf: '#' },
17
+ { title: 'Διάγραμμα Ισχύουσας Νομοθεσίας' },
18
+ { title: 'Οδηγίες Επί Προτύπων Πυροπροστασίας' },
19
+ { title: 'Απλουστεύσεις Διαδικασιών' },
20
+ { title: 'Χρήσιμα Έγγραφα' },
21
+ {
22
+ title: 'Νομοθεσία Πυρασφάλειας',
23
+ children: [
24
+ {
25
+ title: 'Λοιπές Δραστηριότητες Εγκαταστάσεις',
26
+ },
27
+ {
28
+ title:
29
+ 'Εγκαταστάσεις Πετρελαιοειδών Προϊόντων – Υγραερίου – Φυσικού Αερίου',
30
+ },
31
+ { title: 'Διατάξεις Προληπτικής Πυροπροστασίας' },
32
+ { title: 'Συνδρομητική Νομοθεσία Πυροπροστασίας' },
33
+ {
34
+ title:
35
+ 'Δραστηριότητες – Εγκαταστάσεις που δεν υπάγονται σε Νομοθετικό Πλαίσιο',
36
+ },
37
+ {
38
+ title: 'Κανονισμοί Πυροπροστασίας Κτιρίων',
39
+ // href: '/kanonismoi-pyroprostasias',
40
+ children: [
41
+ {
42
+ title: 'Κατοικίες',
43
+ },
44
+ {
45
+ title: 'Εγκαταστάσεις Κεντρικής Θέρμανσης',
46
+ },
47
+ {
48
+ title: 'Προσωρινή Διαμονή (Ξεν/χεία-Κατ/σεις)',
49
+ },
50
+ {
51
+ title: 'Εκπαιδευτήρια',
52
+ },
53
+ {
54
+ title: 'Γραφεία',
55
+ },
56
+ {
57
+ title: 'Εμπόριο (Καταστήματα)',
58
+ },
59
+ {
60
+ title: 'Συνάθροιση Κοινού',
61
+ },
62
+ {
63
+ title: 'Υγεία & Κοινωνική Πρόνοια',
64
+ },
65
+ {
66
+ title: 'Σωφρονισμός',
67
+ },
68
+ {
69
+ title: 'Στάθμευση Αυτοκινήτων',
70
+ },
71
+
72
+ {
73
+ title: 'Λοιπές Βιομηχανικές Εγκαταστάσεις',
74
+ },
75
+ {
76
+ title: 'Αποθήκευση',
77
+ },
78
+ {
79
+ title: 'Συνεργεία, ΙΚτέο, Εμπ.Σταθμοί, Κτελ, Πλυντ.-Λιπαντ.',
80
+ },
81
+ {
82
+ title: 'Πρατήρια Υγρών Καυσίμων',
83
+ },
84
+ {
85
+ title: 'Πρατήρια Αερίων Καυσίμων',
86
+ },
87
+ {
88
+ title: 'Μεταποιητικές & Συναφείς Εγκαταστάσεις',
89
+ // href: '/metapoiitikes-egkatastaseis',
90
+ children: [
91
+ {
92
+ title: 'ΠΔ 41/2018 & ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
93
+ },
94
+ {
95
+ title: 'ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
96
+ },
97
+ {
98
+ title: 'ΠΔ 71/1988 ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
99
+ children: [
100
+ { title: 'Γενικές Διατάξεις ΠΔ 41/2018' },
101
+ { title: 'ΚΥΑ ΑΠ-136860-1673-Φ15-2018' },
102
+ {
103
+ title: 'Γενικές Διατάξεις ΠΔ 71/2018',
104
+ children: [
105
+ {
106
+ title: 'Άρθρο 1: Ορισμοί – Ταξινόμηση Κτιρίων',
107
+ },
108
+ {
109
+ title: 'Άρθρο 2: Οδεύσεις Διαφυγής',
110
+ },
111
+ {
112
+ title: 'Άρθρο 3: Δομική Προστασία',
113
+ },
114
+ {
115
+ title: 'Άρθρο 4: Ενεργητικά Μέτρα Πυροπροστασίας',
116
+ pdf: '#pdf',
117
+ },
118
+ {
119
+ title:
120
+ 'Άρθρο 14: Παράρτημα Α - Δείκτες Πυραντίστασης',
121
+ },
122
+ {
123
+ title:
124
+ 'Άρθρο 14: Παράρτημα Β – Εσωτερικά Τελειώματα',
125
+ },
126
+ {
127
+ title: 'Άρθρο 15: Εφαρμογή ΠΔ 71/1988',
128
+ },
129
+ {
130
+ title:
131
+ 'Άρθρο 23-24: Έναρξη Εφαρμογής – Καταργούμενες Διατάξεις',
132
+ },
133
+ ],
134
+ },
135
+ ],
136
+ },
137
+ ],
138
+ },
139
+ ],
140
+ },
141
+ ],
142
+ },
143
+ ],
144
+ },
145
+ ];
146
+
147
+ const getListChild = (item, setActive) => {
148
+ return item.children ? (
149
+ <>
150
+ <Heading size="sm" mb={0}>
151
+ {item.title}
152
+ </Heading>
153
+ <List listStyle="number">
154
+ {item.children?.map((subMenu, key) => (
155
+ <ListItem key={key}>{getListChild(subMenu, setActive)}</ListItem>
156
+ ))}
157
+ </List>
158
+ </>
159
+ ) : (
160
+ <Button
161
+ variant="link"
162
+ role="menuitem"
163
+ id={item.title}
164
+ onClick={(e) => {
165
+ e.preventDefault();
166
+ setActive(item);
167
+ }}
168
+ >
169
+ {item.title}
170
+ </Button>
171
+ );
172
+ };
173
+
174
+ export const Auto = () => {
175
+ return (
176
+ <BreadcrumbsAuto
177
+ items={items}
178
+ initialUrlRoute="/nomothesia-pyroprostasias/odigies-epi-protypon-pyroprostasias"
179
+ >
180
+ <BreadcrumbsListAuto mb={8} />
181
+ <ContentRoutes />
182
+ </BreadcrumbsAuto>
183
+ );
184
+ };
185
+
186
+ const ContentRoutes = () => {
187
+ const { breadcrumbs, setActiveItem } = useBreadcrumbsContext();
188
+
189
+ return (
190
+ <>
191
+ {breadcrumbs.length > 0 && (
192
+ <Heading size="xl">
193
+ {breadcrumbs[breadcrumbs.length - 1]?.title}
194
+ </Heading>
195
+ )}
196
+ {items.map((item) => getListChild(item, setActiveItem))}
197
+ </>
198
+ );
199
+ };
200
+
201
+ export default Auto;
@@ -0,0 +1,219 @@
1
+ import React from 'react';
2
+ import { List, ListItem } from '@digigov/ui/content/List';
3
+ import { Button } from '@digigov/ui/form/Button';
4
+ import {
5
+ Breadcrumbs,
6
+ BreadcrumbsList,
7
+ BreadcrumbsListItem,
8
+ } from '@digigov/ui/navigation/Breadcrumbs';
9
+ import {
10
+ useBreadcrumbs,
11
+ BreadcrumbItem,
12
+ } from '@digigov/ui/navigation/Breadcrumbs/hooks';
13
+ import { Heading } from '@digigov/ui/typography';
14
+
15
+ const items: BreadcrumbItem[] = [
16
+ {
17
+ title: 'Νομοθεσία Πυροπροστασίας',
18
+ children: [
19
+ {
20
+ title: 'Εγχειρίδια Νομοθεσίας Πυρασφάλειας',
21
+ pdf: '#',
22
+ href: 'echiridia-nomothesia-pyroprostasias',
23
+ },
24
+ { title: 'Διάγραμμα Ισχύουσας Νομοθεσίας' },
25
+ { title: 'Οδηγίες Επί Προτύπων Πυροπροστασίας' },
26
+ { title: 'Απλουστεύσεις Διαδικασιών' },
27
+ { title: 'Χρήσιμα Έγγραφα' },
28
+ {
29
+ title: 'Νομοθεσία Πυρασφάλειας',
30
+ children: [
31
+ {
32
+ title: 'Λοιπές Δραστηριότητες Εγκαταστάσεις',
33
+ },
34
+ {
35
+ title:
36
+ 'Εγκαταστάσεις Πετρελαιοειδών Προϊόντων – Υγραερίου – Φυσικού Αερίου',
37
+ },
38
+ { title: 'Διατάξεις Προληπτικής Πυροπροστασίας' },
39
+ { title: 'Συνδρομητική Νομοθεσία Πυροπροστασίας' },
40
+ {
41
+ title:
42
+ 'Δραστηριότητες – Εγκαταστάσεις που δεν υπάγονται σε Νομοθετικό Πλαίσιο',
43
+ },
44
+ {
45
+ title: 'Κανονισμοί Πυροπροστασίας Κτιρίων',
46
+ // href: '/kanonismoi-pyroprostasias',
47
+ children: [
48
+ {
49
+ title: 'Κατοικίες',
50
+ },
51
+ {
52
+ title: 'Εγκαταστάσεις Κεντρικής Θέρμανσης',
53
+ },
54
+ {
55
+ title: 'Προσωρινή Διαμονή (Ξεν/χεία-Κατ/σεις)',
56
+ },
57
+ {
58
+ title: 'Εκπαιδευτήρια',
59
+ },
60
+ {
61
+ title: 'Γραφεία',
62
+ },
63
+ {
64
+ title: 'Εμπόριο (Καταστήματα)',
65
+ },
66
+ {
67
+ title: 'Συνάθροιση Κοινού',
68
+ },
69
+ {
70
+ title: 'Υγεία & Κοινωνική Πρόνοια',
71
+ },
72
+ {
73
+ title: 'Σωφρονισμός',
74
+ },
75
+ {
76
+ title: 'Στάθμευση Αυτοκινήτων',
77
+ },
78
+
79
+ {
80
+ title: 'Λοιπές Βιομηχανικές Εγκαταστάσεις',
81
+ },
82
+ {
83
+ title: 'Αποθήκευση',
84
+ },
85
+ {
86
+ title: 'Συνεργεία, ΙΚτέο, Εμπ.Σταθμοί, Κτελ, Πλυντ.-Λιπαντ.',
87
+ },
88
+ {
89
+ title: 'Πρατήρια Υγρών Καυσίμων',
90
+ },
91
+ {
92
+ title: 'Πρατήρια Αερίων Καυσίμων',
93
+ },
94
+ {
95
+ title: 'Μεταποιητικές & Συναφείς Εγκαταστάσεις',
96
+ // href: '/metapoiitikes-egkatastaseis',
97
+ children: [
98
+ {
99
+ title: 'ΠΔ 41/2018 & ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
100
+ },
101
+ {
102
+ title: 'ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
103
+ },
104
+ {
105
+ title: 'ΠΔ 71/1988 ΚΥΑ ΑΠ-136860-1673-Φ15-2018',
106
+ children: [
107
+ { title: 'Γενικές Διατάξεις ΠΔ 41/2018' },
108
+ { title: 'ΚΥΑ ΑΠ-136860-1673-Φ15-2018' },
109
+ {
110
+ title: 'Γενικές Διατάξεις ΠΔ 71/2018',
111
+ children: [
112
+ {
113
+ title: 'Άρθρο 1: Ορισμοί – Ταξινόμηση Κτιρίων',
114
+ },
115
+ {
116
+ title: 'Άρθρο 2: Οδεύσεις Διαφυγής',
117
+ },
118
+ {
119
+ title: 'Άρθρο 3: Δομική Προστασία',
120
+ },
121
+ {
122
+ title: 'Άρθρο 4: Ενεργητικά Μέτρα Πυροπροστασίας',
123
+ pdf: '#pdf',
124
+ },
125
+ {
126
+ title:
127
+ 'Άρθρο 14: Παράρτημα Α - Δείκτες Πυραντίστασης',
128
+ },
129
+ {
130
+ title:
131
+ 'Άρθρο 14: Παράρτημα Β – Εσωτερικά Τελειώματα',
132
+ },
133
+ {
134
+ title: 'Άρθρο 15: Εφαρμογή ΠΔ 71/1988',
135
+ },
136
+ {
137
+ title:
138
+ 'Άρθρο 23-24: Έναρξη Εφαρμογής – Καταργούμενες Διατάξεις',
139
+ },
140
+ ],
141
+ },
142
+ ],
143
+ },
144
+ ],
145
+ },
146
+ ],
147
+ },
148
+ ],
149
+ },
150
+ ],
151
+ },
152
+ ];
153
+
154
+ // creates the ol>li lists for the items data
155
+ const getListChild = (item, setActive) => {
156
+ return item.children ? (
157
+ <>
158
+ <Heading size="sm" mb={0}>
159
+ {item.title}
160
+ </Heading>
161
+ <List listStyle="number">
162
+ {item.children?.map((subMenu, key) => (
163
+ <ListItem key={key}>{getListChild(subMenu, setActive)}</ListItem>
164
+ ))}
165
+ </List>
166
+ </>
167
+ ) : (
168
+ <Button
169
+ variant="link"
170
+ role="menuitem"
171
+ id={item.title}
172
+ onClick={(e) => {
173
+ e.preventDefault();
174
+ setActive(item);
175
+ }}
176
+ >
177
+ {item.title}
178
+ </Button>
179
+ );
180
+ };
181
+
182
+ export const WithHook = () => {
183
+ // initialUrlRoute: '/nomothesia-pyroprostasias/odigies-epi-protypon-pyroprostasias'
184
+ // is to simulate that the user lands to a specific url
185
+ const { breadcrumbs, setActiveItem } = useBreadcrumbs(
186
+ items,
187
+ '/nomothesia-pyroprostasias/odigies-epi-protypon-pyroprostasias'
188
+ );
189
+ return (
190
+ <>
191
+ {breadcrumbs.length > 1 && (
192
+ <Breadcrumbs mb={8}>
193
+ <BreadcrumbsList>
194
+ {breadcrumbs.map((breadcrumb, index) => (
195
+ <BreadcrumbsListItem
196
+ key={index}
197
+ href={breadcrumbs.length - 1 === index ? undefined : '#'}
198
+ onClick={() => setActiveItem(breadcrumb)}
199
+ aria-current={
200
+ breadcrumbs.length - 1 === index ? 'page' : undefined
201
+ }
202
+ >
203
+ {breadcrumb.title}
204
+ </BreadcrumbsListItem>
205
+ ))}
206
+ </BreadcrumbsList>
207
+ </Breadcrumbs>
208
+ )}
209
+ {breadcrumbs.length > 0 && (
210
+ <Heading size="xl">
211
+ {breadcrumbs[breadcrumbs.length - 1]?.title}
212
+ </Heading>
213
+ )}
214
+ {items.map((item) => getListChild(item, setActiveItem))}
215
+ </>
216
+ );
217
+ };
218
+
219
+ export default WithHook;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import {
3
+ Breadcrumbs,
4
+ BreadcrumbsList,
5
+ BreadcrumbsListItem,
6
+ } from '@digigov/ui/navigation/Breadcrumbs';
7
+ import { LinkProvider } from '@digigov/ui/navigation/Link';
8
+
9
+ const CustomLink: React.FC<any> = (props) => {
10
+ return <div>custom link: {props.children}</div>;
11
+ };
12
+
13
+ export const WithProvider = () => (
14
+ <LinkProvider component={CustomLink}>
15
+ <Breadcrumbs role="navigation">
16
+ <BreadcrumbsList>
17
+ <BreadcrumbsListItem href="#">Αρχική</BreadcrumbsListItem>
18
+ <BreadcrumbsListItem href="#">Υγεία και πρόνοια</BreadcrumbsListItem>
19
+ <BreadcrumbsListItem href="#">Φάκελος υγείας</BreadcrumbsListItem>
20
+ <BreadcrumbsListItem aria-current="page">
21
+ Άυλη συνταγογράφηση
22
+ </BreadcrumbsListItem>
23
+ </BreadcrumbsList>
24
+ </Breadcrumbs>
25
+ </LinkProvider>
26
+ );
27
+
28
+ export default WithProvider;
@@ -0,0 +1,71 @@
1
+ import React, { createContext, useContext, ReactNode } from 'react';
2
+ import {
3
+ Breadcrumbs,
4
+ BreadcrumbsList,
5
+ BreadcrumbsListItem,
6
+ BreadcrumbsProps,
7
+ } from '@digigov/ui/navigation/Breadcrumbs';
8
+ import {
9
+ useBreadcrumbs,
10
+ UseBreadcrumbsReturn,
11
+ BreadcrumbItem,
12
+ } from '@digigov/ui/navigation/Breadcrumbs/hooks';
13
+
14
+ export interface BreadcrumbsListAutoProps extends BreadcrumbsProps {}
15
+ export interface BreadcrumbsAutoProps extends BreadcrumbsProps {
16
+ items: BreadcrumbItem[];
17
+ initialUrlRoute?: string;
18
+ children: ReactNode;
19
+ }
20
+ export const BreadcrumbsContext = createContext<UseBreadcrumbsReturn | null>(
21
+ null
22
+ );
23
+
24
+ export const BreadcrumbsAuto = ({
25
+ items,
26
+ initialUrlRoute,
27
+ children,
28
+ }: BreadcrumbsAutoProps) => {
29
+ const breadcrumbs = useBreadcrumbs(items, initialUrlRoute);
30
+
31
+ return (
32
+ <BreadcrumbsContext.Provider value={breadcrumbs}>
33
+ {children}
34
+ </BreadcrumbsContext.Provider>
35
+ );
36
+ };
37
+
38
+ export const useBreadcrumbsContext = (): UseBreadcrumbsReturn => {
39
+ const context = useContext(BreadcrumbsContext);
40
+ if (!context) {
41
+ throw new Error(
42
+ 'BreadcrumbsContext must be used within an BreadcrumbsProvider'
43
+ );
44
+ }
45
+ return context;
46
+ };
47
+
48
+ export const BreadcrumbsListAuto = React.forwardRef<
49
+ HTMLDivElement,
50
+ BreadcrumbsListAutoProps
51
+ >(function BreadcrumbsListAuto(props, ref) {
52
+ const { breadcrumbs, setActiveItem } = useBreadcrumbsContext();
53
+ return (
54
+ <Breadcrumbs ref={ref} role="navigation" {...props}>
55
+ <BreadcrumbsList>
56
+ {breadcrumbs.map((breadcrumb, index) => (
57
+ <BreadcrumbsListItem
58
+ key={index}
59
+ href={
60
+ breadcrumbs.length - 1 === index ? undefined : breadcrumb.href
61
+ }
62
+ onClick={() => setActiveItem(breadcrumb)}
63
+ aria-current={breadcrumbs.length - 1 === index ? 'page' : undefined}
64
+ >
65
+ {breadcrumb.title}
66
+ </BreadcrumbsListItem>
67
+ ))}
68
+ </BreadcrumbsList>
69
+ </Breadcrumbs>
70
+ );
71
+ });
@@ -11,11 +11,11 @@ The Breadcrumbs component lets users show and hide sections of related content o
11
11
 
12
12
  ## How to use
13
13
 
14
- <Story
15
- packageName="@digigov/ui"
16
- component="navigation/Breadcrumbs"
17
- story="Default.tsx"
18
- />
14
+ <code src="@digigov/ui/navigation/Breadcrumbs/__stories__/Default.tsx" />
15
+
16
+ ### Without current page
17
+
18
+ <code src="@digigov/ui/navigation/Breadcrumbs/__stories__/WithoutCurrentPage.tsx" />
19
19
 
20
20
  ## Accessibility
21
21
 
@@ -0,0 +1,66 @@
1
+ import { useCallback, useMemo, useState } from 'react';
2
+ import { slug } from '@digigov/ui/navigation/Breadcrumbs/slug';
3
+ import { flattenRoutes } from '@digigov/ui/navigation/Breadcrumbs/utils';
4
+
5
+ export interface BreadcrumbItem {
6
+ title: string;
7
+ href?: string;
8
+ [key: string]: unknown;
9
+ }
10
+
11
+ export interface UseBreadcrumbsReturn {
12
+ breadcrumbs: BreadcrumbItem[];
13
+ currentRoute: string;
14
+ setActiveItem: (item: BreadcrumbItem) => void;
15
+ }
16
+
17
+ export const useBreadcrumbs = (
18
+ items: BreadcrumbItem[],
19
+ initialUrlRoute?: string
20
+ ): UseBreadcrumbsReturn => {
21
+ const routes = useMemo(() => flattenRoutes(items, 100), [items]);
22
+ const [currentRoute, setCurrentRoute] = useState(initialUrlRoute || '');
23
+
24
+ const setActiveItem = useCallback(
25
+ (item) => {
26
+ const itemHref = item.href ?? slug(item.title, 100);
27
+ setCurrentRoute(() => {
28
+ const selectedRoute = Object.keys(routes).find((route) =>
29
+ route.endsWith(itemHref)
30
+ );
31
+ return selectedRoute || '/';
32
+ });
33
+ },
34
+ [routes]
35
+ );
36
+
37
+ const constructBreadcrumbs = useCallback(
38
+ (routes): BreadcrumbItem[] => {
39
+ if (currentRoute) {
40
+ const selectedBreadcrumb = routes[currentRoute];
41
+ return [
42
+ ...(selectedBreadcrumb?.parents?.map((parent) => {
43
+ return {
44
+ title: parent,
45
+ href: Object.keys(routes).find((route) => {
46
+ return routes[route].title === parent;
47
+ }),
48
+ };
49
+ }) || []),
50
+ {
51
+ title: selectedBreadcrumb?.title,
52
+ href: currentRoute,
53
+ },
54
+ ];
55
+ }
56
+ return [];
57
+ },
58
+ [currentRoute]
59
+ );
60
+
61
+ return {
62
+ breadcrumbs: constructBreadcrumbs(routes),
63
+ currentRoute,
64
+ setActiveItem,
65
+ };
66
+ };