@blateral/b.kit 2.3.0-beta.1.4 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (833) hide show
  1. package/lib/components/base/icons/Icons.d.ts +66 -0
  2. package/lib/components/base/icons/Icons.d.ts.map +1 -0
  3. package/{types → lib}/components/fields/FilterField.d.ts.map +1 -1
  4. package/lib/components/sections/NumberList.d.ts +36 -0
  5. package/lib/components/sections/NumberList.d.ts.map +1 -0
  6. package/{types → lib}/components/sections/header/Header.d.ts +3 -3
  7. package/lib/components/sections/header/Header.d.ts.map +1 -0
  8. package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
  9. package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
  10. package/{types → lib}/components/typography/Callout.d.ts +2 -2
  11. package/lib/components/typography/Callout.d.ts.map +1 -0
  12. package/lib/index.d.ts +158 -0
  13. package/lib/index.d.ts.map +1 -0
  14. package/lib/index.es.js +2 -0
  15. package/lib/index.es.js.map +1 -0
  16. package/lib/index.js +2 -0
  17. package/lib/index.js.map +1 -0
  18. package/{types → lib}/utils/styles.d.ts +8 -1
  19. package/lib/utils/styles.d.ts.map +1 -0
  20. package/{types → lib}/utils/useEqualSheetHeight.d.ts +9 -2
  21. package/lib/utils/useEqualSheetHeight.d.ts.map +1 -0
  22. package/{types → lib}/utils/useMediaQuery.d.ts +4 -0
  23. package/{types → lib}/utils/useMediaQuery.d.ts.map +1 -1
  24. package/package.json +5 -19
  25. package/base/package.json +0 -7
  26. package/blocks/package.json +0 -7
  27. package/buttons/package.json +0 -7
  28. package/cjs/Actions-6dd616e0.js +0 -2
  29. package/cjs/Actions-6dd616e0.js.map +0 -1
  30. package/cjs/Bdot-d898ba3b.js +0 -2
  31. package/cjs/Bdot-d898ba3b.js.map +0 -1
  32. package/cjs/Button-72747f63.js +0 -2
  33. package/cjs/Button-72747f63.js.map +0 -1
  34. package/cjs/ButtonGhost-046437c5.js +0 -2
  35. package/cjs/ButtonGhost-046437c5.js.map +0 -1
  36. package/cjs/Callout-2713f870.js +0 -2
  37. package/cjs/Callout-2713f870.js.map +0 -1
  38. package/cjs/Checkbox-14000bf0.js +0 -2
  39. package/cjs/Checkbox-14000bf0.js.map +0 -1
  40. package/cjs/ClockFilled-2483aa4a.js +0 -2
  41. package/cjs/ClockFilled-2483aa4a.js.map +0 -1
  42. package/cjs/Control-eead1a4c.js +0 -2
  43. package/cjs/Control-eead1a4c.js.map +0 -1
  44. package/cjs/Copy-e860efe7.js +0 -2
  45. package/cjs/Copy-e860efe7.js.map +0 -1
  46. package/cjs/EventBlock-10b9d78d.js +0 -2
  47. package/cjs/EventBlock-10b9d78d.js.map +0 -1
  48. package/cjs/FileUpload-ece8bb07.js +0 -2
  49. package/cjs/FileUpload-ece8bb07.js.map +0 -1
  50. package/cjs/Filter-d6d90b8b.js +0 -2
  51. package/cjs/Filter-d6d90b8b.js.map +0 -1
  52. package/cjs/FilterField-cf9e2f16.js +0 -2
  53. package/cjs/FilterField-cf9e2f16.js.map +0 -1
  54. package/cjs/Grid-39b12e21.js +0 -2
  55. package/cjs/Grid-39b12e21.js.map +0 -1
  56. package/cjs/Image-d9681be0.js +0 -2
  57. package/cjs/Image-d9681be0.js.map +0 -1
  58. package/cjs/InfoList-577f3c57.js +0 -2
  59. package/cjs/InfoList-577f3c57.js.map +0 -1
  60. package/cjs/LanguageSwitcher-47e25e95.js +0 -2
  61. package/cjs/LanguageSwitcher-47e25e95.js.map +0 -1
  62. package/cjs/LibThemeProvider-fb99fd6d.js +0 -2
  63. package/cjs/LibThemeProvider-fb99fd6d.js.map +0 -1
  64. package/cjs/Link-70143bb7.js +0 -2
  65. package/cjs/Link-70143bb7.js.map +0 -1
  66. package/cjs/Navigation-3f5d6088.js +0 -2
  67. package/cjs/Navigation-3f5d6088.js.map +0 -1
  68. package/cjs/POICard-492bf8d0.js +0 -2
  69. package/cjs/POICard-492bf8d0.js.map +0 -1
  70. package/cjs/Pointer-3588eadf.js +0 -2
  71. package/cjs/Pointer-3588eadf.js.map +0 -1
  72. package/cjs/SocialList-da77e994.js +0 -2
  73. package/cjs/SocialList-da77e994.js.map +0 -1
  74. package/cjs/TableBlock-a5b16e8f.js +0 -2
  75. package/cjs/TableBlock-a5b16e8f.js.map +0 -1
  76. package/cjs/Tag-5c72cc0d.js +0 -2
  77. package/cjs/Tag-5c72cc0d.js.map +0 -1
  78. package/cjs/VideoBlock-301997a9.js +0 -2
  79. package/cjs/VideoBlock-301997a9.js.map +0 -1
  80. package/cjs/VideoCard-405b518a.js +0 -2
  81. package/cjs/VideoCard-405b518a.js.map +0 -1
  82. package/cjs/Wrapper-91748bdb.js +0 -2
  83. package/cjs/Wrapper-91748bdb.js.map +0 -1
  84. package/cjs/arrays-c272ed59.js +0 -2
  85. package/cjs/arrays-c272ed59.js.map +0 -1
  86. package/cjs/base.js +0 -2
  87. package/cjs/base.js.map +0 -1
  88. package/cjs/blocks.js +0 -2
  89. package/cjs/blocks.js.map +0 -1
  90. package/cjs/buttons.js +0 -2
  91. package/cjs/buttons.js.map +0 -1
  92. package/cjs/clamp-bd21d587.js +0 -2
  93. package/cjs/clamp-bd21d587.js.map +0 -1
  94. package/cjs/concat-f387d848.js +0 -2
  95. package/cjs/concat-f387d848.js.map +0 -1
  96. package/cjs/cookies.js +0 -2
  97. package/cjs/cookies.js.map +0 -1
  98. package/cjs/escape-1ef8dd83.js +0 -2
  99. package/cjs/escape-1ef8dd83.js.map +0 -1
  100. package/cjs/fields.js +0 -2
  101. package/cjs/fields.js.map +0 -1
  102. package/cjs/footer.js +0 -2
  103. package/cjs/footer.js.map +0 -1
  104. package/cjs/hexRgbConverter-91b28aea.js +0 -2
  105. package/cjs/hexRgbConverter-91b28aea.js.map +0 -1
  106. package/cjs/hooks.js +0 -2
  107. package/cjs/hooks.js.map +0 -1
  108. package/cjs/icons.js +0 -2
  109. package/cjs/icons.js.map +0 -1
  110. package/cjs/index.js +0 -2
  111. package/cjs/index.js.map +0 -1
  112. package/cjs/navigation-bf154e6e.js +0 -2
  113. package/cjs/navigation-bf154e6e.js.map +0 -1
  114. package/cjs/navigation.js +0 -2
  115. package/cjs/navigation.js.map +0 -1
  116. package/cjs/sections.js +0 -2
  117. package/cjs/sections.js.map +0 -1
  118. package/cjs/sections_events.js +0 -2
  119. package/cjs/sections_events.js.map +0 -1
  120. package/cjs/sections_forms.js +0 -2
  121. package/cjs/sections_forms.js.map +0 -1
  122. package/cjs/sections_jobs.js +0 -2
  123. package/cjs/sections_jobs.js.map +0 -1
  124. package/cjs/sections_news.js +0 -2
  125. package/cjs/sections_news.js.map +0 -1
  126. package/cjs/sections_pois.js +0 -2
  127. package/cjs/sections_pois.js.map +0 -1
  128. package/cjs/statusFormatter-0393122b.js +0 -2
  129. package/cjs/statusFormatter-0393122b.js.map +0 -1
  130. package/cjs/structuredData-0b1278a9.js +0 -2
  131. package/cjs/structuredData-0b1278a9.js.map +0 -1
  132. package/cjs/styles-0f1a0aea.js +0 -2
  133. package/cjs/styles-0f1a0aea.js.map +0 -1
  134. package/cjs/typography.js +0 -2
  135. package/cjs/typography.js.map +0 -1
  136. package/cjs/urlParams-7525f638.js +0 -2
  137. package/cjs/urlParams-7525f638.js.map +0 -1
  138. package/cjs/useCookieConsent-0bf94751.js +0 -2
  139. package/cjs/useCookieConsent-0bf94751.js.map +0 -1
  140. package/cjs/useEqualSheetHeight-cfd4176e.js +0 -2
  141. package/cjs/useEqualSheetHeight-cfd4176e.js.map +0 -1
  142. package/cjs/useGeolocation-d8946470.js +0 -2
  143. package/cjs/useGeolocation-d8946470.js.map +0 -1
  144. package/cjs/useIE-aef9decc.js +0 -2
  145. package/cjs/useIE-aef9decc.js.map +0 -1
  146. package/cjs/useLazyInput-f71c221b.js +0 -2
  147. package/cjs/useLazyInput-f71c221b.js.map +0 -1
  148. package/cjs/useLeafletMap-2e608b01.js +0 -2
  149. package/cjs/useLeafletMap-2e608b01.js.map +0 -1
  150. package/cjs/useMediaQuery-d4f81f88.js +0 -2
  151. package/cjs/useMediaQuery-d4f81f88.js.map +0 -1
  152. package/cjs/useMounted-0bba9869.js +0 -2
  153. package/cjs/useMounted-0bba9869.js.map +0 -1
  154. package/cjs/useObserverSupport-5ab320dd.js +0 -2
  155. package/cjs/useObserverSupport-5ab320dd.js.map +0 -1
  156. package/cjs/useScrollTo-fdd665da.js +0 -2
  157. package/cjs/useScrollTo-fdd665da.js.map +0 -1
  158. package/cjs/useUpdateEffect-4d233e2c.js +0 -2
  159. package/cjs/useUpdateEffect-4d233e2c.js.map +0 -1
  160. package/cookies/package.json +0 -7
  161. package/esm/Actions-3f06c2e9.js +0 -57
  162. package/esm/Actions-3f06c2e9.js.map +0 -1
  163. package/esm/Bdot-fae262fc.js +0 -24
  164. package/esm/Bdot-fae262fc.js.map +0 -1
  165. package/esm/Button-ab1a4e79.js +0 -115
  166. package/esm/Button-ab1a4e79.js.map +0 -1
  167. package/esm/ButtonGhost-5b498dba.js +0 -112
  168. package/esm/ButtonGhost-5b498dba.js.map +0 -1
  169. package/esm/Callout-389fed95.js +0 -99
  170. package/esm/Callout-389fed95.js.map +0 -1
  171. package/esm/Checkbox-957d8f33.js +0 -135
  172. package/esm/Checkbox-957d8f33.js.map +0 -1
  173. package/esm/ClockFilled-6bae80dc.js +0 -1793
  174. package/esm/ClockFilled-6bae80dc.js.map +0 -1
  175. package/esm/Control-57a287dc.js +0 -52
  176. package/esm/Control-57a287dc.js.map +0 -1
  177. package/esm/Copy-fb124972.js +0 -270
  178. package/esm/Copy-fb124972.js.map +0 -1
  179. package/esm/EventBlock-0109da13.js +0 -132
  180. package/esm/EventBlock-0109da13.js.map +0 -1
  181. package/esm/FileUpload-4ba0a672.js +0 -4790
  182. package/esm/FileUpload-4ba0a672.js.map +0 -1
  183. package/esm/Filter-fec6dc5c.js +0 -32
  184. package/esm/Filter-fec6dc5c.js.map +0 -1
  185. package/esm/FilterField-03097694.js +0 -129
  186. package/esm/FilterField-03097694.js.map +0 -1
  187. package/esm/Grid-151498da.js +0 -203
  188. package/esm/Grid-151498da.js.map +0 -1
  189. package/esm/Image-b538f659.js +0 -193
  190. package/esm/Image-b538f659.js.map +0 -1
  191. package/esm/InfoList-616d17fd.js +0 -74
  192. package/esm/InfoList-616d17fd.js.map +0 -1
  193. package/esm/LanguageSwitcher-058e0145.js +0 -70
  194. package/esm/LanguageSwitcher-058e0145.js.map +0 -1
  195. package/esm/LibThemeProvider-a38c5bf1.js +0 -115
  196. package/esm/LibThemeProvider-a38c5bf1.js.map +0 -1
  197. package/esm/Link-0a1e35d6.js +0 -60
  198. package/esm/Link-0a1e35d6.js.map +0 -1
  199. package/esm/Navigation-13dce48c.js +0 -1664
  200. package/esm/Navigation-13dce48c.js.map +0 -1
  201. package/esm/POICard-392a2c3a.js +0 -116
  202. package/esm/POICard-392a2c3a.js.map +0 -1
  203. package/esm/Pointer-bc68154f.js +0 -111
  204. package/esm/Pointer-bc68154f.js.map +0 -1
  205. package/esm/SocialList-4396cad9.js +0 -61
  206. package/esm/SocialList-4396cad9.js.map +0 -1
  207. package/esm/TableBlock-26530c71.js +0 -159
  208. package/esm/TableBlock-26530c71.js.map +0 -1
  209. package/esm/Tag-72424779.js +0 -67
  210. package/esm/Tag-72424779.js.map +0 -1
  211. package/esm/VideoBlock-b3f4ae27.js +0 -624
  212. package/esm/VideoBlock-b3f4ae27.js.map +0 -1
  213. package/esm/VideoCard-3fd368ef.js +0 -160
  214. package/esm/VideoCard-3fd368ef.js.map +0 -1
  215. package/esm/Wrapper-29347885.js +0 -224
  216. package/esm/Wrapper-29347885.js.map +0 -1
  217. package/esm/arrays-65b644ef.js +0 -17
  218. package/esm/arrays-65b644ef.js.map +0 -1
  219. package/esm/base.js +0 -11
  220. package/esm/base.js.map +0 -1
  221. package/esm/blocks.js +0 -26
  222. package/esm/blocks.js.map +0 -1
  223. package/esm/buttons.js +0 -12
  224. package/esm/buttons.js.map +0 -1
  225. package/esm/clamp-12d37b65.js +0 -10
  226. package/esm/clamp-12d37b65.js.map +0 -1
  227. package/esm/concat-ab3c66f2.js +0 -40
  228. package/esm/concat-ab3c66f2.js.map +0 -1
  229. package/esm/cookies.js +0 -270
  230. package/esm/cookies.js.map +0 -1
  231. package/esm/escape-cbff9c25.js +0 -6
  232. package/esm/escape-cbff9c25.js.map +0 -1
  233. package/esm/fields.js +0 -190
  234. package/esm/fields.js.map +0 -1
  235. package/esm/footer.js +0 -301
  236. package/esm/footer.js.map +0 -1
  237. package/esm/hexRgbConverter-edb91624.js +0 -36
  238. package/esm/hexRgbConverter-edb91624.js.map +0 -1
  239. package/esm/hooks.js +0 -531
  240. package/esm/hooks.js.map +0 -1
  241. package/esm/icons.js +0 -4
  242. package/esm/icons.js.map +0 -1
  243. package/esm/index.js +0 -7
  244. package/esm/index.js.map +0 -1
  245. package/esm/navigation-a2998143.js +0 -132
  246. package/esm/navigation-a2998143.js.map +0 -1
  247. package/esm/navigation.js +0 -159
  248. package/esm/navigation.js.map +0 -1
  249. package/esm/sections.js +0 -3914
  250. package/esm/sections.js.map +0 -1
  251. package/esm/sections_events.js +0 -573
  252. package/esm/sections_events.js.map +0 -1
  253. package/esm/sections_forms.js +0 -1405
  254. package/esm/sections_forms.js.map +0 -1
  255. package/esm/sections_jobs.js +0 -508
  256. package/esm/sections_jobs.js.map +0 -1
  257. package/esm/sections_news.js +0 -1023
  258. package/esm/sections_news.js.map +0 -1
  259. package/esm/sections_pois.js +0 -719
  260. package/esm/sections_pois.js.map +0 -1
  261. package/esm/statusFormatter-9be0fbff.js +0 -255
  262. package/esm/statusFormatter-9be0fbff.js.map +0 -1
  263. package/esm/structuredData-87423414.js +0 -117
  264. package/esm/structuredData-87423414.js.map +0 -1
  265. package/esm/styles-f6c54818.js +0 -462
  266. package/esm/styles-f6c54818.js.map +0 -1
  267. package/esm/typography.js +0 -11
  268. package/esm/typography.js.map +0 -1
  269. package/esm/urlParams-9cfdaf71.js +0 -51
  270. package/esm/urlParams-9cfdaf71.js.map +0 -1
  271. package/esm/useCookieConsent-8caef116.js +0 -339
  272. package/esm/useCookieConsent-8caef116.js.map +0 -1
  273. package/esm/useEqualSheetHeight-c18cebd3.js +0 -196
  274. package/esm/useEqualSheetHeight-c18cebd3.js.map +0 -1
  275. package/esm/useGeolocation-f9f073cc.js +0 -95
  276. package/esm/useGeolocation-f9f073cc.js.map +0 -1
  277. package/esm/useIE-a9c56989.js +0 -15
  278. package/esm/useIE-a9c56989.js.map +0 -1
  279. package/esm/useLazyInput-e66fc5be.js +0 -85
  280. package/esm/useLazyInput-e66fc5be.js.map +0 -1
  281. package/esm/useLeafletMap-6dea7a8e.js +0 -300
  282. package/esm/useLeafletMap-6dea7a8e.js.map +0 -1
  283. package/esm/useMediaQuery-0d473a9c.js +0 -109
  284. package/esm/useMediaQuery-0d473a9c.js.map +0 -1
  285. package/esm/useMounted-1e4cc87b.js +0 -12
  286. package/esm/useMounted-1e4cc87b.js.map +0 -1
  287. package/esm/useObserverSupport-02bce7f5.js +0 -19
  288. package/esm/useObserverSupport-02bce7f5.js.map +0 -1
  289. package/esm/useScrollTo-70af34bf.js +0 -57
  290. package/esm/useScrollTo-70af34bf.js.map +0 -1
  291. package/esm/useUpdateEffect-824c0c84.js +0 -18
  292. package/esm/useUpdateEffect-824c0c84.js.map +0 -1
  293. package/fields/package.json +0 -7
  294. package/footer/package.json +0 -7
  295. package/hooks/package.json +0 -7
  296. package/icons/package.json +0 -7
  297. package/navigation/package.json +0 -7
  298. package/sections/events/package.json +0 -7
  299. package/sections/forms/package.json +0 -7
  300. package/sections/jobs/package.json +0 -7
  301. package/sections/news/package.json +0 -7
  302. package/sections/package.json +0 -7
  303. package/sections/pois/package.json +0 -7
  304. package/types/base.d.ts +0 -5
  305. package/types/base.d.ts.map +0 -1
  306. package/types/blocks.d.ts +0 -18
  307. package/types/blocks.d.ts.map +0 -1
  308. package/types/buttons.d.ts +0 -6
  309. package/types/buttons.d.ts.map +0 -1
  310. package/types/components/sections/NumberList.d.ts +0 -31
  311. package/types/components/sections/NumberList.d.ts.map +0 -1
  312. package/types/components/sections/header/Header.d.ts.map +0 -1
  313. package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  314. package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  315. package/types/components/typography/Callout.d.ts.map +0 -1
  316. package/types/cookies.d.ts +0 -3
  317. package/types/cookies.d.ts.map +0 -1
  318. package/types/fields.d.ts +0 -14
  319. package/types/fields.d.ts.map +0 -1
  320. package/types/footer.d.ts +0 -4
  321. package/types/footer.d.ts.map +0 -1
  322. package/types/hooks.d.ts +0 -35
  323. package/types/hooks.d.ts.map +0 -1
  324. package/types/icons.d.ts +0 -66
  325. package/types/icons.d.ts.map +0 -1
  326. package/types/index.d.ts +0 -18
  327. package/types/index.d.ts.map +0 -1
  328. package/types/navigation.d.ts +0 -10
  329. package/types/navigation.d.ts.map +0 -1
  330. package/types/sections.d.ts +0 -32
  331. package/types/sections.d.ts.map +0 -1
  332. package/types/sections_events.d.ts +0 -4
  333. package/types/sections_events.d.ts.map +0 -1
  334. package/types/sections_forms.d.ts +0 -3
  335. package/types/sections_forms.d.ts.map +0 -1
  336. package/types/sections_jobs.d.ts +0 -3
  337. package/types/sections_jobs.d.ts.map +0 -1
  338. package/types/sections_news.d.ts +0 -10
  339. package/types/sections_news.d.ts.map +0 -1
  340. package/types/sections_pois.d.ts +0 -4
  341. package/types/sections_pois.d.ts.map +0 -1
  342. package/types/typography.d.ts +0 -6
  343. package/types/typography.d.ts.map +0 -1
  344. package/types/utils/styles.d.ts.map +0 -1
  345. package/types/utils/useEqualSheetHeight.d.ts.map +0 -1
  346. package/typography/package.json +0 -7
  347. /package/{types → lib}/components/base/Grid.d.ts +0 -0
  348. /package/{types → lib}/components/base/Grid.d.ts.map +0 -0
  349. /package/{types → lib}/components/base/Section.d.ts +0 -0
  350. /package/{types → lib}/components/base/Section.d.ts.map +0 -0
  351. /package/{types → lib}/components/base/Wrapper.d.ts +0 -0
  352. /package/{types → lib}/components/base/Wrapper.d.ts.map +0 -0
  353. /package/{types → lib}/components/base/icons/AngleDown.d.ts +0 -0
  354. /package/{types → lib}/components/base/icons/AngleDown.d.ts.map +0 -0
  355. /package/{types → lib}/components/base/icons/AngleLeft.d.ts +0 -0
  356. /package/{types → lib}/components/base/icons/AngleLeft.d.ts.map +0 -0
  357. /package/{types → lib}/components/base/icons/AngleRight.d.ts +0 -0
  358. /package/{types → lib}/components/base/icons/AngleRight.d.ts.map +0 -0
  359. /package/{types → lib}/components/base/icons/AngleUp.d.ts +0 -0
  360. /package/{types → lib}/components/base/icons/AngleUp.d.ts.map +0 -0
  361. /package/{types → lib}/components/base/icons/ArrowDown.d.ts +0 -0
  362. /package/{types → lib}/components/base/icons/ArrowDown.d.ts.map +0 -0
  363. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts +0 -0
  364. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts.map +0 -0
  365. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
  366. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
  367. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts +0 -0
  368. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
  369. /package/{types → lib}/components/base/icons/ArrowRight.d.ts +0 -0
  370. /package/{types → lib}/components/base/icons/ArrowRight.d.ts.map +0 -0
  371. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts +0 -0
  372. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
  373. /package/{types → lib}/components/base/icons/ArrowUp.d.ts +0 -0
  374. /package/{types → lib}/components/base/icons/ArrowUp.d.ts.map +0 -0
  375. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
  376. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
  377. /package/{types → lib}/components/base/icons/CalendarToday.d.ts +0 -0
  378. /package/{types → lib}/components/base/icons/CalendarToday.d.ts.map +0 -0
  379. /package/{types → lib}/components/base/icons/Category.d.ts +0 -0
  380. /package/{types → lib}/components/base/icons/Category.d.ts.map +0 -0
  381. /package/{types → lib}/components/base/icons/Check.d.ts +0 -0
  382. /package/{types → lib}/components/base/icons/Check.d.ts.map +0 -0
  383. /package/{types → lib}/components/base/icons/Clock.d.ts +0 -0
  384. /package/{types → lib}/components/base/icons/Clock.d.ts.map +0 -0
  385. /package/{types → lib}/components/base/icons/ClockFilled.d.ts +0 -0
  386. /package/{types → lib}/components/base/icons/ClockFilled.d.ts.map +0 -0
  387. /package/{types → lib}/components/base/icons/Computer.d.ts +0 -0
  388. /package/{types → lib}/components/base/icons/Computer.d.ts.map +0 -0
  389. /package/{types → lib}/components/base/icons/Cross.d.ts +0 -0
  390. /package/{types → lib}/components/base/icons/Cross.d.ts.map +0 -0
  391. /package/{types → lib}/components/base/icons/CrossSmall.d.ts +0 -0
  392. /package/{types → lib}/components/base/icons/CrossSmall.d.ts.map +0 -0
  393. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts +0 -0
  394. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts.map +0 -0
  395. /package/{types → lib}/components/base/icons/DateRange.d.ts +0 -0
  396. /package/{types → lib}/components/base/icons/DateRange.d.ts.map +0 -0
  397. /package/{types → lib}/components/base/icons/DeleteForever.d.ts +0 -0
  398. /package/{types → lib}/components/base/icons/DeleteForever.d.ts.map +0 -0
  399. /package/{types → lib}/components/base/icons/External.d.ts +0 -0
  400. /package/{types → lib}/components/base/icons/External.d.ts.map +0 -0
  401. /package/{types → lib}/components/base/icons/Filter.d.ts +0 -0
  402. /package/{types → lib}/components/base/icons/Filter.d.ts.map +0 -0
  403. /package/{types → lib}/components/base/icons/FlyTo.d.ts +0 -0
  404. /package/{types → lib}/components/base/icons/FlyTo.d.ts.map +0 -0
  405. /package/{types → lib}/components/base/icons/Info.d.ts +0 -0
  406. /package/{types → lib}/components/base/icons/Info.d.ts.map +0 -0
  407. /package/{types → lib}/components/base/icons/Language.d.ts +0 -0
  408. /package/{types → lib}/components/base/icons/Language.d.ts.map +0 -0
  409. /package/{types → lib}/components/base/icons/LocationPin.d.ts +0 -0
  410. /package/{types → lib}/components/base/icons/LocationPin.d.ts.map +0 -0
  411. /package/{types → lib}/components/base/icons/LocationSearch.d.ts +0 -0
  412. /package/{types → lib}/components/base/icons/LocationSearch.d.ts.map +0 -0
  413. /package/{types → lib}/components/base/icons/Magnifier.d.ts +0 -0
  414. /package/{types → lib}/components/base/icons/Magnifier.d.ts.map +0 -0
  415. /package/{types → lib}/components/base/icons/Mail.d.ts +0 -0
  416. /package/{types → lib}/components/base/icons/Mail.d.ts.map +0 -0
  417. /package/{types → lib}/components/base/icons/Map.d.ts +0 -0
  418. /package/{types → lib}/components/base/icons/Map.d.ts.map +0 -0
  419. /package/{types → lib}/components/base/icons/MenuBurger.d.ts +0 -0
  420. /package/{types → lib}/components/base/icons/MenuBurger.d.ts.map +0 -0
  421. /package/{types → lib}/components/base/icons/Minus.d.ts +0 -0
  422. /package/{types → lib}/components/base/icons/Minus.d.ts.map +0 -0
  423. /package/{types → lib}/components/base/icons/Money.d.ts +0 -0
  424. /package/{types → lib}/components/base/icons/Money.d.ts.map +0 -0
  425. /package/{types → lib}/components/base/icons/MyLocation.d.ts +0 -0
  426. /package/{types → lib}/components/base/icons/MyLocation.d.ts.map +0 -0
  427. /package/{types → lib}/components/base/icons/Person.d.ts +0 -0
  428. /package/{types → lib}/components/base/icons/Person.d.ts.map +0 -0
  429. /package/{types → lib}/components/base/icons/Phone.d.ts +0 -0
  430. /package/{types → lib}/components/base/icons/Phone.d.ts.map +0 -0
  431. /package/{types → lib}/components/base/icons/Place.d.ts +0 -0
  432. /package/{types → lib}/components/base/icons/Place.d.ts.map +0 -0
  433. /package/{types → lib}/components/base/icons/Play.d.ts +0 -0
  434. /package/{types → lib}/components/base/icons/Play.d.ts.map +0 -0
  435. /package/{types → lib}/components/base/icons/Plus.d.ts +0 -0
  436. /package/{types → lib}/components/base/icons/Plus.d.ts.map +0 -0
  437. /package/{types → lib}/components/base/icons/Route.d.ts +0 -0
  438. /package/{types → lib}/components/base/icons/Route.d.ts.map +0 -0
  439. /package/{types → lib}/components/base/icons/Star.d.ts +0 -0
  440. /package/{types → lib}/components/base/icons/Star.d.ts.map +0 -0
  441. /package/{types → lib}/components/base/icons/ToggleOff.d.ts +0 -0
  442. /package/{types → lib}/components/base/icons/ToggleOff.d.ts.map +0 -0
  443. /package/{types → lib}/components/base/icons/ToggleOn.d.ts +0 -0
  444. /package/{types → lib}/components/base/icons/ToggleOn.d.ts.map +0 -0
  445. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts +0 -0
  446. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts.map +0 -0
  447. /package/{types → lib}/components/base/icons/files/Excel.d.ts +0 -0
  448. /package/{types → lib}/components/base/icons/files/Excel.d.ts.map +0 -0
  449. /package/{types → lib}/components/base/icons/files/Image.d.ts +0 -0
  450. /package/{types → lib}/components/base/icons/files/Image.d.ts.map +0 -0
  451. /package/{types → lib}/components/base/icons/files/Pdf.d.ts +0 -0
  452. /package/{types → lib}/components/base/icons/files/Pdf.d.ts.map +0 -0
  453. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts +0 -0
  454. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
  455. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts +0 -0
  456. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts.map +0 -0
  457. /package/{types → lib}/components/base/icons/files/Word.d.ts +0 -0
  458. /package/{types → lib}/components/base/icons/files/Word.d.ts.map +0 -0
  459. /package/{types → lib}/components/base/icons/files/Zip.d.ts +0 -0
  460. /package/{types → lib}/components/base/icons/files/Zip.d.ts.map +0 -0
  461. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts +0 -0
  462. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts.map +0 -0
  463. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts +0 -0
  464. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts.map +0 -0
  465. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts +0 -0
  466. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
  467. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts +0 -0
  468. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts.map +0 -0
  469. /package/{types → lib}/components/base/icons/socials/Xing.d.ts +0 -0
  470. /package/{types → lib}/components/base/icons/socials/Xing.d.ts.map +0 -0
  471. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts +0 -0
  472. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts.map +0 -0
  473. /package/{types → lib}/components/base/nl2br.d.ts +0 -0
  474. /package/{types → lib}/components/base/nl2br.d.ts.map +0 -0
  475. /package/{types → lib}/components/blocks/Actions.d.ts +0 -0
  476. /package/{types → lib}/components/blocks/Actions.d.ts.map +0 -0
  477. /package/{types → lib}/components/blocks/Alert.d.ts +0 -0
  478. /package/{types → lib}/components/blocks/Alert.d.ts.map +0 -0
  479. /package/{types → lib}/components/blocks/Bdot.d.ts +0 -0
  480. /package/{types → lib}/components/blocks/Bdot.d.ts.map +0 -0
  481. /package/{types → lib}/components/blocks/CookieConsent.d.ts +0 -0
  482. /package/{types → lib}/components/blocks/CookieConsent.d.ts.map +0 -0
  483. /package/{types → lib}/components/blocks/EventBlock.d.ts +0 -0
  484. /package/{types → lib}/components/blocks/EventBlock.d.ts.map +0 -0
  485. /package/{types → lib}/components/blocks/Fact.d.ts +0 -0
  486. /package/{types → lib}/components/blocks/Fact.d.ts.map +0 -0
  487. /package/{types → lib}/components/blocks/Feature.d.ts +0 -0
  488. /package/{types → lib}/components/blocks/Feature.d.ts.map +0 -0
  489. /package/{types → lib}/components/blocks/Image.d.ts +0 -0
  490. /package/{types → lib}/components/blocks/Image.d.ts.map +0 -0
  491. /package/{types → lib}/components/blocks/InfoList.d.ts +0 -0
  492. /package/{types → lib}/components/blocks/InfoList.d.ts.map +0 -0
  493. /package/{types → lib}/components/blocks/IntroBlock.d.ts +0 -0
  494. /package/{types → lib}/components/blocks/IntroBlock.d.ts.map +0 -0
  495. /package/{types → lib}/components/blocks/JobCard.d.ts +0 -0
  496. /package/{types → lib}/components/blocks/JobCard.d.ts.map +0 -0
  497. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts +0 -0
  498. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
  499. /package/{types → lib}/components/blocks/NavBlock.d.ts +0 -0
  500. /package/{types → lib}/components/blocks/NavBlock.d.ts.map +0 -0
  501. /package/{types → lib}/components/blocks/NewsCard.d.ts +0 -0
  502. /package/{types → lib}/components/blocks/NewsCard.d.ts.map +0 -0
  503. /package/{types → lib}/components/blocks/POICard.d.ts +0 -0
  504. /package/{types → lib}/components/blocks/POICard.d.ts.map +0 -0
  505. /package/{types → lib}/components/blocks/POIFacts.d.ts +0 -0
  506. /package/{types → lib}/components/blocks/POIFacts.d.ts.map +0 -0
  507. /package/{types → lib}/components/blocks/PriceTag.d.ts +0 -0
  508. /package/{types → lib}/components/blocks/PriceTag.d.ts.map +0 -0
  509. /package/{types → lib}/components/blocks/PromotionCard.d.ts +0 -0
  510. /package/{types → lib}/components/blocks/PromotionCard.d.ts.map +0 -0
  511. /package/{types → lib}/components/blocks/SocialList.d.ts +0 -0
  512. /package/{types → lib}/components/blocks/SocialList.d.ts.map +0 -0
  513. /package/{types → lib}/components/blocks/TableBlock.d.ts +0 -0
  514. /package/{types → lib}/components/blocks/TableBlock.d.ts.map +0 -0
  515. /package/{types → lib}/components/blocks/Tag.d.ts +0 -0
  516. /package/{types → lib}/components/blocks/Tag.d.ts.map +0 -0
  517. /package/{types → lib}/components/blocks/Title.d.ts +0 -0
  518. /package/{types → lib}/components/blocks/Title.d.ts.map +0 -0
  519. /package/{types → lib}/components/blocks/VideoBlock.d.ts +0 -0
  520. /package/{types → lib}/components/blocks/VideoBlock.d.ts.map +0 -0
  521. /package/{types → lib}/components/blocks/VideoCard.d.ts +0 -0
  522. /package/{types → lib}/components/blocks/VideoCard.d.ts.map +0 -0
  523. /package/{types → lib}/components/buttons/Button.d.ts +0 -0
  524. /package/{types → lib}/components/buttons/Button.d.ts.map +0 -0
  525. /package/{types → lib}/components/buttons/ButtonGhost.d.ts +0 -0
  526. /package/{types → lib}/components/buttons/ButtonGhost.d.ts.map +0 -0
  527. /package/{types → lib}/components/buttons/Control.d.ts +0 -0
  528. /package/{types → lib}/components/buttons/Control.d.ts.map +0 -0
  529. /package/{types → lib}/components/buttons/Pointer.d.ts +0 -0
  530. /package/{types → lib}/components/buttons/Pointer.d.ts.map +0 -0
  531. /package/{types → lib}/components/debug/DebugLines.d.ts +0 -0
  532. /package/{types → lib}/components/debug/DebugLines.d.ts.map +0 -0
  533. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
  534. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
  535. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
  536. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
  537. /package/{types → lib}/components/fields/Checkbox.d.ts +0 -0
  538. /package/{types → lib}/components/fields/Checkbox.d.ts.map +0 -0
  539. /package/{types → lib}/components/fields/CompactForm.d.ts +0 -0
  540. /package/{types → lib}/components/fields/CompactForm.d.ts.map +0 -0
  541. /package/{types → lib}/components/fields/Datepicker.d.ts +0 -0
  542. /package/{types → lib}/components/fields/Datepicker.d.ts.map +0 -0
  543. /package/{types → lib}/components/fields/FileUpload.d.ts +0 -0
  544. /package/{types → lib}/components/fields/FileUpload.d.ts.map +0 -0
  545. /package/{types → lib}/components/fields/FilterField.d.ts +0 -0
  546. /package/{types → lib}/components/fields/FormField.d.ts +0 -0
  547. /package/{types → lib}/components/fields/FormField.d.ts.map +0 -0
  548. /package/{types → lib}/components/fields/LocationField.d.ts +0 -0
  549. /package/{types → lib}/components/fields/LocationField.d.ts.map +0 -0
  550. /package/{types → lib}/components/fields/Radio.d.ts +0 -0
  551. /package/{types → lib}/components/fields/Radio.d.ts.map +0 -0
  552. /package/{types → lib}/components/fields/SearchInput.d.ts +0 -0
  553. /package/{types → lib}/components/fields/SearchInput.d.ts.map +0 -0
  554. /package/{types → lib}/components/fields/SelectDropdown.d.ts +0 -0
  555. /package/{types → lib}/components/fields/SelectDropdown.d.ts.map +0 -0
  556. /package/{types → lib}/components/fields/Textarea.d.ts +0 -0
  557. /package/{types → lib}/components/fields/Textarea.d.ts.map +0 -0
  558. /package/{types → lib}/components/fields/Textfield.d.ts +0 -0
  559. /package/{types → lib}/components/fields/Textfield.d.ts.map +0 -0
  560. /package/{types → lib}/components/sections/Accordion.d.ts +0 -0
  561. /package/{types → lib}/components/sections/Accordion.d.ts.map +0 -0
  562. /package/{types → lib}/components/sections/AlertList.d.ts +0 -0
  563. /package/{types → lib}/components/sections/AlertList.d.ts.map +0 -0
  564. /package/{types → lib}/components/sections/Article.d.ts +0 -0
  565. /package/{types → lib}/components/sections/Article.d.ts.map +0 -0
  566. /package/{types → lib}/components/sections/CallToAction.d.ts +0 -0
  567. /package/{types → lib}/components/sections/CallToAction.d.ts.map +0 -0
  568. /package/{types → lib}/components/sections/CardList.d.ts +0 -0
  569. /package/{types → lib}/components/sections/CardList.d.ts.map +0 -0
  570. /package/{types → lib}/components/sections/ComparisonSlider.d.ts +0 -0
  571. /package/{types → lib}/components/sections/ComparisonSlider.d.ts.map +0 -0
  572. /package/{types → lib}/components/sections/CrossPromotion.d.ts +0 -0
  573. /package/{types → lib}/components/sections/CrossPromotion.d.ts.map +0 -0
  574. /package/{types → lib}/components/sections/FactGrid.d.ts +0 -0
  575. /package/{types → lib}/components/sections/FactGrid.d.ts.map +0 -0
  576. /package/{types → lib}/components/sections/FactList.d.ts +0 -0
  577. /package/{types → lib}/components/sections/FactList.d.ts.map +0 -0
  578. /package/{types → lib}/components/sections/FeatureList.d.ts +0 -0
  579. /package/{types → lib}/components/sections/FeatureList.d.ts.map +0 -0
  580. /package/{types → lib}/components/sections/Gallery.d.ts +0 -0
  581. /package/{types → lib}/components/sections/Gallery.d.ts.map +0 -0
  582. /package/{types → lib}/components/sections/IconList.d.ts +0 -0
  583. /package/{types → lib}/components/sections/IconList.d.ts.map +0 -0
  584. /package/{types → lib}/components/sections/IndexList.d.ts +0 -0
  585. /package/{types → lib}/components/sections/IndexList.d.ts.map +0 -0
  586. /package/{types → lib}/components/sections/Intro.d.ts +0 -0
  587. /package/{types → lib}/components/sections/Intro.d.ts.map +0 -0
  588. /package/{types → lib}/components/sections/Map.d.ts +0 -0
  589. /package/{types → lib}/components/sections/Map.d.ts.map +0 -0
  590. /package/{types → lib}/components/sections/NavList.d.ts +0 -0
  591. /package/{types → lib}/components/sections/NavList.d.ts.map +0 -0
  592. /package/{types → lib}/components/sections/NewsletterForm.d.ts +0 -0
  593. /package/{types → lib}/components/sections/NewsletterForm.d.ts.map +0 -0
  594. /package/{types → lib}/components/sections/ParallaxBackground.d.ts +0 -0
  595. /package/{types → lib}/components/sections/ParallaxBackground.d.ts.map +0 -0
  596. /package/{types → lib}/components/sections/Poster.d.ts +0 -0
  597. /package/{types → lib}/components/sections/Poster.d.ts.map +0 -0
  598. /package/{types → lib}/components/sections/PriceList.d.ts +0 -0
  599. /package/{types → lib}/components/sections/PriceList.d.ts.map +0 -0
  600. /package/{types → lib}/components/sections/PriceTable.d.ts +0 -0
  601. /package/{types → lib}/components/sections/PriceTable.d.ts.map +0 -0
  602. /package/{types → lib}/components/sections/Quote.d.ts +0 -0
  603. /package/{types → lib}/components/sections/Quote.d.ts.map +0 -0
  604. /package/{types → lib}/components/sections/RawVideo.d.ts +0 -0
  605. /package/{types → lib}/components/sections/RawVideo.d.ts.map +0 -0
  606. /package/{types → lib}/components/sections/SimpleImage.d.ts +0 -0
  607. /package/{types → lib}/components/sections/SimpleImage.d.ts.map +0 -0
  608. /package/{types → lib}/components/sections/SocialWall.d.ts +0 -0
  609. /package/{types → lib}/components/sections/SocialWall.d.ts.map +0 -0
  610. /package/{types → lib}/components/sections/Table.d.ts +0 -0
  611. /package/{types → lib}/components/sections/Table.d.ts.map +0 -0
  612. /package/{types → lib}/components/sections/Teaser.d.ts +0 -0
  613. /package/{types → lib}/components/sections/Teaser.d.ts.map +0 -0
  614. /package/{types → lib}/components/sections/TeaserWide.d.ts +0 -0
  615. /package/{types → lib}/components/sections/TeaserWide.d.ts.map +0 -0
  616. /package/{types → lib}/components/sections/Timeline.d.ts +0 -0
  617. /package/{types → lib}/components/sections/Timeline.d.ts.map +0 -0
  618. /package/{types → lib}/components/sections/Video.d.ts +0 -0
  619. /package/{types → lib}/components/sections/Video.d.ts.map +0 -0
  620. /package/{types → lib}/components/sections/events/EventDetail.d.ts +0 -0
  621. /package/{types → lib}/components/sections/events/EventDetail.d.ts.map +0 -0
  622. /package/{types → lib}/components/sections/events/EventList.d.ts +0 -0
  623. /package/{types → lib}/components/sections/events/EventList.d.ts.map +0 -0
  624. /package/{types → lib}/components/sections/events/EventOverview.d.ts +0 -0
  625. /package/{types → lib}/components/sections/events/EventOverview.d.ts.map +0 -0
  626. /package/{types → lib}/components/sections/footer/Footer.d.ts +0 -0
  627. /package/{types → lib}/components/sections/footer/Footer.d.ts.map +0 -0
  628. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  629. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
  630. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
  631. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
  632. /package/{types → lib}/components/sections/footer/partials/index.d.ts +0 -0
  633. /package/{types → lib}/components/sections/footer/partials/index.d.ts.map +0 -0
  634. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  635. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
  636. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  637. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
  638. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts +0 -0
  639. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts.map +0 -0
  640. /package/{types → lib}/components/sections/form/DynamicForm.d.ts +0 -0
  641. /package/{types → lib}/components/sections/form/DynamicForm.d.ts.map +0 -0
  642. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
  643. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
  644. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  645. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
  646. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  647. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
  648. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
  649. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
  650. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
  651. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
  652. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
  653. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
  654. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
  655. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
  656. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts +0 -0
  657. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
  658. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
  659. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
  660. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  661. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
  662. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts +0 -0
  663. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
  664. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts +0 -0
  665. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
  666. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts +0 -0
  667. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
  668. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts +0 -0
  669. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
  670. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts +0 -0
  671. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
  672. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts +0 -0
  673. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts.map +0 -0
  674. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts +0 -0
  675. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts.map +0 -0
  676. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts +0 -0
  677. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts.map +0 -0
  678. /package/{types → lib}/components/sections/jobs/JobList.d.ts +0 -0
  679. /package/{types → lib}/components/sections/jobs/JobList.d.ts.map +0 -0
  680. /package/{types → lib}/components/sections/navigation/NavBar.d.ts +0 -0
  681. /package/{types → lib}/components/sections/navigation/NavBar.d.ts.map +0 -0
  682. /package/{types → lib}/components/sections/navigation/Navigation.d.ts +0 -0
  683. /package/{types → lib}/components/sections/navigation/Navigation.d.ts.map +0 -0
  684. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts +0 -0
  685. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
  686. /package/{types → lib}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  687. /package/{types → lib}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  688. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
  689. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
  690. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
  691. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
  692. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  693. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
  694. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
  695. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
  696. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
  697. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
  698. /package/{types → lib}/components/sections/navigation/partials/index.d.ts +0 -0
  699. /package/{types → lib}/components/sections/navigation/partials/index.d.ts.map +0 -0
  700. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  701. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
  702. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  703. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
  704. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  705. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
  706. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  707. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
  708. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  709. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
  710. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts +0 -0
  711. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
  712. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts +0 -0
  713. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
  714. /package/{types → lib}/components/sections/news/NewsFooter.d.ts +0 -0
  715. /package/{types → lib}/components/sections/news/NewsFooter.d.ts.map +0 -0
  716. /package/{types → lib}/components/sections/news/NewsImages.d.ts +0 -0
  717. /package/{types → lib}/components/sections/news/NewsImages.d.ts.map +0 -0
  718. /package/{types → lib}/components/sections/news/NewsIntro.d.ts +0 -0
  719. /package/{types → lib}/components/sections/news/NewsIntro.d.ts.map +0 -0
  720. /package/{types → lib}/components/sections/news/NewsList.d.ts +0 -0
  721. /package/{types → lib}/components/sections/news/NewsList.d.ts.map +0 -0
  722. /package/{types → lib}/components/sections/news/NewsOverview.d.ts +0 -0
  723. /package/{types → lib}/components/sections/news/NewsOverview.d.ts.map +0 -0
  724. /package/{types → lib}/components/sections/news/NewsTable.d.ts +0 -0
  725. /package/{types → lib}/components/sections/news/NewsTable.d.ts.map +0 -0
  726. /package/{types → lib}/components/sections/news/NewsText.d.ts +0 -0
  727. /package/{types → lib}/components/sections/news/NewsText.d.ts.map +0 -0
  728. /package/{types → lib}/components/sections/news/NewsVideo.d.ts +0 -0
  729. /package/{types → lib}/components/sections/news/NewsVideo.d.ts.map +0 -0
  730. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
  731. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
  732. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
  733. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
  734. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
  735. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
  736. /package/{types → lib}/components/typography/Copy.d.ts +0 -0
  737. /package/{types → lib}/components/typography/Copy.d.ts.map +0 -0
  738. /package/{types → lib}/components/typography/Heading.d.ts +0 -0
  739. /package/{types → lib}/components/typography/Heading.d.ts.map +0 -0
  740. /package/{types → lib}/components/typography/Link.d.ts +0 -0
  741. /package/{types → lib}/components/typography/Link.d.ts.map +0 -0
  742. /package/{types → lib}/utils/LibThemeProvider.d.ts +0 -0
  743. /package/{types → lib}/utils/LibThemeProvider.d.ts.map +0 -0
  744. /package/{types → lib}/utils/arrays.d.ts +0 -0
  745. /package/{types → lib}/utils/arrays.d.ts.map +0 -0
  746. /package/{types → lib}/utils/backgroundImage.d.ts +0 -0
  747. /package/{types → lib}/utils/backgroundImage.d.ts.map +0 -0
  748. /package/{types → lib}/utils/clamp.d.ts +0 -0
  749. /package/{types → lib}/utils/clamp.d.ts.map +0 -0
  750. /package/{types → lib}/utils/concat.d.ts +0 -0
  751. /package/{types → lib}/utils/concat.d.ts.map +0 -0
  752. /package/{types → lib}/utils/cookie-consent/cookie.d.ts +0 -0
  753. /package/{types → lib}/utils/cookie-consent/cookie.d.ts.map +0 -0
  754. /package/{types → lib}/utils/cookie-consent/mutations.d.ts +0 -0
  755. /package/{types → lib}/utils/cookie-consent/mutations.d.ts.map +0 -0
  756. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
  757. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
  758. /package/{types → lib}/utils/dataURI.d.ts +0 -0
  759. /package/{types → lib}/utils/dataURI.d.ts.map +0 -0
  760. /package/{types → lib}/utils/escape.d.ts +0 -0
  761. /package/{types → lib}/utils/escape.d.ts.map +0 -0
  762. /package/{types → lib}/utils/filters.d.ts +0 -0
  763. /package/{types → lib}/utils/filters.d.ts.map +0 -0
  764. /package/{types → lib}/utils/fontLoading.d.ts +0 -0
  765. /package/{types → lib}/utils/fontLoading.d.ts.map +0 -0
  766. /package/{types → lib}/utils/formFieldText.d.ts +0 -0
  767. /package/{types → lib}/utils/formFieldText.d.ts.map +0 -0
  768. /package/{types → lib}/utils/getLinkIcon.d.ts +0 -0
  769. /package/{types → lib}/utils/getLinkIcon.d.ts.map +0 -0
  770. /package/{types → lib}/utils/hexRgbConverter.d.ts +0 -0
  771. /package/{types → lib}/utils/hexRgbConverter.d.ts.map +0 -0
  772. /package/{types → lib}/utils/menuHooks.d.ts +0 -0
  773. /package/{types → lib}/utils/menuHooks.d.ts.map +0 -0
  774. /package/{types → lib}/utils/navigation.d.ts +0 -0
  775. /package/{types → lib}/utils/navigation.d.ts.map +0 -0
  776. /package/{types → lib}/utils/statusFormatter.d.ts +0 -0
  777. /package/{types → lib}/utils/statusFormatter.d.ts.map +0 -0
  778. /package/{types → lib}/utils/storyHelpers.d.ts +0 -0
  779. /package/{types → lib}/utils/storyHelpers.d.ts.map +0 -0
  780. /package/{types → lib}/utils/structuredData.d.ts +0 -0
  781. /package/{types → lib}/utils/structuredData.d.ts.map +0 -0
  782. /package/{types → lib}/utils/types.d.ts +0 -0
  783. /package/{types → lib}/utils/types.d.ts.map +0 -0
  784. /package/{types → lib}/utils/urlParams.d.ts +0 -0
  785. /package/{types → lib}/utils/urlParams.d.ts.map +0 -0
  786. /package/{types → lib}/utils/useArray.d.ts +0 -0
  787. /package/{types → lib}/utils/useArray.d.ts.map +0 -0
  788. /package/{types → lib}/utils/useDebounce.d.ts +0 -0
  789. /package/{types → lib}/utils/useDebounce.d.ts.map +0 -0
  790. /package/{types → lib}/utils/useFontsLoaded.d.ts +0 -0
  791. /package/{types → lib}/utils/useFontsLoaded.d.ts.map +0 -0
  792. /package/{types → lib}/utils/useGeolocation.d.ts +0 -0
  793. /package/{types → lib}/utils/useGeolocation.d.ts.map +0 -0
  794. /package/{types → lib}/utils/useIE.d.ts +0 -0
  795. /package/{types → lib}/utils/useIE.d.ts.map +0 -0
  796. /package/{types → lib}/utils/useImgPreload.d.ts +0 -0
  797. /package/{types → lib}/utils/useImgPreload.d.ts.map +0 -0
  798. /package/{types → lib}/utils/useInterval.d.ts +0 -0
  799. /package/{types → lib}/utils/useInterval.d.ts.map +0 -0
  800. /package/{types → lib}/utils/useItemHeight.d.ts +0 -0
  801. /package/{types → lib}/utils/useItemHeight.d.ts.map +0 -0
  802. /package/{types → lib}/utils/useLazyInput.d.ts +0 -0
  803. /package/{types → lib}/utils/useLazyInput.d.ts.map +0 -0
  804. /package/{types → lib}/utils/useLeafletMap.d.ts +0 -0
  805. /package/{types → lib}/utils/useLeafletMap.d.ts.map +0 -0
  806. /package/{types → lib}/utils/useMounted.d.ts +0 -0
  807. /package/{types → lib}/utils/useMounted.d.ts.map +0 -0
  808. /package/{types → lib}/utils/useObserverSupport.d.ts +0 -0
  809. /package/{types → lib}/utils/useObserverSupport.d.ts.map +0 -0
  810. /package/{types → lib}/utils/usePageScroll.d.ts +0 -0
  811. /package/{types → lib}/utils/usePageScroll.d.ts.map +0 -0
  812. /package/{types → lib}/utils/useParams.d.ts +0 -0
  813. /package/{types → lib}/utils/useParams.d.ts.map +0 -0
  814. /package/{types → lib}/utils/usePoster.d.ts +0 -0
  815. /package/{types → lib}/utils/usePoster.d.ts.map +0 -0
  816. /package/{types → lib}/utils/usePrevious.d.ts +0 -0
  817. /package/{types → lib}/utils/usePrevious.d.ts.map +0 -0
  818. /package/{types → lib}/utils/useResizeThrottle.d.ts +0 -0
  819. /package/{types → lib}/utils/useResizeThrottle.d.ts.map +0 -0
  820. /package/{types → lib}/utils/useScroll.d.ts +0 -0
  821. /package/{types → lib}/utils/useScroll.d.ts.map +0 -0
  822. /package/{types → lib}/utils/useScrollIntoView.d.ts +0 -0
  823. /package/{types → lib}/utils/useScrollIntoView.d.ts.map +0 -0
  824. /package/{types → lib}/utils/useScrollThrottle.d.ts +0 -0
  825. /package/{types → lib}/utils/useScrollThrottle.d.ts.map +0 -0
  826. /package/{types → lib}/utils/useScrollTo.d.ts +0 -0
  827. /package/{types → lib}/utils/useScrollTo.d.ts.map +0 -0
  828. /package/{types → lib}/utils/useTimeout.d.ts +0 -0
  829. /package/{types → lib}/utils/useTimeout.d.ts.map +0 -0
  830. /package/{types → lib}/utils/useTouch.d.ts +0 -0
  831. /package/{types → lib}/utils/useTouch.d.ts.map +0 -0
  832. /package/{types → lib}/utils/useUpdateEffect.d.ts +0 -0
  833. /package/{types → lib}/utils/useUpdateEffect.d.ts.map +0 -0
@@ -1,193 +0,0 @@
1
- import { a as __makeTemplateObject } from './ClockFilled-6bae80dc.js';
2
- import { C as Copy } from './Copy-fb124972.js';
3
- import * as React from 'react';
4
- import { useRef, useState, useEffect } from 'react';
5
- import styled, { css } from 'styled-components';
6
- import { u as useLibTheme } from './LibThemeProvider-a38c5bf1.js';
7
- import { c as getGlobals, m as mq, g as getColors, s as spacings } from './styles-f6c54818.js';
8
-
9
- var getAspectRatio = function (width, height) {
10
- if (!width || !height) return undefined;
11
- if (isNaN(width) || isNaN(height)) return undefined;
12
- return width / height;
13
- };
14
-
15
- var isValid = function (ratio) {
16
- return ratio && (ratio === null || ratio === void 0 ? void 0 : ratio.w) && (ratio === null || ratio === void 0 ? void 0 : ratio.h) ? true : false;
17
- };
18
-
19
- var aspectFallback = function (ratio) {
20
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @supports not (aspect-ratio: auto) {\n height: 0;\n padding-top: ", ";\n }\n"], ["\n @supports not (aspect-ratio: auto) {\n height: 0;\n padding-top: ", ";\n }\n"])), isValid(ratio) && "calc(100% / ".concat(getAspectRatio(ratio === null || ratio === void 0 ? void 0 : ratio.w, ratio === null || ratio === void 0 ? void 0 : ratio.h), ")"));
21
- };
22
-
23
- var AspectContainer = styled.div.withConfig({
24
- displayName: "Image__AspectContainer",
25
- componentId: "sc-10qjgzr-0"
26
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n border-radius: ", ";\n overflow: hidden;\n\n aspect-ratio: ", ";\n\n width: ", ";\n\n max-width: 100%;\n\n object-position: center;\n\n img {\n width: 100%;\n }\n\n ", "\n\n // fallback if browsers do not support aspect-ratio\n ", "\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio. (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n ", "\n"], ["\n display: inline-block;\n position: relative;\n border-radius: ", ";\n overflow: hidden;\n\n aspect-ratio: ", ";\n\n width: ", ";\n\n max-width: 100%;\n\n object-position: center;\n\n img {\n width: 100%;\n }\n\n ", "\n\n // fallback if browsers do not support aspect-ratio\n ", "\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio. (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n @media ", " {\n aspect-ratio: ", ";\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ", "\n }\n\n ", "\n"])), function (_a) {
27
- var theme = _a.theme,
28
- allowEdgeRadius = _a.allowEdgeRadius;
29
- return allowEdgeRadius && getGlobals(theme).sections.edgeRadius;
30
- }, function (_a) {
31
- var _b, _c;
32
-
33
- var ratios = _a.ratios;
34
- return getAspectRatio((_b = ratios === null || ratios === void 0 ? void 0 : ratios.small) === null || _b === void 0 ? void 0 : _b.w, (_c = ratios === null || ratios === void 0 ? void 0 : ratios.small) === null || _c === void 0 ? void 0 : _c.h);
35
- }, function (_a) {
36
- var _b, _c;
37
-
38
- var ratios = _a.ratios,
39
- coverSpace = _a.coverSpace;
40
- return !coverSpace && ((_b = ratios === null || ratios === void 0 ? void 0 : ratios.small) === null || _b === void 0 ? void 0 : _b.w) ? "".concat((_c = ratios === null || ratios === void 0 ? void 0 : ratios.small) === null || _c === void 0 ? void 0 : _c.w, "px") : '';
41
- }, function (_a) {
42
- var coverSpace = _a.coverSpace;
43
- return coverSpace && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n\n img {\n object-fit: cover;\n }\n "], ["\n width: 100%;\n\n img {\n object-fit: cover;\n }\n "])));
44
- }, function (_a) {
45
- var ratios = _a.ratios,
46
- coverSpace = _a.coverSpace;
47
- return coverSpace && aspectFallback(ratios === null || ratios === void 0 ? void 0 : ratios.small);
48
- }, mq.medium, function (_a) {
49
- var _b, _c;
50
-
51
- var ratios = _a.ratios;
52
- return getAspectRatio((_b = ratios === null || ratios === void 0 ? void 0 : ratios.medium) === null || _b === void 0 ? void 0 : _b.w, (_c = ratios === null || ratios === void 0 ? void 0 : ratios.medium) === null || _c === void 0 ? void 0 : _c.h);
53
- }, function (_a) {
54
- var ratios = _a.ratios,
55
- coverSpace = _a.coverSpace;
56
- return coverSpace && aspectFallback(ratios === null || ratios === void 0 ? void 0 : ratios.medium);
57
- }, mq.semilarge, function (_a) {
58
- var _b, _c;
59
-
60
- var ratios = _a.ratios;
61
- return getAspectRatio((_b = ratios === null || ratios === void 0 ? void 0 : ratios.semilarge) === null || _b === void 0 ? void 0 : _b.w, (_c = ratios === null || ratios === void 0 ? void 0 : ratios.semilarge) === null || _c === void 0 ? void 0 : _c.h);
62
- }, function (_a) {
63
- var ratios = _a.ratios,
64
- coverSpace = _a.coverSpace;
65
- return coverSpace && aspectFallback(ratios === null || ratios === void 0 ? void 0 : ratios.semilarge);
66
- }, mq.large, function (_a) {
67
- var _b, _c;
68
-
69
- var ratios = _a.ratios;
70
- return getAspectRatio((_b = ratios === null || ratios === void 0 ? void 0 : ratios.large) === null || _b === void 0 ? void 0 : _b.w, (_c = ratios === null || ratios === void 0 ? void 0 : ratios.large) === null || _c === void 0 ? void 0 : _c.h);
71
- }, function (_a) {
72
- var ratios = _a.ratios,
73
- coverSpace = _a.coverSpace;
74
- return coverSpace && aspectFallback(ratios === null || ratios === void 0 ? void 0 : ratios.large);
75
- }, mq.xlarge, function (_a) {
76
- var _b, _c;
77
-
78
- var ratios = _a.ratios;
79
- return getAspectRatio((_b = ratios === null || ratios === void 0 ? void 0 : ratios.xlarge) === null || _b === void 0 ? void 0 : _b.w, (_c = ratios === null || ratios === void 0 ? void 0 : ratios.xlarge) === null || _c === void 0 ? void 0 : _c.h);
80
- }, function (_a) {
81
- var ratios = _a.ratios,
82
- coverSpace = _a.coverSpace;
83
- return coverSpace && aspectFallback(ratios === null || ratios === void 0 ? void 0 : ratios.xlarge);
84
- }, function (_a) {
85
- var ratios = _a.ratios,
86
- coverSpace = _a.coverSpace;
87
- return ratios && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n img {\n height: 100%;\n width: 100%;\n object-fit: ", ";\n\n @supports not (aspect-ratio: auto) {\n position: ", ";\n top: 0;\n left: 0;\n right: 0;\n }\n }\n "], ["\n img {\n height: 100%;\n width: 100%;\n object-fit: ", ";\n\n @supports not (aspect-ratio: auto) {\n position: ", ";\n top: 0;\n left: 0;\n right: 0;\n }\n }\n "])), coverSpace ? 'cover' : 'contain', coverSpace && 'absolute');
88
- });
89
- var Img = styled.img.withConfig({
90
- displayName: "Image__Img",
91
- componentId: "sc-10qjgzr-1"
92
- })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n color: ", ";\n\n &[data-img-loaded='false'] {\n background: ", ";\n }\n"], ["\n display: block;\n color: ", ";\n\n &[data-img-loaded='false'] {\n background: ", ";\n }\n"])), function (_a) {
93
- var theme = _a.theme,
94
- isInverted = _a.isInverted;
95
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
96
- }, function (_a) {
97
- var theme = _a.theme,
98
- isInverted = _a.isInverted,
99
- showPlaceholder = _a.showPlaceholder;
100
- return showPlaceholder ? isInverted ? getGlobals(theme).sections.imagePlaceholderBg.inverted : getGlobals(theme).sections.imagePlaceholderBg.default : undefined;
101
- });
102
- var Copyright = styled(Copy).withConfig({
103
- displayName: "Image__Copyright",
104
- componentId: "sc-10qjgzr-2"
105
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: inline-block;\n position: absolute;\n max-height: 100%;\n bottom: 0;\n right: 0;\n\n padding: ", "px ", "px;\n\n pointer-events: none;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n -ms-writing-mode: tb-rl;\n writing-mode: vertical-rl;\n text-orientation: sideways-right;\n transform: rotate(180deg);\n"], ["\n display: inline-block;\n position: absolute;\n max-height: 100%;\n bottom: 0;\n right: 0;\n\n padding: ", "px ", "px;\n\n pointer-events: none;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n -ms-writing-mode: tb-rl;\n writing-mode: vertical-rl;\n text-orientation: sideways-right;\n transform: rotate(180deg);\n"])), spacings.nudge * 2, spacings.nudge);
106
-
107
- var Image = function (_a) {
108
- var className = _a.className,
109
- small = _a.small,
110
- medium = _a.medium,
111
- semilarge = _a.semilarge,
112
- large = _a.large,
113
- xlarge = _a.xlarge,
114
- alt = _a.alt,
115
- ratios = _a.ratios,
116
- coverSpace = _a.coverSpace,
117
- onClick = _a.onClick,
118
- isInverted = _a.isInverted,
119
- _b = _a.showPlaceholder,
120
- showPlaceholder = _b === void 0 ? true : _b,
121
- allowEdgeRadius = _a.allowEdgeRadius,
122
- copyright = _a.copyright;
123
- var colors = useLibTheme().colors;
124
- var imgRef = useRef(null);
125
-
126
- var _c = useState(false),
127
- isLoaded = _c[0],
128
- setIsLoaded = _c[1];
129
-
130
- useEffect(function () {
131
- if (!imgRef.current) return;
132
- var ref = imgRef.current;
133
-
134
- var handleLoad = function () {
135
- setIsLoaded(true);
136
- };
137
-
138
- var handleError = function () {
139
- setIsLoaded(false);
140
- };
141
-
142
- if (!ref.complete) {
143
- ref.addEventListener('load', handleLoad);
144
- ref.addEventListener('error', handleError);
145
- } else {
146
- ref.removeEventListener('load', handleLoad);
147
- ref.removeEventListener('error', handleError);
148
- handleLoad();
149
- }
150
-
151
- return function () {
152
- ref.removeEventListener('load', handleLoad);
153
- ref.removeEventListener('error', handleError);
154
- };
155
- }, []);
156
- return React.createElement(AspectContainer, {
157
- ratios: ratios,
158
- coverSpace: coverSpace,
159
- allowEdgeRadius: allowEdgeRadius,
160
- className: className
161
- }, React.createElement("picture", {
162
- onClick: onClick
163
- }, xlarge && React.createElement("source", {
164
- srcSet: xlarge,
165
- media: mq.xlarge
166
- }), large && React.createElement("source", {
167
- srcSet: large,
168
- media: mq.large
169
- }), semilarge && React.createElement("source", {
170
- srcSet: semilarge,
171
- media: mq.semilarge
172
- }), medium && React.createElement("source", {
173
- srcSet: medium,
174
- media: mq.medium
175
- }), React.createElement(Img, {
176
- ref: imgRef,
177
- "data-img-loaded": isLoaded,
178
- showPlaceholder: showPlaceholder,
179
- isInverted: isInverted,
180
- srcSet: small,
181
- alt: alt || '',
182
- loading: "lazy"
183
- })), copyright && React.createElement(Copyright, {
184
- size: "small",
185
- textColor: colors.text.inverted,
186
- innerHTML: "© ".concat(copyright),
187
- renderAs: "span"
188
- }));
189
- };
190
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
191
-
192
- export { Image as I };
193
- //# sourceMappingURL=Image-b538f659.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image-b538f659.js","sources":["../src/components/blocks/Image.tsx"],"sourcesContent":["import Copy from 'components/typography/Copy';\nimport * as React from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport styled, { css } from 'styled-components';\nimport { useLibTheme } from 'utils/LibThemeProvider';\nimport {\n mq,\n getColors as color,\n getGlobals as global,\n spacings,\n} from 'utils/styles';\n\nexport interface ImageAspectRatios {\n small: { w: number; h: number };\n medium?: { w: number; h: number };\n semilarge?: { w: number; h: number };\n large?: { w: number; h: number };\n xlarge?: { w: number; h: number };\n}\n\nexport interface ImageProps {\n /** Alternative text if image cannot be loaded */\n alt?: string;\n\n /** Image URL for small breakpoint */\n small: string;\n /** Image URL for medium breakpoint */\n medium?: string;\n /** Image URL for semilarge breakpoint */\n semilarge?: string;\n /** Image URL for large breakpoint */\n large?: string;\n /** Image URL for xlarge breakpoint */\n xlarge?: string;\n\n /** Cover full width of parent container */\n coverSpace?: boolean;\n\n /**\n * Image ratios for each breakpoint to avoid layout shifting.\n * Only works if coverSpace = true!\n * */\n ratios?: ImageAspectRatios;\n\n /** Show image placeholder background */\n showPlaceholder?: boolean;\n\n /** Image copyright text (richtext) */\n copyright?: string;\n}\n\nconst getAspectRatio = (width?: number, height?: number) => {\n if (!width || !height) return undefined;\n if (isNaN(width) || isNaN(height)) return undefined;\n\n return width / height;\n};\n\nconst isValid = (ratio?: { w?: number; h?: number }) => {\n return ratio && ratio?.w && ratio?.h ? true : false;\n};\n\nconst aspectFallback = (ratio?: { w?: number; h?: number }) => css`\n @supports not (aspect-ratio: auto) {\n height: 0;\n padding-top: ${isValid(ratio) &&\n `calc(100% / ${getAspectRatio(ratio?.w, ratio?.h)})`};\n }\n`;\n\nconst AspectContainer = styled.div<{\n ratios?: ImageAspectRatios;\n coverSpace?: boolean;\n allowEdgeRadius?: boolean;\n}>`\n display: inline-block;\n position: relative;\n border-radius: ${({ theme, allowEdgeRadius }) =>\n allowEdgeRadius && global(theme).sections.edgeRadius};\n overflow: hidden;\n\n aspect-ratio: ${({ ratios }) =>\n getAspectRatio(ratios?.small?.w, ratios?.small?.h)};\n\n width: ${({ ratios, coverSpace }) =>\n !coverSpace && ratios?.small?.w ? `${ratios?.small?.w}px` : ''};\n\n max-width: 100%;\n\n object-position: center;\n\n img {\n width: 100%;\n }\n\n ${({ coverSpace }) =>\n coverSpace &&\n css`\n width: 100%;\n\n img {\n object-fit: cover;\n }\n `}\n\n // fallback if browsers do not support aspect-ratio\n ${({ ratios, coverSpace }) => coverSpace && aspectFallback(ratios?.small)}\n\n @media ${mq.medium} {\n aspect-ratio: ${({ ratios }) =>\n getAspectRatio(ratios?.medium?.w, ratios?.medium?.h)};\n\n // fallback if browsers do not support aspect-ratio. (Only works with width = 100%)\n ${({ ratios, coverSpace }) =>\n coverSpace && aspectFallback(ratios?.medium)}\n }\n\n @media ${mq.semilarge} {\n aspect-ratio: ${({ ratios }) =>\n getAspectRatio(ratios?.semilarge?.w, ratios?.semilarge?.h)};\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ${({ ratios, coverSpace }) =>\n coverSpace && aspectFallback(ratios?.semilarge)}\n }\n\n @media ${mq.large} {\n aspect-ratio: ${({ ratios }) =>\n getAspectRatio(ratios?.large?.w, ratios?.large?.h)};\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ${({ ratios, coverSpace }) =>\n coverSpace && aspectFallback(ratios?.large)}\n }\n\n @media ${mq.xlarge} {\n aspect-ratio: ${({ ratios }) =>\n getAspectRatio(ratios?.xlarge?.w, ratios?.xlarge?.h)};\n\n // fallback if browsers do not support aspect-ratio (Only works with width = 100%)\n ${({ ratios, coverSpace }) =>\n coverSpace && aspectFallback(ratios?.xlarge)}\n }\n\n ${({ ratios, coverSpace }) =>\n ratios &&\n css`\n img {\n height: 100%;\n width: 100%;\n object-fit: ${coverSpace ? 'cover' : 'contain'};\n\n @supports not (aspect-ratio: auto) {\n position: ${coverSpace && 'absolute'};\n top: 0;\n left: 0;\n right: 0;\n }\n }\n `}\n`;\n\nconst Img = styled.img<{ isInverted?: boolean; showPlaceholder?: boolean }>`\n display: block;\n color: ${({ theme, isInverted }) =>\n isInverted ? color(theme).text.inverted : color(theme).text.default};\n\n &[data-img-loaded='false'] {\n background: ${({ theme, isInverted, showPlaceholder }) =>\n showPlaceholder\n ? isInverted\n ? global(theme).sections.imagePlaceholderBg.inverted\n : global(theme).sections.imagePlaceholderBg.default\n : undefined};\n }\n`;\n\nconst Copyright = styled(Copy)`\n display: inline-block;\n position: absolute;\n max-height: 100%;\n bottom: 0;\n right: 0;\n\n padding: ${spacings.nudge * 2}px ${spacings.nudge}px;\n\n pointer-events: none;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n -ms-writing-mode: tb-rl;\n writing-mode: vertical-rl;\n text-orientation: sideways-right;\n transform: rotate(180deg);\n`;\n\nconst Image: React.FC<\n {\n className?: string;\n\n /** Click handler */\n onClick?: () => void;\n\n /** Show inverted image placeholder background */\n isInverted?: boolean;\n\n /** Allow edge radius defined by theme settings */\n allowEdgeRadius?: boolean;\n } & ImageProps\n> = ({\n className,\n small,\n medium,\n semilarge,\n large,\n xlarge,\n alt,\n ratios,\n coverSpace,\n onClick,\n isInverted,\n showPlaceholder = true,\n allowEdgeRadius,\n copyright,\n}) => {\n const { colors } = useLibTheme();\n const imgRef = useRef<HTMLImageElement>(null);\n const [isLoaded, setIsLoaded] = useState<boolean>(false);\n\n useEffect(() => {\n if (!imgRef.current) return;\n const ref = imgRef.current;\n\n const handleLoad = () => {\n setIsLoaded(true);\n };\n\n const handleError = () => {\n setIsLoaded(false);\n };\n\n if (!ref.complete) {\n ref.addEventListener('load', handleLoad);\n ref.addEventListener('error', handleError);\n } else {\n ref.removeEventListener('load', handleLoad);\n ref.removeEventListener('error', handleError);\n handleLoad();\n }\n\n return () => {\n ref.removeEventListener('load', handleLoad);\n ref.removeEventListener('error', handleError);\n };\n }, []);\n\n return (\n <AspectContainer\n ratios={ratios}\n coverSpace={coverSpace}\n allowEdgeRadius={allowEdgeRadius}\n className={className}\n >\n <picture onClick={onClick}>\n {xlarge && <source srcSet={xlarge} media={mq.xlarge} />}\n {large && <source srcSet={large} media={mq.large} />}\n {semilarge && (\n <source srcSet={semilarge} media={mq.semilarge} />\n )}\n {medium && <source srcSet={medium} media={mq.medium} />}\n <Img\n ref={imgRef}\n data-img-loaded={isLoaded}\n showPlaceholder={showPlaceholder}\n isInverted={isInverted}\n srcSet={small}\n alt={alt || ''}\n loading=\"lazy\"\n />\n </picture>\n {copyright && (\n <Copyright\n size=\"small\"\n textColor={colors.text.inverted}\n innerHTML={`&copy; ${copyright}`}\n renderAs=\"span\"\n />\n )}\n </AspectContainer>\n );\n};\n\nexport default Image;\n"],"names":["getAspectRatio","width","height","undefined","isNaN","isValid","ratio","w","h","aspectFallback","css","templateObject_1","__makeTemplateObject","concat","AspectContainer","styled","div","templateObject_4","_a","theme","allowEdgeRadius","global","sections","edgeRadius","ratios","_b","small","_c","coverSpace","templateObject_2","mq","medium","semilarge","large","xlarge","templateObject_3","Img","img","templateObject_5","isInverted","color","text","inverted","default","showPlaceholder","imagePlaceholderBg","Copyright","Copy","templateObject_6","spacings","nudge","Image","className","alt","onClick","copyright","colors","useLibTheme","imgRef","useRef","useState","isLoaded","setIsLoaded","useEffect","current","ref","handleLoad","handleError","complete","addEventListener","removeEventListener","React","createElement","srcSet","media","loading","size","textColor","innerHTML","renderAs"],"mappings":";;;;;;;;AAmDA,IAAMA,cAAc,GAAG,UAACC,KAAD,EAAiBC,MAAjB,EAAgC;AACnD,EAAA,IAAI,CAACD,KAAD,IAAU,CAACC,MAAf,EAAuB,OAAOC,SAAP,CAAA;AACvB,EAAIC,IAAAA,KAAK,CAACH,KAAD,CAAL,IAAgBG,KAAK,CAACF,MAAD,CAAzB,EAAmC,OAAOC,SAAP,CAAA;AAEnC,EAAOF,OAAAA,KAAK,GAAGC,MAAf,CAAA;AACH,CALD,CAAA;;AAOA,IAAMG,OAAO,GAAG,UAACC,KAAD,EAAmC;AAC/C,EAAA,OAAOA,KAAK,KAAIA,KAAK,KAAL,IAAA,IAAAA,KAAK,KAAL,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,KAAK,CAAEC,CAAX,CAAL,KAAqBD,KAAK,KAAA,IAAL,IAAAA,KAAK,KAAA,KAAA,CAAL,GAAK,KAAA,CAAL,GAAAA,KAAK,CAAEE,CAA5B,CAAgC,GAAA,IAAhC,GAA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AAR,EAAQ;AAAAC,IAAAA,MAAM,EAAE1C,MAAR;AAAgB2C,IAAAA,KAAK,EAAE5C,EAAE,CAACC,MAAAA;AAA1B,GAAR,CANf,EAOIwC,KAAA,CAAAC,aAAA,CAACpC,GAAD,EAAI;AACA6B,IAAAA,GAAG,EAAEP,MADL;AACW,IAAA,iBAAA,EACMG,QAFjB;AAGAjB,IAAAA,eAAe,EAAEA,eAHjB;AAIAL,IAAAA,UAAU,EAAEA,UAJZ;AAKAkC,IAAAA,MAAM,EAAE/C,KALR;AAMA2B,IAAAA,GAAG,EAAEA,GAAG,IAAI,EANZ;AAOAsB,IAAAA,OAAO,EAAC,MAAA;AAPR,GAAJ,CAPJ,CANJ,EAuBKpB,SAAS,IACNgB,KAAC,CAAAC,aAAD,CAAC1B,SAAD,EACI;AAAA8B,IAAAA,IAAI,EAAC,OAAL;AACAC,IAAAA,SAAS,EAAErB,MAAM,CAACf,IAAP,CAAYC,QADvB;AAEAoC,IAAAA,SAAS,EAAE,SAAA,CAAUjE,MAAV,CAAU0C,SAAV,CAFX;AAGAwB,IAAAA,QAAQ,EAAC,MAAA;AAHT,GADJ,CAxBR,CADJ,CAAA;AAkCH,EA9FD;;;;;"}
@@ -1,74 +0,0 @@
1
- import { a as __makeTemplateObject } from './ClockFilled-6bae80dc.js';
2
- import { C as Copy } from './Copy-fb124972.js';
3
- import React__default from 'react';
4
- import styled from 'styled-components';
5
- import { i as isValidArray } from './arrays-65b644ef.js';
6
- import { s as spacings, m as mq } from './styles-f6c54818.js';
7
-
8
- var View = styled.div.withConfig({
9
- displayName: "InfoList__View",
10
- componentId: "sc-1bggeo0-0"
11
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
12
- var Container = styled.ul.withConfig({
13
- displayName: "InfoList__Container",
14
- componentId: "sc-1bggeo0-1"
15
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n margin: 0;\n padding: 0;\n margin-left: -", "px;\n margin-top: -", "px;\n list-style: none;\n"], ["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n margin: 0;\n padding: 0;\n margin-left: -", "px;\n margin-top: -", "px;\n list-style: none;\n"])), spacings.spacer, spacings.nudge * 5);
16
- var Item = styled.li.withConfig({
17
- displayName: "InfoList__Item",
18
- componentId: "sc-1bggeo0-2"
19
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex: 1 1 100%;\n padding-left: ", "px;\n padding-top: ", "px;\n\n @media ", " {\n flex: 1 1 300px;\n }\n"], ["\n flex: 1 1 100%;\n padding-left: ", "px;\n padding-top: ", "px;\n\n @media ", " {\n flex: 1 1 300px;\n }\n"])), spacings.spacer, spacings.nudge * 5, mq.medium);
20
- var Title = styled(Copy).withConfig({
21
- displayName: "InfoList__Title",
22
- componentId: "sc-1bggeo0-3"
23
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: block;\n margin-bottom: ", "px;\n"], ["\n display: block;\n margin-bottom: ", "px;\n"])), spacings.nudge * 3);
24
- var Infos = styled.ul.withConfig({
25
- displayName: "InfoList__Infos",
26
- componentId: "sc-1bggeo0-4"
27
- })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n padding: 0;\n"], ["\n list-style: none;\n margin: 0;\n padding: 0;\n"])));
28
- var Content = styled.li.withConfig({
29
- displayName: "InfoList__Content",
30
- componentId: "sc-1bggeo0-5"
31
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: -ms-grid;\n display: grid;\n margin: 0;\n\n -ms-grid-columns: min-content 1fr;\n grid-template-columns: min-content 1fr;\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n & + & {\n margin-top: ", "px;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: -ms-grid;\n display: grid;\n margin: 0;\n\n -ms-grid-columns: min-content 1fr;\n grid-template-columns: min-content 1fr;\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n & + & {\n margin-top: ", "px;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2, spacings.nudge * 2);
32
- var Icon = styled(Copy).withConfig({
33
- displayName: "InfoList__Icon",
34
- componentId: "sc-1bggeo0-6"
35
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 20px;\n width: 20px;\n\n & > * {\n height: 20px;\n width: 20px;\n }\n"], ["\n height: 20px;\n width: 20px;\n\n & > * {\n height: 20px;\n width: 20px;\n }\n"])));
36
-
37
- var InfoList = function (_a) {
38
- var isInverted = _a.isInverted,
39
- items = _a.items,
40
- className = _a.className;
41
- return React__default.createElement(View, {
42
- className: className
43
- }, React__default.createElement(Container, null, items === null || items === void 0 ? void 0 : items.map(function (group, i) {
44
- var _a;
45
-
46
- var groupItems = ((_a = group === null || group === void 0 ? void 0 : group.items) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
47
- return item.text;
48
- })) || [];
49
- var hasItems = isValidArray(groupItems, false);
50
- return React__default.createElement(Item, {
51
- key: i
52
- }, group.title && React__default.createElement(Title, {
53
- size: "small",
54
- type: "copy-b",
55
- renderAs: "span",
56
- isInverted: isInverted
57
- }, group.title), hasItems && React__default.createElement(Infos, null, groupItems.map(function (info, ii) {
58
- return React__default.createElement(Content, {
59
- key: ii
60
- }, React__default.createElement(Icon, {
61
- isInverted: isInverted
62
- }, info.icon && info.icon(isInverted)), info.text && React__default.createElement(Copy, {
63
- size: "small",
64
- isInverted: isInverted,
65
- innerHTML: info.text,
66
- allowLinkIcons: false
67
- }));
68
- })));
69
- })));
70
- };
71
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
72
-
73
- export { InfoList as I };
74
- //# sourceMappingURL=InfoList-616d17fd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InfoList-616d17fd.js","sources":["../src/components/blocks/InfoList.tsx"],"sourcesContent":["import Copy from 'components/typography/Copy';\nimport React, { FC } from 'react';\nimport styled from 'styled-components';\nimport { isValidArray } from 'utils/arrays';\n\nimport { mq, spacings } from 'utils/styles';\n\nconst View = styled.div``;\n\nconst Container = styled.ul`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n\n margin: 0;\n padding: 0;\n margin-left: -${spacings.spacer}px;\n margin-top: -${spacings.nudge * 5}px;\n list-style: none;\n`;\n\nconst Item = styled.li`\n flex: 1 1 100%;\n padding-left: ${spacings.spacer}px;\n padding-top: ${spacings.nudge * 5}px;\n\n @media ${mq.medium} {\n flex: 1 1 300px;\n }\n`;\n\nconst Title = styled(Copy)`\n display: block;\n margin-bottom: ${spacings.nudge * 3}px;\n`;\n\nconst Infos = styled.ul`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nconst Content = styled.li`\n display: -ms-grid;\n display: grid;\n margin: 0;\n\n -ms-grid-columns: min-content 1fr;\n grid-template-columns: min-content 1fr;\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n & + & {\n margin-top: ${spacings.nudge * 2}px;\n }\n\n & > * + * {\n margin-left: ${spacings.nudge * 2}px;\n }\n`;\n\nconst Icon = styled(Copy)`\n height: 20px;\n width: 20px;\n\n & > * {\n height: 20px;\n width: 20px;\n }\n`;\n\nexport interface InfoGroup {\n title?: string;\n items: Info[];\n}\n\nexport interface Info {\n /** icon injection function */\n icon?: (isInverted?: boolean) => React.ReactNode;\n /** info text (richtText) */\n text?: string;\n}\n\nconst InfoList: FC<{\n /** Invert text and icon color for dark backgrounds */\n isInverted?: boolean;\n\n /** Array of info groups */\n items?: InfoGroup[];\n\n className?: string;\n}> = ({ isInverted, items, className }) => {\n return (\n <View className={className}>\n <Container>\n {items?.map((group, i) => {\n const groupItems =\n group?.items?.filter((item) => item.text) || [];\n const hasItems = isValidArray(groupItems, false);\n\n return (\n <Item key={i}>\n {group.title && (\n <Title\n size=\"small\"\n type=\"copy-b\"\n renderAs=\"span\"\n isInverted={isInverted}\n >\n {group.title}\n </Title>\n )}\n {hasItems && (\n <Infos>\n {groupItems.map((info, ii) => (\n <Content key={ii}>\n <Icon isInverted={isInverted}>\n {info.icon &&\n info.icon(isInverted)}\n </Icon>\n {info.text && (\n <Copy\n size=\"small\"\n isInverted={isInverted}\n innerHTML={info.text}\n allowLinkIcons={false}\n />\n )}\n </Content>\n ))}\n </Infos>\n )}\n </Item>\n );\n })}\n </Container>\n </View>\n );\n};\n\nexport default InfoList;\n"],"names":["View","styled","div","templateObject_1","__makeTemplateObject","Container","ul","templateObject_2","spacings","spacer","nudge","Item","li","templateObject_3","mq","medium","Title","Copy","templateObject_4","Infos","templateObject_5","Content","Icon","templateObject_7","InfoList","_a","isInverted","items","className","React","createElement","map","group","i","groupItems","filter","item","text","hasItems","isValidArray","key","title","size","type","renderAs","info","ii","icon","innerHTML","allowLinkIcons"],"mappings":";;;;;;;AAOA,IAAMA,IAAI,GAAGC,MAAM,CAACC,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,gBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAA,CAAA,CAAaC,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,EAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,CAAb,CAAV,CAAA;AAEA,IAAMC,SAAS,GAAGJ,MAAM,CAACK,EAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,qBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAA,CAAA,CAAYC,gBAAA,KAAAA,gBAAA,GAAAH,oBAAA,CAAA,CAAA,6HAAA,EAAA,wBAAA,EAAA,8BAAA,CAAA,EAAA,CAAA,6HAAA,EAOQ,wBAPR,EAQU,8BARV,CAAA,CAAA,CAAZ,EAOKI,QAAQ,CAACC,MAPd,EAQID,QAAQ,CAACE,KAAT,GAAiB,CARrB,CAAf,CAAA;AAYA,IAAMC,IAAI,GAAGV,MAAM,CAACW,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AC,aAAD,CAACnB,IAAD,EAAM;AAAA6B,MAAAA,GAAG,EAAEP,CAAAA;AAAL,KAAN,EACKD,KAAK,CAACS,KAAN,IACGZ,cAAA,CAAAC,aAAA,CAACd,KAAD,EAAM;AACF0B,MAAAA,IAAI,EAAC,OADH;AAEFC,MAAAA,IAAI,EAAC,QAFH;AAGFC,MAAAA,QAAQ,EAAC,MAHP;AAIFlB,MAAAA,UAAU,EAAEA,UAAAA;AAJV,KAAN,EAMKM,KAAK,CAACS,KANX,CAFR,EAWKH,QAAQ,IACLT,cAAC,CAAAC,aAAD,CAACX,KAAD,MAAA,EACKe,UAAU,CAACH,GAAX,CAAe,UAACc,IAAD,EAAOC,EAAP;AAAc,MAAA,OAC1BjB,4BAAA,CAACR,OAAD,EAAQ;AAACmB,QAAAA,GAAG,EAAEM,EAAAA;AAAN,OAAR,EACIjB,cAAC,CAAAC,aAAD,CAACR,IAAD;AAAMI,QAAAA,UAAU,EAAEA,UAAAA;OAAlB,EACKmB,IAAI,CAACE,IAAL,IACGF,IAAI,CAACE,IAAL,CAAUrB,UAAV,CAFR,CADJ,EAKKmB,IAAI,CAACR,IAAL,IACGR,4BAAA,CAACZ,IAAD,EAAK;AACDyB,QAAAA,IAAI,EAAC,OADJ;AAEDhB,QAAAA,UAAU,EAAEA,UAFX;AAGDsB,QAAAA,SAAS,EAAEH,IAAI,CAACR,IAHf;AAIDY,QAAAA,cAAc,EAAE,KAAA;AAJf,OAAL,CANR,CAD0B,CAAA;AAe7B,KAfA,CADL,CAZR,CADJ,CAAA;AAkCH,GAvCA,CADL,CADJ,CADJ,CAAA;AA8CH,EAvDD;;;;;"}
@@ -1,70 +0,0 @@
1
- import { a as __makeTemplateObject, _ as __assign } from './ClockFilled-6bae80dc.js';
2
- import React__default from 'react';
3
- import styled from 'styled-components';
4
- import { L as Link } from './Link-0a1e35d6.js';
5
- import { s as spacings, g as getColors } from './styles-f6c54818.js';
6
- import { c as copyStyle } from './Copy-fb124972.js';
7
-
8
- var View = styled.div.withConfig({
9
- displayName: "LanguageSwitcher__View",
10
- componentId: "sc-16ygxbi-0"
11
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), spacings.nudge / 2);
12
- var Icon = styled.div.withConfig({
13
- displayName: "LanguageSwitcher__Icon",
14
- componentId: "sc-16ygxbi-1"
15
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n\n & > * {\n margin-right: ", "px;\n }\n"], ["\n color: ", ";\n\n & > * {\n margin-right: ", "px;\n }\n"])), function (_a) {
16
- var isInverted = _a.isInverted,
17
- theme = _a.theme;
18
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
19
- }, spacings.nudge);
20
- var SelectView = styled.div.withConfig({
21
- displayName: "LanguageSwitcher__SelectView",
22
- componentId: "sc-16ygxbi-2"
23
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n margin: 0 -", "px;\n\n & > * + * {\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 3px;\n left: 0;\n height: 1em;\n width: 2px;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n }\n }\n"], ["\n display: inline-flex;\n align-items: center;\n margin: 0 -", "px;\n\n & > * + * {\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 3px;\n left: 0;\n height: 1em;\n width: 2px;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n }\n }\n"])), spacings.nudge, function (_a) {
24
- var isInverted = _a.isInverted,
25
- theme = _a.theme;
26
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
27
- });
28
- var LanguageLink = styled(Link).withConfig({
29
- displayName: "LanguageSwitcher__LanguageLink",
30
- componentId: "sc-16ygxbi-3"
31
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n padding: 0 ", "px;\n\n ", "\n font-weight: ", ";\n\n color: ", ";\n text-decoration: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n display: inline-block;\n position: relative;\n padding: 0 ", "px;\n\n ", "\n font-weight: ", ";\n\n color: ", ";\n text-decoration: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), spacings.nudge, function (_a) {
32
- var size = _a.size;
33
- return copyStyle('copy', size || 'medium');
34
- }, function (_a) {
35
- var isActive = _a.isActive;
36
- return isActive && '700';
37
- }, function (_a) {
38
- var isInverted = _a.isInverted,
39
- theme = _a.theme;
40
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
41
- }, function (_a) {
42
- var isInverted = _a.isInverted,
43
- theme = _a.theme;
44
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
45
- });
46
-
47
- var LanguageSwitcher = function (_a) {
48
- var langs = _a.langs,
49
- isInverted = _a.isInverted,
50
- languageIcon = _a.languageIcon,
51
- _b = _a.textSize,
52
- textSize = _b === void 0 ? 'medium' : _b;
53
- return React__default.createElement(View, null, languageIcon && React__default.createElement(Icon, {
54
- isInverted: isInverted
55
- }, languageIcon(isInverted)), React__default.createElement(SelectView, {
56
- isInverted: isInverted
57
- }, langs === null || langs === void 0 ? void 0 : langs.map(function (lang, i) {
58
- return React__default.createElement(LanguageLink, __assign({
59
- key: i
60
- }, lang.link, {
61
- isInverted: isInverted,
62
- isActive: lang.isActive,
63
- size: textSize
64
- }), lang.label);
65
- })));
66
- };
67
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
68
-
69
- export { LanguageSwitcher as L };
70
- //# sourceMappingURL=LanguageSwitcher-058e0145.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LanguageSwitcher-058e0145.js","sources":["../src/components/blocks/LanguageSwitcher.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport Link, { LinkProps } from 'components/typography/Link';\nimport { spacings, getColors as color, FontOptions } from 'utils/styles';\nimport { copyStyle } from 'components/typography/Copy';\n\nconst View = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ${spacings.nudge / 2}px;\n }\n`;\n\nconst Icon = styled.div<{ isInverted?: boolean }>`\n color: ${({ isInverted, theme }) =>\n isInverted ? color(theme).text.inverted : color(theme).text.default};\n\n & > * {\n margin-right: ${spacings.nudge}px;\n }\n`;\n\nconst SelectView = styled.div<{ isInverted?: boolean }>`\n display: inline-flex;\n align-items: center;\n margin: 0 -${spacings.nudge}px;\n\n & > * + * {\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 3px;\n left: 0;\n height: 1em;\n width: 2px;\n background-color: ${({ isInverted, theme }) =>\n isInverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n\n transition: background-color 0.2s ease-in-out;\n }\n }\n`;\n\nconst LanguageLink = styled(Link)<{\n isInverted?: boolean;\n isActive?: boolean;\n size?: keyof FontOptions;\n}>`\n display: inline-block;\n position: relative;\n padding: 0 ${spacings.nudge}px;\n\n ${({ size }) => copyStyle('copy', size || 'medium')}\n font-weight: ${({ isActive }) => isActive && '700'};\n\n color: ${({ isInverted, theme }) =>\n isInverted ? color(theme).text.inverted : color(theme).text.default};\n text-decoration: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ${({ isInverted, theme }) =>\n isInverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n text-decoration: underline;\n }\n }\n`;\n\nexport interface Language {\n isActive?: boolean;\n label: string;\n link: LinkProps;\n}\n\nconst LanguageSwitcher: FC<{\n langs?: Language[];\n isInverted?: boolean;\n languageIcon?: (isInverted?: boolean) => React.ReactNode;\n textSize?: keyof FontOptions;\n}> = ({ langs, isInverted, languageIcon, textSize = 'medium' }) => {\n return (\n <View>\n {languageIcon && (\n <Icon isInverted={isInverted}>{languageIcon(isInverted)}</Icon>\n )}\n <SelectView isInverted={isInverted}>\n {langs?.map((lang, i) => (\n <LanguageLink\n key={i}\n {...lang.link}\n isInverted={isInverted}\n isActive={lang.isActive}\n size={textSize}\n >\n {lang.label}\n </LanguageLink>\n ))}\n </SelectView>\n </View>\n );\n};\n\nexport default LanguageSwitcher;\n"],"names":["View","styled","div","spacings","nudge","Icon","templateObject_2","__makeTemplateObject","_a","isInverted","theme","color","text","inverted","default","SelectView","LanguageLink","Link","templateObject_4","size","copyStyle","isActive","LanguageSwitcher","langs","languageIcon","_b","textSize","React","createElement","map","lang","i","__assign","key","link","label"],"mappings":";;;;;;;AAOA,IAAMA,IAAI,GAAGC,MAAM,CAACC,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,wBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,yMAAa,sHAMkB,iBAN/B,EAMaC,QAAQ,CAACC,KAAT,GAAiB,CAN9B,CAAV,CAAA;AAUA,IAAMC,IAAI,GAAGJ,MAAM,CAACC,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,wBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAaI,CAAAA,CAAAA,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,eAAA,EAAA,0CAAA,EAAA,cAAA,CAAA,EAAA,CAA0B,eAA1B,EAEoD,0CAFpD,EAKe,cALf,CAAA,CAAA,CAAb,EACG,UAACC,EAAD,EAAsB;MAAnBC,UAAU,GAAAD,EAAA,CAAAC;MAAEC,KAAK,GAAAF,EAAA,CAAAE;AACzB,EAAA,OAAAD,UAAU,GAAGE,SAAK,CAACD,KAAD,CAAL,CAAaE,IAAb,CAAkBC,QAArB,GAAgCF,SAAK,CAACD,KAAD,CAAL,CAAaE,IAAb,CAAkBE,OAA5D,CAAA;AAAmE,CAFjE,EAKcX,QAAQ,CAACC,KALvB,CAAV,CAAA;AAS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AACC,IAAD,EAAOC,CAAP,EAAa;AAAA,IAAA,OACrBJ,cAAA,CAAAC,aAAA,CAACZ,YAAD,EAAagB,QAAA,CAAA;AACTC,MAAAA,GAAG,EAAEF,CAAAA;AADI,KAAA,EAELD,IAAI,CAACI,IAFA,EAGT;AAAAzB,MAAAA,UAAU,EAAEA,UAAZ;AACAY,MAAAA,QAAQ,EAAES,IAAI,CAACT,QADf;AAEAF,MAAAA,IAAI,EAAEO,QAAAA;AAFN,KAHS,CAAb,EAOKI,IAAI,CAACK,KAPV,CADqB,CAAA;AAUxB,GAVA,CADL,CAJJ,CADJ,CAAA;AAoBH,EA1BD;;;;;"}
@@ -1,115 +0,0 @@
1
- import { d as __rest, _ as __assign, e as __spreadArray } from './ClockFilled-6bae80dc.js';
2
- import React__default from 'react';
3
- import { useTheme, ThemeProvider } from 'styled-components';
4
- import { g as getColors, a as getFonts, c as getGlobals, d as getTheme, b as baseTheme } from './styles-f6c54818.js';
5
-
6
- /**
7
- * Assigning font base key values to theme. Searches for each font base object key inside target theme object and replacing the values
8
- * @param target Combined result object
9
- * @param source FontBase object with properties that should by overritten.
10
- */
11
-
12
- var assignFontBase = function (target, source) {
13
- if (!source) return target; // deep iterate through target and search matching key
14
-
15
- var assign = function (target, key, value) {
16
- Object.keys(target).forEach(function (tKey) {
17
- // check if target value is an object and no array
18
- if (target[tKey] && typeof target[tKey] === 'object' && !Array.isArray(target[tKey])) {
19
- target[tKey] = assign(target[tKey], key, value);
20
- } else if (key === tKey) {
21
- target[tKey] = value;
22
- }
23
- });
24
- return target;
25
- }; // search each base key and replace values
26
-
27
-
28
- Object.keys(source).forEach(function (sKey) {
29
- if (source[sKey]) target.fonts.types = assign(target.fonts.types, sKey, source[sKey]);
30
- });
31
- return target;
32
- };
33
- /**
34
- * Combining Theme objects
35
- * @param target Result theme object
36
- * @param source Theme object that should be assigned to target
37
- */
38
-
39
-
40
- var assignTo = function (target, source) {
41
- var output = __assign({}, target);
42
-
43
- if (!source) return output;
44
- Object.keys(source).forEach(function (key) {
45
- var sourceVal = source[key];
46
- var targetVal = target[key];
47
-
48
- if (targetVal && sourceVal && typeof targetVal === 'object' && typeof sourceVal === 'object') {
49
- // console.log(key, sourceVal, targetVal);
50
- if (Array.isArray(sourceVal)) {
51
- output[key] = __spreadArray([], sourceVal, true);
52
- } else {
53
- output[key] = assignTo(targetVal, sourceVal);
54
- }
55
- } else if (sourceVal) {
56
- output[key] = sourceVal;
57
- }
58
- });
59
- return output;
60
- };
61
- var LibThemeProvider = function (_a) {
62
- var theme = _a.theme,
63
- children = _a.children;
64
- var ctx = useTheme();
65
-
66
- if (theme) {
67
- var newTheme = modifyTheme(ctx, theme);
68
- return React__default.createElement(ThemeProvider, {
69
- theme: newTheme
70
- }, children);
71
- } else {
72
- return React__default.createElement(React__default.Fragment, null, children);
73
- }
74
- };
75
- var modifyTheme = function (activeTheme, modifications) {
76
- var _a, _b; // asigning base font to all settings on top of base theme. If base fonts are undefined return base theme
77
-
78
-
79
- var combinedBaseTheme = assignFontBase(baseTheme, (_a = activeTheme === null || activeTheme === void 0 ? void 0 : activeTheme.fonts) === null || _a === void 0 ? void 0 : _a.base); // adding base theme to active theme context if possible
80
-
81
- var combinedTheme = activeTheme ? assignTo(combinedBaseTheme, activeTheme) : combinedBaseTheme; // adding additional base font styles and other settings to theme
82
-
83
- var newTheme = combinedTheme;
84
-
85
- if (modifications) {
86
- newTheme = assignFontBase(combinedTheme, (_b = modifications === null || modifications === void 0 ? void 0 : modifications.fonts) === null || _b === void 0 ? void 0 : _b.base);
87
- newTheme = assignTo(newTheme, modifications);
88
- }
89
-
90
- return newTheme;
91
- };
92
- var useLibTheme = function () {
93
- var theme = useTheme();
94
- return {
95
- colors: getColors(theme),
96
- fonts: getFonts(theme),
97
- globals: getGlobals(theme),
98
- theme: getTheme(theme)
99
- };
100
- };
101
- var withLibTheme = function (Component) {
102
- return function (_a) {
103
- var theme = _a.theme,
104
- props = __rest(_a, ["theme"]);
105
-
106
- var ctx = useTheme();
107
- var newTheme = modifyTheme(ctx, theme);
108
- return React__default.createElement(ThemeProvider, {
109
- theme: newTheme
110
- }, React__default.createElement(Component, __assign({}, props)));
111
- };
112
- };
113
-
114
- export { LibThemeProvider as L, assignTo as a, modifyTheme as m, useLibTheme as u, withLibTheme as w };
115
- //# sourceMappingURL=LibThemeProvider-a38c5bf1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LibThemeProvider-a38c5bf1.js","sources":["../src/utils/LibThemeProvider.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport React, { FC } from 'react';\nimport { DefaultTheme, ThemeProvider, useTheme } from 'styled-components';\nimport {\n FontBase,\n baseTheme,\n getColors,\n getFonts,\n getGlobals,\n getTheme,\n} from 'utils/styles';\nimport { RecursivePartial } from './types';\n\nexport type ThemeMods = RecursivePartial<DefaultTheme>;\n\n/**\n * Assigning font base key values to theme. Searches for each font base object key inside target theme object and replacing the values\n * @param target Combined result object\n * @param source FontBase object with properties that should by overritten.\n */\nconst assignFontBase = (\n target: DefaultTheme,\n source?: RecursivePartial<FontBase>\n) => {\n if (!source) return target;\n\n // deep iterate through target and search matching key\n const assign = (target: any, key: string, value: string) => {\n Object.keys(target).forEach((tKey) => {\n // check if target value is an object and no array\n if (\n target[tKey] &&\n typeof target[tKey] === 'object' &&\n !Array.isArray(target[tKey])\n ) {\n target[tKey] = assign(target[tKey], key, value);\n } else if (key === tKey) {\n target[tKey] = value;\n }\n });\n return target;\n };\n\n // search each base key and replace values\n Object.keys(source).forEach((sKey) => {\n if (source[sKey])\n target.fonts.types = assign(target.fonts.types, sKey, source[sKey]);\n });\n return target;\n};\n\n/**\n * Combining Theme objects\n * @param target Result theme object\n * @param source Theme object that should be assigned to target\n */\nexport const assignTo = <T extends ThemeMods | DefaultTheme>(\n target: T,\n source?: ThemeMods\n) => {\n const output = { ...target };\n if (!source) return output as T;\n\n Object.keys(source).forEach((key) => {\n const sourceVal = source[key];\n const targetVal = target[key];\n\n if (\n targetVal &&\n sourceVal &&\n typeof targetVal === 'object' &&\n typeof sourceVal === 'object'\n ) {\n // console.log(key, sourceVal, targetVal);\n if (Array.isArray(sourceVal)) {\n output[key] = [...sourceVal];\n } else {\n output[key] = assignTo(targetVal, sourceVal);\n }\n } else if (sourceVal) {\n output[key] = sourceVal;\n }\n });\n return output as T;\n};\n\nexport const LibThemeProvider: FC<{\n theme?: ThemeMods;\n children?: React.ReactNode;\n}> = ({ theme, children }) => {\n const ctx = useTheme();\n\n if (theme) {\n const newTheme = modifyTheme(ctx, theme);\n\n return <ThemeProvider theme={newTheme}>{children}</ThemeProvider>;\n } else {\n return <React.Fragment>{children}</React.Fragment>;\n }\n};\n\ninterface WithLibThemeProps {\n theme?: ThemeMods;\n}\n\nexport const modifyTheme = (\n activeTheme?: DefaultTheme,\n modifications?: ThemeMods\n) => {\n // asigning base font to all settings on top of base theme. If base fonts are undefined return base theme\n const combinedBaseTheme = assignFontBase(\n baseTheme,\n activeTheme?.fonts?.base\n );\n\n // adding base theme to active theme context if possible\n const combinedTheme = activeTheme\n ? assignTo(combinedBaseTheme, activeTheme)\n : combinedBaseTheme;\n\n // adding additional base font styles and other settings to theme\n let newTheme = combinedTheme;\n if (modifications) {\n newTheme = assignFontBase(combinedTheme, modifications?.fonts?.base);\n newTheme = assignTo(newTheme, modifications);\n }\n\n return newTheme;\n};\n\nexport const useLibTheme = () => {\n const theme = useTheme();\n\n return {\n colors: getColors(theme),\n fonts: getFonts(theme),\n globals: getGlobals(theme),\n theme: getTheme(theme),\n };\n};\n\nexport const withLibTheme =\n <P extends Record<string, unknown>>(\n Component: React.ComponentType<P>\n ): React.FC<\n P & {\n /** Component specific theme properties that overrides global theme settings */\n theme?: ThemeMods;\n }\n > =>\n ({ theme, ...props }: WithLibThemeProps) => {\n const ctx = useTheme();\n const newTheme = modifyTheme(ctx, theme);\n\n return (\n <ThemeProvider theme={newTheme}>\n <Component {...(props as P)} />\n </ThemeProvider>\n );\n };\n"],"names":["assignFontBase","target","source","assign","key","value","Object","keys","forEach","tKey","Array","isArray","sKey","fonts","types","assignTo","output","__assign","sourceVal","targetVal","__spreadArray","LibThemeProvider","_a","theme","children","ctx","useTheme","newTheme","modifyTheme","React","createElement","ThemeProvider","Fragment","activeTheme","modifications","combinedBaseTheme","baseTheme","base","combinedTheme","_b","useLibTheme","colors","getColors","getFonts","globals","getGlobals","getTheme","withLibTheme","Component","props","__rest"],"mappings":";;;;;AAeA;;;;AAIG;;AACH,IAAMA,cAAc,GAAG,UACnBC,MADmB,EAEnBC,MAFmB,EAEgB;AAEnC,EAAA,IAAI,CAACA,MAAL,EAAa,OAAOD,MAAP,CAFsB;;AAKnC,EAAME,IAAAA,MAAM,GAAG,UAACF,MAAD,EAAcG,GAAd,EAA2BC,KAA3B,EAAwC;AACnDC,IAAAA,MAAM,CAACC,IAAP,CAAYN,MAAZ,EAAoBO,OAApB,CAA4B,UAACC,IAAD,EAAK;AAC7B;AACA,MACIR,IAAAA,MAAM,CAACQ,IAAD,CAAN,IACA,OAAOR,MAAM,CAACQ,IAAD,CAAb,KAAwB,QADxB,IAEA,CAACC,KAAK,CAACC,OAAN,CAAcV,MAAM,CAACQ,IAAD,CAApB,CAHL,EAIE;AACER,QAAAA,MAAM,CAACQ,IAAD,CAAN,GAAeN,MAAM,CAACF,MAAM,CAACQ,IAAD,CAAP,EAAeL,GAAf,EAAoBC,KAApB,CAArB,CAAA;AACH,OAND,MAMO,IAAID,GAAG,KAAKK,IAAZ,EAAkB;AACrBR,QAAAA,MAAM,CAACQ,IAAD,CAAN,GAAeJ,KAAf,CAAA;AACH,OAAA;AACJ,KAXD,CAAA,CAAA;AAYA,IAAA,OAAOJ,MAAP,CAAA;AACH,GAdD,CALmC;;;AAsBnCK,EAAAA,MAAM,CAACC,IAAP,CAAYL,MAAZ,EAAoBM,OAApB,CAA4B,UAACI,IAAD,EAAK;AAC7B,IAAIV,IAAAA,MAAM,CAACU,IAAD,CAAV,EACIX,MAAM,CAACY,KAAP,CAAaC,KA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AAtB,GAAsB,KAAA,CAAtB,GAAsBA,EAAA,CAAAF,IAAtC,CAAzB,CAAA;AACAV,IAAAA,QAAQ,GAAGZ,QAAQ,CAACY,QAAD,EAAWO,aAAX,CAAnB,CAAA;AACH,GAAA;;AAED,EAAA,OAAOP,QAAP,CAAA;AACH,EAvBM;AAyBA,IAAMa,WAAW,GAAG,YAAA;AACvB,EAAMjB,IAAAA,KAAK,GAAGG,QAAQ,EAAtB,CAAA;AAEA,EAAO,OAAA;AACHe,IAAAA,MAAM,EAAEC,SAAS,CAACnB,KAAD,CADd;AAEHV,IAAAA,KAAK,EAAE8B,QAAQ,CAACpB,KAAD,CAFZ;AAGHqB,IAAAA,OAAO,EAAEC,UAAU,CAACtB,KAAD,CAHhB;AAIHA,IAAAA,KAAK,EAAEuB,QAAQ,CAACvB,KAAD,CAAA;AAJZ,GAAP,CAAA;AAMH,EATM;AAWMwB,IAAAA,YAAY,GACrB,UACIC,SADJ,EACqC;AAOrC,EAAA,OAAA,UAAC1B,EAAD,EAAuC;AAApC,IAAA,IAAAC,KAAK,GAAAD,EAAA,CAAAC,KAAL;AAAA,QAAU0B,KAAK,GAAAC,MAAA,CAAA5B,EAAA,EAAjB,QAAA,CAAiB,CAAf,CAAA;;AACC,IAAMG,IAAAA,GAAG,GAAGC,QAAQ,EAApB,CAAA;AACA,IAAA,IAAMC,QAAQ,GAAGC,WAAW,CAACH,GAAD,EAAMF,KAAN,CAA5B,CAAA;AAEA,IAAA,OACIM,cAAC,CAAAC,aAAD,CAACC,aAAD,EAAe;AAAAR,MAAAA,KAAK,EAAEI,QAAAA;AAAP,KAAf,EACIE,cAAA,CAAAC,aAAA,CAACkB,SAAD,EAAgB/B,QAAA,CAAA,EAAA,EAAAgC,KAAA,CAAhB,CADJ,CADJ,CAAA;AAKH,GATD,CAAA;AASC;;;;"}
@@ -1,60 +0,0 @@
1
- import { a as __makeTemplateObject } from './ClockFilled-6bae80dc.js';
2
- import React__default, { forwardRef } from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { a as getFonts } from './styles-f6c54818.js';
5
-
6
- var linkStyles = function (isInverted) {
7
- return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n\n transition: color 0.2s ease-in-out;\n\n outline: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n\n &:focus {\n outline: 1px dashed\n ", ";\n outline-offset: 1px;\n }\n"], ["\n color: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n\n transition: color 0.2s ease-in-out;\n\n outline: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n\n &:focus {\n outline: 1px dashed\n ", ";\n outline-offset: 1px;\n }\n"])), function (_a) {
8
- var theme = _a.theme;
9
- return isInverted ? getFonts(theme).link.colorInverted : getFonts(theme).link.color;
10
- }, function (_a) {
11
- var theme = _a.theme;
12
- return getFonts(theme).link.textTransform;
13
- }, function (_a) {
14
- var theme = _a.theme;
15
- return getFonts(theme).link.textDecoration;
16
- }, function (_a) {
17
- var theme = _a.theme;
18
- return isInverted ? getFonts(theme).link.colorHoverInverted : getFonts(theme).link.colorHover;
19
- }, function (_a) {
20
- var theme = _a.theme;
21
- return isInverted ? getFonts(theme).link.colorInverted : getFonts(theme).link.color;
22
- });
23
- };
24
- var View = styled.a.withConfig({
25
- displayName: "Link__View",
26
- componentId: "sc-63jgey-0"
27
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (_a) {
28
- var isInverted = _a.isInverted;
29
- return linkStyles(isInverted);
30
- });
31
- var Link = forwardRef(function (_a, ref) {
32
- var _b = _a.isInverted,
33
- isInverted = _b === void 0 ? false : _b,
34
- _c = _a.isExternal,
35
- isExternal = _c === void 0 ? false : _c,
36
- onClick = _a.onClick,
37
- href = _a.href,
38
- ariaLabel = _a.ariaLabel,
39
- tabIndex = _a.tabIndex,
40
- dataSheet = _a.dataSheet,
41
- children = _a.children,
42
- className = _a.className;
43
- return React__default.createElement(View, {
44
- ref: ref,
45
- href: href,
46
- target: isExternal ? '_blank' : undefined,
47
- rel: isExternal ? 'noopener noreferrer' : undefined,
48
- isInverted: isInverted,
49
- "aria-label": ariaLabel,
50
- tabIndex: tabIndex,
51
- "data-sheet": dataSheet,
52
- onClick: onClick,
53
- className: className
54
- }, children);
55
- });
56
- Link.displayName = 'Link';
57
- var templateObject_1, templateObject_2;
58
-
59
- export { Link as L };
60
- //# sourceMappingURL=Link-0a1e35d6.js.map