@blateral/b.kit 2.3.0 → 2.3.2-beta.1.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 (831) hide show
  1. package/base/package.json +7 -0
  2. package/blocks/package.json +7 -0
  3. package/buttons/package.json +7 -0
  4. package/cjs/Actions-c7b16449.js +2 -0
  5. package/cjs/Actions-c7b16449.js.map +1 -0
  6. package/cjs/Bdot-5f8e0450.js +2 -0
  7. package/cjs/Bdot-5f8e0450.js.map +1 -0
  8. package/cjs/Button-51ea72b7.js +2 -0
  9. package/cjs/Button-51ea72b7.js.map +1 -0
  10. package/cjs/ButtonGhost-628bbd60.js +2 -0
  11. package/cjs/ButtonGhost-628bbd60.js.map +1 -0
  12. package/cjs/Callout-e506ab21.js +2 -0
  13. package/cjs/Callout-e506ab21.js.map +1 -0
  14. package/cjs/Checkbox-1c34c7e6.js +2 -0
  15. package/cjs/Checkbox-1c34c7e6.js.map +1 -0
  16. package/cjs/ClockFilled-2483aa4a.js +2 -0
  17. package/cjs/ClockFilled-2483aa4a.js.map +1 -0
  18. package/cjs/Control-08d09950.js +2 -0
  19. package/cjs/Control-08d09950.js.map +1 -0
  20. package/cjs/Copy-ea6ab025.js +2 -0
  21. package/cjs/Copy-ea6ab025.js.map +1 -0
  22. package/cjs/EventBlock-7e2ba24d.js +2 -0
  23. package/cjs/EventBlock-7e2ba24d.js.map +1 -0
  24. package/cjs/FileUpload-0a861caf.js +2 -0
  25. package/cjs/FileUpload-0a861caf.js.map +1 -0
  26. package/cjs/Filter-d6d90b8b.js +2 -0
  27. package/cjs/Filter-d6d90b8b.js.map +1 -0
  28. package/cjs/FilterField-cce38ffb.js +2 -0
  29. package/cjs/FilterField-cce38ffb.js.map +1 -0
  30. package/cjs/Grid-6f4f99bc.js +2 -0
  31. package/cjs/Grid-6f4f99bc.js.map +1 -0
  32. package/cjs/Image-c72f7a80.js +2 -0
  33. package/cjs/Image-c72f7a80.js.map +1 -0
  34. package/cjs/InfoList-71d3388a.js +2 -0
  35. package/cjs/InfoList-71d3388a.js.map +1 -0
  36. package/cjs/LanguageSwitcher-8fdd22ba.js +2 -0
  37. package/cjs/LanguageSwitcher-8fdd22ba.js.map +1 -0
  38. package/cjs/LibThemeProvider-4823de57.js +2 -0
  39. package/cjs/LibThemeProvider-4823de57.js.map +1 -0
  40. package/cjs/Link-5a6f1633.js +2 -0
  41. package/cjs/Link-5a6f1633.js.map +1 -0
  42. package/cjs/Navigation-d205ed34.js +2 -0
  43. package/cjs/Navigation-d205ed34.js.map +1 -0
  44. package/cjs/POICard-e46f9041.js +2 -0
  45. package/cjs/POICard-e46f9041.js.map +1 -0
  46. package/cjs/Pointer-fde7b548.js +2 -0
  47. package/cjs/Pointer-fde7b548.js.map +1 -0
  48. package/cjs/SocialList-1d5f75a8.js +2 -0
  49. package/cjs/SocialList-1d5f75a8.js.map +1 -0
  50. package/cjs/TableBlock-007f8e34.js +2 -0
  51. package/cjs/TableBlock-007f8e34.js.map +1 -0
  52. package/cjs/Tag-9238cf0c.js +2 -0
  53. package/cjs/Tag-9238cf0c.js.map +1 -0
  54. package/cjs/VideoBlock-cf9d7464.js +2 -0
  55. package/cjs/VideoBlock-cf9d7464.js.map +1 -0
  56. package/cjs/VideoCard-fed8d37c.js +2 -0
  57. package/cjs/VideoCard-fed8d37c.js.map +1 -0
  58. package/cjs/Wrapper-accf2622.js +2 -0
  59. package/cjs/Wrapper-accf2622.js.map +1 -0
  60. package/cjs/arrays-c272ed59.js +2 -0
  61. package/cjs/arrays-c272ed59.js.map +1 -0
  62. package/cjs/base.js +2 -0
  63. package/cjs/base.js.map +1 -0
  64. package/cjs/blocks.js +2 -0
  65. package/cjs/blocks.js.map +1 -0
  66. package/cjs/buttons.js +2 -0
  67. package/cjs/buttons.js.map +1 -0
  68. package/cjs/clamp-bd21d587.js +2 -0
  69. package/cjs/clamp-bd21d587.js.map +1 -0
  70. package/cjs/concat-f387d848.js +2 -0
  71. package/cjs/concat-f387d848.js.map +1 -0
  72. package/cjs/cookies.js +2 -0
  73. package/cjs/cookies.js.map +1 -0
  74. package/cjs/escape-1ef8dd83.js +2 -0
  75. package/cjs/escape-1ef8dd83.js.map +1 -0
  76. package/cjs/fields.js +2 -0
  77. package/cjs/fields.js.map +1 -0
  78. package/cjs/footer.js +2 -0
  79. package/cjs/footer.js.map +1 -0
  80. package/cjs/hexRgbConverter-91b28aea.js +2 -0
  81. package/cjs/hexRgbConverter-91b28aea.js.map +1 -0
  82. package/cjs/hooks.js +2 -0
  83. package/cjs/hooks.js.map +1 -0
  84. package/cjs/icons.js +2 -0
  85. package/cjs/icons.js.map +1 -0
  86. package/cjs/index.js +2 -0
  87. package/cjs/index.js.map +1 -0
  88. package/cjs/navigation-bf154e6e.js +2 -0
  89. package/cjs/navigation-bf154e6e.js.map +1 -0
  90. package/cjs/navigation.js +2 -0
  91. package/cjs/navigation.js.map +1 -0
  92. package/cjs/sections.js +2 -0
  93. package/cjs/sections.js.map +1 -0
  94. package/cjs/sections_events.js +2 -0
  95. package/cjs/sections_events.js.map +1 -0
  96. package/cjs/sections_forms.js +2 -0
  97. package/cjs/sections_forms.js.map +1 -0
  98. package/cjs/sections_jobs.js +2 -0
  99. package/cjs/sections_jobs.js.map +1 -0
  100. package/cjs/sections_news.js +2 -0
  101. package/cjs/sections_news.js.map +1 -0
  102. package/cjs/sections_pois.js +2 -0
  103. package/cjs/sections_pois.js.map +1 -0
  104. package/cjs/statusFormatter-0393122b.js +2 -0
  105. package/cjs/statusFormatter-0393122b.js.map +1 -0
  106. package/cjs/structuredData-0b1278a9.js +2 -0
  107. package/cjs/structuredData-0b1278a9.js.map +1 -0
  108. package/cjs/styles-3a495a2d.js +2 -0
  109. package/cjs/styles-3a495a2d.js.map +1 -0
  110. package/cjs/typography.js +2 -0
  111. package/cjs/typography.js.map +1 -0
  112. package/cjs/urlParams-7525f638.js +2 -0
  113. package/cjs/urlParams-7525f638.js.map +1 -0
  114. package/cjs/useCookieConsent-0bf94751.js +2 -0
  115. package/cjs/useCookieConsent-0bf94751.js.map +1 -0
  116. package/cjs/useEqualSheetHeight-501f4c5f.js +2 -0
  117. package/cjs/useEqualSheetHeight-501f4c5f.js.map +1 -0
  118. package/cjs/useGeolocation-d8946470.js +2 -0
  119. package/cjs/useGeolocation-d8946470.js.map +1 -0
  120. package/cjs/useIE-aef9decc.js +2 -0
  121. package/cjs/useIE-aef9decc.js.map +1 -0
  122. package/cjs/useLazyInput-f71c221b.js +2 -0
  123. package/cjs/useLazyInput-f71c221b.js.map +1 -0
  124. package/cjs/useLeafletMap-2e608b01.js +2 -0
  125. package/cjs/useLeafletMap-2e608b01.js.map +1 -0
  126. package/cjs/useMediaQuery-3d1054e5.js +2 -0
  127. package/cjs/useMediaQuery-3d1054e5.js.map +1 -0
  128. package/cjs/useMounted-0bba9869.js +2 -0
  129. package/cjs/useMounted-0bba9869.js.map +1 -0
  130. package/cjs/useObserverSupport-5ab320dd.js +2 -0
  131. package/cjs/useObserverSupport-5ab320dd.js.map +1 -0
  132. package/cjs/useScrollTo-fdd665da.js +2 -0
  133. package/cjs/useScrollTo-fdd665da.js.map +1 -0
  134. package/cjs/useUpdateEffect-4d233e2c.js +2 -0
  135. package/cjs/useUpdateEffect-4d233e2c.js.map +1 -0
  136. package/cookies/package.json +7 -0
  137. package/esm/Actions-8b4a4d2f.js +57 -0
  138. package/esm/Actions-8b4a4d2f.js.map +1 -0
  139. package/esm/Bdot-434dd994.js +24 -0
  140. package/esm/Bdot-434dd994.js.map +1 -0
  141. package/esm/Button-71376927.js +115 -0
  142. package/esm/Button-71376927.js.map +1 -0
  143. package/esm/ButtonGhost-6876b67f.js +112 -0
  144. package/esm/ButtonGhost-6876b67f.js.map +1 -0
  145. package/esm/Callout-08fb36a2.js +99 -0
  146. package/esm/Callout-08fb36a2.js.map +1 -0
  147. package/esm/Checkbox-4daef7a4.js +135 -0
  148. package/esm/Checkbox-4daef7a4.js.map +1 -0
  149. package/esm/ClockFilled-6bae80dc.js +1793 -0
  150. package/esm/ClockFilled-6bae80dc.js.map +1 -0
  151. package/esm/Control-dd0f76f1.js +52 -0
  152. package/esm/Control-dd0f76f1.js.map +1 -0
  153. package/esm/Copy-bca0854c.js +270 -0
  154. package/esm/Copy-bca0854c.js.map +1 -0
  155. package/esm/EventBlock-e07e7b51.js +132 -0
  156. package/esm/EventBlock-e07e7b51.js.map +1 -0
  157. package/esm/FileUpload-851d473a.js +4790 -0
  158. package/esm/FileUpload-851d473a.js.map +1 -0
  159. package/esm/Filter-fec6dc5c.js +32 -0
  160. package/esm/Filter-fec6dc5c.js.map +1 -0
  161. package/esm/FilterField-5f76c113.js +129 -0
  162. package/esm/FilterField-5f76c113.js.map +1 -0
  163. package/esm/Grid-172051a9.js +203 -0
  164. package/esm/Grid-172051a9.js.map +1 -0
  165. package/esm/Image-301c4433.js +193 -0
  166. package/esm/Image-301c4433.js.map +1 -0
  167. package/esm/InfoList-762f2b14.js +74 -0
  168. package/esm/InfoList-762f2b14.js.map +1 -0
  169. package/esm/LanguageSwitcher-57c4a924.js +70 -0
  170. package/esm/LanguageSwitcher-57c4a924.js.map +1 -0
  171. package/esm/LibThemeProvider-acf2e2bb.js +115 -0
  172. package/esm/LibThemeProvider-acf2e2bb.js.map +1 -0
  173. package/esm/Link-bccdb082.js +60 -0
  174. package/esm/Link-bccdb082.js.map +1 -0
  175. package/esm/Navigation-03339030.js +1664 -0
  176. package/esm/Navigation-03339030.js.map +1 -0
  177. package/esm/POICard-584a229c.js +116 -0
  178. package/esm/POICard-584a229c.js.map +1 -0
  179. package/esm/Pointer-2276308c.js +111 -0
  180. package/esm/Pointer-2276308c.js.map +1 -0
  181. package/esm/SocialList-f7864b30.js +61 -0
  182. package/esm/SocialList-f7864b30.js.map +1 -0
  183. package/esm/TableBlock-014f9821.js +159 -0
  184. package/esm/TableBlock-014f9821.js.map +1 -0
  185. package/esm/Tag-cb972e1b.js +67 -0
  186. package/esm/Tag-cb972e1b.js.map +1 -0
  187. package/esm/VideoBlock-ede11866.js +624 -0
  188. package/esm/VideoBlock-ede11866.js.map +1 -0
  189. package/esm/VideoCard-aced65ef.js +160 -0
  190. package/esm/VideoCard-aced65ef.js.map +1 -0
  191. package/esm/Wrapper-1cac758b.js +224 -0
  192. package/esm/Wrapper-1cac758b.js.map +1 -0
  193. package/esm/arrays-65b644ef.js +17 -0
  194. package/esm/arrays-65b644ef.js.map +1 -0
  195. package/esm/base.js +11 -0
  196. package/esm/base.js.map +1 -0
  197. package/esm/blocks.js +26 -0
  198. package/esm/blocks.js.map +1 -0
  199. package/esm/buttons.js +12 -0
  200. package/esm/buttons.js.map +1 -0
  201. package/esm/clamp-12d37b65.js +10 -0
  202. package/esm/clamp-12d37b65.js.map +1 -0
  203. package/esm/concat-ab3c66f2.js +40 -0
  204. package/esm/concat-ab3c66f2.js.map +1 -0
  205. package/esm/cookies.js +270 -0
  206. package/esm/cookies.js.map +1 -0
  207. package/esm/escape-cbff9c25.js +6 -0
  208. package/esm/escape-cbff9c25.js.map +1 -0
  209. package/esm/fields.js +190 -0
  210. package/esm/fields.js.map +1 -0
  211. package/esm/footer.js +301 -0
  212. package/esm/footer.js.map +1 -0
  213. package/esm/hexRgbConverter-edb91624.js +36 -0
  214. package/esm/hexRgbConverter-edb91624.js.map +1 -0
  215. package/esm/hooks.js +531 -0
  216. package/esm/hooks.js.map +1 -0
  217. package/esm/icons.js +4 -0
  218. package/esm/icons.js.map +1 -0
  219. package/esm/index.js +7 -0
  220. package/esm/index.js.map +1 -0
  221. package/esm/navigation-a2998143.js +132 -0
  222. package/esm/navigation-a2998143.js.map +1 -0
  223. package/esm/navigation.js +159 -0
  224. package/esm/navigation.js.map +1 -0
  225. package/esm/sections.js +3966 -0
  226. package/esm/sections.js.map +1 -0
  227. package/esm/sections_events.js +573 -0
  228. package/esm/sections_events.js.map +1 -0
  229. package/esm/sections_forms.js +1405 -0
  230. package/esm/sections_forms.js.map +1 -0
  231. package/esm/sections_jobs.js +508 -0
  232. package/esm/sections_jobs.js.map +1 -0
  233. package/esm/sections_news.js +1023 -0
  234. package/esm/sections_news.js.map +1 -0
  235. package/esm/sections_pois.js +719 -0
  236. package/esm/sections_pois.js.map +1 -0
  237. package/esm/statusFormatter-9be0fbff.js +255 -0
  238. package/esm/statusFormatter-9be0fbff.js.map +1 -0
  239. package/esm/structuredData-87423414.js +117 -0
  240. package/esm/structuredData-87423414.js.map +1 -0
  241. package/esm/styles-c387bdc6.js +467 -0
  242. package/esm/styles-c387bdc6.js.map +1 -0
  243. package/esm/typography.js +11 -0
  244. package/esm/typography.js.map +1 -0
  245. package/esm/urlParams-9cfdaf71.js +51 -0
  246. package/esm/urlParams-9cfdaf71.js.map +1 -0
  247. package/esm/useCookieConsent-8caef116.js +339 -0
  248. package/esm/useCookieConsent-8caef116.js.map +1 -0
  249. package/esm/useEqualSheetHeight-e68e1638.js +199 -0
  250. package/esm/useEqualSheetHeight-e68e1638.js.map +1 -0
  251. package/esm/useGeolocation-f9f073cc.js +95 -0
  252. package/esm/useGeolocation-f9f073cc.js.map +1 -0
  253. package/esm/useIE-a9c56989.js +15 -0
  254. package/esm/useIE-a9c56989.js.map +1 -0
  255. package/esm/useLazyInput-e66fc5be.js +85 -0
  256. package/esm/useLazyInput-e66fc5be.js.map +1 -0
  257. package/esm/useLeafletMap-6dea7a8e.js +300 -0
  258. package/esm/useLeafletMap-6dea7a8e.js.map +1 -0
  259. package/esm/useMediaQuery-388bd65e.js +159 -0
  260. package/esm/useMediaQuery-388bd65e.js.map +1 -0
  261. package/esm/useMounted-1e4cc87b.js +12 -0
  262. package/esm/useMounted-1e4cc87b.js.map +1 -0
  263. package/esm/useObserverSupport-02bce7f5.js +19 -0
  264. package/esm/useObserverSupport-02bce7f5.js.map +1 -0
  265. package/esm/useScrollTo-70af34bf.js +57 -0
  266. package/esm/useScrollTo-70af34bf.js.map +1 -0
  267. package/esm/useUpdateEffect-824c0c84.js +18 -0
  268. package/esm/useUpdateEffect-824c0c84.js.map +1 -0
  269. package/fields/package.json +7 -0
  270. package/footer/package.json +7 -0
  271. package/hooks/package.json +7 -0
  272. package/icons/package.json +7 -0
  273. package/navigation/package.json +7 -0
  274. package/package.json +19 -5
  275. package/sections/events/package.json +7 -0
  276. package/sections/forms/package.json +7 -0
  277. package/sections/jobs/package.json +7 -0
  278. package/sections/news/package.json +7 -0
  279. package/sections/package.json +7 -0
  280. package/sections/pois/package.json +7 -0
  281. package/types/base.d.ts +5 -0
  282. package/types/base.d.ts.map +1 -0
  283. package/types/blocks.d.ts +18 -0
  284. package/types/blocks.d.ts.map +1 -0
  285. package/types/buttons.d.ts +6 -0
  286. package/types/buttons.d.ts.map +1 -0
  287. package/types/components/sections/NumberList.d.ts.map +1 -0
  288. package/types/components/sections/header/Header.d.ts +92 -0
  289. package/types/components/sections/header/Header.d.ts.map +1 -0
  290. package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
  291. package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
  292. package/types/components/typography/Callout.d.ts.map +1 -0
  293. package/types/cookies.d.ts +3 -0
  294. package/types/cookies.d.ts.map +1 -0
  295. package/types/fields.d.ts +14 -0
  296. package/types/fields.d.ts.map +1 -0
  297. package/types/footer.d.ts +4 -0
  298. package/types/footer.d.ts.map +1 -0
  299. package/types/hooks.d.ts +35 -0
  300. package/types/hooks.d.ts.map +1 -0
  301. package/types/icons.d.ts +66 -0
  302. package/types/icons.d.ts.map +1 -0
  303. package/types/index.d.ts +18 -0
  304. package/types/index.d.ts.map +1 -0
  305. package/types/navigation.d.ts +10 -0
  306. package/types/navigation.d.ts.map +1 -0
  307. package/types/sections.d.ts +32 -0
  308. package/types/sections.d.ts.map +1 -0
  309. package/types/sections_events.d.ts +4 -0
  310. package/types/sections_events.d.ts.map +1 -0
  311. package/types/sections_forms.d.ts +3 -0
  312. package/types/sections_forms.d.ts.map +1 -0
  313. package/types/sections_jobs.d.ts +3 -0
  314. package/types/sections_jobs.d.ts.map +1 -0
  315. package/types/sections_news.d.ts +10 -0
  316. package/types/sections_news.d.ts.map +1 -0
  317. package/types/sections_pois.d.ts +4 -0
  318. package/types/sections_pois.d.ts.map +1 -0
  319. package/types/typography.d.ts +6 -0
  320. package/types/typography.d.ts.map +1 -0
  321. package/typography/package.json +7 -0
  322. package/lib/components/base/icons/Icons.d.ts +0 -66
  323. package/lib/components/base/icons/Icons.d.ts.map +0 -1
  324. package/lib/components/sections/NumberList.d.ts.map +0 -1
  325. package/lib/components/sections/header/Header.d.ts +0 -92
  326. package/lib/components/sections/header/Header.d.ts.map +0 -1
  327. package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  328. package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  329. package/lib/components/typography/Callout.d.ts.map +0 -1
  330. package/lib/index.d.ts +0 -158
  331. package/lib/index.d.ts.map +0 -1
  332. package/lib/index.es.js +0 -2
  333. package/lib/index.es.js.map +0 -1
  334. package/lib/index.js +0 -2
  335. package/lib/index.js.map +0 -1
  336. /package/{lib → types}/components/base/Grid.d.ts +0 -0
  337. /package/{lib → types}/components/base/Grid.d.ts.map +0 -0
  338. /package/{lib → types}/components/base/Section.d.ts +0 -0
  339. /package/{lib → types}/components/base/Section.d.ts.map +0 -0
  340. /package/{lib → types}/components/base/Wrapper.d.ts +0 -0
  341. /package/{lib → types}/components/base/Wrapper.d.ts.map +0 -0
  342. /package/{lib → types}/components/base/icons/AngleDown.d.ts +0 -0
  343. /package/{lib → types}/components/base/icons/AngleDown.d.ts.map +0 -0
  344. /package/{lib → types}/components/base/icons/AngleLeft.d.ts +0 -0
  345. /package/{lib → types}/components/base/icons/AngleLeft.d.ts.map +0 -0
  346. /package/{lib → types}/components/base/icons/AngleRight.d.ts +0 -0
  347. /package/{lib → types}/components/base/icons/AngleRight.d.ts.map +0 -0
  348. /package/{lib → types}/components/base/icons/AngleUp.d.ts +0 -0
  349. /package/{lib → types}/components/base/icons/AngleUp.d.ts.map +0 -0
  350. /package/{lib → types}/components/base/icons/ArrowDown.d.ts +0 -0
  351. /package/{lib → types}/components/base/icons/ArrowDown.d.ts.map +0 -0
  352. /package/{lib → types}/components/base/icons/ArrowLeft.d.ts +0 -0
  353. /package/{lib → types}/components/base/icons/ArrowLeft.d.ts.map +0 -0
  354. /package/{lib → types}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
  355. /package/{lib → types}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
  356. /package/{lib → types}/components/base/icons/ArrowLeftRight.d.ts +0 -0
  357. /package/{lib → types}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
  358. /package/{lib → types}/components/base/icons/ArrowRight.d.ts +0 -0
  359. /package/{lib → types}/components/base/icons/ArrowRight.d.ts.map +0 -0
  360. /package/{lib → types}/components/base/icons/ArrowRightGhost.d.ts +0 -0
  361. /package/{lib → types}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
  362. /package/{lib → types}/components/base/icons/ArrowUp.d.ts +0 -0
  363. /package/{lib → types}/components/base/icons/ArrowUp.d.ts.map +0 -0
  364. /package/{lib → types}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
  365. /package/{lib → types}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
  366. /package/{lib → types}/components/base/icons/CalendarToday.d.ts +0 -0
  367. /package/{lib → types}/components/base/icons/CalendarToday.d.ts.map +0 -0
  368. /package/{lib → types}/components/base/icons/Category.d.ts +0 -0
  369. /package/{lib → types}/components/base/icons/Category.d.ts.map +0 -0
  370. /package/{lib → types}/components/base/icons/Check.d.ts +0 -0
  371. /package/{lib → types}/components/base/icons/Check.d.ts.map +0 -0
  372. /package/{lib → types}/components/base/icons/Clock.d.ts +0 -0
  373. /package/{lib → types}/components/base/icons/Clock.d.ts.map +0 -0
  374. /package/{lib → types}/components/base/icons/ClockFilled.d.ts +0 -0
  375. /package/{lib → types}/components/base/icons/ClockFilled.d.ts.map +0 -0
  376. /package/{lib → types}/components/base/icons/Computer.d.ts +0 -0
  377. /package/{lib → types}/components/base/icons/Computer.d.ts.map +0 -0
  378. /package/{lib → types}/components/base/icons/Cross.d.ts +0 -0
  379. /package/{lib → types}/components/base/icons/Cross.d.ts.map +0 -0
  380. /package/{lib → types}/components/base/icons/CrossSmall.d.ts +0 -0
  381. /package/{lib → types}/components/base/icons/CrossSmall.d.ts.map +0 -0
  382. /package/{lib → types}/components/base/icons/CurrentLocation.d.ts +0 -0
  383. /package/{lib → types}/components/base/icons/CurrentLocation.d.ts.map +0 -0
  384. /package/{lib → types}/components/base/icons/DateRange.d.ts +0 -0
  385. /package/{lib → types}/components/base/icons/DateRange.d.ts.map +0 -0
  386. /package/{lib → types}/components/base/icons/DeleteForever.d.ts +0 -0
  387. /package/{lib → types}/components/base/icons/DeleteForever.d.ts.map +0 -0
  388. /package/{lib → types}/components/base/icons/External.d.ts +0 -0
  389. /package/{lib → types}/components/base/icons/External.d.ts.map +0 -0
  390. /package/{lib → types}/components/base/icons/Filter.d.ts +0 -0
  391. /package/{lib → types}/components/base/icons/Filter.d.ts.map +0 -0
  392. /package/{lib → types}/components/base/icons/FlyTo.d.ts +0 -0
  393. /package/{lib → types}/components/base/icons/FlyTo.d.ts.map +0 -0
  394. /package/{lib → types}/components/base/icons/Info.d.ts +0 -0
  395. /package/{lib → types}/components/base/icons/Info.d.ts.map +0 -0
  396. /package/{lib → types}/components/base/icons/Language.d.ts +0 -0
  397. /package/{lib → types}/components/base/icons/Language.d.ts.map +0 -0
  398. /package/{lib → types}/components/base/icons/LocationPin.d.ts +0 -0
  399. /package/{lib → types}/components/base/icons/LocationPin.d.ts.map +0 -0
  400. /package/{lib → types}/components/base/icons/LocationSearch.d.ts +0 -0
  401. /package/{lib → types}/components/base/icons/LocationSearch.d.ts.map +0 -0
  402. /package/{lib → types}/components/base/icons/Magnifier.d.ts +0 -0
  403. /package/{lib → types}/components/base/icons/Magnifier.d.ts.map +0 -0
  404. /package/{lib → types}/components/base/icons/Mail.d.ts +0 -0
  405. /package/{lib → types}/components/base/icons/Mail.d.ts.map +0 -0
  406. /package/{lib → types}/components/base/icons/Map.d.ts +0 -0
  407. /package/{lib → types}/components/base/icons/Map.d.ts.map +0 -0
  408. /package/{lib → types}/components/base/icons/MenuBurger.d.ts +0 -0
  409. /package/{lib → types}/components/base/icons/MenuBurger.d.ts.map +0 -0
  410. /package/{lib → types}/components/base/icons/Minus.d.ts +0 -0
  411. /package/{lib → types}/components/base/icons/Minus.d.ts.map +0 -0
  412. /package/{lib → types}/components/base/icons/Money.d.ts +0 -0
  413. /package/{lib → types}/components/base/icons/Money.d.ts.map +0 -0
  414. /package/{lib → types}/components/base/icons/MyLocation.d.ts +0 -0
  415. /package/{lib → types}/components/base/icons/MyLocation.d.ts.map +0 -0
  416. /package/{lib → types}/components/base/icons/Person.d.ts +0 -0
  417. /package/{lib → types}/components/base/icons/Person.d.ts.map +0 -0
  418. /package/{lib → types}/components/base/icons/Phone.d.ts +0 -0
  419. /package/{lib → types}/components/base/icons/Phone.d.ts.map +0 -0
  420. /package/{lib → types}/components/base/icons/Place.d.ts +0 -0
  421. /package/{lib → types}/components/base/icons/Place.d.ts.map +0 -0
  422. /package/{lib → types}/components/base/icons/Play.d.ts +0 -0
  423. /package/{lib → types}/components/base/icons/Play.d.ts.map +0 -0
  424. /package/{lib → types}/components/base/icons/Plus.d.ts +0 -0
  425. /package/{lib → types}/components/base/icons/Plus.d.ts.map +0 -0
  426. /package/{lib → types}/components/base/icons/Route.d.ts +0 -0
  427. /package/{lib → types}/components/base/icons/Route.d.ts.map +0 -0
  428. /package/{lib → types}/components/base/icons/Star.d.ts +0 -0
  429. /package/{lib → types}/components/base/icons/Star.d.ts.map +0 -0
  430. /package/{lib → types}/components/base/icons/ToggleOff.d.ts +0 -0
  431. /package/{lib → types}/components/base/icons/ToggleOff.d.ts.map +0 -0
  432. /package/{lib → types}/components/base/icons/ToggleOn.d.ts +0 -0
  433. /package/{lib → types}/components/base/icons/ToggleOn.d.ts.map +0 -0
  434. /package/{lib → types}/components/base/icons/UnfoldMore.d.ts +0 -0
  435. /package/{lib → types}/components/base/icons/UnfoldMore.d.ts.map +0 -0
  436. /package/{lib → types}/components/base/icons/files/Excel.d.ts +0 -0
  437. /package/{lib → types}/components/base/icons/files/Excel.d.ts.map +0 -0
  438. /package/{lib → types}/components/base/icons/files/Image.d.ts +0 -0
  439. /package/{lib → types}/components/base/icons/files/Image.d.ts.map +0 -0
  440. /package/{lib → types}/components/base/icons/files/Pdf.d.ts +0 -0
  441. /package/{lib → types}/components/base/icons/files/Pdf.d.ts.map +0 -0
  442. /package/{lib → types}/components/base/icons/files/PowerPoint.d.ts +0 -0
  443. /package/{lib → types}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
  444. /package/{lib → types}/components/base/icons/files/UploadFile.d.ts +0 -0
  445. /package/{lib → types}/components/base/icons/files/UploadFile.d.ts.map +0 -0
  446. /package/{lib → types}/components/base/icons/files/Word.d.ts +0 -0
  447. /package/{lib → types}/components/base/icons/files/Word.d.ts.map +0 -0
  448. /package/{lib → types}/components/base/icons/files/Zip.d.ts +0 -0
  449. /package/{lib → types}/components/base/icons/files/Zip.d.ts.map +0 -0
  450. /package/{lib → types}/components/base/icons/socials/Facebook.d.ts +0 -0
  451. /package/{lib → types}/components/base/icons/socials/Facebook.d.ts.map +0 -0
  452. /package/{lib → types}/components/base/icons/socials/Instagram.d.ts +0 -0
  453. /package/{lib → types}/components/base/icons/socials/Instagram.d.ts.map +0 -0
  454. /package/{lib → types}/components/base/icons/socials/LinkedIn.d.ts +0 -0
  455. /package/{lib → types}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
  456. /package/{lib → types}/components/base/icons/socials/Twitter.d.ts +0 -0
  457. /package/{lib → types}/components/base/icons/socials/Twitter.d.ts.map +0 -0
  458. /package/{lib → types}/components/base/icons/socials/Xing.d.ts +0 -0
  459. /package/{lib → types}/components/base/icons/socials/Xing.d.ts.map +0 -0
  460. /package/{lib → types}/components/base/icons/socials/Youtube.d.ts +0 -0
  461. /package/{lib → types}/components/base/icons/socials/Youtube.d.ts.map +0 -0
  462. /package/{lib → types}/components/base/nl2br.d.ts +0 -0
  463. /package/{lib → types}/components/base/nl2br.d.ts.map +0 -0
  464. /package/{lib → types}/components/blocks/Actions.d.ts +0 -0
  465. /package/{lib → types}/components/blocks/Actions.d.ts.map +0 -0
  466. /package/{lib → types}/components/blocks/Alert.d.ts +0 -0
  467. /package/{lib → types}/components/blocks/Alert.d.ts.map +0 -0
  468. /package/{lib → types}/components/blocks/Bdot.d.ts +0 -0
  469. /package/{lib → types}/components/blocks/Bdot.d.ts.map +0 -0
  470. /package/{lib → types}/components/blocks/CookieConsent.d.ts +0 -0
  471. /package/{lib → types}/components/blocks/CookieConsent.d.ts.map +0 -0
  472. /package/{lib → types}/components/blocks/EventBlock.d.ts +0 -0
  473. /package/{lib → types}/components/blocks/EventBlock.d.ts.map +0 -0
  474. /package/{lib → types}/components/blocks/Fact.d.ts +0 -0
  475. /package/{lib → types}/components/blocks/Fact.d.ts.map +0 -0
  476. /package/{lib → types}/components/blocks/Feature.d.ts +0 -0
  477. /package/{lib → types}/components/blocks/Feature.d.ts.map +0 -0
  478. /package/{lib → types}/components/blocks/Image.d.ts +0 -0
  479. /package/{lib → types}/components/blocks/Image.d.ts.map +0 -0
  480. /package/{lib → types}/components/blocks/InfoList.d.ts +0 -0
  481. /package/{lib → types}/components/blocks/InfoList.d.ts.map +0 -0
  482. /package/{lib → types}/components/blocks/IntroBlock.d.ts +0 -0
  483. /package/{lib → types}/components/blocks/IntroBlock.d.ts.map +0 -0
  484. /package/{lib → types}/components/blocks/JobCard.d.ts +0 -0
  485. /package/{lib → types}/components/blocks/JobCard.d.ts.map +0 -0
  486. /package/{lib → types}/components/blocks/LanguageSwitcher.d.ts +0 -0
  487. /package/{lib → types}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
  488. /package/{lib → types}/components/blocks/NavBlock.d.ts +0 -0
  489. /package/{lib → types}/components/blocks/NavBlock.d.ts.map +0 -0
  490. /package/{lib → types}/components/blocks/NewsCard.d.ts +0 -0
  491. /package/{lib → types}/components/blocks/NewsCard.d.ts.map +0 -0
  492. /package/{lib → types}/components/blocks/POICard.d.ts +0 -0
  493. /package/{lib → types}/components/blocks/POICard.d.ts.map +0 -0
  494. /package/{lib → types}/components/blocks/POIFacts.d.ts +0 -0
  495. /package/{lib → types}/components/blocks/POIFacts.d.ts.map +0 -0
  496. /package/{lib → types}/components/blocks/PriceTag.d.ts +0 -0
  497. /package/{lib → types}/components/blocks/PriceTag.d.ts.map +0 -0
  498. /package/{lib → types}/components/blocks/PromotionCard.d.ts +0 -0
  499. /package/{lib → types}/components/blocks/PromotionCard.d.ts.map +0 -0
  500. /package/{lib → types}/components/blocks/SocialList.d.ts +0 -0
  501. /package/{lib → types}/components/blocks/SocialList.d.ts.map +0 -0
  502. /package/{lib → types}/components/blocks/TableBlock.d.ts +0 -0
  503. /package/{lib → types}/components/blocks/TableBlock.d.ts.map +0 -0
  504. /package/{lib → types}/components/blocks/Tag.d.ts +0 -0
  505. /package/{lib → types}/components/blocks/Tag.d.ts.map +0 -0
  506. /package/{lib → types}/components/blocks/Title.d.ts +0 -0
  507. /package/{lib → types}/components/blocks/Title.d.ts.map +0 -0
  508. /package/{lib → types}/components/blocks/VideoBlock.d.ts +0 -0
  509. /package/{lib → types}/components/blocks/VideoBlock.d.ts.map +0 -0
  510. /package/{lib → types}/components/blocks/VideoCard.d.ts +0 -0
  511. /package/{lib → types}/components/blocks/VideoCard.d.ts.map +0 -0
  512. /package/{lib → types}/components/buttons/Button.d.ts +0 -0
  513. /package/{lib → types}/components/buttons/Button.d.ts.map +0 -0
  514. /package/{lib → types}/components/buttons/ButtonGhost.d.ts +0 -0
  515. /package/{lib → types}/components/buttons/ButtonGhost.d.ts.map +0 -0
  516. /package/{lib → types}/components/buttons/Control.d.ts +0 -0
  517. /package/{lib → types}/components/buttons/Control.d.ts.map +0 -0
  518. /package/{lib → types}/components/buttons/Pointer.d.ts +0 -0
  519. /package/{lib → types}/components/buttons/Pointer.d.ts.map +0 -0
  520. /package/{lib → types}/components/debug/DebugLines.d.ts +0 -0
  521. /package/{lib → types}/components/debug/DebugLines.d.ts.map +0 -0
  522. /package/{lib → types}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
  523. /package/{lib → types}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
  524. /package/{lib → types}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
  525. /package/{lib → types}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
  526. /package/{lib → types}/components/fields/Checkbox.d.ts +0 -0
  527. /package/{lib → types}/components/fields/Checkbox.d.ts.map +0 -0
  528. /package/{lib → types}/components/fields/CompactForm.d.ts +0 -0
  529. /package/{lib → types}/components/fields/CompactForm.d.ts.map +0 -0
  530. /package/{lib → types}/components/fields/Datepicker.d.ts +0 -0
  531. /package/{lib → types}/components/fields/Datepicker.d.ts.map +0 -0
  532. /package/{lib → types}/components/fields/FileUpload.d.ts +0 -0
  533. /package/{lib → types}/components/fields/FileUpload.d.ts.map +0 -0
  534. /package/{lib → types}/components/fields/FilterField.d.ts +0 -0
  535. /package/{lib → types}/components/fields/FilterField.d.ts.map +0 -0
  536. /package/{lib → types}/components/fields/FormField.d.ts +0 -0
  537. /package/{lib → types}/components/fields/FormField.d.ts.map +0 -0
  538. /package/{lib → types}/components/fields/LocationField.d.ts +0 -0
  539. /package/{lib → types}/components/fields/LocationField.d.ts.map +0 -0
  540. /package/{lib → types}/components/fields/Radio.d.ts +0 -0
  541. /package/{lib → types}/components/fields/Radio.d.ts.map +0 -0
  542. /package/{lib → types}/components/fields/SearchInput.d.ts +0 -0
  543. /package/{lib → types}/components/fields/SearchInput.d.ts.map +0 -0
  544. /package/{lib → types}/components/fields/SelectDropdown.d.ts +0 -0
  545. /package/{lib → types}/components/fields/SelectDropdown.d.ts.map +0 -0
  546. /package/{lib → types}/components/fields/Textarea.d.ts +0 -0
  547. /package/{lib → types}/components/fields/Textarea.d.ts.map +0 -0
  548. /package/{lib → types}/components/fields/Textfield.d.ts +0 -0
  549. /package/{lib → types}/components/fields/Textfield.d.ts.map +0 -0
  550. /package/{lib → types}/components/sections/Accordion.d.ts +0 -0
  551. /package/{lib → types}/components/sections/Accordion.d.ts.map +0 -0
  552. /package/{lib → types}/components/sections/AlertList.d.ts +0 -0
  553. /package/{lib → types}/components/sections/AlertList.d.ts.map +0 -0
  554. /package/{lib → types}/components/sections/Article.d.ts +0 -0
  555. /package/{lib → types}/components/sections/Article.d.ts.map +0 -0
  556. /package/{lib → types}/components/sections/CallToAction.d.ts +0 -0
  557. /package/{lib → types}/components/sections/CallToAction.d.ts.map +0 -0
  558. /package/{lib → types}/components/sections/CardList.d.ts +0 -0
  559. /package/{lib → types}/components/sections/CardList.d.ts.map +0 -0
  560. /package/{lib → types}/components/sections/ComparisonSlider.d.ts +0 -0
  561. /package/{lib → types}/components/sections/ComparisonSlider.d.ts.map +0 -0
  562. /package/{lib → types}/components/sections/CrossPromotion.d.ts +0 -0
  563. /package/{lib → types}/components/sections/CrossPromotion.d.ts.map +0 -0
  564. /package/{lib → types}/components/sections/FactGrid.d.ts +0 -0
  565. /package/{lib → types}/components/sections/FactGrid.d.ts.map +0 -0
  566. /package/{lib → types}/components/sections/FactList.d.ts +0 -0
  567. /package/{lib → types}/components/sections/FactList.d.ts.map +0 -0
  568. /package/{lib → types}/components/sections/FeatureList.d.ts +0 -0
  569. /package/{lib → types}/components/sections/FeatureList.d.ts.map +0 -0
  570. /package/{lib → types}/components/sections/Gallery.d.ts +0 -0
  571. /package/{lib → types}/components/sections/Gallery.d.ts.map +0 -0
  572. /package/{lib → types}/components/sections/IconList.d.ts +0 -0
  573. /package/{lib → types}/components/sections/IconList.d.ts.map +0 -0
  574. /package/{lib → types}/components/sections/IndexList.d.ts +0 -0
  575. /package/{lib → types}/components/sections/IndexList.d.ts.map +0 -0
  576. /package/{lib → types}/components/sections/Intro.d.ts +0 -0
  577. /package/{lib → types}/components/sections/Intro.d.ts.map +0 -0
  578. /package/{lib → types}/components/sections/Map.d.ts +0 -0
  579. /package/{lib → types}/components/sections/Map.d.ts.map +0 -0
  580. /package/{lib → types}/components/sections/NavList.d.ts +0 -0
  581. /package/{lib → types}/components/sections/NavList.d.ts.map +0 -0
  582. /package/{lib → types}/components/sections/NewsletterForm.d.ts +0 -0
  583. /package/{lib → types}/components/sections/NewsletterForm.d.ts.map +0 -0
  584. /package/{lib → types}/components/sections/NumberList.d.ts +0 -0
  585. /package/{lib → types}/components/sections/ParallaxBackground.d.ts +0 -0
  586. /package/{lib → types}/components/sections/ParallaxBackground.d.ts.map +0 -0
  587. /package/{lib → types}/components/sections/Poster.d.ts +0 -0
  588. /package/{lib → types}/components/sections/Poster.d.ts.map +0 -0
  589. /package/{lib → types}/components/sections/PriceList.d.ts +0 -0
  590. /package/{lib → types}/components/sections/PriceList.d.ts.map +0 -0
  591. /package/{lib → types}/components/sections/PriceTable.d.ts +0 -0
  592. /package/{lib → types}/components/sections/PriceTable.d.ts.map +0 -0
  593. /package/{lib → types}/components/sections/Quote.d.ts +0 -0
  594. /package/{lib → types}/components/sections/Quote.d.ts.map +0 -0
  595. /package/{lib → types}/components/sections/RawVideo.d.ts +0 -0
  596. /package/{lib → types}/components/sections/RawVideo.d.ts.map +0 -0
  597. /package/{lib → types}/components/sections/SimpleImage.d.ts +0 -0
  598. /package/{lib → types}/components/sections/SimpleImage.d.ts.map +0 -0
  599. /package/{lib → types}/components/sections/SocialWall.d.ts +0 -0
  600. /package/{lib → types}/components/sections/SocialWall.d.ts.map +0 -0
  601. /package/{lib → types}/components/sections/Table.d.ts +0 -0
  602. /package/{lib → types}/components/sections/Table.d.ts.map +0 -0
  603. /package/{lib → types}/components/sections/Teaser.d.ts +0 -0
  604. /package/{lib → types}/components/sections/Teaser.d.ts.map +0 -0
  605. /package/{lib → types}/components/sections/TeaserWide.d.ts +0 -0
  606. /package/{lib → types}/components/sections/TeaserWide.d.ts.map +0 -0
  607. /package/{lib → types}/components/sections/Timeline.d.ts +0 -0
  608. /package/{lib → types}/components/sections/Timeline.d.ts.map +0 -0
  609. /package/{lib → types}/components/sections/Video.d.ts +0 -0
  610. /package/{lib → types}/components/sections/Video.d.ts.map +0 -0
  611. /package/{lib → types}/components/sections/events/EventDetail.d.ts +0 -0
  612. /package/{lib → types}/components/sections/events/EventDetail.d.ts.map +0 -0
  613. /package/{lib → types}/components/sections/events/EventList.d.ts +0 -0
  614. /package/{lib → types}/components/sections/events/EventList.d.ts.map +0 -0
  615. /package/{lib → types}/components/sections/events/EventOverview.d.ts +0 -0
  616. /package/{lib → types}/components/sections/events/EventOverview.d.ts.map +0 -0
  617. /package/{lib → types}/components/sections/footer/Footer.d.ts +0 -0
  618. /package/{lib → types}/components/sections/footer/Footer.d.ts.map +0 -0
  619. /package/{lib → types}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  620. /package/{lib → types}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
  621. /package/{lib → types}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
  622. /package/{lib → types}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
  623. /package/{lib → types}/components/sections/footer/partials/index.d.ts +0 -0
  624. /package/{lib → types}/components/sections/footer/partials/index.d.ts.map +0 -0
  625. /package/{lib → types}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  626. /package/{lib → types}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
  627. /package/{lib → types}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  628. /package/{lib → types}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
  629. /package/{lib → types}/components/sections/footer/skeletons/index.d.ts +0 -0
  630. /package/{lib → types}/components/sections/footer/skeletons/index.d.ts.map +0 -0
  631. /package/{lib → types}/components/sections/form/DynamicForm.d.ts +0 -0
  632. /package/{lib → types}/components/sections/form/DynamicForm.d.ts.map +0 -0
  633. /package/{lib → types}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
  634. /package/{lib → types}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
  635. /package/{lib → types}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  636. /package/{lib → types}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
  637. /package/{lib → types}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  638. /package/{lib → types}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
  639. /package/{lib → types}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
  640. /package/{lib → types}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
  641. /package/{lib → types}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
  642. /package/{lib → types}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
  643. /package/{lib → types}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
  644. /package/{lib → types}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
  645. /package/{lib → types}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
  646. /package/{lib → types}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
  647. /package/{lib → types}/components/sections/form/validators/areaValidator.d.ts +0 -0
  648. /package/{lib → types}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
  649. /package/{lib → types}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
  650. /package/{lib → types}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
  651. /package/{lib → types}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  652. /package/{lib → types}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
  653. /package/{lib → types}/components/sections/form/validators/fieldValidator.d.ts +0 -0
  654. /package/{lib → types}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
  655. /package/{lib → types}/components/sections/form/validators/locationValidator.d.ts +0 -0
  656. /package/{lib → types}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
  657. /package/{lib → types}/components/sections/form/validators/selectValidator.d.ts +0 -0
  658. /package/{lib → types}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
  659. /package/{lib → types}/components/sections/form/validators/uploadValidator.d.ts +0 -0
  660. /package/{lib → types}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
  661. /package/{lib → types}/components/sections/header/HeaderKenBurns.d.ts +0 -0
  662. /package/{lib → types}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
  663. /package/{lib → types}/components/sections/header/HeaderPoster.d.ts +0 -0
  664. /package/{lib → types}/components/sections/header/HeaderPoster.d.ts.map +0 -0
  665. /package/{lib → types}/components/sections/header/HeaderVideo.d.ts +0 -0
  666. /package/{lib → types}/components/sections/header/HeaderVideo.d.ts.map +0 -0
  667. /package/{lib → types}/components/sections/jobs/JobArticle.d.ts +0 -0
  668. /package/{lib → types}/components/sections/jobs/JobArticle.d.ts.map +0 -0
  669. /package/{lib → types}/components/sections/jobs/JobList.d.ts +0 -0
  670. /package/{lib → types}/components/sections/jobs/JobList.d.ts.map +0 -0
  671. /package/{lib → types}/components/sections/navigation/NavBar.d.ts +0 -0
  672. /package/{lib → types}/components/sections/navigation/NavBar.d.ts.map +0 -0
  673. /package/{lib → types}/components/sections/navigation/Navigation.d.ts +0 -0
  674. /package/{lib → types}/components/sections/navigation/Navigation.d.ts.map +0 -0
  675. /package/{lib → types}/components/sections/navigation/menu/Menu.d.ts +0 -0
  676. /package/{lib → types}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
  677. /package/{lib → types}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  678. /package/{lib → types}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  679. /package/{lib → types}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
  680. /package/{lib → types}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
  681. /package/{lib → types}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
  682. /package/{lib → types}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
  683. /package/{lib → types}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  684. /package/{lib → types}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
  685. /package/{lib → types}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
  686. /package/{lib → types}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
  687. /package/{lib → types}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
  688. /package/{lib → types}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
  689. /package/{lib → types}/components/sections/navigation/partials/index.d.ts +0 -0
  690. /package/{lib → types}/components/sections/navigation/partials/index.d.ts.map +0 -0
  691. /package/{lib → types}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  692. /package/{lib → types}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
  693. /package/{lib → types}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  694. /package/{lib → types}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
  695. /package/{lib → types}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  696. /package/{lib → types}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
  697. /package/{lib → types}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  698. /package/{lib → types}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
  699. /package/{lib → types}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  700. /package/{lib → types}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
  701. /package/{lib → types}/components/sections/navigation/skeletons/index.d.ts +0 -0
  702. /package/{lib → types}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
  703. /package/{lib → types}/components/sections/news/NewsAuthorCard.d.ts +0 -0
  704. /package/{lib → types}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
  705. /package/{lib → types}/components/sections/news/NewsFooter.d.ts +0 -0
  706. /package/{lib → types}/components/sections/news/NewsFooter.d.ts.map +0 -0
  707. /package/{lib → types}/components/sections/news/NewsImages.d.ts +0 -0
  708. /package/{lib → types}/components/sections/news/NewsImages.d.ts.map +0 -0
  709. /package/{lib → types}/components/sections/news/NewsIntro.d.ts +0 -0
  710. /package/{lib → types}/components/sections/news/NewsIntro.d.ts.map +0 -0
  711. /package/{lib → types}/components/sections/news/NewsList.d.ts +0 -0
  712. /package/{lib → types}/components/sections/news/NewsList.d.ts.map +0 -0
  713. /package/{lib → types}/components/sections/news/NewsOverview.d.ts +0 -0
  714. /package/{lib → types}/components/sections/news/NewsOverview.d.ts.map +0 -0
  715. /package/{lib → types}/components/sections/news/NewsTable.d.ts +0 -0
  716. /package/{lib → types}/components/sections/news/NewsTable.d.ts.map +0 -0
  717. /package/{lib → types}/components/sections/news/NewsText.d.ts +0 -0
  718. /package/{lib → types}/components/sections/news/NewsText.d.ts.map +0 -0
  719. /package/{lib → types}/components/sections/news/NewsVideo.d.ts +0 -0
  720. /package/{lib → types}/components/sections/news/NewsVideo.d.ts.map +0 -0
  721. /package/{lib → types}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
  722. /package/{lib → types}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
  723. /package/{lib → types}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
  724. /package/{lib → types}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
  725. /package/{lib → types}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
  726. /package/{lib → types}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
  727. /package/{lib → types}/components/typography/Callout.d.ts +0 -0
  728. /package/{lib → types}/components/typography/Copy.d.ts +0 -0
  729. /package/{lib → types}/components/typography/Copy.d.ts.map +0 -0
  730. /package/{lib → types}/components/typography/Heading.d.ts +0 -0
  731. /package/{lib → types}/components/typography/Heading.d.ts.map +0 -0
  732. /package/{lib → types}/components/typography/Link.d.ts +0 -0
  733. /package/{lib → types}/components/typography/Link.d.ts.map +0 -0
  734. /package/{lib → types}/utils/LibThemeProvider.d.ts +0 -0
  735. /package/{lib → types}/utils/LibThemeProvider.d.ts.map +0 -0
  736. /package/{lib → types}/utils/arrays.d.ts +0 -0
  737. /package/{lib → types}/utils/arrays.d.ts.map +0 -0
  738. /package/{lib → types}/utils/backgroundImage.d.ts +0 -0
  739. /package/{lib → types}/utils/backgroundImage.d.ts.map +0 -0
  740. /package/{lib → types}/utils/clamp.d.ts +0 -0
  741. /package/{lib → types}/utils/clamp.d.ts.map +0 -0
  742. /package/{lib → types}/utils/concat.d.ts +0 -0
  743. /package/{lib → types}/utils/concat.d.ts.map +0 -0
  744. /package/{lib → types}/utils/cookie-consent/cookie.d.ts +0 -0
  745. /package/{lib → types}/utils/cookie-consent/cookie.d.ts.map +0 -0
  746. /package/{lib → types}/utils/cookie-consent/mutations.d.ts +0 -0
  747. /package/{lib → types}/utils/cookie-consent/mutations.d.ts.map +0 -0
  748. /package/{lib → types}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
  749. /package/{lib → types}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
  750. /package/{lib → types}/utils/dataURI.d.ts +0 -0
  751. /package/{lib → types}/utils/dataURI.d.ts.map +0 -0
  752. /package/{lib → types}/utils/escape.d.ts +0 -0
  753. /package/{lib → types}/utils/escape.d.ts.map +0 -0
  754. /package/{lib → types}/utils/filters.d.ts +0 -0
  755. /package/{lib → types}/utils/filters.d.ts.map +0 -0
  756. /package/{lib → types}/utils/fontLoading.d.ts +0 -0
  757. /package/{lib → types}/utils/fontLoading.d.ts.map +0 -0
  758. /package/{lib → types}/utils/formFieldText.d.ts +0 -0
  759. /package/{lib → types}/utils/formFieldText.d.ts.map +0 -0
  760. /package/{lib → types}/utils/getLinkIcon.d.ts +0 -0
  761. /package/{lib → types}/utils/getLinkIcon.d.ts.map +0 -0
  762. /package/{lib → types}/utils/hexRgbConverter.d.ts +0 -0
  763. /package/{lib → types}/utils/hexRgbConverter.d.ts.map +0 -0
  764. /package/{lib → types}/utils/menuHooks.d.ts +0 -0
  765. /package/{lib → types}/utils/menuHooks.d.ts.map +0 -0
  766. /package/{lib → types}/utils/navigation.d.ts +0 -0
  767. /package/{lib → types}/utils/navigation.d.ts.map +0 -0
  768. /package/{lib → types}/utils/statusFormatter.d.ts +0 -0
  769. /package/{lib → types}/utils/statusFormatter.d.ts.map +0 -0
  770. /package/{lib → types}/utils/storyHelpers.d.ts +0 -0
  771. /package/{lib → types}/utils/storyHelpers.d.ts.map +0 -0
  772. /package/{lib → types}/utils/structuredData.d.ts +0 -0
  773. /package/{lib → types}/utils/structuredData.d.ts.map +0 -0
  774. /package/{lib → types}/utils/styles.d.ts +0 -0
  775. /package/{lib → types}/utils/styles.d.ts.map +0 -0
  776. /package/{lib → types}/utils/types.d.ts +0 -0
  777. /package/{lib → types}/utils/types.d.ts.map +0 -0
  778. /package/{lib → types}/utils/urlParams.d.ts +0 -0
  779. /package/{lib → types}/utils/urlParams.d.ts.map +0 -0
  780. /package/{lib → types}/utils/useArray.d.ts +0 -0
  781. /package/{lib → types}/utils/useArray.d.ts.map +0 -0
  782. /package/{lib → types}/utils/useDebounce.d.ts +0 -0
  783. /package/{lib → types}/utils/useDebounce.d.ts.map +0 -0
  784. /package/{lib → types}/utils/useEqualSheetHeight.d.ts +0 -0
  785. /package/{lib → types}/utils/useEqualSheetHeight.d.ts.map +0 -0
  786. /package/{lib → types}/utils/useFontsLoaded.d.ts +0 -0
  787. /package/{lib → types}/utils/useFontsLoaded.d.ts.map +0 -0
  788. /package/{lib → types}/utils/useGeolocation.d.ts +0 -0
  789. /package/{lib → types}/utils/useGeolocation.d.ts.map +0 -0
  790. /package/{lib → types}/utils/useIE.d.ts +0 -0
  791. /package/{lib → types}/utils/useIE.d.ts.map +0 -0
  792. /package/{lib → types}/utils/useImgPreload.d.ts +0 -0
  793. /package/{lib → types}/utils/useImgPreload.d.ts.map +0 -0
  794. /package/{lib → types}/utils/useInterval.d.ts +0 -0
  795. /package/{lib → types}/utils/useInterval.d.ts.map +0 -0
  796. /package/{lib → types}/utils/useItemHeight.d.ts +0 -0
  797. /package/{lib → types}/utils/useItemHeight.d.ts.map +0 -0
  798. /package/{lib → types}/utils/useLazyInput.d.ts +0 -0
  799. /package/{lib → types}/utils/useLazyInput.d.ts.map +0 -0
  800. /package/{lib → types}/utils/useLeafletMap.d.ts +0 -0
  801. /package/{lib → types}/utils/useLeafletMap.d.ts.map +0 -0
  802. /package/{lib → types}/utils/useMediaQuery.d.ts +0 -0
  803. /package/{lib → types}/utils/useMediaQuery.d.ts.map +0 -0
  804. /package/{lib → types}/utils/useMounted.d.ts +0 -0
  805. /package/{lib → types}/utils/useMounted.d.ts.map +0 -0
  806. /package/{lib → types}/utils/useObserverSupport.d.ts +0 -0
  807. /package/{lib → types}/utils/useObserverSupport.d.ts.map +0 -0
  808. /package/{lib → types}/utils/usePageScroll.d.ts +0 -0
  809. /package/{lib → types}/utils/usePageScroll.d.ts.map +0 -0
  810. /package/{lib → types}/utils/useParams.d.ts +0 -0
  811. /package/{lib → types}/utils/useParams.d.ts.map +0 -0
  812. /package/{lib → types}/utils/usePoster.d.ts +0 -0
  813. /package/{lib → types}/utils/usePoster.d.ts.map +0 -0
  814. /package/{lib → types}/utils/usePrevious.d.ts +0 -0
  815. /package/{lib → types}/utils/usePrevious.d.ts.map +0 -0
  816. /package/{lib → types}/utils/useResizeThrottle.d.ts +0 -0
  817. /package/{lib → types}/utils/useResizeThrottle.d.ts.map +0 -0
  818. /package/{lib → types}/utils/useScroll.d.ts +0 -0
  819. /package/{lib → types}/utils/useScroll.d.ts.map +0 -0
  820. /package/{lib → types}/utils/useScrollIntoView.d.ts +0 -0
  821. /package/{lib → types}/utils/useScrollIntoView.d.ts.map +0 -0
  822. /package/{lib → types}/utils/useScrollThrottle.d.ts +0 -0
  823. /package/{lib → types}/utils/useScrollThrottle.d.ts.map +0 -0
  824. /package/{lib → types}/utils/useScrollTo.d.ts +0 -0
  825. /package/{lib → types}/utils/useScrollTo.d.ts.map +0 -0
  826. /package/{lib → types}/utils/useTimeout.d.ts +0 -0
  827. /package/{lib → types}/utils/useTimeout.d.ts.map +0 -0
  828. /package/{lib → types}/utils/useTouch.d.ts +0 -0
  829. /package/{lib → types}/utils/useTouch.d.ts.map +0 -0
  830. /package/{lib → types}/utils/useUpdateEffect.d.ts +0 -0
  831. /package/{lib → types}/utils/useUpdateEffect.d.ts.map +0 -0
@@ -0,0 +1,115 @@
1
+ import { a as __makeTemplateObject, d as __rest, _ as __assign } from './ClockFilled-6bae80dc.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-c387bdc6.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-71376927.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button-71376927.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,EAAA,OAACA,IAAI,KAAK,SAAT,GAAqB,OAArB,GAA+B,OAAhC,CAAA;AAAwC,CAP7D,E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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;;;;;"}
@@ -0,0 +1,112 @@
1
+ import { a as __makeTemplateObject, d as __rest, _ as __assign } from './ClockFilled-6bae80dc.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-c387bdc6.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-6876b67f.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonGhost-6876b67f.js","sources":["../src/components/buttons/ButtonGhost.tsx"],"sourcesContent":["import * as 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 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\n text-align: center;\n text-decoration: none;\n\n outline: none;\n box-shadow: none;\n border: solid 1px\n ${({ inverted, disable, theme }) =>\n disable\n ? color(theme).elementBg.medium\n : inverted\n ? color(theme).elementBg.light\n : color(theme).elementBg.dark};\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: transparent;\n color: ${({ theme, inverted, disable }) =>\n disable\n ? inverted\n ? hexToRgba(color(theme).text.inverted, 0.6)\n : hexToRgba(color(theme).text.default, 0.6)\n : inverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n\n transition: all ease-in-out 0.2s;\n\n & > * {\n color: ${({ theme, inverted, disable }) =>\n disable\n ? inverted\n ? hexToRgba(color(theme).text.inverted, 0.6)\n : hexToRgba(color(theme).text.default, 0.6)\n : inverted\n ? color(theme).text.inverted\n : color(theme).text.default};\n }\n\n & > :not(:last-child) {\n padding-right: ${spacings.nudge}px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ${({ disable, inverted, theme }) =>\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 &:focus {\n outline: 1px solid\n ${inverted\n ? color(theme).primary.inverted\n : color(theme).primary.default};\n outline-offset: 0;\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 &:focus:not(:focus-visible) {\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`;\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 ButtonGhost: 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\nButtonGhost.displayName = 'Button Ghost';\n\nconst Icon = styled.div<{ iconColor?: string }>`\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: ${({ 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: ButtonGhost, Label: Label, Icon: Icon };\n"],"names":["View","styled","a","_a","size","spacings","spacer","theme","font","copy","medium","family","withRange","weight","letterSpacing","inverted","disable","color","elementBg","light","dark","global","sections","edgeRadius","hexToRgba","text","default","nudge","css","primary","ButtonGhost","React","forwardRef","ref","as","_b","isInverted","isDisabled","onClick","className","children","rest","__rest","createElement","__assign","href","target","isExternal","und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WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CAAcC,gBAAA,KAAAA,gBAAA,GAAAJ,oBAAA,CAAA,CAAA,yIAAA,CAAA,EAAA,CAAA,yIAAA,CAAA,CAAA,CAAd,CAAX,CAAA;AAUA,oBAAe;AAAEtD,EAAAA,IAAI,EAAE8B,WAAR;AAAqB0B,EAAAA,KAAK,EAAEA,KAA5B;AAAmCL,EAAAA,IAAI,EAAEA,IAAAA;AAAzC,CAAf,CAAA;;;;;"}
@@ -0,0 +1,99 @@
1
+ import { a as __makeTemplateObject, d as __rest, _ as __assign } from './ClockFilled-6bae80dc.js';
2
+ import * as React from 'react';
3
+ import styled, { css } from 'styled-components';
4
+ import { u as useLibTheme } from './LibThemeProvider-acf2e2bb.js';
5
+ import { f as styleTextColor, m as mq, a as getFonts, w as withRange } from './styles-c387bdc6.js';
6
+
7
+ var BaseStyles = styled.h1.withConfig({
8
+ displayName: "Callout__BaseStyles",
9
+ componentId: "sc-1rvhtfe-0"
10
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n ", "\n\n hyphens: auto;\n /* -webkit-hyphens: auto; */\n /* overflow-wrap: break-word; */\n\n ", "\n\n text-shadow: ", ";\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n font-weight: inherit;\n font-style: inherit;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n }\n"], ["\n margin: 0;\n padding: 0;\n ", "\n\n hyphens: auto;\n /* -webkit-hyphens: auto; */\n /* overflow-wrap: break-word; */\n\n ", "\n\n text-shadow: ", ";\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n font-weight: inherit;\n font-style: inherit;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n }\n"])), function (_a) {
11
+ var textColor = _a.textColor,
12
+ textGradient = _a.textGradient;
13
+ return styleTextColor(textColor, textGradient);
14
+ }, function (props) {
15
+ return !props.hyphens && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media ", " {\n hyphens: none;\n }\n "], ["\n @media ", " {\n hyphens: none;\n }\n "])), mq.large);
16
+ }, function (_a) {
17
+ var hasShadow = _a.hasShadow;
18
+ return hasShadow && '1px 2px 8px rgba(0, 0, 0, 0.25)';
19
+ });
20
+ var View = styled(BaseStyles).withConfig({
21
+ displayName: "Callout__View",
22
+ componentId: "sc-1rvhtfe-1"
23
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: ", ";\n font-weight: ", ";\n font-style: ", ";\n ", "\n line-height: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n"], ["\n font-family: ", ";\n font-weight: ", ";\n font-style: ", ";\n ", "\n line-height: ", ";\n letter-spacing: ", ";\n text-transform: ", ";\n text-decoration: ", ";\n"])), function (_a) {
24
+ var theme = _a.theme,
25
+ size = _a.size;
26
+ return getFonts(theme).callout[size].family;
27
+ }, function (_a) {
28
+ var theme = _a.theme,
29
+ size = _a.size;
30
+ return getFonts(theme).callout[size].weight;
31
+ }, function (_a) {
32
+ var theme = _a.theme,
33
+ size = _a.size;
34
+ return getFonts(theme).callout[size].style;
35
+ }, function (_a) {
36
+ var theme = _a.theme,
37
+ size = _a.size;
38
+ return withRange(getFonts(theme).callout[size].size, 'font-size');
39
+ }, function (_a) {
40
+ var theme = _a.theme,
41
+ size = _a.size;
42
+ return getFonts(theme).callout[size].lineHeight;
43
+ }, function (_a) {
44
+ var theme = _a.theme,
45
+ size = _a.size;
46
+ return getFonts(theme).callout[size].letterSpacing;
47
+ }, function (_a) {
48
+ var theme = _a.theme,
49
+ size = _a.size;
50
+ return getFonts(theme).callout[size].textTransform;
51
+ }, function (_a) {
52
+ var theme = _a.theme,
53
+ size = _a.size;
54
+ return getFonts(theme).callout[size].textDecoration;
55
+ });
56
+
57
+ var Callout = function (_a) {
58
+ var _b;
59
+
60
+ var isInverted = _a.isInverted,
61
+ _c = _a.renderAs,
62
+ renderAs = _c === void 0 ? 'h2' : _c,
63
+ className = _a.className,
64
+ _d = _a.size,
65
+ size = _d === void 0 ? 'medium' : _d,
66
+ textColor = _a.textColor,
67
+ textGradient = _a.textGradient,
68
+ _e = _a.hyphens,
69
+ hyphens = _e === void 0 ? false : _e,
70
+ _f = _a.hasShadow,
71
+ hasShadow = _f === void 0 ? false : _f,
72
+ innerHTML = _a.innerHTML,
73
+ children = _a.children,
74
+ rest = __rest(_a, ["isInverted", "renderAs", "className", "size", "textColor", "textGradient", "hyphens", "hasShadow", "innerHTML", "children"]);
75
+
76
+ var fonts = useLibTheme().fonts;
77
+ var fontSettings = (_b = fonts === null || fonts === void 0 ? void 0 : fonts.callout) === null || _b === void 0 ? void 0 : _b[size];
78
+ return React.createElement(View, __assign({
79
+ as: renderAs,
80
+ size: size,
81
+ textColor: textColor || (isInverted ? fontSettings.colorInverted : fontSettings.color),
82
+ textGradient: textGradient || (!textColor ? isInverted ? fontSettings.colorGradientInverted : fontSettings.colorGradient : undefined),
83
+ hyphens: hyphens,
84
+ hasShadow: hasShadow,
85
+ dangerouslySetInnerHTML: innerHTML && !children ? {
86
+ __html: innerHTML
87
+ } : undefined,
88
+ className: className
89
+ }, rest), children);
90
+ };
91
+
92
+ Callout.defaultProps = {
93
+ renderAs: 'h1',
94
+ size: 'medium'
95
+ };
96
+ var templateObject_1, templateObject_2, templateObject_3;
97
+
98
+ export { Callout as C };
99
+ //# sourceMappingURL=Callout-08fb36a2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Callout-08fb36a2.js","sources":["../src/components/typography/Callout.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled, { css } from 'styled-components';\nimport { useLibTheme } from 'utils/LibThemeProvider';\nimport {\n CalloutFontOptionType,\n getFonts as font,\n mq,\n styleTextColor,\n withRange,\n} from 'utils/styles';\n\n// Styles\nconst BaseStyles = styled.h1<{\n size: CalloutFontOptionType;\n hyphens?: boolean;\n hasShadow?: boolean;\n textColor?: string;\n textGradient?: string;\n}>`\n margin: 0;\n padding: 0;\n ${({ textColor, textGradient }) => styleTextColor(textColor, textGradient)}\n\n hyphens: auto;\n /* -webkit-hyphens: auto; */\n /* overflow-wrap: break-word; */\n\n ${(props: { hyphens?: boolean }) =>\n !props.hyphens &&\n css`\n @media ${mq.large} {\n hyphens: none;\n }\n `}\n\n text-shadow: ${({ hasShadow }) =>\n hasShadow && '1px 2px 8px rgba(0, 0, 0, 0.25)'};\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n font-weight: inherit;\n font-style: inherit;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n }\n`;\n\nconst View = styled(BaseStyles)`\n font-family: ${({ theme, size }) => font(theme).callout[size].family};\n font-weight: ${({ theme, size }) => font(theme).callout[size].weight};\n font-style: ${({ theme, size }) => font(theme).callout[size].style};\n ${({ theme, size }) =>\n withRange(font(theme).callout[size].size, 'font-size')}\n line-height: ${({ theme, size }) => font(theme).callout[size].lineHeight};\n letter-spacing: ${({ theme, size }) =>\n font(theme).callout[size].letterSpacing};\n text-transform: ${({ theme, size }) =>\n font(theme).callout[size].textTransform};\n text-decoration: ${({ theme, size }) =>\n font(theme).callout[size].textDecoration};\n`;\n\nexport type CalloutTag =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'span'\n | 'div'\n | 'blockquote';\n\nconst Callout: React.FC<{\n isInverted?: boolean;\n renderAs?: CalloutTag;\n size?: CalloutFontOptionType;\n textColor?: string;\n textGradient?: string;\n hyphens?: boolean;\n hasShadow?: boolean;\n innerHTML?: string;\n\n className?: string;\n children?: React.ReactNode;\n}> = ({\n isInverted,\n renderAs = 'h2',\n className,\n size = 'medium',\n textColor,\n textGradient,\n hyphens = false,\n hasShadow = false,\n innerHTML,\n children,\n ...rest\n}) => {\n const { fonts } = useLibTheme();\n const fontSettings = fonts?.callout?.[size];\n\n return (\n <View\n as={renderAs}\n size={size}\n textColor={\n textColor ||\n (isInverted ? fontSettings.colorInverted : fontSettings.color)\n }\n textGradient={\n textGradient ||\n (!textColor\n ? isInverted\n ? fontSettings.colorGradientInverted\n : fontSettings.colorGradient\n : undefined)\n }\n hyphens={hyphens}\n hasShadow={hasShadow}\n dangerouslySetInnerHTML={\n innerHTML && !children ? { __html: innerHTML } : undefined\n }\n className={className}\n {...rest}\n >\n {children}\n </View>\n );\n};\n\nCallout.defaultProps = {\n renderAs: 'h1',\n size: 'medium',\n};\n\nexport default Callout;\n"],"names":["BaseStyles","styled","h1","templateObject_2","__makeTemplateObject","_a","textColor","textGradient","styleTextColor","props","hyphens","css","templateObject_1","mq","large","hasShadow","View","templateObject_3","theme","size","font","callout","family","weight","style","withRange","lineHeight","letterSpacing","textTransform","textDecoration","Callout","isInverted","_c","renderAs","className","_d","_e","_f","innerHTML","children","rest","__rest","fonts","useLibTheme","fontSettings","_b","React","createElement","__assign","as","colorInverted","color","colorGradientInverted","colorGradient","undefined","dangerouslySetInnerHTML","__html","defaultProps"],"mappings":";;;;;;AAYA,IAAMA,UAAU,GAAGC,MAAM,CAACC,EAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,qBAAA;AAAA,EAAA,WAAA,EAAA,cAAA;AAAA,CAAA,CAAA,CAMdC,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,yCAAA,EAAA,wGAAA,EAAA,uBAAA,EAAA,gTAAA,CAAA,EAAA,CAAA,yCAAA,EAG4E,wGAH5E,EAeO,uBAfP,EAkBoD,gTAlBpD,CAAA,CAAA,CANc,EASV,UAACC,EAAD,EAA4B;MAAzBC,SAAS,GAAAD,EAAA,CAAAC;MAAEC,YAAY,GAAAF,EAAA,CAAAE;AAAO,EAAA,OAAAC,cAAc,CAACF,SAAD,EAAYC,YAAZ,CAAd,CAAA;AAAuC,CAT9D,EAeV,UAACE,KA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AA,KAAA,CAAA,GAAAA,KAAK,CAAErB,OAAP,MAAiB,IAAjB,IAAiBwB,EAAA,KAAA,KAAA,CAAjB,GAAiB,KAAA,CAAjB,GAAiBA,EAAA,CAAA1B,IAAA,CAAtC,CAAA;AAEA,EAAA,OACI2B,KAAA,CAAAC,aAAA,CAAC/B,IAAD,EAAKgC,QAAA,CAAA;AACDC,IAAAA,EAAE,EAAEhB,QADH;AAEDd,IAAAA,IAAI,EAAEA,IAFL;AAGDb,IAAAA,SAAS,EACLA,SAAS,KACRyB,UAAU,GAAGa,YAAY,CAACM,aAAhB,GAAgCN,YAAY,CAACO,KAD/C,CAJZ;AAOD5C,IAAAA,YAAY,EACRA,YAAY,KACX,CAACD,SAAD,GACKyB,UAAU,GACNa,YAAY,CAACQ,qBADP,GAENR,YAAY,CAACS,aAHtB,GAIKC,SALM,CARf;AAeD5C,IAAAA,OAAO,EAAEA,OAfR;AAgBDK,IAAAA,SAAS,EAAEA,SAhBV;AAiBDwC,IAAAA,uBAAuB,EACnBjB,SAAS,IAAI,CAACC,QAAd,GAAyB;AAAEiB,MAAAA,MAAM,EAAElB,SAAAA;AAAV,KAAzB,GAAiDgB,SAlBpD;AAoBDpB,IAAAA,SAAS,EAAEA,SAAAA;AApBV,GAAA,EAqBGM,IArBH,CAAL,EAuBKD,QAvBL,CADJ,CAAA;AA2BH,EAvDD;;AAyDAT,OAAO,CAAC2B,YAAR,GAAuB;AACnBxB,EAAAA,QAAQ,EAAE,IADS;AAEnBd,EAAAA,IAAI,EAAE,QAAA;AAFa,CAAvB,CAAA;;;;;"}
@@ -0,0 +1,135 @@
1
+ import { a as __makeTemplateObject, u as Check } from './ClockFilled-6bae80dc.js';
2
+ import { C as Copy } from './Copy-bca0854c.js';
3
+ import React__default from 'react';
4
+ import styled from 'styled-components';
5
+ import { u as useLibTheme } from './LibThemeProvider-acf2e2bb.js';
6
+ import { s as spacings, g as getColors } from './styles-c387bdc6.js';
7
+
8
+ var View = styled.label.withConfig({
9
+ displayName: "Checkbox__View",
10
+ componentId: "sc-ve3szk-0"
11
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2);
12
+ var Label = styled(Copy).withConfig({
13
+ displayName: "Checkbox__Label",
14
+ componentId: "sc-ve3szk-1"
15
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: 2px;\n text-align: left;\n user-select: none;\n\n & > * {\n margin: 0;\n }\n"], ["\n padding-top: 2px;\n text-align: left;\n user-select: none;\n\n & > * {\n margin: 0;\n }\n"])));
16
+ var CheckboxContainer = styled.div.withConfig({
17
+ displayName: "Checkbox__CheckboxContainer",
18
+ componentId: "sc-ve3szk-2"
19
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: ", ";\n cursor: ", ";\n pointer-events: ", ";\n\n border: 2px solid transparent;\n\n &:focus-within {\n outline: 1px solid\n ", ";\n outline-offset: 0;\n }\n"], ["\n color: ", ";\n cursor: ", ";\n pointer-events: ", ";\n\n border: 2px solid transparent;\n\n &:focus-within {\n outline: 1px solid\n ", ";\n outline-offset: 0;\n }\n"])), function (_a) {
20
+ var theme = _a.theme;
21
+ return getColors(theme).text.inverted;
22
+ }, function (_a) {
23
+ var isDisabled = _a.isDisabled;
24
+ return isDisabled ? 'default' : 'pointer';
25
+ }, function (_a) {
26
+ var isDisabled = _a.isDisabled;
27
+ return isDisabled ? 'none' : 'all';
28
+ }, function (_a) {
29
+ var theme = _a.theme,
30
+ isInverted = _a.isInverted,
31
+ isDisabled = _a.isDisabled;
32
+ return isDisabled ? 'transparent' : isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
33
+ });
34
+ var Original = styled.input.withConfig({
35
+ displayName: "Checkbox__Original",
36
+ componentId: "sc-ve3szk-3"
37
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n left: -9999px;\n opacity: 0;\n"], ["\n position: absolute;\n left: -9999px;\n opacity: 0;\n"])));
38
+ var Box = styled.span.withConfig({
39
+ displayName: "Checkbox__Box",
40
+ componentId: "sc-ve3szk-4"
41
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 20px;\n min-width: 20px;\n height: 20px;\n display: block;\n position: relative;\n\n border: 2px solid\n ", ";\n\n background-color: ", ";\n"], ["\n width: 20px;\n min-width: 20px;\n height: 20px;\n display: block;\n position: relative;\n\n border: 2px solid\n ", ";\n\n background-color: ", ";\n"])), function (_a) {
42
+ var isSelected = _a.isSelected,
43
+ isDisabled = _a.isDisabled,
44
+ isInverted = _a.isInverted,
45
+ theme = _a.theme;
46
+
47
+ if (isDisabled) {
48
+ return isInverted ? getColors(theme).text.subtileInverted : getColors(theme).text.subtile;
49
+ }
50
+
51
+ if (isSelected) {
52
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
53
+ }
54
+
55
+ return isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
56
+ }, function (_a) {
57
+ var isSelected = _a.isSelected,
58
+ isDisabled = _a.isDisabled,
59
+ isInverted = _a.isInverted,
60
+ theme = _a.theme;
61
+
62
+ if (isDisabled) {
63
+ return isInverted ? getColors(theme).text.subtileInverted : getColors(theme).text.subtile;
64
+ }
65
+
66
+ if (isSelected) {
67
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
68
+ }
69
+
70
+ return 'transparent';
71
+ });
72
+ var StyledCheck = styled(Check).withConfig({
73
+ displayName: "Checkbox__StyledCheck",
74
+ componentId: "sc-ve3szk-5"
75
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 80%;\n height: 80%;\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"], ["\n width: 80%;\n height: 80%;\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])));
76
+
77
+ var Checkbox = function (_a) {
78
+ var label = _a.label,
79
+ isDisabled = _a.isDisabled,
80
+ isSelected = _a.isSelected,
81
+ isInverted = _a.isInverted,
82
+ onChange = _a.onChange,
83
+ onBlur = _a.onBlur,
84
+ onClick = _a.onClick,
85
+ name = _a.name,
86
+ value = _a.value,
87
+ isRequired = _a.isRequired;
88
+ var colors = useLibTheme().colors;
89
+ return React__default.createElement(View, null, React__default.createElement(CheckboxContainer, {
90
+ isDisabled: isDisabled,
91
+ isInverted: isInverted,
92
+ onClick: onClick
93
+ }, React__default.createElement(Box, {
94
+ isSelected: isSelected,
95
+ isInverted: isInverted,
96
+ isDisabled: isDisabled
97
+ }, isSelected && React__default.createElement(StyledCheck, null)), React__default.createElement(Original, {
98
+ type: "checkbox",
99
+ name: "".concat(name, "[]"),
100
+ value: value,
101
+ checked: isSelected,
102
+ required: isRequired,
103
+ onChange: onChange,
104
+ onBlur: onBlur
105
+ })), label && React__default.createElement(Label, {
106
+ renderAs: "span",
107
+ size: "small",
108
+ type: "copy-b",
109
+ isInverted: isInverted,
110
+ textColor: isDisabled ? isInverted ? colors.text.subtileInverted : colors.text.subtile : undefined,
111
+ innerHTML: "".concat(label).concat(isRequired ? '<span> *</span>' : '')
112
+ }));
113
+ };
114
+ /**
115
+ * Function to compare both field prop states
116
+ * @param prev Previous props
117
+ * @param next Next props
118
+ * @returns
119
+ */
120
+
121
+
122
+ var areEqual = function (prev, next) {
123
+ // only apply logic if memo functionality is enabled
124
+ if (!prev.enableMemo) return false;
125
+ if (prev.label !== next.label) return false;
126
+ if (prev.isSelected !== next.isSelected) return false;
127
+ if (prev.value !== next.value) return false;
128
+ return true;
129
+ };
130
+
131
+ var Checkbox$1 = React__default.memo(Checkbox, areEqual);
132
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
133
+
134
+ export { Checkbox$1 as C };
135
+ //# sourceMappingURL=Checkbox-4daef7a4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox-4daef7a4.js","sources":["../src/components/fields/Checkbox.tsx"],"sourcesContent":["import Check from 'components/base/icons/Check';\nimport Copy from 'components/typography/Copy';\nimport React from 'react';\nimport styled from 'styled-components';\nimport { useLibTheme } from 'utils/LibThemeProvider';\nimport { getColors as color, spacings } from 'utils/styles';\n\nconst View = styled.label`\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ${spacings.nudge * 2}px;\n }\n`;\n\nconst Label = styled(Copy)`\n padding-top: 2px;\n text-align: left;\n user-select: none;\n\n & > * {\n margin: 0;\n }\n`;\n\nconst CheckboxContainer = styled.div<{\n isDisabled?: boolean;\n isInverted?: boolean;\n}>`\n color: ${({ theme }) => color(theme).text.inverted};\n cursor: ${({ isDisabled }) => (isDisabled ? 'default' : 'pointer')};\n pointer-events: ${({ isDisabled }) => (isDisabled ? 'none' : 'all')};\n\n border: 2px solid transparent;\n\n &:focus-within {\n outline: 1px solid\n ${({ theme, isInverted, isDisabled }) =>\n isDisabled\n ? 'transparent'\n : isInverted\n ? color(theme).primary.inverted\n : color(theme).primary.default};\n outline-offset: 0;\n }\n`;\n\nconst Original = styled.input`\n position: absolute;\n left: -9999px;\n opacity: 0;\n`;\n\nconst Box = styled.span<{\n isSelected?: boolean;\n isInverted?: boolean;\n isDisabled?: boolean;\n}>`\n width: 20px;\n min-width: 20px;\n height: 20px;\n display: block;\n position: relative;\n\n border: 2px solid\n ${({ isSelected, isDisabled, isInverted, theme }) => {\n if (isDisabled) {\n return isInverted\n ? color(theme).text.subtileInverted\n : color(theme).text.subtile;\n }\n if (isSelected) {\n return isInverted\n ? color(theme).primary.inverted\n : color(theme).primary.default;\n }\n return isInverted\n ? color(theme).elementBg.light\n : color(theme).elementBg.medium;\n }};\n\n background-color: ${({ isSelected, isDisabled, isInverted, theme }) => {\n if (isDisabled) {\n return isInverted\n ? color(theme).text.subtileInverted\n : color(theme).text.subtile;\n }\n if (isSelected) {\n return isInverted\n ? color(theme).primary.inverted\n : color(theme).primary.default;\n }\n return 'transparent';\n }};\n`;\n\nconst StyledCheck = styled(Check)`\n width: 80%;\n height: 80%;\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\n\nexport interface CheckboxProps {\n enableMemo?: boolean;\n label?: string;\n\n onChange?: (e: React.SyntheticEvent<HTMLInputElement>) => void;\n onBlur?: (e: React.SyntheticEvent<HTMLInputElement>) => void;\n onClick?: () => void;\n\n name?: string;\n value?: string;\n\n isDisabled?: boolean;\n isSelected?: boolean;\n isInverted?: boolean;\n isRequired?: boolean;\n}\n\nconst Checkbox: React.FC<CheckboxProps> = ({\n label,\n isDisabled,\n isSelected,\n isInverted,\n onChange,\n onBlur,\n onClick,\n name,\n value,\n isRequired,\n}) => {\n const { colors } = useLibTheme();\n\n return (\n <View>\n <CheckboxContainer\n isDisabled={isDisabled}\n isInverted={isInverted}\n onClick={onClick}\n >\n <Box\n isSelected={isSelected}\n isInverted={isInverted}\n isDisabled={isDisabled}\n >\n {isSelected && <StyledCheck />}\n </Box>\n <Original\n type=\"checkbox\"\n name={`${name}[]`}\n value={value}\n checked={isSelected}\n required={isRequired}\n onChange={onChange}\n onBlur={onBlur}\n />\n </CheckboxContainer>\n {label && (\n <Label\n renderAs=\"span\"\n size=\"small\"\n type=\"copy-b\"\n isInverted={isInverted}\n textColor={\n isDisabled\n ? isInverted\n ? colors.text.subtileInverted\n : colors.text.subtile\n : undefined\n }\n innerHTML={`${label}${isRequired ? '<span> *</span>' : ''}`}\n />\n )}\n </View>\n );\n};\n\n/**\n * Function to compare both field prop states\n * @param prev Previous props\n * @param next Next props\n * @returns\n */\nconst areEqual = (prev: CheckboxProps, next: CheckboxProps) => {\n // only apply logic if memo functionality is enabled\n if (!prev.enableMemo) return false;\n\n if (prev.label !== next.label) return false;\n if (prev.isSelected !== next.isSelected) return false;\n if (prev.value !== next.value) return false;\n\n return true;\n};\n\nexport default React.memo(Checkbox, areEqual);\n"],"names":["View","styled","label","spacings","nudge","Label","Copy","templateObject_2","__makeTemplateObject","CheckboxContainer","div","_a","theme","color","text","inverted","isDisabled","isInverted","primary","default","Original","input","templateObject_4","Box","span","templateObject_5","isSelected","subtileInverted","subtile","elementBg","light","medium","StyledCheck","Check","templateObject_6","Checkbox","onChange","onBlur","onClick","name","value","isRequired","colors","useLibTheme","React","createElement","type","concat","checked","required","renderAs","size","textColor","undefined","innerHTML","areEqual","prev","next","enableMemo","memo"],"mappings":";;;;;;;AAOA,IAAMA,IAAI,GAAGC,MAAM,CAACC,KAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,gBAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,yMAAe,sHAMgB,iBAN/B,EAMaC,QAAQ,CAACC,KAAT,GAAiB,CAN9B,CAAV,CAAA;AAUA,IAAMC,KAAK,GAAGJ,MAAM,CAACK,IAAD,CAAT,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,iBAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,CAAeC,gBAAA,KAAAA,gBAAA,GAAAC,oBAAA,CAAA,CAAA,oHAAA,CAAA,EAAA,CAAA,oHAAA,CAAA,CAAA,CAAf,CAAX,CAAA;AAUA,IAAMC,iBAAiB,GAAGR,MAAM,CAACS,GAAV,CAAA,UAAA,CAAA;AAAA,EAAA,WAAA,EAAA,6BAAA;AAAA,EAAA,WAAA,EAAA,aAAA;AAAA,CAAA,CAAA,uRAGrB,iBACoD,mBACgB,2BACC,6GAWrB,2CAjB3B,EAIV,UAACC,EAAD,EAAU;AAAP,EAAA,IAAAC,KAAK,GAAAD,EAAA,CAAAC,KAAL,CAAA;AAAY,EAAA,OAAAC,SAAK,CAACD,KAAD,CAAL,CAAaE,IAAb,CAAkBC,QAAlB,CAAA;AAA0B,CAJ/B,EAKT,UAACJ,EAAD,EAAe;AAAZ,EAAA,IAAAK,UAAU,GAAA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