@city-of-helsinki/react-helsinki-headless-cms 3.0.0-rc.1 → 3.0.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 (473) hide show
  1. package/dist/LICENSE +21 -0
  2. package/dist/README.md +442 -0
  3. package/dist/__generated__-mcycL1jB.d.ts +7192 -0
  4. package/dist/apollo.d.ts +168 -0
  5. package/dist/apollo.js +194 -0
  6. package/dist/apollo.js.map +1 -0
  7. package/dist/archiveSearchPageContent.module-DmpLBZP5.js +4078 -0
  8. package/dist/archiveSearchPageContent.module-DmpLBZP5.js.map +1 -0
  9. package/dist/cjs/apollo.js +227 -0
  10. package/dist/cjs/apollo.js.map +1 -0
  11. package/dist/cjs/archiveSearchPageContent.module-Hcb4WVMf.js +4143 -0
  12. package/dist/cjs/archiveSearchPageContent.module-Hcb4WVMf.js.map +1 -0
  13. package/dist/cjs/defaultConfig-dV2AVA5S.js +19908 -0
  14. package/dist/cjs/defaultConfig-dV2AVA5S.js.map +1 -0
  15. package/dist/cjs/index-Eg-NhhyT.js +799 -0
  16. package/dist/cjs/index-Eg-NhhyT.js.map +1 -0
  17. package/dist/cjs/index.js +439 -0
  18. package/dist/cjs/index.js.map +1 -0
  19. package/dist/cjs/jest-setup.d.ts +1 -0
  20. package/dist/cjs/nextjs.js +74 -0
  21. package/dist/cjs/nextjs.js.map +1 -0
  22. package/dist/cjs/src/apollo/apollo-custom-template.stories.d.ts +12 -0
  23. package/dist/cjs/src/apollo/apollo.stories.d.ts +24 -0
  24. package/dist/cjs/src/apollo/index.d.ts +17 -0
  25. package/dist/cjs/src/apollo/navigation/Navigation.d.ts +13 -0
  26. package/dist/cjs/src/apollo/navigation/__tests__/Navigation.test.d.ts +1 -0
  27. package/dist/cjs/src/apollo/notification/Notification.d.ts +4 -0
  28. package/dist/cjs/src/apollo/notification/__tests__/Notification.test.d.ts +1 -0
  29. package/dist/cjs/src/apollo/page/ApolloPageContextProvider.d.ts +5 -0
  30. package/dist/cjs/src/apollo/page/Page.d.ts +14 -0
  31. package/dist/cjs/src/apollo/page/apolloPageContext.d.ts +13 -0
  32. package/dist/cjs/src/apollo/page/useApolloPageContext.d.ts +4 -0
  33. package/dist/cjs/src/apollo/pageContent/PageContent.d.ts +9 -0
  34. package/dist/cjs/src/apollo/pageWithTemplateContent/PageWithTemplateContent.d.ts +14 -0
  35. package/dist/cjs/src/common/components/container/Container.d.ts +13 -0
  36. package/dist/cjs/src/common/components/grid/Grid.d.ts +16 -0
  37. package/dist/cjs/src/common/components/grid/Grid.stories.d.ts +8 -0
  38. package/dist/cjs/src/common/components/htmlToReact/HtmlToReact.d.ts +38 -0
  39. package/dist/cjs/src/common/components/htmlToReact/HtmlToReact.stories.d.ts +13 -0
  40. package/dist/cjs/src/common/components/htmlToReact/__tests__/HtmlToReact.tests.d.ts +1 -0
  41. package/dist/cjs/src/common/components/htmlToReact/replaceComponents/DefaultH2.d.ts +4 -0
  42. package/dist/cjs/src/common/components/htmlToReact/replaceComponents/DefaultP.d.ts +4 -0
  43. package/dist/cjs/src/common/components/htmlToReact/replaceComponents/IframeForEmbeddedMedia.d.ts +6 -0
  44. package/dist/cjs/src/common/components/htmlToReact/replaceComponents/index.d.ts +3 -0
  45. package/dist/cjs/src/common/components/icons/index.d.ts +5 -0
  46. package/dist/cjs/src/common/components/list/List.d.ts +13 -0
  47. package/dist/cjs/src/common/components/list/List.stories.d.ts +13 -0
  48. package/dist/cjs/src/common/components/tag/Tag.d.ts +26 -0
  49. package/dist/cjs/src/common/components/tag/Tag.stories.d.ts +80 -0
  50. package/dist/cjs/src/common/components/tag/__tests__/Tag.test.d.ts +1 -0
  51. package/dist/cjs/src/common/components/tag/tagThemes.d.ts +3 -0
  52. package/dist/cjs/src/common/components/text/Text.d.ts +27 -0
  53. package/dist/cjs/src/common/components/text/Text.stories.d.ts +14 -0
  54. package/dist/cjs/src/common/constants.d.ts +2 -0
  55. package/dist/cjs/src/common/eventsService/__generated__.d.ts +1420 -0
  56. package/dist/cjs/src/common/eventsService/events.d.ts +12 -0
  57. package/dist/cjs/src/common/eventsService/types.d.ts +2 -0
  58. package/dist/cjs/src/common/eventsService/utils.d.ts +7 -0
  59. package/dist/cjs/src/common/headlessService/__generated__.d.ts +20878 -0
  60. package/dist/cjs/src/common/headlessService/article.d.ts +7 -0
  61. package/dist/cjs/src/common/headlessService/articles.d.ts +17 -0
  62. package/dist/cjs/src/common/headlessService/categories.d.ts +13 -0
  63. package/dist/cjs/src/common/headlessService/category.d.ts +9 -0
  64. package/dist/cjs/src/common/headlessService/constants.d.ts +7 -0
  65. package/dist/cjs/src/common/headlessService/landingPage.d.ts +9 -0
  66. package/dist/cjs/src/common/headlessService/languages.d.ts +8 -0
  67. package/dist/cjs/src/common/headlessService/makeQueryWithApolloClientFromConfig.d.ts +12 -0
  68. package/dist/cjs/src/common/headlessService/menu.d.ts +10 -0
  69. package/dist/cjs/src/common/headlessService/notification.d.ts +7 -0
  70. package/dist/cjs/src/common/headlessService/page.d.ts +8 -0
  71. package/dist/cjs/src/common/headlessService/pageByTemplate.d.ts +9 -0
  72. package/dist/cjs/src/common/headlessService/pages.d.ts +13 -0
  73. package/dist/cjs/src/common/headlessService/tag.d.ts +9 -0
  74. package/dist/cjs/src/common/headlessService/tags.d.ts +13 -0
  75. package/dist/cjs/src/common/headlessService/types.d.ts +17 -0
  76. package/dist/cjs/src/common/headlessService/utils.d.ts +909 -0
  77. package/dist/cjs/src/common/utils/customRender.d.ts +4 -0
  78. package/dist/cjs/src/common/utils/dates.d.ts +20 -0
  79. package/dist/cjs/src/common/utils/getIsValidHttpUrl.d.ts +5 -0
  80. package/dist/cjs/src/common/utils/hash.d.ts +1 -0
  81. package/dist/cjs/src/common/utils/makeLocaleStorageValue.d.ts +6 -0
  82. package/dist/cjs/src/common/utils/testImage.d.ts +9 -0
  83. package/dist/cjs/src/common/venuesService/__generated__.d.ts +254 -0
  84. package/dist/cjs/src/common/venuesService/makeQueryWithVenuesApolloClientFromConfig.d.ts +7 -0
  85. package/dist/cjs/src/common/venuesService/types.d.ts +2 -0
  86. package/dist/cjs/src/constants.d.ts +5 -0
  87. package/dist/cjs/src/core/archiveSearchPage/ArchivePageMeta.d.ts +13 -0
  88. package/dist/cjs/src/core/archiveSearchPage/ArchiveSearchPage.d.ts +16 -0
  89. package/dist/cjs/src/core/archiveSearchPage/ArchiveSearchPage.stories.d.ts +50 -0
  90. package/dist/cjs/src/core/archiveSearchPageContent/ArchiveSearchPageContent.d.ts +92 -0
  91. package/dist/cjs/src/core/button/LoadingButton.d.ts +8 -0
  92. package/dist/cjs/src/core/card/Card.d.ts +102 -0
  93. package/dist/cjs/src/core/card/Card.stories.d.ts +99 -0
  94. package/dist/cjs/src/core/card/LargeCard.d.ts +68 -0
  95. package/dist/cjs/src/core/card/LargeCard.stories.d.ts +16 -0
  96. package/dist/cjs/src/core/cardsList/CardsList.d.ts +16 -0
  97. package/dist/cjs/src/core/cardsList/CardsList.stories.d.ts +22 -0
  98. package/dist/cjs/src/core/carousel/Carousel.d.ts +3 -0
  99. package/dist/cjs/src/core/carousel/Carousel.stories.d.ts +34 -0
  100. package/dist/cjs/src/core/carousel/__tests__/Carousel.test.d.ts +1 -0
  101. package/dist/cjs/src/core/carousel/components/CarouselSlideButton.d.ts +3 -0
  102. package/dist/cjs/src/core/carousel/components/CarouselSlider.d.ts +3 -0
  103. package/dist/cjs/src/core/carousel/components/CarouselSliderDot.d.ts +2 -0
  104. package/dist/cjs/src/core/carousel/components/CarouselSliderPage.d.ts +5 -0
  105. package/dist/cjs/src/core/carousel/components/__tests__/CarouselSlideButton.test.d.ts +1 -0
  106. package/dist/cjs/src/core/carousel/components/__tests__/CarouselSlider.test.d.ts +1 -0
  107. package/dist/cjs/src/core/carousel/components/__tests__/CarouselSliderDot.test.d.ts +1 -0
  108. package/dist/cjs/src/core/carousel/components/__tests__/CarouselSliderPage.test.d.ts +1 -0
  109. package/dist/cjs/src/core/carousel/constants.d.ts +20 -0
  110. package/dist/cjs/src/core/carousel/context/CarouselContext.d.ts +4 -0
  111. package/dist/cjs/src/core/carousel/context/CarouselContextProvider.d.ts +7 -0
  112. package/dist/cjs/src/core/carousel/types.d.ts +147 -0
  113. package/dist/cjs/src/core/carousel/utils/utils.d.ts +27 -0
  114. package/dist/cjs/src/core/collection/Collection.d.ts +102 -0
  115. package/dist/cjs/src/core/collection/Collection.stories.d.ts +48 -0
  116. package/dist/cjs/src/core/collection/__tests__/Collection.test.d.ts +1 -0
  117. package/dist/cjs/src/core/collection/constants.d.ts +1 -0
  118. package/dist/cjs/src/core/collection/types.d.ts +28 -0
  119. package/dist/cjs/src/core/collection/utils.d.ts +36 -0
  120. package/dist/cjs/src/core/configProvider/ConfigProvider.d.ts +13 -0
  121. package/dist/cjs/src/core/configProvider/configContext.d.ts +130 -0
  122. package/dist/cjs/src/core/configProvider/defaultConfig.d.ts +61 -0
  123. package/dist/cjs/src/core/configProvider/useApolloClientFromConfig.d.ts +1 -0
  124. package/dist/cjs/src/core/configProvider/useConfig.d.ts +2 -0
  125. package/dist/cjs/src/core/configProvider/useEventsApolloClientFromConfig.d.ts +1 -0
  126. package/dist/cjs/src/core/configProvider/useHeadlessCmsLink.d.ts +2 -0
  127. package/dist/cjs/src/core/configProvider/useVenuesApolloClientFromConfig.d.ts +1 -0
  128. package/dist/cjs/src/core/contentContainer/ContentContainer.d.ts +12 -0
  129. package/dist/cjs/src/core/contentContainer/ContentContainer.stories.d.ts +8 -0
  130. package/dist/cjs/src/core/hero/Hero.d.ts +33 -0
  131. package/dist/cjs/src/core/hero/Hero.stories.d.ts +23 -0
  132. package/dist/cjs/src/core/hooks/useResolveImageUrl.d.ts +6 -0
  133. package/dist/cjs/src/core/image/BackgroundImage.d.ts +20 -0
  134. package/dist/cjs/src/core/image/Image.d.ts +24 -0
  135. package/dist/cjs/src/core/image/__tests__/BackgroundImage.test.d.ts +1 -0
  136. package/dist/cjs/src/core/image/__tests__/Image.test.d.ts +1 -0
  137. package/dist/cjs/src/core/imageGallery/ImageGallery.d.ts +25 -0
  138. package/dist/cjs/src/core/imageGallery/ImageGalleryContext.d.ts +32 -0
  139. package/dist/cjs/src/core/imageGallery/ImageGalleryProvider.d.ts +10 -0
  140. package/dist/cjs/src/core/imageGallery/ImageItem.d.ts +26 -0
  141. package/dist/cjs/src/core/imageGallery/ImagesGrid.d.ts +26 -0
  142. package/dist/cjs/src/core/imageGallery/Lightbox.d.ts +24 -0
  143. package/dist/cjs/src/core/imageGallery/types.d.ts +6 -0
  144. package/dist/cjs/src/core/imageGallery/useImageGalleryContext.d.ts +1 -0
  145. package/dist/cjs/src/core/index.d.ts +43 -0
  146. package/dist/cjs/src/core/language/__tests__/languageSorter.test.d.ts +1 -0
  147. package/dist/cjs/src/core/language/constants.d.ts +6 -0
  148. package/dist/cjs/src/core/language/findLanguage.d.ts +10 -0
  149. package/dist/cjs/src/core/language/index.d.ts +6 -0
  150. package/dist/cjs/src/core/language/languageSorter.d.ts +4 -0
  151. package/dist/cjs/src/core/language/toPrimaryLanguageOption.d.ts +5 -0
  152. package/dist/cjs/src/core/language/typeGuards.d.ts +3 -0
  153. package/dist/cjs/src/core/language/types.d.ts +5 -0
  154. package/dist/cjs/src/core/link/Link.d.ts +44 -0
  155. package/dist/cjs/src/core/link/Link.stories.d.ts +33 -0
  156. package/dist/cjs/src/core/link/LinkBase.d.ts +106 -0
  157. package/dist/cjs/src/core/link/SecondaryLink.d.ts +3 -0
  158. package/dist/cjs/src/core/link/__tests__/Link.test.d.ts +1 -0
  159. package/dist/cjs/src/core/linkBox/Link.stories.d.ts +23 -0
  160. package/dist/cjs/src/core/linkBox/LinkBox.d.ts +20 -0
  161. package/dist/cjs/src/core/navigation/Navigation.d.ts +15 -0
  162. package/dist/cjs/src/core/notification/Notification.d.ts +9 -0
  163. package/dist/cjs/src/core/notification/__tests__/Notification.test.d.ts +1 -0
  164. package/dist/cjs/src/core/notification/utils/getIsNotificationActive.d.ts +2 -0
  165. package/dist/cjs/src/core/notification/utils/getNotificationHash.d.ts +2 -0
  166. package/dist/cjs/src/core/page/Page.d.ts +9 -0
  167. package/dist/cjs/src/core/page/Page.stories.d.ts +40 -0
  168. package/dist/cjs/src/core/pageContent/PageContent.d.ts +11 -0
  169. package/dist/cjs/src/core/pageContent/PageContent.stories.d.ts +1146 -0
  170. package/dist/cjs/src/core/pageContent/PageContentBreadcrumb.d.ts +5 -0
  171. package/dist/cjs/src/core/pageContent/PageContentLayout.d.ts +16 -0
  172. package/dist/cjs/src/core/pageContent/PageMainContent.d.ts +11 -0
  173. package/dist/cjs/src/core/pageContent/__tests__/Page.test.d.ts +1 -0
  174. package/dist/cjs/src/core/pageContent/meta/PageMeta.d.ts +9 -0
  175. package/dist/cjs/src/core/pageContent/sidebarContent/SidebarCardsList.d.ts +5 -0
  176. package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContent.d.ts +15 -0
  177. package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContentCard.d.ts +12 -0
  178. package/dist/cjs/src/core/pageContent/sidebarContent/SidebarContentLinkList.d.ts +5 -0
  179. package/dist/cjs/src/core/pageContent/sidebarContent/SidebarPostListItem.d.ts +8 -0
  180. package/dist/cjs/src/core/pageContent/sidebarContent/__tests__/SidebarContent.test.d.ts +1 -0
  181. package/dist/cjs/src/core/pageContent/types.d.ts +36 -0
  182. package/dist/cjs/src/core/pageContent/utils.d.ts +28 -0
  183. package/dist/cjs/src/core/pageContextProvider/PageContext.d.ts +6 -0
  184. package/dist/cjs/src/core/pageContextProvider/PageContextProvider.d.ts +6 -0
  185. package/dist/cjs/src/core/pageContextProvider/__tests__/PageContextProvider.test.d.ts +1 -0
  186. package/dist/cjs/src/core/pageContextProvider/usePageContext.d.ts +1 -0
  187. package/dist/cjs/src/core/pageModules/CardModule/CardModule.d.ts +3 -0
  188. package/dist/cjs/src/core/pageModules/CardModule/CardModule.stories.d.ts +7 -0
  189. package/dist/cjs/src/core/pageModules/CardsModule/CardsModule.d.ts +17 -0
  190. package/dist/cjs/src/core/pageModules/CardsModule/CardsModule.stories.d.ts +7 -0
  191. package/dist/cjs/src/core/pageModules/CardsModule/Icon.d.ts +6 -0
  192. package/dist/cjs/src/core/pageModules/CardsModule/SimpleCard.d.ts +13 -0
  193. package/dist/cjs/src/core/pageModules/ContentModule/ContentModule.d.ts +7 -0
  194. package/dist/cjs/src/core/pageModules/ContentModule/ContentModule.stories.d.ts +7 -0
  195. package/dist/cjs/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.d.ts +3 -0
  196. package/dist/cjs/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.stories.d.ts +7 -0
  197. package/dist/cjs/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.d.ts +7 -0
  198. package/dist/cjs/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.stories.d.ts +7 -0
  199. package/dist/cjs/src/core/pageModules/StepsModule/StepsModule.d.ts +14 -0
  200. package/dist/cjs/src/core/pageModules/StepsModule/StepsModule.stories.d.ts +7 -0
  201. package/dist/cjs/src/core/pageModules/constants.d.ts +1 -0
  202. package/dist/cjs/src/core/pageSection/PageSection.d.ts +32 -0
  203. package/dist/cjs/src/core/pageSection/PageSection.stories.d.ts +7 -0
  204. package/dist/cjs/src/core/pageSection/__tests__/PageSection.test.d.ts +1 -0
  205. package/dist/cjs/src/core/storyContainer/StoryContainer.d.ts +6 -0
  206. package/dist/cjs/src/core/translation/__tests__/getTranslationWithFallback.test.d.ts +1 -0
  207. package/dist/cjs/src/core/translation/constants.d.ts +12 -0
  208. package/dist/cjs/src/core/translation/getTranslationWithFallback.d.ts +4 -0
  209. package/dist/cjs/src/core/translation/types.d.ts +8 -0
  210. package/dist/cjs/src/core/translation/useTranslationWithFallback.d.ts +4 -0
  211. package/dist/cjs/src/core/utils/__tests__/findAllElementsOfType.test.d.ts +1 -0
  212. package/dist/cjs/src/core/utils/__tests__/getChildrenByType.test.d.ts +1 -0
  213. package/dist/cjs/src/core/utils/__tests__/recursiveMap.test.d.ts +1 -0
  214. package/dist/cjs/src/core/utils/createHashKey.d.ts +1 -0
  215. package/dist/cjs/src/core/utils/findAllElementsOfType.d.ts +5 -0
  216. package/dist/cjs/src/core/utils/getChildrenByType.d.ts +18 -0
  217. package/dist/cjs/src/core/utils/isTrustedOrigin.d.ts +1 -0
  218. package/dist/cjs/src/core/utils/recursiveMap.d.ts +15 -0
  219. package/dist/cjs/src/core/utils/string.d.ts +27 -0
  220. package/dist/cjs/src/core/utils/validateTrustedOriginsFormat.d.ts +1 -0
  221. package/dist/cjs/src/linkedEvents/utils/normalizeKey.d.ts +10 -0
  222. package/dist/cjs/src/linkedEvents/utils/normalizeKeys.d.ts +28 -0
  223. package/dist/cjs/src/mocks/handlers.d.ts +1 -0
  224. package/dist/cjs/src/mocks/queries/cms/languages.d.ts +1 -0
  225. package/dist/cjs/src/mocks/queries/cms/menu.d.ts +1 -0
  226. package/dist/cjs/src/mocks/queries/cms/notification.d.ts +1 -0
  227. package/dist/cjs/src/mocks/queries/cms/page.d.ts +1 -0
  228. package/dist/cjs/src/mocks/queries/linkedEvents/eventList.d.ts +242 -0
  229. package/dist/cjs/src/mocks/queries/linkedEvents/eventsByIds.d.ts +224 -0
  230. package/dist/cjs/src/mocks/responses/linkedEvents/eventMocks.d.ts +1112 -0
  231. package/dist/cjs/src/mocks/server.d.ts +1 -0
  232. package/dist/cjs/src/nextjs/getLanguageStaticProps.d.ts +3 -0
  233. package/dist/cjs/src/nextjs/getMenuStaticProps.d.ts +7 -0
  234. package/dist/cjs/src/nextjs/getPageStaticProps.d.ts +7 -0
  235. package/dist/cjs/src/nextjs/index.d.ts +3 -0
  236. package/dist/cjs/src/storybook-common/HelmetWrapper.d.ts +4 -0
  237. package/dist/cjs/src/storybook-common/constants.d.ts +9 -0
  238. package/dist/cjs/src/storybook-common/useCmsEndpointConfig.d.ts +3 -0
  239. package/dist/cjs/src/tests/apolloConfig.d.ts +2 -0
  240. package/dist/cjs/src/tests/hideConsoleMessages.d.ts +11 -0
  241. package/dist/configContext-BjJVyERb.d.ts +791 -0
  242. package/dist/defaultConfig-B0wJw6Kr.js +19810 -0
  243. package/dist/defaultConfig-B0wJw6Kr.js.map +1 -0
  244. package/dist/index-B0pDvzoV.js +2 -0
  245. package/dist/index-B0pDvzoV.js.map +1 -0
  246. package/dist/index.d.ts +1432 -0
  247. package/dist/index.js +333 -0
  248. package/dist/index.js.map +1 -0
  249. package/dist/jest-setup.d.ts +1 -0
  250. package/dist/nextjs.d.ts +17 -0
  251. package/dist/nextjs.js +70 -0
  252. package/dist/nextjs.js.map +1 -0
  253. package/dist/package.json +182 -0
  254. package/dist/src/apollo/apollo-custom-template.stories.d.ts +12 -0
  255. package/dist/src/apollo/apollo.stories.d.ts +24 -0
  256. package/dist/src/apollo/index.d.ts +17 -0
  257. package/dist/src/apollo/navigation/Navigation.d.ts +13 -0
  258. package/dist/src/apollo/navigation/__tests__/Navigation.test.d.ts +1 -0
  259. package/dist/src/apollo/notification/Notification.d.ts +4 -0
  260. package/dist/src/apollo/notification/__tests__/Notification.test.d.ts +1 -0
  261. package/dist/src/apollo/page/ApolloPageContextProvider.d.ts +5 -0
  262. package/dist/src/apollo/page/Page.d.ts +14 -0
  263. package/dist/src/apollo/page/apolloPageContext.d.ts +13 -0
  264. package/dist/src/apollo/page/useApolloPageContext.d.ts +4 -0
  265. package/dist/src/apollo/pageContent/PageContent.d.ts +9 -0
  266. package/dist/src/apollo/pageWithTemplateContent/PageWithTemplateContent.d.ts +14 -0
  267. package/dist/src/common/components/container/Container.d.ts +13 -0
  268. package/dist/src/common/components/grid/Grid.d.ts +16 -0
  269. package/dist/src/common/components/grid/Grid.stories.d.ts +8 -0
  270. package/dist/src/common/components/htmlToReact/HtmlToReact.d.ts +38 -0
  271. package/dist/src/common/components/htmlToReact/HtmlToReact.stories.d.ts +13 -0
  272. package/dist/src/common/components/htmlToReact/__tests__/HtmlToReact.tests.d.ts +1 -0
  273. package/dist/src/common/components/htmlToReact/replaceComponents/DefaultH2.d.ts +4 -0
  274. package/dist/src/common/components/htmlToReact/replaceComponents/DefaultP.d.ts +4 -0
  275. package/dist/src/common/components/htmlToReact/replaceComponents/IframeForEmbeddedMedia.d.ts +6 -0
  276. package/dist/src/common/components/htmlToReact/replaceComponents/index.d.ts +3 -0
  277. package/dist/src/common/components/icons/index.d.ts +5 -0
  278. package/dist/src/common/components/list/List.d.ts +13 -0
  279. package/dist/src/common/components/list/List.stories.d.ts +13 -0
  280. package/dist/src/common/components/tag/Tag.d.ts +26 -0
  281. package/dist/src/common/components/tag/Tag.stories.d.ts +80 -0
  282. package/dist/src/common/components/tag/__tests__/Tag.test.d.ts +1 -0
  283. package/dist/src/common/components/tag/tagThemes.d.ts +3 -0
  284. package/dist/src/common/components/text/Text.d.ts +27 -0
  285. package/dist/src/common/components/text/Text.stories.d.ts +14 -0
  286. package/dist/src/common/constants.d.ts +2 -0
  287. package/dist/src/common/eventsService/__generated__.d.ts +1420 -0
  288. package/dist/src/common/eventsService/events.d.ts +12 -0
  289. package/dist/src/common/eventsService/types.d.ts +2 -0
  290. package/dist/src/common/eventsService/utils.d.ts +7 -0
  291. package/dist/src/common/headlessService/__generated__.d.ts +20878 -0
  292. package/dist/src/common/headlessService/article.d.ts +7 -0
  293. package/dist/src/common/headlessService/articles.d.ts +17 -0
  294. package/dist/src/common/headlessService/categories.d.ts +13 -0
  295. package/dist/src/common/headlessService/category.d.ts +9 -0
  296. package/dist/src/common/headlessService/constants.d.ts +7 -0
  297. package/dist/src/common/headlessService/landingPage.d.ts +9 -0
  298. package/dist/src/common/headlessService/languages.d.ts +8 -0
  299. package/dist/src/common/headlessService/makeQueryWithApolloClientFromConfig.d.ts +12 -0
  300. package/dist/src/common/headlessService/menu.d.ts +10 -0
  301. package/dist/src/common/headlessService/notification.d.ts +7 -0
  302. package/dist/src/common/headlessService/page.d.ts +8 -0
  303. package/dist/src/common/headlessService/pageByTemplate.d.ts +9 -0
  304. package/dist/src/common/headlessService/pages.d.ts +13 -0
  305. package/dist/src/common/headlessService/tag.d.ts +9 -0
  306. package/dist/src/common/headlessService/tags.d.ts +13 -0
  307. package/dist/src/common/headlessService/types.d.ts +17 -0
  308. package/dist/src/common/headlessService/utils.d.ts +909 -0
  309. package/dist/src/common/utils/customRender.d.ts +4 -0
  310. package/dist/src/common/utils/dates.d.ts +20 -0
  311. package/dist/src/common/utils/getIsValidHttpUrl.d.ts +5 -0
  312. package/dist/src/common/utils/hash.d.ts +1 -0
  313. package/dist/src/common/utils/makeLocaleStorageValue.d.ts +6 -0
  314. package/dist/src/common/utils/testImage.d.ts +9 -0
  315. package/dist/src/common/venuesService/__generated__.d.ts +254 -0
  316. package/dist/src/common/venuesService/makeQueryWithVenuesApolloClientFromConfig.d.ts +7 -0
  317. package/dist/src/common/venuesService/types.d.ts +2 -0
  318. package/dist/src/constants.d.ts +5 -0
  319. package/dist/src/core/archiveSearchPage/ArchivePageMeta.d.ts +13 -0
  320. package/dist/src/core/archiveSearchPage/ArchiveSearchPage.d.ts +16 -0
  321. package/dist/src/core/archiveSearchPage/ArchiveSearchPage.stories.d.ts +50 -0
  322. package/dist/src/core/archiveSearchPageContent/ArchiveSearchPageContent.d.ts +92 -0
  323. package/dist/src/core/button/LoadingButton.d.ts +8 -0
  324. package/dist/src/core/card/Card.d.ts +102 -0
  325. package/dist/src/core/card/Card.stories.d.ts +99 -0
  326. package/dist/src/core/card/LargeCard.d.ts +68 -0
  327. package/dist/src/core/card/LargeCard.stories.d.ts +16 -0
  328. package/dist/src/core/cardsList/CardsList.d.ts +16 -0
  329. package/dist/src/core/cardsList/CardsList.stories.d.ts +22 -0
  330. package/dist/src/core/carousel/Carousel.d.ts +3 -0
  331. package/dist/src/core/carousel/Carousel.stories.d.ts +34 -0
  332. package/dist/src/core/carousel/__tests__/Carousel.test.d.ts +1 -0
  333. package/dist/src/core/carousel/components/CarouselSlideButton.d.ts +3 -0
  334. package/dist/src/core/carousel/components/CarouselSlider.d.ts +3 -0
  335. package/dist/src/core/carousel/components/CarouselSliderDot.d.ts +2 -0
  336. package/dist/src/core/carousel/components/CarouselSliderPage.d.ts +5 -0
  337. package/dist/src/core/carousel/components/__tests__/CarouselSlideButton.test.d.ts +1 -0
  338. package/dist/src/core/carousel/components/__tests__/CarouselSlider.test.d.ts +1 -0
  339. package/dist/src/core/carousel/components/__tests__/CarouselSliderDot.test.d.ts +1 -0
  340. package/dist/src/core/carousel/components/__tests__/CarouselSliderPage.test.d.ts +1 -0
  341. package/dist/src/core/carousel/constants.d.ts +20 -0
  342. package/dist/src/core/carousel/context/CarouselContext.d.ts +4 -0
  343. package/dist/src/core/carousel/context/CarouselContextProvider.d.ts +7 -0
  344. package/dist/src/core/carousel/types.d.ts +147 -0
  345. package/dist/src/core/carousel/utils/utils.d.ts +27 -0
  346. package/dist/src/core/collection/Collection.d.ts +102 -0
  347. package/dist/src/core/collection/Collection.stories.d.ts +48 -0
  348. package/dist/src/core/collection/__tests__/Collection.test.d.ts +1 -0
  349. package/dist/src/core/collection/constants.d.ts +1 -0
  350. package/dist/src/core/collection/types.d.ts +28 -0
  351. package/dist/src/core/collection/utils.d.ts +36 -0
  352. package/dist/src/core/configProvider/ConfigProvider.d.ts +13 -0
  353. package/dist/src/core/configProvider/configContext.d.ts +130 -0
  354. package/dist/src/core/configProvider/defaultConfig.d.ts +61 -0
  355. package/dist/src/core/configProvider/useApolloClientFromConfig.d.ts +1 -0
  356. package/dist/src/core/configProvider/useConfig.d.ts +2 -0
  357. package/dist/src/core/configProvider/useEventsApolloClientFromConfig.d.ts +1 -0
  358. package/dist/src/core/configProvider/useHeadlessCmsLink.d.ts +2 -0
  359. package/dist/src/core/configProvider/useVenuesApolloClientFromConfig.d.ts +1 -0
  360. package/dist/src/core/contentContainer/ContentContainer.d.ts +12 -0
  361. package/dist/src/core/contentContainer/ContentContainer.stories.d.ts +8 -0
  362. package/dist/src/core/hero/Hero.d.ts +33 -0
  363. package/dist/src/core/hero/Hero.stories.d.ts +23 -0
  364. package/dist/src/core/hooks/useResolveImageUrl.d.ts +6 -0
  365. package/dist/src/core/image/BackgroundImage.d.ts +20 -0
  366. package/dist/src/core/image/Image.d.ts +24 -0
  367. package/dist/src/core/image/__tests__/BackgroundImage.test.d.ts +1 -0
  368. package/dist/src/core/image/__tests__/Image.test.d.ts +1 -0
  369. package/dist/src/core/imageGallery/ImageGallery.d.ts +25 -0
  370. package/dist/src/core/imageGallery/ImageGalleryContext.d.ts +32 -0
  371. package/dist/src/core/imageGallery/ImageGalleryProvider.d.ts +10 -0
  372. package/dist/src/core/imageGallery/ImageItem.d.ts +26 -0
  373. package/dist/src/core/imageGallery/ImagesGrid.d.ts +26 -0
  374. package/dist/src/core/imageGallery/Lightbox.d.ts +24 -0
  375. package/dist/src/core/imageGallery/types.d.ts +6 -0
  376. package/dist/src/core/imageGallery/useImageGalleryContext.d.ts +1 -0
  377. package/dist/src/core/index.d.ts +43 -0
  378. package/dist/src/core/language/__tests__/languageSorter.test.d.ts +1 -0
  379. package/dist/src/core/language/constants.d.ts +6 -0
  380. package/dist/src/core/language/findLanguage.d.ts +10 -0
  381. package/dist/src/core/language/index.d.ts +6 -0
  382. package/dist/src/core/language/languageSorter.d.ts +4 -0
  383. package/dist/src/core/language/toPrimaryLanguageOption.d.ts +5 -0
  384. package/dist/src/core/language/typeGuards.d.ts +3 -0
  385. package/dist/src/core/language/types.d.ts +5 -0
  386. package/dist/src/core/link/Link.d.ts +44 -0
  387. package/dist/src/core/link/Link.stories.d.ts +33 -0
  388. package/dist/src/core/link/LinkBase.d.ts +106 -0
  389. package/dist/src/core/link/SecondaryLink.d.ts +3 -0
  390. package/dist/src/core/link/__tests__/Link.test.d.ts +1 -0
  391. package/dist/src/core/linkBox/Link.stories.d.ts +23 -0
  392. package/dist/src/core/linkBox/LinkBox.d.ts +20 -0
  393. package/dist/src/core/navigation/Navigation.d.ts +15 -0
  394. package/dist/src/core/notification/Notification.d.ts +9 -0
  395. package/dist/src/core/notification/__tests__/Notification.test.d.ts +1 -0
  396. package/dist/src/core/notification/utils/getIsNotificationActive.d.ts +2 -0
  397. package/dist/src/core/notification/utils/getNotificationHash.d.ts +2 -0
  398. package/dist/src/core/page/Page.d.ts +9 -0
  399. package/dist/src/core/page/Page.stories.d.ts +40 -0
  400. package/dist/src/core/pageContent/PageContent.d.ts +11 -0
  401. package/dist/src/core/pageContent/PageContent.stories.d.ts +1146 -0
  402. package/dist/src/core/pageContent/PageContentBreadcrumb.d.ts +5 -0
  403. package/dist/src/core/pageContent/PageContentLayout.d.ts +16 -0
  404. package/dist/src/core/pageContent/PageMainContent.d.ts +11 -0
  405. package/dist/src/core/pageContent/__tests__/Page.test.d.ts +1 -0
  406. package/dist/src/core/pageContent/meta/PageMeta.d.ts +9 -0
  407. package/dist/src/core/pageContent/sidebarContent/SidebarCardsList.d.ts +5 -0
  408. package/dist/src/core/pageContent/sidebarContent/SidebarContent.d.ts +15 -0
  409. package/dist/src/core/pageContent/sidebarContent/SidebarContentCard.d.ts +12 -0
  410. package/dist/src/core/pageContent/sidebarContent/SidebarContentLinkList.d.ts +5 -0
  411. package/dist/src/core/pageContent/sidebarContent/SidebarPostListItem.d.ts +8 -0
  412. package/dist/src/core/pageContent/sidebarContent/__tests__/SidebarContent.test.d.ts +1 -0
  413. package/dist/src/core/pageContent/types.d.ts +36 -0
  414. package/dist/src/core/pageContent/utils.d.ts +28 -0
  415. package/dist/src/core/pageContextProvider/PageContext.d.ts +6 -0
  416. package/dist/src/core/pageContextProvider/PageContextProvider.d.ts +6 -0
  417. package/dist/src/core/pageContextProvider/__tests__/PageContextProvider.test.d.ts +1 -0
  418. package/dist/src/core/pageContextProvider/usePageContext.d.ts +1 -0
  419. package/dist/src/core/pageModules/CardModule/CardModule.d.ts +3 -0
  420. package/dist/src/core/pageModules/CardModule/CardModule.stories.d.ts +7 -0
  421. package/dist/src/core/pageModules/CardsModule/CardsModule.d.ts +17 -0
  422. package/dist/src/core/pageModules/CardsModule/CardsModule.stories.d.ts +7 -0
  423. package/dist/src/core/pageModules/CardsModule/Icon.d.ts +6 -0
  424. package/dist/src/core/pageModules/CardsModule/SimpleCard.d.ts +13 -0
  425. package/dist/src/core/pageModules/ContentModule/ContentModule.d.ts +7 -0
  426. package/dist/src/core/pageModules/ContentModule/ContentModule.stories.d.ts +7 -0
  427. package/dist/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.d.ts +3 -0
  428. package/dist/src/core/pageModules/ImageGalleryModule/ImageGalleryModule.stories.d.ts +7 -0
  429. package/dist/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.d.ts +7 -0
  430. package/dist/src/core/pageModules/SocialMediaFeedModule/SocialMediaFeedModule.stories.d.ts +7 -0
  431. package/dist/src/core/pageModules/StepsModule/StepsModule.d.ts +14 -0
  432. package/dist/src/core/pageModules/StepsModule/StepsModule.stories.d.ts +7 -0
  433. package/dist/src/core/pageModules/constants.d.ts +1 -0
  434. package/dist/src/core/pageSection/PageSection.d.ts +32 -0
  435. package/dist/src/core/pageSection/PageSection.stories.d.ts +7 -0
  436. package/dist/src/core/pageSection/__tests__/PageSection.test.d.ts +1 -0
  437. package/dist/src/core/storyContainer/StoryContainer.d.ts +6 -0
  438. package/dist/src/core/translation/__tests__/getTranslationWithFallback.test.d.ts +1 -0
  439. package/dist/src/core/translation/constants.d.ts +12 -0
  440. package/dist/src/core/translation/getTranslationWithFallback.d.ts +4 -0
  441. package/dist/src/core/translation/types.d.ts +8 -0
  442. package/dist/src/core/translation/useTranslationWithFallback.d.ts +4 -0
  443. package/dist/src/core/utils/__tests__/findAllElementsOfType.test.d.ts +1 -0
  444. package/dist/src/core/utils/__tests__/getChildrenByType.test.d.ts +1 -0
  445. package/dist/src/core/utils/__tests__/recursiveMap.test.d.ts +1 -0
  446. package/dist/src/core/utils/createHashKey.d.ts +1 -0
  447. package/dist/src/core/utils/findAllElementsOfType.d.ts +5 -0
  448. package/dist/src/core/utils/getChildrenByType.d.ts +18 -0
  449. package/dist/src/core/utils/isTrustedOrigin.d.ts +1 -0
  450. package/dist/src/core/utils/recursiveMap.d.ts +15 -0
  451. package/dist/src/core/utils/string.d.ts +27 -0
  452. package/dist/src/core/utils/validateTrustedOriginsFormat.d.ts +1 -0
  453. package/dist/src/linkedEvents/utils/normalizeKey.d.ts +10 -0
  454. package/dist/src/linkedEvents/utils/normalizeKeys.d.ts +28 -0
  455. package/dist/src/mocks/handlers.d.ts +1 -0
  456. package/dist/src/mocks/queries/cms/languages.d.ts +1 -0
  457. package/dist/src/mocks/queries/cms/menu.d.ts +1 -0
  458. package/dist/src/mocks/queries/cms/notification.d.ts +1 -0
  459. package/dist/src/mocks/queries/cms/page.d.ts +1 -0
  460. package/dist/src/mocks/queries/linkedEvents/eventList.d.ts +242 -0
  461. package/dist/src/mocks/queries/linkedEvents/eventsByIds.d.ts +224 -0
  462. package/dist/src/mocks/responses/linkedEvents/eventMocks.d.ts +1112 -0
  463. package/dist/src/mocks/server.d.ts +1 -0
  464. package/dist/src/nextjs/getLanguageStaticProps.d.ts +3 -0
  465. package/dist/src/nextjs/getMenuStaticProps.d.ts +7 -0
  466. package/dist/src/nextjs/getPageStaticProps.d.ts +7 -0
  467. package/dist/src/nextjs/index.d.ts +3 -0
  468. package/dist/src/storybook-common/HelmetWrapper.d.ts +4 -0
  469. package/dist/src/storybook-common/constants.d.ts +9 -0
  470. package/dist/src/storybook-common/useCmsEndpointConfig.d.ts +3 -0
  471. package/dist/src/tests/apolloConfig.d.ts +2 -0
  472. package/dist/src/tests/hideConsoleMessages.d.ts +11 -0
  473. package/package.json +2 -2
@@ -0,0 +1,182 @@
1
+ {
2
+ "name": "@city-of-helsinki/react-helsinki-headless-cms",
3
+ "version": "3.0.0",
4
+ "description": "React components for displaying Headless CMS content according to guidelines set by HDS",
5
+ "main": "cjs/index.js",
6
+ "module": "index.js",
7
+ "types": "index.d.ts",
8
+ "scripts": {
9
+ "prepare": "husky",
10
+ "dev": "yarn storybook",
11
+ "dev:no-open": "yarn storybook --no-open",
12
+ "typecheck": "tsc --project ./tsconfig.json --noEmit",
13
+ "lint": "yarn eslint src && yarn prettier ./src -c",
14
+ "lint-fix": "yarn eslint src --fix && yarn prettier ./src -w",
15
+ "test": "jest",
16
+ "test:staged": "jest --findRelatedTests --passWithNoTests",
17
+ "test-storybook": "test-storybook",
18
+ "test:coverage": "jest --coverage",
19
+ "build": "rollup -c --bundleConfigAsCjs",
20
+ "docker:dev": "cross-env DOCKER_TARGET=development docker compose up",
21
+ "docker:prod": "cross-env DOCKER_TARGET=production docker compose up",
22
+ "docker:down": "docker compose down --remove-orphans",
23
+ "storybook": "storybook dev -p 6006",
24
+ "build-storybook": "storybook build",
25
+ "generate:graphql": "cross-env DOTENV_CONFIG_PATH=./.env graphql-codegen -r dotenv/config --config codegen.yml"
26
+ },
27
+ "engines": {
28
+ "node": ">=22.11.0"
29
+ },
30
+ "files": [
31
+ "dist/"
32
+ ],
33
+ "exports": {
34
+ ".": {
35
+ "import": "./dist/index.js",
36
+ "default": "./dist/cjs/index.js"
37
+ },
38
+ "./apollo": {
39
+ "import": "./dist/apollo.js",
40
+ "default": "./dist/cjs/apollo.js"
41
+ },
42
+ "./nextjs": {
43
+ "import": "./dist/nextjs.js",
44
+ "default": "./dist/cjs/nextjs.js"
45
+ }
46
+ },
47
+ "repository": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms.git",
48
+ "license": "MIT",
49
+ "bugs": {
50
+ "url": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms/issues"
51
+ },
52
+ "homepage": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms#readme",
53
+ "peerDependencies": {
54
+ "@apollo/client": "^3.14.0",
55
+ "hds-react": ">=4.8.1",
56
+ "react": "^18",
57
+ "react-dom": "^18"
58
+ },
59
+ "peerDependenciesMeta": {
60
+ "@apollo/client": {
61
+ "optional": true
62
+ }
63
+ },
64
+ "//": {
65
+ "Why are packages in resolutions?": {
66
+ "hds-react/cookie": [
67
+ "To fix https://github.com/City-of-Helsinki/react-helsinki-headless-cms/security/dependabot/28",
68
+ "NOTE: This can be removed if hds-react starts to depend on >=v1 cookie"
69
+ ]
70
+ }
71
+ },
72
+ "resolutions": {
73
+ "hds-react/cookie": "^0.7.2"
74
+ },
75
+ "devDependencies": {
76
+ "@apollo/client": "^3.14.0",
77
+ "@babel/core": "^7.28.5",
78
+ "@babel/plugin-transform-runtime": "^7.28.5",
79
+ "@babel/preset-env": "^7.28.5",
80
+ "@babel/preset-react": "^7.28.5",
81
+ "@babel/preset-typescript": "^7.28.5",
82
+ "@chromatic-com/storybook": "^4.1.3",
83
+ "@commitlint/cli": "^20.2.0",
84
+ "@commitlint/config-conventional": "^20.2.0",
85
+ "@eslint/js": "^9.39.2",
86
+ "@graphql-codegen/cli": "^5.0.7",
87
+ "@graphql-codegen/typescript": "^4.1.6",
88
+ "@graphql-codegen/typescript-operations": "^4.6.1",
89
+ "@graphql-codegen/typescript-react-apollo": "^4.3.3",
90
+ "@rollup/plugin-babel": "^6.1.0",
91
+ "@rollup/plugin-commonjs": "^28.0.9",
92
+ "@rollup/plugin-json": "^6.1.0",
93
+ "@rollup/plugin-node-resolve": "^15.3.1",
94
+ "@storybook/addon-a11y": "^10.1.6",
95
+ "@storybook/addon-docs": "^10.1.6",
96
+ "@storybook/addon-links": "^10.1.6",
97
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
98
+ "@storybook/preset-scss": "^1.0.3",
99
+ "@storybook/react-webpack5": "^10.1.6",
100
+ "@storybook/test-runner": "^0.24.2",
101
+ "@stylistic/eslint-plugin": "^5.6.1",
102
+ "@testing-library/dom": "^10.4.1",
103
+ "@testing-library/jest-dom": "^6.9.1",
104
+ "@testing-library/react": "^16.3.0",
105
+ "@testing-library/user-event": "^14.6.1",
106
+ "@types/jest": "^29.5.14",
107
+ "@types/jest-axe": "^3.5.9",
108
+ "@types/lodash-es": "^4.17.12",
109
+ "@types/react": "^18.3.27",
110
+ "@types/react-dom": "18.3.7",
111
+ "axe-playwright": "^2.2.2",
112
+ "babel-jest": "^30.2.0",
113
+ "babel-loader": "^9.2.1",
114
+ "cross-env": "^7.0.3",
115
+ "crypto-browserify": "^3.12.1",
116
+ "css-loader": "^6.11.0",
117
+ "edit-json-file": "^1.8.1",
118
+ "eslint": "^9.39.2",
119
+ "eslint-import-resolver-typescript": "^4.4.4",
120
+ "eslint-plugin-import": "^2.32.0",
121
+ "eslint-plugin-jsx-a11y": "^6.10.2",
122
+ "eslint-plugin-prettier": "^5.5.4",
123
+ "eslint-plugin-react": "^7.37.5",
124
+ "eslint-plugin-react-hooks": "^7.0.1",
125
+ "git-rev-sync": "^3.0.2",
126
+ "globals": "^16.5.0",
127
+ "graphql": "^16.12.0",
128
+ "hds-react": "4.8.1",
129
+ "husky": "^9.1.7",
130
+ "identity-obj-proxy": "^3.0.0",
131
+ "jest": "^29.7.0",
132
+ "jest-axe": "^9.0.0",
133
+ "jest-fetch-mock": "^3.0.3",
134
+ "lint-staged": "^16.2.7",
135
+ "msw-storybook-addon": "^2.0.6",
136
+ "postcss": "^8.5.6",
137
+ "postcss-scss": "^4.0.9",
138
+ "prettier": "3.7.4",
139
+ "react": "^18.3.1",
140
+ "react-dom": "^18.3.1",
141
+ "react-helmet-async": "^2.0.5",
142
+ "rollup": "^4.53.3",
143
+ "rollup-plugin-copy": "^3.5.0",
144
+ "rollup-plugin-delete": "^2.2.0",
145
+ "rollup-plugin-dts": "^6.3.0",
146
+ "rollup-plugin-includepaths": "^0.2.4",
147
+ "rollup-plugin-polyfill-node": "^0.13.0",
148
+ "rollup-plugin-postcss": "^4.0.2",
149
+ "rollup-plugin-typescript2": "^0.36.0",
150
+ "sass": "^1.95.1",
151
+ "sass-loader": "^13.3.3",
152
+ "storybook": "^10.1.6",
153
+ "style-loader": "^4.0.0",
154
+ "tslib": "^2.8.1",
155
+ "typescript": "^5.9.3",
156
+ "typescript-eslint": "^8.49.0",
157
+ "webpack": "^5.103.0"
158
+ },
159
+ "dependencies": {
160
+ "classnames": "^2.5.1",
161
+ "date-fns": "^4.1.0",
162
+ "doctoc": "^2.2.1",
163
+ "hds-design-tokens": "^4.8.1",
164
+ "html-entities": "^2.6.0",
165
+ "html-react-parser": "^5.2.5",
166
+ "isomorphic-dompurify": "^2.34.0",
167
+ "jest-environment-jsdom": "^30.2.0",
168
+ "jest-fixed-jsdom": "^0.0.11",
169
+ "lodash-es": "^4.17.21",
170
+ "msw": "^2.12.4"
171
+ },
172
+ "msw": {
173
+ "workerDirectory": "public"
174
+ },
175
+ "lint-staged": {
176
+ "src/**/*.{js,jsx,ts,tsx,cjs,mjs}": [
177
+ "eslint --fix",
178
+ "prettier --write",
179
+ "yarn test:staged"
180
+ ]
181
+ }
182
+ }
@@ -0,0 +1,12 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import { Page } from './page/Page';
3
+ declare const _default: Meta<typeof Page>;
4
+ export default _default;
5
+ export declare const ExampleUsingKultusDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
6
+ uri?: string;
7
+ pageTemplate?: import("../core").TemplateEnum;
8
+ }>;
9
+ export declare const ExampleUsingKukkuuDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
10
+ uri?: string;
11
+ pageTemplate?: import("../core").TemplateEnum;
12
+ }>;
@@ -0,0 +1,24 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import { Page } from './page/Page';
3
+ declare const _default: Meta<typeof Page>;
4
+ export default _default;
5
+ export declare const ExampleUsingEventsDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
6
+ uri?: string;
7
+ pageTemplate?: import("../core").TemplateEnum;
8
+ }>;
9
+ export declare const ExampleUsingHobbiesDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
10
+ uri?: string;
11
+ pageTemplate?: import("../core").TemplateEnum;
12
+ }>;
13
+ export declare const ExampleUsingSportsDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
14
+ uri?: string;
15
+ pageTemplate?: import("../core").TemplateEnum;
16
+ }>;
17
+ export declare const ExampleUsingKultusDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
18
+ uri?: string;
19
+ pageTemplate?: import("../core").TemplateEnum;
20
+ }>;
21
+ export declare const ExampleUsingKukkuuDataSource: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../core").PageProps & {
22
+ uri?: string;
23
+ pageTemplate?: import("../core").TemplateEnum;
24
+ }>;
@@ -0,0 +1,17 @@
1
+ export { Navigation } from './navigation/Navigation';
2
+ export { Notification } from './notification/Notification';
3
+ export { Page } from './page/Page';
4
+ export { PageContent } from './pageContent/PageContent';
5
+ export { PageWithTemplateContent } from './pageWithTemplateContent/PageWithTemplateContent';
6
+ export * from '../common/headlessService/page';
7
+ export * from '../common/headlessService/pages';
8
+ export * from '../common/headlessService/article';
9
+ export * from '../common/headlessService/articles';
10
+ export * from '../common/headlessService/category';
11
+ export * from '../common/headlessService/categories';
12
+ export * from '../common/headlessService/tag';
13
+ export * from '../common/headlessService/tags';
14
+ export * from '../common/headlessService/landingPage';
15
+ export * from '../common/headlessService/pageByTemplate';
16
+ export * from '../common/headlessService/menu';
17
+ export * from '../common/headlessService/languages';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { NavigationProps as NavigationPropsWithoutData } from '../../core/navigation/Navigation';
3
+ export type NavigationProps = Omit<NavigationPropsWithoutData, 'menu' | 'languages' | 'getPathnameForLanguage'> & {
4
+ /**
5
+ * The name of the menu in Wordpress headless CMS.
6
+ */
7
+ menuName: string;
8
+ /**
9
+ * Gets language specific path for navigation item.
10
+ */
11
+ getPathnameForLanguage: NavigationPropsWithoutData['getPathnameForLanguage'];
12
+ };
13
+ export declare function Navigation({ menuName, getPathnameForLanguage, ...delegatedProps }: NavigationProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { NotificationProps } from '../../core/notification/Notification';
3
+ export type Props = Exclude<NotificationProps, 'notification'>;
4
+ export declare function Notification(props: Props): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ declare const _default: import("react").Provider<{
2
+ uri?: string;
3
+ template?: import("../../core").TemplateEnum;
4
+ }>;
5
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { TemplateEnum } from '../../core';
3
+ import type { PageProps as PagePropsWithoutData } from '../../core/page/Page';
4
+ export type PageProps = PagePropsWithoutData & {
5
+ /**
6
+ * Uri of the page.
7
+ */
8
+ uri?: string;
9
+ /**
10
+ * Page template value.
11
+ */
12
+ pageTemplate?: TemplateEnum;
13
+ };
14
+ export declare function Page({ uri, pageTemplate, ...delegatedProps }: PageProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { TemplateEnum } from '../../core';
2
+ type ApolloPageContext = {
3
+ /**
4
+ * Uri of the page.
5
+ */
6
+ uri?: string;
7
+ /**
8
+ * Page tyoe template.
9
+ */
10
+ template?: TemplateEnum;
11
+ };
12
+ declare const apolloPageContext: import("react").Context<ApolloPageContext>;
13
+ export default apolloPageContext;
@@ -0,0 +1,4 @@
1
+ export default function useApolloPageContext(): {
2
+ uri?: string;
3
+ template?: import("../../core").TemplateEnum;
4
+ };
@@ -0,0 +1,9 @@
1
+ import type { PageContentProps as PageContentPropsWithoutData } from '../../core/pageContent/types';
2
+ export type PageProps = Omit<PageContentPropsWithoutData, 'page'> & {
3
+ /**
4
+ * Page content if data not found or missing from cms.
5
+ */
6
+ notFoundPageContent?: JSX.Element;
7
+ [x: string]: any;
8
+ };
9
+ export declare function PageContent({ notFoundPageContent, ...delegatedProps }: PageProps): JSX.Element;
@@ -0,0 +1,14 @@
1
+ import type { PageContentProps as PageContentPropsWithoutData } from '../../core/pageContent/types';
2
+ import type { LanguageCodeEnum } from '../../core';
3
+ export type PageProps = Omit<PageContentPropsWithoutData, 'page'> & {
4
+ /**
5
+ * The language of the page.
6
+ */
7
+ language: LanguageCodeEnum;
8
+ /**
9
+ * Page content if data not found or missing from cms.
10
+ */
11
+ notFoundPageContent?: JSX.Element;
12
+ [x: string]: any;
13
+ };
14
+ export declare function PageWithTemplateContent({ language, notFoundPageContent, ...delegatedProps }: PageProps): JSX.Element;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ type ContainerProps = {
3
+ /**
4
+ * Additional children to render inside the container.
5
+ */
6
+ children: JSX.Element | string;
7
+ /**
8
+ * Optional wrapper element for the container.
9
+ */
10
+ wrapper?: JSX.Element;
11
+ };
12
+ export default function Container({ wrapper, children }: ContainerProps): React.JSX.Element;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export interface GridProps {
3
+ /**
4
+ * Additional children to render inside the grid.
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Number of grid columns.
9
+ */
10
+ colsCount?: number;
11
+ /**
12
+ * Additional classname for grid container.
13
+ */
14
+ className?: string;
15
+ }
16
+ export default function Grid({ colsCount, children, className, }: GridProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import Grid from './Grid';
3
+ declare const _default: Meta<typeof Grid>;
4
+ export default _default;
5
+ export declare const GridDefault: {
6
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Grid").GridProps>;
7
+ args: {};
8
+ };
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import type { Config } from 'isomorphic-dompurify';
3
+ export declare const TABLE_VARIANTS: readonly ["dark", "dense", "light", "with-vertical-lines", "zebra"];
4
+ export type TableVariant = (typeof TABLE_VARIANTS)[number];
5
+ export declare const DEFAULT_TABLE_VARIANTS: TableVariant[];
6
+ type Components = {
7
+ p?: React.ComponentType<{
8
+ children: React.ReactNode;
9
+ }>;
10
+ h2?: React.ComponentType<{
11
+ children: React.ReactNode;
12
+ }>;
13
+ a?: React.ComponentType<React.AnchorHTMLAttributes<HTMLAnchorElement>> | string;
14
+ table?: React.ComponentType<React.TableHTMLAttributes<HTMLTableElement>> | string;
15
+ tableVariants?: TableVariant[];
16
+ img?: React.ComponentType<React.ImgHTMLAttributes<HTMLImageElement>> | string;
17
+ iframe?: React.ComponentType<React.IframeHTMLAttributes<HTMLIFrameElement>>;
18
+ };
19
+ export type HtmlToReactProps = {
20
+ /**
21
+ * Additional children to render inside the grid.
22
+ */
23
+ children: string;
24
+ /**
25
+ * React components for custom html elements transformation.
26
+ */
27
+ components?: Components;
28
+ /**
29
+ * Option to allow unsafe tags, otherwise cleared and not rendered.
30
+ */
31
+ allowedUnsafeTags?: Config['ALLOWED_TAGS'];
32
+ /**
33
+ * Trusted origins for url properties and attributes, for elements such as iframes and scripts.
34
+ */
35
+ trustedOrigins?: string[];
36
+ };
37
+ export declare function HtmlToReact({ children: dirty, components, allowedUnsafeTags, trustedOrigins, }: HtmlToReactProps): React.JSX.Element;
38
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import type { HtmlToReactProps } from './HtmlToReact';
3
+ import { HtmlToReact } from './HtmlToReact';
4
+ declare const _default: Meta<typeof HtmlToReact>;
5
+ export default _default;
6
+ export declare const HtmlToReactMedia: {
7
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, HtmlToReactProps>;
8
+ args: {
9
+ children: string;
10
+ allowedUnsafeTags: string[];
11
+ trustedOrigins: string[];
12
+ };
13
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default function DefaultH2({ children }: {
3
+ children: React.ReactNode;
4
+ }): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export default function DefaultP({ children }: {
3
+ children: React.ReactNode;
4
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * An iframe HTML-element to securely render
4
+ * a sandboxed version of an embedded video media player, e.g. from the CMS.
5
+ * */
6
+ export default function IframeForEmbeddedMedia(props: React.PropsWithChildren<React.IframeHTMLAttributes<HTMLIFrameElement>>): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { default as DefaultH2 } from './DefaultH2';
2
+ export { default as DefaultP } from './DefaultP';
3
+ export { default as IframeForEmbeddedMedia } from './IframeForEmbeddedMedia';
@@ -0,0 +1,5 @@
1
+ export { IconAlertCircle, IconAlertCircleFill, IconAngleDown, IconAngleLeft, IconAngleRight, IconAngleUp, IconArrowBottomLeft, IconArrowBottomRight, IconArrowDown, IconArrowLeft, IconArrowRedo, IconArrowRight, IconArrowRightDashed, IconArrowTopLeft, IconArrowTopRight, IconArrowUndo, IconArrowUp, IconAtSign as IconGlyphAt, // @deprecated Use IconAtSign instead
2
+ IconAtSign, IconBagCogwheel, IconBell, IconBellCrossed, IconBinoculars, IconCake, IconCalendar, IconCalendarClock, IconCalendarCross, IconCalendarEvent as IconEvent, // @deprecated Use IconCalendarEvent instead
3
+ IconCalendarEvent, IconCalendarPlus, IconCalendarRecurring, IconCamera, IconCheck, IconCheckCircle, IconCheckCircleFill, IconChildren, IconClock, IconClockCross, IconClockPlus, IconCoffeeCupSaucer, IconCogwheel, IconCogwheels, IconCollapse, IconCompany, IconCopy, IconCross, IconCrossCircle, IconCrossCircleFill, IconCustomerBotNegative, IconCustomerBotNeutral, IconCustomerBotPositive, IconDiscord, IconDisplay, IconDocument, IconDownload, IconDownloadCloud, IconDrag, IconEntrepreneur, IconEnvelope, IconError, IconErrorFill, IconEuroSign as IconGlyphEuro, // @deprecated Use IconEuroSign instead
4
+ IconEuroSign, IconEye, IconEyeCrossed, IconFacebook, IconFaceNeutral, IconFaceSad, IconFaceSmile, IconFamily, IconGlobe, IconGoogle, IconGraphColumns, IconGroup, IconHammers, IconHeadphones, IconHeart, IconHeartFill, IconHistory, IconHome, IconHomeSmoke, IconInfoCircle, IconInfoCircleFill, IconInstagram, IconKey, IconLayers, IconLightbulb, IconLink, IconLinkedin, IconLinkExternal, IconLocate, IconLocation, IconLock, IconLockOpen, IconMap, IconMenuDots, IconMenuHamburger, IconMicrophone, IconMicrophoneCrossed, IconMinus, IconMinusCircle, IconMinusCircleFill, IconMobile, IconMoneyBag, IconMoneyBagFill, IconMover, IconOccupation, IconPaperclip, IconPen, IconPenLine, IconPersonFemale, IconPersonGenderless, IconPersonMale, IconPersonWheelchair, IconPhone, IconPhoto, IconPhotoPlus, IconPlaybackFastforward, IconPlaybackNext, IconPlaybackPause, IconPlaybackPlay, IconPlaybackPrevious, IconPlaybackRecord, IconPlaybackRewind, IconPlaybackStop, IconPlus, IconPlusCircle, IconPlusCircleFill, IconPodcast, IconPrinter, IconQuestionCircle, IconQuestionCircleFill, IconRefresh, IconRestaurant, IconRss, IconSaveDiskette, IconSaveDisketteFill, IconScroll, IconScrollCogwheel, IconScrollContent, IconScrollGroup, IconSearch, IconSenior, IconShare, IconShield, IconShoppingCart, IconSignin, IconSignout, IconSitemap, IconSliders, IconSnapchat, IconSort, IconSortAlphabeticalAscending, IconSortAlphabeticalDescending, IconSortAscending, IconSortDescending, IconSpeechbubble, IconSpeechbubbleText, IconStar, IconStarFill, IconSwapUser, IconTextBold, IconTextItalic, IconTextTool, IconThumbsDown, IconThumbsDownFill, IconThumbsUp, IconThumbsUpFill, IconTicket, IconTiktok, IconTrash, IconTraveler, IconTwitch, IconTwitter, IconUpload, IconUploadCloud, IconUser, IconVaccine, IconVideocamera, IconVideocameraCrossed, IconVimeo, IconVirus, IconVolumeHigh, IconVolumeLow, IconVolumeMinus, IconVolumeMute, IconVolumePlus, IconWhatsapp as IconWhatsApp, // @deprecated Use IconWhatsapp instead
5
+ IconWhatsapp, IconWifi, IconWifiCrossed, IconX, IconYle, IconYouth, IconYoutube, IconZoomIn, IconZoomOut, IconZoomText, } from 'hds-react';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ type ListProps = {
3
+ /**
4
+ * List item elements.
5
+ */
6
+ items?: (JSX.Element | JSX.Element[] | null | false)[];
7
+ /**
8
+ * List item variant options.
9
+ */
10
+ variant?: 'spacing-4-xs' | 'spacing-3-xs' | 'spacing-2-xs' | 'spacing-xs' | 'spacing-s' | 'spacing-m' | 'spacing-l' | 'spacing-xl' | 'spacing-2-xl' | 'spacing-3-xl' | 'spacing-4-xl' | 'spacing-5-xl' | 'spacing-layout-2-xs' | 'spacing-layout-xs' | 'spacing-layout-s' | 'spacing-layout-m' | 'spacing-layout-l' | 'spacing-layout-xl' | 'spacing-layout-2-xl';
11
+ };
12
+ export default function List({ items, variant }: ListProps): React.JSX.Element;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import List from './List';
3
+ declare const _default: Meta<typeof List>;
4
+ export default _default;
5
+ export declare const ListDefault: {
6
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
7
+ items?: (JSX.Element | JSX.Element[] | null | false)[];
8
+ variant?: "spacing-4-xs" | "spacing-3-xs" | "spacing-2-xs" | "spacing-xs" | "spacing-s" | "spacing-m" | "spacing-l" | "spacing-xl" | "spacing-2-xl" | "spacing-3-xl" | "spacing-4-xl" | "spacing-5-xl" | "spacing-layout-2-xs" | "spacing-layout-xs" | "spacing-layout-s" | "spacing-layout-m" | "spacing-layout-l" | "spacing-layout-xl" | "spacing-layout-2-xl";
9
+ }>;
10
+ args: {
11
+ items: string[];
12
+ };
13
+ };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import type { TagProps as HDSTagProps } from 'hds-react';
3
+ type Props = {
4
+ /**
5
+ * Boolean indicating whether the tag has a featured style variant.
6
+ */
7
+ featured?: boolean;
8
+ /**
9
+ * Boolean indicating whether the tag has a white-only style variant.
10
+ */
11
+ whiteOnly?: boolean;
12
+ /**
13
+ * Boolean indicating whether the tag has a selected style variant.
14
+ */
15
+ selected?: boolean;
16
+ /**
17
+ * White-space wrapping (Enabled by default in HDS v4, but disabled in this lib).
18
+ */
19
+ noTextWrap?: boolean;
20
+ /**
21
+ * onClick handler.
22
+ */
23
+ onClick?: () => void;
24
+ } & Pick<HDSTagProps, 'children' | 'className' | 'id' | 'role' | 'size'>;
25
+ export declare function Tag({ className, children, featured, selected, whiteOnly, noTextWrap, onClick, id, ...hdsTagProps }: Props): React.JSX.Element;
26
+ export {};
@@ -0,0 +1,80 @@
1
+ import type { Meta } from '@storybook/react-webpack5';
2
+ import { Tag } from './Tag';
3
+ declare const _default: Meta<typeof Tag>;
4
+ export default _default;
5
+ export declare const TagDefault: {
6
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
7
+ featured?: boolean;
8
+ whiteOnly?: boolean;
9
+ selected?: boolean;
10
+ noTextWrap?: boolean;
11
+ onClick?: () => void;
12
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
13
+ args: {
14
+ onClick: undefined;
15
+ };
16
+ };
17
+ export declare const TagFeatured: {
18
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
19
+ featured?: boolean;
20
+ whiteOnly?: boolean;
21
+ selected?: boolean;
22
+ noTextWrap?: boolean;
23
+ onClick?: () => void;
24
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
25
+ args: {
26
+ featured: boolean;
27
+ onClick: undefined;
28
+ };
29
+ };
30
+ export declare const TagSelected: {
31
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
32
+ featured?: boolean;
33
+ whiteOnly?: boolean;
34
+ selected?: boolean;
35
+ noTextWrap?: boolean;
36
+ onClick?: () => void;
37
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
38
+ args: {
39
+ selected: boolean;
40
+ onClick: undefined;
41
+ };
42
+ };
43
+ export declare const TagWhiteOnly: {
44
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
45
+ featured?: boolean;
46
+ whiteOnly?: boolean;
47
+ selected?: boolean;
48
+ noTextWrap?: boolean;
49
+ onClick?: () => void;
50
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
51
+ args: {
52
+ whiteOnly: boolean;
53
+ onClick: undefined;
54
+ };
55
+ };
56
+ export declare const TagNoTextWrap: {
57
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
58
+ featured?: boolean;
59
+ whiteOnly?: boolean;
60
+ selected?: boolean;
61
+ noTextWrap?: boolean;
62
+ onClick?: () => void;
63
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
64
+ args: {
65
+ noTextWrap: boolean;
66
+ onClick: undefined;
67
+ };
68
+ };
69
+ export declare const TagWithOnclickHandler: {
70
+ render: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
71
+ featured?: boolean;
72
+ whiteOnly?: boolean;
73
+ selected?: boolean;
74
+ noTextWrap?: boolean;
75
+ onClick?: () => void;
76
+ } & Pick<import("hds-react").TagProps, "id" | "children" | "className" | "role" | "size">>;
77
+ args: {
78
+ onClick: () => void;
79
+ };
80
+ };
@@ -0,0 +1,3 @@
1
+ import type { TagTheme } from 'hds-react';
2
+ export declare const theme1: TagTheme;
3
+ export declare const theme2: TagTheme;
@@ -0,0 +1,27 @@
1
+ import type { ReactNode, HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'body' | 'body-l' | 'body-xl';
4
+ type TextVariantProps = {
5
+ /**
6
+ * The render html element type for the text.
7
+ */
8
+ as?: string | React.ComponentType<HTMLAttributes<HTMLElement>>;
9
+ /**
10
+ * Text variant option.
11
+ */
12
+ variant?: TextVariant;
13
+ /**
14
+ * Additional classname for the text.
15
+ */
16
+ children: ReactNode;
17
+ /**
18
+ * Additional classname for the text.
19
+ */
20
+ className?: string;
21
+ /**
22
+ * Deprecated
23
+ */
24
+ role?: string;
25
+ };
26
+ declare function Text({ as: elementType, variant, children, className, ...rest }: TextVariantProps): React.ReactElement<HTMLAttributes<HTMLElement>, string | React.JSXElementConstructor<any>>;
27
+ export default Text;