@digigov/ui 0.8.4 → 0.9.0

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 (351) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/app/App.js +6 -8
  3. package/app/Header/HeaderLogo.js +19 -39
  4. package/app/Header/HeaderSection.js +6 -43
  5. package/app/Header/HeaderTitle.js +14 -91
  6. package/app/Header/index.js +20 -67
  7. package/app/Header/index.spec.js +0 -1
  8. package/app/PageTitle.js +45 -81
  9. package/core/Accordion/index.js +103 -57
  10. package/core/Blockquote/index.js +17 -47
  11. package/core/Button/BackButton.js +20 -42
  12. package/core/Button/ButtonLink.js +28 -0
  13. package/core/Button/CallToAction.js +21 -12
  14. package/core/Button/Icon.js +5 -47
  15. package/core/Button/index.js +49 -99
  16. package/core/Details/index.js +22 -70
  17. package/core/Divider/index.js +9 -9
  18. package/core/ErrorSummary/index.js +8 -28
  19. package/core/List/List.js +8 -34
  20. package/core/List/ListItem.js +8 -38
  21. package/core/List/ListItemTitle.js +1 -3
  22. package/core/NavList/NavListItem.js +2 -2
  23. package/core/NotificationBanner/index.js +49 -48
  24. package/core/NotificationBanner/index.spec.js +3 -1
  25. package/core/ServiceBadge/index.js +17 -28
  26. package/core/SummaryList/index.js +57 -124
  27. package/core/Tabs/index.js +65 -98
  28. package/core/WarningText/index.js +8 -41
  29. package/es/app/App.js +6 -8
  30. package/es/app/Header/HeaderLogo.js +15 -30
  31. package/es/app/Header/HeaderSection.js +5 -36
  32. package/es/app/Header/HeaderTitle.js +13 -78
  33. package/es/app/Header/index.js +6 -56
  34. package/es/app/Header/index.spec.js +0 -1
  35. package/es/app/PageTitle.js +46 -74
  36. package/es/core/Accordion/index.js +64 -52
  37. package/es/core/Blockquote/index.js +13 -39
  38. package/es/core/Button/BackButton.js +18 -36
  39. package/es/core/Button/ButtonLink.js +16 -0
  40. package/es/core/Button/CallToAction.js +19 -9
  41. package/es/core/Button/Icon.js +5 -35
  42. package/es/core/Button/index.js +26 -87
  43. package/es/core/Details/index.js +5 -62
  44. package/es/core/Divider/index.js +7 -6
  45. package/es/core/ErrorSummary/index.js +2 -21
  46. package/es/core/List/List.js +2 -26
  47. package/es/core/List/ListItem.js +2 -30
  48. package/es/core/List/ListItemTitle.js +1 -3
  49. package/es/core/NavList/NavListItem.js +1 -1
  50. package/es/core/NotificationBanner/index.js +27 -45
  51. package/es/core/NotificationBanner/index.spec.js +3 -1
  52. package/es/core/ServiceBadge/index.js +15 -25
  53. package/es/core/SummaryList/index.js +7 -119
  54. package/es/core/Tabs/index.js +33 -93
  55. package/es/core/WarningText/index.js +2 -33
  56. package/es/govgr/Footer/Copyright.js +14 -36
  57. package/es/govgr/Footer/HellenicRepublicLogo.js +2 -30
  58. package/es/govgr/Footer/LicenseCCSA.js +2 -17
  59. package/es/govgr/Footer/index.js +23 -69
  60. package/es/govgr/Logo/index.js +2 -14
  61. package/es/hooks/useTogglableSections.js +96 -0
  62. package/es/layouts/Basic/Bottom/index.js +3 -13
  63. package/es/layouts/Basic/Content/index.js +13 -51
  64. package/es/layouts/Basic/Content/index.mdx +1 -1
  65. package/es/layouts/Basic/Main/index.js +3 -21
  66. package/es/layouts/Basic/Masthead/index.js +4 -47
  67. package/es/layouts/Basic/Masthead/index.mdx +1 -1
  68. package/es/layouts/Basic/Side/index.js +6 -28
  69. package/es/layouts/Basic/Top/index.js +7 -36
  70. package/es/layouts/Basic/index.js +3 -49
  71. package/es/themes/grnet.js +1 -1
  72. package/es/typography/Caption.js +5 -21
  73. package/es/typography/NormalText.js +2 -10
  74. package/es/typography/Paragraph.js +1 -29
  75. package/es/typography/Title.js +40 -87
  76. package/es/utils/withDeprecation.js +93 -0
  77. package/esm/app/App.js +6 -8
  78. package/esm/app/Header/HeaderLogo.js +15 -30
  79. package/esm/app/Header/HeaderSection.js +5 -36
  80. package/esm/app/Header/HeaderTitle.js +13 -78
  81. package/esm/app/Header/index.js +6 -56
  82. package/esm/app/Header/index.spec.js +0 -1
  83. package/esm/app/PageTitle.js +46 -74
  84. package/esm/core/Accordion/index.js +64 -52
  85. package/esm/core/Blockquote/index.js +13 -39
  86. package/esm/core/Button/BackButton.js +18 -36
  87. package/esm/core/Button/ButtonLink.js +16 -0
  88. package/esm/core/Button/CallToAction.js +19 -9
  89. package/esm/core/Button/Icon.js +5 -35
  90. package/esm/core/Button/index.js +26 -87
  91. package/esm/core/Details/index.js +5 -62
  92. package/esm/core/Divider/index.js +7 -6
  93. package/esm/core/ErrorSummary/index.js +2 -21
  94. package/esm/core/List/List.js +2 -26
  95. package/esm/core/List/ListItem.js +2 -30
  96. package/esm/core/List/ListItemTitle.js +1 -3
  97. package/esm/core/NavList/NavListItem.js +1 -1
  98. package/esm/core/NotificationBanner/index.js +27 -45
  99. package/esm/core/NotificationBanner/index.spec.js +3 -1
  100. package/esm/core/ServiceBadge/index.js +15 -25
  101. package/esm/core/SummaryList/index.js +7 -119
  102. package/esm/core/Tabs/index.js +33 -93
  103. package/esm/core/WarningText/index.js +2 -33
  104. package/esm/govgr/Footer/Copyright.js +14 -36
  105. package/esm/govgr/Footer/HellenicRepublicLogo.js +2 -30
  106. package/esm/govgr/Footer/LicenseCCSA.js +2 -17
  107. package/esm/govgr/Footer/index.js +23 -69
  108. package/esm/govgr/Logo/index.js +2 -14
  109. package/esm/hooks/useTogglableSections.js +96 -0
  110. package/esm/index.js +1 -1
  111. package/esm/layouts/Basic/Bottom/index.js +3 -13
  112. package/esm/layouts/Basic/Content/index.js +13 -51
  113. package/esm/layouts/Basic/Content/index.mdx +1 -1
  114. package/esm/layouts/Basic/Main/index.js +3 -21
  115. package/esm/layouts/Basic/Masthead/index.js +4 -47
  116. package/esm/layouts/Basic/Masthead/index.mdx +1 -1
  117. package/esm/layouts/Basic/Side/index.js +6 -28
  118. package/esm/layouts/Basic/Top/index.js +7 -36
  119. package/esm/layouts/Basic/index.js +3 -49
  120. package/esm/themes/grnet.js +1 -1
  121. package/esm/typography/Caption.js +5 -21
  122. package/esm/typography/NormalText.js +2 -10
  123. package/esm/typography/Paragraph.js +1 -29
  124. package/esm/typography/Title.js +40 -87
  125. package/esm/utils/withDeprecation.js +93 -0
  126. package/govgr/Footer/Copyright.js +15 -42
  127. package/govgr/Footer/HellenicRepublicLogo.js +8 -39
  128. package/govgr/Footer/LicenseCCSA.js +2 -19
  129. package/govgr/Footer/index.js +23 -72
  130. package/govgr/Logo/index.js +9 -28
  131. package/hooks/useTogglableSections.js +108 -0
  132. package/layouts/Basic/Bottom/index.js +10 -19
  133. package/layouts/Basic/Content/index.js +16 -68
  134. package/layouts/Basic/Content/index.mdx +1 -1
  135. package/layouts/Basic/Main/index.js +10 -23
  136. package/layouts/Basic/Masthead/index.js +17 -54
  137. package/layouts/Basic/Masthead/index.mdx +1 -1
  138. package/layouts/Basic/Side/index.js +9 -35
  139. package/layouts/Basic/Top/index.js +7 -40
  140. package/layouts/Basic/index.js +4 -57
  141. package/{api → libs/ui/src/api}/APIErrors.d.ts +0 -0
  142. package/{api → libs/ui/src/api}/APIProvider.d.ts +0 -0
  143. package/{api → libs/ui/src/api}/fetchAPI.d.ts +0 -0
  144. package/{api → libs/ui/src/api}/index.d.ts +0 -0
  145. package/{api → libs/ui/src/api}/index.spec.d.ts +0 -0
  146. package/{api → libs/ui/src/api}/useResource.d.ts +0 -0
  147. package/{api → libs/ui/src/api}/useResourceAction.d.ts +0 -0
  148. package/{api → libs/ui/src/api}/useResourceQuery.d.ts +0 -0
  149. package/{api → libs/ui/src/api}/utils.d.ts +0 -0
  150. package/{app → libs/ui/src/app}/App.d.ts +0 -0
  151. package/libs/ui/src/app/Header/HeaderLogo.d.ts +3 -0
  152. package/libs/ui/src/app/Header/HeaderSection.d.ts +5 -0
  153. package/libs/ui/src/app/Header/HeaderTitle.d.ts +5 -0
  154. package/libs/ui/src/app/Header/index.d.ts +9 -0
  155. package/{app → libs/ui/src/app}/Header/index.spec.d.ts +0 -0
  156. package/{app → libs/ui/src/app}/NotFound/index.d.ts +0 -0
  157. package/{app → libs/ui/src/app}/OutdatedBrowserBanner.d.ts +0 -0
  158. package/libs/ui/src/app/PageTitle.d.ts +10 -0
  159. package/{app → libs/ui/src/app}/QrCodeScanner/index.d.ts +0 -0
  160. package/{app → libs/ui/src/app}/QrCodeScanner/index.spec.d.ts +0 -0
  161. package/{app → libs/ui/src/app}/i18n.d.ts +0 -0
  162. package/{app → libs/ui/src/app}/index.d.ts +0 -0
  163. package/libs/ui/src/core/Accordion/index.d.ts +21 -0
  164. package/{core → libs/ui/src/core}/Accordion/index.spec.d.ts +0 -0
  165. package/libs/ui/src/core/Blockquote/index.d.ts +3 -0
  166. package/{core → libs/ui/src/core}/Blockquote/index.spec.d.ts +0 -0
  167. package/libs/ui/src/core/Button/BackButton.d.ts +3 -0
  168. package/libs/ui/src/core/Button/ButtonLink.d.ts +4 -0
  169. package/libs/ui/src/core/Button/CallToAction.d.ts +7 -0
  170. package/libs/ui/src/core/Button/Icon.d.ts +2 -0
  171. package/libs/ui/src/core/Button/index.d.ts +14 -0
  172. package/{core → libs/ui/src/core}/Button/index.spec.d.ts +0 -0
  173. package/libs/ui/src/core/Details/index.d.ts +5 -0
  174. package/{core → libs/ui/src/core}/Details/index.spec.d.ts +0 -0
  175. package/libs/ui/src/core/Divider/index.d.ts +5 -0
  176. package/libs/ui/src/core/ErrorSummary/index.d.ts +3 -0
  177. package/{core → libs/ui/src/core}/ErrorSummary/index.spec.d.ts +0 -0
  178. package/{core → libs/ui/src/core}/Link/index.d.ts +0 -0
  179. package/{core → libs/ui/src/core}/Link/index.spec.d.ts +0 -0
  180. package/libs/ui/src/core/List/List.d.ts +3 -0
  181. package/libs/ui/src/core/List/ListItem.d.ts +3 -0
  182. package/{core → libs/ui/src/core}/List/ListItemContent.d.ts +0 -0
  183. package/{core → libs/ui/src/core}/List/ListItemIcon.d.ts +0 -0
  184. package/{core → libs/ui/src/core}/List/ListItemText.d.ts +1 -0
  185. package/{core → libs/ui/src/core}/List/ListItemTitle.d.ts +0 -0
  186. package/{core → libs/ui/src/core}/List/index.d.ts +0 -0
  187. package/{core → libs/ui/src/core}/List/index.spec.d.ts +0 -0
  188. package/{core → libs/ui/src/core}/NavList/NavList.d.ts +1 -1
  189. package/{core → libs/ui/src/core}/NavList/NavListContext.d.ts +0 -0
  190. package/{core → libs/ui/src/core}/NavList/NavListItem.d.ts +0 -0
  191. package/{core → libs/ui/src/core}/NavList/NavListItemBase.d.ts +1 -1
  192. package/{core → libs/ui/src/core}/NavList/NavListSubMenu.d.ts +0 -0
  193. package/{core → libs/ui/src/core}/NavList/index.d.ts +0 -0
  194. package/{core → libs/ui/src/core}/NavList/index.spec.d.ts +0 -0
  195. package/libs/ui/src/core/NotificationBanner/index.d.ts +17 -0
  196. package/{core → libs/ui/src/core}/NotificationBanner/index.spec.d.ts +0 -0
  197. package/libs/ui/src/core/ServiceBadge/index.d.ts +8 -0
  198. package/libs/ui/src/core/SummaryList/index.d.ts +7 -0
  199. package/{core → libs/ui/src/core}/SummaryList/index.spec.d.ts +0 -0
  200. package/libs/ui/src/core/Tabs/index.d.ts +16 -0
  201. package/libs/ui/src/core/WarningText/index.d.ts +3 -0
  202. package/{core → libs/ui/src/core}/WarningText/index.spec.d.ts +0 -0
  203. package/{core → libs/ui/src/core}/index.d.ts +0 -0
  204. package/{govgr → libs/ui/src/govgr}/Footer/Copyright.d.ts +1 -1
  205. package/libs/ui/src/govgr/Footer/HellenicRepublicLogo.d.ts +3 -0
  206. package/{govgr → libs/ui/src/govgr}/Footer/LicenseCCSA.d.ts +0 -0
  207. package/{govgr → libs/ui/src/govgr}/Footer/index.d.ts +3 -3
  208. package/{govgr → libs/ui/src/govgr}/Footer/logo.d.ts +0 -0
  209. package/libs/ui/src/govgr/Footer/logos/logo-el.d.ts +2 -0
  210. package/libs/ui/src/govgr/Footer/logos/logo-en.d.ts +2 -0
  211. package/libs/ui/src/govgr/Logo/index.d.ts +3 -0
  212. package/{govgr → libs/ui/src/govgr}/Logo/logo.d.ts +0 -0
  213. package/{govgr → libs/ui/src/govgr}/index.d.ts +0 -0
  214. package/{hooks → libs/ui/src/hooks}/useDebounce.d.ts +0 -0
  215. package/{hooks → libs/ui/src/hooks}/useLatest.d.ts +0 -0
  216. package/{hooks → libs/ui/src/hooks}/useOutdatedBrowserCheck.d.ts +0 -0
  217. package/{hooks → libs/ui/src/hooks}/useSearch.d.ts +0 -0
  218. package/libs/ui/src/hooks/useTogglableSections.d.ts +18 -0
  219. package/{index.d.ts → libs/ui/src/index.d.ts} +0 -0
  220. package/libs/ui/src/layouts/Basic/Bottom/index.d.ts +3 -0
  221. package/libs/ui/src/layouts/Basic/Content/index.d.ts +5 -0
  222. package/libs/ui/src/layouts/Basic/Main/index.d.ts +3 -0
  223. package/libs/ui/src/layouts/Basic/Masthead/index.d.ts +4 -0
  224. package/libs/ui/src/layouts/Basic/Side/index.d.ts +3 -0
  225. package/libs/ui/src/layouts/Basic/Top/index.d.ts +3 -0
  226. package/libs/ui/src/layouts/Basic/index.d.ts +8 -0
  227. package/{layouts → libs/ui/src/layouts}/Basic/index.spec.d.ts +0 -0
  228. package/{layouts → libs/ui/src/layouts}/index.d.ts +0 -0
  229. package/{locales → libs/ui/src/locales}/el.d.ts +0 -0
  230. package/{locales → libs/ui/src/locales}/en.d.ts +0 -0
  231. package/{router → libs/ui/src/router}/index.d.ts +0 -0
  232. package/{test-utils → libs/ui/src/test-utils}/delay.d.ts +0 -0
  233. package/{test-utils → libs/ui/src/test-utils}/mountWithTheme.d.ts +0 -0
  234. package/{themes → libs/ui/src/themes}/govgr.d.ts +0 -0
  235. package/{themes → libs/ui/src/themes}/grnet.d.ts +0 -0
  236. package/{themes → libs/ui/src/themes}/index.d.ts +0 -0
  237. package/libs/ui/src/typography/Caption.d.ts +7 -0
  238. package/libs/ui/src/typography/NormalText.d.ts +5 -0
  239. package/libs/ui/src/typography/Paragraph.d.ts +6 -0
  240. package/libs/ui/src/typography/Title.d.ts +9 -0
  241. package/{typography → libs/ui/src/typography}/index.d.ts +0 -0
  242. package/{utils → libs/ui/src/utils}/evaluateBrowserVersion.d.ts +0 -0
  243. package/libs/ui/src/utils/withDeprecation.d.ts +16 -0
  244. package/libs-ui/react-core/src/Accordion/index.d.ts +10 -0
  245. package/libs-ui/react-core/src/AccordionControls/index.d.ts +9 -0
  246. package/libs-ui/react-core/src/AccordionSection/index.d.ts +15 -0
  247. package/libs-ui/react-core/src/AccordionSectionContent/index.d.ts +10 -0
  248. package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +9 -0
  249. package/libs-ui/react-core/src/Aside/index.d.ts +10 -0
  250. package/libs-ui/react-core/src/BackLink/index.d.ts +13 -0
  251. package/libs-ui/react-core/src/Blockquote/index.d.ts +9 -0
  252. package/libs-ui/react-core/src/Bottom/index.d.ts +9 -0
  253. package/libs-ui/react-core/src/Button/index.d.ts +21 -0
  254. package/libs-ui/react-core/src/ButtonLink/index.d.ts +17 -0
  255. package/libs-ui/react-core/src/CallToAction/index.d.ts +10 -0
  256. package/libs-ui/react-core/src/Container/index.d.ts +9 -0
  257. package/libs-ui/react-core/src/Copyright/index.d.ts +10 -0
  258. package/libs-ui/react-core/src/Details/index.d.ts +10 -0
  259. package/libs-ui/react-core/src/DetailsContent/index.d.ts +10 -0
  260. package/libs-ui/react-core/src/DetailsSummary/index.d.ts +9 -0
  261. package/libs-ui/react-core/src/ErrorSummary/index.d.ts +9 -0
  262. package/libs-ui/react-core/src/Footer/index.d.ts +9 -0
  263. package/libs-ui/react-core/src/FooterContainer/index.d.ts +9 -0
  264. package/libs-ui/react-core/src/FooterMeta/index.d.ts +11 -0
  265. package/libs-ui/react-core/src/FooterMetaItem/index.d.ts +14 -0
  266. package/libs-ui/react-core/src/GovGRLogo/index.d.ts +9 -0
  267. package/libs-ui/react-core/src/Grid/index.d.ts +20 -0
  268. package/libs-ui/react-core/src/Header/index.d.ts +10 -0
  269. package/libs-ui/react-core/src/HeaderLogo/index.d.ts +17 -0
  270. package/libs-ui/react-core/src/HeaderSection/index.d.ts +9 -0
  271. package/libs-ui/react-core/src/HeaderSubtitle/index.d.ts +9 -0
  272. package/libs-ui/react-core/src/HeaderTitle/index.d.ts +13 -0
  273. package/libs-ui/react-core/src/Heading/index.d.ts +21 -0
  274. package/libs-ui/react-core/src/HeadingCaption/index.d.ts +15 -0
  275. package/libs-ui/react-core/src/HellenicRepublicLogo/index.d.ts +20 -0
  276. package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-el.d.ts +0 -0
  277. package/{govgr/Footer/logos → libs-ui/react-core/src/HellenicRepublicLogo}/logo-en.d.ts +0 -0
  278. package/libs-ui/react-core/src/Layout/index.d.ts +10 -0
  279. package/libs-ui/react-core/src/List/index.d.ts +18 -0
  280. package/libs-ui/react-core/src/ListItem/index.d.ts +9 -0
  281. package/libs-ui/react-core/src/Main/index.d.ts +9 -0
  282. package/libs-ui/react-core/src/Masthead/index.d.ts +9 -0
  283. package/libs-ui/react-core/src/MastheadBody/index.d.ts +9 -0
  284. package/libs-ui/react-core/src/NormalText/index.d.ts +28 -0
  285. package/libs-ui/react-core/src/NotificationBanner/index.d.ts +17 -0
  286. package/libs-ui/react-core/src/NotificationBannerContent/index.d.ts +12 -0
  287. package/libs-ui/react-core/src/NotificationBannerHeader/index.d.ts +11 -0
  288. package/libs-ui/react-core/src/NotificationBannerHeading/index.d.ts +11 -0
  289. package/libs-ui/react-core/src/Paragraph/index.d.ts +26 -0
  290. package/libs-ui/react-core/src/PhaseBanner/index.d.ts +15 -0
  291. package/libs-ui/react-core/src/PhaseBannerTag/index.d.ts +9 -0
  292. package/libs-ui/react-core/src/SectionBreak/index.d.ts +18 -0
  293. package/libs-ui/react-core/src/SummaryList/index.d.ts +10 -0
  294. package/libs-ui/react-core/src/SummaryListItem/index.d.ts +10 -0
  295. package/libs-ui/react-core/src/SummaryListItemAction/index.d.ts +10 -0
  296. package/libs-ui/react-core/src/SummaryListItemKey/index.d.ts +10 -0
  297. package/libs-ui/react-core/src/SummaryListItemValue/index.d.ts +9 -0
  298. package/libs-ui/react-core/src/Tabs/index.d.ts +10 -0
  299. package/libs-ui/react-core/src/TabsHeading/index.d.ts +15 -0
  300. package/libs-ui/react-core/src/TabsList/index.d.ts +10 -0
  301. package/libs-ui/react-core/src/TabsListItem/index.d.ts +20 -0
  302. package/libs-ui/react-core/src/TabsPanel/index.d.ts +16 -0
  303. package/libs-ui/react-core/src/Top/index.d.ts +9 -0
  304. package/libs-ui/react-core/src/WarningText/index.d.ts +11 -0
  305. package/package.json +3 -2
  306. package/themes/grnet.js +1 -1
  307. package/typography/Caption.js +5 -25
  308. package/typography/NormalText.js +9 -16
  309. package/typography/Paragraph.js +3 -39
  310. package/typography/Title.js +42 -88
  311. package/utils/withDeprecation.js +105 -0
  312. package/app/Header/HeaderLogo.d.ts +0 -12
  313. package/app/Header/HeaderSection.d.ts +0 -6
  314. package/app/Header/HeaderTitle.d.ts +0 -26
  315. package/app/Header/index.d.ts +0 -20
  316. package/app/PageTitle.d.ts +0 -21
  317. package/core/Accordion/index.d.ts +0 -23
  318. package/core/Blockquote/index.d.ts +0 -9
  319. package/core/Button/BackButton.d.ts +0 -4
  320. package/core/Button/CallToAction.d.ts +0 -8
  321. package/core/Button/Icon.d.ts +0 -9
  322. package/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  323. package/core/Button/index.d.js +0 -1
  324. package/core/Button/index.d.ts +0 -26
  325. package/core/Details/index.d.ts +0 -17
  326. package/core/Divider/index.d.ts +0 -6
  327. package/core/ErrorSummary/index.d.ts +0 -8
  328. package/core/List/List.d.ts +0 -10
  329. package/core/List/ListItem.d.ts +0 -10
  330. package/core/NotificationBanner/index.d.ts +0 -7
  331. package/core/ServiceBadge/index.d.ts +0 -7
  332. package/core/SummaryList/index.d.ts +0 -29
  333. package/core/Tabs/index.d.ts +0 -21
  334. package/core/WarningText/index.d.ts +0 -8
  335. package/es/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  336. package/es/core/Button/index.d.js +0 -0
  337. package/esm/core/Button/__snapshots__/index.spec.tsx.snap +0 -145
  338. package/esm/core/Button/index.d.js +0 -0
  339. package/govgr/Footer/HellenicRepublicLogo.d.ts +0 -6
  340. package/govgr/Logo/index.d.ts +0 -3
  341. package/layouts/Basic/Bottom/index.d.ts +0 -5
  342. package/layouts/Basic/Content/index.d.ts +0 -9
  343. package/layouts/Basic/Main/index.d.ts +0 -8
  344. package/layouts/Basic/Masthead/index.d.ts +0 -7
  345. package/layouts/Basic/Side/index.d.ts +0 -14
  346. package/layouts/Basic/Top/index.d.ts +0 -13
  347. package/layouts/Basic/index.d.ts +0 -31
  348. package/typography/Caption.d.ts +0 -10
  349. package/typography/NormalText.d.ts +0 -6
  350. package/typography/Paragraph.d.ts +0 -7
  351. package/typography/Title.d.ts +0 -16
@@ -5,105 +5,59 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = exports.Title = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
14
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
-
16
14
  var _react = _interopRequireDefault(require("react"));
17
15
 
18
- var _clsx = _interopRequireDefault(require("clsx"));
19
-
20
- var _styles = require("@material-ui/core/styles");
16
+ var _Heading = _interopRequireDefault(require("@digigov/react-core/Heading"));
21
17
 
22
- var _excluded = ["size", "children", "dense", "classes", "component"],
23
- _excluded2 = ["className"];
24
- var useStyles = (0, _styles.makeStyles)(function (theme) {
25
- var _xl;
18
+ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDeprecation"));
26
19
 
27
- return {
28
- root: {
29
- margin: 0,
30
- display: 'block',
31
- fontWeight: 'bolder'
32
- },
33
- xl: (_xl = {}, (0, _defineProperty2["default"])(_xl, theme.breakpoints.down('sm'), {
34
- fontSize: '2.25rem'
35
- }), (0, _defineProperty2["default"])(_xl, "margin", theme.spacing(0, 0, 6, 0)), (0, _defineProperty2["default"])(_xl, "fontSize", '3rem'), _xl),
36
- lg: {
37
- margin: theme.spacing(0, 0, 4, 0),
38
- fontSize: '2.25rem'
39
- },
40
- md: {
41
- margin: theme.spacing(0, 0, 3, 0),
42
- fontSize: '1.5rem'
43
- },
44
- sm: {
45
- margin: theme.spacing(0, 0, 2, 0),
46
- fontSize: '1.2rem'
20
+ var _excluded = ["size", "component", "children"];
21
+ var sizeMappings = {
22
+ xl: 'xl',
23
+ lg: 'l',
24
+ md: 'm',
25
+ sm: 's'
26
+ };
27
+ var Title = (0, _withDeprecation["default"])(function (_ref) {
28
+ var _ref$size = _ref.size,
29
+ size = _ref$size === void 0 ? 'xl' : _ref$size,
30
+ component = _ref.component,
31
+ children = _ref.children,
32
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
33
+ var newSize = sizeMappings[size];
34
+ return /*#__PURE__*/_react["default"].createElement(_Heading["default"], (0, _extends2["default"])({
35
+ size: newSize,
36
+ element: component
37
+ }, props), children);
38
+ }, {
39
+ name: 'Title',
40
+ rename: '@digigov/react-core/Heading.\nYou need to install the `@digigov/react-core` library to use this new component.',
41
+ props: {
42
+ dense: {
43
+ error: true
47
44
  },
48
- xs: {
49
- margin: theme.spacing(0, 0, 1, 0),
50
- fontSize: '1rem'
45
+ size: {
46
+ values: {
47
+ xs: {
48
+ error: true
49
+ }
50
+ }
51
51
  },
52
- dense: {
53
- margin: 0
52
+ component: {
53
+ values: {
54
+ h5: {
55
+ error: true
56
+ }
57
+ }
54
58
  }
55
- };
56
- }, {
57
- name: 'MuiDigigovTitle'
58
- });
59
-
60
- var getComponentBySize = function getComponentBySize(size) {
61
- switch (size) {
62
- case 'xl':
63
- return 'h1';
64
-
65
- case 'lg':
66
- return 'h2';
67
-
68
- case 'md':
69
- return 'h3';
70
-
71
- case 'sm':
72
- return 'h4';
73
-
74
- case 'xs':
75
- return 'h5';
76
-
77
- default:
78
- return 'h4';
79
59
  }
80
- };
81
-
82
- var Title = function Title(_ref, ref) {
83
- var size = _ref.size,
84
- children = _ref.children,
85
- dense = _ref.dense,
86
- classesObj = _ref.classes,
87
- component = _ref.component,
88
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
89
- var classes = useStyles({
90
- classes: classesObj
91
- });
92
- var cls = classes[size || 'sm'];
93
- var Tag = component || getComponentBySize(size);
94
- var className = props.className,
95
- otherProps = (0, _objectWithoutProperties2["default"])(props, _excluded2);
96
- return /*#__PURE__*/_react["default"].createElement(Tag, (0, _extends2["default"])({
97
- ref: ref,
98
- className: (0, _clsx["default"])(className, classes.root, cls, dense && classes.dense)
99
- }, otherProps), children);
100
- };
101
-
102
- var RefTitle = /*#__PURE__*/_react["default"].forwardRef(Title);
103
-
104
- RefTitle.defaultProps = {
105
- size: 'sm',
106
- dense: false
107
- };
108
- var _default = RefTitle;
60
+ });
61
+ exports.Title = Title;
62
+ var _default = Title;
109
63
  exports["default"] = _default;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = withDeprecation;
9
+
10
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
+
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
+
14
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
15
+
16
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
17
+
18
+ var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
19
+
20
+ var _react = _interopRequireDefault(require("react"));
21
+
22
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
23
+
24
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
+
26
+ var DigigovError = /*#__PURE__*/function (_Error) {
27
+ (0, _inherits2["default"])(DigigovError, _Error);
28
+
29
+ var _super = _createSuper(DigigovError);
30
+
31
+ function DigigovError(message) {
32
+ var _this;
33
+
34
+ (0, _classCallCheck2["default"])(this, DigigovError);
35
+ _this = _super.call(this, message); // (1)
36
+
37
+ _this.name = 'DigigovError'; // (2)
38
+
39
+ return _this;
40
+ }
41
+
42
+ return DigigovError;
43
+ }( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));
44
+
45
+ var handleErrorWarning = function handleErrorWarning(componentName, name, _ref, type) {
46
+ var error = _ref.error,
47
+ warning = _ref.warning;
48
+
49
+ if (warning === true) {
50
+ console.warn("\u26A0\uFE0F ".concat(componentName, ": ").concat(name, " ").concat(type, " will be deprecated."));
51
+ } else if (typeof warning === 'string') {
52
+ console.warn(warning);
53
+ }
54
+
55
+ if (error === true) {
56
+ throw new DigigovError("".concat(componentName, ": !! ").concat(name, " ").concat(type, " is deprecated."));
57
+ } else if (typeof error === 'string') {
58
+ throw new DigigovError("Component `".concat(componentName, "` with `").concat(name, "` prop: ").concat(error));
59
+ }
60
+ };
61
+
62
+ function withDeprecation(Component, deprecations) {
63
+ var _Component$render;
64
+
65
+ var componentName = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
66
+ // @ts-ignore
67
+ deprecations.name || Component.name || (Component === null || Component === void 0 ? void 0 : (_Component$render = Component.render) === null || _Component$render === void 0 ? void 0 : _Component$render.name); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
68
+ // @ts-ignore
69
+
70
+ return function withDeprecationComponent(props) {
71
+ if (deprecations.rename) {
72
+ console.warn("\u267B\uFE0F ".concat(componentName, " is renamed to ").concat(deprecations.rename, "\n"));
73
+ }
74
+
75
+ handleErrorWarning(componentName, componentName, deprecations, 'component');
76
+
77
+ if (deprecations.props) {
78
+ Object.keys(deprecations.props).forEach(function (propName) {
79
+ var _deprecations$props, _propDeprecation$valu;
80
+
81
+ var value = props[propName];
82
+
83
+ if (!value) {
84
+ return;
85
+ }
86
+
87
+ var propDeprecation = deprecations === null || deprecations === void 0 ? void 0 : (_deprecations$props = deprecations.props) === null || _deprecations$props === void 0 ? void 0 : _deprecations$props[propName];
88
+
89
+ if (propDeprecation !== null && propDeprecation !== void 0 && (_propDeprecation$valu = propDeprecation.values) !== null && _propDeprecation$valu !== void 0 && _propDeprecation$valu[value]) {
90
+ var _propDeprecation$valu2;
91
+
92
+ return handleErrorWarning(componentName, "".concat(propName, " ").concat(value), propDeprecation === null || propDeprecation === void 0 ? void 0 : (_propDeprecation$valu2 = propDeprecation.values) === null || _propDeprecation$valu2 === void 0 ? void 0 : _propDeprecation$valu2[value], 'property value');
93
+ }
94
+
95
+ if (propDeprecation !== null && propDeprecation !== void 0 && propDeprecation.error || propDeprecation !== null && propDeprecation !== void 0 && propDeprecation.warning) {
96
+ return handleErrorWarning(componentName, propName, propDeprecation, 'property');
97
+ }
98
+ });
99
+ } // eslint-disable-next-line @typescript-eslint/ban-ts-comment
100
+ // @ts-ignore
101
+
102
+
103
+ return /*#__PURE__*/_react["default"].createElement(Component, props);
104
+ };
105
+ }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface HeaderLogoProps {
3
- href?: string;
4
- src?: string;
5
- label?: string;
6
- className?: string;
7
- height?: number | string;
8
- linkProps?: Record<'target', '_blank' | '_self' | '_parent' | '_top'>;
9
- }
10
- export declare const useHeaderLogoStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
11
- export declare const HeaderLogo: React.FC<HeaderLogoProps>;
12
- export default HeaderLogo;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { GridProps } from '@material-ui/core/Grid';
3
- declare type HeaderSectionProps = GridProps;
4
- export declare const useHeaderSectionStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root" | "container">;
5
- export declare const HeaderSection: React.FC<HeaderSectionProps>;
6
- export default HeaderSection;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { GridProps } from '@material-ui/core/Grid';
3
- import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
4
- export declare type HeaderTitleStyles = {
5
- root?: BaseCSSProperties;
6
- grid?: BaseCSSProperties;
7
- link?: BaseCSSProperties;
8
- };
9
- export declare const useHeaderTitleStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"link" | "root" | "grid">;
10
- export interface HeaderTitleProps {
11
- xs?: GridProps['xs'];
12
- classes?: HeaderTitleStyles;
13
- className?: string;
14
- href?: string;
15
- linkProps?: Record<'target', '_blank' | '_self' | '_parent' | '_top'>;
16
- linkComponent?: React.ElementType;
17
- }
18
- export declare const HeaderTitle: React.FC<HeaderTitleProps>;
19
- export interface HeaderSubtitleProps {
20
- classes?: {
21
- root: BaseCSSProperties;
22
- };
23
- }
24
- export declare const useHeaderSubtitleStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
25
- export declare const HeaderSubtitle: React.FC<HeaderTitleProps>;
26
- export default HeaderTitle;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { AppBarProps } from '@material-ui/core/AppBar';
3
- import { ContainerProps as MuiContainerProps } from '@material-ui/core/Container';
4
- import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
5
- export declare type HeaderStyles = {
6
- root?: BaseCSSProperties;
7
- appbar?: BaseCSSProperties;
8
- toolbar?: BaseCSSProperties;
9
- coloredBar?: BaseCSSProperties;
10
- };
11
- interface HeaderProps extends Omit<AppBarProps, 'classes'> {
12
- maxWidth?: MuiContainerProps['maxWidth'];
13
- classes?: HeaderStyles;
14
- }
15
- export declare const useHeaderStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root" | "toolbar" | "coloredBar">;
16
- export declare const Header: React.FC<HeaderProps>;
17
- export * from '@digigov/ui/app/Header/HeaderTitle';
18
- export * from '@digigov/ui/app/Header/HeaderLogo';
19
- export * from '@digigov/ui/app/Header/HeaderSection';
20
- export default Header;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { CaptionProps } from '@digigov/ui/typography/Caption';
3
- import { TitleProps, TitleStyles } from '@digigov/ui/typography/Title';
4
- import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
5
- import { GridProps } from '@material-ui/core/Grid';
6
- interface PageTitleProps extends GridProps {
7
- preserveHeight?: boolean;
8
- }
9
- export declare const PageTitle: React.FC<PageTitleProps>;
10
- export default PageTitle;
11
- export declare const PageTitleSection: React.FC<GridProps>;
12
- export declare const PageTitleCaption: React.FC<CaptionProps>;
13
- export interface PageTitleHeadingStyles extends TitleStyles {
14
- dense?: BaseCSSProperties;
15
- }
16
- export interface PageTitleHeadingProps extends Omit<TitleProps, 'classes'> {
17
- classes?: PageTitleHeadingStyles;
18
- dense?: boolean;
19
- className?: string;
20
- }
21
- export declare const PageTitleHeading: React.FC<PageTitleHeadingProps>;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- interface AccordionItemDetailsProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- }
6
- export declare const AccordionItemDetails: React.FC<AccordionItemDetailsProps>;
7
- interface AccordionItemSummaryProps {
8
- children: React.ReactNode;
9
- className?: string;
10
- icon?: React.ReactNode;
11
- }
12
- export declare const AccordionItemSummary: React.FC<AccordionItemSummaryProps>;
13
- interface AccordionItemProps {
14
- children: React.FunctionComponentElement<typeof AccordionItemSummary | typeof AccordionItemDetails>[];
15
- className?: string;
16
- }
17
- export declare const AccordionItem: React.FC<AccordionItemProps>;
18
- interface AccordionProps {
19
- children: React.ReactNode;
20
- className?: string;
21
- }
22
- export declare const Accordion: React.FC<AccordionProps>;
23
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare const useBlockquoteStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root" | "info" | "warning" | "error" | "success">;
3
- export interface BlockquoteProps {
4
- children: React.ReactNode;
5
- variant?: 'info' | 'warning' | 'error' | 'success';
6
- className?: string;
7
- }
8
- export declare const Blockquote: React.FC<BlockquoteProps>;
9
- export default Blockquote;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@digigov/ui/core/Button';
3
- export declare const BackButton: React.FC<ButtonProps>;
4
- export default BackButton;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@digigov/ui/core/Button';
3
- export interface CallToActionProps extends ButtonProps {
4
- label?: string;
5
- children?: React.ReactNode;
6
- }
7
- export declare const ButtonIcon: React.FC<CallToActionProps>;
8
- export default ButtonIcon;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@digigov/ui/core/Button';
3
- export interface ButtonIconProps extends ButtonProps {
4
- Icon: React.ElementType;
5
- icon: string;
6
- label: string;
7
- }
8
- export declare const ButtonIcon: React.FC<ButtonIconProps>;
9
- export default ButtonIcon;
@@ -1,145 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the button 1`] = `
4
- <Button
5
- color="primary"
6
- size="large"
7
- variant="contained"
8
- xsFullWidth={false}
9
- >
10
- <WithStyles(ForwardRef(Button))
11
- classes={
12
- Object {
13
- "containedPrimary": "MuiButton-containedPrimary",
14
- "containedSecondary": "MuiButton-containedSecondary",
15
- "disabled": "Mui-disabled",
16
- "root": "MuiButton-root",
17
- }
18
- }
19
- color="primary"
20
- data-testid="button"
21
- size="large"
22
- variant="contained"
23
- >
24
- <ForwardRef(Button)
25
- classes={
26
- Object {
27
- "colorInherit": "MuiButton-colorInherit",
28
- "contained": "MuiButton-contained",
29
- "containedPrimary": "MuiButton-containedPrimary MuiButton-containedPrimary",
30
- "containedSecondary": "MuiButton-containedSecondary MuiButton-containedSecondary",
31
- "containedSizeLarge": "MuiButton-containedSizeLarge",
32
- "containedSizeSmall": "MuiButton-containedSizeSmall",
33
- "disableElevation": "MuiButton-disableElevation",
34
- "disabled": "Mui-disabled Mui-disabled",
35
- "endIcon": "MuiButton-endIcon",
36
- "focusVisible": "Mui-focusVisible",
37
- "fullWidth": "MuiButton-fullWidth",
38
- "iconSizeLarge": "MuiButton-iconSizeLarge",
39
- "iconSizeMedium": "MuiButton-iconSizeMedium",
40
- "iconSizeSmall": "MuiButton-iconSizeSmall",
41
- "label": "MuiButton-label",
42
- "outlined": "MuiButton-outlined",
43
- "outlinedPrimary": "MuiButton-outlinedPrimary",
44
- "outlinedSecondary": "MuiButton-outlinedSecondary",
45
- "outlinedSizeLarge": "MuiButton-outlinedSizeLarge",
46
- "outlinedSizeSmall": "MuiButton-outlinedSizeSmall",
47
- "root": "MuiButton-root MuiButton-root",
48
- "sizeLarge": "MuiButton-sizeLarge",
49
- "sizeSmall": "MuiButton-sizeSmall",
50
- "startIcon": "MuiButton-startIcon",
51
- "text": "MuiButton-text",
52
- "textPrimary": "MuiButton-textPrimary",
53
- "textSecondary": "MuiButton-textSecondary",
54
- "textSizeLarge": "MuiButton-textSizeLarge",
55
- "textSizeSmall": "MuiButton-textSizeSmall",
56
- }
57
- }
58
- color="primary"
59
- data-testid="button"
60
- size="large"
61
- variant="contained"
62
- >
63
- <WithStyles(ForwardRef(ButtonBase))
64
- className="MuiButton-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-containedPrimary MuiButton-containedSizeLarge MuiButton-sizeLarge"
65
- component="button"
66
- data-testid="button"
67
- disabled={false}
68
- focusRipple={true}
69
- focusVisibleClassName="Mui-focusVisible"
70
- type="button"
71
- >
72
- <ForwardRef(ButtonBase)
73
- className="MuiButton-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-containedPrimary MuiButton-containedSizeLarge MuiButton-sizeLarge"
74
- classes={
75
- Object {
76
- "disabled": "Mui-disabled",
77
- "focusVisible": "Mui-focusVisible",
78
- "root": "MuiButtonBase-root",
79
- }
80
- }
81
- component="button"
82
- data-testid="button"
83
- disabled={false}
84
- focusRipple={true}
85
- focusVisibleClassName="Mui-focusVisible"
86
- type="button"
87
- >
88
- <button
89
- className="MuiButtonBase-root MuiButton-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-containedPrimary MuiButton-containedSizeLarge MuiButton-sizeLarge"
90
- data-testid="button"
91
- disabled={false}
92
- onBlur={[Function]}
93
- onDragLeave={[Function]}
94
- onFocus={[Function]}
95
- onKeyDown={[Function]}
96
- onKeyUp={[Function]}
97
- onMouseDown={[Function]}
98
- onMouseLeave={[Function]}
99
- onMouseUp={[Function]}
100
- onTouchEnd={[Function]}
101
- onTouchMove={[Function]}
102
- onTouchStart={[Function]}
103
- tabIndex={0}
104
- type="button"
105
- >
106
- <span
107
- className="MuiButton-label"
108
- >
109
- hello
110
- </span>
111
- <WithStyles(memo)
112
- center={false}
113
- >
114
- <ForwardRef(TouchRipple)
115
- center={false}
116
- classes={
117
- Object {
118
- "child": "MuiTouchRipple-child",
119
- "childLeaving": "MuiTouchRipple-childLeaving",
120
- "childPulsate": "MuiTouchRipple-childPulsate",
121
- "ripple": "MuiTouchRipple-ripple",
122
- "ripplePulsate": "MuiTouchRipple-ripplePulsate",
123
- "rippleVisible": "MuiTouchRipple-rippleVisible",
124
- "root": "MuiTouchRipple-root",
125
- }
126
- }
127
- >
128
- <span
129
- className="MuiTouchRipple-root"
130
- >
131
- <TransitionGroup
132
- childFactory={[Function]}
133
- component={null}
134
- exit={true}
135
- />
136
- </span>
137
- </ForwardRef(TouchRipple)>
138
- </WithStyles(memo)>
139
- </button>
140
- </ForwardRef(ButtonBase)>
141
- </WithStyles(ForwardRef(ButtonBase))>
142
- </ForwardRef(Button)>
143
- </WithStyles(ForwardRef(Button))>
144
- </Button>
145
- `;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { ButtonProps as MuiButtonProps } from '@material-ui/core/Button';
3
- export interface ButtonStyles {
4
- root?: string;
5
- responsive?: string;
6
- }
7
- export declare const useButtonStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root" | "disabled" | "containedPrimary" | "containedSecondary" | "responsive">;
8
- export interface ButtonProps extends MuiButtonProps {
9
- /**
10
- * This defines whether the button is responseive
11
- * @private
12
- */
13
- xsFullWidth?: boolean;
14
- /** This is the classes object where
15
- * a custom style is defined */
16
- classes?: ButtonStyles;
17
- component?: React.ElementType;
18
- }
19
- export declare const Button: React.FC<ButtonProps>;
20
- export default Button;
21
- export interface ContinueButtonProps extends ButtonProps {
22
- label?: string;
23
- }
24
- export declare const ContinueButton: React.FC<ContinueButtonProps>;
25
- export * from '@digigov/ui/core/Button/BackButton';
26
- export * from '@digigov/ui/core/Button/CallToAction';
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- export interface DetailsSummaryProps {
3
- children: React.ReactNode;
4
- className?: string;
5
- }
6
- export declare const DetailsSummary: React.FC<DetailsSummaryProps>;
7
- export interface DetailsContentProps {
8
- children: React.ReactNode;
9
- className?: string;
10
- }
11
- export declare const DetailsContent: React.FC<DetailsContentProps>;
12
- export interface DetailsProps {
13
- children: React.ReactElement<typeof DetailsContent | typeof DetailsSummary>[];
14
- open?: boolean;
15
- className?: string;
16
- }
17
- export declare const Details: React.FC<DetailsProps>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { DividerProps as MuiDividerProps } from '@material-ui/core/Divider';
3
- export interface DividerProps extends MuiDividerProps {
4
- }
5
- export declare const Divider: React.FC<DividerProps>;
6
- export default Divider;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export declare const useErrorSummaryStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
3
- export interface ErrorSummaryProps {
4
- children: React.ReactNode;
5
- className?: string;
6
- }
7
- export declare const ErrorSummary: React.FC<ErrorSummaryProps>;
8
- export default ErrorSummary;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
3
- export declare const useListStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
4
- export interface ListProps {
5
- children?: React.ReactNode;
6
- className?: string;
7
- style?: BaseCSSProperties;
8
- }
9
- export declare const List: React.FC<ListProps>;
10
- export default List;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { BaseCSSProperties } from '@material-ui/core/styles/withStyles';
3
- export declare const useListItemStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
4
- export interface ListItemProps {
5
- children?: React.ReactNode;
6
- className?: string;
7
- style?: BaseCSSProperties;
8
- }
9
- export declare const ListItem: React.FC<ListItemProps>;
10
- export default ListItem;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface NotificationBannerProps {
3
- variant?: 'important' | 'success';
4
- className?: string;
5
- }
6
- export declare const NotificationBanner: React.FC<NotificationBannerProps>;
7
- export default NotificationBanner;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface ServiceBadgeProps {
3
- label?: string;
4
- className?: string;
5
- }
6
- export declare const ServiceBadge: React.FC<ServiceBadgeProps>;
7
- export default ServiceBadge;