@blateral/b.kit 2.3.0-beta.1.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (753) 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/FilterField-497e998f.js +0 -2
  47. package/cjs/FilterField-497e998f.js.map +0 -1
  48. package/cjs/Image-d9681be0.js +0 -2
  49. package/cjs/Image-d9681be0.js.map +0 -1
  50. package/cjs/LanguageSwitcher-47e25e95.js +0 -2
  51. package/cjs/LanguageSwitcher-47e25e95.js.map +0 -1
  52. package/cjs/LibThemeProvider-fb99fd6d.js +0 -2
  53. package/cjs/LibThemeProvider-fb99fd6d.js.map +0 -1
  54. package/cjs/Link-70143bb7.js +0 -2
  55. package/cjs/Link-70143bb7.js.map +0 -1
  56. package/cjs/Navigation-3f5d6088.js +0 -2
  57. package/cjs/Navigation-3f5d6088.js.map +0 -1
  58. package/cjs/POICard-9911980e.js +0 -2
  59. package/cjs/POICard-9911980e.js.map +0 -1
  60. package/cjs/Pointer-3588eadf.js +0 -2
  61. package/cjs/Pointer-3588eadf.js.map +0 -1
  62. package/cjs/SocialList-da77e994.js +0 -2
  63. package/cjs/SocialList-da77e994.js.map +0 -1
  64. package/cjs/TableBlock-080c9c2e.js +0 -2
  65. package/cjs/TableBlock-080c9c2e.js.map +0 -1
  66. package/cjs/VideoCard-1fa209fc.js +0 -2
  67. package/cjs/VideoCard-1fa209fc.js.map +0 -1
  68. package/cjs/Wrapper-3b9c9e89.js +0 -2
  69. package/cjs/Wrapper-3b9c9e89.js.map +0 -1
  70. package/cjs/arrays-c272ed59.js +0 -2
  71. package/cjs/arrays-c272ed59.js.map +0 -1
  72. package/cjs/base.js +0 -2
  73. package/cjs/base.js.map +0 -1
  74. package/cjs/blocks.js +0 -2
  75. package/cjs/blocks.js.map +0 -1
  76. package/cjs/buttons.js +0 -2
  77. package/cjs/buttons.js.map +0 -1
  78. package/cjs/clamp-bd21d587.js +0 -2
  79. package/cjs/clamp-bd21d587.js.map +0 -1
  80. package/cjs/concat-f387d848.js +0 -2
  81. package/cjs/concat-f387d848.js.map +0 -1
  82. package/cjs/cookies.js +0 -2
  83. package/cjs/cookies.js.map +0 -1
  84. package/cjs/fields.js +0 -2
  85. package/cjs/fields.js.map +0 -1
  86. package/cjs/footer.js +0 -2
  87. package/cjs/footer.js.map +0 -1
  88. package/cjs/hexRgbConverter-91b28aea.js +0 -2
  89. package/cjs/hexRgbConverter-91b28aea.js.map +0 -1
  90. package/cjs/hooks.js +0 -2
  91. package/cjs/hooks.js.map +0 -1
  92. package/cjs/icons.js +0 -2
  93. package/cjs/icons.js.map +0 -1
  94. package/cjs/index.js +0 -2
  95. package/cjs/index.js.map +0 -1
  96. package/cjs/navigation-bf154e6e.js +0 -2
  97. package/cjs/navigation-bf154e6e.js.map +0 -1
  98. package/cjs/navigation.js +0 -2
  99. package/cjs/navigation.js.map +0 -1
  100. package/cjs/sections.js +0 -2
  101. package/cjs/sections.js.map +0 -1
  102. package/cjs/sections_news.js +0 -2
  103. package/cjs/sections_news.js.map +0 -1
  104. package/cjs/statusFormatter-0393122b.js +0 -2
  105. package/cjs/statusFormatter-0393122b.js.map +0 -1
  106. package/cjs/styles-0f1a0aea.js +0 -2
  107. package/cjs/styles-0f1a0aea.js.map +0 -1
  108. package/cjs/typography.js +0 -2
  109. package/cjs/typography.js.map +0 -1
  110. package/cjs/urlParams-1d03b5a6.js +0 -2
  111. package/cjs/urlParams-1d03b5a6.js.map +0 -1
  112. package/cjs/useCookieConsent-0bf94751.js +0 -2
  113. package/cjs/useCookieConsent-0bf94751.js.map +0 -1
  114. package/cjs/useGeolocation-4d38150b.js +0 -2
  115. package/cjs/useGeolocation-4d38150b.js.map +0 -1
  116. package/cjs/useIE-aef9decc.js +0 -2
  117. package/cjs/useIE-aef9decc.js.map +0 -1
  118. package/cjs/useMediaQuery-d4f81f88.js +0 -2
  119. package/cjs/useMediaQuery-d4f81f88.js.map +0 -1
  120. package/cjs/useMounted-0bba9869.js +0 -2
  121. package/cjs/useMounted-0bba9869.js.map +0 -1
  122. package/cjs/useObserverSupport-5ab320dd.js +0 -2
  123. package/cjs/useObserverSupport-5ab320dd.js.map +0 -1
  124. package/cjs/useUpdateEffect-4d233e2c.js +0 -2
  125. package/cjs/useUpdateEffect-4d233e2c.js.map +0 -1
  126. package/cookies/package.json +0 -7
  127. package/esm/Actions-73e13c48.js +0 -57
  128. package/esm/Actions-73e13c48.js.map +0 -1
  129. package/esm/Bdot-30b047cc.js +0 -24
  130. package/esm/Bdot-30b047cc.js.map +0 -1
  131. package/esm/Button-678be396.js +0 -115
  132. package/esm/Button-678be396.js.map +0 -1
  133. package/esm/ButtonGhost-6673a07e.js +0 -112
  134. package/esm/ButtonGhost-6673a07e.js.map +0 -1
  135. package/esm/Callout-439308f6.js +0 -99
  136. package/esm/Callout-439308f6.js.map +0 -1
  137. package/esm/Checkbox-a365d733.js +0 -135
  138. package/esm/Checkbox-a365d733.js.map +0 -1
  139. package/esm/ClockFilled-8784ddac.js +0 -1793
  140. package/esm/ClockFilled-8784ddac.js.map +0 -1
  141. package/esm/Control-e61c9395.js +0 -52
  142. package/esm/Control-e61c9395.js.map +0 -1
  143. package/esm/Copy-3444d005.js +0 -270
  144. package/esm/Copy-3444d005.js.map +0 -1
  145. package/esm/FilterField-f423b4d1.js +0 -4907
  146. package/esm/FilterField-f423b4d1.js.map +0 -1
  147. package/esm/Image-82417953.js +0 -193
  148. package/esm/Image-82417953.js.map +0 -1
  149. package/esm/LanguageSwitcher-a53094d3.js +0 -70
  150. package/esm/LanguageSwitcher-a53094d3.js.map +0 -1
  151. package/esm/LibThemeProvider-90a5375f.js +0 -115
  152. package/esm/LibThemeProvider-90a5375f.js.map +0 -1
  153. package/esm/Link-ee8a48ed.js +0 -60
  154. package/esm/Link-ee8a48ed.js.map +0 -1
  155. package/esm/Navigation-ece0ff0d.js +0 -1664
  156. package/esm/Navigation-ece0ff0d.js.map +0 -1
  157. package/esm/POICard-d8832988.js +0 -917
  158. package/esm/POICard-d8832988.js.map +0 -1
  159. package/esm/Pointer-da4d0977.js +0 -111
  160. package/esm/Pointer-da4d0977.js.map +0 -1
  161. package/esm/SocialList-7c00c70e.js +0 -61
  162. package/esm/SocialList-7c00c70e.js.map +0 -1
  163. package/esm/TableBlock-0bbde956.js +0 -218
  164. package/esm/TableBlock-0bbde956.js.map +0 -1
  165. package/esm/VideoCard-2557407b.js +0 -187
  166. package/esm/VideoCard-2557407b.js.map +0 -1
  167. package/esm/Wrapper-f4a70e30.js +0 -420
  168. package/esm/Wrapper-f4a70e30.js.map +0 -1
  169. package/esm/arrays-65b644ef.js +0 -17
  170. package/esm/arrays-65b644ef.js.map +0 -1
  171. package/esm/base.js +0 -10
  172. package/esm/base.js.map +0 -1
  173. package/esm/blocks.js +0 -22
  174. package/esm/blocks.js.map +0 -1
  175. package/esm/buttons.js +0 -12
  176. package/esm/buttons.js.map +0 -1
  177. package/esm/clamp-12d37b65.js +0 -10
  178. package/esm/clamp-12d37b65.js.map +0 -1
  179. package/esm/concat-ab3c66f2.js +0 -40
  180. package/esm/concat-ab3c66f2.js.map +0 -1
  181. package/esm/cookies.js +0 -270
  182. package/esm/cookies.js.map +0 -1
  183. package/esm/fields.js +0 -187
  184. package/esm/fields.js.map +0 -1
  185. package/esm/footer.js +0 -300
  186. package/esm/footer.js.map +0 -1
  187. package/esm/hexRgbConverter-edb91624.js +0 -36
  188. package/esm/hexRgbConverter-edb91624.js.map +0 -1
  189. package/esm/hooks.js +0 -527
  190. package/esm/hooks.js.map +0 -1
  191. package/esm/icons.js +0 -4
  192. package/esm/icons.js.map +0 -1
  193. package/esm/index.js +0 -7
  194. package/esm/index.js.map +0 -1
  195. package/esm/navigation-49280321.js +0 -132
  196. package/esm/navigation-49280321.js.map +0 -1
  197. package/esm/navigation.js +0 -159
  198. package/esm/navigation.js.map +0 -1
  199. package/esm/sections.js +0 -7126
  200. package/esm/sections.js.map +0 -1
  201. package/esm/sections_news.js +0 -1018
  202. package/esm/sections_news.js.map +0 -1
  203. package/esm/statusFormatter-9be0fbff.js +0 -255
  204. package/esm/statusFormatter-9be0fbff.js.map +0 -1
  205. package/esm/styles-5f78e59d.js +0 -462
  206. package/esm/styles-5f78e59d.js.map +0 -1
  207. package/esm/typography.js +0 -11
  208. package/esm/typography.js.map +0 -1
  209. package/esm/urlParams-882563ce.js +0 -297
  210. package/esm/urlParams-882563ce.js.map +0 -1
  211. package/esm/useCookieConsent-db86e5cb.js +0 -339
  212. package/esm/useCookieConsent-db86e5cb.js.map +0 -1
  213. package/esm/useGeolocation-c81e3efc.js +0 -471
  214. package/esm/useGeolocation-c81e3efc.js.map +0 -1
  215. package/esm/useIE-a9c56989.js +0 -15
  216. package/esm/useIE-a9c56989.js.map +0 -1
  217. package/esm/useMediaQuery-43629cbb.js +0 -109
  218. package/esm/useMediaQuery-43629cbb.js.map +0 -1
  219. package/esm/useMounted-1e4cc87b.js +0 -12
  220. package/esm/useMounted-1e4cc87b.js.map +0 -1
  221. package/esm/useObserverSupport-02bce7f5.js +0 -19
  222. package/esm/useObserverSupport-02bce7f5.js.map +0 -1
  223. package/esm/useUpdateEffect-824c0c84.js +0 -18
  224. package/esm/useUpdateEffect-824c0c84.js.map +0 -1
  225. package/fields/package.json +0 -7
  226. package/footer/package.json +0 -7
  227. package/hooks/package.json +0 -7
  228. package/icons/package.json +0 -7
  229. package/navigation/package.json +0 -7
  230. package/sections/news/package.json +0 -7
  231. package/sections/package.json +0 -7
  232. package/types/base.d.ts +0 -5
  233. package/types/base.d.ts.map +0 -1
  234. package/types/blocks.d.ts +0 -18
  235. package/types/blocks.d.ts.map +0 -1
  236. package/types/buttons.d.ts +0 -6
  237. package/types/buttons.d.ts.map +0 -1
  238. package/types/components/sections/NumberList.d.ts +0 -31
  239. package/types/components/sections/NumberList.d.ts.map +0 -1
  240. package/types/components/sections/header/Header.d.ts.map +0 -1
  241. package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  242. package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  243. package/types/components/typography/Callout.d.ts.map +0 -1
  244. package/types/cookies.d.ts +0 -3
  245. package/types/cookies.d.ts.map +0 -1
  246. package/types/fields.d.ts +0 -14
  247. package/types/fields.d.ts.map +0 -1
  248. package/types/footer.d.ts +0 -4
  249. package/types/footer.d.ts.map +0 -1
  250. package/types/hooks.d.ts +0 -35
  251. package/types/hooks.d.ts.map +0 -1
  252. package/types/icons.d.ts +0 -66
  253. package/types/icons.d.ts.map +0 -1
  254. package/types/index.d.ts +0 -18
  255. package/types/index.d.ts.map +0 -1
  256. package/types/navigation.d.ts +0 -10
  257. package/types/navigation.d.ts.map +0 -1
  258. package/types/sections.d.ts +0 -42
  259. package/types/sections.d.ts.map +0 -1
  260. package/types/sections_news.d.ts +0 -10
  261. package/types/sections_news.d.ts.map +0 -1
  262. package/types/typography.d.ts +0 -6
  263. package/types/typography.d.ts.map +0 -1
  264. package/types/utils/styles.d.ts.map +0 -1
  265. package/types/utils/useEqualSheetHeight.d.ts.map +0 -1
  266. package/typography/package.json +0 -7
  267. /package/{types → lib}/components/base/Grid.d.ts +0 -0
  268. /package/{types → lib}/components/base/Grid.d.ts.map +0 -0
  269. /package/{types → lib}/components/base/Section.d.ts +0 -0
  270. /package/{types → lib}/components/base/Section.d.ts.map +0 -0
  271. /package/{types → lib}/components/base/Wrapper.d.ts +0 -0
  272. /package/{types → lib}/components/base/Wrapper.d.ts.map +0 -0
  273. /package/{types → lib}/components/base/icons/AngleDown.d.ts +0 -0
  274. /package/{types → lib}/components/base/icons/AngleDown.d.ts.map +0 -0
  275. /package/{types → lib}/components/base/icons/AngleLeft.d.ts +0 -0
  276. /package/{types → lib}/components/base/icons/AngleLeft.d.ts.map +0 -0
  277. /package/{types → lib}/components/base/icons/AngleRight.d.ts +0 -0
  278. /package/{types → lib}/components/base/icons/AngleRight.d.ts.map +0 -0
  279. /package/{types → lib}/components/base/icons/AngleUp.d.ts +0 -0
  280. /package/{types → lib}/components/base/icons/AngleUp.d.ts.map +0 -0
  281. /package/{types → lib}/components/base/icons/ArrowDown.d.ts +0 -0
  282. /package/{types → lib}/components/base/icons/ArrowDown.d.ts.map +0 -0
  283. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts +0 -0
  284. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts.map +0 -0
  285. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
  286. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
  287. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts +0 -0
  288. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
  289. /package/{types → lib}/components/base/icons/ArrowRight.d.ts +0 -0
  290. /package/{types → lib}/components/base/icons/ArrowRight.d.ts.map +0 -0
  291. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts +0 -0
  292. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
  293. /package/{types → lib}/components/base/icons/ArrowUp.d.ts +0 -0
  294. /package/{types → lib}/components/base/icons/ArrowUp.d.ts.map +0 -0
  295. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
  296. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
  297. /package/{types → lib}/components/base/icons/CalendarToday.d.ts +0 -0
  298. /package/{types → lib}/components/base/icons/CalendarToday.d.ts.map +0 -0
  299. /package/{types → lib}/components/base/icons/Category.d.ts +0 -0
  300. /package/{types → lib}/components/base/icons/Category.d.ts.map +0 -0
  301. /package/{types → lib}/components/base/icons/Check.d.ts +0 -0
  302. /package/{types → lib}/components/base/icons/Check.d.ts.map +0 -0
  303. /package/{types → lib}/components/base/icons/Clock.d.ts +0 -0
  304. /package/{types → lib}/components/base/icons/Clock.d.ts.map +0 -0
  305. /package/{types → lib}/components/base/icons/ClockFilled.d.ts +0 -0
  306. /package/{types → lib}/components/base/icons/ClockFilled.d.ts.map +0 -0
  307. /package/{types → lib}/components/base/icons/Computer.d.ts +0 -0
  308. /package/{types → lib}/components/base/icons/Computer.d.ts.map +0 -0
  309. /package/{types → lib}/components/base/icons/Cross.d.ts +0 -0
  310. /package/{types → lib}/components/base/icons/Cross.d.ts.map +0 -0
  311. /package/{types → lib}/components/base/icons/CrossSmall.d.ts +0 -0
  312. /package/{types → lib}/components/base/icons/CrossSmall.d.ts.map +0 -0
  313. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts +0 -0
  314. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts.map +0 -0
  315. /package/{types → lib}/components/base/icons/DateRange.d.ts +0 -0
  316. /package/{types → lib}/components/base/icons/DateRange.d.ts.map +0 -0
  317. /package/{types → lib}/components/base/icons/DeleteForever.d.ts +0 -0
  318. /package/{types → lib}/components/base/icons/DeleteForever.d.ts.map +0 -0
  319. /package/{types → lib}/components/base/icons/External.d.ts +0 -0
  320. /package/{types → lib}/components/base/icons/External.d.ts.map +0 -0
  321. /package/{types → lib}/components/base/icons/Filter.d.ts +0 -0
  322. /package/{types → lib}/components/base/icons/Filter.d.ts.map +0 -0
  323. /package/{types → lib}/components/base/icons/FlyTo.d.ts +0 -0
  324. /package/{types → lib}/components/base/icons/FlyTo.d.ts.map +0 -0
  325. /package/{types → lib}/components/base/icons/Info.d.ts +0 -0
  326. /package/{types → lib}/components/base/icons/Info.d.ts.map +0 -0
  327. /package/{types → lib}/components/base/icons/Language.d.ts +0 -0
  328. /package/{types → lib}/components/base/icons/Language.d.ts.map +0 -0
  329. /package/{types → lib}/components/base/icons/LocationPin.d.ts +0 -0
  330. /package/{types → lib}/components/base/icons/LocationPin.d.ts.map +0 -0
  331. /package/{types → lib}/components/base/icons/LocationSearch.d.ts +0 -0
  332. /package/{types → lib}/components/base/icons/LocationSearch.d.ts.map +0 -0
  333. /package/{types → lib}/components/base/icons/Magnifier.d.ts +0 -0
  334. /package/{types → lib}/components/base/icons/Magnifier.d.ts.map +0 -0
  335. /package/{types → lib}/components/base/icons/Mail.d.ts +0 -0
  336. /package/{types → lib}/components/base/icons/Mail.d.ts.map +0 -0
  337. /package/{types → lib}/components/base/icons/Map.d.ts +0 -0
  338. /package/{types → lib}/components/base/icons/Map.d.ts.map +0 -0
  339. /package/{types → lib}/components/base/icons/MenuBurger.d.ts +0 -0
  340. /package/{types → lib}/components/base/icons/MenuBurger.d.ts.map +0 -0
  341. /package/{types → lib}/components/base/icons/Minus.d.ts +0 -0
  342. /package/{types → lib}/components/base/icons/Minus.d.ts.map +0 -0
  343. /package/{types → lib}/components/base/icons/Money.d.ts +0 -0
  344. /package/{types → lib}/components/base/icons/Money.d.ts.map +0 -0
  345. /package/{types → lib}/components/base/icons/MyLocation.d.ts +0 -0
  346. /package/{types → lib}/components/base/icons/MyLocation.d.ts.map +0 -0
  347. /package/{types → lib}/components/base/icons/Person.d.ts +0 -0
  348. /package/{types → lib}/components/base/icons/Person.d.ts.map +0 -0
  349. /package/{types → lib}/components/base/icons/Phone.d.ts +0 -0
  350. /package/{types → lib}/components/base/icons/Phone.d.ts.map +0 -0
  351. /package/{types → lib}/components/base/icons/Place.d.ts +0 -0
  352. /package/{types → lib}/components/base/icons/Place.d.ts.map +0 -0
  353. /package/{types → lib}/components/base/icons/Play.d.ts +0 -0
  354. /package/{types → lib}/components/base/icons/Play.d.ts.map +0 -0
  355. /package/{types → lib}/components/base/icons/Plus.d.ts +0 -0
  356. /package/{types → lib}/components/base/icons/Plus.d.ts.map +0 -0
  357. /package/{types → lib}/components/base/icons/Route.d.ts +0 -0
  358. /package/{types → lib}/components/base/icons/Route.d.ts.map +0 -0
  359. /package/{types → lib}/components/base/icons/Star.d.ts +0 -0
  360. /package/{types → lib}/components/base/icons/Star.d.ts.map +0 -0
  361. /package/{types → lib}/components/base/icons/ToggleOff.d.ts +0 -0
  362. /package/{types → lib}/components/base/icons/ToggleOff.d.ts.map +0 -0
  363. /package/{types → lib}/components/base/icons/ToggleOn.d.ts +0 -0
  364. /package/{types → lib}/components/base/icons/ToggleOn.d.ts.map +0 -0
  365. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts +0 -0
  366. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts.map +0 -0
  367. /package/{types → lib}/components/base/icons/files/Excel.d.ts +0 -0
  368. /package/{types → lib}/components/base/icons/files/Excel.d.ts.map +0 -0
  369. /package/{types → lib}/components/base/icons/files/Image.d.ts +0 -0
  370. /package/{types → lib}/components/base/icons/files/Image.d.ts.map +0 -0
  371. /package/{types → lib}/components/base/icons/files/Pdf.d.ts +0 -0
  372. /package/{types → lib}/components/base/icons/files/Pdf.d.ts.map +0 -0
  373. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts +0 -0
  374. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
  375. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts +0 -0
  376. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts.map +0 -0
  377. /package/{types → lib}/components/base/icons/files/Word.d.ts +0 -0
  378. /package/{types → lib}/components/base/icons/files/Word.d.ts.map +0 -0
  379. /package/{types → lib}/components/base/icons/files/Zip.d.ts +0 -0
  380. /package/{types → lib}/components/base/icons/files/Zip.d.ts.map +0 -0
  381. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts +0 -0
  382. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts.map +0 -0
  383. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts +0 -0
  384. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts.map +0 -0
  385. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts +0 -0
  386. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
  387. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts +0 -0
  388. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts.map +0 -0
  389. /package/{types → lib}/components/base/icons/socials/Xing.d.ts +0 -0
  390. /package/{types → lib}/components/base/icons/socials/Xing.d.ts.map +0 -0
  391. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts +0 -0
  392. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts.map +0 -0
  393. /package/{types → lib}/components/base/nl2br.d.ts +0 -0
  394. /package/{types → lib}/components/base/nl2br.d.ts.map +0 -0
  395. /package/{types → lib}/components/blocks/Actions.d.ts +0 -0
  396. /package/{types → lib}/components/blocks/Actions.d.ts.map +0 -0
  397. /package/{types → lib}/components/blocks/Alert.d.ts +0 -0
  398. /package/{types → lib}/components/blocks/Alert.d.ts.map +0 -0
  399. /package/{types → lib}/components/blocks/Bdot.d.ts +0 -0
  400. /package/{types → lib}/components/blocks/Bdot.d.ts.map +0 -0
  401. /package/{types → lib}/components/blocks/CookieConsent.d.ts +0 -0
  402. /package/{types → lib}/components/blocks/CookieConsent.d.ts.map +0 -0
  403. /package/{types → lib}/components/blocks/EventBlock.d.ts +0 -0
  404. /package/{types → lib}/components/blocks/EventBlock.d.ts.map +0 -0
  405. /package/{types → lib}/components/blocks/Fact.d.ts +0 -0
  406. /package/{types → lib}/components/blocks/Fact.d.ts.map +0 -0
  407. /package/{types → lib}/components/blocks/Feature.d.ts +0 -0
  408. /package/{types → lib}/components/blocks/Feature.d.ts.map +0 -0
  409. /package/{types → lib}/components/blocks/Image.d.ts +0 -0
  410. /package/{types → lib}/components/blocks/Image.d.ts.map +0 -0
  411. /package/{types → lib}/components/blocks/InfoList.d.ts +0 -0
  412. /package/{types → lib}/components/blocks/InfoList.d.ts.map +0 -0
  413. /package/{types → lib}/components/blocks/IntroBlock.d.ts +0 -0
  414. /package/{types → lib}/components/blocks/IntroBlock.d.ts.map +0 -0
  415. /package/{types → lib}/components/blocks/JobCard.d.ts +0 -0
  416. /package/{types → lib}/components/blocks/JobCard.d.ts.map +0 -0
  417. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts +0 -0
  418. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
  419. /package/{types → lib}/components/blocks/NavBlock.d.ts +0 -0
  420. /package/{types → lib}/components/blocks/NavBlock.d.ts.map +0 -0
  421. /package/{types → lib}/components/blocks/NewsCard.d.ts +0 -0
  422. /package/{types → lib}/components/blocks/NewsCard.d.ts.map +0 -0
  423. /package/{types → lib}/components/blocks/POICard.d.ts +0 -0
  424. /package/{types → lib}/components/blocks/POICard.d.ts.map +0 -0
  425. /package/{types → lib}/components/blocks/POIFacts.d.ts +0 -0
  426. /package/{types → lib}/components/blocks/POIFacts.d.ts.map +0 -0
  427. /package/{types → lib}/components/blocks/PriceTag.d.ts +0 -0
  428. /package/{types → lib}/components/blocks/PriceTag.d.ts.map +0 -0
  429. /package/{types → lib}/components/blocks/PromotionCard.d.ts +0 -0
  430. /package/{types → lib}/components/blocks/PromotionCard.d.ts.map +0 -0
  431. /package/{types → lib}/components/blocks/SocialList.d.ts +0 -0
  432. /package/{types → lib}/components/blocks/SocialList.d.ts.map +0 -0
  433. /package/{types → lib}/components/blocks/TableBlock.d.ts +0 -0
  434. /package/{types → lib}/components/blocks/TableBlock.d.ts.map +0 -0
  435. /package/{types → lib}/components/blocks/Tag.d.ts +0 -0
  436. /package/{types → lib}/components/blocks/Tag.d.ts.map +0 -0
  437. /package/{types → lib}/components/blocks/Title.d.ts +0 -0
  438. /package/{types → lib}/components/blocks/Title.d.ts.map +0 -0
  439. /package/{types → lib}/components/blocks/VideoBlock.d.ts +0 -0
  440. /package/{types → lib}/components/blocks/VideoBlock.d.ts.map +0 -0
  441. /package/{types → lib}/components/blocks/VideoCard.d.ts +0 -0
  442. /package/{types → lib}/components/blocks/VideoCard.d.ts.map +0 -0
  443. /package/{types → lib}/components/buttons/Button.d.ts +0 -0
  444. /package/{types → lib}/components/buttons/Button.d.ts.map +0 -0
  445. /package/{types → lib}/components/buttons/ButtonGhost.d.ts +0 -0
  446. /package/{types → lib}/components/buttons/ButtonGhost.d.ts.map +0 -0
  447. /package/{types → lib}/components/buttons/Control.d.ts +0 -0
  448. /package/{types → lib}/components/buttons/Control.d.ts.map +0 -0
  449. /package/{types → lib}/components/buttons/Pointer.d.ts +0 -0
  450. /package/{types → lib}/components/buttons/Pointer.d.ts.map +0 -0
  451. /package/{types → lib}/components/debug/DebugLines.d.ts +0 -0
  452. /package/{types → lib}/components/debug/DebugLines.d.ts.map +0 -0
  453. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
  454. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
  455. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
  456. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
  457. /package/{types → lib}/components/fields/Checkbox.d.ts +0 -0
  458. /package/{types → lib}/components/fields/Checkbox.d.ts.map +0 -0
  459. /package/{types → lib}/components/fields/CompactForm.d.ts +0 -0
  460. /package/{types → lib}/components/fields/CompactForm.d.ts.map +0 -0
  461. /package/{types → lib}/components/fields/Datepicker.d.ts +0 -0
  462. /package/{types → lib}/components/fields/Datepicker.d.ts.map +0 -0
  463. /package/{types → lib}/components/fields/FileUpload.d.ts +0 -0
  464. /package/{types → lib}/components/fields/FileUpload.d.ts.map +0 -0
  465. /package/{types → lib}/components/fields/FilterField.d.ts +0 -0
  466. /package/{types → lib}/components/fields/FormField.d.ts +0 -0
  467. /package/{types → lib}/components/fields/FormField.d.ts.map +0 -0
  468. /package/{types → lib}/components/fields/LocationField.d.ts +0 -0
  469. /package/{types → lib}/components/fields/LocationField.d.ts.map +0 -0
  470. /package/{types → lib}/components/fields/Radio.d.ts +0 -0
  471. /package/{types → lib}/components/fields/Radio.d.ts.map +0 -0
  472. /package/{types → lib}/components/fields/SearchInput.d.ts +0 -0
  473. /package/{types → lib}/components/fields/SearchInput.d.ts.map +0 -0
  474. /package/{types → lib}/components/fields/SelectDropdown.d.ts +0 -0
  475. /package/{types → lib}/components/fields/SelectDropdown.d.ts.map +0 -0
  476. /package/{types → lib}/components/fields/Textarea.d.ts +0 -0
  477. /package/{types → lib}/components/fields/Textarea.d.ts.map +0 -0
  478. /package/{types → lib}/components/fields/Textfield.d.ts +0 -0
  479. /package/{types → lib}/components/fields/Textfield.d.ts.map +0 -0
  480. /package/{types → lib}/components/sections/Accordion.d.ts +0 -0
  481. /package/{types → lib}/components/sections/Accordion.d.ts.map +0 -0
  482. /package/{types → lib}/components/sections/AlertList.d.ts +0 -0
  483. /package/{types → lib}/components/sections/AlertList.d.ts.map +0 -0
  484. /package/{types → lib}/components/sections/Article.d.ts +0 -0
  485. /package/{types → lib}/components/sections/Article.d.ts.map +0 -0
  486. /package/{types → lib}/components/sections/CallToAction.d.ts +0 -0
  487. /package/{types → lib}/components/sections/CallToAction.d.ts.map +0 -0
  488. /package/{types → lib}/components/sections/CardList.d.ts +0 -0
  489. /package/{types → lib}/components/sections/CardList.d.ts.map +0 -0
  490. /package/{types → lib}/components/sections/ComparisonSlider.d.ts +0 -0
  491. /package/{types → lib}/components/sections/ComparisonSlider.d.ts.map +0 -0
  492. /package/{types → lib}/components/sections/CrossPromotion.d.ts +0 -0
  493. /package/{types → lib}/components/sections/CrossPromotion.d.ts.map +0 -0
  494. /package/{types → lib}/components/sections/FactGrid.d.ts +0 -0
  495. /package/{types → lib}/components/sections/FactGrid.d.ts.map +0 -0
  496. /package/{types → lib}/components/sections/FactList.d.ts +0 -0
  497. /package/{types → lib}/components/sections/FactList.d.ts.map +0 -0
  498. /package/{types → lib}/components/sections/FeatureList.d.ts +0 -0
  499. /package/{types → lib}/components/sections/FeatureList.d.ts.map +0 -0
  500. /package/{types → lib}/components/sections/Gallery.d.ts +0 -0
  501. /package/{types → lib}/components/sections/Gallery.d.ts.map +0 -0
  502. /package/{types → lib}/components/sections/IconList.d.ts +0 -0
  503. /package/{types → lib}/components/sections/IconList.d.ts.map +0 -0
  504. /package/{types → lib}/components/sections/IndexList.d.ts +0 -0
  505. /package/{types → lib}/components/sections/IndexList.d.ts.map +0 -0
  506. /package/{types → lib}/components/sections/Intro.d.ts +0 -0
  507. /package/{types → lib}/components/sections/Intro.d.ts.map +0 -0
  508. /package/{types → lib}/components/sections/Map.d.ts +0 -0
  509. /package/{types → lib}/components/sections/Map.d.ts.map +0 -0
  510. /package/{types → lib}/components/sections/NavList.d.ts +0 -0
  511. /package/{types → lib}/components/sections/NavList.d.ts.map +0 -0
  512. /package/{types → lib}/components/sections/NewsletterForm.d.ts +0 -0
  513. /package/{types → lib}/components/sections/NewsletterForm.d.ts.map +0 -0
  514. /package/{types → lib}/components/sections/ParallaxBackground.d.ts +0 -0
  515. /package/{types → lib}/components/sections/ParallaxBackground.d.ts.map +0 -0
  516. /package/{types → lib}/components/sections/Poster.d.ts +0 -0
  517. /package/{types → lib}/components/sections/Poster.d.ts.map +0 -0
  518. /package/{types → lib}/components/sections/PriceList.d.ts +0 -0
  519. /package/{types → lib}/components/sections/PriceList.d.ts.map +0 -0
  520. /package/{types → lib}/components/sections/PriceTable.d.ts +0 -0
  521. /package/{types → lib}/components/sections/PriceTable.d.ts.map +0 -0
  522. /package/{types → lib}/components/sections/Quote.d.ts +0 -0
  523. /package/{types → lib}/components/sections/Quote.d.ts.map +0 -0
  524. /package/{types → lib}/components/sections/RawVideo.d.ts +0 -0
  525. /package/{types → lib}/components/sections/RawVideo.d.ts.map +0 -0
  526. /package/{types → lib}/components/sections/SimpleImage.d.ts +0 -0
  527. /package/{types → lib}/components/sections/SimpleImage.d.ts.map +0 -0
  528. /package/{types → lib}/components/sections/SocialWall.d.ts +0 -0
  529. /package/{types → lib}/components/sections/SocialWall.d.ts.map +0 -0
  530. /package/{types → lib}/components/sections/Table.d.ts +0 -0
  531. /package/{types → lib}/components/sections/Table.d.ts.map +0 -0
  532. /package/{types → lib}/components/sections/Teaser.d.ts +0 -0
  533. /package/{types → lib}/components/sections/Teaser.d.ts.map +0 -0
  534. /package/{types → lib}/components/sections/TeaserWide.d.ts +0 -0
  535. /package/{types → lib}/components/sections/TeaserWide.d.ts.map +0 -0
  536. /package/{types → lib}/components/sections/Timeline.d.ts +0 -0
  537. /package/{types → lib}/components/sections/Timeline.d.ts.map +0 -0
  538. /package/{types → lib}/components/sections/Video.d.ts +0 -0
  539. /package/{types → lib}/components/sections/Video.d.ts.map +0 -0
  540. /package/{types → lib}/components/sections/events/EventDetail.d.ts +0 -0
  541. /package/{types → lib}/components/sections/events/EventDetail.d.ts.map +0 -0
  542. /package/{types → lib}/components/sections/events/EventList.d.ts +0 -0
  543. /package/{types → lib}/components/sections/events/EventList.d.ts.map +0 -0
  544. /package/{types → lib}/components/sections/events/EventOverview.d.ts +0 -0
  545. /package/{types → lib}/components/sections/events/EventOverview.d.ts.map +0 -0
  546. /package/{types → lib}/components/sections/footer/Footer.d.ts +0 -0
  547. /package/{types → lib}/components/sections/footer/Footer.d.ts.map +0 -0
  548. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  549. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
  550. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
  551. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
  552. /package/{types → lib}/components/sections/footer/partials/index.d.ts +0 -0
  553. /package/{types → lib}/components/sections/footer/partials/index.d.ts.map +0 -0
  554. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  555. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
  556. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  557. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
  558. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts +0 -0
  559. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts.map +0 -0
  560. /package/{types → lib}/components/sections/form/DynamicForm.d.ts +0 -0
  561. /package/{types → lib}/components/sections/form/DynamicForm.d.ts.map +0 -0
  562. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
  563. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
  564. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  565. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
  566. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  567. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
  568. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
  569. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
  570. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
  571. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
  572. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
  573. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
  574. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
  575. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
  576. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts +0 -0
  577. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
  578. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
  579. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
  580. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  581. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
  582. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts +0 -0
  583. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
  584. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts +0 -0
  585. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
  586. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts +0 -0
  587. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
  588. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts +0 -0
  589. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
  590. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts +0 -0
  591. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
  592. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts +0 -0
  593. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts.map +0 -0
  594. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts +0 -0
  595. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts.map +0 -0
  596. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts +0 -0
  597. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts.map +0 -0
  598. /package/{types → lib}/components/sections/jobs/JobList.d.ts +0 -0
  599. /package/{types → lib}/components/sections/jobs/JobList.d.ts.map +0 -0
  600. /package/{types → lib}/components/sections/navigation/NavBar.d.ts +0 -0
  601. /package/{types → lib}/components/sections/navigation/NavBar.d.ts.map +0 -0
  602. /package/{types → lib}/components/sections/navigation/Navigation.d.ts +0 -0
  603. /package/{types → lib}/components/sections/navigation/Navigation.d.ts.map +0 -0
  604. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts +0 -0
  605. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
  606. /package/{types → lib}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  607. /package/{types → lib}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  608. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
  609. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
  610. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
  611. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
  612. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  613. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
  614. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
  615. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
  616. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
  617. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
  618. /package/{types → lib}/components/sections/navigation/partials/index.d.ts +0 -0
  619. /package/{types → lib}/components/sections/navigation/partials/index.d.ts.map +0 -0
  620. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  621. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
  622. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  623. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
  624. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  625. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
  626. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  627. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
  628. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  629. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
  630. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts +0 -0
  631. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
  632. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts +0 -0
  633. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
  634. /package/{types → lib}/components/sections/news/NewsFooter.d.ts +0 -0
  635. /package/{types → lib}/components/sections/news/NewsFooter.d.ts.map +0 -0
  636. /package/{types → lib}/components/sections/news/NewsImages.d.ts +0 -0
  637. /package/{types → lib}/components/sections/news/NewsImages.d.ts.map +0 -0
  638. /package/{types → lib}/components/sections/news/NewsIntro.d.ts +0 -0
  639. /package/{types → lib}/components/sections/news/NewsIntro.d.ts.map +0 -0
  640. /package/{types → lib}/components/sections/news/NewsList.d.ts +0 -0
  641. /package/{types → lib}/components/sections/news/NewsList.d.ts.map +0 -0
  642. /package/{types → lib}/components/sections/news/NewsOverview.d.ts +0 -0
  643. /package/{types → lib}/components/sections/news/NewsOverview.d.ts.map +0 -0
  644. /package/{types → lib}/components/sections/news/NewsTable.d.ts +0 -0
  645. /package/{types → lib}/components/sections/news/NewsTable.d.ts.map +0 -0
  646. /package/{types → lib}/components/sections/news/NewsText.d.ts +0 -0
  647. /package/{types → lib}/components/sections/news/NewsText.d.ts.map +0 -0
  648. /package/{types → lib}/components/sections/news/NewsVideo.d.ts +0 -0
  649. /package/{types → lib}/components/sections/news/NewsVideo.d.ts.map +0 -0
  650. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
  651. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
  652. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
  653. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
  654. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
  655. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
  656. /package/{types → lib}/components/typography/Copy.d.ts +0 -0
  657. /package/{types → lib}/components/typography/Copy.d.ts.map +0 -0
  658. /package/{types → lib}/components/typography/Heading.d.ts +0 -0
  659. /package/{types → lib}/components/typography/Heading.d.ts.map +0 -0
  660. /package/{types → lib}/components/typography/Link.d.ts +0 -0
  661. /package/{types → lib}/components/typography/Link.d.ts.map +0 -0
  662. /package/{types → lib}/utils/LibThemeProvider.d.ts +0 -0
  663. /package/{types → lib}/utils/LibThemeProvider.d.ts.map +0 -0
  664. /package/{types → lib}/utils/arrays.d.ts +0 -0
  665. /package/{types → lib}/utils/arrays.d.ts.map +0 -0
  666. /package/{types → lib}/utils/backgroundImage.d.ts +0 -0
  667. /package/{types → lib}/utils/backgroundImage.d.ts.map +0 -0
  668. /package/{types → lib}/utils/clamp.d.ts +0 -0
  669. /package/{types → lib}/utils/clamp.d.ts.map +0 -0
  670. /package/{types → lib}/utils/concat.d.ts +0 -0
  671. /package/{types → lib}/utils/concat.d.ts.map +0 -0
  672. /package/{types → lib}/utils/cookie-consent/cookie.d.ts +0 -0
  673. /package/{types → lib}/utils/cookie-consent/cookie.d.ts.map +0 -0
  674. /package/{types → lib}/utils/cookie-consent/mutations.d.ts +0 -0
  675. /package/{types → lib}/utils/cookie-consent/mutations.d.ts.map +0 -0
  676. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
  677. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
  678. /package/{types → lib}/utils/dataURI.d.ts +0 -0
  679. /package/{types → lib}/utils/dataURI.d.ts.map +0 -0
  680. /package/{types → lib}/utils/escape.d.ts +0 -0
  681. /package/{types → lib}/utils/escape.d.ts.map +0 -0
  682. /package/{types → lib}/utils/filters.d.ts +0 -0
  683. /package/{types → lib}/utils/filters.d.ts.map +0 -0
  684. /package/{types → lib}/utils/fontLoading.d.ts +0 -0
  685. /package/{types → lib}/utils/fontLoading.d.ts.map +0 -0
  686. /package/{types → lib}/utils/formFieldText.d.ts +0 -0
  687. /package/{types → lib}/utils/formFieldText.d.ts.map +0 -0
  688. /package/{types → lib}/utils/getLinkIcon.d.ts +0 -0
  689. /package/{types → lib}/utils/getLinkIcon.d.ts.map +0 -0
  690. /package/{types → lib}/utils/hexRgbConverter.d.ts +0 -0
  691. /package/{types → lib}/utils/hexRgbConverter.d.ts.map +0 -0
  692. /package/{types → lib}/utils/menuHooks.d.ts +0 -0
  693. /package/{types → lib}/utils/menuHooks.d.ts.map +0 -0
  694. /package/{types → lib}/utils/navigation.d.ts +0 -0
  695. /package/{types → lib}/utils/navigation.d.ts.map +0 -0
  696. /package/{types → lib}/utils/statusFormatter.d.ts +0 -0
  697. /package/{types → lib}/utils/statusFormatter.d.ts.map +0 -0
  698. /package/{types → lib}/utils/storyHelpers.d.ts +0 -0
  699. /package/{types → lib}/utils/storyHelpers.d.ts.map +0 -0
  700. /package/{types → lib}/utils/structuredData.d.ts +0 -0
  701. /package/{types → lib}/utils/structuredData.d.ts.map +0 -0
  702. /package/{types → lib}/utils/types.d.ts +0 -0
  703. /package/{types → lib}/utils/types.d.ts.map +0 -0
  704. /package/{types → lib}/utils/urlParams.d.ts +0 -0
  705. /package/{types → lib}/utils/urlParams.d.ts.map +0 -0
  706. /package/{types → lib}/utils/useArray.d.ts +0 -0
  707. /package/{types → lib}/utils/useArray.d.ts.map +0 -0
  708. /package/{types → lib}/utils/useDebounce.d.ts +0 -0
  709. /package/{types → lib}/utils/useDebounce.d.ts.map +0 -0
  710. /package/{types → lib}/utils/useFontsLoaded.d.ts +0 -0
  711. /package/{types → lib}/utils/useFontsLoaded.d.ts.map +0 -0
  712. /package/{types → lib}/utils/useGeolocation.d.ts +0 -0
  713. /package/{types → lib}/utils/useGeolocation.d.ts.map +0 -0
  714. /package/{types → lib}/utils/useIE.d.ts +0 -0
  715. /package/{types → lib}/utils/useIE.d.ts.map +0 -0
  716. /package/{types → lib}/utils/useImgPreload.d.ts +0 -0
  717. /package/{types → lib}/utils/useImgPreload.d.ts.map +0 -0
  718. /package/{types → lib}/utils/useInterval.d.ts +0 -0
  719. /package/{types → lib}/utils/useInterval.d.ts.map +0 -0
  720. /package/{types → lib}/utils/useItemHeight.d.ts +0 -0
  721. /package/{types → lib}/utils/useItemHeight.d.ts.map +0 -0
  722. /package/{types → lib}/utils/useLazyInput.d.ts +0 -0
  723. /package/{types → lib}/utils/useLazyInput.d.ts.map +0 -0
  724. /package/{types → lib}/utils/useLeafletMap.d.ts +0 -0
  725. /package/{types → lib}/utils/useLeafletMap.d.ts.map +0 -0
  726. /package/{types → lib}/utils/useMounted.d.ts +0 -0
  727. /package/{types → lib}/utils/useMounted.d.ts.map +0 -0
  728. /package/{types → lib}/utils/useObserverSupport.d.ts +0 -0
  729. /package/{types → lib}/utils/useObserverSupport.d.ts.map +0 -0
  730. /package/{types → lib}/utils/usePageScroll.d.ts +0 -0
  731. /package/{types → lib}/utils/usePageScroll.d.ts.map +0 -0
  732. /package/{types → lib}/utils/useParams.d.ts +0 -0
  733. /package/{types → lib}/utils/useParams.d.ts.map +0 -0
  734. /package/{types → lib}/utils/usePoster.d.ts +0 -0
  735. /package/{types → lib}/utils/usePoster.d.ts.map +0 -0
  736. /package/{types → lib}/utils/usePrevious.d.ts +0 -0
  737. /package/{types → lib}/utils/usePrevious.d.ts.map +0 -0
  738. /package/{types → lib}/utils/useResizeThrottle.d.ts +0 -0
  739. /package/{types → lib}/utils/useResizeThrottle.d.ts.map +0 -0
  740. /package/{types → lib}/utils/useScroll.d.ts +0 -0
  741. /package/{types → lib}/utils/useScroll.d.ts.map +0 -0
  742. /package/{types → lib}/utils/useScrollIntoView.d.ts +0 -0
  743. /package/{types → lib}/utils/useScrollIntoView.d.ts.map +0 -0
  744. /package/{types → lib}/utils/useScrollThrottle.d.ts +0 -0
  745. /package/{types → lib}/utils/useScrollThrottle.d.ts.map +0 -0
  746. /package/{types → lib}/utils/useScrollTo.d.ts +0 -0
  747. /package/{types → lib}/utils/useScrollTo.d.ts.map +0 -0
  748. /package/{types → lib}/utils/useTimeout.d.ts +0 -0
  749. /package/{types → lib}/utils/useTimeout.d.ts.map +0 -0
  750. /package/{types → lib}/utils/useTouch.d.ts +0 -0
  751. /package/{types → lib}/utils/useTouch.d.ts.map +0 -0
  752. /package/{types → lib}/utils/useUpdateEffect.d.ts +0 -0
  753. /package/{types → lib}/utils/useUpdateEffect.d.ts.map +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCookieConsent-0bf94751.js","sources":["../src/utils/cookie-consent/cookie.ts","../src/utils/cookie-consent/useCookieConsent.tsx","../src/utils/cookie-consent/mutations.ts"],"sourcesContent":["export interface Cookie<T extends object> {\n name: string;\n data: T;\n}\n\nexport const setCookie = <T extends object>({\n name,\n data,\n days = -1,\n path = '/',\n}: {\n name: string;\n data: T;\n days?: number;\n path?: string;\n}) => {\n let cookieString = `${name}=`;\n\n try {\n const stringifiedData = JSON.stringify(data);\n cookieString += encodeURIComponent(stringifiedData);\n } catch (err) {\n console.warn('Cannot save data to cookie!');\n }\n\n // specify path\n cookieString += `; path=${path};`;\n\n // check if cookie should have lifetime\n if (days >= 0) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n cookieString += ` expires=${date.toUTCString()};`;\n }\n document.cookie = cookieString;\n};\n\nexport const getCookie = <T extends object>(\n name: string\n): Cookie<T> | undefined => {\n let cookie = undefined;\n\n try {\n // get cookie value\n const b = document.cookie.match(\n '(^|;)\\\\s*' + name + '\\\\s*=\\\\s*([^;]+)'\n );\n let cookieValue = b ? b.pop() : '';\n cookieValue = cookieValue ? decodeURIComponent(cookieValue) : '';\n\n if (!cookieValue) return;\n\n cookie = {\n name: name,\n data: JSON.parse(cookieValue) as T,\n } as Cookie<T>;\n } catch (err) {\n console.warn(err);\n }\n\n return cookie;\n};\n\nexport const deleteCookie = (name: string) => {\n setCookie<any>({ name, data: {} });\n};\n","import React, { useEffect, useState, useMemo, useCallback } from 'react';\nimport ReactDOMServer from 'react-dom/server';\n\nimport { Cookie, getCookie, setCookie } from './cookie';\nimport { activateTrackingScripts, updateConsentStatus } from './mutations';\n\nexport interface CookieType {\n label: string;\n isAccepted: boolean;\n isEditable: boolean;\n}\n\nexport interface CookieTypes {\n [key: string]: CookieType;\n}\n\nexport interface CookieConsentData {\n types: Record<string, boolean>;\n updatedAt: number;\n}\n\nexport interface CookieConsentSettings {\n cookieName?: string;\n initialCookieTypes?: CookieTypes;\n lifetime?: number;\n}\n\nexport const selectors = {\n buttons: {\n class: 'cookie-consent-button',\n attribute: 'data-consent-button',\n },\n status: {\n class: 'cookie-consent-status',\n attribute: 'data-consent-status',\n },\n script: (key: string) => `cookie-consent-script-${key}`,\n};\n\nconst useCookieConsent = (\n props: CookieConsentSettings,\n onSubmit?: () => void,\n statusRenderer?: (props: {\n updatedAt: number;\n state: CookieTypes;\n }) => React.ReactElement\n) => {\n const settings: Required<CookieConsentSettings> = useMemo(() => {\n return {\n cookieName: 'cookie-consent-v2',\n lifetime: 365,\n initialCookieTypes: {\n essentials: {\n isEditable: false,\n isAccepted: true,\n label: 'Essential functionalities',\n },\n },\n ...props,\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const [cookieTypes, setCookieTypes] = useState<CookieTypes>(\n settings.initialCookieTypes\n );\n\n const updateStatus = useCallback(() => {\n const cookie = getCookie(\n settings.cookieName\n ) as Cookie<CookieConsentData>;\n\n let statusMsg = '-';\n\n if (cookie && cookie.data) {\n const statusHtml = statusRenderer?.({\n updatedAt: cookie.data.updatedAt,\n state: cookieTypes,\n });\n if (statusHtml) {\n statusMsg = ReactDOMServer.renderToStaticMarkup(statusHtml);\n }\n }\n\n updateConsentStatus(statusMsg, [\n `[${selectors.status.attribute}]`,\n `.${selectors.status.class}`,\n ]);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [settings.cookieName]);\n\n useEffect(() => {\n const cookie = getCookie(\n settings.cookieName\n ) as Cookie<CookieConsentData>;\n\n if (cookie && cookie.data?.types) {\n setCookieTypes((prev) => {\n const cPrev = { ...prev };\n for (const key in cPrev) {\n if (!cookie.data.types[key]) continue;\n cPrev[key].isAccepted = cookie.data.types[key];\n }\n\n handleScriptActivation(cPrev);\n\n return cPrev;\n });\n }\n updateStatus();\n }, [settings, settings.cookieName, updateStatus]);\n\n const mapToCookieData = (types: CookieTypes): Record<string, boolean> => {\n const data = {};\n if (!types) return data;\n\n for (const key in types) {\n data[key] = types[key].isAccepted;\n }\n\n return data;\n };\n\n /** Accept all types of cookies */\n const acceptAll = useCallback(() => {\n console.info('Accept all cookie types');\n\n setCookieTypes((prev) => {\n const types = { ...prev };\n for (const key in types) {\n if (!types[key].isEditable) continue;\n types[key].isAccepted = true;\n }\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(types),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(types);\n return types;\n });\n onSubmit?.();\n }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);\n\n /** Decline all types of cookies (except required ones) */\n const declineAll = useCallback(() => {\n console.info('Decline all cookie types');\n\n setCookieTypes((prev) => {\n const types = { ...prev };\n for (const key in types) {\n if (!types[key].isEditable) continue;\n types[key].isAccepted = false;\n }\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(types),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(types);\n return types;\n });\n onSubmit?.();\n }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);\n\n /** Accept selected types of cookies */\n const acceptSelected = useCallback(() => {\n console.info('Accept selected cookie types');\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(cookieTypes),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(cookieTypes);\n onSubmit?.();\n }, [\n cookieTypes,\n onSubmit,\n settings.cookieName,\n settings.lifetime,\n updateStatus,\n ]);\n\n const handleScriptActivation = (types: CookieTypes) => {\n if (!types) return;\n\n // activate scripts from cookie types\n const acceptedKeys = Object.keys(types).filter(\n (key) => types[key].isAccepted\n );\n activateTrackingScripts(\n acceptedKeys.map((key) => selectors.script(key))\n );\n };\n\n /** Set or toggle consent status of cookie type */\n const setConsent = (type: keyof CookieTypes, isAccepted?: boolean) => {\n setCookieTypes((prev) => {\n const types = { ...prev };\n if (!types[type] || !types[type].isEditable) return types;\n\n if (isAccepted !== undefined) {\n types[type].isAccepted = isAccepted;\n } else {\n types[type].isAccepted = !types[type].isAccepted;\n }\n\n return types;\n });\n };\n\n const getCookieValue = (): Cookie<CookieConsentData> | undefined => {\n return getCookie(settings.cookieName) as Cookie<CookieConsentData>;\n };\n\n return {\n cookieTypes,\n acceptAll,\n acceptSelected,\n declineAll,\n setConsent,\n getCookieValue,\n };\n};\n\nexport default useCookieConsent;\n","export const isUrlInWhitelist = (\n urlString: string,\n whitelist: string[] = []\n) => {\n let isInWhiteList = false;\n for (let i = 0; i < whitelist.length; i++) {\n if (urlString.indexOf(whitelist[i]) > -1) {\n isInWhiteList = true;\n break;\n }\n }\n return isInWhiteList;\n};\n\nexport const bindConsentButtons = (\n callback: () => void,\n selectors: string[] = []\n) => {\n const allConsentButtons = document.querySelectorAll(selectors.join(', '));\n\n for (let i = 0, len = allConsentButtons.length; i < len; i++) {\n allConsentButtons[i].addEventListener('click', callback);\n }\n};\n\nexport const activateTrackingScripts = (scriptTypeSelectors: string[] = []) => {\n const selectors = scriptTypeSelectors\n .filter((selector) => selector)\n .map((selector) => `script[type='text/${selector}']`)\n .join(', ');\n\n const scriptElements = selectors\n ? document.querySelectorAll(selectors)\n : [];\n\n let i = scriptElements.length;\n const newScriptElements: HTMLScriptElement[] = [];\n while (i--) {\n // create new script element to call it\n const newScriptElement = document.createElement('script');\n newScriptElement.type = 'text/javascript';\n\n if (scriptElements[i].hasAttribute('src')) {\n newScriptElement.src = scriptElements[i].getAttribute('src')!;\n newScriptElement.async = true;\n } else {\n newScriptElement.innerHTML = scriptElements[i].innerHTML;\n }\n\n // add new script tags to list\n newScriptElements.push(newScriptElement);\n\n // delete old helper element\n if (scriptElements[i].parentNode) {\n // eslint-disable-next-line no-unused-expressions\n scriptElements[i].parentNode?.removeChild(scriptElements[i]);\n }\n }\n\n // append new script tags\n i = newScriptElements.length;\n while (i--) {\n // append / activate script\n document.body.appendChild(newScriptElements[i]);\n }\n};\n\nexport const updateConsentStatus = (\n content: string,\n selectors: string[] = []\n) => {\n if (!content) return;\n const statusElements = document.querySelectorAll(selectors.join(', '));\n\n for (let i = 0, len = statusElements.length; i < len; i++) {\n statusElements[i].innerHTML = content;\n }\n};\n"],"names":["setCookie","_a","name","data","_b","days","_c","path","cookieString","concat","stringifiedData","JSON","stringify","encodeURIComponent","err","console","warn","date","Date","setTime","getTime","toUTCString","document","cookie","getCookie","undefined","b","match","cookieValue","pop","decodeURIComponent","parse","selectors","buttons","class","attribute","status","script","key","callback","allConsentButtons","querySelectorAll","join","i","len","length","addEventListener","urlString","whitelist","isInWhiteList","indexOf","props","onSubmit","statusRenderer","settings","useMemo","__assign","cookieName","lifetime","initialCookieTypes","essentials","isEditable","isAccepted","label","useState","cookieTypes","setCookieTypes","updateStatus","useCallback","statusMsg","statusHtml","updatedAt","state","ReactDOMServer","renderToStaticMarkup","content","statusElements","innerHTML","updateConsentStatus","useEffect","types","prev","cPrev","handleScriptActivation","mapToCookieData","acceptAll","info","declineAll","acceptSelected","scriptTypeSelectors","filter","selector","map","scriptElements","newScriptElements","newScriptElement","createElement","type","hasAttribute","src","getAttribute","async","push","parentNode","removeChild","body","appendChild","activateTrackingScripts","Object","keys","setConsent","getCookieValue"],"mappings":"wLAKaA,EAAY,SAAmBC,GACxC,IAAAC,SACAC,SACAC,EAAAH,EAAAI,KAAAA,OAAI,IAAAD,GAAI,IACRE,EAAAL,EAAAM,KAAAA,OAAI,IAAAD,EAAG,IAAGA,EAONE,EAAe,GAAGC,OAAAP,OAElB,IACA,IAAMQ,EAAkBC,KAAKC,UAAUT,GACvCK,GAAgBK,mBAAmBH,GACrC,MAAOI,G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o=require("./ClockFilled-2483aa4a.js");function n(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}})),o.default=e,Object.freeze(o)}var t=function(o,n){var t=e.useRef(o),r=e.useRef();e.useEffect((function(){t.current=o}),[o]);var a=e.useCallback((function(){r.current=window.setTimeout((function(){var e;return null===(e=t.current)||void 0===e?void 0:e.call(t)}),n)}),[n]),l=e.useCallback((function(){r.current&&window.clearTimeout(r.current)}),[]);e.useEffect((function(){return a(),l}),[n,a,l]);var u=e.useCallback((function(){l(),a()}),[l,a]);return{clear:l,reset:u}},r=function(n,r,a){var l=t(n,r),u=l.clear,i=l.reset;return e.useEffect(i,o.__spreadArray(o.__spreadArray([],a,!0),[i],!1)),e.useEffect(u,[]),{clear:u,reset:i}};exports.useDebounce=r,exports.useGeolocation=function(o,n){void 0===o&&(o=!0),void 0===n&&(n=!0);var t=e.useState(),r=t[0],a=t[1],l=e.useState(),u=l[0],i=l[1],c=e.useState(),s=c[0],f=c[1],d=e.useState(),v=d[0],m=d[1],g=e.useRef();e.useEffect((function(){a("geolocation"in navigator)}),[]);var k=e.useCallback((function(){i(!1),g.current&&navigator.geolocation.clearWatch(g.current)}),[]);e.useEffect((function(){if(n&&"geolocation"in navigator){k(),navigator.geolocation.watchPosition(h,b,{enableHighAccuracy:o}),i(!0);var e=g.current;return function(){e&&(i(!1),navigator.geolocation.clearWatch(e))}}}),[n,k,o]);var p=e.useCallback((function(){return new Promise((function(e,n){k(),i(!1),navigator.geolocation.watchPosition((function(o){h(o),e(o)}),(function(e){b(e),n(e)}),{enableHighAccuracy:o}),i(!0)}))}),[k,o]),h=function(e){f(e)},b=function(e){i(!1),console.log(e),m(e)};return{isSupported:r,isEnabled:u,location:s,error:v,reset:p,cancel:k}},exports.useLazyInput=function(o,n,t){void 0===t&&(t=600);var a=e.useState(n),l=a[0],u=a[1],i=r((function(){return null==o?void 0:o(l)}),t,[l]).clear,c=e.useCallback((function(e,n){void 0===n&&(n=!1),u(e),n&&(i(),null==o||o(e))}),[]),s=e.useCallback((function(){i(),null==o||o(l)}),[o,i,l]);return{update:c,value:l,forceUpdate:s}},exports.useLeafletMap=function(t){var r=e.useState(null),a=r[0],l=r[1],u=e.useState(null),i=u[0],c=u[1],s=e.useState(null),f=s[0],d=s[1],v=e.useState(null),m=v[0],g=v[1],k=e.useRef(null),p=e.useState(!1),h=p[0],b=p[1],C=e.useRef(!1),y=e.useRef(null),z=e.useMemo((function(){return Object.keys(t).forEach((function(e){void 0===t[e]&&delete t[e]})),o.__assign({center:[0,0],zoom:2.5,touchZoom:!0,scrollWheelZoom:!1,showZoomControls:!0,zoomControlPosition:"topleft",onlyScrollOnFocus:!0,url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',markers:[],fitBoundsPadding:[20,20]},t)}),[t]);e.useEffect((function(){if(a){o.__awaiter(void 0,void 0,void 0,(function(){var e,t,r;return o.__generator(this,(function(o){switch(o.label){case 0:return i||!a||C.current?[2]:(C.current=!0,[4,Promise.resolve().then((function(){return n(require("leaflet"))}))]);case 1:return(e=o.sent())?(c(e),t=e.map(a,{center:z.center,zoom:z.zoom,touchZoom:z.touchZoom,scrollWheelZoom:z.scrollWheelZoom,zoomControl:!1,minZoom:z.minZoom,maxZoom:z.maxZoom}),z.showZoomControls&&e.control.zoom({position:z.zoomControlPosition}).addTo(t),t.once("focus",(function(){z.onlyScrollOnFocus&&t.scrollWheelZoom.enable()})),t.once("blur",(function(){z.onlyScrollOnFocus&&t.scrollWheelZoom.disable()})),t.on("click",(function(e){var o;null===(o=z.onClick)||void 0===o||o.call(z,e,t.getZoom())})),d(t),e.tileLayer(z.url,{attribution:z.attribution}).addTo(t),(r=new e.FeatureGroup).addTo(t),g(r),[2]):[2]}}))}))}}),[i,a,z,z.attribution,z.center,z.onlyScrollOnFocus,z.scrollWheelZoom,z.touchZoom,z.url,z.zoom]),e.useEffect((function(){var e;if(f&&m){m.clearLayers(),null===(e=z.markers)||void 0===e||e.forEach((function(e){var o,n,t=e.position,r=e.icon,a=e.id,l=e.isInteractive;if((null==r?void 0:r.url)&&(null==r?void 0:r.size)&&t){var u=a===z.activeMarkerId,c=i.icon({iconUrl:r.url,iconSize:u?r.sizeActive:r.size,iconAnchor:u?r.anchorActive:null==r?void 0:r.anchor}),s=i.marker(i.latLng(t[0],t[1]),{icon:c,riseOnHover:!0,interactive:l}).addTo(f);l&&s.on("click",(function(){var e;null===(e=z.onMarkerClick)||void 0===e||e.call(z,a)})),m.addLayer(s),i&&f&&m&&(h?z.activeMarkerId&&z.activeMarkerId!==(null==k?void 0:k.current)&&(k.current=z.activeMarkerId,null===(n=z.onActiveMarkerChanged)||void 0===n||n.call(z,{markerId:z.activeMarkerId})):(null===(o=z.onReady)||void 0===o||o.call(z),b(!0),z.activeMarkerId&&(k.current=z.activeMarkerId)))}}));var o=function(){var e,o,n;if(f&&z.restrictToMarkersArea){var t=null===(e=null==m?void 0:m.getBounds())||void 0===e?void 0:e.pad(.3);if(t&&t.isValid()){var r=t.getNorth(),a=t.getEast(),l=t.getSouth(),u=t.getWest(),i=f.getCenter(),c=null,s=null;(i.lat<l||i.lat>r)&&y.current&&(c=null===(o=y.current)||void 0===o?void 0:o.lat),(i.lng<u||i.lng>a)&&y.current&&(s=null===(n=y.current)||void 0===n?void 0:n.lng),null===s&&null===c||(null!==s&&(i.lng=s),null!==c&&(i.lat=c),f.panTo(i,{animate:!1})),y.current=i}}};if(z.restrictToMarkersArea)(null==m?void 0:m.getBounds()).isValid()&&f.on("drag",o);return function(){y.current=null,null==f||f.off("drag",o)}}}),[i,h,f,z,z.markers,m]);var S=e.useCallback((function(){f&&m&&f.fitBounds(m.getBounds(),{padding:i.point(z.fitBoundsPadding)})}),[i,f,z.fitBoundsPadding,m]),M=e.useCallback((function(e){var o,n=e||z.zoom,t=null===(o=z.markers)||void 0===o?void 0:o.find((function(e){return e.id===z.activeMarkerId}));t&&(null==f||f.flyTo(t.position,n))}),[f,z.activeMarkerId,z.markers,z.zoom]),Z=e.useCallback((function(e,o){var n=o||z.zoom;e?null==f||f.flyTo(e,n):M(n)}),[M,f,z.zoom]),T=e.useCallback((function(e){e&&(null==f||f.panTo(e))}),[f]),w=e.useCallback((function(){null==f||f.invalidateSize()}),[f]),E=e.useCallback((function(){return(null==f?void 0:f.getZoom())||z.zoom}),[f,z.zoom]);return{setContainer:l,flyToActive:M,flyToPosition:Z,panToPosition:T,showAllMarkers:S,recalculateMapSize:w,getCurrentZoom:E,isLoaded:h}},exports.useTimeout=t;
2
- //# sourceMappingURL=useGeolocation-4d38150b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useGeolocation-4d38150b.js","sources":["../src/utils/useTimeout.ts","../src/utils/useDebounce.ts","../src/utils/useGeolocation.ts","../src/utils/useLazyInput.ts","../src/utils/useLeafletMap.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\nconst useTimeout = (callback: () => void, delay: number) => {\n const callbackRef = useRef(callback);\n const timeoutRef = useRef<number>();\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const set = useCallback(() => {\n timeoutRef.current = window.setTimeout(\n () => callbackRef.current?.(),\n delay\n );\n }, [delay]);\n\n const clear = useCallback(() => {\n timeoutRef.current && window.clearTimeout(timeoutRef.current);\n }, []);\n\n useEffect(() => {\n set();\n return clear;\n }, [delay, set, clear]);\n\n const reset = useCallback(() => {\n clear();\n set();\n }, [clear, set]);\n\n return { clear, reset };\n};\n\nexport default useTimeout;\n","import { DependencyList, useEffect } from 'react';\nimport useTimeout from './useTimeout';\n\nconst useDebounce = (\n callback: () => void,\n delay: number,\n deps: DependencyList\n) => {\n const { clear, reset } = useTimeout(callback, delay);\n\n useEffect(reset, [...deps, reset]);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(clear, []);\n\n return {\n clear,\n reset,\n };\n};\n\nexport default useDebounce;\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\nconst useGeolocation = (enableHighAccuracy = true, autostart = true) => {\n const [isSupported, setIsSupported] = useState<boolean>();\n const [isEnabled, setIsEnabled] = useState<boolean>();\n const [location, setLocation] = useState<GeolocationPosition>();\n const [error, setError] = useState<GeolocationPositionError>();\n const watchRef = useRef<number | null>();\n\n useEffect(() => {\n setIsSupported('geolocation' in navigator);\n }, []);\n\n const cancel = useCallback(() => {\n setIsEnabled(false);\n if (watchRef.current) {\n navigator.geolocation.clearWatch(watchRef.current);\n }\n }, []);\n\n useEffect(() => {\n if (!autostart || !('geolocation' in navigator)) {\n return;\n }\n\n cancel();\n navigator.geolocation.watchPosition(handleSuccess, handleError, {\n enableHighAccuracy,\n });\n setIsEnabled(true);\n const watch = watchRef.current;\n\n return () => {\n if (watch) {\n setIsEnabled(false);\n navigator.geolocation.clearWatch(watch);\n }\n };\n }, [autostart, cancel, enableHighAccuracy]);\n\n const reset = useCallback(() => {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n cancel();\n setIsEnabled(false);\n navigator.geolocation.watchPosition(\n (position) => {\n handleSuccess(position);\n resolve(position);\n },\n (err) => {\n handleError(err);\n reject(err);\n },\n {\n enableHighAccuracy,\n }\n );\n setIsEnabled(true);\n });\n }, [cancel, enableHighAccuracy]);\n\n const handleSuccess = (position: GeolocationPosition) => {\n setLocation(position);\n };\n\n const handleError = (error: GeolocationPositionError) => {\n setIsEnabled(false);\n console.log(error);\n\n setError(error);\n };\n\n return { isSupported, isEnabled, location, error, reset, cancel };\n};\n\nexport default useGeolocation;\n","import { useCallback, useState } from 'react';\nimport useDebounce from './useDebounce';\n\nconst useLazyInput = (\n callback: (value: string) => void,\n initial: string,\n delay = 600\n) => {\n const [value, setValue] = useState<string>(initial);\n const { clear } = useDebounce(() => callback?.(value), delay, [value]);\n\n const update = useCallback((value: string, withoutDelay = false) => {\n setValue(value);\n if (withoutDelay) {\n clear();\n callback?.(value);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const forceUpdate = useCallback(() => {\n clear();\n callback?.(value);\n }, [callback, clear, value]);\n\n return {\n update,\n value,\n forceUpdate,\n };\n};\n\nexport default useLazyInput;\n","import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport {\n FeatureGroup,\n LatLng,\n LeafletMouseEvent,\n Map,\n Marker,\n MarkerOptions,\n} from 'leaflet';\n\nexport interface LeafletMapSettings {\n center: [number, number];\n zoom: number;\n minZoom?: number;\n maxZoom?: number;\n touchZoom: boolean;\n scrollWheelZoom: boolean;\n onlyScrollOnFocus: boolean;\n url: string;\n attribution: string;\n markers: Array<LeafletMapMarker>;\n activeMarkerId?: string;\n fitBoundsPadding: [number, number];\n restrictToMarkersArea?: boolean;\n showZoomControls?: boolean;\n zoomControlPosition?: 'bottomleft' | 'bottomright' | 'topleft' | 'topright';\n onMarkerClick?: (markerId: string) => void;\n onActiveMarkerChanged?: (props: { markerId: string }) => void;\n onReady?: () => void;\n onClick?: (ev: LeafletMouseEvent, currentZoom: number) => void;\n}\n\nexport interface LeafletMapMarker {\n id: string;\n position: [number, number];\n isInteractive?: boolean;\n icon?: {\n url: string;\n size: [number, number];\n anchor: [number, number];\n\n sizeActive: [number, number];\n anchorActive: [number, number];\n };\n popup?: {\n text: string;\n };\n}\n\nconst useLeafletMap = (settings: Partial<LeafletMapSettings>) => {\n const [container, setContainer] = useState<HTMLElement | null>(null);\n const [L, setLeaflet] = useState<any>(null);\n const [map, setMap] = useState<Map | null>(null);\n const [markersLayerGroup, setMarkersLayerGroup] =\n useState<FeatureGroup<any> | null>(null);\n const prevMarkerId = useRef<string | null>(null);\n const [isLoaded, setLoaded] = useState<boolean>(false);\n const isRenderedRef = useRef<boolean>(false);\n\n const lastValidCenter = useRef<LatLng | null>(null);\n\n const mapSettings: LeafletMapSettings = useMemo(() => {\n // removing undefined keys\n Object.keys(settings).forEach((key) => {\n if (settings[key] === undefined) {\n delete settings[key];\n }\n });\n\n return {\n center: [0, 0],\n zoom: 2.5,\n touchZoom: true,\n scrollWheelZoom: false,\n showZoomControls: true,\n zoomControlPosition: 'topleft',\n onlyScrollOnFocus: true,\n url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n attribution:\n '&copy; <a href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors',\n markers: [],\n fitBoundsPadding: [20, 20], // 0 = TopLeft, 1 = BottomRight\n ...settings,\n };\n }, [settings]);\n\n useEffect(() => {\n if (!container) return;\n\n const init = async () => {\n if (L || !container || isRenderedRef.current) return;\n isRenderedRef.current = true;\n\n // init leaflet\n const leaflet = await import('leaflet');\n if (!leaflet) return;\n\n // set leaflet state\n setLeaflet(leaflet);\n\n // setup map\n const map = leaflet.map(container, {\n center: mapSettings.center,\n zoom: mapSettings.zoom,\n touchZoom: mapSettings.touchZoom,\n scrollWheelZoom: mapSettings.scrollWheelZoom,\n zoomControl: false,\n minZoom: mapSettings.minZoom,\n maxZoom: mapSettings.maxZoom,\n });\n\n if (mapSettings.showZoomControls) {\n leaflet.control\n .zoom({\n position: mapSettings.zoomControlPosition,\n })\n .addTo(map);\n }\n\n // activate map scrolling on focus\n map.once('focus', () => {\n if (mapSettings.onlyScrollOnFocus) {\n map.scrollWheelZoom.enable();\n }\n });\n\n // deactivate map scrolling on focus is lost\n map.once('blur', () => {\n if (mapSettings.onlyScrollOnFocus) {\n map.scrollWheelZoom.disable();\n }\n });\n\n map.on('click', (ev) => {\n mapSettings.onClick?.(ev as LeafletMouseEvent, map.getZoom());\n });\n\n // set map state\n setMap(map);\n\n // add map layer from map provider\n leaflet\n .tileLayer(mapSettings.url, {\n attribution: mapSettings.attribution,\n })\n .addTo(map);\n\n // setup layer for markers\n const group = new leaflet.FeatureGroup();\n group.addTo(map);\n\n setMarkersLayerGroup(group);\n };\n\n init();\n }, [\n L,\n container,\n mapSettings,\n mapSettings.attribution,\n mapSettings.center,\n mapSettings.onlyScrollOnFocus,\n mapSettings.scrollWheelZoom,\n mapSettings.touchZoom,\n mapSettings.url,\n mapSettings.zoom,\n ]);\n\n useEffect(() => {\n if (!map || !markersLayerGroup) return;\n\n markersLayerGroup.clearLayers();\n mapSettings.markers?.forEach(\n ({ position, icon, id, isInteractive }) => {\n if (!icon?.url || !icon?.size || !position) return;\n const isActive = id === mapSettings.activeMarkerId;\n\n const markerIcon = L.icon({\n iconUrl: icon.url,\n\n iconSize: isActive ? icon.sizeActive : icon.size, // size of the icon\n // shadowSize: [50, 64], // size of the shadow\n iconAnchor: isActive ? icon.anchorActive : icon?.anchor, // point of the icon which will correspond to marker's location\n // shadowAnchor: [4, 62], // the same for the shadow\n // popupAnchor: [0, -16], // point from which the popup should open relative to the iconAnchor\n });\n\n const marker: Marker = L.marker(\n L.latLng(position[0], position[1]),\n {\n icon: markerIcon,\n riseOnHover: true,\n interactive: isInteractive,\n } as MarkerOptions\n ).addTo(map);\n\n if (isInteractive) {\n marker.on('click', () => {\n mapSettings.onMarkerClick?.(id);\n });\n }\n\n // add marker to markers layer\n markersLayerGroup.addLayer(marker);\n\n if (L && map && markersLayerGroup) {\n if (!isLoaded) {\n // on first load\n mapSettings.onReady?.();\n setLoaded(true);\n if (mapSettings.activeMarkerId) {\n prevMarkerId.current = mapSettings.activeMarkerId;\n }\n } else {\n // check if active marker changed\n if (\n mapSettings.activeMarkerId &&\n mapSettings.activeMarkerId !== prevMarkerId?.current\n ) {\n prevMarkerId.current = mapSettings.activeMarkerId;\n\n mapSettings.onActiveMarkerChanged?.({\n markerId: mapSettings.activeMarkerId,\n });\n }\n }\n }\n }\n );\n\n const handleMapMove = () => {\n if (!map) return;\n if (!mapSettings.restrictToMarkersArea) return;\n\n const markersBounds = markersLayerGroup?.getBounds()?.pad(0.3);\n if (!markersBounds || !markersBounds.isValid()) return;\n\n const northEdge = markersBounds.getNorth();\n const eastEdge = markersBounds.getEast();\n const southEdge = markersBounds.getSouth();\n const westEdge = markersBounds.getWest();\n\n const center = map.getCenter();\n let newLat: number | null = null;\n let newLng: number | null = null;\n\n // on latitude overshoot\n if (\n (center.lat < southEdge || center.lat > northEdge) &&\n lastValidCenter.current\n ) {\n newLat = lastValidCenter.current?.lat;\n }\n\n // on longitude overshoot\n if (\n (center.lng < westEdge || center.lng > eastEdge) &&\n lastValidCenter.current\n ) {\n newLng = lastValidCenter.current?.lng;\n }\n\n if (newLng !== null || newLat !== null) {\n if (newLng !== null) center.lng = newLng;\n if (newLat !== null) center.lat = newLat;\n\n map.panTo(center, { animate: false });\n }\n\n lastValidCenter.current = center;\n };\n\n // if set restrict map movement to markers\n if (mapSettings.restrictToMarkersArea) {\n const markersBounds = markersLayerGroup?.getBounds();\n\n if (markersBounds.isValid()) {\n map.on('drag', handleMapMove);\n }\n }\n\n return () => {\n lastValidCenter.current = null;\n map?.off('drag', handleMapMove);\n };\n }, [L, isLoaded, map, mapSettings, mapSettings.markers, markersLayerGroup]);\n\n /**\n * Adjust zoom to show all markers\n */\n const showAllMarkers = useCallback(() => {\n if (map && markersLayerGroup) {\n map.fitBounds(markersLayerGroup.getBounds(), {\n padding: L.point(mapSettings.fitBoundsPadding),\n });\n }\n }, [L, map, mapSettings.fitBoundsPadding, markersLayerGroup]);\n\n /**\n * Pan and zoom to active marker position on map\n * @param zoom\n */\n const flyToActive = useCallback(\n (zoom?: number) => {\n const mapZoom = zoom || mapSettings.zoom;\n const marker = mapSettings.markers?.find(\n (m) => m.id === mapSettings.activeMarkerId\n );\n if (marker) map?.flyTo(marker.position, mapZoom);\n },\n [map, mapSettings.activeMarkerId, mapSettings.markers, mapSettings.zoom]\n );\n\n /**\n * Pan and zoom to marker position on map\n * @param position\n * @param zoom\n */\n const flyToPosition = useCallback(\n (position?: [number, number], zoom?: number) => {\n const mapZoom = zoom || mapSettings.zoom;\n\n if (position) map?.flyTo(position, mapZoom);\n else flyToActive(mapZoom);\n },\n [flyToActive, map, mapSettings.zoom]\n );\n\n /**\n * Pan to marker position on map\n * @param position\n */\n const panToPosition = useCallback(\n (position?: [number, number]) => {\n if (position) map?.panTo(position);\n },\n [map]\n );\n\n /** Recalculate map size */\n const recalculateMapSize = useCallback(() => {\n map?.invalidateSize();\n }, [map]);\n\n const getCurrentZoom = useCallback(() => {\n return map?.getZoom() || mapSettings.zoom;\n }, [map, mapSettings.zoom]);\n\n return {\n setContainer,\n flyToActive,\n flyToPosition,\n panToPosition,\n showAllMarkers,\n recalculateMapSize,\n getCurrentZoom,\n isLoaded,\n };\n};\n\nexport default useLeafletMap;\n"],"names":["useTimeout","callback","delay","callbackRef","useRef","timeoutRef","useEffect","current","set","useCallback","window","setTimeout","_a","call","clear","clearTimeout","reset","useDebounce","deps","__spreadArray","enableHighAccuracy","autostart","useState","isSupported","setIsSupported","_b","isEnabled","setIsEnabled","_c","location","setLocation","_d","error","setError","watchRef","navigator","cancel","geolocation","clearWatch","watchPosition","handleSuccess","handleError","watch","Promise","resolve","reject","position","err","console","log","initial","value","setValue","update","withoutDelay","forceUpdate","settings","container","setContainer","L","setLeaflet","map","setMap","markersLayerGroup","setMarkersLayerGroup","prevMarkerId","_e","isLoaded","setLoaded","isRenderedRef","lastValidCenter","mapSettings","useMemo","Object","keys","forEach","key","undefined","__assign","center","zoom","touchZoom","scrollWheelZoom","showZoomControls","zoomControlPosition","onlyScrollOnFocus","url","attribution","markers","fitBoundsPadding","__awaiter","then","_interopNamespace","require","leaflet","sent","zoomControl","minZoom","maxZoom","control","addTo","once","enable","disable","on","ev","onClick","getZoom","tileLayer","group","FeatureGroup","clearLayers","icon","id","isInteractive","size","isActive","activeMarkerId","markerIcon","iconUrl","iconSize","sizeActive","iconAnchor","anchorActive","anchor","marker","latLng","riseOnHover","interactive","onMarkerClick","addLayer","onActiveMarkerChanged","markerId","onReady","handleMapMove","restrictToMarkersArea","markersBounds","getBounds","pad","isValid","northEdge","getNorth","eastEdge","getEast","southEdge","getSouth","westEdge","getWest","getCenter","newLat","newLng","lat","lng","panTo","animate","off","showAllMarkers","fitBounds","padding","point","flyToActive","mapZoom","find","m","flyTo","flyToPosition","panToPosition","recalculateMapSize","invalidateSize","getCurrentZoom"],"mappings":"0WAEA,IAAMA,EAAa,SAACC,EAAsBC,GACtC,IAAMC,EAAcC,SAAOH,GACrBI,EAAaD,EAAAA,SAEnBE,EAAAA,WAAU,WACNH,EAAYI,QAAUN,IACvB,CAACA,IAEJ,IAAMO,EAAMC,EAAAA,aAAY,WACpBJ,EAAWE,QAAUG,OAAOC,YACxB,WAAM,IAAAC,EAAA,OAAuB,UAAvBT,EAAYI,eAAW,IAAAK,OAAA,EAAAA,EAAAC,KAAAV,KAC7BD,KAEL,CAACA,IAEEY,EAAQL,EAAAA,aAAY,WACtBJ,EAAWE,SAAWG,OAAOK,aAAaV,EAAWE,WACtD,IAEHD,EAAAA,WAAU,WAEN,OADAE,IACOM,IACR,CAACZ,EAAOM,EAAKM,IAEhB,IAAME,EAAQP,EAAAA,aAAY,WACtBK,IACAN,MACD,CAACM,EAAON,IAEJ,MAAA,CAAEM,MAAKA,EAAEE,MAAKA,IC5BnBC,EAAc,SAChBhB,EACAC,EACAgB,GAEM,IAAAN,EAAmBZ,EAAWC,EAAUC,GAAtCY,EAAKF,EAAAE,MAAEE,UAOR,OALPV,EAAAA,UAAUU,EAAKG,gBAAAA,EAAAA,cAAA,GAAMD,GAAM,GAAA,CAAAF,QAG3BV,YAAUQ,EAAO,IAEV,CACHA,MAAKA,EACLE,MAAKA,iDCfU,SAACI,EAA2BC,QAA3B,IAAAD,IAAAA,GAAyB,QAAE,IAAAC,IAAAA,GAAgB,GACzDT,IAAAA,EAAgCU,EAAAA,WAA/BC,EAAWX,EAAA,GAAEY,EAAcZ,EAAA,GAC5Ba,EAA4BH,EAAAA,WAA3BI,EAASD,EAAA,GAAEE,EAAYF,EAAA,GACxBG,EAA0BN,EAAAA,WAAzBO,EAAQD,EAAA,GAAEE,EAAWF,EAAA,GACtBG,EAAoBT,EAAAA,WAAnBU,EAAKD,EAA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AMiF,EAAUjF,GAAQT,EAAYS,KAEhClC,EAAUe,MAAAA,GAAAA,EAAKuG,MAAMtH,EAAUmH,GAC9BD,EAAYC,KAErB,CAACD,EAAanG,EAAKU,EAAYS,OAO7BsF,EAAgB7J,eAClB,SAACqC,GACOA,IAAUe,MAAAA,GAAAA,EAAK4F,MAAM3G,MAE7B,CAACe,IAIC0G,EAAqB9J,EAAAA,aAAY,WACnCoD,MAAAA,GAAAA,EAAK2G,mBACN,CAAC3G,IAEE4G,EAAiBhK,EAAAA,aAAY,WACxB,OAAAoD,MAAAA,OAAA,EAAAA,EAAK8C,YAAapC,EAAYS,OACtC,CAACnB,EAAKU,EAAYS,OAEd,MAAA,CACHtB,aAAYA,EACZsG,YAAWA,EACXK,cAAaA,EACbC,cAAaA,EACbV,eAAcA,EACdW,mBAAkBA,EAClBE,eAAcA,EACdtG,SAAQA"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react");exports.useIE=function(t){var u=e.useState(t||!1),r=u[0],c=u[1];return e.useEffect((function(){c(void 0!==document.body.style.msTouchAction)}),[]),r};
2
- //# sourceMappingURL=useIE-aef9decc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIE-aef9decc.js","sources":["../src/utils/useIE.ts"],"sourcesContent":["import { useState, useEffect } from 'react';\n\nconst useIE = (initialValue?: boolean) => {\n const [isIE, setIE] = useState(initialValue || false);\n\n useEffect(() => {\n setIE((document.body.style as any).msTouchAction !== undefined);\n }, []);\n return isIE;\n};\n\nexport default useIE;\n"],"names":["initialValue","_a","useState","isIE","setIE","useEffect","undefined","document","body","style","msTouchAction"],"mappings":"kDAEc,SAACA,GACL,IAAAC,EAAgBC,EAAAA,SAASF,IAAgB,GAAxCG,EAAIF,EAAA,GAAEG,OAKb,OAHAC,EAAAA,WAAU,WACND,OAAqDE,IAA9CC,SAASC,KAAKC,MAAcC,iBACpC,IACIP"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react"),r=require("./styles-0f1a0aea.js"),n="undefined"!=typeof window&&void 0!==window.document,t=function(e,t){return n&&(t.length<=0||t.indexOf(e)>-1)&&("small"===e||window.matchMedia(r.mq[e]).matches)},a=function(e){return t("xxlarge",e)?"xxlarge":t("xlarge",e)?"xlarge":t("large",e)?"large":t("semilarge",e)?"semilarge":t("medium",e)?"medium":"small"},i=function(){return{small:!0,medium:window.matchMedia(r.mq.medium).matches,semilarge:window.matchMedia(r.mq.semilarge).matches,large:window.matchMedia(r.mq.large).matches,xlarge:window.matchMedia(r.mq.xlarge).matches,xxlarge:window.matchMedia(r.mq.xxlarge).matches}};exports.getMediaQuery=a,exports.isBrowser=n,exports.useMediaQueries=function(){var n=e.useState({small:!0,medium:!1,semilarge:!1,large:!1,xlarge:!1,xxlarge:!1}),t=n[0],a=n[1];return e.useEffect((function(){var e=function(){var e=i();a((function(n){return function(e,n){var t=!1;for(var a in r.mq)if(e[a]!==n[a]){t=!0;break}return!t}(n,e)?n:e}))};return window.addEventListener("resize",e),a(i()),function(){return window.removeEventListener("resize",e)}}),[]),t},exports.useMediaQuery=function(r){var n=e.useMemo((function(){return r||[]}),[r]),t=e.useState(),i=t[0],u=t[1];return e.useEffect((function(){var e=function(){var e=a(n);e!==i&&u(e)};return window.addEventListener("resize",e),u(a(n)),function(){return window.removeEventListener("resize",e)}}),[n,i]),i};
2
- //# sourceMappingURL=useMediaQuery-d4f81f88.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMediaQuery-d4f81f88.js","sources":["../src/utils/useMediaQuery.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport { MediaQueryType, mq } from './styles';\n\nexport const isBrowser =\n typeof window !== 'undefined' && typeof window.document !== 'undefined';\n\n// *****************\n// useBreakpoint\n// *****************\nconst checkMq = (cmq: MediaQueryType, checkMqs: MediaQueryType[]) => {\n return (\n isBrowser &&\n (checkMqs.length <= 0 || checkMqs.indexOf(cmq) > -1) &&\n (cmq !== 'small' ? window.matchMedia(mq[cmq]).matches : true)\n );\n};\n\nexport const getMediaQuery = (checkMqs: MediaQueryType[]): MediaQueryType => {\n if (checkMq('xxlarge', checkMqs)) {\n return 'xxlarge';\n } else if (checkMq('xlarge', checkMqs)) {\n return 'xlarge';\n } else if (checkMq('large', checkMqs)) {\n return 'large';\n } else if (checkMq('semilarge', checkMqs)) {\n return 'semilarge';\n } else if (checkMq('medium', checkMqs)) {\n return 'medium';\n } else {\n return 'small';\n }\n};\n\nexport const getMediaQueries = (): { [key in MediaQueryType]: boolean } => {\n return {\n small: true,\n medium: window.matchMedia(mq['medium']).matches,\n semilarge: window.matchMedia(mq['semilarge']).matches,\n large: window.matchMedia(mq['large']).matches,\n xlarge: window.matchMedia(mq['xlarge']).matches,\n xxlarge: window.matchMedia(mq['xxlarge']).matches,\n };\n};\n\nconst isEqual = (\n currentMqs: { [key in MediaQueryType]: boolean },\n newMqs: { [key in MediaQueryType]: boolean }\n) => {\n let isDifferent = false;\n\n for (const key in mq) {\n if (currentMqs[key] !== newMqs[key]) {\n isDifferent = true;\n break;\n }\n }\n\n return !isDifferent;\n};\n\nexport const useMediaQueries = () => {\n const [mediaQueries, setMediaQueries] = useState<\n { [key in MediaQueryType]: boolean }\n >({\n small: true,\n medium: false,\n semilarge: false,\n large: false,\n xlarge: false,\n xxlarge: false,\n });\n\n useEffect(() => {\n const handleResize = () => {\n const newMediaQueries = getMediaQueries();\n setMediaQueries((prev) => {\n if (!isEqual(prev, newMediaQueries)) {\n return newMediaQueries;\n } else return prev;\n });\n };\n\n window.addEventListener('resize', handleResize);\n setMediaQueries(getMediaQueries());\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return mediaQueries;\n};\n\nexport const useMediaQuery = (mqs?: MediaQueryType[]) => {\n const checkMqs = useMemo(() => mqs || [], [mqs]);\n const [mediaQuery, setMediaQuery] = useState<MediaQueryType | undefined>();\n\n useEffect(() => {\n const handleResize = () => {\n const newMediaQuery = getMediaQuery(checkMqs);\n\n if (newMediaQuery !== mediaQuery) {\n setMediaQuery(newMediaQuery);\n }\n };\n\n window.addEventListener('resize', handleResize);\n setMediaQuery(getMediaQuery(checkMqs));\n\n return () => window.removeEventListener('resize', handleResize);\n }, [checkMqs, mediaQuery]);\n\n return mediaQuery;\n};\n"],"names":["isBrowser","window","document","checkMq","cmq","checkMqs","length","indexOf","matchMedia","mq","matches","getMediaQuery","getMediaQueries","small","medium","semilarge","large","xlarge","xxlarge","_a","useState","mediaQueries","setMediaQueries","useEffect","handleResize","newMediaQueries","prev","currentMqs","newMqs","isDifferent","key","isEqual","addEventListener","removeEventListener","mqs","useMemo","mediaQuery","setMediaQuery","newMediaQuery"],"mappings":"sEAGaA,EACS,oBAAXC,aAAqD,IAApBA,OAAOC,SAK7CC,EAAU,SAACC,EAAqBC,GAClC,OACIL,IACCK,EAASC,QAAU,GAAKD,EAASE,QAAQH,IAAQ,KACzC,UAARA,GAAkBH,OAAOO,WAAWC,EAAAA,GAAGL,IAAMM,UAIzCC,EAAgB,SAACN,GAC1B,OAAIF,EAAQ,UAAWE,GACZ,UACAF,EAAQ,SAAUE,GAClB,SACAF,EAAQ,QAASE,GACjB,QACAF,EAAQ,YAAaE,GACrB,YACAF,EAAQ,SAAUE,GAClB,SAEA,SAIFO,EAAkB,WACpB,MAAA,CACHC,OAAO,EACPC,OAAQb,OAAOO,WAAWC,EAAEA,GAAA,QAAYC,QACxCK,UAAWd,OAAOO,WAAWC,EAAEA,GAAA,WAAeC,QAC9CM,MAAOf,OAAOO,WAAWC,EAAEA,GAAA,OAAWC,QACtCO,OAAQhB,OAAOO,WAAWC,EAAEA,GAAA,QAAYC,QACxCQ,QAASjB,OAAOO,WAAWC,EAAEA,GAAA,SAAaC,8EAoBnB,WACrBS,IAAAA,EAAkCC,EAAAA,SAEtC,CACEP,OAAO,EACPC,QAAQ,EACRC,WAAW,EACXC,OAAO,EACPC,QAAQ,EACRC,SAAS,IARNG,EAAYF,EAAA,GAAEG,OA2BrB,OAhBAC,EAAAA,WAAU,WACAC,IAAAA,EAAe,WACXC,IAAAA,EAAkBb,IACxBU,GAAgB,SAACI,GACb,OAhCA,SACZC,EACAC,GAEIC,IAAAA,GAAc,EAElB,IAAK,IAAMC,KAAOrB,KACVkB,GAAAA,EAAWG,KAASF,EAAOE,GAAM,CACjCD,GAAc,EACd,MAIR,OAAQA,EAmBSE,CAAQL,EAAMD,GAELC,EADHD,MAQnB,OAHAxB,OAAO+B,iBAAiB,SAAUR,GAClCF,EAAgBV,KAET,WAAM,OAAAX,OAAOgC,oBAAoB,SAAUT,MACnD,IAEIH,yBAGkB,SAACa,GAC1B,IAAM7B,EAAW8B,EAAAA,SAAQ,WAAMD,OAAAA,GAAO,KAAI,CAACA,IACrCf,EAA8BC,EAAAA,WAA7BgB,EAAUjB,EAAA,GAAEkB,EAAalB,EAAA,GAiBhC,OAfAI,EAAAA,WAAU,WACAC,IAAAA,EAAe,WACjB,IAAMc,EAAgB3B,EAAcN,GAEhCiC,IAAkBF,GAClBC,EAAcC,IAOtB,OAHArC,OAAO+B,iBAAiB,SAAUR,GAClCa,EAAc1B,EAAcN,IAErB,WAAM,OAAAJ,OAAOgC,oBAAoB,SAAUT,MACnD,CAACnB,EAAU+B,IAEPA"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react");exports.useMounted=function(){var r=e.useRef(!1);return e.useEffect((function(){r.current=!0}),[]),r.current};
2
- //# sourceMappingURL=useMounted-0bba9869.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMounted-0bba9869.js","sources":["../src/utils/useMounted.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nconst useMounted = () => {\n const isMountedRef = useRef<boolean>(false);\n\n useEffect(() => {\n isMountedRef.current = true;\n }, []);\n\n return isMountedRef.current;\n};\n\nexport default useMounted;\n"],"names":["isMountedRef","useRef","useEffect","current"],"mappings":"uDAEmB,WACf,IAAMA,EAAeC,UAAgB,GAM9BD,OAJPE,EAAAA,WAAU,WACNF,EAAaG,SAAU,IACxB,IAEIH,EAAaG"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react");exports.useObserverSupport=function(r){var t=e.useState(r||!1),n=t[0],i=t[1];return e.useEffect((function(){"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?i(!0):i(!1)}),[]),n};
2
- //# sourceMappingURL=useObserverSupport-5ab320dd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useObserverSupport-5ab320dd.js","sources":["../src/utils/useObserverSupport.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport const useObserverSupport = (inital?: boolean) => {\n const [observerSupported, setObserverSupport] = useState(inital || false);\n\n useEffect(() => {\n if (\n !('IntersectionObserver' in window) ||\n !('IntersectionObserverEntry' in window) ||\n !('intersectionRatio' in window.IntersectionObserverEntry.prototype)\n ) {\n setObserverSupport(false);\n } else {\n setObserverSupport(true);\n }\n }, []);\n\n return observerSupported;\n};\n"],"names":["inital","_a","useState","observerSupported","setObserverSupport","useEffect","window","IntersectionObserverEntry","prototype"],"mappings":"+DAEkC,SAACA,GACzB,IAAAC,EAA0CC,EAAAA,SAASF,IAAU,GAA5DG,EAAiBF,EAAA,GAAEG,OAc1B,OAZAC,EAAAA,WAAU,WAEA,yBAA0BC,QAC1B,8BAA+BA,QAC/B,sBAAuBA,OAAOC,0BAA0BC,UAI1DJ,GAAmB,GAFnBA,GAAmB,KAIxB,IAEID"}
@@ -1,2 +0,0 @@
1
- "use strict";var e=require("react");exports.useUpdateEffect=function(r,t){var u=e.useRef(!0);e.useEffect((function(){u.current?u.current=!1:null==r||r()}),t)};
2
- //# sourceMappingURL=useUpdateEffect-4d233e2c.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useUpdateEffect-4d233e2c.js","sources":["../src/utils/useUpdateEffect.ts"],"sourcesContent":["import { DependencyList, EffectCallback, useEffect, useRef } from 'react';\n\n/** useEffect function that runs only on update (not on first render) */\nconst useUpdateEffect = (effect: EffectCallback, deps?: DependencyList) => {\n const firstRenderRef = useRef<boolean>(true);\n\n useEffect(() => {\n if (firstRenderRef.current) {\n firstRenderRef.current = false;\n return;\n }\n effect?.();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n};\n\nexport default useUpdateEffect;\n"],"names":["effect","deps","firstRenderRef","useRef","useEffect","current"],"mappings":"4DAGwB,SAACA,EAAwBC,GAC7C,IAAMC,EAAiBC,UAAgB,GAEvCC,EAAAA,WAAU,WACFF,EAAeG,QACfH,EAAeG,SAAU,EAG7BL,MAAAA,GAAAA,MAEDC"}
@@ -1,7 +0,0 @@
1
- {
2
- "internal": true,
3
- "main": "../cjs/cookies.js",
4
- "jsnext:main": "../esm/cookies.js",
5
- "module": "../esm/cookies.js",
6
- "types": "../types/cookies.d.ts"
7
- }
@@ -1,57 +0,0 @@
1
- import { a as __makeTemplateObject } from './ClockFilled-8784ddac.js';
2
- import React__default from 'react';
3
- import styled from 'styled-components';
4
- import { m as mq, s as spacings } from './styles-5f78e59d.js';
5
-
6
- var View = styled.div.withConfig({
7
- displayName: "Actions__View",
8
- componentId: "sc-1j3kti1-0"
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n\n @media ", " {\n display: ", ";\n }\n"], ["\n display: block;\n\n @media ", " {\n display: ", ";\n }\n"])), mq.medium, function (_a) {
10
- var isCovered = _a.isCovered;
11
- return isCovered ? 'block' : 'inline-block';
12
- });
13
- var Content = styled.div.withConfig({
14
- displayName: "Actions__Content",
15
- componentId: "sc-1j3kti1-1"
16
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n flex-direction: ", ";\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n &&& > * {\n /* flex: 1 1 ", "; */\n margin-top: ", "px;\n margin-left: ", "px;\n\n /* min-width: ", "; */\n }\n\n @media ", " {\n display: ", ";\n flex-direction: ", ";\n align-items: stretch;\n width: auto;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n flex-direction: ", ";\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n &&& > * {\n /* flex: 1 1 ", "; */\n margin-top: ", "px;\n margin-left: ", "px;\n\n /* min-width: ", "; */\n }\n\n @media ", " {\n display: ", ";\n flex-direction: ", ";\n align-items: stretch;\n width: auto;\n }\n"])), function (_a) {
17
- var isMirrored = _a.isMirrored;
18
- return isMirrored ? 'column-reverse' : 'column';
19
- }, spacings.nudge * 2, spacings.spacer, function (_a) {
20
- var isCovered = _a.isCovered;
21
- return isCovered ? '100%' : '0px';
22
- }, spacings.nudge * 2, spacings.spacer, function (_a) {
23
- var isCovered = _a.isCovered;
24
- return isCovered && '0px';
25
- }, mq.medium, function (_a) {
26
- var isCovered = _a.isCovered;
27
- return isCovered ? 'flex' : 'inline-flex';
28
- }, function (_a) {
29
- var isMirrored = _a.isMirrored;
30
- return isMirrored ? 'row-reverse' : 'row';
31
- });
32
- var TertiaryWrapper = styled.div.withConfig({
33
- displayName: "Actions__TertiaryWrapper",
34
- componentId: "sc-1j3kti1-2"
35
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n align-self: flex-start;\n\n @media ", " {\n align-self: center;\n }\n"], ["\n align-self: flex-start;\n\n @media ", " {\n align-self: center;\n }\n"])), mq.medium);
36
-
37
- var Actions = function (_a) {
38
- var _b = _a.mode,
39
- mode = _b === void 0 ? 'wrap' : _b,
40
- _c = _a.isMirrored,
41
- isMirrored = _c === void 0 ? false : _c,
42
- primary = _a.primary,
43
- secondary = _a.secondary,
44
- tertiary = _a.tertiary,
45
- className = _a.className;
46
- return React__default.createElement(View, {
47
- isCovered: mode === 'cover',
48
- className: className
49
- }, React__default.createElement(Content, {
50
- isCovered: mode === 'cover',
51
- isMirrored: isMirrored
52
- }, primary && primary, secondary && secondary, tertiary && React__default.createElement(TertiaryWrapper, null, tertiary)));
53
- };
54
- var templateObject_1, templateObject_2, templateObject_3;
55
-
56
- export { Actions as A };
57
- //# sourceMappingURL=Actions-73e13c48.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions-73e13c48.js","sources":["../src/components/blocks/Actions.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport styled from 'styled-components';\n\nimport { mq, spacings } from 'utils/styles';\n\nconst View = styled.div<{ isCovered?: boolean }>`\n display: block;\n\n @media ${mq.medium} {\n display: ${({ isCovered }) => (isCovered ? 'block' : 'inline-block')};\n }\n`;\n\nconst Content = styled.div<{\n isMirrored?: boolean;\n isCovered?: boolean;\n}>`\n display: flex;\n flex-wrap: wrap;\n flex-direction: ${({ isMirrored }) =>\n isMirrored ? 'column-reverse' : 'column'};\n\n margin-top: -${spacings.nudge * 2}px;\n margin-left: -${spacings.spacer}px;\n\n &&& > * {\n /* flex: 1 1 ${({ isCovered }) => (isCovered ? '100%' : '0px')}; */\n margin-top: ${spacings.nudge * 2}px;\n margin-left: ${spacings.spacer}px;\n\n /* min-width: ${({ isCovered }) => isCovered && '0px'}; */\n }\n\n @media ${mq.medium} {\n display: ${({ isCovered }) => (isCovered ? 'flex' : 'inline-flex')};\n flex-direction: ${({ isMirrored }) =>\n isMirrored ? 'row-reverse' : 'row'};\n align-items: stretch;\n width: auto;\n }\n`;\n\nconst TertiaryWrapper = styled.div`\n align-self: flex-start;\n\n @media ${mq.medium} {\n align-self: center;\n }\n`;\n\nexport type ActionMode = 'wrap' | 'cover';\n\nconst Actions: FC<{\n /** Behaviour of content wrapping. If set to cover the action container always tries to fill full width */\n mode?: ActionMode;\n /** Switch order of primary and secondary action */\n isMirrored?: boolean;\n /** React node of primary action */\n primary?: React.ReactNode;\n /** React node of secondary action */\n secondary?: React.ReactNode;\n /** React node of tertiary action */\n tertiary?: React.ReactNode;\n className?: string;\n}> = ({\n mode = 'wrap',\n isMirrored = false,\n primary,\n secondary,\n tertiary,\n className,\n}) => {\n return (\n <View isCovered={mode === 'cover'} className={className}>\n <Content isCovered={mode === 'cover'} isMirrored={isMirrored}>\n {primary && primary}\n {secondary && secondary}\n {tertiary && <TertiaryWrapper>{tertiary}</TertiaryWrapper>}\n </Content>\n </View>\n );\n};\n\nexport default Actions;\n"],"names":["View","styled","div","mq","medium","_a","isCovered","Content","templateObject_2","__makeTemplateObject","isMirrored","spacings","nudge","spacer","TertiaryWrapper","templateObject_3","Actions","_b","mode","_c","primary","secondary","tertiary","className","React","createElement"],"mappings":";;;;;AAKA,IAAMA,IAAI,GAAGC,MAAM,CAACC,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,eAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAA,CAAA,gJAAsC,wCAG1B,yBACsD,eAJlE,EAGGC,EAAE,CAACC,MAHN,EAIS,UAACC,EAAD,EAAc;AAAX,EAAA,IAAAC,SAAS,GAAAD,EAAA,CAAAC,SAAT,CAAA;AAAgB,EAAA,OAACA,SAAS,GAAG,OAAH,GAAa,cAAvB,CAAA;AAAsC,CAJlE,CAAV,CAAA;AAQA,IAAMC,OAAO,GAAGN,MAAM,CAACC,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,kBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAaM,CAAAA,CAAAA,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,kEAAA,EAAA,wBAAA,EAAA,yBAAA,EAAA,6CAAA,EAAA,4BAAA,EAAA,4BAAA,EAAA,+BAAA,EAAA,4BAAA,EAAA,uBAAA,EAAA,6BAAA,EAAA,iEAAA,CAAA,EAAA,CAGxB,kEAHwB,EAOsB,wBAPtB,EASW,yBATX,EAUS,6CAVT,EAa4C,4BAb5C,EAcc,4BAdd,EAeY,+BAfZ,EAiBmC,4BAjBnC,EAoBJ,uBApBI,EAqBgD,6BArBhD,EAuBoB,iEAvBpB,CAAA,CAAA,CAAb,EAMS,UAACJ,EAAD,EAAe;AAAZ,EAAA,IAAAK,UAAU,GAAAL,EAAA,CAAAK,UAAV,CAAA;AACjB,EAAA,OAAAA,UAAU,GAAG,gBAAH,GAAsB,QA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AA,KAAA,CAAA,GAAA,MAAA;MACPE,EAAA,GAAAd,EAAA,CAAAK;MAAAA,UAAU,GAAGS,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA;MACbC,OAAO,GAAAf,EAAA,CAAAe;MACPC,SAAS,GAAAhB,EAAA,CAAAgB;MACTC,QAAQ,GAAAjB,EAAA,CAAAiB;MACRC,SAAS,GAAAlB,EAAA,CAAAkB;AAET,EAAA,OACIC,cAAA,CAAAC,aAAA,CAACzB,IAAD,EAAK;AAACM,IAAAA,SAAS,EAAEY,IAAI,KAAK,OAArB;AAA8BK,IAAAA,SAAS,EAAEA,SAAAA;AAAzC,GAAL,EACIC,cAAC,CAAAC,aAAD,CAAClB,OAAD,EAAS;AAAAD,IAAAA,SAAS,EAAEY,IAAI,KAAK,OAApB;AAA6BR,IAAAA,UAAU,EAAEA,UAAAA;AAAzC,GAAT,EACKU,OAAO,IAAIA,OADhB,EAEKC,SAAS,IAAIA,SAFlB,EAGKC,QAAQ,IAAIE,4BAAA,CAACV,eAAD,EAAgB,IAAhB,EAAkBQ,QAAlB,CAHjB,CADJ,CADJ,CAAA;AASH,EA7BD;;;;;"}
@@ -1,24 +0,0 @@
1
- import { a as __makeTemplateObject } from './ClockFilled-8784ddac.js';
2
- import * as React from 'react';
3
- import styled from 'styled-components';
4
- import { L as Link } from './Link-ee8a48ed.js';
5
-
6
- var bdotColor = '#1fc2f4';
7
- var Dot = styled(Link).withConfig({
8
- displayName: "Bdot__Dot",
9
- componentId: "sc-itin1p-0"
10
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 14px;\n height: 14px;\n\n display: inline-block;\n vertical-align: middle;\n border-radius: 50%;\n\n background: ", ";\n color: ", ";\n text-decoration: none;\n\n span {\n visibility: hidden;\n font-size: 0;\n color: transparent;\n }\n"], ["\n width: 14px;\n height: 14px;\n\n display: inline-block;\n vertical-align: middle;\n border-radius: 50%;\n\n background: ", ";\n color: ", ";\n text-decoration: none;\n\n span {\n visibility: hidden;\n font-size: 0;\n color: transparent;\n }\n"])), bdotColor, bdotColor);
11
-
12
- var Bdot = function (_a) {
13
- var className = _a.className;
14
- return React.createElement(Dot, {
15
- ariaLabel: "b.lateral - creative agency",
16
- className: className,
17
- href: "https://blateral.com",
18
- isExternal: true
19
- }, React.createElement("span", null, "b.lateral - creative agency"));
20
- };
21
- var templateObject_1;
22
-
23
- export { Bdot as B };
24
- //# sourceMappingURL=Bdot-30b047cc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bdot-30b047cc.js","sources":["../src/components/blocks/Bdot.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport Link from 'components/typography/Link';\n\nconst bdotColor = '#1fc2f4';\n\nconst Dot = styled(Link)`\n width: 14px;\n height: 14px;\n\n display: inline-block;\n vertical-align: middle;\n border-radius: 50%;\n\n background: ${bdotColor};\n color: ${bdotColor};\n text-decoration: none;\n\n span {\n visibility: hidden;\n font-size: 0;\n color: transparent;\n }\n`;\n\nconst Bdot: React.FC<{ className?: string }> = ({ className }) => {\n return (\n <Dot\n ariaLabel=\"b.lateral - creative agency\"\n className={className}\n href=\"https://blateral.com\"\n isExternal\n >\n <span>b.lateral - creative agency</span>\n </Dot>\n );\n};\n\nexport default Bdot;\n"],"names":["bdotColor","Dot","styled","Link","templateObject_1","__makeTemplateObject","Bdot","_a","className","React","createElement","ariaLabel","href","isExternal"],"mappings":";;;;;AAIA,IAAMA,SAAS,GAAG,SAAlB,CAAA;AAEA,IAAMC,GAAG,GAAGC,MAAM,CAACC,IAAD,CAAT,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,WAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAeC,CAAAA,CAAAA,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,+IAAA,EAAA,gBAAA,EAAA,uIAAA,CAAA,EAAA,CAAA,+IAAA,EAQG,gBARH,EASF,uIATE,CAAA,CAAA,CAAf,EAQSL,SART,EASIA,SATJ,CAAT,CAAA;;AAmBA,IAAMM,IAAI,GAAqC,UAACC,EAAD,EAAc;AAAX,EAAA,IAAAC,SAAS,GAAAD,EAAA,CAAAC,SAAT,CAAA;AAC9C,EAAA,OACIC,KAAC,CAAAC,aAAD,CAACT,GAAD,EACI;AAAAU,IAAAA,SAAS,EAAC,6BAAV;AACAH,IAAAA,SAAS,EAAEA,SADX;AAEAI,IAAAA,IAAI,EAAC,sBAFL;AAGAC,IAAAA,UAAU,EAAA,IAAA;AAHV,GADJ,EAMIJ,KAAwC,CAAAC,aAAxC,CAAwC,MAAxC,EAAwC,IAAxC,EAAwC,6BAAxC,CANJ,CADJ,CAAA;AAUH,EAXD;;;;;"}
@@ -1,115 +0,0 @@
1
- import { a as __makeTemplateObject, d as __rest, _ as __assign } from './ClockFilled-8784ddac.js';
2
- import React__default from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { h as hexToRgba } from './hexRgbConverter-edb91624.js';
5
- import { s as spacings, a as getFonts, w as withRange, c as getGlobals, g as getColors, m as mq } from './styles-5f78e59d.js';
6
-
7
- var View = styled.a.withConfig({
8
- displayName: "Button__View",
9
- componentId: "sc-2gssup-0"
10
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n min-height: 3em;\n height: ", ";\n min-width: ", ";\n padding: 0.1em 1.2em;\n\n max-width: calc(100% - ", "px);\n\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: center;\n\n vertical-align: middle;\n\n font-family: ", ";\n ", "\n font-weight: ", ";\n line-height: 1;\n letter-spacing: ", ";\n text-decoration: none;\n\n outline: none;\n border: 1px solid transparent;\n border-radius: ", ";\n user-select: none;\n cursor: pointer;\n\n pointer-events: ", ";\n\n background-color: ", ";\n color: ", ";\n text-align: left;\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ", ";\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n & > *[data-btn-desktop] + *[data-btn-mobile] {\n margin-left: 0;\n }\n & > *[data-btn-mobile] + *[data-btn-desktop] {\n margin-left: 0;\n }\n & > *[data-btn-desktop] {\n display: none;\n }\n & > *:not([data-btn-desktop]) + * {\n margin-left: 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ", "\n }\n\n ", "\n\n @media ", " {\n & > *[data-btn-desktop='true'] {\n display: inherit;\n }\n & > *[data-btn-mobile='true'] {\n display: none;\n }\n & > *:not([data-btn-mobile='true']) + * {\n margin-left: 0;\n }\n }\n"], ["\n min-height: 3em;\n height: ", ";\n min-width: ", ";\n padding: 0.1em 1.2em;\n\n max-width: calc(100% - ", "px);\n\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: center;\n\n vertical-align: middle;\n\n font-family: ", ";\n ", "\n font-weight: ", ";\n line-height: 1;\n letter-spacing: ", ";\n text-decoration: none;\n\n outline: none;\n border: 1px solid transparent;\n border-radius: ", ";\n user-select: none;\n cursor: pointer;\n\n pointer-events: ", ";\n\n background-color: ", ";\n color: ", ";\n text-align: left;\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ", ";\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n & > *[data-btn-desktop] + *[data-btn-mobile] {\n margin-left: 0;\n }\n & > *[data-btn-mobile] + *[data-btn-desktop] {\n margin-left: 0;\n }\n & > *[data-btn-desktop] {\n display: none;\n }\n & > *:not([data-btn-desktop]) + * {\n margin-left: 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ", "\n }\n\n ", "\n\n @media ", " {\n & > *[data-btn-desktop='true'] {\n display: inherit;\n }\n & > *[data-btn-mobile='true'] {\n display: none;\n }\n & > *:not([data-btn-mobile='true']) + * {\n margin-left: 0;\n }\n }\n"])), function (_a) {
11
- var size = _a.size;
12
- return size === 'default' ? '3.5em' : '3em';
13
- }, function (_a) {
14
- var size = _a.size;
15
- return size === 'default' ? '200px' : '120px';
16
- }, spacings.spacer, function (_a) {
17
- var theme = _a.theme;
18
- return getFonts(theme).copy.medium.family;
19
- }, function (_a) {
20
- var theme = _a.theme;
21
- return withRange(getFonts(theme).copy.medium.size, 'font-size');
22
- }, function (_a) {
23
- var theme = _a.theme;
24
- return getFonts(theme).copy.medium.weight;
25
- }, function (_a) {
26
- var theme = _a.theme;
27
- return getFonts(theme).copy.medium.letterSpacing;
28
- }, function (_a) {
29
- var theme = _a.theme;
30
- return getGlobals(theme).sections.edgeRadius;
31
- }, function (_a) {
32
- var disable = _a.disable;
33
- return disable ? 'none' : 'all';
34
- }, function (_a) {
35
- var theme = _a.theme,
36
- inverted = _a.inverted,
37
- disable = _a.disable;
38
- return disable ? getColors(theme).elementBg.medium : inverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
39
- }, function (_a) {
40
- var theme = _a.theme,
41
- inverted = _a.inverted,
42
- disable = _a.disable;
43
- return disable ? hexToRgba(getColors(theme).text.default, 0.4) : !inverted ? getColors(theme).text.inverted : getColors(theme).text.default;
44
- }, function (_a) {
45
- var theme = _a.theme,
46
- inverted = _a.inverted,
47
- disable = _a.disable;
48
- return disable ? hexToRgba(getColors(theme).text.default, 0.4) : !inverted ? getColors(theme).text.inverted : getColors(theme).text.default;
49
- }, spacings.nudge, function (_a) {
50
- var disable = _a.disable,
51
- inverted = _a.inverted;
52
- return !disable && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:hover {\n box-shadow: 0px 8px 16px\n ", ";\n }\n "], ["\n &:hover {\n box-shadow: 0px 8px 16px\n ", ";\n }\n "])), inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.25)');
53
- }, function (_a) {
54
- var disable = _a.disable,
55
- inverted = _a.inverted;
56
- return !disable && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:focus {\n text-decoration: underline;\n box-shadow: 0px 8px 16px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n text-decoration: none;\n outline: none;\n box-shadow: none;\n }\n\n &:active {\n box-shadow: 0px 2px 6px\n ", ";\n }\n "], ["\n &:focus {\n text-decoration: underline;\n box-shadow: 0px 8px 16px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n text-decoration: none;\n outline: none;\n box-shadow: none;\n }\n\n &:active {\n box-shadow: 0px 2px 6px\n ", ";\n }\n "])), inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.25)', inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.3)');
57
- }, mq.semilarge);
58
- var Button = React__default.forwardRef(function (_a, ref) {
59
- var as = _a.as,
60
- _b = _a.size,
61
- size = _b === void 0 ? 'default' : _b,
62
- isInverted = _a.isInverted,
63
- isDisabled = _a.isDisabled,
64
- onClick = _a.onClick,
65
- className = _a.className,
66
- children = _a.children,
67
- rest = __rest(_a, ["as", "size", "isInverted", "isDisabled", "onClick", "className", "children"]);
68
-
69
- if (as === 'button') {
70
- return React__default.createElement(View, __assign({
71
- ref: ref,
72
- as: as,
73
- size: size,
74
- inverted: isInverted,
75
- disable: isDisabled,
76
- onClick: onClick,
77
- className: className
78
- }, rest), children);
79
- } else {
80
- return React__default.createElement(View, __assign({
81
- ref: ref,
82
- as: as,
83
- "aria-disabled": isDisabled,
84
- size: size,
85
- href: rest.href,
86
- target: rest.isExternal ? '_blank' : undefined,
87
- rel: rest.isExternal ? 'noopener noreferrer' : undefined,
88
- inverted: isInverted,
89
- disable: isDisabled,
90
- onClick: onClick,
91
- className: className
92
- }, rest), children);
93
- }
94
- });
95
- Button.displayName = 'Button';
96
- var Icon = styled.div.withConfig({
97
- displayName: "Button__Icon",
98
- componentId: "sc-2gssup-1"
99
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 35px;\n height: 35px;\n\n color: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n ", ":hover > & {\n transform: translateX(3px);\n }\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 35px;\n height: 35px;\n\n color: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n ", ":hover > & {\n transform: translateX(3px);\n }\n"])), function (_a) {
100
- var iconColor = _a.iconColor;
101
- return iconColor || 'inherit';
102
- }, View);
103
- var Label = styled.span.withConfig({
104
- displayName: "Button__Label",
105
- componentId: "sc-2gssup-2"
106
- })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: inline-block;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"], ["\n display: inline-block;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
107
- var Button$1 = {
108
- View: Button,
109
- Label: Label,
110
- Icon: Icon
111
- };
112
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
113
-
114
- export { Button$1 as B };
115
- //# sourceMappingURL=Button-678be396.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-678be396.js","sources":["../src/components/buttons/Button.tsx"],"sourcesContent":["import React from 'react';\nimport styled, { css } from 'styled-components';\nimport { hexToRgba } from 'utils/hexRgbConverter';\n\nimport {\n getColors as color,\n getFonts as font,\n getGlobals as global,\n mq,\n spacings,\n withRange,\n} from 'utils/styles';\n\nconst View = styled.a<{\n inverted?: boolean;\n disable?: boolean;\n size?: 'default' | 'small';\n}>`\n min-height: 3em;\n height: ${({ size }) => (size === 'default' ? '3.5em' : '3em')};\n min-width: ${({ size }) => (size === 'default' ? '200px' : '120px')};\n padding: 0.1em 1.2em;\n\n max-width: calc(100% - ${spacings.spacer}px);\n\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: center;\n\n vertical-align: middle;\n\n font-family: ${({ theme }) => font(theme).copy.medium.family};\n ${({ theme }) => withRange(font(theme).copy.medium.size, 'font-size')}\n font-weight: ${({ theme }) => font(theme).copy.medium.weight};\n line-height: 1;\n letter-spacing: ${({ theme }) => font(theme).copy.medium.letterSpacing};\n text-decoration: none;\n\n outline: none;\n border: 1px solid transparent;\n border-radius: ${({ theme }) => global(theme).sections.edgeRadius};\n user-select: none;\n cursor: pointer;\n\n pointer-events: ${({ disable }) => (disable ? 'none' : 'all')};\n\n background-color: ${({ theme, inverted, disable }) =>\n disable\n ? color(theme).elementBg.medium\n : inverted\n ? color(theme).primary.inverted\n : color(theme).primary.default};\n color: ${({ theme, inverted, disable }) =>\n disable\n ? hexToRgba(color(theme).text.default, 0.4)\n : !inverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n text-align: left;\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ${({ theme, inverted, disable }) =>\n disable\n ? hexToRgba(color(theme).text.default, 0.4)\n : !inverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n }\n\n & > * + * {\n margin-left: ${spacings.nudge}px;\n }\n & > *[data-btn-desktop] + *[data-btn-mobile] {\n margin-left: 0;\n }\n & > *[data-btn-mobile] + *[data-btn-desktop] {\n margin-left: 0;\n }\n & > *[data-btn-desktop] {\n display: none;\n }\n & > *:not([data-btn-desktop]) + * {\n margin-left: 0;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ${({ disable, inverted }) =>\n !disable &&\n css`\n &:hover {\n box-shadow: 0px 8px 16px\n ${inverted\n ? 'rgba(255, 255, 255, 0.25)'\n : 'rgba(0, 0, 0, 0.25)'};\n }\n `}\n }\n\n ${({ disable, inverted }) =>\n !disable &&\n css`\n &:focus {\n text-decoration: underline;\n box-shadow: 0px 8px 16px\n ${inverted\n ? 'rgba(255, 255, 255, 0.25)'\n : 'rgba(0, 0, 0, 0.25)'};\n }\n\n &:focus:not(:focus-visible) {\n text-decoration: none;\n outline: none;\n box-shadow: none;\n }\n\n &:active {\n box-shadow: 0px 2px 6px\n ${inverted\n ? 'rgba(255, 255, 255, 0.25)'\n : 'rgba(0, 0, 0, 0.3)'};\n }\n `}\n\n @media ${mq.semilarge} {\n & > *[data-btn-desktop='true'] {\n display: inherit;\n }\n & > *[data-btn-mobile='true'] {\n display: none;\n }\n & > *:not([data-btn-mobile='true']) + * {\n margin-left: 0;\n }\n }\n`;\n\ninterface Props {\n size?: 'default' | 'small';\n isInverted?: boolean;\n isDisabled?: boolean;\n className?: string;\n children?: React.ReactNode;\n}\n\nexport type BtnProps = Props & {\n as?: 'button';\n onClick?: (ev: React.SyntheticEvent<HTMLButtonElement>) => void;\n};\n\nexport type LinkProps = Props & {\n as?: 'a';\n href?: string;\n onClick?: (ev: React.SyntheticEvent<HTMLAnchorElement>) => void;\n isExternal?: boolean;\n};\n\nconst Button: React.FC<BtnProps | LinkProps> = React.forwardRef(\n (\n {\n as,\n size = 'default',\n isInverted,\n isDisabled,\n onClick,\n className,\n children,\n ...rest\n },\n ref\n ) => {\n if (as === 'button') {\n return (\n <View\n ref={ref}\n as={as as any}\n size={size}\n inverted={isInverted}\n disable={isDisabled}\n onClick={onClick}\n className={className}\n {...rest}\n >\n {children}\n </View>\n );\n } else {\n return (\n <View\n ref={ref}\n as={as as any}\n aria-disabled={isDisabled}\n size={size}\n href={(rest as LinkProps).href}\n target={\n (rest as LinkProps).isExternal ? '_blank' : undefined\n }\n rel={\n (rest as LinkProps).isExternal\n ? 'noopener noreferrer'\n : undefined\n }\n inverted={isInverted}\n disable={isDisabled}\n onClick={onClick}\n className={className}\n {...rest}\n >\n {children}\n </View>\n );\n }\n }\n);\n\nButton.displayName = 'Button';\n\nconst Icon = styled.div<{ iconColor?: string }>`\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n width: 35px;\n height: 35px;\n\n color: ${({ iconColor }) => iconColor || 'inherit'};\n\n transition: transform 0.2s ease-in-out;\n\n ${View}:hover > & {\n transform: translateX(3px);\n }\n`;\n\nconst Label = styled.span`\n display: inline-block;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n`;\n\nexport default { View: Button, Label: Label, Icon: Icon };\n"],"names":["View","styled","a","templateObject_3","__makeTemplateObject","_a","size","spacings","spacer","theme","font","copy","medium","family","withRange","weight","letterSpacing","global","sections","edgeRadius","disable","inverted","color","elementBg","primary","default","hexToRgba","text","nudge","css","templateObject_2","mq","semilarge","Button","React","forwardRef","ref","as","_b","isInverted","isDisabled","onClick","className","children","rest","__rest","createElement","__assign","href","target","isExternal","undefined","rel","displayName","Icon","div","templateObject_4","iconColor","Label","span","templateObject_5"],"mappings":";;;;;;AAaA,IAAMA,IAAI,GAAGC,MAAM,CAACC,CAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CAAWC,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,sCAAA,EAAA,oBAAA,EAAA,6DAAA,EAAA,iMAAA,EAAA,SAAA,EAAA,qBAAA,EAAA,8CAAA,EAAA,8GAAA,EAAA,yEAAA,EAAA,6BAAA,EAAA,gBAAA,EAAA,mGAAA,EAAA,oDAAA,EAAA,wXAAA,EAAA,iBAAA,EAAA,iBAAA,EAAA,4QAAA,CAAA,EAAA,CAInB,sCAJmB,EAM6C,oBAN7C,EAOkD,6DAPlD,EAUuB,iMAVvB,EAoB2C,SApB3C,EAqBoD,qBArBpD,EAsB2C,8CAtB3C,EAwBqD,8GAxBrD,EA6BgD,yEA7BhD,EAiC4C,6BAjC5C,EAwCqB,gBAxCrB,EA8CkB,mGA9ClB,EAyDsB,oDAzDtB,EA6DgB,wXA7DhB,EAsFR,iBAtFQ,EAgHZ,iBAhHY,EAkHI,4QAlHJ,CAAA,CAAA,CAAX,EAMI,UAACC,EAAD,EAAS;AAAN,EAAA,IAAAC,IAAI,GAAAD,EAAA,CAAAC,IAAJ,CAAA;AAAW,EAAA,OAACA,IAAI,KAAK,SAAT,GAAqB,OAArB,GAA+B,KAAhC,CAAA;AAAsC,CANxD,EAOO,UAACD,EAAD,EAAS;AAAN,EAAA,IAAAC,IAAI,GAAAD,EAAA,CAAAC,IAAJ,CAAA;AAAW,EA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,GAAGrD,MAAM,CAACsD,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAaC,CAAAA,CAAAA,gBAAA,KAAAA,gBAAA,GAAApD,oBAAA,CAAA,CAAA,4JAAA,EAAA,0DAAA,EAAA,4DAAA,CAAA,EAAA,CAAwB,4JAAxB,EAQ+B,0DAR/B,EAYb,4DAZa,CAAA,CAAA,CAAb,EAQG,UAACC,EAAD,EAAc;AAAX,EAAA,IAAAoD,SAAS,GAAApD,EAAA,CAAAoD,SAAT,CAAA;AAAgB,EAAAA,OAAAA,SAAS,IAAI,SAAb,CAAA;AAAsB,CAR5C,EAYJzD,IAZI,CAAV,CAAA;AAiBA,IAAM0D,KAAK,GAAGzD,MAAM,CAAC0D,IAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,eAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CAAcC,gBAAA,KAAAA,gBAAA,GAAAxD,oBAAA,CAAA,CAAA,yIAAA,CAAA,EAAA,CAAA,yIAAA,CAAA,CAAA,CAAd,CAAX,CAAA;AAUA,eAAe;AAAEJ,EAAAA,IAAI,EAAEiC,MAAR;AAAgByB,EAAAA,KAAK,EAAEA,KAAvB;AAA8BJ,EAAAA,IAAI,EAAEA,IAAAA;AAApC,CAAf,CAAA;;;;;"}
@@ -1,112 +0,0 @@
1
- import { a as __makeTemplateObject, d as __rest, _ as __assign } from './ClockFilled-8784ddac.js';
2
- import * as React from 'react';
3
- import styled, { css } from 'styled-components';
4
- import { h as hexToRgba } from './hexRgbConverter-edb91624.js';
5
- import { s as spacings, a as getFonts, w as withRange, g as getColors, c as getGlobals } from './styles-5f78e59d.js';
6
-
7
- var View = styled.a.withConfig({
8
- displayName: "ButtonGhost__View",
9
- componentId: "sc-y4lhy8-0"
10
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n min-height: 3em;\n height: ", ";\n min-width: ", ";\n padding: 0.1em 1.2em;\n\n max-width: calc(100% - ", "px);\n\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: center;\n\n vertical-align: middle;\n\n font-family: ", ";\n ", "\n font-weight: ", ";\n line-height: 1;\n letter-spacing: ", ";\n\n text-align: center;\n text-decoration: none;\n\n outline: none;\n box-shadow: none;\n border: solid 1px\n ", ";\n border-radius: ", ";\n user-select: none;\n cursor: pointer;\n\n pointer-events: ", ";\n\n background-color: transparent;\n color: ", ";\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ", ";\n }\n\n & > :not(:last-child) {\n padding-right: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ", "\n }\n"], ["\n min-height: 3em;\n height: ", ";\n min-width: ", ";\n padding: 0.1em 1.2em;\n\n max-width: calc(100% - ", "px);\n\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: center;\n\n vertical-align: middle;\n\n font-family: ", ";\n ", "\n font-weight: ", ";\n line-height: 1;\n letter-spacing: ", ";\n\n text-align: center;\n text-decoration: none;\n\n outline: none;\n box-shadow: none;\n border: solid 1px\n ", ";\n border-radius: ", ";\n user-select: none;\n cursor: pointer;\n\n pointer-events: ", ";\n\n background-color: transparent;\n color: ", ";\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ", ";\n }\n\n & > :not(:last-child) {\n padding-right: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ", "\n }\n"])), function (_a) {
11
- var size = _a.size;
12
- return size === 'default' ? '3.5em' : '3em';
13
- }, function (_a) {
14
- var size = _a.size;
15
- return size === 'default' ? '200px' : '120px';
16
- }, spacings.spacer, function (_a) {
17
- var theme = _a.theme;
18
- return getFonts(theme).copy.medium.family;
19
- }, function (_a) {
20
- var theme = _a.theme;
21
- return withRange(getFonts(theme).copy.medium.size, 'font-size');
22
- }, function (_a) {
23
- var theme = _a.theme;
24
- return getFonts(theme).copy.medium.weight;
25
- }, function (_a) {
26
- var theme = _a.theme;
27
- return getFonts(theme).copy.medium.letterSpacing;
28
- }, function (_a) {
29
- var inverted = _a.inverted,
30
- disable = _a.disable,
31
- theme = _a.theme;
32
- return disable ? getColors(theme).elementBg.medium : inverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark;
33
- }, function (_a) {
34
- var theme = _a.theme;
35
- return getGlobals(theme).sections.edgeRadius;
36
- }, function (_a) {
37
- var disable = _a.disable;
38
- return disable ? 'none' : 'all';
39
- }, function (_a) {
40
- var theme = _a.theme,
41
- inverted = _a.inverted,
42
- disable = _a.disable;
43
- return disable ? inverted ? hexToRgba(getColors(theme).text.inverted, 0.6) : hexToRgba(getColors(theme).text.default, 0.6) : inverted ? getColors(theme).text.inverted : getColors(theme).text.default;
44
- }, function (_a) {
45
- var theme = _a.theme,
46
- inverted = _a.inverted,
47
- disable = _a.disable;
48
- return disable ? inverted ? hexToRgba(getColors(theme).text.inverted, 0.6) : hexToRgba(getColors(theme).text.default, 0.6) : inverted ? getColors(theme).text.inverted : getColors(theme).text.default;
49
- }, spacings.nudge, function (_a) {
50
- var disable = _a.disable,
51
- inverted = _a.inverted,
52
- theme = _a.theme;
53
- return !disable && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &:hover {\n box-shadow: 0px 8px 16px\n ", ";\n }\n\n &:focus {\n outline: 1px solid\n ", ";\n outline-offset: 0;\n box-shadow: 0px 2px 6px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n\n &:active {\n box-shadow: 0px 2px 6px\n ", ";\n }\n "], ["\n &:hover {\n box-shadow: 0px 8px 16px\n ", ";\n }\n\n &:focus {\n outline: 1px solid\n ", ";\n outline-offset: 0;\n box-shadow: 0px 2px 6px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n\n &:active {\n box-shadow: 0px 2px 6px\n ", ";\n }\n "])), inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.25)', inverted ? getColors(theme).primary.inverted : getColors(theme).primary.default, inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.3)', inverted ? 'rgba(255, 255, 255, 0.25)' : 'rgba(0, 0, 0, 0.3)');
54
- });
55
- var ButtonGhost = React.forwardRef(function (_a, ref) {
56
- var as = _a.as,
57
- _b = _a.size,
58
- size = _b === void 0 ? 'default' : _b,
59
- isInverted = _a.isInverted,
60
- isDisabled = _a.isDisabled,
61
- onClick = _a.onClick,
62
- className = _a.className,
63
- children = _a.children,
64
- rest = __rest(_a, ["as", "size", "isInverted", "isDisabled", "onClick", "className", "children"]);
65
-
66
- if (as === 'button') {
67
- return React.createElement(View, __assign({
68
- ref: ref,
69
- as: as,
70
- size: size,
71
- inverted: isInverted,
72
- disable: isDisabled,
73
- onClick: onClick,
74
- className: className
75
- }, rest), children);
76
- } else {
77
- return React.createElement(View, __assign({
78
- ref: ref,
79
- as: as,
80
- "aria-disabled": isDisabled,
81
- size: size,
82
- href: rest.href,
83
- target: rest.isExternal ? '_blank' : undefined,
84
- rel: rest.isExternal ? 'noopener noreferrer' : undefined,
85
- inverted: isInverted,
86
- disable: isDisabled,
87
- onClick: onClick,
88
- className: className
89
- }, rest), children);
90
- }
91
- });
92
- ButtonGhost.displayName = 'Button Ghost';
93
- var Icon = styled.div.withConfig({
94
- displayName: "ButtonGhost__Icon",
95
- componentId: "sc-y4lhy8-1"
96
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n width: 35px;\n height: 35px;\n\n color: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n ", ":hover > & {\n transform: translateX(3px);\n }\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n width: 35px;\n height: 35px;\n\n color: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n ", ":hover > & {\n transform: translateX(3px);\n }\n"])), function (_a) {
97
- var iconColor = _a.iconColor;
98
- return iconColor || 'inherit';
99
- }, View);
100
- var Label = styled.span.withConfig({
101
- displayName: "ButtonGhost__Label",
102
- componentId: "sc-y4lhy8-2"
103
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: inline-block;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"], ["\n display: inline-block;\n\n max-width: 100%;\n\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n"])));
104
- var ButtonGhost$1 = {
105
- View: ButtonGhost,
106
- Label: Label,
107
- Icon: Icon
108
- };
109
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
110
-
111
- export { ButtonGhost$1 as B };
112
- //# sourceMappingURL=ButtonGhost-6673a07e.js.map