@digigov/ui 0.8.0 → 0.9.1

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 (354) hide show
  1. package/CHANGELOG.md +41 -1
  2. package/api/index.spec.js +112 -212
  3. package/app/App.js +6 -8
  4. package/app/Header/HeaderLogo.js +19 -39
  5. package/app/Header/HeaderSection.js +6 -43
  6. package/app/Header/HeaderTitle.js +14 -91
  7. package/app/Header/index.js +20 -67
  8. package/app/Header/index.spec.js +0 -1
  9. package/app/PageTitle.js +45 -81
  10. package/core/Accordion/index.js +103 -57
  11. package/core/Blockquote/index.js +17 -47
  12. package/core/Button/BackButton.js +20 -42
  13. package/core/Button/ButtonLink.js +28 -0
  14. package/core/Button/CallToAction.js +21 -12
  15. package/core/Button/Icon.js +5 -47
  16. package/core/Button/index.js +49 -99
  17. package/core/Details/index.js +22 -70
  18. package/core/Divider/index.js +9 -9
  19. package/core/ErrorSummary/index.js +8 -28
  20. package/core/List/List.js +8 -34
  21. package/core/List/ListItem.js +8 -38
  22. package/core/List/ListItemTitle.js +1 -3
  23. package/core/NavList/NavListItem.js +2 -2
  24. package/core/NotificationBanner/index.js +49 -48
  25. package/core/NotificationBanner/index.spec.js +3 -1
  26. package/core/ServiceBadge/index.js +17 -28
  27. package/core/SummaryList/index.js +57 -124
  28. package/core/Tabs/index.js +65 -98
  29. package/core/WarningText/index.js +8 -41
  30. package/es/api/index.spec.js +112 -209
  31. package/es/app/App.js +6 -8
  32. package/es/app/Header/HeaderLogo.js +15 -30
  33. package/es/app/Header/HeaderSection.js +5 -36
  34. package/es/app/Header/HeaderTitle.js +13 -78
  35. package/es/app/Header/index.js +6 -56
  36. package/es/app/Header/index.spec.js +0 -1
  37. package/es/app/PageTitle.js +46 -74
  38. package/es/core/Accordion/index.js +64 -52
  39. package/es/core/Blockquote/index.js +13 -39
  40. package/es/core/Button/BackButton.js +18 -36
  41. package/es/core/Button/ButtonLink.js +16 -0
  42. package/es/core/Button/CallToAction.js +19 -9
  43. package/es/core/Button/Icon.js +5 -35
  44. package/es/core/Button/index.js +26 -87
  45. package/es/core/Details/index.js +5 -62
  46. package/es/core/Divider/index.js +7 -6
  47. package/es/core/ErrorSummary/index.js +2 -21
  48. package/es/core/List/List.js +2 -26
  49. package/es/core/List/ListItem.js +2 -30
  50. package/es/core/List/ListItemTitle.js +1 -3
  51. package/es/core/NavList/NavListItem.js +1 -1
  52. package/es/core/NotificationBanner/index.js +27 -45
  53. package/es/core/NotificationBanner/index.spec.js +3 -1
  54. package/es/core/ServiceBadge/index.js +15 -25
  55. package/es/core/SummaryList/index.js +7 -119
  56. package/es/core/Tabs/index.js +33 -93
  57. package/es/core/WarningText/index.js +2 -33
  58. package/es/govgr/Footer/Copyright.js +14 -36
  59. package/es/govgr/Footer/HellenicRepublicLogo.js +2 -30
  60. package/es/govgr/Footer/LicenseCCSA.js +2 -17
  61. package/es/govgr/Footer/index.js +23 -69
  62. package/es/govgr/Logo/index.js +2 -14
  63. package/es/hooks/useTogglableSections.js +96 -0
  64. package/es/layouts/Basic/Bottom/index.js +3 -13
  65. package/es/layouts/Basic/Content/index.js +14 -51
  66. package/es/layouts/Basic/Content/index.mdx +1 -1
  67. package/es/layouts/Basic/Main/index.js +3 -21
  68. package/es/layouts/Basic/Masthead/index.js +4 -47
  69. package/es/layouts/Basic/Masthead/index.mdx +1 -1
  70. package/es/layouts/Basic/Side/index.js +6 -28
  71. package/es/layouts/Basic/Top/index.js +7 -36
  72. package/es/layouts/Basic/index.js +3 -49
  73. package/es/themes/grnet.js +1 -1
  74. package/es/typography/Caption.js +5 -21
  75. package/es/typography/NormalText.js +2 -10
  76. package/es/typography/Paragraph.js +1 -29
  77. package/es/typography/Title.js +40 -87
  78. package/es/utils/withDeprecation.js +93 -0
  79. package/esm/api/index.spec.js +112 -209
  80. package/esm/app/App.js +6 -8
  81. package/esm/app/Header/HeaderLogo.js +15 -30
  82. package/esm/app/Header/HeaderSection.js +5 -36
  83. package/esm/app/Header/HeaderTitle.js +13 -78
  84. package/esm/app/Header/index.js +6 -56
  85. package/esm/app/Header/index.spec.js +0 -1
  86. package/esm/app/PageTitle.js +46 -74
  87. package/esm/core/Accordion/index.js +64 -52
  88. package/esm/core/Blockquote/index.js +13 -39
  89. package/esm/core/Button/BackButton.js +18 -36
  90. package/esm/core/Button/ButtonLink.js +16 -0
  91. package/esm/core/Button/CallToAction.js +19 -9
  92. package/esm/core/Button/Icon.js +5 -35
  93. package/esm/core/Button/index.js +26 -87
  94. package/esm/core/Details/index.js +5 -62
  95. package/esm/core/Divider/index.js +7 -6
  96. package/esm/core/ErrorSummary/index.js +2 -21
  97. package/esm/core/List/List.js +2 -26
  98. package/esm/core/List/ListItem.js +2 -30
  99. package/esm/core/List/ListItemTitle.js +1 -3
  100. package/esm/core/NavList/NavListItem.js +1 -1
  101. package/esm/core/NotificationBanner/index.js +27 -45
  102. package/esm/core/NotificationBanner/index.spec.js +3 -1
  103. package/esm/core/ServiceBadge/index.js +15 -25
  104. package/esm/core/SummaryList/index.js +7 -119
  105. package/esm/core/Tabs/index.js +33 -93
  106. package/esm/core/WarningText/index.js +2 -33
  107. package/esm/govgr/Footer/Copyright.js +14 -36
  108. package/esm/govgr/Footer/HellenicRepublicLogo.js +2 -30
  109. package/esm/govgr/Footer/LicenseCCSA.js +2 -17
  110. package/esm/govgr/Footer/index.js +23 -69
  111. package/esm/govgr/Logo/index.js +2 -14
  112. package/esm/hooks/useTogglableSections.js +96 -0
  113. package/esm/index.js +1 -1
  114. package/esm/layouts/Basic/Bottom/index.js +3 -13
  115. package/esm/layouts/Basic/Content/index.js +14 -51
  116. package/esm/layouts/Basic/Content/index.mdx +1 -1
  117. package/esm/layouts/Basic/Main/index.js +3 -21
  118. package/esm/layouts/Basic/Masthead/index.js +4 -47
  119. package/esm/layouts/Basic/Masthead/index.mdx +1 -1
  120. package/esm/layouts/Basic/Side/index.js +6 -28
  121. package/esm/layouts/Basic/Top/index.js +7 -36
  122. package/esm/layouts/Basic/index.js +3 -49
  123. package/esm/themes/grnet.js +1 -1
  124. package/esm/typography/Caption.js +5 -21
  125. package/esm/typography/NormalText.js +2 -10
  126. package/esm/typography/Paragraph.js +1 -29
  127. package/esm/typography/Title.js +40 -87
  128. package/esm/utils/withDeprecation.js +93 -0
  129. package/govgr/Footer/Copyright.js +15 -42
  130. package/govgr/Footer/HellenicRepublicLogo.js +8 -39
  131. package/govgr/Footer/LicenseCCSA.js +2 -19
  132. package/govgr/Footer/index.js +23 -72
  133. package/govgr/Logo/index.js +9 -28
  134. package/hooks/useTogglableSections.js +108 -0
  135. package/layouts/Basic/Bottom/index.js +10 -19
  136. package/layouts/Basic/Content/index.js +17 -68
  137. package/layouts/Basic/Content/index.mdx +1 -1
  138. package/layouts/Basic/Main/index.js +10 -23
  139. package/layouts/Basic/Masthead/index.js +17 -54
  140. package/layouts/Basic/Masthead/index.mdx +1 -1
  141. package/layouts/Basic/Side/index.js +9 -35
  142. package/layouts/Basic/Top/index.js +7 -40
  143. package/layouts/Basic/index.js +4 -57
  144. package/{api → libs/ui/src/api}/APIErrors.d.ts +0 -0
  145. package/{api → libs/ui/src/api}/APIProvider.d.ts +0 -0
  146. package/{api → libs/ui/src/api}/fetchAPI.d.ts +0 -0
  147. package/{api → libs/ui/src/api}/index.d.ts +0 -0
  148. package/{api → libs/ui/src/api}/index.spec.d.ts +0 -0
  149. package/{api → libs/ui/src/api}/useResource.d.ts +0 -0
  150. package/{api → libs/ui/src/api}/useResourceAction.d.ts +0 -0
  151. package/{api → libs/ui/src/api}/useResourceQuery.d.ts +0 -0
  152. package/{api → libs/ui/src/api}/utils.d.ts +0 -0
  153. package/{app → libs/ui/src/app}/App.d.ts +0 -0
  154. package/libs/ui/src/app/Header/HeaderLogo.d.ts +3 -0
  155. package/libs/ui/src/app/Header/HeaderSection.d.ts +5 -0
  156. package/libs/ui/src/app/Header/HeaderTitle.d.ts +5 -0
  157. package/libs/ui/src/app/Header/index.d.ts +9 -0
  158. package/{app → libs/ui/src/app}/Header/index.spec.d.ts +0 -0
  159. package/{app → libs/ui/src/app}/NotFound/index.d.ts +0 -0
  160. package/{app → libs/ui/src/app}/OutdatedBrowserBanner.d.ts +0 -0
  161. package/libs/ui/src/app/PageTitle.d.ts +10 -0
  162. package/{app → libs/ui/src/app}/QrCodeScanner/index.d.ts +0 -0
  163. package/{app → libs/ui/src/app}/QrCodeScanner/index.spec.d.ts +0 -0
  164. package/{app → libs/ui/src/app}/i18n.d.ts +0 -0
  165. package/{app → libs/ui/src/app}/index.d.ts +0 -0
  166. package/libs/ui/src/core/Accordion/index.d.ts +21 -0
  167. package/{core → libs/ui/src/core}/Accordion/index.spec.d.ts +0 -0
  168. package/libs/ui/src/core/Blockquote/index.d.ts +3 -0
  169. package/{core → libs/ui/src/core}/Blockquote/index.spec.d.ts +0 -0
  170. package/libs/ui/src/core/Button/BackButton.d.ts +3 -0
  171. package/libs/ui/src/core/Button/ButtonLink.d.ts +4 -0
  172. package/libs/ui/src/core/Button/CallToAction.d.ts +7 -0
  173. package/libs/ui/src/core/Button/Icon.d.ts +2 -0
  174. package/libs/ui/src/core/Button/index.d.ts +14 -0
  175. package/{core → libs/ui/src/core}/Button/index.spec.d.ts +0 -0
  176. package/libs/ui/src/core/Details/index.d.ts +5 -0
  177. package/{core → libs/ui/src/core}/Details/index.spec.d.ts +0 -0
  178. package/libs/ui/src/core/Divider/index.d.ts +5 -0
  179. package/libs/ui/src/core/ErrorSummary/index.d.ts +3 -0
  180. package/{core → libs/ui/src/core}/ErrorSummary/index.spec.d.ts +0 -0
  181. package/{core → libs/ui/src/core}/Link/index.d.ts +0 -0
  182. package/{core → libs/ui/src/core}/Link/index.spec.d.ts +0 -0
  183. package/libs/ui/src/core/List/List.d.ts +3 -0
  184. package/libs/ui/src/core/List/ListItem.d.ts +3 -0
  185. package/{core → libs/ui/src/core}/List/ListItemContent.d.ts +0 -0
  186. package/{core → libs/ui/src/core}/List/ListItemIcon.d.ts +0 -0
  187. package/{core → libs/ui/src/core}/List/ListItemText.d.ts +1 -0
  188. package/{core → libs/ui/src/core}/List/ListItemTitle.d.ts +0 -0
  189. package/{core → libs/ui/src/core}/List/index.d.ts +0 -0
  190. package/{core → libs/ui/src/core}/List/index.spec.d.ts +0 -0
  191. package/{core → libs/ui/src/core}/NavList/NavList.d.ts +1 -1
  192. package/{core → libs/ui/src/core}/NavList/NavListContext.d.ts +0 -0
  193. package/{core → libs/ui/src/core}/NavList/NavListItem.d.ts +0 -0
  194. package/{core → libs/ui/src/core}/NavList/NavListItemBase.d.ts +1 -1
  195. package/{core → libs/ui/src/core}/NavList/NavListSubMenu.d.ts +0 -0
  196. package/{core → libs/ui/src/core}/NavList/index.d.ts +0 -0
  197. package/{core → libs/ui/src/core}/NavList/index.spec.d.ts +0 -0
  198. package/libs/ui/src/core/NotificationBanner/index.d.ts +17 -0
  199. package/{core → libs/ui/src/core}/NotificationBanner/index.spec.d.ts +0 -0
  200. package/libs/ui/src/core/ServiceBadge/index.d.ts +8 -0
  201. package/libs/ui/src/core/SummaryList/index.d.ts +7 -0
  202. package/{core → libs/ui/src/core}/SummaryList/index.spec.d.ts +0 -0
  203. package/libs/ui/src/core/Tabs/index.d.ts +16 -0
  204. package/libs/ui/src/core/WarningText/index.d.ts +3 -0
  205. package/{core → libs/ui/src/core}/WarningText/index.spec.d.ts +0 -0
  206. package/{core → libs/ui/src/core}/index.d.ts +0 -0
  207. package/{govgr → libs/ui/src/govgr}/Footer/Copyright.d.ts +1 -1
  208. package/libs/ui/src/govgr/Footer/HellenicRepublicLogo.d.ts +3 -0
  209. package/{govgr → libs/ui/src/govgr}/Footer/LicenseCCSA.d.ts +0 -0
  210. package/{govgr → libs/ui/src/govgr}/Footer/index.d.ts +3 -3
  211. package/{govgr → libs/ui/src/govgr}/Footer/logo.d.ts +0 -0
  212. package/libs/ui/src/govgr/Footer/logos/logo-el.d.ts +2 -0
  213. package/libs/ui/src/govgr/Footer/logos/logo-en.d.ts +2 -0
  214. package/libs/ui/src/govgr/Logo/index.d.ts +3 -0
  215. package/{govgr → libs/ui/src/govgr}/Logo/logo.d.ts +0 -0
  216. package/{govgr → libs/ui/src/govgr}/index.d.ts +0 -0
  217. package/{hooks → libs/ui/src/hooks}/useDebounce.d.ts +0 -0
  218. package/{hooks → libs/ui/src/hooks}/useLatest.d.ts +0 -0
  219. package/{hooks → libs/ui/src/hooks}/useOutdatedBrowserCheck.d.ts +0 -0
  220. package/{hooks → libs/ui/src/hooks}/useSearch.d.ts +0 -0
  221. package/libs/ui/src/hooks/useTogglableSections.d.ts +18 -0
  222. package/{index.d.ts → libs/ui/src/index.d.ts} +0 -0
  223. package/libs/ui/src/layouts/Basic/Bottom/index.d.ts +3 -0
  224. package/libs/ui/src/layouts/Basic/Content/index.d.ts +5 -0
  225. package/libs/ui/src/layouts/Basic/Main/index.d.ts +3 -0
  226. package/libs/ui/src/layouts/Basic/Masthead/index.d.ts +4 -0
  227. package/libs/ui/src/layouts/Basic/Side/index.d.ts +3 -0
  228. package/libs/ui/src/layouts/Basic/Top/index.d.ts +3 -0
  229. package/libs/ui/src/layouts/Basic/index.d.ts +8 -0
  230. package/{layouts → libs/ui/src/layouts}/Basic/index.spec.d.ts +0 -0
  231. package/{layouts → libs/ui/src/layouts}/index.d.ts +0 -0
  232. package/{locales → libs/ui/src/locales}/el.d.ts +0 -0
  233. package/{locales → libs/ui/src/locales}/en.d.ts +0 -0
  234. package/{router → libs/ui/src/router}/index.d.ts +0 -0
  235. package/{test-utils → libs/ui/src/test-utils}/delay.d.ts +0 -0
  236. package/{test-utils → libs/ui/src/test-utils}/mountWithTheme.d.ts +0 -0
  237. package/{themes → libs/ui/src/themes}/govgr.d.ts +0 -0
  238. package/{themes → libs/ui/src/themes}/grnet.d.ts +0 -0
  239. package/{themes → libs/ui/src/themes}/index.d.ts +0 -0
  240. package/libs/ui/src/typography/Caption.d.ts +7 -0
  241. package/libs/ui/src/typography/NormalText.d.ts +5 -0
  242. package/libs/ui/src/typography/Paragraph.d.ts +6 -0
  243. package/libs/ui/src/typography/Title.d.ts +9 -0
  244. package/{typography → libs/ui/src/typography}/index.d.ts +0 -0
  245. package/{utils → libs/ui/src/utils}/evaluateBrowserVersion.d.ts +0 -0
  246. package/libs/ui/src/utils/withDeprecation.d.ts +16 -0
  247. package/libs-ui/react-core/src/Accordion/index.d.ts +10 -0
  248. package/libs-ui/react-core/src/AccordionControls/index.d.ts +9 -0
  249. package/libs-ui/react-core/src/AccordionSection/index.d.ts +15 -0
  250. package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +10 -0
  251. package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +9 -0
  252. package/libs-ui/react-core/src/Aside/index.d.ts +10 -0
  253. package/libs-ui/react-core/src/BackLink/index.d.ts +13 -0
  254. package/libs-ui/react-core/src/Blockquote/index.d.ts +9 -0
  255. package/libs-ui/react-core/src/Bottom/index.d.ts +9 -0
  256. package/libs-ui/react-core/src/Button/index.d.ts +21 -0
  257. package/libs-ui/react-core/src/ButtonLink/index.d.ts +17 -0
  258. package/libs-ui/react-core/src/CallToAction/index.d.ts +10 -0
  259. package/libs-ui/react-core/src/Container/index.d.ts +9 -0
  260. package/libs-ui/react-core/src/Copyright/index.d.ts +10 -0
  261. package/libs-ui/react-core/src/Details/index.d.ts +10 -0
  262. package/libs-ui/react-core/src/DetailsContent/index.d.ts +10 -0
  263. package/libs-ui/react-core/src/DetailsSummary/index.d.ts +9 -0
  264. package/libs-ui/react-core/src/ErrorSummary/index.d.ts +9 -0
  265. package/libs-ui/react-core/src/Footer/index.d.ts +9 -0
  266. package/libs-ui/react-core/src/FooterContainer/index.d.ts +9 -0
  267. package/libs-ui/react-core/src/FooterMeta/index.d.ts +11 -0
  268. package/libs-ui/react-core/src/FooterMetaItem/index.d.ts +14 -0
  269. package/libs-ui/react-core/src/GovGRLogo/index.d.ts +9 -0
  270. package/libs-ui/react-core/src/Grid/index.d.ts +20 -0
  271. package/libs-ui/react-core/src/Header/index.d.ts +10 -0
  272. package/libs-ui/react-core/src/HeaderLogo/index.d.ts +17 -0
  273. package/libs-ui/react-core/src/HeaderSection/index.d.ts +9 -0
  274. package/libs-ui/react-core/src/HeaderSubtitle/index.d.ts +9 -0
  275. package/libs-ui/react-core/src/HeaderTitle/index.d.ts +13 -0
  276. package/libs-ui/react-core/src/Heading/index.d.ts +21 -0
  277. package/libs-ui/react-core/src/HeadingCaption/index.d.ts +15 -0
  278. package/libs-ui/react-core/src/HellenicRepublicLogo/index.d.ts +20 -0
  279. package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-el.d.ts +0 -0
  280. package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-en.d.ts +0 -0
  281. package/libs-ui/react-core/src/Layout/index.d.ts +10 -0
  282. package/libs-ui/react-core/src/List/index.d.ts +18 -0
  283. package/libs-ui/react-core/src/ListItem/index.d.ts +9 -0
  284. package/libs-ui/react-core/src/Main/index.d.ts +9 -0
  285. package/libs-ui/react-core/src/Masthead/index.d.ts +9 -0
  286. package/libs-ui/react-core/src/MastheadBody/index.d.ts +9 -0
  287. package/libs-ui/react-core/src/NormalText/index.d.ts +28 -0
  288. package/libs-ui/react-core/src/NotificationBanner/index.d.ts +17 -0
  289. package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +12 -0
  290. package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +11 -0
  291. package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +11 -0
  292. package/libs-ui/react-core/src/Paragraph/index.d.ts +26 -0
  293. package/libs-ui/react-core/src/PhaseBanner/index.d.ts +15 -0
  294. package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +9 -0
  295. package/libs-ui/react-core/src/SectionBreak/index.d.ts +18 -0
  296. package/libs-ui/react-core/src/SummaryList/index.d.ts +10 -0
  297. package/libs-ui/react-core/src/SummaryListItem/index.d.ts +10 -0
  298. package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +10 -0
  299. package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +10 -0
  300. package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +9 -0
  301. package/libs-ui/react-core/src/Tabs/index.d.ts +10 -0
  302. package/libs-ui/react-core/src/TabsHeading/index.d.ts +15 -0
  303. package/libs-ui/react-core/src/TabsList/index.d.ts +10 -0
  304. package/libs-ui/react-core/src/TabsListItem/index.d.ts +20 -0
  305. package/libs-ui/react-core/src/TabsPanel/index.d.ts +16 -0
  306. package/libs-ui/react-core/src/Top/index.d.ts +9 -0
  307. package/libs-ui/react-core/src/WarningText/index.d.ts +11 -0
  308. package/package.json +3 -2
  309. package/themes/grnet.js +1 -1
  310. package/typography/Caption.js +5 -25
  311. package/typography/NormalText.js +9 -16
  312. package/typography/Paragraph.js +3 -39
  313. package/typography/Title.js +42 -88
  314. package/utils/withDeprecation.js +105 -0
  315. package/app/Header/HeaderLogo.d.ts +0 -12
  316. package/app/Header/HeaderSection.d.ts +0 -6
  317. package/app/Header/HeaderTitle.d.ts +0 -26
  318. package/app/Header/index.d.ts +0 -20
  319. package/app/PageTitle.d.ts +0 -21
  320. package/core/Accordion/index.d.ts +0 -23
  321. package/core/Blockquote/index.d.ts +0 -9
  322. package/core/Button/BackButton.d.ts +0 -4
  323. package/core/Button/CallToAction.d.ts +0 -8
  324. package/core/Button/Icon.d.ts +0 -9
  325. package/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  326. package/core/Button/index.d.js +0 -1
  327. package/core/Button/index.d.ts +0 -26
  328. package/core/Details/index.d.ts +0 -17
  329. package/core/Divider/index.d.ts +0 -6
  330. package/core/ErrorSummary/index.d.ts +0 -8
  331. package/core/List/List.d.ts +0 -10
  332. package/core/List/ListItem.d.ts +0 -10
  333. package/core/NotificationBanner/index.d.ts +0 -7
  334. package/core/ServiceBadge/index.d.ts +0 -7
  335. package/core/SummaryList/index.d.ts +0 -29
  336. package/core/Tabs/index.d.ts +0 -21
  337. package/core/WarningText/index.d.ts +0 -8
  338. package/es/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  339. package/es/core/Button/index.d.js +0 -0
  340. package/esm/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  341. package/esm/core/Button/index.d.js +0 -0
  342. package/govgr/Footer/HellenicRepublicLogo.d.ts +0 -6
  343. package/govgr/Logo/index.d.ts +0 -3
  344. package/layouts/Basic/Bottom/index.d.ts +0 -5
  345. package/layouts/Basic/Content/index.d.ts +0 -9
  346. package/layouts/Basic/Main/index.d.ts +0 -8
  347. package/layouts/Basic/Masthead/index.d.ts +0 -7
  348. package/layouts/Basic/Side/index.d.ts +0 -14
  349. package/layouts/Basic/Top/index.d.ts +0 -13
  350. package/layouts/Basic/index.d.ts +0 -31
  351. package/typography/Caption.d.ts +0 -10
  352. package/typography/NormalText.d.ts +0 -6
  353. package/typography/Paragraph.d.ts +0 -7
  354. package/typography/Title.d.ts +0 -16
@@ -5,117 +5,84 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = exports.Tabs = exports.TabPanel = exports.Tab = void 0;
9
- exports.getA11yProps = getA11yProps;
10
-
11
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
8
+ Object.defineProperty(exports, "Tabs", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Tabs["default"];
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "TabsHeading", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _TabsHeading["default"];
18
+ }
19
+ });
20
+ Object.defineProperty(exports, "TabsList", {
21
+ enumerable: true,
22
+ get: function get() {
23
+ return _TabsList["default"];
24
+ }
25
+ });
26
+ Object.defineProperty(exports, "TabsListItem", {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _TabsListItem["default"];
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "TabsPanel", {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _TabsPanel["default"];
36
+ }
37
+ });
38
+ exports.useTabs = exports["default"] = void 0;
12
39
 
13
40
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
41
 
15
- var _react = _interopRequireDefault(require("react"));
42
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
16
43
 
17
- var _Tabs = _interopRequireDefault(require("@material-ui/core/Tabs"));
44
+ var _react = require("react");
18
45
 
19
- var _Tab = _interopRequireDefault(require("@material-ui/core/Tab"));
46
+ var _Tabs = _interopRequireDefault(require("@digigov/react-core/Tabs"));
20
47
 
21
- var _styles = require("@material-ui/core/styles");
48
+ var _TabsList = _interopRequireDefault(require("@digigov/react-core/TabsList"));
22
49
 
23
- var _excluded = ["children"],
24
- _excluded2 = ["children", "value", "index"];
25
- var useTabsStyles = (0, _styles.makeStyles)(function (theme) {
26
- return {
27
- flexContainer: {
28
- borderBottom: "1px solid ".concat(theme.palette.grey['400'])
29
- },
30
- indicator: {
31
- display: 'none'
32
- }
33
- };
34
- });
35
- var useTabStyles = (0, _styles.makeStyles)(function (theme) {
36
- return {
37
- root: {
38
- padding: theme.spacing(1)
39
- },
40
- selected: {
41
- borderTop: "1px solid ".concat(theme.palette.grey['400']),
42
- borderRight: "1px solid ".concat(theme.palette.grey['400']),
43
- borderLeft: "1px solid ".concat(theme.palette.grey['400']),
44
- borderBottom: "1px solid ".concat(theme.palette.common.white),
45
- position: 'relative',
46
- background: theme.palette.common.white,
47
- top: 3,
48
- '& .MuiTab-wrapper': {
49
- textDecoration: 'none',
50
- background: theme.palette.common.white
51
- }
52
- },
53
- textColorInherit: {
54
- opacity: 1
55
- },
56
- wrapper: (0, _extends2["default"])({
57
- textDecoration: 'underline',
58
- textTransform: 'none',
59
- background: theme.palette.grey['200'],
60
- color: theme.palette.text.primary,
61
- padding: theme.spacing(1, 2)
62
- }, theme.typography.body1)
63
- };
64
- });
65
- var useTabPanelStyles = (0, _styles.makeStyles)(function (theme) {
66
- return {
67
- root: {
68
- border: "1px solid ".concat(theme.palette.grey['400']),
69
- borderTop: 0,
70
- background: theme.palette.common.white,
71
- padding: theme.spacing(3)
72
- }
73
- };
74
- });
50
+ var _TabsListItem = _interopRequireDefault(require("@digigov/react-core/TabsListItem"));
75
51
 
76
- function getA11yProps(index) {
77
- return {
78
- id: "digigov-ui-tab-".concat(index),
79
- 'aria-controls': "digigov-ui-tabpanel-".concat(index)
80
- };
81
- }
52
+ var _TabsPanel = _interopRequireDefault(require("@digigov/react-core/TabsPanel"));
82
53
 
83
- var Tabs = function Tabs(_ref) {
84
- var children = _ref.children,
85
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
86
- var classes = useTabsStyles();
87
- return /*#__PURE__*/_react["default"].createElement(_Tabs["default"], (0, _extends2["default"])({
88
- classes: classes,
89
- indicatorColor: "primary"
90
- }, props), children);
91
- };
54
+ var _TabsHeading = _interopRequireDefault(require("@digigov/react-core/TabsHeading"));
92
55
 
93
- exports.Tabs = Tabs;
56
+ var _useTogglableSections2 = require("@digigov/ui/hooks/useTogglableSections");
94
57
 
95
- var Tab = function Tab(props) {
96
- var classes = useTabStyles();
97
- return /*#__PURE__*/_react["default"].createElement(_Tab["default"], (0, _extends2["default"])({
98
- classes: classes
99
- }, props));
100
- };
58
+ var _excluded = ["register", "opened"];
101
59
 
102
- exports.Tab = Tab;
60
+ var useTabs = function useTabs() {
61
+ var _useTogglableSections = (0, _useTogglableSections2.useTogglableSections)({
62
+ singleOpen: true,
63
+ toggleProperty: 'selected',
64
+ onToggleProperty: 'onClick',
65
+ firstOpen: true,
66
+ ariaNavigation: true
67
+ }),
68
+ register = _useTogglableSections.register,
69
+ opened = _useTogglableSections.opened,
70
+ rest = (0, _objectWithoutProperties2["default"])(_useTogglableSections, _excluded);
103
71
 
104
- var TabPanel = function TabPanel(props) {
105
- var classes = useTabPanelStyles();
106
- var children = props.children,
107
- value = props.value,
108
- index = props.index,
109
- other = (0, _objectWithoutProperties2["default"])(props, _excluded2);
110
- return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
111
- className: classes.root,
112
- role: "tabpanel",
113
- hidden: value !== index,
114
- id: "simple-tabpanel-".concat(index),
115
- "aria-labelledby": "simple-tab-".concat(index)
116
- }, other), value === index && children);
72
+ var panel = (0, _react.useCallback)(function (key) {
73
+ return {
74
+ active: opened[key],
75
+ id: key,
76
+ tabIndex: opened[key] ? 1 : -1
77
+ };
78
+ }, [opened]);
79
+ return (0, _extends2["default"])({
80
+ register: register,
81
+ opened: opened,
82
+ panel: panel
83
+ }, rest);
117
84
  };
118
85
 
119
- exports.TabPanel = TabPanel;
120
- var _default = Tabs;
86
+ exports.useTabs = useTabs;
87
+ var _default = _Tabs["default"];
121
88
  exports["default"] = _default;
@@ -5,48 +5,15 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.useWarningTextStyles = exports["default"] = exports.WarningText = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _clsx = _interopRequireDefault(require("clsx"));
13
-
14
- var _styles = require("@material-ui/core/styles");
15
-
16
- var _Error = _interopRequireDefault(require("@material-ui/icons/Error"));
17
-
18
- var useWarningTextStyles = (0, _styles.makeStyles)(function (theme) {
19
- return {
20
- root: {
21
- margin: theme.spacing(4, 0)
22
- },
23
- icon: {
24
- "float": 'left',
25
- marginLeft: theme.spacing(1)
26
- },
27
- text: {
28
- paddingLeft: theme.spacing(8)
29
- }
30
- };
31
- }, {
32
- name: 'MuiWarningText'
8
+ Object.defineProperty(exports, "WarningText", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _WarningText["default"];
12
+ }
33
13
  });
34
- exports.useWarningTextStyles = useWarningTextStyles;
14
+ exports["default"] = void 0;
35
15
 
36
- var WarningText = function WarningText(_ref) {
37
- var className = _ref.className,
38
- children = _ref.children;
39
- var classes = useWarningTextStyles();
40
- return /*#__PURE__*/_react["default"].createElement("div", {
41
- className: (0, _clsx["default"])(className, classes.root)
42
- }, /*#__PURE__*/_react["default"].createElement(_Error["default"], {
43
- className: classes.icon,
44
- fontSize: "large"
45
- }), /*#__PURE__*/_react["default"].createElement("div", {
46
- className: classes.text
47
- }, children));
48
- };
16
+ var _WarningText = _interopRequireDefault(require("@digigov/react-core/WarningText"));
49
17
 
50
- exports.WarningText = WarningText;
51
- var _default = WarningText;
18
+ var _default = _WarningText["default"];
52
19
  exports["default"] = _default;