@blateral/b.kit 2.2.5 → 2.3.0-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 (946) 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/cookies/package.json +7 -0
  5. package/fields/package.json +7 -0
  6. package/hooks/package.json +7 -0
  7. package/icons/package.json +7 -0
  8. package/lib/cjs/Actions-487104b2.js +2 -0
  9. package/lib/cjs/Actions-487104b2.js.map +1 -0
  10. package/lib/cjs/Bdot-760e0e3a.js +2 -0
  11. package/lib/cjs/Bdot-760e0e3a.js.map +1 -0
  12. package/lib/cjs/ButtonGhost-e9644acd.js +2 -0
  13. package/lib/cjs/ButtonGhost-e9644acd.js.map +1 -0
  14. package/lib/cjs/Callout-2713f870.js +2 -0
  15. package/lib/cjs/Callout-2713f870.js.map +1 -0
  16. package/lib/cjs/Checkbox-14000bf0.js +2 -0
  17. package/lib/cjs/Checkbox-14000bf0.js.map +1 -0
  18. package/lib/cjs/ClockFilled-2483aa4a.js +2 -0
  19. package/lib/cjs/ClockFilled-2483aa4a.js.map +1 -0
  20. package/lib/cjs/Control-23259241.js +2 -0
  21. package/lib/cjs/Control-23259241.js.map +1 -0
  22. package/lib/cjs/Copy-e860efe7.js +2 -0
  23. package/lib/cjs/Copy-e860efe7.js.map +1 -0
  24. package/lib/cjs/FilterField-569d60e5.js +2 -0
  25. package/lib/cjs/FilterField-569d60e5.js.map +1 -0
  26. package/lib/cjs/LibThemeProvider-fb99fd6d.js +2 -0
  27. package/lib/cjs/LibThemeProvider-fb99fd6d.js.map +1 -0
  28. package/lib/cjs/Link-70143bb7.js +2 -0
  29. package/lib/cjs/Link-70143bb7.js.map +1 -0
  30. package/lib/cjs/Navigation-ebb27a9b.js +2 -0
  31. package/lib/cjs/Navigation-ebb27a9b.js.map +1 -0
  32. package/lib/cjs/SocialList-79ddf9d6.js +2 -0
  33. package/lib/cjs/SocialList-79ddf9d6.js.map +1 -0
  34. package/lib/cjs/Wrapper-3b9c9e89.js +2 -0
  35. package/lib/cjs/Wrapper-3b9c9e89.js.map +1 -0
  36. package/lib/cjs/arrays-c272ed59.js +2 -0
  37. package/lib/cjs/arrays-c272ed59.js.map +1 -0
  38. package/lib/cjs/base.js +2 -0
  39. package/lib/cjs/base.js.map +1 -0
  40. package/lib/cjs/blocks.js +2 -0
  41. package/lib/cjs/blocks.js.map +1 -0
  42. package/lib/cjs/buttons.js +2 -0
  43. package/lib/cjs/buttons.js.map +1 -0
  44. package/lib/cjs/clamp-bd21d587.js +2 -0
  45. package/lib/cjs/clamp-bd21d587.js.map +1 -0
  46. package/lib/cjs/concat-f387d848.js +2 -0
  47. package/lib/cjs/concat-f387d848.js.map +1 -0
  48. package/lib/cjs/cookies.js +2 -0
  49. package/lib/cjs/cookies.js.map +1 -0
  50. package/lib/cjs/fields.js +2 -0
  51. package/lib/cjs/fields.js.map +1 -0
  52. package/lib/cjs/hexRgbConverter-91b28aea.js +2 -0
  53. package/lib/cjs/hexRgbConverter-91b28aea.js.map +1 -0
  54. package/lib/cjs/hooks.js +2 -0
  55. package/lib/cjs/hooks.js.map +1 -0
  56. package/lib/cjs/icons.js +2 -0
  57. package/lib/cjs/icons.js.map +1 -0
  58. package/lib/cjs/index.js +2 -0
  59. package/lib/cjs/index.js.map +1 -0
  60. package/lib/cjs/navigation-bf154e6e.js +2 -0
  61. package/lib/cjs/navigation-bf154e6e.js.map +1 -0
  62. package/lib/cjs/navigation.js +2 -0
  63. package/lib/cjs/navigation.js.map +1 -0
  64. package/lib/cjs/sections.js +2 -0
  65. package/lib/cjs/sections.js.map +1 -0
  66. package/lib/cjs/styles-0f1a0aea.js +2 -0
  67. package/lib/cjs/styles-0f1a0aea.js.map +1 -0
  68. package/lib/cjs/typography.js +2 -0
  69. package/lib/cjs/typography.js.map +1 -0
  70. package/lib/cjs/urlParams-51ce7168.js +2 -0
  71. package/lib/cjs/urlParams-51ce7168.js.map +1 -0
  72. package/lib/cjs/useCookieConsent-0bf94751.js +2 -0
  73. package/lib/cjs/useCookieConsent-0bf94751.js.map +1 -0
  74. package/lib/cjs/useGeolocation-4d38150b.js +2 -0
  75. package/lib/cjs/useGeolocation-4d38150b.js.map +1 -0
  76. package/lib/cjs/useMediaQuery-d4f81f88.js +2 -0
  77. package/lib/cjs/useMediaQuery-d4f81f88.js.map +1 -0
  78. package/lib/cjs/useMounted-0bba9869.js +2 -0
  79. package/lib/cjs/useMounted-0bba9869.js.map +1 -0
  80. package/lib/cjs/useObserverSupport-5ab320dd.js +2 -0
  81. package/lib/cjs/useObserverSupport-5ab320dd.js.map +1 -0
  82. package/lib/cjs/useUpdateEffect-4d233e2c.js +2 -0
  83. package/lib/cjs/useUpdateEffect-4d233e2c.js.map +1 -0
  84. package/lib/esm/Actions-59bdbbf7.js +310 -0
  85. package/lib/esm/Actions-59bdbbf7.js.map +1 -0
  86. package/lib/esm/Bdot-a103eeef.js +1141 -0
  87. package/lib/esm/Bdot-a103eeef.js.map +1 -0
  88. package/lib/esm/ButtonGhost-422fd723.js +220 -0
  89. package/lib/esm/ButtonGhost-422fd723.js.map +1 -0
  90. package/lib/esm/Callout-03ad4c6e.js +99 -0
  91. package/lib/esm/Callout-03ad4c6e.js.map +1 -0
  92. package/lib/esm/Checkbox-76c2576b.js +135 -0
  93. package/lib/esm/Checkbox-76c2576b.js.map +1 -0
  94. package/lib/esm/ClockFilled-cff5900e.js +1793 -0
  95. package/lib/esm/ClockFilled-cff5900e.js.map +1 -0
  96. package/lib/esm/Control-52ff8784.js +157 -0
  97. package/lib/esm/Control-52ff8784.js.map +1 -0
  98. package/lib/esm/Copy-d2be4fb7.js +270 -0
  99. package/lib/esm/Copy-d2be4fb7.js.map +1 -0
  100. package/lib/esm/FilterField-b1a28df7.js +4906 -0
  101. package/lib/esm/FilterField-b1a28df7.js.map +1 -0
  102. package/lib/esm/LibThemeProvider-17012395.js +115 -0
  103. package/lib/esm/LibThemeProvider-17012395.js.map +1 -0
  104. package/lib/esm/Link-42f0b80f.js +60 -0
  105. package/lib/esm/Link-42f0b80f.js.map +1 -0
  106. package/lib/esm/Navigation-fae92776.js +1663 -0
  107. package/lib/esm/Navigation-fae92776.js.map +1 -0
  108. package/lib/esm/SocialList-385cde53.js +307 -0
  109. package/lib/esm/SocialList-385cde53.js.map +1 -0
  110. package/lib/esm/Wrapper-38c912a6.js +420 -0
  111. package/lib/esm/Wrapper-38c912a6.js.map +1 -0
  112. package/lib/esm/arrays-65b644ef.js +17 -0
  113. package/lib/esm/arrays-65b644ef.js.map +1 -0
  114. package/lib/esm/base.js +10 -0
  115. package/lib/esm/base.js.map +1 -0
  116. package/lib/esm/blocks.js +17 -0
  117. package/lib/esm/blocks.js.map +1 -0
  118. package/lib/esm/buttons.js +10 -0
  119. package/lib/esm/buttons.js.map +1 -0
  120. package/lib/esm/clamp-12d37b65.js +10 -0
  121. package/lib/esm/clamp-12d37b65.js.map +1 -0
  122. package/lib/esm/concat-ab3c66f2.js +40 -0
  123. package/lib/esm/concat-ab3c66f2.js.map +1 -0
  124. package/lib/esm/cookies.js +269 -0
  125. package/lib/esm/cookies.js.map +1 -0
  126. package/lib/esm/fields.js +186 -0
  127. package/lib/esm/fields.js.map +1 -0
  128. package/lib/esm/hexRgbConverter-edb91624.js +36 -0
  129. package/lib/esm/hexRgbConverter-edb91624.js.map +1 -0
  130. package/lib/esm/hooks.js +526 -0
  131. package/lib/esm/hooks.js.map +1 -0
  132. package/lib/esm/icons.js +4 -0
  133. package/lib/esm/icons.js.map +1 -0
  134. package/lib/esm/index.js +7 -0
  135. package/lib/esm/index.js.map +1 -0
  136. package/lib/esm/navigation-e135836f.js +132 -0
  137. package/lib/esm/navigation-e135836f.js.map +1 -0
  138. package/lib/esm/navigation.js +157 -0
  139. package/lib/esm/navigation.js.map +1 -0
  140. package/lib/esm/sections.js +8566 -0
  141. package/lib/esm/sections.js.map +1 -0
  142. package/lib/esm/styles-eca3acc8.js +462 -0
  143. package/lib/esm/styles-eca3acc8.js.map +1 -0
  144. package/lib/esm/typography.js +11 -0
  145. package/lib/esm/typography.js.map +1 -0
  146. package/lib/esm/urlParams-c16d7370.js +308 -0
  147. package/lib/esm/urlParams-c16d7370.js.map +1 -0
  148. package/lib/esm/useCookieConsent-cd262961.js +339 -0
  149. package/lib/esm/useCookieConsent-cd262961.js.map +1 -0
  150. package/lib/esm/useGeolocation-c99d76bd.js +471 -0
  151. package/lib/esm/useGeolocation-c99d76bd.js.map +1 -0
  152. package/lib/esm/useMediaQuery-07eee3f4.js +109 -0
  153. package/lib/esm/useMediaQuery-07eee3f4.js.map +1 -0
  154. package/lib/esm/useMounted-1e4cc87b.js +12 -0
  155. package/lib/esm/useMounted-1e4cc87b.js.map +1 -0
  156. package/lib/esm/useObserverSupport-02bce7f5.js +19 -0
  157. package/lib/esm/useObserverSupport-02bce7f5.js.map +1 -0
  158. package/lib/esm/useUpdateEffect-824c0c84.js +18 -0
  159. package/lib/esm/useUpdateEffect-824c0c84.js.map +1 -0
  160. package/lib/types/base.d.ts +5 -0
  161. package/lib/types/base.d.ts.map +1 -0
  162. package/lib/types/blocks.d.ts +18 -0
  163. package/lib/types/blocks.d.ts.map +1 -0
  164. package/lib/types/buttons.d.ts +6 -0
  165. package/lib/types/buttons.d.ts.map +1 -0
  166. package/lib/{components → types/components}/base/Grid.d.ts +0 -0
  167. package/lib/types/components/base/Grid.d.ts.map +1 -0
  168. package/lib/{components → types/components}/base/Section.d.ts +0 -0
  169. package/lib/types/components/base/Section.d.ts.map +1 -0
  170. package/lib/{components → types/components}/base/Wrapper.d.ts +0 -0
  171. package/lib/types/components/base/Wrapper.d.ts.map +1 -0
  172. package/lib/{components → types/components}/base/icons/AngleDown.d.ts +0 -0
  173. package/lib/types/components/base/icons/AngleDown.d.ts.map +1 -0
  174. package/lib/{components → types/components}/base/icons/AngleLeft.d.ts +0 -0
  175. package/lib/types/components/base/icons/AngleLeft.d.ts.map +1 -0
  176. package/lib/{components → types/components}/base/icons/AngleRight.d.ts +0 -0
  177. package/lib/types/components/base/icons/AngleRight.d.ts.map +1 -0
  178. package/lib/{components → types/components}/base/icons/AngleUp.d.ts +0 -0
  179. package/lib/types/components/base/icons/AngleUp.d.ts.map +1 -0
  180. package/lib/{components → types/components}/base/icons/ArrowDown.d.ts +0 -0
  181. package/lib/types/components/base/icons/ArrowDown.d.ts.map +1 -0
  182. package/lib/{components → types/components}/base/icons/ArrowLeft.d.ts +0 -0
  183. package/lib/types/components/base/icons/ArrowLeft.d.ts.map +1 -0
  184. package/lib/{components → types/components}/base/icons/ArrowLeftGhost.d.ts +0 -0
  185. package/lib/types/components/base/icons/ArrowLeftGhost.d.ts.map +1 -0
  186. package/lib/{components → types/components}/base/icons/ArrowLeftRight.d.ts +0 -0
  187. package/lib/types/components/base/icons/ArrowLeftRight.d.ts.map +1 -0
  188. package/lib/{components → types/components}/base/icons/ArrowRight.d.ts +0 -0
  189. package/lib/types/components/base/icons/ArrowRight.d.ts.map +1 -0
  190. package/lib/{components → types/components}/base/icons/ArrowRightGhost.d.ts +0 -0
  191. package/lib/types/components/base/icons/ArrowRightGhost.d.ts.map +1 -0
  192. package/lib/{components → types/components}/base/icons/ArrowUp.d.ts +0 -0
  193. package/lib/types/components/base/icons/ArrowUp.d.ts.map +1 -0
  194. package/lib/{components → types/components}/base/icons/BoxArrowUpRight.d.ts +0 -0
  195. package/lib/types/components/base/icons/BoxArrowUpRight.d.ts.map +1 -0
  196. package/lib/{components → types/components}/base/icons/CalendarToday.d.ts +0 -0
  197. package/lib/types/components/base/icons/CalendarToday.d.ts.map +1 -0
  198. package/lib/{components → types/components}/base/icons/Category.d.ts +0 -0
  199. package/lib/types/components/base/icons/Category.d.ts.map +1 -0
  200. package/lib/{components → types/components}/base/icons/Check.d.ts +0 -0
  201. package/lib/types/components/base/icons/Check.d.ts.map +1 -0
  202. package/lib/{components → types/components}/base/icons/Clock.d.ts +0 -0
  203. package/lib/types/components/base/icons/Clock.d.ts.map +1 -0
  204. package/lib/{components → types/components}/base/icons/ClockFilled.d.ts +0 -0
  205. package/lib/types/components/base/icons/ClockFilled.d.ts.map +1 -0
  206. package/lib/{components → types/components}/base/icons/Computer.d.ts +0 -0
  207. package/lib/types/components/base/icons/Computer.d.ts.map +1 -0
  208. package/lib/{components → types/components}/base/icons/Cross.d.ts +0 -0
  209. package/lib/types/components/base/icons/Cross.d.ts.map +1 -0
  210. package/lib/{components → types/components}/base/icons/CrossSmall.d.ts +0 -0
  211. package/lib/types/components/base/icons/CrossSmall.d.ts.map +1 -0
  212. package/lib/{components → types/components}/base/icons/CurrentLocation.d.ts +0 -0
  213. package/lib/types/components/base/icons/CurrentLocation.d.ts.map +1 -0
  214. package/lib/{components → types/components}/base/icons/DateRange.d.ts +0 -0
  215. package/lib/types/components/base/icons/DateRange.d.ts.map +1 -0
  216. package/lib/{components → types/components}/base/icons/DeleteForever.d.ts +0 -0
  217. package/lib/types/components/base/icons/DeleteForever.d.ts.map +1 -0
  218. package/lib/{components → types/components}/base/icons/External.d.ts +0 -0
  219. package/lib/types/components/base/icons/External.d.ts.map +1 -0
  220. package/lib/{components → types/components}/base/icons/Filter.d.ts +0 -0
  221. package/lib/types/components/base/icons/Filter.d.ts.map +1 -0
  222. package/lib/{components → types/components}/base/icons/FlyTo.d.ts +0 -0
  223. package/lib/types/components/base/icons/FlyTo.d.ts.map +1 -0
  224. package/lib/{components → types/components}/base/icons/Info.d.ts +0 -0
  225. package/lib/types/components/base/icons/Info.d.ts.map +1 -0
  226. package/lib/{components → types/components}/base/icons/Language.d.ts +0 -0
  227. package/lib/types/components/base/icons/Language.d.ts.map +1 -0
  228. package/lib/{components → types/components}/base/icons/LocationPin.d.ts +0 -0
  229. package/lib/types/components/base/icons/LocationPin.d.ts.map +1 -0
  230. package/lib/{components → types/components}/base/icons/LocationSearch.d.ts +0 -0
  231. package/lib/types/components/base/icons/LocationSearch.d.ts.map +1 -0
  232. package/lib/{components → types/components}/base/icons/Magnifier.d.ts +0 -0
  233. package/lib/types/components/base/icons/Magnifier.d.ts.map +1 -0
  234. package/lib/{components → types/components}/base/icons/Mail.d.ts +0 -0
  235. package/lib/types/components/base/icons/Mail.d.ts.map +1 -0
  236. package/lib/{components → types/components}/base/icons/Map.d.ts +0 -0
  237. package/lib/types/components/base/icons/Map.d.ts.map +1 -0
  238. package/lib/{components → types/components}/base/icons/MenuBurger.d.ts +0 -0
  239. package/lib/types/components/base/icons/MenuBurger.d.ts.map +1 -0
  240. package/lib/{components → types/components}/base/icons/Minus.d.ts +0 -0
  241. package/lib/types/components/base/icons/Minus.d.ts.map +1 -0
  242. package/lib/{components → types/components}/base/icons/Money.d.ts +0 -0
  243. package/lib/types/components/base/icons/Money.d.ts.map +1 -0
  244. package/lib/{components → types/components}/base/icons/MyLocation.d.ts +0 -0
  245. package/lib/types/components/base/icons/MyLocation.d.ts.map +1 -0
  246. package/lib/{components → types/components}/base/icons/Person.d.ts +0 -0
  247. package/lib/types/components/base/icons/Person.d.ts.map +1 -0
  248. package/lib/{components → types/components}/base/icons/Phone.d.ts +0 -0
  249. package/lib/types/components/base/icons/Phone.d.ts.map +1 -0
  250. package/lib/{components → types/components}/base/icons/Place.d.ts +0 -0
  251. package/lib/types/components/base/icons/Place.d.ts.map +1 -0
  252. package/lib/{components → types/components}/base/icons/Play.d.ts +0 -0
  253. package/lib/types/components/base/icons/Play.d.ts.map +1 -0
  254. package/lib/{components → types/components}/base/icons/Plus.d.ts +0 -0
  255. package/lib/types/components/base/icons/Plus.d.ts.map +1 -0
  256. package/lib/{components → types/components}/base/icons/Route.d.ts +0 -0
  257. package/lib/types/components/base/icons/Route.d.ts.map +1 -0
  258. package/lib/{components → types/components}/base/icons/Star.d.ts +0 -0
  259. package/lib/types/components/base/icons/Star.d.ts.map +1 -0
  260. package/lib/{components → types/components}/base/icons/ToggleOff.d.ts +0 -0
  261. package/lib/types/components/base/icons/ToggleOff.d.ts.map +1 -0
  262. package/lib/{components → types/components}/base/icons/ToggleOn.d.ts +0 -0
  263. package/lib/types/components/base/icons/ToggleOn.d.ts.map +1 -0
  264. package/lib/{components → types/components}/base/icons/UnfoldMore.d.ts +0 -0
  265. package/lib/types/components/base/icons/UnfoldMore.d.ts.map +1 -0
  266. package/lib/{components → types/components}/base/icons/files/Excel.d.ts +0 -0
  267. package/lib/types/components/base/icons/files/Excel.d.ts.map +1 -0
  268. package/lib/{components → types/components}/base/icons/files/Image.d.ts +0 -0
  269. package/lib/types/components/base/icons/files/Image.d.ts.map +1 -0
  270. package/lib/{components → types/components}/base/icons/files/Pdf.d.ts +0 -0
  271. package/lib/types/components/base/icons/files/Pdf.d.ts.map +1 -0
  272. package/lib/{components → types/components}/base/icons/files/PowerPoint.d.ts +0 -0
  273. package/lib/types/components/base/icons/files/PowerPoint.d.ts.map +1 -0
  274. package/lib/{components → types/components}/base/icons/files/UploadFile.d.ts +0 -0
  275. package/lib/types/components/base/icons/files/UploadFile.d.ts.map +1 -0
  276. package/lib/{components → types/components}/base/icons/files/Word.d.ts +0 -0
  277. package/lib/types/components/base/icons/files/Word.d.ts.map +1 -0
  278. package/lib/{components → types/components}/base/icons/files/Zip.d.ts +0 -0
  279. package/lib/types/components/base/icons/files/Zip.d.ts.map +1 -0
  280. package/lib/{components → types/components}/base/icons/socials/Facebook.d.ts +0 -0
  281. package/lib/types/components/base/icons/socials/Facebook.d.ts.map +1 -0
  282. package/lib/{components → types/components}/base/icons/socials/Instagram.d.ts +0 -0
  283. package/lib/types/components/base/icons/socials/Instagram.d.ts.map +1 -0
  284. package/lib/{components → types/components}/base/icons/socials/LinkedIn.d.ts +0 -0
  285. package/lib/types/components/base/icons/socials/LinkedIn.d.ts.map +1 -0
  286. package/lib/{components → types/components}/base/icons/socials/Twitter.d.ts +0 -0
  287. package/lib/types/components/base/icons/socials/Twitter.d.ts.map +1 -0
  288. package/lib/{components → types/components}/base/icons/socials/Xing.d.ts +0 -0
  289. package/lib/types/components/base/icons/socials/Xing.d.ts.map +1 -0
  290. package/lib/{components → types/components}/base/icons/socials/Youtube.d.ts +0 -0
  291. package/lib/types/components/base/icons/socials/Youtube.d.ts.map +1 -0
  292. package/lib/{components → types/components}/base/nl2br.d.ts +0 -0
  293. package/lib/types/components/base/nl2br.d.ts.map +1 -0
  294. package/lib/{components → types/components}/blocks/Actions.d.ts +0 -0
  295. package/lib/types/components/blocks/Actions.d.ts.map +1 -0
  296. package/lib/{components → types/components}/blocks/Alert.d.ts +0 -0
  297. package/lib/types/components/blocks/Alert.d.ts.map +1 -0
  298. package/lib/{components → types/components}/blocks/Bdot.d.ts +0 -0
  299. package/lib/types/components/blocks/Bdot.d.ts.map +1 -0
  300. package/lib/{components → types/components}/blocks/CookieConsent.d.ts +0 -0
  301. package/lib/types/components/blocks/CookieConsent.d.ts.map +1 -0
  302. package/lib/{components → types/components}/blocks/EventBlock.d.ts +0 -0
  303. package/lib/types/components/blocks/EventBlock.d.ts.map +1 -0
  304. package/lib/{components → types/components}/blocks/Fact.d.ts +0 -0
  305. package/lib/types/components/blocks/Fact.d.ts.map +1 -0
  306. package/lib/{components → types/components}/blocks/Feature.d.ts +0 -0
  307. package/lib/types/components/blocks/Feature.d.ts.map +1 -0
  308. package/lib/{components → types/components}/blocks/Image.d.ts +0 -0
  309. package/lib/types/components/blocks/Image.d.ts.map +1 -0
  310. package/lib/{components → types/components}/blocks/InfoList.d.ts +0 -0
  311. package/lib/types/components/blocks/InfoList.d.ts.map +1 -0
  312. package/lib/{components → types/components}/blocks/IntroBlock.d.ts +0 -0
  313. package/lib/types/components/blocks/IntroBlock.d.ts.map +1 -0
  314. package/lib/{components → types/components}/blocks/JobCard.d.ts +0 -0
  315. package/lib/types/components/blocks/JobCard.d.ts.map +1 -0
  316. package/lib/{components → types/components}/blocks/LanguageSwitcher.d.ts +0 -0
  317. package/lib/types/components/blocks/LanguageSwitcher.d.ts.map +1 -0
  318. package/lib/{components → types/components}/blocks/NavBlock.d.ts +0 -0
  319. package/lib/types/components/blocks/NavBlock.d.ts.map +1 -0
  320. package/lib/{components → types/components}/blocks/NewsCard.d.ts +0 -0
  321. package/lib/types/components/blocks/NewsCard.d.ts.map +1 -0
  322. package/lib/{components → types/components}/blocks/POICard.d.ts +0 -0
  323. package/lib/types/components/blocks/POICard.d.ts.map +1 -0
  324. package/lib/{components → types/components}/blocks/POIFacts.d.ts +0 -0
  325. package/lib/types/components/blocks/POIFacts.d.ts.map +1 -0
  326. package/lib/{components → types/components}/blocks/PriceTag.d.ts +0 -0
  327. package/lib/types/components/blocks/PriceTag.d.ts.map +1 -0
  328. package/lib/{components → types/components}/blocks/PromotionCard.d.ts +0 -0
  329. package/lib/types/components/blocks/PromotionCard.d.ts.map +1 -0
  330. package/lib/{components → types/components}/blocks/SocialList.d.ts +0 -0
  331. package/lib/types/components/blocks/SocialList.d.ts.map +1 -0
  332. package/lib/{components → types/components}/blocks/TableBlock.d.ts +0 -0
  333. package/lib/types/components/blocks/TableBlock.d.ts.map +1 -0
  334. package/lib/{components → types/components}/blocks/Tag.d.ts +0 -0
  335. package/lib/types/components/blocks/Tag.d.ts.map +1 -0
  336. package/lib/{components → types/components}/blocks/Title.d.ts +0 -0
  337. package/lib/types/components/blocks/Title.d.ts.map +1 -0
  338. package/lib/{components → types/components}/blocks/VideoBlock.d.ts +0 -0
  339. package/lib/types/components/blocks/VideoBlock.d.ts.map +1 -0
  340. package/lib/{components → types/components}/blocks/VideoCard.d.ts +0 -0
  341. package/lib/types/components/blocks/VideoCard.d.ts.map +1 -0
  342. package/lib/{components → types/components}/buttons/Button.d.ts +0 -0
  343. package/lib/types/components/buttons/Button.d.ts.map +1 -0
  344. package/lib/{components → types/components}/buttons/ButtonGhost.d.ts +0 -0
  345. package/lib/types/components/buttons/ButtonGhost.d.ts.map +1 -0
  346. package/lib/{components → types/components}/buttons/Control.d.ts +0 -0
  347. package/lib/types/components/buttons/Control.d.ts.map +1 -0
  348. package/lib/{components → types/components}/buttons/Pointer.d.ts +0 -0
  349. package/lib/types/components/buttons/Pointer.d.ts.map +1 -0
  350. package/lib/{components → types/components}/debug/DebugLines.d.ts +0 -0
  351. package/lib/types/components/debug/DebugLines.d.ts.map +1 -0
  352. package/lib/{components → types/components}/examples/hooks/ArrayHookExample.d.ts +0 -0
  353. package/lib/types/components/examples/hooks/ArrayHookExample.d.ts.map +1 -0
  354. package/lib/{components → types/components}/examples/hooks/IntervalHookExample.d.ts +0 -0
  355. package/lib/types/components/examples/hooks/IntervalHookExample.d.ts.map +1 -0
  356. package/lib/{components → types/components}/fields/Checkbox.d.ts +0 -0
  357. package/lib/types/components/fields/Checkbox.d.ts.map +1 -0
  358. package/lib/{components → types/components}/fields/CompactForm.d.ts +0 -0
  359. package/lib/types/components/fields/CompactForm.d.ts.map +1 -0
  360. package/lib/{components → types/components}/fields/Datepicker.d.ts +0 -0
  361. package/lib/types/components/fields/Datepicker.d.ts.map +1 -0
  362. package/lib/{components → types/components}/fields/FileUpload.d.ts +0 -0
  363. package/lib/types/components/fields/FileUpload.d.ts.map +1 -0
  364. package/lib/{components → types/components}/fields/FilterField.d.ts +0 -0
  365. package/lib/types/components/fields/FilterField.d.ts.map +1 -0
  366. package/lib/{components → types/components}/fields/FormField.d.ts +0 -0
  367. package/lib/types/components/fields/FormField.d.ts.map +1 -0
  368. package/lib/{components → types/components}/fields/LocationField.d.ts +0 -0
  369. package/lib/types/components/fields/LocationField.d.ts.map +1 -0
  370. package/lib/{components → types/components}/fields/Radio.d.ts +0 -0
  371. package/lib/types/components/fields/Radio.d.ts.map +1 -0
  372. package/lib/{components → types/components}/fields/SearchInput.d.ts +0 -0
  373. package/lib/types/components/fields/SearchInput.d.ts.map +1 -0
  374. package/lib/{components → types/components}/fields/SelectDropdown.d.ts +0 -0
  375. package/lib/types/components/fields/SelectDropdown.d.ts.map +1 -0
  376. package/lib/{components → types/components}/fields/Textarea.d.ts +0 -0
  377. package/lib/types/components/fields/Textarea.d.ts.map +1 -0
  378. package/lib/{components → types/components}/fields/Textfield.d.ts +0 -0
  379. package/lib/types/components/fields/Textfield.d.ts.map +1 -0
  380. package/lib/{components → types/components}/sections/Accordion.d.ts +0 -0
  381. package/lib/types/components/sections/Accordion.d.ts.map +1 -0
  382. package/lib/{components → types/components}/sections/AlertList.d.ts +0 -0
  383. package/lib/types/components/sections/AlertList.d.ts.map +1 -0
  384. package/lib/{components → types/components}/sections/Article.d.ts +0 -0
  385. package/lib/types/components/sections/Article.d.ts.map +1 -0
  386. package/lib/{components → types/components}/sections/CallToAction.d.ts +0 -0
  387. package/lib/types/components/sections/CallToAction.d.ts.map +1 -0
  388. package/lib/{components → types/components}/sections/CardList.d.ts +0 -0
  389. package/lib/types/components/sections/CardList.d.ts.map +1 -0
  390. package/lib/{components → types/components}/sections/ComparisonSlider.d.ts +0 -0
  391. package/lib/types/components/sections/ComparisonSlider.d.ts.map +1 -0
  392. package/lib/{components → types/components}/sections/CrossPromotion.d.ts +0 -0
  393. package/lib/types/components/sections/CrossPromotion.d.ts.map +1 -0
  394. package/lib/{components → types/components}/sections/FactGrid.d.ts +0 -0
  395. package/lib/types/components/sections/FactGrid.d.ts.map +1 -0
  396. package/lib/{components → types/components}/sections/FactList.d.ts +0 -0
  397. package/lib/types/components/sections/FactList.d.ts.map +1 -0
  398. package/lib/{components → types/components}/sections/FeatureList.d.ts +0 -0
  399. package/lib/types/components/sections/FeatureList.d.ts.map +1 -0
  400. package/lib/{components → types/components}/sections/Gallery.d.ts +0 -0
  401. package/lib/types/components/sections/Gallery.d.ts.map +1 -0
  402. package/lib/{components → types/components}/sections/IconList.d.ts +0 -0
  403. package/lib/types/components/sections/IconList.d.ts.map +1 -0
  404. package/lib/{components → types/components}/sections/IndexList.d.ts +0 -0
  405. package/lib/types/components/sections/IndexList.d.ts.map +1 -0
  406. package/lib/{components → types/components}/sections/Intro.d.ts +0 -0
  407. package/lib/types/components/sections/Intro.d.ts.map +1 -0
  408. package/lib/{components → types/components}/sections/Map.d.ts +0 -0
  409. package/lib/types/components/sections/Map.d.ts.map +1 -0
  410. package/lib/{components → types/components}/sections/NavList.d.ts +0 -0
  411. package/lib/types/components/sections/NavList.d.ts.map +1 -0
  412. package/lib/{components → types/components}/sections/NewsletterForm.d.ts +0 -0
  413. package/lib/types/components/sections/NewsletterForm.d.ts.map +1 -0
  414. package/lib/{components → types/components}/sections/NumberList.d.ts +0 -0
  415. package/lib/types/components/sections/NumberList.d.ts.map +1 -0
  416. package/lib/{components → types/components}/sections/ParallaxBackground.d.ts +0 -0
  417. package/lib/types/components/sections/ParallaxBackground.d.ts.map +1 -0
  418. package/lib/{components → types/components}/sections/Poster.d.ts +0 -0
  419. package/lib/types/components/sections/Poster.d.ts.map +1 -0
  420. package/lib/{components → types/components}/sections/PriceList.d.ts +0 -0
  421. package/lib/types/components/sections/PriceList.d.ts.map +1 -0
  422. package/lib/{components → types/components}/sections/PriceTable.d.ts +0 -0
  423. package/lib/types/components/sections/PriceTable.d.ts.map +1 -0
  424. package/lib/{components → types/components}/sections/Quote.d.ts +0 -0
  425. package/lib/types/components/sections/Quote.d.ts.map +1 -0
  426. package/lib/{components → types/components}/sections/RawVideo.d.ts +0 -0
  427. package/lib/types/components/sections/RawVideo.d.ts.map +1 -0
  428. package/lib/{components → types/components}/sections/SimpleImage.d.ts +0 -0
  429. package/lib/types/components/sections/SimpleImage.d.ts.map +1 -0
  430. package/lib/{components → types/components}/sections/SocialWall.d.ts +0 -0
  431. package/lib/types/components/sections/SocialWall.d.ts.map +1 -0
  432. package/lib/{components → types/components}/sections/Table.d.ts +0 -0
  433. package/lib/types/components/sections/Table.d.ts.map +1 -0
  434. package/lib/{components → types/components}/sections/Teaser.d.ts +0 -0
  435. package/lib/types/components/sections/Teaser.d.ts.map +1 -0
  436. package/lib/{components → types/components}/sections/TeaserWide.d.ts +0 -0
  437. package/lib/types/components/sections/TeaserWide.d.ts.map +1 -0
  438. package/lib/{components → types/components}/sections/Timeline.d.ts +0 -0
  439. package/lib/types/components/sections/Timeline.d.ts.map +1 -0
  440. package/lib/{components → types/components}/sections/Video.d.ts +0 -0
  441. package/lib/types/components/sections/Video.d.ts.map +1 -0
  442. package/lib/{components → types/components}/sections/events/EventDetail.d.ts +0 -0
  443. package/lib/types/components/sections/events/EventDetail.d.ts.map +1 -0
  444. package/lib/{components → types/components}/sections/events/EventList.d.ts +0 -0
  445. package/lib/types/components/sections/events/EventList.d.ts.map +1 -0
  446. package/lib/{components → types/components}/sections/events/EventOverview.d.ts +0 -0
  447. package/lib/types/components/sections/events/EventOverview.d.ts.map +1 -0
  448. package/lib/{components → types/components}/sections/footer/Footer.d.ts +0 -0
  449. package/lib/types/components/sections/footer/Footer.d.ts.map +1 -0
  450. package/lib/{components → types/components}/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  451. package/lib/types/components/sections/footer/partials/FooterBottomBar.d.ts.map +1 -0
  452. package/lib/{components → types/components}/sections/footer/partials/FooterColumn.d.ts +0 -0
  453. package/lib/types/components/sections/footer/partials/FooterColumn.d.ts.map +1 -0
  454. package/lib/{components → types/components}/sections/footer/partials/index.d.ts +0 -0
  455. package/lib/types/components/sections/footer/partials/index.d.ts.map +1 -0
  456. package/lib/{components → types/components}/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  457. package/lib/types/components/sections/footer/skeletons/FooterArticle.d.ts.map +1 -0
  458. package/lib/{components → types/components}/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  459. package/lib/types/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +1 -0
  460. package/lib/{components → types/components}/sections/footer/skeletons/index.d.ts +0 -0
  461. package/lib/types/components/sections/footer/skeletons/index.d.ts.map +1 -0
  462. package/lib/{components → types/components}/sections/form/DynamicForm.d.ts +0 -0
  463. package/lib/types/components/sections/form/DynamicForm.d.ts.map +1 -0
  464. package/lib/{components → types/components}/sections/form/renderer/areaRenderer.d.ts +0 -0
  465. package/lib/types/components/sections/form/renderer/areaRenderer.d.ts.map +1 -0
  466. package/lib/{components → types/components}/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  467. package/lib/types/components/sections/form/renderer/datepickerRenderer.d.ts.map +1 -0
  468. package/lib/{components → types/components}/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  469. package/lib/types/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +1 -0
  470. package/lib/{components → types/components}/sections/form/renderer/fieldRenderer.d.ts +0 -0
  471. package/lib/types/components/sections/form/renderer/fieldRenderer.d.ts.map +1 -0
  472. package/lib/{components → types/components}/sections/form/renderer/locationRenderer.d.ts +0 -0
  473. package/lib/types/components/sections/form/renderer/locationRenderer.d.ts.map +1 -0
  474. package/lib/{components → types/components}/sections/form/renderer/selectRenderer.d.ts +0 -0
  475. package/lib/types/components/sections/form/renderer/selectRenderer.d.ts.map +1 -0
  476. package/lib/{components → types/components}/sections/form/renderer/uploadRenderer.d.ts +0 -0
  477. package/lib/types/components/sections/form/renderer/uploadRenderer.d.ts.map +1 -0
  478. package/lib/{components → types/components}/sections/form/validators/areaValidator.d.ts +0 -0
  479. package/lib/types/components/sections/form/validators/areaValidator.d.ts.map +1 -0
  480. package/lib/{components → types/components}/sections/form/validators/datepickerValidator.d.ts +0 -0
  481. package/lib/types/components/sections/form/validators/datepickerValidator.d.ts.map +1 -0
  482. package/lib/{components → types/components}/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  483. package/lib/types/components/sections/form/validators/fieldGroupValidator.d.ts.map +1 -0
  484. package/lib/{components → types/components}/sections/form/validators/fieldValidator.d.ts +0 -0
  485. package/lib/types/components/sections/form/validators/fieldValidator.d.ts.map +1 -0
  486. package/lib/{components → types/components}/sections/form/validators/locationValidator.d.ts +0 -0
  487. package/lib/types/components/sections/form/validators/locationValidator.d.ts.map +1 -0
  488. package/lib/{components → types/components}/sections/form/validators/selectValidator.d.ts +0 -0
  489. package/lib/types/components/sections/form/validators/selectValidator.d.ts.map +1 -0
  490. package/lib/{components → types/components}/sections/form/validators/uploadValidator.d.ts +0 -0
  491. package/lib/types/components/sections/form/validators/uploadValidator.d.ts.map +1 -0
  492. package/lib/{components → types/components}/sections/header/Header.d.ts +0 -0
  493. package/lib/types/components/sections/header/Header.d.ts.map +1 -0
  494. package/lib/{components → types/components}/sections/header/HeaderKenBurns.d.ts +0 -0
  495. package/lib/types/components/sections/header/HeaderKenBurns.d.ts.map +1 -0
  496. package/lib/{components → types/components}/sections/header/HeaderPoster.d.ts +0 -0
  497. package/lib/types/components/sections/header/HeaderPoster.d.ts.map +1 -0
  498. package/lib/{components → types/components}/sections/header/HeaderVideo.d.ts +0 -0
  499. package/lib/types/components/sections/header/HeaderVideo.d.ts.map +1 -0
  500. package/lib/{components → types/components}/sections/jobs/JobArticle.d.ts +0 -0
  501. package/lib/types/components/sections/jobs/JobArticle.d.ts.map +1 -0
  502. package/lib/{components → types/components}/sections/jobs/JobList.d.ts +0 -0
  503. package/lib/types/components/sections/jobs/JobList.d.ts.map +1 -0
  504. package/lib/{components → types/components}/sections/navigation/NavBar.d.ts +0 -0
  505. package/lib/types/components/sections/navigation/NavBar.d.ts.map +1 -0
  506. package/lib/{components → types/components}/sections/navigation/Navigation.d.ts +0 -0
  507. package/lib/types/components/sections/navigation/Navigation.d.ts.map +1 -0
  508. package/lib/{components → types/components}/sections/navigation/menu/Menu.d.ts +0 -0
  509. package/lib/types/components/sections/navigation/menu/Menu.d.ts.map +1 -0
  510. package/lib/{components → types/components}/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  511. package/lib/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
  512. package/lib/{components → types/components}/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  513. package/lib/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
  514. package/lib/{components → types/components}/sections/navigation/partials/MenuFooter.d.ts +0 -0
  515. package/lib/types/components/sections/navigation/partials/MenuFooter.d.ts.map +1 -0
  516. package/lib/{components → types/components}/sections/navigation/partials/MenuHeader.d.ts +0 -0
  517. package/lib/types/components/sections/navigation/partials/MenuHeader.d.ts.map +1 -0
  518. package/lib/{components → types/components}/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  519. package/lib/types/components/sections/navigation/partials/NavBarBottom.d.ts.map +1 -0
  520. package/lib/{components → types/components}/sections/navigation/partials/NavBarMain.d.ts +0 -0
  521. package/lib/types/components/sections/navigation/partials/NavBarMain.d.ts.map +1 -0
  522. package/lib/{components → types/components}/sections/navigation/partials/NavBarTop.d.ts +0 -0
  523. package/lib/types/components/sections/navigation/partials/NavBarTop.d.ts.map +1 -0
  524. package/lib/{components → types/components}/sections/navigation/partials/index.d.ts +0 -0
  525. package/lib/types/components/sections/navigation/partials/index.d.ts.map +1 -0
  526. package/lib/{components → types/components}/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  527. package/lib/types/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +1 -0
  528. package/lib/{components → types/components}/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  529. package/lib/types/components/sections/navigation/skeletons/BarColumn.d.ts.map +1 -0
  530. package/lib/{components → types/components}/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  531. package/lib/types/components/sections/navigation/skeletons/BarLogo.d.ts.map +1 -0
  532. package/lib/{components → types/components}/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  533. package/lib/types/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +1 -0
  534. package/lib/{components → types/components}/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  535. package/lib/types/components/sections/navigation/skeletons/BarNavList.d.ts.map +1 -0
  536. package/lib/{components → types/components}/sections/navigation/skeletons/index.d.ts +0 -0
  537. package/lib/types/components/sections/navigation/skeletons/index.d.ts.map +1 -0
  538. package/lib/{components → types/components}/sections/news/NewsAuthorCard.d.ts +0 -0
  539. package/lib/types/components/sections/news/NewsAuthorCard.d.ts.map +1 -0
  540. package/lib/{components → types/components}/sections/news/NewsFooter.d.ts +0 -0
  541. package/lib/types/components/sections/news/NewsFooter.d.ts.map +1 -0
  542. package/lib/{components → types/components}/sections/news/NewsImages.d.ts +0 -0
  543. package/lib/types/components/sections/news/NewsImages.d.ts.map +1 -0
  544. package/lib/{components → types/components}/sections/news/NewsIntro.d.ts +0 -0
  545. package/lib/types/components/sections/news/NewsIntro.d.ts.map +1 -0
  546. package/lib/{components → types/components}/sections/news/NewsList.d.ts +0 -0
  547. package/lib/types/components/sections/news/NewsList.d.ts.map +1 -0
  548. package/lib/{components → types/components}/sections/news/NewsOverview.d.ts +0 -0
  549. package/lib/types/components/sections/news/NewsOverview.d.ts.map +1 -0
  550. package/lib/{components → types/components}/sections/news/NewsTable.d.ts +0 -0
  551. package/lib/types/components/sections/news/NewsTable.d.ts.map +1 -0
  552. package/lib/{components → types/components}/sections/news/NewsText.d.ts +0 -0
  553. package/lib/types/components/sections/news/NewsText.d.ts.map +1 -0
  554. package/lib/{components → types/components}/sections/news/NewsVideo.d.ts +0 -0
  555. package/lib/types/components/sections/news/NewsVideo.d.ts.map +1 -0
  556. package/lib/{components → types/components}/sections/pois/PointOfInterestDetail.d.ts +0 -0
  557. package/lib/types/components/sections/pois/PointOfInterestDetail.d.ts.map +1 -0
  558. package/lib/{components → types/components}/sections/pois/PointOfInterestMap.d.ts +0 -0
  559. package/lib/types/components/sections/pois/PointOfInterestMap.d.ts.map +1 -0
  560. package/lib/{components → types/components}/sections/pois/PointOfInterestOverview.d.ts +0 -0
  561. package/lib/types/components/sections/pois/PointOfInterestOverview.d.ts.map +1 -0
  562. package/lib/{components → types/components}/typography/Callout.d.ts +0 -0
  563. package/lib/types/components/typography/Callout.d.ts.map +1 -0
  564. package/lib/{components → types/components}/typography/Copy.d.ts +0 -0
  565. package/lib/types/components/typography/Copy.d.ts.map +1 -0
  566. package/lib/{components → types/components}/typography/Heading.d.ts +0 -0
  567. package/lib/types/components/typography/Heading.d.ts.map +1 -0
  568. package/lib/{components → types/components}/typography/Link.d.ts +0 -0
  569. package/lib/types/components/typography/Link.d.ts.map +1 -0
  570. package/lib/types/cookies.d.ts +3 -0
  571. package/lib/types/cookies.d.ts.map +1 -0
  572. package/lib/types/fields.d.ts +14 -0
  573. package/lib/types/fields.d.ts.map +1 -0
  574. package/lib/types/hooks.d.ts +35 -0
  575. package/lib/types/hooks.d.ts.map +1 -0
  576. package/lib/types/icons.d.ts +66 -0
  577. package/lib/types/icons.d.ts.map +1 -0
  578. package/lib/types/index.d.ts +18 -0
  579. package/lib/types/index.d.ts.map +1 -0
  580. package/lib/types/navigation.d.ts +10 -0
  581. package/lib/types/navigation.d.ts.map +1 -0
  582. package/lib/types/sections.d.ts +55 -0
  583. package/lib/types/sections.d.ts.map +1 -0
  584. package/lib/types/typography.d.ts +6 -0
  585. package/lib/types/typography.d.ts.map +1 -0
  586. package/lib/{utils → types/utils}/LibThemeProvider.d.ts +0 -0
  587. package/lib/types/utils/LibThemeProvider.d.ts.map +1 -0
  588. package/lib/{utils → types/utils}/arrays.d.ts +0 -0
  589. package/lib/types/utils/arrays.d.ts.map +1 -0
  590. package/lib/{utils → types/utils}/backgroundImage.d.ts +0 -0
  591. package/lib/types/utils/backgroundImage.d.ts.map +1 -0
  592. package/lib/{utils → types/utils}/clamp.d.ts +0 -0
  593. package/lib/types/utils/clamp.d.ts.map +1 -0
  594. package/lib/{utils → types/utils}/concat.d.ts +0 -0
  595. package/lib/types/utils/concat.d.ts.map +1 -0
  596. package/lib/{utils → types/utils}/cookie-consent/cookie.d.ts +0 -0
  597. package/lib/types/utils/cookie-consent/cookie.d.ts.map +1 -0
  598. package/lib/{utils → types/utils}/cookie-consent/mutations.d.ts +0 -0
  599. package/lib/types/utils/cookie-consent/mutations.d.ts.map +1 -0
  600. package/lib/{utils → types/utils}/cookie-consent/useCookieConsent.d.ts +0 -0
  601. package/lib/types/utils/cookie-consent/useCookieConsent.d.ts.map +1 -0
  602. package/lib/{utils → types/utils}/dataURI.d.ts +0 -0
  603. package/lib/types/utils/dataURI.d.ts.map +1 -0
  604. package/lib/{utils → types/utils}/escape.d.ts +0 -0
  605. package/lib/types/utils/escape.d.ts.map +1 -0
  606. package/lib/{utils → types/utils}/filters.d.ts +0 -0
  607. package/lib/types/utils/filters.d.ts.map +1 -0
  608. package/lib/{utils → types/utils}/fontLoading.d.ts +0 -0
  609. package/lib/types/utils/fontLoading.d.ts.map +1 -0
  610. package/lib/{utils → types/utils}/formFieldText.d.ts +0 -0
  611. package/lib/types/utils/formFieldText.d.ts.map +1 -0
  612. package/lib/{utils → types/utils}/getLinkIcon.d.ts +0 -0
  613. package/lib/types/utils/getLinkIcon.d.ts.map +1 -0
  614. package/lib/{utils → types/utils}/hexRgbConverter.d.ts +0 -0
  615. package/lib/types/utils/hexRgbConverter.d.ts.map +1 -0
  616. package/lib/{utils → types/utils}/menuHooks.d.ts +0 -0
  617. package/lib/types/utils/menuHooks.d.ts.map +1 -0
  618. package/lib/{utils → types/utils}/navigation.d.ts +0 -0
  619. package/lib/types/utils/navigation.d.ts.map +1 -0
  620. package/lib/{utils → types/utils}/statusFormatter.d.ts +0 -0
  621. package/lib/types/utils/statusFormatter.d.ts.map +1 -0
  622. package/lib/{utils → types/utils}/storyHelpers.d.ts +0 -0
  623. package/lib/types/utils/storyHelpers.d.ts.map +1 -0
  624. package/lib/{utils → types/utils}/structuredData.d.ts +0 -0
  625. package/lib/types/utils/structuredData.d.ts.map +1 -0
  626. package/lib/{utils → types/utils}/styles.d.ts +0 -0
  627. package/lib/types/utils/styles.d.ts.map +1 -0
  628. package/lib/{utils → types/utils}/types.d.ts +0 -0
  629. package/lib/types/utils/types.d.ts.map +1 -0
  630. package/lib/{utils → types/utils}/urlParams.d.ts +0 -0
  631. package/lib/types/utils/urlParams.d.ts.map +1 -0
  632. package/lib/{utils → types/utils}/useArray.d.ts +0 -0
  633. package/lib/types/utils/useArray.d.ts.map +1 -0
  634. package/lib/{utils → types/utils}/useDebounce.d.ts +0 -0
  635. package/lib/types/utils/useDebounce.d.ts.map +1 -0
  636. package/lib/{utils → types/utils}/useEqualSheetHeight.d.ts +0 -0
  637. package/lib/types/utils/useEqualSheetHeight.d.ts.map +1 -0
  638. package/lib/{utils → types/utils}/useFontsLoaded.d.ts +0 -0
  639. package/lib/types/utils/useFontsLoaded.d.ts.map +1 -0
  640. package/lib/{utils → types/utils}/useGeolocation.d.ts +0 -0
  641. package/lib/types/utils/useGeolocation.d.ts.map +1 -0
  642. package/lib/{utils → types/utils}/useIE.d.ts +0 -0
  643. package/lib/types/utils/useIE.d.ts.map +1 -0
  644. package/lib/{utils → types/utils}/useImgPreload.d.ts +0 -0
  645. package/lib/types/utils/useImgPreload.d.ts.map +1 -0
  646. package/lib/{utils → types/utils}/useInterval.d.ts +0 -0
  647. package/lib/types/utils/useInterval.d.ts.map +1 -0
  648. package/lib/{utils → types/utils}/useItemHeight.d.ts +0 -0
  649. package/lib/types/utils/useItemHeight.d.ts.map +1 -0
  650. package/lib/{utils → types/utils}/useLazyInput.d.ts +0 -0
  651. package/lib/types/utils/useLazyInput.d.ts.map +1 -0
  652. package/lib/{utils → types/utils}/useLeafletMap.d.ts +0 -0
  653. package/lib/types/utils/useLeafletMap.d.ts.map +1 -0
  654. package/lib/{utils → types/utils}/useMediaQuery.d.ts +0 -0
  655. package/lib/types/utils/useMediaQuery.d.ts.map +1 -0
  656. package/lib/{utils → types/utils}/useMounted.d.ts +0 -0
  657. package/lib/types/utils/useMounted.d.ts.map +1 -0
  658. package/lib/{utils → types/utils}/useObserverSupport.d.ts +0 -0
  659. package/lib/types/utils/useObserverSupport.d.ts.map +1 -0
  660. package/lib/{utils → types/utils}/usePageScroll.d.ts +0 -0
  661. package/lib/types/utils/usePageScroll.d.ts.map +1 -0
  662. package/lib/{utils → types/utils}/useParams.d.ts +0 -0
  663. package/lib/types/utils/useParams.d.ts.map +1 -0
  664. package/lib/{utils → types/utils}/usePoster.d.ts +0 -0
  665. package/lib/types/utils/usePoster.d.ts.map +1 -0
  666. package/lib/{utils → types/utils}/usePrevious.d.ts +0 -0
  667. package/lib/types/utils/usePrevious.d.ts.map +1 -0
  668. package/lib/{utils → types/utils}/useResizeThrottle.d.ts +0 -0
  669. package/lib/types/utils/useResizeThrottle.d.ts.map +1 -0
  670. package/lib/{utils → types/utils}/useScroll.d.ts +0 -0
  671. package/lib/types/utils/useScroll.d.ts.map +1 -0
  672. package/lib/{utils → types/utils}/useScrollIntoView.d.ts +0 -0
  673. package/lib/types/utils/useScrollIntoView.d.ts.map +1 -0
  674. package/lib/{utils → types/utils}/useScrollThrottle.d.ts +0 -0
  675. package/lib/types/utils/useScrollThrottle.d.ts.map +1 -0
  676. package/lib/{utils → types/utils}/useScrollTo.d.ts +0 -0
  677. package/lib/types/utils/useScrollTo.d.ts.map +1 -0
  678. package/lib/{utils → types/utils}/useTimeout.d.ts +0 -0
  679. package/lib/types/utils/useTimeout.d.ts.map +1 -0
  680. package/lib/{utils → types/utils}/useTouch.d.ts +0 -0
  681. package/lib/types/utils/useTouch.d.ts.map +1 -0
  682. package/lib/{utils → types/utils}/useUpdateEffect.d.ts +0 -0
  683. package/lib/types/utils/useUpdateEffect.d.ts.map +1 -0
  684. package/navigation/package.json +7 -0
  685. package/package.json +18 -5
  686. package/sections/package.json +7 -0
  687. package/typography/package.json +7 -0
  688. package/lib/components/base/Grid.d.ts.map +0 -1
  689. package/lib/components/base/Section.d.ts.map +0 -1
  690. package/lib/components/base/Wrapper.d.ts.map +0 -1
  691. package/lib/components/base/icons/AngleDown.d.ts.map +0 -1
  692. package/lib/components/base/icons/AngleLeft.d.ts.map +0 -1
  693. package/lib/components/base/icons/AngleRight.d.ts.map +0 -1
  694. package/lib/components/base/icons/AngleUp.d.ts.map +0 -1
  695. package/lib/components/base/icons/ArrowDown.d.ts.map +0 -1
  696. package/lib/components/base/icons/ArrowLeft.d.ts.map +0 -1
  697. package/lib/components/base/icons/ArrowLeftGhost.d.ts.map +0 -1
  698. package/lib/components/base/icons/ArrowLeftRight.d.ts.map +0 -1
  699. package/lib/components/base/icons/ArrowRight.d.ts.map +0 -1
  700. package/lib/components/base/icons/ArrowRightGhost.d.ts.map +0 -1
  701. package/lib/components/base/icons/ArrowUp.d.ts.map +0 -1
  702. package/lib/components/base/icons/BoxArrowUpRight.d.ts.map +0 -1
  703. package/lib/components/base/icons/CalendarToday.d.ts.map +0 -1
  704. package/lib/components/base/icons/Category.d.ts.map +0 -1
  705. package/lib/components/base/icons/Check.d.ts.map +0 -1
  706. package/lib/components/base/icons/Clock.d.ts.map +0 -1
  707. package/lib/components/base/icons/ClockFilled.d.ts.map +0 -1
  708. package/lib/components/base/icons/Computer.d.ts.map +0 -1
  709. package/lib/components/base/icons/Cross.d.ts.map +0 -1
  710. package/lib/components/base/icons/CrossSmall.d.ts.map +0 -1
  711. package/lib/components/base/icons/CurrentLocation.d.ts.map +0 -1
  712. package/lib/components/base/icons/DateRange.d.ts.map +0 -1
  713. package/lib/components/base/icons/DeleteForever.d.ts.map +0 -1
  714. package/lib/components/base/icons/External.d.ts.map +0 -1
  715. package/lib/components/base/icons/Filter.d.ts.map +0 -1
  716. package/lib/components/base/icons/FlyTo.d.ts.map +0 -1
  717. package/lib/components/base/icons/Icons.d.ts +0 -66
  718. package/lib/components/base/icons/Icons.d.ts.map +0 -1
  719. package/lib/components/base/icons/Info.d.ts.map +0 -1
  720. package/lib/components/base/icons/Language.d.ts.map +0 -1
  721. package/lib/components/base/icons/LocationPin.d.ts.map +0 -1
  722. package/lib/components/base/icons/LocationSearch.d.ts.map +0 -1
  723. package/lib/components/base/icons/Magnifier.d.ts.map +0 -1
  724. package/lib/components/base/icons/Mail.d.ts.map +0 -1
  725. package/lib/components/base/icons/Map.d.ts.map +0 -1
  726. package/lib/components/base/icons/MenuBurger.d.ts.map +0 -1
  727. package/lib/components/base/icons/Minus.d.ts.map +0 -1
  728. package/lib/components/base/icons/Money.d.ts.map +0 -1
  729. package/lib/components/base/icons/MyLocation.d.ts.map +0 -1
  730. package/lib/components/base/icons/Person.d.ts.map +0 -1
  731. package/lib/components/base/icons/Phone.d.ts.map +0 -1
  732. package/lib/components/base/icons/Place.d.ts.map +0 -1
  733. package/lib/components/base/icons/Play.d.ts.map +0 -1
  734. package/lib/components/base/icons/Plus.d.ts.map +0 -1
  735. package/lib/components/base/icons/Route.d.ts.map +0 -1
  736. package/lib/components/base/icons/Star.d.ts.map +0 -1
  737. package/lib/components/base/icons/ToggleOff.d.ts.map +0 -1
  738. package/lib/components/base/icons/ToggleOn.d.ts.map +0 -1
  739. package/lib/components/base/icons/UnfoldMore.d.ts.map +0 -1
  740. package/lib/components/base/icons/files/Excel.d.ts.map +0 -1
  741. package/lib/components/base/icons/files/Image.d.ts.map +0 -1
  742. package/lib/components/base/icons/files/Pdf.d.ts.map +0 -1
  743. package/lib/components/base/icons/files/PowerPoint.d.ts.map +0 -1
  744. package/lib/components/base/icons/files/UploadFile.d.ts.map +0 -1
  745. package/lib/components/base/icons/files/Word.d.ts.map +0 -1
  746. package/lib/components/base/icons/files/Zip.d.ts.map +0 -1
  747. package/lib/components/base/icons/socials/Facebook.d.ts.map +0 -1
  748. package/lib/components/base/icons/socials/Instagram.d.ts.map +0 -1
  749. package/lib/components/base/icons/socials/LinkedIn.d.ts.map +0 -1
  750. package/lib/components/base/icons/socials/Twitter.d.ts.map +0 -1
  751. package/lib/components/base/icons/socials/Xing.d.ts.map +0 -1
  752. package/lib/components/base/icons/socials/Youtube.d.ts.map +0 -1
  753. package/lib/components/base/nl2br.d.ts.map +0 -1
  754. package/lib/components/blocks/Actions.d.ts.map +0 -1
  755. package/lib/components/blocks/Alert.d.ts.map +0 -1
  756. package/lib/components/blocks/Bdot.d.ts.map +0 -1
  757. package/lib/components/blocks/CookieConsent.d.ts.map +0 -1
  758. package/lib/components/blocks/EventBlock.d.ts.map +0 -1
  759. package/lib/components/blocks/Fact.d.ts.map +0 -1
  760. package/lib/components/blocks/Feature.d.ts.map +0 -1
  761. package/lib/components/blocks/Image.d.ts.map +0 -1
  762. package/lib/components/blocks/InfoList.d.ts.map +0 -1
  763. package/lib/components/blocks/IntroBlock.d.ts.map +0 -1
  764. package/lib/components/blocks/JobCard.d.ts.map +0 -1
  765. package/lib/components/blocks/LanguageSwitcher.d.ts.map +0 -1
  766. package/lib/components/blocks/NavBlock.d.ts.map +0 -1
  767. package/lib/components/blocks/NewsCard.d.ts.map +0 -1
  768. package/lib/components/blocks/POICard.d.ts.map +0 -1
  769. package/lib/components/blocks/POIFacts.d.ts.map +0 -1
  770. package/lib/components/blocks/PriceTag.d.ts.map +0 -1
  771. package/lib/components/blocks/PromotionCard.d.ts.map +0 -1
  772. package/lib/components/blocks/SocialList.d.ts.map +0 -1
  773. package/lib/components/blocks/TableBlock.d.ts.map +0 -1
  774. package/lib/components/blocks/Tag.d.ts.map +0 -1
  775. package/lib/components/blocks/Title.d.ts.map +0 -1
  776. package/lib/components/blocks/VideoBlock.d.ts.map +0 -1
  777. package/lib/components/blocks/VideoCard.d.ts.map +0 -1
  778. package/lib/components/buttons/Button.d.ts.map +0 -1
  779. package/lib/components/buttons/ButtonGhost.d.ts.map +0 -1
  780. package/lib/components/buttons/Control.d.ts.map +0 -1
  781. package/lib/components/buttons/Pointer.d.ts.map +0 -1
  782. package/lib/components/debug/DebugLines.d.ts.map +0 -1
  783. package/lib/components/examples/hooks/ArrayHookExample.d.ts.map +0 -1
  784. package/lib/components/examples/hooks/IntervalHookExample.d.ts.map +0 -1
  785. package/lib/components/fields/Checkbox.d.ts.map +0 -1
  786. package/lib/components/fields/CompactForm.d.ts.map +0 -1
  787. package/lib/components/fields/Datepicker.d.ts.map +0 -1
  788. package/lib/components/fields/FileUpload.d.ts.map +0 -1
  789. package/lib/components/fields/FilterField.d.ts.map +0 -1
  790. package/lib/components/fields/FormField.d.ts.map +0 -1
  791. package/lib/components/fields/LocationField.d.ts.map +0 -1
  792. package/lib/components/fields/Radio.d.ts.map +0 -1
  793. package/lib/components/fields/SearchInput.d.ts.map +0 -1
  794. package/lib/components/fields/SelectDropdown.d.ts.map +0 -1
  795. package/lib/components/fields/Textarea.d.ts.map +0 -1
  796. package/lib/components/fields/Textfield.d.ts.map +0 -1
  797. package/lib/components/sections/Accordion.d.ts.map +0 -1
  798. package/lib/components/sections/AlertList.d.ts.map +0 -1
  799. package/lib/components/sections/Article.d.ts.map +0 -1
  800. package/lib/components/sections/CallToAction.d.ts.map +0 -1
  801. package/lib/components/sections/CardList.d.ts.map +0 -1
  802. package/lib/components/sections/ComparisonSlider.d.ts.map +0 -1
  803. package/lib/components/sections/CrossPromotion.d.ts.map +0 -1
  804. package/lib/components/sections/FactGrid.d.ts.map +0 -1
  805. package/lib/components/sections/FactList.d.ts.map +0 -1
  806. package/lib/components/sections/FeatureList.d.ts.map +0 -1
  807. package/lib/components/sections/Gallery.d.ts.map +0 -1
  808. package/lib/components/sections/IconList.d.ts.map +0 -1
  809. package/lib/components/sections/IndexList.d.ts.map +0 -1
  810. package/lib/components/sections/Intro.d.ts.map +0 -1
  811. package/lib/components/sections/Map.d.ts.map +0 -1
  812. package/lib/components/sections/NavList.d.ts.map +0 -1
  813. package/lib/components/sections/NewsletterForm.d.ts.map +0 -1
  814. package/lib/components/sections/NumberList.d.ts.map +0 -1
  815. package/lib/components/sections/ParallaxBackground.d.ts.map +0 -1
  816. package/lib/components/sections/Poster.d.ts.map +0 -1
  817. package/lib/components/sections/PriceList.d.ts.map +0 -1
  818. package/lib/components/sections/PriceTable.d.ts.map +0 -1
  819. package/lib/components/sections/Quote.d.ts.map +0 -1
  820. package/lib/components/sections/RawVideo.d.ts.map +0 -1
  821. package/lib/components/sections/SimpleImage.d.ts.map +0 -1
  822. package/lib/components/sections/SocialWall.d.ts.map +0 -1
  823. package/lib/components/sections/Table.d.ts.map +0 -1
  824. package/lib/components/sections/Teaser.d.ts.map +0 -1
  825. package/lib/components/sections/TeaserWide.d.ts.map +0 -1
  826. package/lib/components/sections/Timeline.d.ts.map +0 -1
  827. package/lib/components/sections/Video.d.ts.map +0 -1
  828. package/lib/components/sections/events/EventDetail.d.ts.map +0 -1
  829. package/lib/components/sections/events/EventList.d.ts.map +0 -1
  830. package/lib/components/sections/events/EventOverview.d.ts.map +0 -1
  831. package/lib/components/sections/footer/Footer.d.ts.map +0 -1
  832. package/lib/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -1
  833. package/lib/components/sections/footer/partials/FooterColumn.d.ts.map +0 -1
  834. package/lib/components/sections/footer/partials/index.d.ts.map +0 -1
  835. package/lib/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -1
  836. package/lib/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -1
  837. package/lib/components/sections/footer/skeletons/index.d.ts.map +0 -1
  838. package/lib/components/sections/form/DynamicForm.d.ts.map +0 -1
  839. package/lib/components/sections/form/renderer/areaRenderer.d.ts.map +0 -1
  840. package/lib/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -1
  841. package/lib/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -1
  842. package/lib/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -1
  843. package/lib/components/sections/form/renderer/locationRenderer.d.ts.map +0 -1
  844. package/lib/components/sections/form/renderer/selectRenderer.d.ts.map +0 -1
  845. package/lib/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -1
  846. package/lib/components/sections/form/validators/areaValidator.d.ts.map +0 -1
  847. package/lib/components/sections/form/validators/datepickerValidator.d.ts.map +0 -1
  848. package/lib/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -1
  849. package/lib/components/sections/form/validators/fieldValidator.d.ts.map +0 -1
  850. package/lib/components/sections/form/validators/locationValidator.d.ts.map +0 -1
  851. package/lib/components/sections/form/validators/selectValidator.d.ts.map +0 -1
  852. package/lib/components/sections/form/validators/uploadValidator.d.ts.map +0 -1
  853. package/lib/components/sections/header/Header.d.ts.map +0 -1
  854. package/lib/components/sections/header/HeaderKenBurns.d.ts.map +0 -1
  855. package/lib/components/sections/header/HeaderPoster.d.ts.map +0 -1
  856. package/lib/components/sections/header/HeaderVideo.d.ts.map +0 -1
  857. package/lib/components/sections/jobs/JobArticle.d.ts.map +0 -1
  858. package/lib/components/sections/jobs/JobList.d.ts.map +0 -1
  859. package/lib/components/sections/navigation/NavBar.d.ts.map +0 -1
  860. package/lib/components/sections/navigation/Navigation.d.ts.map +0 -1
  861. package/lib/components/sections/navigation/menu/Menu.d.ts.map +0 -1
  862. package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  863. package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  864. package/lib/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -1
  865. package/lib/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -1
  866. package/lib/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -1
  867. package/lib/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -1
  868. package/lib/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -1
  869. package/lib/components/sections/navigation/partials/index.d.ts.map +0 -1
  870. package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -1
  871. package/lib/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -1
  872. package/lib/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -1
  873. package/lib/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -1
  874. package/lib/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -1
  875. package/lib/components/sections/navigation/skeletons/index.d.ts.map +0 -1
  876. package/lib/components/sections/news/NewsAuthorCard.d.ts.map +0 -1
  877. package/lib/components/sections/news/NewsFooter.d.ts.map +0 -1
  878. package/lib/components/sections/news/NewsImages.d.ts.map +0 -1
  879. package/lib/components/sections/news/NewsIntro.d.ts.map +0 -1
  880. package/lib/components/sections/news/NewsList.d.ts.map +0 -1
  881. package/lib/components/sections/news/NewsOverview.d.ts.map +0 -1
  882. package/lib/components/sections/news/NewsTable.d.ts.map +0 -1
  883. package/lib/components/sections/news/NewsText.d.ts.map +0 -1
  884. package/lib/components/sections/news/NewsVideo.d.ts.map +0 -1
  885. package/lib/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -1
  886. package/lib/components/sections/pois/PointOfInterestMap.d.ts.map +0 -1
  887. package/lib/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -1
  888. package/lib/components/typography/Callout.d.ts.map +0 -1
  889. package/lib/components/typography/Copy.d.ts.map +0 -1
  890. package/lib/components/typography/Heading.d.ts.map +0 -1
  891. package/lib/components/typography/Link.d.ts.map +0 -1
  892. package/lib/index.d.ts +0 -158
  893. package/lib/index.d.ts.map +0 -1
  894. package/lib/index.es.js +0 -2
  895. package/lib/index.es.js.map +0 -1
  896. package/lib/index.js +0 -2
  897. package/lib/index.js.map +0 -1
  898. package/lib/utils/LibThemeProvider.d.ts.map +0 -1
  899. package/lib/utils/arrays.d.ts.map +0 -1
  900. package/lib/utils/backgroundImage.d.ts.map +0 -1
  901. package/lib/utils/clamp.d.ts.map +0 -1
  902. package/lib/utils/concat.d.ts.map +0 -1
  903. package/lib/utils/cookie-consent/cookie.d.ts.map +0 -1
  904. package/lib/utils/cookie-consent/mutations.d.ts.map +0 -1
  905. package/lib/utils/cookie-consent/useCookieConsent.d.ts.map +0 -1
  906. package/lib/utils/dataURI.d.ts.map +0 -1
  907. package/lib/utils/escape.d.ts.map +0 -1
  908. package/lib/utils/filters.d.ts.map +0 -1
  909. package/lib/utils/fontLoading.d.ts.map +0 -1
  910. package/lib/utils/formFieldText.d.ts.map +0 -1
  911. package/lib/utils/getLinkIcon.d.ts.map +0 -1
  912. package/lib/utils/hexRgbConverter.d.ts.map +0 -1
  913. package/lib/utils/menuHooks.d.ts.map +0 -1
  914. package/lib/utils/navigation.d.ts.map +0 -1
  915. package/lib/utils/statusFormatter.d.ts.map +0 -1
  916. package/lib/utils/storyHelpers.d.ts.map +0 -1
  917. package/lib/utils/structuredData.d.ts.map +0 -1
  918. package/lib/utils/styles.d.ts.map +0 -1
  919. package/lib/utils/types.d.ts.map +0 -1
  920. package/lib/utils/urlParams.d.ts.map +0 -1
  921. package/lib/utils/useArray.d.ts.map +0 -1
  922. package/lib/utils/useDebounce.d.ts.map +0 -1
  923. package/lib/utils/useEqualSheetHeight.d.ts.map +0 -1
  924. package/lib/utils/useFontsLoaded.d.ts.map +0 -1
  925. package/lib/utils/useGeolocation.d.ts.map +0 -1
  926. package/lib/utils/useIE.d.ts.map +0 -1
  927. package/lib/utils/useImgPreload.d.ts.map +0 -1
  928. package/lib/utils/useInterval.d.ts.map +0 -1
  929. package/lib/utils/useItemHeight.d.ts.map +0 -1
  930. package/lib/utils/useLazyInput.d.ts.map +0 -1
  931. package/lib/utils/useLeafletMap.d.ts.map +0 -1
  932. package/lib/utils/useMediaQuery.d.ts.map +0 -1
  933. package/lib/utils/useMounted.d.ts.map +0 -1
  934. package/lib/utils/useObserverSupport.d.ts.map +0 -1
  935. package/lib/utils/usePageScroll.d.ts.map +0 -1
  936. package/lib/utils/useParams.d.ts.map +0 -1
  937. package/lib/utils/usePoster.d.ts.map +0 -1
  938. package/lib/utils/usePrevious.d.ts.map +0 -1
  939. package/lib/utils/useResizeThrottle.d.ts.map +0 -1
  940. package/lib/utils/useScroll.d.ts.map +0 -1
  941. package/lib/utils/useScrollIntoView.d.ts.map +0 -1
  942. package/lib/utils/useScrollThrottle.d.ts.map +0 -1
  943. package/lib/utils/useScrollTo.d.ts.map +0 -1
  944. package/lib/utils/useTimeout.d.ts.map +0 -1
  945. package/lib/utils/useTouch.d.ts.map +0 -1
  946. package/lib/utils/useUpdateEffect.d.ts.map +0 -1
@@ -0,0 +1,1663 @@
1
+ import { _ as __assign, a as __makeTemplateObject, G as AngleLeft, s as Cross, H as AngleRight, e as __spreadArray } from './ClockFilled-cff5900e.js';
2
+ import React__default, { useState, useRef, useEffect, useMemo, forwardRef } from 'react';
3
+ import { u as useLibTheme, L as LibThemeProvider } from './LibThemeProvider-17012395.js';
4
+ import { a as useMediaQueries } from './useMediaQuery-07eee3f4.js';
5
+ import { u as useScrollThrottle, a as getCurrentNavPath, g as getCurrentNavItem } from './navigation-e135836f.js';
6
+ import { L as Link } from './Link-42f0b80f.js';
7
+ import styled, { css } from 'styled-components';
8
+ import { i as isValidArray } from './arrays-65b644ef.js';
9
+ import { c as clampValue } from './clamp-12d37b65.js';
10
+ import { m as mq, s as spacings, g as getColors, a as getFonts, w as withRange, c as getGlobals } from './styles-eca3acc8.js';
11
+ import { c as copyStyle, C as Copy } from './Copy-d2be4fb7.js';
12
+ import { I as Image, L as LanguageSwitcher } from './SocialList-385cde53.js';
13
+
14
+ /**
15
+ * Hooks in to menu state to control it with keyboard inputs
16
+ * @param initialMenuState
17
+ * @param settings
18
+ * @returns
19
+ */
20
+
21
+ var useMenuKeyboard = function (initialMenuState, settings) {
22
+ var _a = useState(initialMenuState),
23
+ isMenuOpen = _a[0],
24
+ setIsMenuOpen = _a[1];
25
+
26
+ var prevMenuState = useRef(false);
27
+
28
+ var _b = useState(null),
29
+ root = _b[0],
30
+ setRoot = _b[1];
31
+
32
+ var openBtnRef = useRef(null);
33
+ var closeBtnRef = useRef(null);
34
+
35
+ var defaultSettings = __assign({
36
+ openMenuIdent: 'button[aria-label="open menu"]',
37
+ closeMenuIdent: 'button[aria-label="close menu"]'
38
+ }, settings);
39
+
40
+ useEffect(function () {
41
+ if (!root) return; // setting up menu toggle button refs
42
+
43
+ if (!openBtnRef.current) {
44
+ openBtnRef.current = root.querySelector(defaultSettings.openMenuIdent);
45
+ }
46
+
47
+ if (!closeBtnRef.current) {
48
+ closeBtnRef.current = root.querySelector(defaultSettings.closeMenuIdent);
49
+ }
50
+ }, [defaultSettings.closeMenuIdent, defaultSettings.openMenuIdent, isMenuOpen, root]);
51
+ useEffect(function () {
52
+ var _a, _b;
53
+
54
+ var handleKeyDown = function (ev) {
55
+ if (ev.key === 'Escape' && isMenuOpen) {
56
+ setIsMenuOpen(false);
57
+ }
58
+ }; // settings focus if menu is open
59
+
60
+
61
+ if (isMenuOpen) {
62
+ (_a = closeBtnRef === null || closeBtnRef === void 0 ? void 0 : closeBtnRef.current) === null || _a === void 0 ? void 0 : _a.focus();
63
+ } else if (prevMenuState.current) {
64
+ (_b = openBtnRef === null || openBtnRef === void 0 ? void 0 : openBtnRef.current) === null || _b === void 0 ? void 0 : _b.focus();
65
+ }
66
+
67
+ prevMenuState.current = isMenuOpen;
68
+ window.addEventListener('keydown', handleKeyDown);
69
+ return function () {
70
+ window.removeEventListener('keydown', handleKeyDown);
71
+ };
72
+ }, [isMenuOpen]);
73
+ return {
74
+ setRoot: setRoot,
75
+ isMenuOpen: isMenuOpen,
76
+ setIsMenuOpen: setIsMenuOpen
77
+ };
78
+ };
79
+
80
+ var PageScrollDirection;
81
+
82
+ (function (PageScrollDirection) {
83
+ PageScrollDirection[PageScrollDirection["UP"] = 0] = "UP";
84
+ PageScrollDirection[PageScrollDirection["DOWN"] = 1] = "DOWN";
85
+ })(PageScrollDirection || (PageScrollDirection = {}));
86
+
87
+ var usePageScroll = function (settings) {
88
+ var _a, _b;
89
+
90
+ var _c = useState(true),
91
+ isTop = _c[0],
92
+ setIsTop = _c[1];
93
+
94
+ var _d = useState(true),
95
+ isInOffset = _d[0],
96
+ setIsInOffset = _d[1];
97
+
98
+ var _e = useState(false),
99
+ leftOffsetFromTop = _e[0],
100
+ setLeftOffsetFromTop = _e[1];
101
+
102
+ var lastScrollPos = useRef(0);
103
+ var pxSinceLastSwitch = useRef(0);
104
+
105
+ var _f = useState(PageScrollDirection.DOWN),
106
+ scrollDirection = _f[0],
107
+ setScrollDirection = _f[1];
108
+
109
+ var directionDownOffset = ((_a = settings === null || settings === void 0 ? void 0 : settings.directionOffset) === null || _a === void 0 ? void 0 : _a.down) || 0;
110
+ var directionUpOffset = ((_b = settings === null || settings === void 0 ? void 0 : settings.directionOffset) === null || _b === void 0 ? void 0 : _b.up) || 0; // Throttle scroll event for perfomance
111
+
112
+ var scrollState = useScrollThrottle((settings === null || settings === void 0 ? void 0 : settings.resizeThrottleTimeout) !== undefined ? settings.resizeThrottleTimeout : 200);
113
+ useEffect(function () {
114
+ if (!scrollState) return;
115
+ if (typeof window === 'undefined') return;
116
+ var scrollY = scrollState.scrollY;
117
+ var isTop = scrollY <= 0; // check if page is scroll on top
118
+
119
+ setIsTop(isTop); // check offset
120
+
121
+ if ((settings === null || settings === void 0 ? void 0 : settings.offset) && scrollY <= settings.offset) {
122
+ setIsInOffset(true);
123
+ } else {
124
+ setIsInOffset(function (prev) {
125
+ var _a;
126
+
127
+ if (prev) {
128
+ (_a = settings === null || settings === void 0 ? void 0 : settings.onLeftOffset) === null || _a === void 0 ? void 0 : _a.call(settings, scrollDirection);
129
+ setLeftOffsetFromTop(true);
130
+ }
131
+
132
+ return false;
133
+ });
134
+ }
135
+ /**
136
+ * calculate direction changes
137
+ */
138
+ // get difference between current and last scrollY position
139
+
140
+
141
+ var diff = scrollY - lastScrollPos.current; // get accumulated pixels since last direction change
142
+
143
+ var absAccPx = Math.abs(pxSinceLastSwitch.current); // check if direction changed. if not iterate accumulated pixels value
144
+
145
+ if (diff < 0 && pxSinceLastSwitch.current > 0) {
146
+ pxSinceLastSwitch.current = 0;
147
+ } else if (diff > 0 && pxSinceLastSwitch.current < 0) {
148
+ pxSinceLastSwitch.current = 0;
149
+ } else {
150
+ pxSinceLastSwitch.current += diff;
151
+ } // set current accumulated value
152
+
153
+
154
+ absAccPx = Math.abs(pxSinceLastSwitch.current); // set direction states
155
+
156
+ if (isTop) {
157
+ setScrollDirection(PageScrollDirection.DOWN);
158
+ } else if (diff < 0 && absAccPx >= directionUpOffset) {
159
+ setScrollDirection(PageScrollDirection.UP);
160
+ } else if (diff > 0 && absAccPx >= directionDownOffset) {
161
+ setScrollDirection(PageScrollDirection.DOWN);
162
+ } // save last scroll position
163
+
164
+
165
+ lastScrollPos.current = scrollY;
166
+ }, [directionDownOffset, directionUpOffset, scrollDirection, scrollState, settings]);
167
+ useEffect(function () {
168
+ // reset left offset flag on top
169
+ if (isTop) setLeftOffsetFromTop(false);
170
+ }, [isTop]);
171
+ return {
172
+ isTop: isTop,
173
+ scrollDirection: scrollDirection,
174
+ isInOffset: isInOffset,
175
+ leftOffsetFromTop: leftOffsetFromTop
176
+ };
177
+ };
178
+
179
+ var View$3 = styled.nav.withConfig({
180
+ displayName: "BarBreadCrumbs__View",
181
+ componentId: "sc-bian0m-0"
182
+ })(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n min-width: 0;\n"], ["\n min-width: 0;\n"])));
183
+ var List = styled.ul.withConfig({
184
+ displayName: "BarBreadCrumbs__List",
185
+ componentId: "sc-bian0m-1"
186
+ })(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n min-width: inherit;\n\n & > li:first-child {\n flex: 1 0 auto;\n }\n\n @media ", " {\n & > li + li {\n margin-left: ", "px;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n min-width: inherit;\n\n & > li:first-child {\n flex: 1 0 auto;\n }\n\n @media ", " {\n & > li + li {\n margin-left: ", "px;\n }\n }\n"])), mq.semilarge, spacings.nudge);
187
+ var ListItem = styled.li.withConfig({
188
+ displayName: "BarBreadCrumbs__ListItem",
189
+ componentId: "sc-bian0m-2"
190
+ })(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n display: ", ";\n min-width: inherit;\n\n @media ", " {\n display: flex;\n\n & > * + * {\n margin-left: ", "px;\n }\n }\n"], ["\n display: ", ";\n min-width: inherit;\n\n @media ", " {\n display: flex;\n\n & > * + * {\n margin-left: ", "px;\n }\n }\n"])), function (_a) {
191
+ var isCurrent = _a.isCurrent;
192
+ return isCurrent ? 'flex' : 'none';
193
+ }, mq.semilarge, spacings.nudge);
194
+ var NavLink$1 = styled(Link).withConfig({
195
+ displayName: "BarBreadCrumbs__NavLink",
196
+ componentId: "sc-bian0m-3"
197
+ })(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n display: ", ";\n align-items: center;\n max-width: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ", "\n color: ", ";\n text-decoration: underline;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n @media ", " {\n display: ", ";\n }\n"], ["\n display: ", ";\n align-items: center;\n max-width: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ", "\n color: ", ";\n text-decoration: underline;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n @media ", " {\n display: ", ";\n }\n"])), function (_a) {
198
+ var showOnMobile = _a.showOnMobile;
199
+ return showOnMobile ? 'inline-flex' : 'none';
200
+ }, function (_a) {
201
+ var clamp = _a.clamp;
202
+ return clamp && '120px';
203
+ }, copyStyle('copy', 'small'), function (_a) {
204
+ var theme = _a.theme,
205
+ isInverted = _a.isInverted;
206
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
207
+ }, spacings.nudge, function (_a) {
208
+ var theme = _a.theme,
209
+ isInverted = _a.isInverted;
210
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
211
+ }, mq.semilarge, function (_a) {
212
+ var showOnDesktop = _a.showOnDesktop;
213
+ return showOnDesktop ? 'inline-block' : 'none';
214
+ });
215
+ var NavLabel = styled.span.withConfig({
216
+ displayName: "BarBreadCrumbs__NavLabel",
217
+ componentId: "sc-bian0m-4"
218
+ })(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n display: ", ";\n align-items: center;\n max-width: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ", "\n color: ", ";\n text-decoration: none;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media ", " {\n display: ", ";\n }\n"], ["\n display: ", ";\n align-items: center;\n max-width: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ", "\n color: ", ";\n text-decoration: none;\n\n & > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media ", " {\n display: ", ";\n }\n"])), function (_a) {
219
+ var showOnMobile = _a.showOnMobile;
220
+ return showOnMobile ? 'inline-flex' : 'none';
221
+ }, function (_a) {
222
+ var clamp = _a.clamp;
223
+ return clamp && '120px';
224
+ }, copyStyle('copy', 'small'), function (_a) {
225
+ var theme = _a.theme,
226
+ isInverted = _a.isInverted;
227
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
228
+ }, spacings.nudge, mq.semilarge, function (_a) {
229
+ var showOnDesktop = _a.showOnDesktop;
230
+ return showOnDesktop ? 'inline-block' : 'none';
231
+ });
232
+ var Seperator = styled(Copy).withConfig({
233
+ displayName: "BarBreadCrumbs__Seperator",
234
+ componentId: "sc-bian0m-5"
235
+ })(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n display: none;\n\n transition: color 0.2s ease-in-out;\n\n @media ", " {\n display: inline-block;\n }\n"], ["\n display: none;\n\n transition: color 0.2s ease-in-out;\n\n @media ", " {\n display: inline-block;\n }\n"])), mq.semilarge);
236
+ var BackIconContainer = styled.span.withConfig({
237
+ displayName: "BarBreadCrumbs__BackIconContainer",
238
+ componentId: "sc-bian0m-6"
239
+ })(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n flex: 0 0 auto;\n"], ["\n flex: 0 0 auto;\n"])));
240
+
241
+ var BreadcrumbItem = function (_a) {
242
+ var isInverted = _a.isInverted,
243
+ label = _a.label,
244
+ link = _a.link,
245
+ showOnMobile = _a.showOnMobile,
246
+ showOnDesktop = _a.showOnDesktop,
247
+ children = _a.children;
248
+
249
+ if (link === null || link === void 0 ? void 0 : link.href) {
250
+ return React__default.createElement(NavLink$1, __assign({}, link, {
251
+ isInverted: isInverted,
252
+ showOnMobile: showOnMobile,
253
+ showOnDesktop: showOnDesktop
254
+ }), children || label);
255
+ } else {
256
+ return React__default.createElement(NavLabel, {
257
+ isInverted: isInverted,
258
+ showOnMobile: showOnMobile,
259
+ showOnDesktop: showOnDesktop
260
+ }, children || label);
261
+ }
262
+ };
263
+
264
+ var BarBreadcrumbs = function (_a) {
265
+ var _b = _a.isInverted,
266
+ isInverted = _b === void 0 ? false : _b,
267
+ rootLink = _a.rootLink,
268
+ rootLabel = _a.rootLabel,
269
+ navItems = _a.navItems,
270
+ seperator = _a.seperator,
271
+ back = _a.back,
272
+ className = _a.className;
273
+ var currentNavPath = useMemo(function () {
274
+ return getCurrentNavPath(navItems, (rootLink === null || rootLink === void 0 ? void 0 : rootLink.href) ? [rootLink === null || rootLink === void 0 ? void 0 : rootLink.href] : []);
275
+ }, [navItems, rootLink === null || rootLink === void 0 ? void 0 : rootLink.href]);
276
+ var rootItem = {
277
+ uid: 'root',
278
+ label: rootLabel || 'Home',
279
+ link: rootLink
280
+ };
281
+ return React__default.createElement(View$3, {
282
+ "aria-label": "breadcrumbs",
283
+ className: className
284
+ }, React__default.createElement(List, null, React__default.createElement(ListItem, null, React__default.createElement(BreadcrumbItem, __assign({
285
+ showOnDesktop: true,
286
+ isInverted: isInverted
287
+ }, rootItem))), currentNavPath === null || currentNavPath === void 0 ? void 0 : currentNavPath.map(function (item, i) {
288
+ var isCurrent = i === currentNavPath.length - 1;
289
+ var prev = i - 1 >= 0 ? currentNavPath[i - 1] : rootItem;
290
+ return React__default.createElement(ListItem, {
291
+ key: i,
292
+ isCurrent: isCurrent
293
+ }, React__default.createElement(Seperator, {
294
+ size: "small",
295
+ isInverted: isInverted
296
+ }, seperator ? seperator({
297
+ isInverted: isInverted
298
+ }) : '/'), isCurrent ? React__default.createElement(React__default.Fragment, null, prev && React__default.createElement(BreadcrumbItem, __assign({}, prev, {
299
+ showOnMobile: true,
300
+ isInverted: isInverted
301
+ }), React__default.createElement(BackIconContainer, null, back ? back({
302
+ isInverted: isInverted
303
+ }) : React__default.createElement(AngleLeft, null)), React__default.createElement("span", null, prev.label)), React__default.createElement(BreadcrumbItem, __assign({}, item, {
304
+ link: {},
305
+ showOnDesktop: true,
306
+ isInverted: isInverted
307
+ }))) : React__default.createElement(BreadcrumbItem, __assign({}, item, {
308
+ showOnDesktop: true,
309
+ isInverted: isInverted
310
+ })));
311
+ })));
312
+ };
313
+ var templateObject_1$7, templateObject_2$5, templateObject_3$2, templateObject_4$2, templateObject_5$2, templateObject_6$2, templateObject_7$2;
314
+
315
+ var Column = styled.div.withConfig({
316
+ displayName: "BarColumn__Column",
317
+ componentId: "sc-1sqtyni-0"
318
+ })(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n flex: ", ";\n\n padding: ", "px 0;\n min-width: -webkit-min-content;\n align-self: ", ";\n\n text-align: center;\n color: ", ";\n\n &:first-child {\n text-align: left;\n }\n\n &:last-child {\n text-align: right;\n }\n\n &:not(:first-child):not(:last-child) {\n margin: 0 ", "px;\n }\n"], ["\n flex: ", ";\n\n padding: ", "px 0;\n min-width: -webkit-min-content;\n align-self: ", ";\n\n text-align: center;\n color: ", ";\n\n &:first-child {\n text-align: left;\n }\n\n &:last-child {\n text-align: right;\n }\n\n &:not(:first-child):not(:last-child) {\n margin: 0 ", "px;\n }\n"])), function (_a) {
319
+ var takeSpace = _a.takeSpace;
320
+ return takeSpace ? 1 : undefined;
321
+ }, spacings.nudge, function (_a) {
322
+ var vAlign = _a.vAlign;
323
+
324
+ switch (vAlign) {
325
+ case 'center':
326
+ return 'center';
327
+
328
+ case 'bottom':
329
+ return 'flex-end';
330
+
331
+ case 'top':
332
+ return 'flex-start';
333
+
334
+ default:
335
+ return undefined;
336
+ }
337
+ }, function (_a) {
338
+ var theme = _a.theme,
339
+ isInverted = _a.isInverted;
340
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.inverted;
341
+ }, spacings.nudge * 2);
342
+ var templateObject_1$6;
343
+
344
+ var View$2 = styled(Link).withConfig({
345
+ displayName: "BarLogo__View",
346
+ componentId: "sc-jul8nq-0"
347
+ })(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n display: block;\n display: flex;\n justify-content: center;\n min-width: 60px;\n max-width: 100%;\n max-height: 100%;\n\n &:focus {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"], ["\n display: block;\n display: flex;\n justify-content: center;\n min-width: 60px;\n max-width: 100%;\n max-height: 100%;\n\n &:focus {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"])), function (_a) {
348
+ var theme = _a.theme;
349
+ return getColors(theme).primary.default;
350
+ });
351
+ var Logo = styled(Image).withConfig({
352
+ displayName: "BarLogo__Logo",
353
+ componentId: "sc-jul8nq-1"
354
+ })(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n width: auto;\n height: 100%;\n object-fit: contain;\n"], ["\n width: auto;\n height: 100%;\n object-fit: contain;\n"])));
355
+
356
+ var BarLogo = function (_a) {
357
+ var link = _a.link,
358
+ logo = _a.logo,
359
+ className = _a.className;
360
+ return React__default.createElement(View$2, __assign({}, link, {
361
+ className: className
362
+ }), (logo === null || logo === void 0 ? void 0 : logo.small) && React__default.createElement(Logo, __assign({}, logo, {
363
+ coverSpace: false,
364
+ ratios: undefined,
365
+ showPlaceholder: false
366
+ })));
367
+ };
368
+ var templateObject_1$5, templateObject_2$4;
369
+
370
+ var Toggle = styled.button.withConfig({
371
+ displayName: "BarMenuToggle__Toggle",
372
+ componentId: "sc-5pjose-0"
373
+ })(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n background: transparent;\n border: none;\n color: ", ";\n\n padding: ", "px;\n margin-left: -", "px;\n outline: none;\n\n cursor: pointer;\n\n transition: color 0.2s ease-in-out;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n &:focus > * {\n outline: dotted 2px\n ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n\n &:focus:not(:focus-visible) > * {\n outline: none;\n }\n"], ["\n background: transparent;\n border: none;\n color: ", ";\n\n padding: ", "px;\n margin-left: -", "px;\n outline: none;\n\n cursor: pointer;\n\n transition: color 0.2s ease-in-out;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n\n &:focus > * {\n outline: dotted 2px\n ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n\n &:focus:not(:focus-visible) > * {\n outline: none;\n }\n"])), function (_a) {
374
+ var isInverted = _a.isInverted,
375
+ theme = _a.theme;
376
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
377
+ }, spacings.nudge, spacings.nudge, function (_a) {
378
+ var theme = _a.theme,
379
+ isInverted = _a.isInverted;
380
+ return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
381
+ }, function (_a) {
382
+ var theme = _a.theme,
383
+ isInverted = _a.isInverted;
384
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
385
+ }, function (_a) {
386
+ var theme = _a.theme,
387
+ isInverted = _a.isInverted;
388
+ return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
389
+ });
390
+
391
+ var BarMenuToggle = function (_a) {
392
+ var isInverted = _a.isInverted,
393
+ _b = _a.isExpanded,
394
+ isExpanded = _b === void 0 ? false : _b,
395
+ onClick = _a.onClick,
396
+ children = _a.children,
397
+ className = _a.className;
398
+ return React__default.createElement(Toggle, {
399
+ isInverted: isInverted,
400
+ "aria-expanded": isExpanded,
401
+ "aria-label": isExpanded ? 'close menu' : 'open menu',
402
+ "aria-haspopup": "true",
403
+ "aria-controls": "mainMenu",
404
+ onClick: onClick,
405
+ className: className
406
+ }, children);
407
+ };
408
+ var templateObject_1$4;
409
+
410
+ var View$1 = styled.nav.withConfig({
411
+ displayName: "BarNavList__View",
412
+ componentId: "sc-1r50tdm-0"
413
+ })(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n\n margin: 0 -", "px;\n\n & > * + * {\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 3px;\n left: 0;\n height: 1em;\n width: 2px;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n }\n }\n"], ["\n display: inline-flex;\n align-items: center;\n\n margin: 0 -", "px;\n\n & > * + * {\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 3px;\n left: 0;\n height: 1em;\n width: 2px;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n }\n }\n"])), spacings.nudge, function (_a) {
414
+ var isInverted = _a.isInverted,
415
+ theme = _a.theme;
416
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
417
+ });
418
+ var NavLink = styled(Link).withConfig({
419
+ displayName: "BarNavList__NavLink",
420
+ componentId: "sc-1r50tdm-1"
421
+ })(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n padding: 0 ", "px;\n\n ", "\n font-weight: ", ";\n\n color: ", ";\n text-decoration: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"], ["\n display: inline-block;\n position: relative;\n padding: 0 ", "px;\n\n ", "\n font-weight: ", ";\n\n color: ", ";\n text-decoration: none;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), spacings.nudge, copyStyle('copy', 'medium'), function (_a) {
422
+ var isActive = _a.isActive;
423
+ return isActive && '700';
424
+ }, function (_a) {
425
+ var isInverted = _a.isInverted,
426
+ theme = _a.theme;
427
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
428
+ }, function (_a) {
429
+ var isInverted = _a.isInverted,
430
+ theme = _a.theme;
431
+ return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
432
+ });
433
+
434
+ var BarNavList = function (_a) {
435
+ var isInverted = _a.isInverted,
436
+ navLinks = _a.navLinks,
437
+ className = _a.className;
438
+ return React__default.createElement(View$1, {
439
+ isInverted: isInverted,
440
+ className: className
441
+ }, navLinks === null || navLinks === void 0 ? void 0 : navLinks.map(function (item, i) {
442
+ return React__default.createElement(NavLink, __assign({
443
+ key: i
444
+ }, item.link, {
445
+ isInverted: isInverted,
446
+ isActive: item.isCurrent
447
+ }), item.label);
448
+ }));
449
+ };
450
+ var templateObject_1$3, templateObject_2$3;
451
+
452
+ var Header$2 = styled.div.withConfig({
453
+ displayName: "MenuHeader__Header",
454
+ componentId: "sc-1tk7hrl-0"
455
+ })(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n padding: 0 ", "px;\n padding-top: ", "px;\n"], ["\n display: flex;\n align-items: center;\n\n padding: 0 ", "px;\n padding-top: ", "px;\n"])), spacings.nudge * 2, spacings.nudge * 5);
456
+ var LanguageCol = styled.div.withConfig({
457
+ displayName: "MenuHeader__LanguageCol",
458
+ componentId: "sc-1tk7hrl-1"
459
+ })(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: block;\n margin-left: ", "px;\n margin-top: 2px;\n"], ["\n display: block;\n margin-left: ", "px;\n margin-top: 2px;\n"])), spacings.nudge * 3);
460
+
461
+ var MenuHeader = function (_a) {
462
+ var isInverted = _a.isInverted,
463
+ customToggle = _a.customToggle,
464
+ menuStates = _a.menuStates,
465
+ langs = _a.langs,
466
+ action = _a.action;
467
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Header$2, null, React__default.createElement(BarMenuToggle, {
468
+ isInverted: isInverted,
469
+ isExpanded: true,
470
+ onClick: menuStates === null || menuStates === void 0 ? void 0 : menuStates.closeMenu
471
+ }, customToggle ? customToggle({
472
+ isInverted: isInverted
473
+ }) : React__default.createElement(Cross, {
474
+ ariaHidden: true
475
+ })), isValidArray(langs, false) && React__default.createElement(LanguageCol, null, React__default.createElement(LanguageSwitcher, {
476
+ isInverted: isInverted,
477
+ langs: langs
478
+ })), action && action(__assign({
479
+ isInverted: isInverted
480
+ }, menuStates))));
481
+ };
482
+ var templateObject_1$2, templateObject_2$2;
483
+
484
+ var navigationStyle = function (type) {
485
+ return css(templateObject_1$1 || (templateObject_1$1 = __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) {
486
+ var theme = _a.theme;
487
+ return getFonts(theme).navigation[type].family;
488
+ }, function (_a) {
489
+ var theme = _a.theme;
490
+ return getFonts(theme).navigation[type].weight;
491
+ }, function (_a) {
492
+ var theme = _a.theme;
493
+ return getFonts(theme).navigation[type].style;
494
+ }, function (_a) {
495
+ var theme = _a.theme;
496
+ return withRange(getFonts(theme).navigation[type].size, 'font-size');
497
+ }, function (_a) {
498
+ var theme = _a.theme;
499
+ return getFonts(theme).navigation[type].lineHeight;
500
+ }, function (_a) {
501
+ var theme = _a.theme;
502
+ return getFonts(theme).navigation[type].letterSpacing;
503
+ }, function (_a) {
504
+ var theme = _a.theme;
505
+ return getFonts(theme).navigation[type].textTransform;
506
+ }, function (_a) {
507
+ var theme = _a.theme;
508
+ return getFonts(theme).navigation[type].textDecoration;
509
+ });
510
+ };
511
+
512
+ var Backdrop = styled.div.withConfig({
513
+ displayName: "MenuFlyout__Backdrop",
514
+ componentId: "sc-19pnt0u-0"
515
+ })(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: ", ";\n pointer-events: ", ";\n z-index: 101;\n\n transition: opacity 0.3s ease-in-out;\n\n @supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {\n backdrop-filter: ", ";\n }\n"], ["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: ", ";\n pointer-events: ", ";\n z-index: 101;\n\n transition: opacity 0.3s ease-in-out;\n\n @supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {\n backdrop-filter: ", ";\n }\n"])), function (_a) {
516
+ var isOpen = _a.isOpen;
517
+ return isOpen ? 1 : 0;
518
+ }, function (_a) {
519
+ var isOpen = _a.isOpen;
520
+ return isOpen ? 'all' : 'none';
521
+ }, function (_a) {
522
+ var filter = _a.filter;
523
+ return filter;
524
+ });
525
+ var Stage = styled.div.withConfig({
526
+ displayName: "MenuFlyout__Stage",
527
+ componentId: "sc-19pnt0u-1"
528
+ })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: ", ";\n height: 100vh;\n width: 100vw;\n max-width: ", "px;\n pointer-events: none;\n\n z-index: 102;\n\n transform: translate(", ", 0px);\n\n transition: transform 0.4s ease-in-out, left 0.4s ease-in-out;\n will-change: transform;\n"], ["\n position: fixed;\n top: 0;\n left: ", ";\n height: 100vh;\n width: 100vw;\n max-width: ", "px;\n pointer-events: none;\n\n z-index: 102;\n\n transform: translate(", ", 0px);\n\n transition: transform 0.4s ease-in-out, left 0.4s ease-in-out;\n will-change: transform;\n"])), function (_a) {
529
+ var isOpen = _a.isOpen;
530
+ return isOpen ? '50%' : '0px';
531
+ }, function (_a) {
532
+ var clampWidth = _a.clampWidth;
533
+ return clampWidth === 'content' ? spacings.wrapper : spacings.wrapperLarge;
534
+ }, function (_a) {
535
+ var isOpen = _a.isOpen;
536
+ return isOpen ? '-50%' : '-100%';
537
+ });
538
+ var Flyout = styled.div.withConfig({
539
+ displayName: "MenuFlyout__Flyout",
540
+ componentId: "sc-19pnt0u-2"
541
+ })(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n visibility: visible;\n\n position: relative;\n width: 100%;\n height: 100%;\n background-color: ", ";\n\n pointer-events: ", ";\n\n /** Animation to disable keyboard tabbing if flyout is closed */\n animation: ", ";\n\n @media ", " {\n width: 384px;\n }\n\n @media ", " {\n width: 460px;\n }\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 2px;\n height: 100%;\n width: 40vw;\n background-color: ", ";\n z-index: -1;\n\n transform: translateX(-100%);\n }\n\n @keyframes hideAnim {\n to {\n visibility: hidden;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n visibility: visible;\n\n position: relative;\n width: 100%;\n height: 100%;\n background-color: ", ";\n\n pointer-events: ", ";\n\n /** Animation to disable keyboard tabbing if flyout is closed */\n animation: ", ";\n\n @media ", " {\n width: 384px;\n }\n\n @media ", " {\n width: 460px;\n }\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n left: 2px;\n height: 100%;\n width: 40vw;\n background-color: ", ";\n z-index: -1;\n\n transform: translateX(-100%);\n }\n\n @keyframes hideAnim {\n to {\n visibility: hidden;\n }\n }\n"])), function (_a) {
542
+ var theme = _a.theme;
543
+ return getColors(theme).elementBg.light;
544
+ }, function (_a) {
545
+ var isOpen = _a.isOpen;
546
+ return isOpen ? 'all' : 'none';
547
+ }, function (_a) {
548
+ var isOpen = _a.isOpen;
549
+ return !isOpen && 'hideAnim 0s ease-in 2s forwards';
550
+ }, mq.medium, mq.large, function (_a) {
551
+ var theme = _a.theme;
552
+ return getColors(theme).elementBg.light;
553
+ });
554
+ var getMenuHeaderHeights = function (theme, size) {
555
+ var heights = size === 'large' ? getGlobals(theme).navigation.menu.headerHeight.large : getGlobals(theme).navigation.menu.headerHeight.small; // if second value is not defined use first array index value for both
556
+
557
+ return [clampValue(heights[0], 0), clampValue((heights === null || heights === void 0 ? void 0 : heights[1]) === undefined ? heights[0] : heights[1], 0)];
558
+ };
559
+ var hasMenuHeader = function (theme) {
560
+ var largeHeights = getMenuHeaderHeights(theme, 'large');
561
+ var smallHeights = getMenuHeaderHeights(theme, 'small');
562
+ return largeHeights[0] > 0 || largeHeights[1] > 0 || smallHeights[0] > 0 || smallHeights[1] > 0;
563
+ };
564
+ var Header$1 = styled.div.withConfig({
565
+ displayName: "MenuFlyout__Header",
566
+ componentId: "sc-19pnt0u-3"
567
+ })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n flex: 0 0\n ", "px;\n height: ", "px;\n\n @media ", " {\n height: ", "px;\n flex: 0 0\n ", "px;\n }\n"], ["\n flex: 0 0\n ", "px;\n height: ", "px;\n\n @media ", " {\n height: ", "px;\n flex: 0 0\n ", "px;\n }\n"])), function (_a) {
568
+ var theme = _a.theme,
569
+ navBarSize = _a.navBarSize;
570
+ return getMenuHeaderHeights(theme, navBarSize)[0];
571
+ }, function (_a) {
572
+ var theme = _a.theme,
573
+ navBarSize = _a.navBarSize;
574
+ return getMenuHeaderHeights(theme, navBarSize)[0];
575
+ }, mq.semilarge, function (_a) {
576
+ var theme = _a.theme,
577
+ navBarSize = _a.navBarSize;
578
+ return getMenuHeaderHeights(theme, navBarSize)[1];
579
+ }, function (_a) {
580
+ var theme = _a.theme,
581
+ navBarSize = _a.navBarSize;
582
+ return getMenuHeaderHeights(theme, navBarSize)[1];
583
+ });
584
+ var ScrollContainer = styled.div.withConfig({
585
+ displayName: "MenuFlyout__ScrollContainer",
586
+ componentId: "sc-19pnt0u-4"
587
+ })(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n display: block;\n max-height: 100%;\n min-height: 0;\n"], ["\n display: block;\n max-height: 100%;\n min-height: 0;\n"])));
588
+ var ScrollArea = styled.div.withConfig({
589
+ displayName: "MenuFlyout__ScrollArea",
590
+ componentId: "sc-19pnt0u-5"
591
+ })(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n display: block;\n width: 100vw;\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n\n &::-webkit-scrollbar {\n display: none; /* for Chrome, Safari, and Opera */\n }\n\n & > *:last-child {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n max-width: 100%;\n }\n"], ["\n display: block;\n width: 100vw;\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n\n &::-webkit-scrollbar {\n display: none; /* for Chrome, Safari, and Opera */\n }\n\n & > *:last-child {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n max-width: 100%;\n }\n"])), spacings.nudge * 10, mq.medium); //#region NAVIGATION
592
+ //#region NAVIGATION.Containers
593
+
594
+ var NavView = styled.nav.withConfig({
595
+ displayName: "MenuFlyout__NavView",
596
+ componentId: "sc-19pnt0u-6"
597
+ })(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject([""], [""])));
598
+
599
+ var Navigation$1 = function (_a) {
600
+ var children = _a.children;
601
+ return React__default.createElement(NavView, {
602
+ "aria-label": "menu"
603
+ }, children);
604
+ };
605
+
606
+ var NavList = styled.ul.withConfig({
607
+ displayName: "MenuFlyout__NavList",
608
+ componentId: "sc-19pnt0u-7"
609
+ })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n list-style: none;\n margin: ", "px 0;\n\n border-bottom: ", ";\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n margin: ", "px 0;\n\n border-bottom: ", ";\n"])), spacings.nudge * 2, function (_a) {
610
+ var hasNonFeaturedItems = _a.hasNonFeaturedItems,
611
+ theme = _a.theme;
612
+ return hasNonFeaturedItems && "solid 2px ".concat(getColors(theme).elementBg.medium);
613
+ }); // #endregion
614
+ // #region NAVIGATION.NavItem
615
+
616
+ var NavItemView = styled.li.withConfig({
617
+ displayName: "MenuFlyout__NavItemView",
618
+ componentId: "sc-19pnt0u-8"
619
+ })(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n flex: 0 0 80px;\n\n height: 100%;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n\n li + &:not([data-featured='true']) {\n border-top: solid 2px ", ";\n }\n\n li[data-featured='true'] + &:not([data-featured='true']) {\n margin-top: ", "px;\n }\n\n &:not([data-featured='true']):first-child {\n border-top: solid 2px ", ";\n }\n\n @media ", " {\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background-color: ", ";\n }\n }\n"], ["\n flex: 0 0 80px;\n\n height: 100%;\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n\n li + &:not([data-featured='true']) {\n border-top: solid 2px ", ";\n }\n\n li[data-featured='true'] + &:not([data-featured='true']) {\n margin-top: ", "px;\n }\n\n &:not([data-featured='true']):first-child {\n border-top: solid 2px ", ";\n }\n\n @media ", " {\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background-color: ", ";\n }\n }\n"])), function (_a) {
620
+ var theme = _a.theme,
621
+ isActive = _a.isActive;
622
+ return isActive ? getColors(theme).elementBg.medium : getColors(theme).elementBg.light;
623
+ }, function (_a) {
624
+ var theme = _a.theme;
625
+ return getColors(theme).elementBg.medium;
626
+ }, spacings.spacer, function (_a) {
627
+ var theme = _a.theme;
628
+ return getColors(theme).elementBg.medium;
629
+ }, mq.semilarge, function (_a) {
630
+ var theme = _a.theme;
631
+ return getColors(theme).elementBg.medium;
632
+ });
633
+ var NavItemContent = styled.span.withConfig({
634
+ displayName: "MenuFlyout__NavItemContent",
635
+ componentId: "sc-19pnt0u-9"
636
+ })(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\n min-height: 80px;\n\n padding: 0 ", "px;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n"], ["\n display: flex;\n align-items: center;\n position: relative;\n min-height: 80px;\n\n padding: 0 ", "px;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n"])), spacings.nudge * 2, function (_a) {
637
+ var isFeatured = _a.isFeatured;
638
+ return navigationStyle(isFeatured ? 'featured' : 'main');
639
+ }, function (_a) {
640
+ var theme = _a.theme,
641
+ isFeatured = _a.isFeatured;
642
+ return isFeatured ? getFonts(theme).navigation.featured.color : getFonts(theme).navigation.main.color;
643
+ }, function (_a) {
644
+ var isCurrent = _a.isCurrent;
645
+ return isCurrent ? 'underline' : 'none';
646
+ });
647
+ var NavItemIcon = styled.span.withConfig({
648
+ displayName: "MenuFlyout__NavItemIcon",
649
+ componentId: "sc-19pnt0u-10"
650
+ })(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: 48px;\n max-width: 48px;\n\n * {\n width: 100%;\n max-width: 48px;\n max-height: 80px;\n }\n"], ["\n display: flex;\n align-items: center;\n width: 48px;\n max-width: 48px;\n\n * {\n width: 100%;\n max-width: 48px;\n max-height: 80px;\n }\n"])));
651
+ var NavItemLabel = styled.span.withConfig({
652
+ displayName: "MenuFlyout__NavItemLabel",
653
+ componentId: "sc-19pnt0u-11"
654
+ })(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &:not(:first-child) {\n margin-left: ", "px;\n }\n"], ["\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &:not(:first-child) {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2);
655
+ var NavItemCollapse = styled.span.withConfig({
656
+ displayName: "MenuFlyout__NavItemCollapse",
657
+ componentId: "sc-19pnt0u-12"
658
+ })(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: block;\n margin-left: auto;\n padding-left: ", "px;\n"], ["\n display: block;\n margin-left: auto;\n padding-left: ", "px;\n"])), spacings.nudge * 3);
659
+ var NavItemCollapseIcon = styled(AngleRight).withConfig({
660
+ displayName: "MenuFlyout__NavItemCollapseIcon",
661
+ componentId: "sc-19pnt0u-13"
662
+ })(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n transform: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n @media ", " {\n transform: rotate(0deg);\n }\n"], ["\n transform: ", ";\n\n transition: transform 0.2s ease-in-out;\n\n @media ", " {\n transform: rotate(0deg);\n }\n"])), function (_a) {
663
+ var isCollapsed = _a.isCollapsed;
664
+ return !isCollapsed && 'rotate(90deg)';
665
+ }, mq.semilarge);
666
+ var NavItemLink = styled(Link).withConfig({
667
+ displayName: "MenuFlyout__NavItemLink",
668
+ componentId: "sc-19pnt0u-14"
669
+ })(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n &:focus {\n outline: solid 2px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"], ["\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n &:focus {\n outline: solid 2px\n ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"])), function (_a) {
670
+ var theme = _a.theme,
671
+ isInverted = _a.isInverted;
672
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
673
+ });
674
+ var NavItemButton = styled.button.withConfig({
675
+ displayName: "MenuFlyout__NavItemButton",
676
+ componentId: "sc-19pnt0u-15"
677
+ })(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background: none;\n border: none;\n border-bottom: solid 2px ", ";\n width: 100%;\n cursor: pointer;\n outline: none;\n border-radius: 0px;\n\n &:focus {\n outline: solid 2px ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"], ["\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background: none;\n border: none;\n border-bottom: solid 2px ", ";\n width: 100%;\n cursor: pointer;\n outline: none;\n border-radius: 0px;\n\n &:focus {\n outline: solid 2px ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_a) {
678
+ var theme = _a.theme;
679
+ return getColors(theme).elementBg.light;
680
+ }, function (_a) {
681
+ var theme = _a.theme;
682
+ return getColors(theme).primary.default;
683
+ }, mq.semilarge);
684
+ var SubNavList = styled.ul.withConfig({
685
+ displayName: "MenuFlyout__SubNavList",
686
+ componentId: "sc-19pnt0u-16"
687
+ })(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: ", ";\n position: relative;\n margin: 0;\n padding: 0;\n padding-left: ", "px;\n padding-right: ", "px;\n list-style: none;\n\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n\n &::-webkit-scrollbar {\n display: none; /* for Chrome, Safari, and Opera */\n }\n\n background-color: ", ";\n\n @media ", " {\n position: absolute;\n top: 0;\n left: calc(100% - 1px);\n width: 100vw;\n height: 100%;\n max-width: 384px;\n padding-left: ", "px;\n }\n"], ["\n display: ", ";\n position: relative;\n margin: 0;\n padding: 0;\n padding-left: ", "px;\n padding-right: ", "px;\n list-style: none;\n\n max-height: 100%;\n overflow: auto;\n -ms-overflow-style: none; /* for Internet Explorer, Edge */\n scrollbar-width: none; /* for Firefox */\n overflow-y: scroll;\n\n &::-webkit-scrollbar {\n display: none; /* for Chrome, Safari, and Opera */\n }\n\n background-color: ", ";\n\n @media ", " {\n position: absolute;\n top: 0;\n left: calc(100% - 1px);\n width: 100vw;\n height: 100%;\n max-width: 384px;\n padding-left: ", "px;\n }\n"])), function (_a) {
688
+ var isActive = _a.isActive;
689
+ return !isActive && 'none';
690
+ }, function (_a) {
691
+ var isIndented = _a.isIndented;
692
+ return isIndented ? 48 + spacings.nudge * 4 : spacings.nudge * 2;
693
+ }, spacings.nudge * 2, function (_a) {
694
+ var theme = _a.theme;
695
+ return getColors(theme).elementBg.medium;
696
+ }, mq.semilarge, spacings.nudge * 3);
697
+ var NavigationItem = forwardRef(function (_a, ref) {
698
+ var isCurrent = _a.isCurrent,
699
+ isActive = _a.isActive,
700
+ isFeatured = _a.isFeatured,
701
+ label = _a.label,
702
+ link = _a.link,
703
+ icon = _a.icon,
704
+ subNavTitle = _a.subNavTitle,
705
+ navBarSize = _a.navBarSize,
706
+ onItemClick = _a.onItemClick,
707
+ collapseIcon = _a.collapseIcon,
708
+ canFocus = _a.canFocus,
709
+ children = _a.children;
710
+ var hasSubItems = !!children && React__default.Children.count(children) > 0;
711
+ return React__default.createElement(NavItemView, {
712
+ ref: ref,
713
+ isActive: isActive,
714
+ "data-featured": isFeatured
715
+ }, React__default.createElement(NavItemContent, {
716
+ isCurrent: isCurrent,
717
+ isFeatured: isFeatured
718
+ }, icon && React__default.createElement(NavItemIcon, null, icon), label && React__default.createElement(NavItemLabel, null, label), hasSubItems && React__default.createElement(NavItemCollapse, null, collapseIcon ? collapseIcon({
719
+ isCollapsed: !isActive
720
+ }) : React__default.createElement(NavItemCollapseIcon, {
721
+ ariaHidden: true,
722
+ isCollapsed: !isActive
723
+ })), !hasSubItems && (link === null || link === void 0 ? void 0 : link.href) && React__default.createElement(NavItemLink, __assign({}, link, {
724
+ ariaLabel: label,
725
+ tabIndex: !canFocus ? -1 : undefined
726
+ })), hasSubItems && React__default.createElement(React__default.Fragment, null, React__default.createElement(NavItemButton, {
727
+ "aria-label": label,
728
+ "aria-expanded": isActive,
729
+ onClick: onItemClick,
730
+ tabIndex: !canFocus ? -1 : undefined
731
+ }))), hasSubItems && React__default.createElement(SubNavList, {
732
+ isActive: isActive,
733
+ isIndented: !!icon
734
+ }, (link === null || link === void 0 ? void 0 : link.href) && React__default.createElement(MenuNav.SubItem, {
735
+ key: "overview",
736
+ link: link,
737
+ label: subNavTitle || 'Overview',
738
+ navBarSize: navBarSize,
739
+ canFocus: canFocus
740
+ }), children));
741
+ });
742
+ NavigationItem.displayName = 'NavigationItem'; //#endregion NAVIGATION.NavItem
743
+ //#region NAVIGATION.SubNavItem
744
+
745
+ var SubNavItem = styled.li.withConfig({
746
+ displayName: "MenuFlyout__SubNavItem",
747
+ componentId: "sc-19pnt0u-17"
748
+ })(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n height: 56px;\n\n ", "\n color: ", ";\n\n @media ", " {\n &:first-child {\n margin-top: ", "px;\n }\n\n &:last-child {\n margin-bottom: ", "px;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n height: 56px;\n\n ", "\n color: ", ";\n\n @media ", " {\n &:first-child {\n margin-top: ", "px;\n }\n\n &:last-child {\n margin-bottom: ", "px;\n }\n }\n"])), navigationStyle('main'), function (_a) {
749
+ var theme = _a.theme;
750
+ return getFonts(theme).navigation.sub.color;
751
+ }, mq.semilarge, function (_a) {
752
+ var theme = _a.theme,
753
+ navBarSize = _a.navBarSize;
754
+ return getMenuHeaderHeights(theme, navBarSize)[1] + spacings.nudge * 2;
755
+ }, spacings.spacer);
756
+ var SubNavLink = styled(Link).withConfig({
757
+ displayName: "MenuFlyout__SubNavLink",
758
+ componentId: "sc-19pnt0u-18"
759
+ })(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n /* width: 100%; */\n padding: ", "px 0;\n outline-color: ", ";\n vertical-align: middle;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n & > * {\n margin: 2px;\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus > * {\n outline: dashed 1px\n ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) > * {\n outline: none;\n }\n"], ["\n /* width: 100%; */\n padding: ", "px 0;\n outline-color: ", ";\n vertical-align: middle;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n & > * {\n margin: 2px;\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus > * {\n outline: dashed 1px\n ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) > * {\n outline: none;\n }\n"])), spacings.nudge, function (_a) {
760
+ var theme = _a.theme;
761
+ return getColors(theme).primary.default;
762
+ }, navigationStyle('sub'), function (_a) {
763
+ var theme = _a.theme;
764
+ return getFonts(theme).navigation.sub.color;
765
+ }, function (_a) {
766
+ var isCurrent = _a.isCurrent;
767
+ return isCurrent ? 'underline' : 'none';
768
+ }, function (_a) {
769
+ var theme = _a.theme,
770
+ isInverted = _a.isInverted;
771
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
772
+ });
773
+ var NavigationSubItem = forwardRef(function (_a, ref) {
774
+ var isCurrent = _a.isCurrent,
775
+ label = _a.label,
776
+ link = _a.link,
777
+ navBarSize = _a.navBarSize,
778
+ canFocus = _a.canFocus;
779
+ return React__default.createElement(SubNavItem, {
780
+ ref: ref,
781
+ navBarSize: navBarSize
782
+ }, React__default.createElement(SubNavLink, __assign({
783
+ tabIndex: !canFocus ? -1 : undefined,
784
+ isCurrent: isCurrent
785
+ }, link), React__default.createElement("span", null, label)));
786
+ });
787
+ NavigationSubItem.displayName = 'NavigationSubItem'; //#endregion
788
+ //#region NAVIGATION.SecondaryNavigation
789
+
790
+ var SecondaryNavList = styled.ul.withConfig({
791
+ displayName: "MenuFlyout__SecondaryNavList",
792
+ componentId: "sc-19pnt0u-19"
793
+ })(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n display: block;\n list-style: none;\n padding: 0 ", "px;\n margin: ", "px 0;\n\n li {\n display: flex;\n margin: 0;\n padding: 0;\n }\n"], ["\n display: block;\n list-style: none;\n padding: 0 ", "px;\n margin: ", "px 0;\n\n li {\n display: flex;\n margin: 0;\n padding: 0;\n }\n"])), spacings.nudge * 2, spacings.spacer);
794
+ var SecondaryNavLink = styled(Link).withConfig({
795
+ displayName: "MenuFlyout__SecondaryNavLink",
796
+ componentId: "sc-19pnt0u-20"
797
+ })(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: inline-block;\n padding: ", "px 0;\n outline-color: ", ";\n vertical-align: middle;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &:focus {\n outline: dashed 2px\n ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"], ["\n display: inline-block;\n padding: ", "px 0;\n outline-color: ", ";\n vertical-align: middle;\n\n ", "\n color: ", ";\n text-decoration: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n &:focus {\n outline: dashed 2px\n ", ";\n outline-offset: 1px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"])), spacings.nudge * 0.5, function (_a) {
798
+ var theme = _a.theme;
799
+ return getColors(theme).primary.default;
800
+ }, navigationStyle('secondary'), function (_a) {
801
+ var theme = _a.theme;
802
+ return getFonts(theme).navigation.secondary.color;
803
+ }, function (_a) {
804
+ var isCurrent = _a.isCurrent;
805
+ return isCurrent ? 'underline' : 'none';
806
+ }, function (_a) {
807
+ var theme = _a.theme,
808
+ isInverted = _a.isInverted;
809
+ return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
810
+ });
811
+
812
+ var SecondaryNavigation = function (_a) {
813
+ var items = _a.items,
814
+ canFocus = _a.canFocus;
815
+ return items && items.length > 0 ? React__default.createElement(SecondaryNavList, null, items === null || items === void 0 ? void 0 : items.filter(function (n) {
816
+ var _a;
817
+
818
+ return (_a = n.link) === null || _a === void 0 ? void 0 : _a.href;
819
+ }).map(function (item, i) {
820
+ var _a;
821
+
822
+ return React__default.createElement("li", {
823
+ key: i
824
+ }, React__default.createElement(SecondaryNavLink, {
825
+ isCurrent: item.isCurrent,
826
+ href: (_a = item.link) === null || _a === void 0 ? void 0 : _a.href,
827
+ tabIndex: !canFocus ? -1 : undefined
828
+ }, item.label));
829
+ })) : null;
830
+ }; //#endregion
831
+
832
+
833
+ var MenuNav = {
834
+ View: Navigation$1,
835
+ List: NavList,
836
+ Item: NavigationItem,
837
+ SubItem: NavigationSubItem,
838
+ SubList: SecondaryNavigation
839
+ };
840
+
841
+ var menuFilter = function (item) {
842
+ return !item.hideFromMenu && item.uid && item.label;
843
+ };
844
+
845
+ var MenuFlyout = function (_a) {
846
+ var isOpen = _a.isOpen,
847
+ clampWidth = _a.clampWidth,
848
+ isIndexPage = _a.isIndexPage,
849
+ mainNavigation = _a.mainNavigation,
850
+ subNavigation = _a.subNavigation,
851
+ navBarSize = _a.navBarSize,
852
+ subNavTitle = _a.subNavTitle,
853
+ _b = _a.backdropFilter,
854
+ backdropFilter = _b === void 0 ? 'grayscale(1)' : _b,
855
+ header = _a.header,
856
+ footer = _a.footer,
857
+ onClose = _a.onClose,
858
+ collapseIcon = _a.collapseIcon,
859
+ navItemsHeader = _a.navItemsHeader;
860
+ var theme = useLibTheme().theme;
861
+ var flyoutRef = useRef(null);
862
+ var hasHeader = useMemo(function () {
863
+ return hasMenuHeader(theme);
864
+ }, [theme]);
865
+ var mainList = useMemo(function () {
866
+ var featured = (mainNavigation === null || mainNavigation === void 0 ? void 0 : mainNavigation.filter(function (n) {
867
+ return n.isFeatured;
868
+ })) || [];
869
+ var main = (mainNavigation === null || mainNavigation === void 0 ? void 0 : mainNavigation.filter(function (n) {
870
+ return !n.isFeatured;
871
+ })) || [];
872
+ return __spreadArray(__spreadArray([], featured, true), main, true).filter(menuFilter);
873
+ }, [mainNavigation]);
874
+ var hasNonFeaturedItems = useMemo(function () {
875
+ var main = (mainNavigation === null || mainNavigation === void 0 ? void 0 : mainNavigation.filter(function (n) {
876
+ return !n.isFeatured;
877
+ })) || [];
878
+ return main && main.length > 0;
879
+ }, [mainNavigation]);
880
+ var subList = useMemo(function () {
881
+ return subNavigation === null || subNavigation === void 0 ? void 0 : subNavigation.filter(menuFilter);
882
+ }, [subNavigation]);
883
+
884
+ var _c = useState(function () {
885
+ var _a, _b;
886
+
887
+ var initial = (_b = (_a = getCurrentNavItem(mainList, true)) === null || _a === void 0 ? void 0 : _a.root) === null || _b === void 0 ? void 0 : _b.uid;
888
+ return initial ? [initial] : [''];
889
+ }),
890
+ activeItems = _c[0],
891
+ setActiveItems = _c[1];
892
+
893
+ var _d = useState(null),
894
+ currentNavEl = _d[0],
895
+ setCurrentNavEl = _d[1];
896
+
897
+ var _e = useState(null),
898
+ currentSubNavEl = _e[0],
899
+ setCurrentSubNavEl = _e[1];
900
+
901
+ var toggleActiveItem = function (uid) {
902
+ setActiveItems(function (prev) {
903
+ return prev.includes(uid) ? [] : [uid];
904
+ }); // if multiple nav items can be selected:
905
+ // setActiveItems((prev) => {
906
+ // const copy = [...prev];
907
+ // const activeIndex = activeItems.indexOf(index);
908
+ // if (activeIndex !== -1) {
909
+ // copy.splice(activeIndex, 1);
910
+ // } else {
911
+ // copy.push(index);
912
+ // }
913
+ // return copy;
914
+ // });
915
+ }; // check if flyout lost focus
916
+
917
+
918
+ useEffect(function () {
919
+ var handleFocus = function (ev) {
920
+ if (!flyoutRef.current || !ev.target) return;
921
+ var isFlyoutChild = flyoutRef.current.contains(ev.target);
922
+ if (!isFlyoutChild) onClose && onClose();
923
+ };
924
+
925
+ if (isOpen) {
926
+ document.addEventListener('focusin', handleFocus);
927
+ } else {
928
+ document.removeEventListener('focusin', handleFocus);
929
+ }
930
+
931
+ return function () {
932
+ document.removeEventListener('focusin', handleFocus);
933
+ };
934
+ }, [isOpen, onClose]); // scroll to current nav items
935
+
936
+ useEffect(function () {
937
+ try {
938
+ currentNavEl === null || currentNavEl === void 0 ? void 0 : currentNavEl.scrollIntoView({
939
+ block: 'center',
940
+ inline: 'start'
941
+ });
942
+ currentSubNavEl === null || currentSubNavEl === void 0 ? void 0 : currentSubNavEl.scrollIntoView({
943
+ block: 'center',
944
+ inline: 'start'
945
+ });
946
+ } catch (e) {// console.log(e);
947
+ }
948
+ }, [currentNavEl, currentSubNavEl]);
949
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(Backdrop, {
950
+ isOpen: isOpen,
951
+ filter: backdropFilter,
952
+ onClick: onClose
953
+ }), React__default.createElement(Stage, {
954
+ isOpen: isOpen,
955
+ clampWidth: clampWidth
956
+ }, React__default.createElement(Flyout, {
957
+ ref: flyoutRef,
958
+ isOpen: isOpen
959
+ }, hasHeader && React__default.createElement(Header$1, {
960
+ navBarSize: navBarSize
961
+ }, header ? header({
962
+ isOpen: isOpen,
963
+ mainNavigation: mainList,
964
+ subNavigation: subList,
965
+ isIndexPage: isIndexPage,
966
+ navBarSize: navBarSize
967
+ }) : React__default.createElement(MenuHeader, {
968
+ menuStates: {
969
+ isOpen: isOpen,
970
+ mainNavigation: mainNavigation,
971
+ subNavigation: subNavigation,
972
+ isIndexPage: isIndexPage,
973
+ navBarSize: navBarSize
974
+ }
975
+ })), React__default.createElement(ScrollContainer, null, React__default.createElement(ScrollArea, null, navItemsHeader && navItemsHeader({
976
+ isOpen: isOpen,
977
+ mainNavigation: mainList,
978
+ subNavigation: subList,
979
+ isIndexPage: isIndexPage,
980
+ navBarSize: navBarSize
981
+ }), React__default.createElement(MenuNav.View, null, isValidArray(mainList, false) && React__default.createElement(MenuNav.List, {
982
+ id: "mainMenu",
983
+ hasNonFeaturedItems: hasNonFeaturedItems
984
+ }, mainList.map(function (item) {
985
+ var _a;
986
+
987
+ var isActive = activeItems.includes(item.uid);
988
+ var hasCurrentSubItem = (item === null || item === void 0 ? void 0 : item.subItems) ? item.subItems.findIndex(function (n) {
989
+ return n.isCurrent;
990
+ }) >= 0 : false;
991
+ var isCurrent = item.isCurrent || hasCurrentSubItem;
992
+ return React__default.createElement(MenuNav.Item, __assign({
993
+ key: item.uid
994
+ }, item, {
995
+ ref: isCurrent ? setCurrentNavEl : undefined,
996
+ isActive: isActive,
997
+ isCurrent: isCurrent,
998
+ subNavTitle: subNavTitle,
999
+ navBarSize: navBarSize,
1000
+ collapseIcon: collapseIcon,
1001
+ onItemClick: function () {
1002
+ return toggleActiveItem(item.uid);
1003
+ },
1004
+ canFocus: isOpen
1005
+ }), (_a = item === null || item === void 0 ? void 0 : item.subItems) === null || _a === void 0 ? void 0 : _a.filter(menuFilter).map(function (subItem) {
1006
+ return React__default.createElement(MenuNav.SubItem, __assign({
1007
+ key: subItem.uid,
1008
+ ref: subItem.isCurrent ? setCurrentSubNavEl : undefined
1009
+ }, subItem, {
1010
+ navBarSize: navBarSize,
1011
+ canFocus: isOpen
1012
+ }));
1013
+ }));
1014
+ })), isValidArray(subList, false) && React__default.createElement(MenuNav.SubList, {
1015
+ items: subList,
1016
+ canFocus: isOpen
1017
+ })), footer ? footer({
1018
+ isOpen: isOpen,
1019
+ mainNavigation: mainList,
1020
+ subNavigation: subList,
1021
+ isIndexPage: isIndexPage
1022
+ }) : '')))));
1023
+ };
1024
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7$1, templateObject_8$1, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22;
1025
+
1026
+ var Menu = function (_a) {
1027
+ var isOpen = _a.isOpen,
1028
+ clampWidth = _a.clampWidth,
1029
+ isIndexPage = _a.isIndexPage,
1030
+ mainNavigation = _a.mainNavigation,
1031
+ subNavigation = _a.subNavigation,
1032
+ navBarSize = _a.navBarSize,
1033
+ header = _a.header,
1034
+ footer = _a.footer,
1035
+ navItemsHeader = _a.navItemsHeader,
1036
+ onClose = _a.onClose,
1037
+ typeSettings = _a.typeSettings;
1038
+
1039
+ if (!typeSettings) {
1040
+ typeSettings = {
1041
+ type: 'flyout'
1042
+ };
1043
+ }
1044
+
1045
+ switch (typeSettings === null || typeSettings === void 0 ? void 0 : typeSettings.type) {
1046
+ // case 'large': {
1047
+ // return (
1048
+ // <MenuLarge
1049
+ // isOpen={isOpen}
1050
+ // clampWidth={clampWidth}
1051
+ // isIndexPage={isIndexPage}
1052
+ // mainNavigation={mainNavigation}
1053
+ // subNavigation={subNavigation}
1054
+ // navBarSize={navBarSize}
1055
+ // header={header}
1056
+ // footer={footer}
1057
+ // navItemsHeader={navItemsHeader}
1058
+ // onClose={onClose}
1059
+ // {...(typeSettings as LargeMenuProps)}
1060
+ // />
1061
+ // );
1062
+ // }
1063
+ default:
1064
+ case 'flyout':
1065
+ {
1066
+ return React__default.createElement(MenuFlyout, __assign({
1067
+ isOpen: isOpen,
1068
+ clampWidth: clampWidth,
1069
+ isIndexPage: isIndexPage,
1070
+ mainNavigation: mainNavigation,
1071
+ subNavigation: subNavigation,
1072
+ navBarSize: navBarSize,
1073
+ header: header,
1074
+ footer: footer,
1075
+ onClose: onClose,
1076
+ navItemsHeader: navItemsHeader
1077
+ }, typeSettings));
1078
+ }
1079
+ }
1080
+ };
1081
+
1082
+ var getTopHeights = function (theme, size) {
1083
+ var heights = size === 'large' ? getGlobals(theme).navigation.navBar.topHeight.large : getGlobals(theme).navigation.navBar.topHeight.small; // if second value is not defined use first array index value for both
1084
+
1085
+ return [clampValue(heights[0], 0), clampValue((heights === null || heights === void 0 ? void 0 : heights[1]) === undefined ? heights[0] : heights[1], 0)];
1086
+ };
1087
+ var hasTopBar = function (theme) {
1088
+ var largeHeights = getTopHeights(theme, 'large');
1089
+ var smallHeights = getTopHeights(theme, 'small');
1090
+ return largeHeights[0] > 0 || largeHeights[1] > 0 || smallHeights[0] > 0 || smallHeights[1] > 0;
1091
+ };
1092
+ var getMainHeights = function (theme, size) {
1093
+ var heights = size === 'large' ? getGlobals(theme).navigation.navBar.mainHeight.large : getGlobals(theme).navigation.navBar.mainHeight.small; // if second value is not defined use first array index value for both
1094
+
1095
+ return [clampValue(heights[0], 0), clampValue((heights === null || heights === void 0 ? void 0 : heights[1]) === undefined ? heights[0] : heights[1], 0)];
1096
+ };
1097
+ var getBottomHeights = function (theme, size) {
1098
+ var heights = size === 'large' ? getGlobals(theme).navigation.navBar.bottomHeight.large : getGlobals(theme).navigation.navBar.bottomHeight.small; // if second value is not defined use first array index value for both
1099
+
1100
+ return [clampValue(heights[0], 0), clampValue((heights === null || heights === void 0 ? void 0 : heights[1]) === undefined ? heights[0] : heights[1], 0)];
1101
+ };
1102
+ var hasBottomBar = function (theme) {
1103
+ var largeHeights = getBottomHeights(theme, 'large');
1104
+ var smallHeights = getBottomHeights(theme, 'small');
1105
+ return largeHeights[0] > 0 || largeHeights[1] > 0 || smallHeights[0] > 0 || smallHeights[1] > 0;
1106
+ };
1107
+ /**
1108
+ * Get full height of navigation bar
1109
+ * @param theme Theme object
1110
+ * @param size Navigation bar size
1111
+ * @param exclude Exclude parts of the navbar for height calculation
1112
+ * @returns [mobile, desktop]
1113
+ */
1114
+
1115
+ var getFullHeight = function (theme, size, exclude) {
1116
+ var includeTop = exclude ? exclude.indexOf('top') === -1 : true;
1117
+ var includeMain = exclude ? exclude.indexOf('main') === -1 : true;
1118
+ var includeBottom = exclude ? exclude.indexOf('bottom') === -1 : true;
1119
+ var topHeights = includeTop ? getTopHeights(theme, size) : [0, 0];
1120
+ var mainHeights = includeMain ? getMainHeights(theme, size) : [0, 0];
1121
+ var bottomHeights = includeBottom ? getBottomHeights(theme, size) : [0, 0]; // calculate mobile navbar height
1122
+
1123
+ var mobile = topHeights[0] + mainHeights[0] + bottomHeights[0]; // calculate desktop navbar height
1124
+
1125
+ var desktop = topHeights[1] + mainHeights[1] + bottomHeights[1];
1126
+ return [mobile, desktop];
1127
+ };
1128
+ var View = styled.div.withConfig({
1129
+ displayName: "NavBar__View",
1130
+ componentId: "sc-f6gpx5-0"
1131
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: ", ";\n top: 0;\n left: 0;\n right: 0;\n\n transform: ", ";\n\n margin: 0 auto;\n /* max-width: ", "px; */\n z-index: 100;\n\n ", "\n will-change: transform;\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: ", ";\n margin: 0 auto;\n max-width: ", "px;\n z-index: -1;\n }\n\n // print version\n @media print {\n position: relative;\n }\n"], ["\n position: ", ";\n top: 0;\n left: 0;\n right: 0;\n\n transform: ", ";\n\n margin: 0 auto;\n /* max-width: ", "px; */\n z-index: 100;\n\n ", "\n will-change: transform;\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: ", ";\n margin: 0 auto;\n max-width: ", "px;\n z-index: -1;\n }\n\n // print version\n @media print {\n position: relative;\n }\n"])), function (_a) {
1132
+ var isSticky = _a.isSticky;
1133
+ return isSticky ? 'fixed' : 'absolute';
1134
+ }, function (_a) {
1135
+ var isOpen = _a.isOpen;
1136
+ return !isOpen && 'translate3d(0, -101%, 0)';
1137
+ }, spacings.wrapperLarge, function (_a) {
1138
+ var isAnimated = _a.isAnimated;
1139
+ return "transition: ".concat(isAnimated ? 'transform 0.3s ease-in-out, ' : '', "height 0.3s ease-in-out,\n opacity 0.3s ease-in-out;");
1140
+ }, function (_a) {
1141
+ var bgGradient = _a.bgGradient;
1142
+ return bgGradient || '';
1143
+ }, spacings.wrapperLarge);
1144
+ var Header = styled.div.withConfig({
1145
+ displayName: "NavBar__Header",
1146
+ componentId: "sc-f6gpx5-1"
1147
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n background-color: ", ";\n color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n\n @media ", " {\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n }\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n background-color: ", ";\n color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n\n @media ", " {\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n }\n"])), function (_a) {
1148
+ var theme = _a.theme,
1149
+ size = _a.size;
1150
+ return getTopHeights(theme, size)[0] > 0 ? 1 : 0;
1151
+ }, function (_a) {
1152
+ var theme = _a.theme,
1153
+ size = _a.size;
1154
+ return getTopHeights(theme, size)[0] > 0 ? 'all' : 'none';
1155
+ }, function (_a) {
1156
+ var theme = _a.theme,
1157
+ size = _a.size;
1158
+ return getTopHeights(theme, size)[0] <= 0 && 'hidden';
1159
+ }, function (_a) {
1160
+ var background = _a.background;
1161
+ return background;
1162
+ }, function (_a) {
1163
+ var theme = _a.theme,
1164
+ background = _a.background;
1165
+ return background ? getColors(theme).text.default : getColors(theme).text.inverted;
1166
+ }, mq.semilarge, function (_a) {
1167
+ var theme = _a.theme,
1168
+ size = _a.size;
1169
+ return getTopHeights(theme, size)[1] > 0 ? 1 : 0;
1170
+ }, function (_a) {
1171
+ var theme = _a.theme,
1172
+ size = _a.size;
1173
+ return getTopHeights(theme, size)[1] > 0 ? 'all' : 'none';
1174
+ }, function (_a) {
1175
+ var theme = _a.theme,
1176
+ size = _a.size;
1177
+ return getTopHeights(theme, size)[1] <= 0 && 'hidden';
1178
+ });
1179
+ var Main = styled.div.withConfig({
1180
+ displayName: "NavBar__Main",
1181
+ componentId: "sc-f6gpx5-2"
1182
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n"], ["\n background-color: ", ";\n color: ", ";\n\n transition: background-color 0.2s ease-in-out;\n"])), function (_a) {
1183
+ var background = _a.background;
1184
+ return background;
1185
+ }, function (_a) {
1186
+ var theme = _a.theme,
1187
+ background = _a.background;
1188
+ return background ? getColors(theme).text.default : getColors(theme).text.inverted;
1189
+ });
1190
+ var Footer = styled.div.withConfig({
1191
+ displayName: "NavBar__Footer",
1192
+ componentId: "sc-f6gpx5-3"
1193
+ })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n background-color: ", ";\n color: ", ";\n\n opacity: ", ";\n\n transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;\n\n @media ", " {\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n opacity: ", ";\n }\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n background-color: ", ";\n color: ", ";\n\n opacity: ", ";\n\n transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;\n\n @media ", " {\n opacity: ", ";\n pointer-events: ", ";\n overflow: ", ";\n\n opacity: ", ";\n }\n"])), function (_a) {
1194
+ var theme = _a.theme,
1195
+ size = _a.size;
1196
+ return getBottomHeights(theme, size)[0] > 0 ? 1 : 0;
1197
+ }, function (_a) {
1198
+ var theme = _a.theme,
1199
+ size = _a.size;
1200
+ return getBottomHeights(theme, size)[0] > 0 ? 'all' : 'none';
1201
+ }, function (_a) {
1202
+ var theme = _a.theme,
1203
+ size = _a.size;
1204
+ return getBottomHeights(theme, size)[0] <= 0 && 'hidden';
1205
+ }, function (_a) {
1206
+ var background = _a.background;
1207
+ return background;
1208
+ }, function (_a) {
1209
+ var theme = _a.theme,
1210
+ background = _a.background;
1211
+ return background ? getColors(theme).text.default : getColors(theme).text.inverted;
1212
+ }, function (_a) {
1213
+ var theme = _a.theme,
1214
+ size = _a.size;
1215
+ return getBottomHeights(theme, size)[0] > 0 ? 1 : 0;
1216
+ }, mq.semilarge, function (_a) {
1217
+ var theme = _a.theme,
1218
+ size = _a.size;
1219
+ return getBottomHeights(theme, size)[1] > 0 ? 1 : 0;
1220
+ }, function (_a) {
1221
+ var theme = _a.theme,
1222
+ size = _a.size;
1223
+ return getBottomHeights(theme, size)[1] > 0 ? 'all' : 'none';
1224
+ }, function (_a) {
1225
+ var theme = _a.theme,
1226
+ size = _a.size;
1227
+ return getBottomHeights(theme, size)[1] <= 0 && 'hidden';
1228
+ }, function (_a) {
1229
+ var theme = _a.theme,
1230
+ size = _a.size;
1231
+ return getBottomHeights(theme, size)[1] > 0 ? 1 : 0;
1232
+ });
1233
+ var TopContent = styled.div.withConfig({
1234
+ displayName: "NavBar__TopContent",
1235
+ componentId: "sc-f6gpx5-4"
1236
+ })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n position: relative;\n max-width: ", "px;\n padding: ", ";\n margin: 0 auto;\n\n height: ", "px;\n\n transition: height 0.2s ease-in-out, padding-top 0.2s ease-in-out,\n padding-bottom 0.2s ease-in-out;\n will-change: height;\n\n @media ", " {\n height: ", "px;\n padding: ", ";\n }\n"], ["\n display: flex;\n justify-content: flex-end;\n position: relative;\n max-width: ", "px;\n padding: ", ";\n margin: 0 auto;\n\n height: ", "px;\n\n transition: height 0.2s ease-in-out, padding-top 0.2s ease-in-out,\n padding-bottom 0.2s ease-in-out;\n will-change: height;\n\n @media ", " {\n height: ", "px;\n padding: ", ";\n }\n"])), function (_a) {
1237
+ var clamp = _a.clamp;
1238
+ return clamp ? spacings.wrapper : spacings.wrapperLarge;
1239
+ }, function (_a) {
1240
+ var size = _a.size,
1241
+ theme = _a.theme;
1242
+ return getTopHeights(theme, size)[0] > 0 && "0 ".concat(spacings.nudge * 2, "px");
1243
+ }, function (_a) {
1244
+ var theme = _a.theme,
1245
+ size = _a.size;
1246
+ return getTopHeights(theme, size)[0];
1247
+ }, mq.semilarge, function (_a) {
1248
+ var theme = _a.theme,
1249
+ size = _a.size;
1250
+ return getTopHeights(theme, size)[1];
1251
+ }, function (_a) {
1252
+ var size = _a.size,
1253
+ theme = _a.theme;
1254
+ return getTopHeights(theme, size)[1] > 0 && "0 ".concat(spacings.nudge * 2, "px");
1255
+ });
1256
+ var Content = styled.div.withConfig({
1257
+ displayName: "NavBar__Content",
1258
+ componentId: "sc-f6gpx5-5"
1259
+ })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n position: relative;\n max-width: ", "px;\n padding: 0 ", "px;\n margin: 0 auto;\n\n height: ", "px;\n\n transition: height 0.2s ease-in-out;\n will-change: height;\n\n @media ", " {\n height: ", "px;\n }\n"], ["\n display: flex;\n position: relative;\n max-width: ", "px;\n padding: 0 ", "px;\n margin: 0 auto;\n\n height: ", "px;\n\n transition: height 0.2s ease-in-out;\n will-change: height;\n\n @media ", " {\n height: ", "px;\n }\n"])), function (_a) {
1260
+ var clamp = _a.clamp;
1261
+ return clamp ? spacings.wrapper : spacings.wrapperLarge;
1262
+ }, spacings.nudge * 2, function (_a) {
1263
+ var theme = _a.theme,
1264
+ size = _a.size;
1265
+ return getMainHeights(theme, size)[0];
1266
+ }, mq.semilarge, function (_a) {
1267
+ var theme = _a.theme,
1268
+ size = _a.size;
1269
+ return getMainHeights(theme, size)[1] || getMainHeights(theme, size)[0];
1270
+ });
1271
+ var BottomContent = styled.div.withConfig({
1272
+ displayName: "NavBar__BottomContent",
1273
+ componentId: "sc-f6gpx5-6"
1274
+ })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n position: relative;\n max-width: ", "px;\n padding: 0 ", "px;\n margin: 0 auto;\n\n height: ", "px;\n transition: 0.2s height ease-in-out;\n\n @media ", " {\n height: ", "px;\n padding: 0 ", "px;\n }\n"], ["\n display: flex;\n justify-content: flex-start;\n position: relative;\n max-width: ", "px;\n padding: 0 ", "px;\n margin: 0 auto;\n\n height: ", "px;\n transition: 0.2s height ease-in-out;\n\n @media ", " {\n height: ", "px;\n padding: 0 ", "px;\n }\n"])), function (_a) {
1275
+ var clamp = _a.clamp;
1276
+ return clamp ? spacings.wrapper : spacings.wrapperLarge;
1277
+ }, spacings.nudge * 2, function (_a) {
1278
+ var theme = _a.theme,
1279
+ size = _a.size;
1280
+ return getBottomHeights(theme, size)[0];
1281
+ }, mq.semilarge, function (_a) {
1282
+ var theme = _a.theme,
1283
+ size = _a.size;
1284
+ return getBottomHeights(theme, size)[1];
1285
+ }, spacings.nudge * 2);
1286
+ var BarSpacer = styled.div.withConfig({
1287
+ displayName: "NavBar__BarSpacer",
1288
+ componentId: "sc-f6gpx5-7"
1289
+ })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: ", "px;\n\n @media ", " {\n height: ", "px;\n }\n\n // print version\n @media print {\n display: none;\n }\n"], ["\n height: ", "px;\n\n @media ", " {\n height: ", "px;\n }\n\n // print version\n @media print {\n display: none;\n }\n"])), function (_a) {
1290
+ var theme = _a.theme,
1291
+ hasHeader = _a.hasHeader,
1292
+ hasFooter = _a.hasFooter;
1293
+ var excludes = [];
1294
+ if (!hasHeader) excludes.push('top');
1295
+ if (!hasFooter) excludes.push('bottom');
1296
+ return getFullHeight(theme, 'large', excludes)[0];
1297
+ }, mq.semilarge, function (_a) {
1298
+ var theme = _a.theme,
1299
+ hasHeader = _a.hasHeader,
1300
+ hasFooter = _a.hasFooter;
1301
+ var excludes = [];
1302
+ if (!hasHeader) excludes.push('top');
1303
+ if (!hasFooter) excludes.push('bottom');
1304
+ return getFullHeight(theme, 'large', excludes)[1];
1305
+ });
1306
+
1307
+ var NavBar = function (_a) {
1308
+ var _b = _a.size,
1309
+ size = _b === void 0 ? 'large' : _b,
1310
+ _c = _a.isOpen,
1311
+ isOpen = _c === void 0 ? false : _c,
1312
+ _d = _a.isSticky,
1313
+ isSticky = _d === void 0 ? false : _d,
1314
+ _e = _a.isAnimated,
1315
+ isAnimated = _e === void 0 ? false : _e,
1316
+ _f = _a.clampWidth,
1317
+ clampWidth = _f === void 0 ? false : _f,
1318
+ _g = _a.pageFlow,
1319
+ pageFlow = _g === void 0 ? 'beforeContent' : _g,
1320
+ topBg = _a.topBg,
1321
+ mainBg = _a.mainBg,
1322
+ bottomBg = _a.bottomBg,
1323
+ onContentBg = _a.onContentBg,
1324
+ topBar = _a.topBar,
1325
+ mainBar = _a.mainBar,
1326
+ bottomBar = _a.bottomBar,
1327
+ className = _a.className;
1328
+
1329
+ var _h = useLibTheme(),
1330
+ theme = _h.theme,
1331
+ colors = _h.colors;
1332
+
1333
+ var clampContent = clampWidth === 'content';
1334
+ var isOverContent = pageFlow === 'overContent';
1335
+ var hasHeader = useMemo(function () {
1336
+ return hasTopBar(theme) && topBar !== null;
1337
+ }, [theme, topBar]);
1338
+ var hasFooter = useMemo(function () {
1339
+ return hasBottomBar(theme) && bottomBar !== null;
1340
+ }, [bottomBar, theme]);
1341
+ var showBg = useMemo(function () {
1342
+ return size === 'small' || size === 'large' && !isOverContent;
1343
+ }, [isOverContent, size]);
1344
+ var topBackground = topBg || colors.elementBg.light;
1345
+ var mainBackground = mainBg || colors.elementBg.light;
1346
+ var bottomBackground = bottomBg || colors.elementBg.light;
1347
+ var onContentBackground = onContentBg || 'linear-gradient(180deg,rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 100%)';
1348
+ var topBarContent = useMemo(function () {
1349
+ return topBar && topBar({
1350
+ size: size,
1351
+ isOpen: isOpen,
1352
+ isSticky: isSticky,
1353
+ pageFlow: pageFlow
1354
+ });
1355
+ }, [isOpen, isSticky, pageFlow, size, topBar]);
1356
+ var mainBarContent = useMemo(function () {
1357
+ return mainBar && mainBar({
1358
+ size: size,
1359
+ isOpen: isOpen,
1360
+ isSticky: isSticky,
1361
+ pageFlow: pageFlow
1362
+ });
1363
+ }, [isOpen, isSticky, mainBar, pageFlow, size]);
1364
+ var bottomBarContent = useMemo(function () {
1365
+ return bottomBar && bottomBar({
1366
+ size: size,
1367
+ isOpen: isOpen,
1368
+ isSticky: isSticky,
1369
+ pageFlow: pageFlow
1370
+ });
1371
+ }, [bottomBar, isOpen, isSticky, pageFlow, size]);
1372
+ return React__default.createElement(React__default.Fragment, null, pageFlow === 'beforeContent' && React__default.createElement(BarSpacer, {
1373
+ hasHeader: hasHeader,
1374
+ hasFooter: hasFooter
1375
+ }), React__default.createElement(View, {
1376
+ isOpen: isOpen,
1377
+ isSticky: isSticky,
1378
+ isAnimated: isAnimated,
1379
+ bgGradient: size === 'large' && isOverContent ? onContentBackground : undefined,
1380
+ className: className
1381
+ }, hasHeader && React__default.createElement(Header, {
1382
+ size: size,
1383
+ background: showBg ? topBackground : undefined
1384
+ }, React__default.createElement(TopContent, {
1385
+ size: size,
1386
+ clamp: clampContent
1387
+ }, topBarContent ? topBarContent : React__default.createElement(Column, {
1388
+ isInverted: true
1389
+ }, "Top Nav"))), mainBar !== null && React__default.createElement(Main, {
1390
+ background: showBg ? mainBackground : undefined
1391
+ }, React__default.createElement(Content, {
1392
+ size: size,
1393
+ clamp: clampContent
1394
+ }, mainBarContent ? mainBarContent : React__default.createElement(React__default.Fragment, null, React__default.createElement(Column, {
1395
+ takeSpace: true,
1396
+ isInverted: size === 'large' && isOverContent
1397
+ }, "Left"), React__default.createElement(Column, {
1398
+ isInverted: size === 'large' && isOverContent
1399
+ }, "Center"), React__default.createElement(Column, {
1400
+ takeSpace: true,
1401
+ isInverted: size === 'large' && isOverContent
1402
+ }, "Right")))), hasFooter && React__default.createElement(Footer, {
1403
+ size: size,
1404
+ background: showBg ? bottomBackground : undefined
1405
+ }, React__default.createElement(BottomContent, {
1406
+ size: size,
1407
+ clamp: clampContent
1408
+ }, bottomBarContent ? bottomBarContent : 'bottom bar'))));
1409
+ };
1410
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
1411
+
1412
+ /**
1413
+ * Checks which navbar parts are defined in navigation.
1414
+ * With this values you can calculate each height by the Navbar component functions
1415
+ * @param ident Identification string from Navigation component
1416
+ * @returns
1417
+ */
1418
+
1419
+ var getNavbarState = function (ident) {
1420
+ var navbarIdent = ident || '';
1421
+ var pageFlow = undefined;
1422
+
1423
+ switch (true) {
1424
+ case navbarIdent.search('overContent') !== -1:
1425
+ {
1426
+ pageFlow = 'overContent';
1427
+ break;
1428
+ }
1429
+
1430
+ case navbarIdent.search('beforeContent') !== -1:
1431
+ {
1432
+ pageFlow = 'beforeContent';
1433
+ break;
1434
+ }
1435
+ }
1436
+
1437
+ return {
1438
+ hasTop: navbarIdent.search('top') !== -1,
1439
+ hasMain: navbarIdent.search('main') !== -1,
1440
+ hasBottom: navbarIdent.search('bottom') !== -1,
1441
+ pageFlow: pageFlow,
1442
+ isStickable: navbarIdent.search('stickable') !== -1
1443
+ };
1444
+ };
1445
+ /** Generate Navbar identifier */
1446
+
1447
+ var generateNavbarIdent = function (props) {
1448
+ if (!props) return '';
1449
+ var stateArray = [];
1450
+ if (props.hasTop) stateArray.push('top');
1451
+ if (props.hasMain) stateArray.push('main');
1452
+ if (props.hasBottom) stateArray.push('bottom');
1453
+ if (props.isStickable) stateArray.push('stickable');
1454
+ if (props.pageFlow) stateArray.push(props.pageFlow);
1455
+ return stateArray.join('-');
1456
+ };
1457
+ /**
1458
+ * Get full navbar heights
1459
+ * @param theme Theme object
1460
+ * @param ident Indentification string from Navigation component
1461
+ * @returns
1462
+ */
1463
+
1464
+ var getFullNavbarHeights = function (theme, ident) {
1465
+ var _a = getNavbarState(ident || ''),
1466
+ hasTop = _a.hasTop,
1467
+ hasBottom = _a.hasBottom;
1468
+
1469
+ var excludes = [];
1470
+ if (!hasTop) excludes.push('top');
1471
+ if (!hasBottom) excludes.push('bottom');
1472
+ return {
1473
+ large: getFullHeight(theme, 'large', excludes),
1474
+ small: getFullHeight(theme, 'small', excludes)
1475
+ };
1476
+ };
1477
+
1478
+ var Navigation = function (_a) {
1479
+ var _b = _a.clampWidth,
1480
+ clampWidth = _b === void 0 ? 'content' : _b,
1481
+ navBar = _a.navBar,
1482
+ menu = _a.menu;
1483
+ var isStickable = (navBar === null || navBar === void 0 ? void 0 : navBar.isStickable) || false;
1484
+ var isCollapsible = (navBar === null || navBar === void 0 ? void 0 : navBar.isCollapsible) || false;
1485
+ var mediaQueries = useMediaQueries();
1486
+ var theme = useLibTheme().theme;
1487
+ /** Navigation bar states */
1488
+
1489
+ var _c = useState(false),
1490
+ isNavBarSticky = _c[0],
1491
+ setIsNavBarSticky = _c[1];
1492
+
1493
+ var _d = useState(true),
1494
+ isNavBarOpen = _d[0],
1495
+ setNavBarOpen = _d[1];
1496
+
1497
+ var _e = usePageScroll({
1498
+ directionOffset: {
1499
+ up: 40,
1500
+ down: 40
1501
+ },
1502
+ offset: getFullHeight(theme, 'large')[mediaQueries.semilarge ? 1 : 0]
1503
+ }),
1504
+ isTop = _e.isTop,
1505
+ scrollDirection = _e.scrollDirection,
1506
+ isInOffset = _e.isInOffset,
1507
+ leftOffsetFromTop = _e.leftOffsetFromTop;
1508
+
1509
+ var navbarSize = useMemo(function () {
1510
+ return isTop || isInOffset || !isStickable ? 'large' : 'small';
1511
+ }, [isTop, isInOffset, isStickable]);
1512
+ useEffect(function () {
1513
+ if (isStickable && isCollapsible) {
1514
+ setNavBarOpen(isTop || isInOffset || scrollDirection === PageScrollDirection.UP);
1515
+ }
1516
+ }, [scrollDirection, isTop, isStickable, isInOffset, isCollapsible]);
1517
+ useEffect(function () {
1518
+ if (!isStickable) return;
1519
+
1520
+ if (!isCollapsible || leftOffsetFromTop && scrollDirection === PageScrollDirection.UP) {
1521
+ setIsNavBarSticky(true);
1522
+ } else if (isTop) {
1523
+ setIsNavBarSticky(false);
1524
+ }
1525
+ }, [isCollapsible, isStickable, isTop, leftOffsetFromTop, scrollDirection]);
1526
+ /** Menu states */
1527
+
1528
+ var _f = useMenuKeyboard(false, {}),
1529
+ isMenuOpen = _f.isMenuOpen,
1530
+ setIsMenuOpen = _f.setIsMenuOpen,
1531
+ setRoot = _f.setRoot;
1532
+
1533
+ var openMenu = function () {
1534
+ setIsMenuOpen(true);
1535
+ };
1536
+
1537
+ var closeMenu = function () {
1538
+ setIsMenuOpen(false);
1539
+ };
1540
+
1541
+ useEffect(function () {
1542
+ document.body.style.overflow = isMenuOpen ? 'hidden' : 'visible';
1543
+ }, [isMenuOpen]);
1544
+ var topBar = (navBar === null || navBar === void 0 ? void 0 : navBar.topBar) ? function (props) {
1545
+ if (!(navBar === null || navBar === void 0 ? void 0 : navBar.topBar)) return '';
1546
+ return navBar.topBar(__assign(__assign({}, props), {
1547
+ isMenuOpen: isMenuOpen,
1548
+ openMenu: openMenu,
1549
+ closeMenu: closeMenu,
1550
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1551
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1552
+ isOnPageTop: isTop,
1553
+ isInTopOffset: isInOffset
1554
+ }));
1555
+ } : navBar === null || navBar === void 0 ? void 0 : navBar.topBar;
1556
+ var mainBar = (navBar === null || navBar === void 0 ? void 0 : navBar.mainBar) ? function (props) {
1557
+ if (!(navBar === null || navBar === void 0 ? void 0 : navBar.mainBar)) return '';
1558
+ return navBar.mainBar(__assign(__assign({}, props), {
1559
+ isMenuOpen: isMenuOpen,
1560
+ openMenu: openMenu,
1561
+ closeMenu: closeMenu,
1562
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1563
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1564
+ isOnPageTop: isTop,
1565
+ isInTopOffset: isInOffset
1566
+ }));
1567
+ } : navBar === null || navBar === void 0 ? void 0 : navBar.mainBar;
1568
+ var bottomBar = (navBar === null || navBar === void 0 ? void 0 : navBar.bottomBar) ? function (props) {
1569
+ if (!(navBar === null || navBar === void 0 ? void 0 : navBar.bottomBar)) return '';
1570
+ return navBar.bottomBar(__assign(__assign({}, props), {
1571
+ isMenuOpen: isMenuOpen,
1572
+ openMenu: openMenu,
1573
+ closeMenu: closeMenu,
1574
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1575
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1576
+ isOnPageTop: isTop,
1577
+ isInTopOffset: isInOffset
1578
+ }));
1579
+ } : navBar === null || navBar === void 0 ? void 0 : navBar.bottomBar;
1580
+ var menuHeader = (menu === null || menu === void 0 ? void 0 : menu.header) ? function (props) {
1581
+ if (!(menu === null || menu === void 0 ? void 0 : menu.header)) return '';
1582
+ return menu === null || menu === void 0 ? void 0 : menu.header(__assign(__assign({}, props), {
1583
+ openMenu: openMenu,
1584
+ closeMenu: closeMenu,
1585
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1586
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1587
+ navBarSize: navbarSize
1588
+ }));
1589
+ } : undefined;
1590
+ var menuFooter = (menu === null || menu === void 0 ? void 0 : menu.footer) ? function (props) {
1591
+ if (!(menu === null || menu === void 0 ? void 0 : menu.footer)) return '';
1592
+ return menu === null || menu === void 0 ? void 0 : menu.footer(__assign(__assign({}, props), {
1593
+ openMenu: openMenu,
1594
+ closeMenu: closeMenu,
1595
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1596
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1597
+ navBarSize: navbarSize
1598
+ }));
1599
+ } : undefined;
1600
+ var menuNavItemsHeader = (menu === null || menu === void 0 ? void 0 : menu.navItemsHeader) ? function (props) {
1601
+ if (!(menu === null || menu === void 0 ? void 0 : menu.navItemsHeader)) return '';
1602
+ return menu === null || menu === void 0 ? void 0 : menu.navItemsHeader(__assign(__assign({}, props), {
1603
+ openMenu: openMenu,
1604
+ closeMenu: closeMenu,
1605
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1606
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1607
+ navBarSize: navbarSize
1608
+ }));
1609
+ } : undefined;
1610
+ /**
1611
+ * Get ident string that shows if each navbar section is defined.
1612
+ * @returns Navbar ident string
1613
+ */
1614
+
1615
+ var getNavBarIdent = function (theme) {
1616
+ var ident = generateNavbarIdent({
1617
+ hasTop: topBar !== null && hasTopBar(theme),
1618
+ hasMain: mainBar !== null,
1619
+ hasBottom: bottomBar !== null && hasBottomBar(theme),
1620
+ isStickable: navBar === null || navBar === void 0 ? void 0 : navBar.isStickable,
1621
+ pageFlow: navBar === null || navBar === void 0 ? void 0 : navBar.pageFlow
1622
+ });
1623
+ return ident;
1624
+ };
1625
+
1626
+ return React__default.createElement("header", {
1627
+ ref: setRoot,
1628
+ "data-navbar-ident": getNavBarIdent(theme)
1629
+ }, React__default.createElement(LibThemeProvider, {
1630
+ theme: navBar === null || navBar === void 0 ? void 0 : navBar.theme
1631
+ }, React__default.createElement(NavBar, {
1632
+ isOpen: isNavBarOpen,
1633
+ isSticky: isNavBarSticky,
1634
+ isAnimated: true,
1635
+ size: navbarSize,
1636
+ clampWidth: clampWidth,
1637
+ pageFlow: navBar === null || navBar === void 0 ? void 0 : navBar.pageFlow,
1638
+ topBar: topBar,
1639
+ mainBar: mainBar,
1640
+ bottomBar: bottomBar,
1641
+ topBg: navBar === null || navBar === void 0 ? void 0 : navBar.topBg,
1642
+ mainBg: navBar === null || navBar === void 0 ? void 0 : navBar.mainBg,
1643
+ bottomBg: navBar === null || navBar === void 0 ? void 0 : navBar.bottomBg,
1644
+ onContentBg: navBar === null || navBar === void 0 ? void 0 : navBar.onContentBg
1645
+ })), React__default.createElement(LibThemeProvider, {
1646
+ theme: menu === null || menu === void 0 ? void 0 : menu.theme
1647
+ }, React__default.createElement(Menu, {
1648
+ isOpen: isMenuOpen,
1649
+ clampWidth: clampWidth,
1650
+ isIndexPage: menu === null || menu === void 0 ? void 0 : menu.isIndexPage,
1651
+ mainNavigation: menu === null || menu === void 0 ? void 0 : menu.mainNavigation,
1652
+ subNavigation: menu === null || menu === void 0 ? void 0 : menu.subNavigation,
1653
+ typeSettings: menu === null || menu === void 0 ? void 0 : menu.typeSettings,
1654
+ navBarSize: navbarSize,
1655
+ header: menuHeader,
1656
+ footer: menuFooter,
1657
+ navItemsHeader: menuNavItemsHeader,
1658
+ onClose: closeMenu
1659
+ })));
1660
+ };
1661
+
1662
+ export { BarBreadcrumbs as B, Column as C, MenuHeader as M, Navigation as N, getFullNavbarHeights as a, getNavbarState as b, BarLogo as c, BarMenuToggle as d, BarNavList as e, generateNavbarIdent as g };
1663
+ //# sourceMappingURL=Navigation-fae92776.js.map