@swisspost/design-system-components 9.0.0-next.8 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/dist/cjs/index-e1f32cce.js +16 -36
  2. package/dist/cjs/index.cjs.js +23 -44
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-a2b895fc.js → package-3ed88bb9.js} +1 -1
  5. package/dist/cjs/{post-accordion-3ce01432.js → post-accordion-9ef382e8.js} +2 -2
  6. package/dist/cjs/post-accordion-item-5f685bee.js +52 -0
  7. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  8. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/post-alert-88adc668.js +99 -0
  10. package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +3 -3
  11. package/dist/cjs/post-card-control-c6e5c427.js +272 -0
  12. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  13. package/dist/cjs/{post-collapsible-trigger-8ca4d85b.js → post-collapsible-trigger-1764e6dc.js} +12 -7
  14. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -3
  15. package/dist/cjs/post-components.cjs.js +1 -1
  16. package/dist/cjs/post-icon-f735da00.js +139 -0
  17. package/dist/cjs/{post-language-option.cjs.entry.js → post-icon.cjs.entry.js} +4 -3
  18. package/dist/cjs/post-logo-2cd8ae98.js +39 -0
  19. package/dist/cjs/{post-breadcrumb-item.cjs.entry.js → post-logo.cjs.entry.js} +3 -3
  20. package/dist/cjs/post-popover-36c854a4.js +131 -0
  21. package/dist/cjs/post-popover.cjs.entry.js +2 -3
  22. package/dist/cjs/{post-megadropdown-trigger-7376d867.js → post-popovercontainer-cb4793c1.js} +142 -545
  23. package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
  24. package/dist/cjs/post-rating-d5073d8d.js +88 -0
  25. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  26. package/dist/cjs/post-tab-header-b756d9b1.js +32 -0
  27. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-tab-panel-34aed8e6.js → post-tab-panel-97b79ecd.js} +2 -2
  29. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  30. package/dist/cjs/{post-tabs-dd2da5d2.js → post-tabs-834497f2.js} +8 -6
  31. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  32. package/dist/cjs/post-tag-c70fb945.js +47 -0
  33. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  34. package/dist/cjs/post-tooltip-20ebe011.js +69 -0
  35. package/dist/cjs/{post-tooltip-3e0c1509.js → post-tooltip-trigger-6f4c9748.js} +506 -556
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
  37. package/dist/cjs/post-tooltip.cjs.entry.js +2 -6
  38. package/dist/collection/collection-manifest.json +3 -17
  39. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  40. package/dist/collection/components/post-accordion/post-accordion.js +2 -2
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  42. package/dist/collection/components/post-accordion-item/post-accordion-item.js +8 -19
  43. package/dist/collection/components/post-alert/alert-types.js +1 -0
  44. package/dist/collection/components/post-alert/post-alert.css +35 -0
  45. package/dist/collection/components/{post-banner/post-banner.js → post-alert/post-alert.js} +68 -39
  46. package/dist/collection/components/post-card-control/post-card-control.css +30 -2
  47. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  48. package/dist/collection/components/post-collapsible/post-collapsible.js +2 -4
  49. package/dist/collection/components/post-icon/post-icon.css +1 -1
  50. package/dist/collection/components/post-icon/post-icon.js +52 -13
  51. package/dist/collection/components/post-logo/post-logo.js +1 -1
  52. package/dist/collection/components/post-popover/post-popover.css +30 -2
  53. package/dist/collection/components/post-popover/post-popover.js +10 -6
  54. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +31 -1
  55. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +180 -52
  56. package/dist/collection/components/post-rating/post-rating.css +29 -1
  57. package/dist/collection/components/post-rating/post-rating.js +1 -1
  58. package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
  59. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  60. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  61. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  62. package/dist/collection/components/post-tabs/post-tabs.js +6 -4
  63. package/dist/collection/components/post-tag/post-tag.css +29 -1
  64. package/dist/collection/components/post-tag/post-tag.js +2 -2
  65. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  66. package/dist/collection/components/post-tooltip/post-tooltip.js +60 -213
  67. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.css +1 -0
  68. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +230 -0
  69. package/dist/collection/index.js +2 -16
  70. package/dist/components/index.js +2 -16
  71. package/dist/components/index2.js +1 -1
  72. package/dist/components/package.js +1 -1
  73. package/dist/components/post-accordion-item2.js +10 -27
  74. package/dist/components/post-accordion2.js +1 -1
  75. package/dist/components/{post-menu.d.ts → post-alert.d.ts} +4 -4
  76. package/dist/components/post-alert.js +6 -0
  77. package/dist/components/post-alert2.js +136 -0
  78. package/dist/components/post-card-control2.js +3 -3
  79. package/dist/components/post-collapsible-trigger2.js +8 -1
  80. package/dist/components/post-collapsible2.js +3 -5
  81. package/dist/components/post-icon2.js +54 -15
  82. package/dist/components/post-logo2.js +2 -2
  83. package/dist/components/post-popover2.js +35 -8
  84. package/dist/components/post-popovercontainer2.js +136 -41
  85. package/dist/components/post-rating2.js +2 -2
  86. package/dist/components/post-tab-header2.js +2 -2
  87. package/dist/components/post-tab-panel2.js +1 -1
  88. package/dist/components/post-tabs2.js +7 -5
  89. package/dist/components/post-tag2.js +2 -2
  90. package/dist/components/{post-banner.d.ts → post-tooltip-trigger.d.ts} +4 -4
  91. package/dist/components/post-tooltip-trigger.js +6 -0
  92. package/dist/components/post-tooltip-trigger2.js +4968 -0
  93. package/dist/components/post-tooltip2.js +32 -4962
  94. package/dist/docs.json +290 -1288
  95. package/dist/esm/{index-f8a00dc0.js → index-69587a51.js} +1 -1
  96. package/dist/esm/index-e1b64755.js +16 -36
  97. package/dist/esm/index.js +19 -26
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/package-983f957d.js +3 -0
  100. package/dist/esm/{post-accordion-19e88941.js → post-accordion-ad570427.js} +2 -2
  101. package/dist/esm/post-accordion-item-4db0aa2a.js +50 -0
  102. package/dist/esm/post-accordion-item.entry.js +3 -3
  103. package/dist/esm/post-accordion.entry.js +2 -2
  104. package/dist/esm/post-alert-1e9fbdfa.js +97 -0
  105. package/dist/esm/{post-banner.entry.js → post-alert.entry.js} +3 -3
  106. package/dist/esm/post-card-control-ccb189a8.js +270 -0
  107. package/dist/esm/post-card-control.entry.js +2 -2
  108. package/dist/esm/{post-collapsible-trigger-1d939eb6.js → post-collapsible-trigger-45fe328a.js} +12 -7
  109. package/dist/esm/post-collapsible_2.entry.js +3 -4
  110. package/dist/esm/post-components.js +1 -1
  111. package/dist/esm/post-icon-3fc4dd7d.js +137 -0
  112. package/dist/esm/post-icon.entry.js +8 -0
  113. package/dist/esm/post-logo-e6cdea13.js +37 -0
  114. package/dist/esm/post-logo.entry.js +7 -0
  115. package/dist/esm/post-popover-afdf4906.js +129 -0
  116. package/dist/esm/post-popover.entry.js +2 -3
  117. package/dist/esm/{post-megadropdown-trigger-210b4ab3.js → post-popovercontainer-b19b7606.js} +144 -538
  118. package/dist/esm/post-popovercontainer.entry.js +3 -0
  119. package/dist/esm/post-rating-f60024fa.js +86 -0
  120. package/dist/esm/post-rating.entry.js +2 -2
  121. package/dist/esm/post-tab-header-333e15d5.js +30 -0
  122. package/dist/esm/post-tab-header.entry.js +2 -2
  123. package/dist/esm/{post-tab-panel-afce8d40.js → post-tab-panel-0ddb05a2.js} +2 -2
  124. package/dist/esm/post-tab-panel.entry.js +2 -2
  125. package/dist/esm/{post-tabs-fbb42496.js → post-tabs-ab7853cf.js} +8 -6
  126. package/dist/esm/post-tabs.entry.js +2 -2
  127. package/dist/esm/post-tag-4a7d14b9.js +45 -0
  128. package/dist/esm/post-tag.entry.js +2 -2
  129. package/dist/esm/post-tooltip-c03cd719.js +67 -0
  130. package/dist/esm/{post-tooltip-7101ed24.js → post-tooltip-trigger-1fefc8ad.js} +506 -556
  131. package/dist/esm/post-tooltip-trigger.entry.js +4 -0
  132. package/dist/esm/post-tooltip.entry.js +2 -6
  133. package/dist/post-components/index.esm.js +1 -1
  134. package/dist/post-components/p-0a45da5e.entry.js +1 -0
  135. package/dist/post-components/p-12e82863.entry.js +1 -0
  136. package/dist/post-components/p-1386b77d.js +1 -0
  137. package/dist/post-components/p-1528b798.js +1 -0
  138. package/dist/post-components/p-18dc1299.entry.js +1 -0
  139. package/dist/post-components/p-1a8f6c84.entry.js +1 -0
  140. package/dist/post-components/p-256453ca.js +1 -0
  141. package/dist/post-components/p-3272ebad.js +1 -0
  142. package/dist/post-components/p-3596035e.js +1 -0
  143. package/dist/post-components/p-3668f4fa.entry.js +1 -0
  144. package/dist/post-components/p-375845d4.js +1 -0
  145. package/dist/post-components/p-381de59d.entry.js +1 -0
  146. package/dist/post-components/p-4e68c514.js +1 -0
  147. package/dist/post-components/p-4eb5d9a1.entry.js +1 -0
  148. package/dist/post-components/p-61a7d216.js +1 -0
  149. package/dist/post-components/{p-0338f9da.js → p-788e64fb.js} +1 -1
  150. package/dist/post-components/p-7d5b41d1.js +1 -0
  151. package/dist/post-components/p-82ea24e7.js +1 -0
  152. package/dist/post-components/p-85c4d04f.js +1 -0
  153. package/dist/post-components/p-85c6d001.entry.js +1 -0
  154. package/dist/post-components/p-8e555dda.js +15 -0
  155. package/dist/post-components/p-962a6f36.entry.js +1 -0
  156. package/dist/post-components/p-a76c71bc.js +1 -0
  157. package/dist/post-components/p-a7e8fd41.entry.js +1 -0
  158. package/dist/post-components/p-ac216bd0.entry.js +1 -0
  159. package/dist/post-components/p-b17ecbee.entry.js +1 -0
  160. package/dist/post-components/p-bb4227ad.entry.js +1 -0
  161. package/dist/post-components/p-bc294d0b.js +1 -0
  162. package/dist/post-components/p-d0b3c5d3.entry.js +1 -0
  163. package/dist/post-components/p-d4e148d8.entry.js +1 -0
  164. package/dist/post-components/p-d9809281.js +1 -0
  165. package/dist/post-components/p-eb1e7a49.js +1 -0
  166. package/dist/post-components/p-f35291d5.entry.js +1 -0
  167. package/dist/post-components/p-fc3bfe08.js +1 -0
  168. package/dist/post-components/post-components.esm.js +1 -1
  169. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  170. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -5
  171. package/dist/types/components/post-alert/alert-types.d.ts +2 -0
  172. package/dist/types/components/post-alert/post-alert.d.ts +54 -0
  173. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  174. package/dist/types/components/post-icon/post-icon.d.ts +1 -1
  175. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +31 -13
  176. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  177. package/dist/types/components/post-tooltip/post-tooltip.d.ts +20 -34
  178. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +47 -0
  179. package/dist/types/components.d.ts +124 -490
  180. package/dist/types/index.d.ts +2 -16
  181. package/loaders/index.d.ts +4 -32
  182. package/loaders/index.js +4 -18
  183. package/loaders/index2.js +1 -1
  184. package/loaders/package.js +1 -1
  185. package/loaders/post-accordion-item.js +11 -28
  186. package/loaders/post-accordion.js +1 -1
  187. package/loaders/{post-menu.d.ts → post-alert.d.ts} +4 -4
  188. package/loaders/post-alert.js +139 -0
  189. package/loaders/post-card-control.js +3 -3
  190. package/loaders/post-collapsible-trigger2.js +8 -1
  191. package/loaders/post-collapsible2.js +3 -5
  192. package/loaders/post-icon2.js +54 -15
  193. package/loaders/post-logo.js +2 -2
  194. package/loaders/post-popover.js +35 -8
  195. package/loaders/post-popovercontainer2.js +136 -41
  196. package/loaders/post-rating.js +2 -2
  197. package/loaders/post-tab-header.js +2 -2
  198. package/loaders/post-tab-panel.js +1 -1
  199. package/loaders/post-tabs.js +7 -5
  200. package/loaders/post-tag.js +2 -2
  201. package/loaders/{post-avatar.d.ts → post-tooltip-trigger.d.ts} +4 -4
  202. package/loaders/post-tooltip-trigger.js +4971 -0
  203. package/loaders/post-tooltip.js +32 -4962
  204. package/package.json +5 -7
  205. package/dist/cjs/attribute-observer-10f08c04.js +0 -27
  206. package/dist/cjs/get-root-7a3498ef.js +0 -11
  207. package/dist/cjs/post-accordion-item-81601b1e.js +0 -62
  208. package/dist/cjs/post-avatar-b1c97f51.js +0 -148
  209. package/dist/cjs/post-avatar.cjs.entry.js +0 -13
  210. package/dist/cjs/post-back-to-top-0ce98569.js +0 -98
  211. package/dist/cjs/post-back-to-top.cjs.entry.js +0 -14
  212. package/dist/cjs/post-banner-8611eab5.js +0 -90
  213. package/dist/cjs/post-breadcrumb-item-2075462a.js +0 -49
  214. package/dist/cjs/post-card-control-acd30573.js +0 -272
  215. package/dist/cjs/post-closebutton_10.cjs.entry.js +0 -25
  216. package/dist/cjs/post-language-option-cf32d0ed.js +0 -68
  217. package/dist/cjs/post-menu-a3b7b63b.js +0 -176
  218. package/dist/cjs/post-menu-item-28ab1a72.js +0 -20
  219. package/dist/cjs/post-menu-item.cjs.entry.js +0 -11
  220. package/dist/cjs/post-menu-trigger-821839f5.js +0 -75
  221. package/dist/cjs/post-menu-trigger.cjs.entry.js +0 -13
  222. package/dist/cjs/post-menu.cjs.entry.js +0 -11
  223. package/dist/cjs/post-popover-c4f50134.js +0 -104
  224. package/dist/cjs/post-rating-3a87ca46.js +0 -88
  225. package/dist/cjs/post-tab-header-5fdb05a1.js +0 -32
  226. package/dist/cjs/post-tag-59232922.js +0 -47
  227. package/dist/cjs/post-togglebutton-59c6357b.js +0 -28
  228. package/dist/cjs/post-togglebutton.cjs.entry.js +0 -11
  229. package/dist/collection/animations/slide.js +0 -23
  230. package/dist/collection/components/post-avatar/post-avatar.css +0 -3
  231. package/dist/collection/components/post-avatar/post-avatar.js +0 -237
  232. package/dist/collection/components/post-back-to-top/post-back-to-top.css +0 -1
  233. package/dist/collection/components/post-back-to-top/post-back-to-top.js +0 -107
  234. package/dist/collection/components/post-banner/banner-types.js +0 -1
  235. package/dist/collection/components/post-banner/post-banner.css +0 -3
  236. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +0 -1
  237. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -83
  238. package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
  239. package/dist/collection/components/post-header/post-header.css +0 -1
  240. package/dist/collection/components/post-header/post-header.js +0 -103
  241. package/dist/collection/components/post-language-option/post-language-option.css +0 -3
  242. package/dist/collection/components/post-language-option/post-language-option.js +0 -191
  243. package/dist/collection/components/post-list/post-list.css +0 -3
  244. package/dist/collection/components/post-list/post-list.js +0 -87
  245. package/dist/collection/components/post-list-item/post-list-item.css +0 -1
  246. package/dist/collection/components/post-list-item/post-list-item.js +0 -25
  247. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +0 -1
  248. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +0 -61
  249. package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
  250. package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -137
  251. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +0 -1
  252. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +0 -48
  253. package/dist/collection/components/post-menu/post-menu.css +0 -3
  254. package/dist/collection/components/post-menu/post-menu.js +0 -278
  255. package/dist/collection/components/post-menu-item/post-menu-item.css +0 -1
  256. package/dist/collection/components/post-menu-item/post-menu-item.js +0 -20
  257. package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +0 -1
  258. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +0 -104
  259. package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
  260. package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -56
  261. package/dist/collection/utils/is-focusable.js +0 -26
  262. package/dist/components/attribute-observer.js +0 -25
  263. package/dist/components/get-root.js +0 -9
  264. package/dist/components/post-avatar.d.ts +0 -11
  265. package/dist/components/post-avatar.js +0 -6
  266. package/dist/components/post-avatar2.js +0 -173
  267. package/dist/components/post-back-to-top.d.ts +0 -11
  268. package/dist/components/post-back-to-top.js +0 -6
  269. package/dist/components/post-back-to-top2.js +0 -123
  270. package/dist/components/post-banner.js +0 -6
  271. package/dist/components/post-banner2.js +0 -125
  272. package/dist/components/post-breadcrumb-item.d.ts +0 -11
  273. package/dist/components/post-breadcrumb-item.js +0 -6
  274. package/dist/components/post-breadcrumb-item2.js +0 -72
  275. package/dist/components/post-closebutton.d.ts +0 -11
  276. package/dist/components/post-closebutton.js +0 -6
  277. package/dist/components/post-closebutton2.js +0 -34
  278. package/dist/components/post-header.d.ts +0 -11
  279. package/dist/components/post-header.js +0 -6
  280. package/dist/components/post-header2.js +0 -235
  281. package/dist/components/post-language-option.d.ts +0 -11
  282. package/dist/components/post-language-option.js +0 -6
  283. package/dist/components/post-language-option2.js +0 -92
  284. package/dist/components/post-list-item.d.ts +0 -11
  285. package/dist/components/post-list-item.js +0 -6
  286. package/dist/components/post-list-item2.js +0 -35
  287. package/dist/components/post-list.d.ts +0 -11
  288. package/dist/components/post-list.js +0 -6
  289. package/dist/components/post-list2.js +0 -53
  290. package/dist/components/post-mainnavigation.d.ts +0 -11
  291. package/dist/components/post-mainnavigation.js +0 -6
  292. package/dist/components/post-mainnavigation2.js +0 -48
  293. package/dist/components/post-megadropdown-trigger.d.ts +0 -11
  294. package/dist/components/post-megadropdown-trigger.js +0 -6
  295. package/dist/components/post-megadropdown-trigger2.js +0 -39
  296. package/dist/components/post-megadropdown.d.ts +0 -11
  297. package/dist/components/post-megadropdown.js +0 -6
  298. package/dist/components/post-megadropdown2.js +0 -67
  299. package/dist/components/post-menu-item.d.ts +0 -11
  300. package/dist/components/post-menu-item.js +0 -6
  301. package/dist/components/post-menu-item2.js +0 -33
  302. package/dist/components/post-menu-trigger.d.ts +0 -11
  303. package/dist/components/post-menu-trigger.js +0 -6
  304. package/dist/components/post-menu-trigger2.js +0 -92
  305. package/dist/components/post-menu.js +0 -6
  306. package/dist/components/post-menu2.js +0 -201
  307. package/dist/components/post-togglebutton.d.ts +0 -11
  308. package/dist/components/post-togglebutton.js +0 -6
  309. package/dist/components/post-togglebutton2.js +0 -43
  310. package/dist/esm/attribute-observer-37fa950a.js +0 -25
  311. package/dist/esm/get-root-7af2e0d1.js +0 -9
  312. package/dist/esm/package-9cafe148.js +0 -3
  313. package/dist/esm/post-accordion-item-33bbe4de.js +0 -60
  314. package/dist/esm/post-avatar-d15a9f9e.js +0 -146
  315. package/dist/esm/post-avatar.entry.js +0 -5
  316. package/dist/esm/post-back-to-top-bcf46150.js +0 -96
  317. package/dist/esm/post-back-to-top.entry.js +0 -6
  318. package/dist/esm/post-banner-bf5e6a18.js +0 -88
  319. package/dist/esm/post-breadcrumb-item-e3b41f74.js +0 -47
  320. package/dist/esm/post-breadcrumb-item.entry.js +0 -7
  321. package/dist/esm/post-card-control-f0788f6f.js +0 -270
  322. package/dist/esm/post-closebutton_10.entry.js +0 -8
  323. package/dist/esm/post-language-option-1436370d.js +0 -66
  324. package/dist/esm/post-language-option.entry.js +0 -7
  325. package/dist/esm/post-menu-e853e28b.js +0 -174
  326. package/dist/esm/post-menu-item-86d4c7ab.js +0 -18
  327. package/dist/esm/post-menu-item.entry.js +0 -3
  328. package/dist/esm/post-menu-trigger-80c2bdf4.js +0 -73
  329. package/dist/esm/post-menu-trigger.entry.js +0 -5
  330. package/dist/esm/post-menu.entry.js +0 -3
  331. package/dist/esm/post-popover-7195d05a.js +0 -102
  332. package/dist/esm/post-rating-8baf86fe.js +0 -86
  333. package/dist/esm/post-tab-header-a1d1d9d0.js +0 -30
  334. package/dist/esm/post-tag-d67b6a19.js +0 -45
  335. package/dist/esm/post-togglebutton-c3fb912d.js +0 -26
  336. package/dist/esm/post-togglebutton.entry.js +0 -3
  337. package/dist/post-components/p-00fa0152.js +0 -1
  338. package/dist/post-components/p-1667387e.entry.js +0 -1
  339. package/dist/post-components/p-19551c18.entry.js +0 -1
  340. package/dist/post-components/p-1b627f80.js +0 -1
  341. package/dist/post-components/p-24673919.js +0 -1
  342. package/dist/post-components/p-266b734f.entry.js +0 -1
  343. package/dist/post-components/p-282115c4.js +0 -1
  344. package/dist/post-components/p-2d0ffc1e.entry.js +0 -1
  345. package/dist/post-components/p-45018d7e.entry.js +0 -1
  346. package/dist/post-components/p-485dafcf.js +0 -1
  347. package/dist/post-components/p-4a647a78.js +0 -1
  348. package/dist/post-components/p-4abfa65b.js +0 -1
  349. package/dist/post-components/p-517f2b1f.entry.js +0 -1
  350. package/dist/post-components/p-55224ee7.entry.js +0 -1
  351. package/dist/post-components/p-558a9849.js +0 -1
  352. package/dist/post-components/p-59b31557.js +0 -1
  353. package/dist/post-components/p-5d1db85c.entry.js +0 -1
  354. package/dist/post-components/p-61e79941.js +0 -1
  355. package/dist/post-components/p-679978de.entry.js +0 -1
  356. package/dist/post-components/p-6a842b96.entry.js +0 -1
  357. package/dist/post-components/p-6adeaa6c.js +0 -1
  358. package/dist/post-components/p-6cea23cd.js +0 -15
  359. package/dist/post-components/p-71f03424.js +0 -1
  360. package/dist/post-components/p-8c2568c1.entry.js +0 -1
  361. package/dist/post-components/p-8fd3a3cb.entry.js +0 -1
  362. package/dist/post-components/p-939f2ba7.js +0 -1
  363. package/dist/post-components/p-a4c39296.entry.js +0 -1
  364. package/dist/post-components/p-af5d3b89.entry.js +0 -1
  365. package/dist/post-components/p-b4423249.entry.js +0 -1
  366. package/dist/post-components/p-c31a7d65.entry.js +0 -1
  367. package/dist/post-components/p-c544bb82.js +0 -1
  368. package/dist/post-components/p-ccb6dfa1.js +0 -1
  369. package/dist/post-components/p-d0b8820a.js +0 -1
  370. package/dist/post-components/p-d36adfb5.js +0 -1
  371. package/dist/post-components/p-da6a8268.entry.js +0 -1
  372. package/dist/post-components/p-ece14d88.js +0 -1
  373. package/dist/post-components/p-f0f8427e.js +0 -1
  374. package/dist/post-components/p-f2e1b4d8.js +0 -1
  375. package/dist/post-components/p-f627744e.js +0 -1
  376. package/dist/post-components/p-f7b6b96a.entry.js +0 -1
  377. package/dist/post-components/p-f812e93d.entry.js +0 -1
  378. package/dist/post-components/p-f8d41c32.js +0 -1
  379. package/dist/post-components/p-fc91cbc2.js +0 -1
  380. package/dist/post-components/p-fe516cdf.entry.js +0 -1
  381. package/dist/post-components/p-fe7467fb.entry.js +0 -1
  382. package/dist/types/animations/slide.d.ts +0 -2
  383. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -51
  384. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -19
  385. package/dist/types/components/post-banner/banner-types.d.ts +0 -2
  386. package/dist/types/components/post-banner/post-banner.d.ts +0 -49
  387. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -15
  388. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
  389. package/dist/types/components/post-header/post-header.d.ts +0 -16
  390. package/dist/types/components/post-language-option/post-language-option.d.ts +0 -40
  391. package/dist/types/components/post-list/post-list.d.ts +0 -24
  392. package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
  393. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -10
  394. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -23
  395. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -10
  396. package/dist/types/components/post-menu/post-menu.d.ts +0 -47
  397. package/dist/types/components/post-menu-item/post-menu-item.d.ts +0 -4
  398. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -27
  399. package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -13
  400. package/dist/types/utils/is-focusable.d.ts +0 -1
  401. package/loaders/attribute-observer.js +0 -25
  402. package/loaders/get-root.js +0 -9
  403. package/loaders/post-avatar.js +0 -176
  404. package/loaders/post-back-to-top.d.ts +0 -11
  405. package/loaders/post-back-to-top.js +0 -126
  406. package/loaders/post-banner.d.ts +0 -11
  407. package/loaders/post-banner.js +0 -128
  408. package/loaders/post-breadcrumb-item.d.ts +0 -11
  409. package/loaders/post-breadcrumb-item.js +0 -75
  410. package/loaders/post-closebutton.d.ts +0 -11
  411. package/loaders/post-closebutton.js +0 -37
  412. package/loaders/post-header.d.ts +0 -11
  413. package/loaders/post-header.js +0 -238
  414. package/loaders/post-language-option.d.ts +0 -11
  415. package/loaders/post-language-option.js +0 -95
  416. package/loaders/post-list-item.d.ts +0 -11
  417. package/loaders/post-list-item.js +0 -38
  418. package/loaders/post-list.d.ts +0 -11
  419. package/loaders/post-list.js +0 -56
  420. package/loaders/post-mainnavigation.d.ts +0 -11
  421. package/loaders/post-mainnavigation.js +0 -51
  422. package/loaders/post-megadropdown-trigger.d.ts +0 -11
  423. package/loaders/post-megadropdown-trigger.js +0 -42
  424. package/loaders/post-megadropdown.d.ts +0 -11
  425. package/loaders/post-megadropdown.js +0 -70
  426. package/loaders/post-menu-item.d.ts +0 -11
  427. package/loaders/post-menu-item.js +0 -36
  428. package/loaders/post-menu-trigger.d.ts +0 -11
  429. package/loaders/post-menu-trigger.js +0 -95
  430. package/loaders/post-menu.js +0 -204
  431. package/loaders/post-togglebutton.d.ts +0 -11
  432. package/loaders/post-togglebutton.js +0 -46
@@ -1,141 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-e1b64755.js';
2
- import { v as version } from './package-9cafe148.js';
3
- import { c as checkEmptyOrOneOf, d as checkEmptyOrType, b as checkEmptyOrUrl } from './index-f8a00dc0.js';
4
- import { c as checkNonEmpty } from './check-non-empty-58bd6b17.js';
5
- import { c as checkType } from './check-type-8828dbe4.js';
6
-
7
- const PostClosebutton = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- render() {
12
- return (h(Host, { key: '4e03f31cdefe37e70ae44d8c7baaa71abf660db4', "data-version": version }, h("button", { key: 'bcb645f50e587470fbdc6bee7b369c58aef403fd', class: "btn btn-icon-close" }, h("post-icon", { key: '5860a0b4c8a2cfd740cca788b22377e2e4bc9614', "aria-hidden": "true", name: "2043" }), h("span", { key: '4381a0a47c99703b0a6ca9f864b69437afff167f', class: "visually-hidden" }, h("slot", { key: '55a72682749ddac4716463c21f8bc31a89f285b9' })))));
13
- }
14
- get host() { return getElement(this); }
15
- };
16
-
17
- const postIconCss = ":host{container-name:post-icon;container-type:inline-size;display:inline-block;width:1em;height:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color}@container post-icon (max-width: 23.98px){svg{--pis-16: block}}@container post-icon (min-width: 24px) and (max-width: 31.98px){svg{--pis-24: block}}@container post-icon (min-width: 32px) and (max-width: 39.98px){svg{--pis-32: block}}@container post-icon (min-width: 40px) and (max-width: 47.98px){svg{--pis-40: block}}@container post-icon (min-width: 48px) and (max-width: 63.98px){svg{--pis-48: block}}@container post-icon (min-width: 64px){svg{--pis-64: block}}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
18
- const PostIconStyle0 = postIconCss;
19
-
20
- const CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';
21
- const ANIMATION_NAMES = [
22
- 'cylon',
23
- 'cylon-vertical',
24
- 'spin',
25
- 'spin-reverse',
26
- 'fade',
27
- 'throb',
28
- ];
29
- const ANIMATION_KEYS = [...ANIMATION_NAMES];
30
- const PostIcon = class {
31
- constructor(hostRef) {
32
- registerInstance(this, hostRef);
33
- this.animation = null;
34
- this.base = null;
35
- this.flipH = false;
36
- this.flipV = false;
37
- this.name = undefined;
38
- this.rotate = null;
39
- this.scale = null;
40
- }
41
- validateAnimation(newValue = this.animation) {
42
- if (newValue !== undefined)
43
- checkEmptyOrOneOf(newValue, ANIMATION_KEYS, `The post-icon "animation" prop requires one of the following values: ${ANIMATION_KEYS.join(', ')}.`);
44
- }
45
- validateBase(newValue = this.base) {
46
- checkEmptyOrType(newValue, 'string', 'The post-icon "base" prop should be a string.');
47
- }
48
- validateFlipH(newValue = this.flipH) {
49
- checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipH" prop should be a boolean.');
50
- }
51
- validateFlipV(newValue = this.flipV) {
52
- checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipV" prop should be a boolean.');
53
- }
54
- validateName(newValue = this.name) {
55
- checkNonEmpty(newValue, 'The post-icon "name" prop is required!.');
56
- checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
57
- }
58
- validateRotate(newValue = this.rotate) {
59
- checkEmptyOrType(newValue, 'number', 'The post-icon "rotate" prop should be a number.');
60
- }
61
- validateScale(newValue = this.scale) {
62
- checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
63
- }
64
- getPath() {
65
- var _a, _b, _c, _d, _e, _f;
66
- // Construct icon path from different possible sources
67
- const metaBase = (_b = (_a = document.head
68
- .querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
69
- const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
70
- const fileBase = `${(_f = (_e = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase) !== null && _e !== void 0 ? _e : baseHref) !== null && _f !== void 0 ? _f : CDN_URL}/`.replace(/\/\/$/, '/');
71
- const fileName = `${this.name}.svg#i-${this.name}`;
72
- const filePath = `${fileBase}${fileName}`;
73
- return new URL(filePath, window.location.origin).toString();
74
- }
75
- getStyles() {
76
- return Object.entries({
77
- transform: (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
78
- (this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
79
- })
80
- .filter(([_key, value]) => value !== null)
81
- .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
82
- }
83
- componentDidLoad() {
84
- this.validateBase();
85
- this.validateName();
86
- this.validateFlipH();
87
- this.validateFlipV();
88
- this.validateScale();
89
- this.validateRotate();
90
- this.validateAnimation();
91
- }
92
- render() {
93
- return (h(Host, { key: '1a04eea6f1039329937a9f58d64778c272088018', "data-version": version }, h("svg", { key: '843d95a54a58f839bfa1031d2aa834c70fbc6f9e', style: this.getStyles() }, h("use", { key: 'e93c6a6fd50ebd4757c92c1ee02f9c8cd65a65b7', href: this.getPath() }))));
94
- }
95
- get host() { return getElement(this); }
96
- static get watchers() { return {
97
- "animation": ["validateAnimation"],
98
- "base": ["validateBase"],
99
- "flipH": ["validateFlipH"],
100
- "flipV": ["validateFlipV"],
101
- "name": ["validateName"],
102
- "rotate": ["validateRotate"],
103
- "scale": ["validateScale"]
104
- }; }
105
- };
106
- PostIcon.style = PostIconStyle0;
107
-
108
- const postLogoCss = ":host,.logo{display:inline-block}:host,:host .logo>svg,.logo,.logo .logo>svg{height:100%}.description{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";
109
- const PostLogoStyle0 = postLogoCss;
110
-
111
- const PostLogo = class {
112
- constructor(hostRef) {
113
- registerInstance(this, hostRef);
114
- this.url = undefined;
115
- }
116
- validateUrl() {
117
- checkEmptyOrUrl(this.url, 'The "url" property of the post-logo is invalid');
118
- }
119
- componentDidLoad() {
120
- this.validateUrl();
121
- this.checkDescription();
122
- }
123
- checkDescription() {
124
- if (!this.host.textContent) {
125
- console.warn('Be sure to add descriptive text in the post-logo to ensure good accessibility of the component.');
126
- }
127
- }
128
- render() {
129
- const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
130
- const LogoTag = logoLink ? 'a' : 'span';
131
- return (h(Host, { key: 'ec5f82baaa08c75a03808a6cda7a9971152a54d6', "data-version": version, slot: "post-logo" }, h(LogoTag, Object.assign({ key: 'ce6aeff4dfab0612376e4c6aa14c74c438213b5d', class: "logo" }, (logoLink ? { href: logoLink } : {})), h("span", { key: 'fa6f8ecaf3c3a4a8e60a8c8e2171dbd25d585ede', class: "description" }, h("slot", { key: '2dcff76129e8e054e58244b2aa77a5b51e059b6b', onSlotchange: () => this.checkDescription() })), h("svg", { key: '468282e3c21fb6cfc97fccee64298abe43542da5', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: 'd3f4e0a6a7372991ccef5be9fad206cab2f553e7', id: "Logo" }, h("rect", { key: '3f17ddd240131ce23faf1e73a76ca4f702b029d7', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '1b714023d9e587a57571fd86a9515701ec77f993', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: 'b4064875cbad1263ac2278613fdf5db8d1697c2a', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
132
- }
133
- get host() { return getElement(this); }
134
- static get watchers() { return {
135
- "url": ["validateUrl"]
136
- }; }
137
- };
138
- PostLogo.style = PostLogoStyle0;
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-e1b64755.js';
2
+ import { v as version } from './package-983f957d.js';
139
3
 
140
4
  /**
141
5
  * Custom positioning reference element.
@@ -1331,7 +1195,7 @@ function isOverflowElement(element) {
1331
1195
  overflowX,
1332
1196
  overflowY,
1333
1197
  display
1334
- } = getComputedStyle$1(element);
1198
+ } = getComputedStyle(element);
1335
1199
  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
1336
1200
  }
1337
1201
  function isTableElement(element) {
@@ -1348,7 +1212,7 @@ function isTopLayer(element) {
1348
1212
  }
1349
1213
  function isContainingBlock(elementOrCss) {
1350
1214
  const webkit = isWebKit();
1351
- const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
1215
+ const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;
1352
1216
 
1353
1217
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1354
1218
  return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
@@ -1372,7 +1236,7 @@ function isWebKit() {
1372
1236
  function isLastTraversableNode(node) {
1373
1237
  return ['html', 'body', '#document'].includes(getNodeName(node));
1374
1238
  }
1375
- function getComputedStyle$1(element) {
1239
+ function getComputedStyle(element) {
1376
1240
  return getWindow(element).getComputedStyle(element);
1377
1241
  }
1378
1242
  function getNodeScroll(element) {
@@ -1430,7 +1294,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
1430
1294
  }
1431
1295
 
1432
1296
  function getCssDimensions(element) {
1433
- const css = getComputedStyle$1(element);
1297
+ const css = getComputedStyle(element);
1434
1298
  // In testing environments, the `width` and `height` properties are empty
1435
1299
  // strings for SVG elements, returning NaN. Fallback to `0` in this case.
1436
1300
  let width = parseFloat(css.width) || 0;
@@ -1535,7 +1399,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1535
1399
  while (currentIFrame && offsetParent && offsetWin !== currentWin) {
1536
1400
  const iframeScale = getScale(currentIFrame);
1537
1401
  const iframeRect = currentIFrame.getBoundingClientRect();
1538
- const css = getComputedStyle$1(currentIFrame);
1402
+ const css = getComputedStyle(currentIFrame);
1539
1403
  const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1540
1404
  const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1541
1405
  x *= iframeScale.x;
@@ -1615,7 +1479,7 @@ function getDocumentRect(element) {
1615
1479
  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1616
1480
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1617
1481
  const y = -scroll.scrollTop;
1618
- if (getComputedStyle$1(body).direction === 'rtl') {
1482
+ if (getComputedStyle(body).direction === 'rtl') {
1619
1483
  x += max(html.clientWidth, body.clientWidth) - width;
1620
1484
  }
1621
1485
  return {
@@ -1691,7 +1555,7 @@ function hasFixedPositionAncestor(element, stopNode) {
1691
1555
  if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1692
1556
  return false;
1693
1557
  }
1694
- return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1558
+ return getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
1695
1559
  }
1696
1560
 
1697
1561
  // A "clipping ancestor" is an `overflow` element with the characteristic of
@@ -1704,12 +1568,12 @@ function getClippingElementAncestors(element, cache) {
1704
1568
  }
1705
1569
  let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
1706
1570
  let currentContainingBlockComputedStyle = null;
1707
- const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
1571
+ const elementIsFixed = getComputedStyle(element).position === 'fixed';
1708
1572
  let currentNode = elementIsFixed ? getParentNode(element) : element;
1709
1573
 
1710
1574
  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
1711
1575
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1712
- const computedStyle = getComputedStyle$1(currentNode);
1576
+ const computedStyle = getComputedStyle(currentNode);
1713
1577
  const currentNodeIsContaining = isContainingBlock(currentNode);
1714
1578
  if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
1715
1579
  currentContainingBlockComputedStyle = null;
@@ -1800,11 +1664,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1800
1664
  }
1801
1665
 
1802
1666
  function isStaticPositioned(element) {
1803
- return getComputedStyle$1(element).position === 'static';
1667
+ return getComputedStyle(element).position === 'static';
1804
1668
  }
1805
1669
 
1806
1670
  function getTrueOffsetParent(element, polyfill) {
1807
- if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1671
+ if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {
1808
1672
  return null;
1809
1673
  }
1810
1674
  if (polyfill) {
@@ -1856,7 +1720,7 @@ const getElementRects = async function (data) {
1856
1720
  };
1857
1721
 
1858
1722
  function isRTL(element) {
1859
- return getComputedStyle$1(element).direction === 'rtl';
1723
+ return getComputedStyle(element).direction === 'rtl';
1860
1724
  }
1861
1725
 
1862
1726
  const platform = {
@@ -2175,34 +2039,40 @@ const computePosition = (reference, floating, options) => {
2175
2039
  }
2176
2040
  `,E=null;function I(e){if(E===null)try{E=new CSSStyleSheet,E.replaceSync(C);}catch{E=!1;}if(E===!1){let t=document.createElement("style");t.textContent=C,e instanceof Document?e.head.prepend(t):e.prepend(t);}else e.adoptedStyleSheets=[E,...e.adoptedStyleSheets];}function K(){window.ToggleEvent=window.ToggleEvent||c;function e(n){return n?.includes(":popover-open")&&(n=n.replace(J,"$1.\\:popover-open")),n}f(Document.prototype,"querySelector",e),f(Document.prototype,"querySelectorAll",e),f(Element.prototype,"querySelector",e),f(Element.prototype,"querySelectorAll",e),f(Element.prototype,"matches",e),f(Element.prototype,"closest",e),f(DocumentFragment.prototype,"querySelectorAll",e),f(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let n=(this.getAttribute("popover")||"").toLowerCase();return n===""||n=="auto"?"auto":"manual"},set(n){this.setAttribute("popover",n);}},showPopover:{enumerable:!0,configurable:!0,value(){S(this);}},hidePopover:{enumerable:!0,configurable:!0,value(){m(this,!0,!0);}},togglePopover:{enumerable:!0,configurable:!0,value(n){h.get(this)==="showing"&&n===void 0||n===!1?m(this,!0,!0):(n===void 0||n===!0)&&S(this);}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(n){let s=t.call(this,n);return I(s),s}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let n=o.call(this);return n.shadowRoot&&I(n.shadowRoot),n}}});let r=new WeakMap;function i(n){Object.defineProperties(n.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else if(s instanceof Element)this.setAttribute("popovertarget",""),r.set(this,s);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;let u=v(this),w=this.getAttribute("popovertarget");return (u instanceof Document||u instanceof B)&&w&&u.getElementById(w)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s);}}});}i(HTMLButtonElement),i(HTMLInputElement);let l=n=>{if(!n.isTrusted)return;let s=n.composedPath()[0];if(!(s instanceof Element)||s?.shadowRoot)return;let u=v(s);if(!(u instanceof B||u instanceof Document))return;let w=s.closest("[popovertargetaction],[popovertarget]");if(w){O(w),n.preventDefault();return}},a=n=>{let s=n.key,u=n.target;!n.defaultPrevented&&u&&(s==="Escape"||s==="Esc")&&T(u.ownerDocument,!0,!0);};(n=>{n.addEventListener("click",l),n.addEventListener("keydown",a),n.addEventListener("pointerdown",x),n.addEventListener("pointerup",x);})(document),I(document);}j()||K();})();
2177
2041
 
2178
- const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";
2042
+ const postPopovercontainerCss = "@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:where(post-popovercontainer)>div{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);width:max-content;display:flex;align-items:center;max-width:100%;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px}:where(post-popovercontainer)>div.animate-pop-in{animation:popIn .25s ease-out forwards}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer)[safe-space]::after{content:\"\";position:fixed;inset:0;z-index:-1;pointer-events:auto}:where(post-popovercontainer)[safe-space=triangle]::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:where(post-popovercontainer)[safe-space=trapezoid]::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:where(post-popovercontainer):has(.arrow)>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top)>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left)>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right)>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}";
2179
2043
  const PostPopovercontainerStyle0 = postPopovercontainerCss;
2180
2044
 
2181
- const SIDE_MAP = {
2182
- top: 'bottom',
2183
- right: 'left',
2184
- bottom: 'top',
2185
- left: 'right',
2186
- };
2187
2045
  const PostPopovercontainer = class {
2188
2046
  constructor(hostRef) {
2189
2047
  registerInstance(this, hostRef);
2190
2048
  this.postToggle = createEvent(this, "postToggle", 7);
2191
2049
  this.placement = 'top';
2192
2050
  this.edgeGap = 8;
2051
+ this.animation = null;
2193
2052
  this.arrow = false;
2053
+ this.safeSpace = undefined;
2054
+ }
2055
+ /**
2056
+ * Updates cursor position for safe space feature when popover is open.
2057
+ * Sets CSS custom properties for dynamic styling of safe area.
2058
+ * @param event MouseEvent with cursor position
2059
+ */
2060
+ mouseTrackingHandler(event) {
2061
+ this.host.style.setProperty('--post-safe-space-cursor-x', `${event.clientX}px`);
2062
+ this.host.style.setProperty('--post-safe-space-cursor-y', `${event.clientY}px`);
2194
2063
  }
2195
2064
  componentDidLoad() {
2196
2065
  this.host.setAttribute('popover', '');
2197
2066
  this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
2198
2067
  }
2199
2068
  disconnectedCallback() {
2200
- if (typeof this.clearAutoUpdate === 'function')
2069
+ if (typeof this.clearAutoUpdate === 'function') {
2201
2070
  this.clearAutoUpdate();
2071
+ }
2202
2072
  }
2203
2073
  /**
2204
- * Programmatically display the tooltip
2205
- * @param target An element with [data-tooltip-target="id"] where the tooltip should be shown
2074
+ * Programmatically display the popovercontainer
2075
+ * @param target An element with [data-popover-target="id"] where the popovercontainer should be shown
2206
2076
  */
2207
2077
  async show(target) {
2208
2078
  if (!this.toggleTimeoutId) {
@@ -2212,7 +2082,7 @@ const PostPopovercontainer = class {
2212
2082
  }
2213
2083
  }
2214
2084
  /**
2215
- * Programmatically hide this tooltip
2085
+ * Programmatically hide the popovercontainer
2216
2086
  */
2217
2087
  async hide() {
2218
2088
  if (!this.toggleTimeoutId) {
@@ -2221,8 +2091,8 @@ const PostPopovercontainer = class {
2221
2091
  }
2222
2092
  }
2223
2093
  /**
2224
- * Toggle tooltip display
2225
- * @param target An element with [data-tooltip-target="id"] where the tooltip should be shown
2094
+ * Toggle popovercontainer display
2095
+ * @param target An element with [data-popover-target="id"] where the popovercontainer should be shown
2226
2096
  * @param force Pass true to always show or false to always hide
2227
2097
  */
2228
2098
  async toggle(target, force) {
@@ -2233,11 +2103,11 @@ const PostPopovercontainer = class {
2233
2103
  this.host.togglePopover(force);
2234
2104
  this.toggleTimeoutId = null;
2235
2105
  }
2236
- return this.host.matches(':where(:popover-open, .popover-open');
2106
+ return this.host.matches(':where(:popover-open, .popover-open)');
2237
2107
  }
2238
2108
  /**
2239
- * Start or stop auto updates based on tooltip events.
2240
- * Tooltips can be closed or opened with other methods than class members,
2109
+ * Start or stop auto updates based on popovercontainer events.
2110
+ * Popovercontainers can be closed or opened with other methods than class members,
2241
2111
  * therefore listening to the toggle event is safer for cleaning up.
2242
2112
  * @param e ToggleEvent
2243
2113
  */
@@ -2246,29 +2116,54 @@ const PostPopovercontainer = class {
2246
2116
  const isOpen = e.newState === 'open';
2247
2117
  if (isOpen) {
2248
2118
  this.startAutoupdates();
2119
+ if (this.safeSpace)
2120
+ window.addEventListener('mousemove', this.mouseTrackingHandler.bind(this));
2249
2121
  }
2250
2122
  else {
2251
2123
  if (typeof this.clearAutoUpdate === 'function')
2252
2124
  this.clearAutoUpdate();
2125
+ if (this.safeSpace)
2126
+ window.removeEventListener('mousemove', this.mouseTrackingHandler.bind(this));
2253
2127
  }
2254
2128
  this.postToggle.emit(isOpen);
2255
2129
  }
2256
2130
  /**
2257
2131
  * Start listening for DOM updates, scroll events etc. that have
2258
- * an influence on tooltip positioning
2132
+ * an influence on popovercontainer positioning
2259
2133
  */
2260
2134
  startAutoupdates() {
2261
2135
  this.clearAutoUpdate = autoUpdate(this.eventTarget, this.host, this.calculatePosition.bind(this));
2262
2136
  }
2263
2137
  async calculatePosition() {
2138
+ const { x, y, middlewareData, placement } = await this.computeMainPosition();
2139
+ const currentPlacement = placement.split('-')[0];
2140
+ // Position popover
2141
+ this.host.style.left = `${x}px`;
2142
+ this.host.style.top = `${y}px`;
2143
+ // Position arrow if enabled
2144
+ if (this.arrow && middlewareData.arrow) {
2145
+ const { x: arrowX, y: arrowY } = middlewareData.arrow;
2146
+ const staticSide = PostPopovercontainer.STATIC_SIDES[currentPlacement];
2147
+ if (staticSide) {
2148
+ Object.assign(this.arrowRef.style, {
2149
+ left: arrowX ? `${arrowX}px` : '',
2150
+ top: arrowY ? `${arrowY}px` : '',
2151
+ [staticSide]: '-7px',
2152
+ });
2153
+ }
2154
+ }
2155
+ // Handle safe space if enabled
2156
+ if (this.safeSpace && this.eventTarget) {
2157
+ await this.updateSafeSpaceBoundaries(currentPlacement);
2158
+ }
2159
+ }
2160
+ async computeMainPosition() {
2264
2161
  const gap = this.edgeGap;
2265
2162
  const middleware = [
2266
2163
  flip(),
2267
2164
  inline(),
2268
2165
  shift({
2269
2166
  padding: gap,
2270
- // Prevents shifting away from the anchor too far, while shifting as far as possible
2271
- // https://floating-ui.com/docs/shift#limiter
2272
2167
  limiter: limitShift({
2273
2168
  offset: 32,
2274
2169
  }),
@@ -2280,394 +2175,105 @@ const PostPopovercontainer = class {
2280
2175
  });
2281
2176
  },
2282
2177
  }),
2283
- offset(this.arrow ? gap + 4 : gap), // 4px outside of element to account for focus outline + ~arrow size
2178
+ offset(this.arrow ? gap + 4 : gap),
2284
2179
  ];
2285
2180
  if (this.arrow) {
2286
2181
  middleware.push(arrow({ element: this.arrowRef, padding: gap }));
2287
2182
  }
2288
- const { x, y, middlewareData, placement: currentPlacement, } = await computePosition(this.eventTarget, this.host, {
2183
+ return computePosition(this.eventTarget, this.host, {
2289
2184
  placement: this.placement || 'top',
2290
2185
  strategy: 'fixed',
2291
2186
  middleware,
2292
2187
  });
2293
- // Tooltip
2294
- this.host.style.left = `${x}px`;
2295
- this.host.style.top = `${y}px`;
2296
- // Arrow
2297
- if (this.arrow) {
2298
- // Tutorial: https://codesandbox.io/s/mystifying-kare-ee3hmh?file=/src/index.js
2299
- const side = currentPlacement.split('-')[0];
2300
- const { x: arrowX, y: arrowY } = middlewareData.arrow;
2301
- const staticSide = SIDE_MAP[side];
2302
- const offsetBorderLineJoin = 2;
2303
- Object.assign(this.arrowRef.style, {
2304
- top: arrowY ? `${arrowY}px` : '',
2305
- left: arrowX ? `${arrowX}px` : '',
2306
- [staticSide]: `${-this.arrowRef.offsetWidth / 2 - offsetBorderLineJoin}px`,
2307
- });
2308
- // Add position as a class to be able to style arrow for HCM
2309
- this.arrowRef.classList.remove(...Object.values(SIDE_MAP));
2310
- this.arrowRef.classList.add(staticSide);
2311
- }
2312
- }
2313
- render() {
2314
- return (h(Host, { key: 'b8be8594adfd503c47f85872508d5bbd3473cc5a', "data-version": version }, this.arrow && (h("span", { key: 'f046737966eb3b801af1e888555178543ea015eb', class: "arrow", ref: el => {
2315
- this.arrowRef = el;
2316
- } })), h("slot", { key: '5d478472a83442d47e4f16ff8121782c8e6a524b' })));
2317
- }
2318
- get host() { return getElement(this); }
2319
- };
2320
- PostPopovercontainer.style = PostPopovercontainerStyle0;
2321
-
2322
- const postListCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}";
2323
- const PostListStyle0 = postListCss;
2324
-
2325
- const PostList = class {
2326
- constructor(hostRef) {
2327
- registerInstance(this, hostRef);
2328
- this.titleId = undefined;
2329
- this.titleHidden = false;
2330
- this.horizontal = false;
2331
- }
2332
- componentWillLoad() {
2333
- /**
2334
- * Get the id set on the host element or use a random id by default
2335
- */
2336
- this.titleId = `list-${crypto.randomUUID()}`;
2337
- }
2338
- componentDidLoad() {
2339
- this.checkTitle();
2340
- }
2341
- checkTitle() {
2342
- if (!this.titleEl.textContent.trim()) {
2343
- throw new Error('Please provide a title to the list component. Title is mandatory for accessibility purposes.');
2344
- }
2345
- }
2346
- render() {
2347
- return (h(Host, { key: '017f05c43fa95bb93c856bbeddd5d26cbc2f4cfa', "data-version": version }, h("div", { key: '71fd7d32c761cecf7b4d5d5f39cedb3bf668a0cb', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, h("slot", { key: 'fe0e03d5d25f6a975e04be00549facae49a0970b' })), h("div", { key: 'bb717e4338396c86fa28dbf8236f5f185823f9be', role: "list", "aria-labelledby": this.titleId }, h("slot", { key: '7fd25cab433f5fbbafaa7ca01f42774823cbf579', name: "post-list-item" }))));
2348
- }
2349
- get host() { return getElement(this); }
2350
- };
2351
- PostList.style = PostListStyle0;
2352
-
2353
- const postListItemCss = ":host{display:flex}";
2354
- const PostListItemStyle0 = postListItemCss;
2355
-
2356
- const PostListItem = class {
2357
- constructor(hostRef) {
2358
- registerInstance(this, hostRef);
2359
- }
2360
- connectedCallback() {
2361
- this.host.setAttribute('slot', 'post-list-item');
2362
- }
2363
- render() {
2364
- return (h(Host, { key: 'bbf12424f2997b7d2e7cd9e272def0bf2838f94f', role: "listitem" }, h("slot", { key: '2ce4e71879485f16ad90dfddbd1b79512107bdb0' })));
2365
2188
  }
2366
- get host() { return getElement(this); }
2367
- };
2368
- PostListItem.style = PostListItemStyle0;
2369
-
2370
- /* eslint-disable no-undefined,no-param-reassign,no-shadow */
2371
-
2372
- /**
2373
- * Throttle execution of a function. Especially useful for rate limiting
2374
- * execution of handlers on events like resize and scroll.
2375
- *
2376
- * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
2377
- * are most useful.
2378
- * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
2379
- * as-is, to `callback` when the throttled-function is executed.
2380
- * @param {object} [options] - An object to configure options.
2381
- * @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
2382
- * while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
2383
- * one final time after the last throttled-function call. (After the throttled-function has not been called for
2384
- * `delay` milliseconds, the internal counter is reset).
2385
- * @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
2386
- * immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
2387
- * callback will never executed if both noLeading = true and noTrailing = true.
2388
- * @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
2389
- * false (at end), schedule `callback` to execute after `delay` ms.
2390
- *
2391
- * @returns {Function} A new, throttled, function.
2392
- */
2393
- function throttle (delay, callback, options) {
2394
- var _ref = options || {},
2395
- _ref$noTrailing = _ref.noTrailing,
2396
- noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
2397
- _ref$noLeading = _ref.noLeading,
2398
- noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
2399
- _ref$debounceMode = _ref.debounceMode,
2400
- debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
2401
- /*
2402
- * After wrapper has stopped being called, this timeout ensures that
2403
- * `callback` is executed at the proper times in `throttle` and `end`
2404
- * debounce modes.
2405
- */
2406
- var timeoutID;
2407
- var cancelled = false;
2408
-
2409
- // Keep track of the last time `callback` was executed.
2410
- var lastExec = 0;
2411
-
2412
- // Function to clear existing timeout
2413
- function clearExistingTimeout() {
2414
- if (timeoutID) {
2415
- clearTimeout(timeoutID);
2416
- }
2417
- }
2418
-
2419
- // Function to cancel next exec
2420
- function cancel(options) {
2421
- var _ref2 = options || {},
2422
- _ref2$upcomingOnly = _ref2.upcomingOnly,
2423
- upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
2424
- clearExistingTimeout();
2425
- cancelled = !upcomingOnly;
2426
- }
2427
-
2428
- /*
2429
- * The `wrapper` function encapsulates all of the throttling / debouncing
2430
- * functionality and when executed will limit the rate at which `callback`
2431
- * is executed.
2432
- */
2433
- function wrapper() {
2434
- for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
2435
- arguments_[_key] = arguments[_key];
2436
- }
2437
- var self = this;
2438
- var elapsed = Date.now() - lastExec;
2439
- if (cancelled) {
2440
- return;
2441
- }
2442
-
2443
- // Execute `callback` and update the `lastExec` timestamp.
2444
- function exec() {
2445
- lastExec = Date.now();
2446
- callback.apply(self, arguments_);
2447
- }
2448
-
2449
- /*
2450
- * If `debounceMode` is true (at begin) this is used to clear the flag
2451
- * to allow future `callback` executions.
2452
- */
2453
- function clear() {
2454
- timeoutID = undefined;
2455
- }
2456
- if (!noLeading && debounceMode && !timeoutID) {
2457
- /*
2458
- * Since `wrapper` is being called for the first time and
2459
- * `debounceMode` is true (at begin), execute `callback`
2460
- * and noLeading != true.
2461
- */
2462
- exec();
2463
- }
2464
- clearExistingTimeout();
2465
- if (debounceMode === undefined && elapsed > delay) {
2466
- if (noLeading) {
2467
- /*
2468
- * In throttle mode with noLeading, if `delay` time has
2469
- * been exceeded, update `lastExec` and schedule `callback`
2470
- * to execute after `delay` ms.
2471
- */
2472
- lastExec = Date.now();
2473
- if (!noTrailing) {
2474
- timeoutID = setTimeout(debounceMode ? clear : exec, delay);
2475
- }
2476
- } else {
2477
- /*
2478
- * In throttle mode without noLeading, if `delay` time has been exceeded, execute
2479
- * `callback`.
2480
- */
2481
- exec();
2482
- }
2483
- } else if (noTrailing !== true) {
2484
- /*
2485
- * In trailing throttle mode, since `delay` time has not been
2486
- * exceeded, schedule `callback` to execute `delay` ms after most
2487
- * recent execution.
2488
- *
2489
- * If `debounceMode` is true (at begin), schedule `clear` to execute
2490
- * after `delay` ms.
2491
- *
2492
- * If `debounceMode` is false (at end), schedule `callback` to
2493
- * execute after `delay` ms.
2494
- */
2495
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
2496
- }
2497
- }
2498
- wrapper.cancel = cancel;
2499
-
2500
- // Return the wrapper function.
2501
- return wrapper;
2502
- }
2503
-
2504
- const postHeaderCss = "*,::before,::after{box-sizing:border-box}:host{--global-header-height:72px;--main-header-height:56px;--header-height:calc(var(--global-header-height) + var(--main-header-height))}@media screen and (max-width: 1023.99px){:host{--global-header-height:64px}}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;align-items:center;position:sticky;padding-inline-start:4px;padding-inline-end:12px;height:var(--global-header-height)}@media screen and (max-width: 1023.99px){.global-header{top:0}}@media screen and (min-width: 1024px){.global-header{top:calc((var(--global-header-height) - 24px)*-1)}}slot[name=post-logo]{align-self:flex-end}.global-sub{display:flex;align-items:center;gap:2rem;height:var(--global-header-height)}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--global-header-height);width:var(--global-header-height);min-height:24px;align-self:flex-end}@media screen and (min-width: 1024px){.logo{height:calc(var(--global-header-height) - var(--header-scroll-top))}}::slotted(ul){margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}.title-header,.main-navigation{display:flex;align-items:center;padding-inline:12px;background:#fff}.title-header{height:var(--main-header-height);display:flex;align-items:center}@media screen and (max-width: 1023.99px){.title-header{border-bottom:1px solid #000}}:host(:not(:has([slot=title]))) .title-header{display:none}::slotted(h1){margin:0 !important;font-size:28px !important}.main-navigation{position:sticky;top:24px;height:var(--main-header-height)}@media screen and (min-width: 1024px){.main-navigation{border-bottom:1px solid #000}}@media screen and (max-width: 1023.99px){.main-navigation{display:none;position:absolute;top:var(--header-height);bottom:0;width:100%;background-color:#fff;height:auto}.main-navigation.extended{display:block}}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}";
2505
- const PostHeaderStyle0 = postHeaderCss;
2506
-
2507
- const PostHeader = class {
2508
- constructor(hostRef) {
2509
- registerInstance(this, hostRef);
2510
- this.scrollParent = null;
2511
- this.throttledScroll = () => this.handleScrollEvent();
2512
- this.throttledResize = throttle(50, () => this.handleResize());
2513
- this.device = null;
2514
- this.mobileMenuExtended = false;
2515
- }
2516
- componentWillRender() {
2517
- this.scrollParent = this.getScrollParent(this.host);
2518
- this.scrollParent.addEventListener('scroll', this.throttledScroll, { passive: true });
2519
- window.addEventListener('resize', this.throttledResize, { passive: true });
2520
- this.handleResize();
2521
- this.handleScrollEvent();
2522
- }
2523
- handlePostMainNavigationClosed() {
2524
- this.mobileMenuExtended = false;
2525
- }
2526
- handleScrollEvent() {
2527
- // Credits: "https://github.com/qeremy/so/blob/master/so.dom.js#L426"
2528
- const st = Math.max(0, this.scrollParent instanceof Document
2529
- ? this.scrollParent.documentElement.scrollTop
2530
- : this.scrollParent.scrollTop);
2531
- this.host.style.setProperty('--header-scroll-top', `${st}px`);
2532
- }
2533
- getScrollParent(node) {
2534
- let currentParent = node.parentElement;
2535
- while (currentParent) {
2536
- if (currentParent.nodeName === 'BODY') {
2537
- return document;
2189
+ async updateSafeSpaceBoundaries(currentPlacement) {
2190
+ const targetRect = this.eventTarget.getBoundingClientRect();
2191
+ const popoverRect = this.host.getBoundingClientRect();
2192
+ const isVertical = currentPlacement === 'top' || currentPlacement === 'bottom';
2193
+ // Helper function to get positioning data based on placement
2194
+ const getPositioningData = (placement, popoverRect, targetRect) => {
2195
+ if (placement === 'top' || placement === 'bottom') {
2196
+ return {
2197
+ popover: {
2198
+ y: placement === 'top' ? popoverRect.bottom : popoverRect.top,
2199
+ xStart: popoverRect.left,
2200
+ xEnd: popoverRect.right,
2201
+ },
2202
+ trigger: {
2203
+ y: placement === 'top' ? targetRect.top : targetRect.bottom,
2204
+ xStart: targetRect.left,
2205
+ xEnd: targetRect.right,
2206
+ },
2207
+ };
2538
2208
  }
2539
- if (this.isScrollable(currentParent)) {
2540
- return currentParent;
2209
+ else {
2210
+ // left or right
2211
+ return {
2212
+ popover: {
2213
+ x: placement === 'left' ? popoverRect.right : popoverRect.left,
2214
+ yStart: popoverRect.top,
2215
+ yEnd: popoverRect.bottom,
2216
+ },
2217
+ trigger: {
2218
+ x: placement === 'left' ? targetRect.left : targetRect.right,
2219
+ yStart: targetRect.top,
2220
+ yEnd: targetRect.bottom,
2221
+ },
2222
+ };
2541
2223
  }
2542
- currentParent = currentParent.parentElement;
2543
- }
2544
- return document;
2545
- }
2546
- isScrollable(node) {
2547
- if (!(node instanceof HTMLElement || node instanceof SVGElement)) {
2548
- return false;
2549
- }
2550
- const style = getComputedStyle(node);
2551
- return ['overflow', 'overflow-x', 'overflow-y'].some(propertyName => {
2552
- const value = style.getPropertyValue(propertyName);
2553
- return value === 'auto' || value === 'scroll';
2224
+ };
2225
+ const posData = getPositioningData(currentPlacement, popoverRect, targetRect);
2226
+ // Clear previous values
2227
+ PostPopovercontainer.PROPERTIES_TO_CLEAR.forEach(prop => {
2228
+ this.host.style.removeProperty(prop);
2554
2229
  });
2555
- }
2556
- handleResize() {
2557
- const width = window === null || window === void 0 ? void 0 : window.innerWidth;
2558
- if (width >= 1024) {
2559
- this.device = 'desktop';
2560
- this.mobileMenuExtended = false; // Close any open mobile menu
2561
- }
2562
- else if (width >= 600) {
2563
- this.device = 'tablet';
2230
+ if (isVertical) {
2231
+ // For top/bottom placement
2232
+ this.host.style.setProperty('--post-safe-space-popover-y', `${posData.popover.y}px`);
2233
+ this.host.style.setProperty('--post-safe-space-popover-x-start', `${posData.popover.xStart}px`);
2234
+ this.host.style.setProperty('--post-safe-space-popover-x-end', `${posData.popover.xEnd}px`);
2235
+ this.host.style.setProperty('--post-safe-space-trigger-y', `${posData.trigger.y}px`);
2236
+ this.host.style.setProperty('--post-safe-space-trigger-x-start', `${posData.trigger.xStart}px`);
2237
+ this.host.style.setProperty('--post-safe-space-trigger-x-end', `${posData.trigger.xEnd}px`);
2564
2238
  }
2565
2239
  else {
2566
- this.device = 'mobile';
2240
+ // For left/right placement
2241
+ this.host.style.setProperty('--post-safe-space-popover-x', `${posData.popover.x}px`);
2242
+ this.host.style.setProperty('--post-safe-space-popover-y-start', `${posData.popover.yStart}px`);
2243
+ this.host.style.setProperty('--post-safe-space-popover-y-end', `${posData.popover.yEnd}px`);
2244
+ this.host.style.setProperty('--post-safe-space-trigger-x', `${posData.trigger.x}px`);
2245
+ this.host.style.setProperty('--post-safe-space-trigger-y-start', `${posData.trigger.yStart}px`);
2246
+ this.host.style.setProperty('--post-safe-space-trigger-y-end', `${posData.trigger.yEnd}px`);
2567
2247
  }
2568
2248
  }
2569
- handleMobileMenuToggle() {
2570
- this.mobileMenuExtended = !this.mobileMenuExtended;
2571
- }
2572
2249
  render() {
2573
- const mainNavClasses = ['main-navigation'];
2574
- if (this.mobileMenuExtended) {
2575
- mainNavClasses.push('extended');
2576
- }
2577
- return (h(Host, { key: 'a09985740ff01e4f38e7bbe5e0b9012d77e7cba2', version: version }, h("div", { key: 'c612b90e757d916036bee002d7bba8abfeb19073', class: "global-header" }, h("div", { key: 'd11c51f756d1c7a8c0b4f3b9625cfbe8cae88435', class: "global-sub" }, h("div", { key: '43fb63bfe0350ffca0e44fd611bb6bbe6c3eef0c', class: "logo" }, h("slot", { key: '8d90d7f20b0fd6a7cbc93e5dd95ad8200c027822', name: "post-logo" }))), h("div", { key: 'b1bc83b4fcb3a0af6ffd99976af4acf454b3d29d', class: "global-sub" }, this.device === 'desktop' && h("slot", { key: 'bbe38f3e0d070bfd84e1656e7dd631816df0101c', name: "meta-navigation" }), h("slot", { key: 'b1483eea11ecdc9cddf122077cf0746d88f69239', name: "global-controls" }), this.device === 'desktop' && h("slot", { key: '785f557f30bffc5cd282a0505e9ffc7e3e6e1029', name: "post-language-switch" }), h("div", { key: 'f088ddb3df417929525b22a09fa3be113042e48f', onClick: () => this.handleMobileMenuToggle(), class: "mobile-toggle" }, h("slot", { key: 'de65884a443290e057ed911289818d5a323f5a9c', name: "post-togglebutton" })))), h("div", { key: '56ebdec46003a6ead4f3710dc9c0f60e9a86ed8d', class: "title-header d-flex space-between align-center" }, h("slot", { key: '8e61e4711ea8018e51fd11c5b5faa30a1ad9445c', name: "title" }), h("div", { key: '4d762d1f4d3f45470d52af167c7f4a71651e7970', class: "global-sub" }, h("slot", { key: 'c8c5b73b1fa0e665a7133ae8db0212ef8948ba29', name: "local-controls" }), h("slot", { key: '212640155af85dfab34182ab236bfe72456e77b1' }))), h("div", { key: 'c4004d443fd546fac8a2651482725fae99c2db6c', class: mainNavClasses.join(' ') }, h("slot", { key: '783787f85d25d9e42d96213ae77f6c689f872b70', name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (h("slot", { key: '04cfd7d09d03ab85ac9c12f9c3d6cb31fbb65fc2', name: "meta-navigation" })), (this.device === 'mobile' || this.device === 'tablet') && (h("slot", { key: '117e76f18fdc93493115428e1cd0d6a119c7a652', name: "post-language-switch" })))));
2250
+ const animationClass = this.animation ? `animate-${this.animation}` : '';
2251
+ return (h(Host, { key: '98ea26b46803e8aa98cc2cec53798d994c0ff856', "data-version": version }, h("div", { key: '230fa7df2963b36e67a4559f07010f7213240e3c', class: animationClass }, this.arrow && (h("span", { key: '58647eb14ef84ff04b04b7dec0bbb38b9bcd4b69', class: "arrow", ref: el => {
2252
+ this.arrowRef = el;
2253
+ } })), h("slot", { key: 'de0afc53f013ac7d4cdd06e0e2d7746a8e0971dc' }))));
2578
2254
  }
2579
2255
  get host() { return getElement(this); }
2580
2256
  };
2581
- PostHeader.style = PostHeaderStyle0;
2582
-
2583
- const postMainnavigationCss = "*,::before,::after{box-sizing:border-box}@media screen and (min-width: 1024px){slot[name=back-button],[slot=back-button]{display:none}}@media screen and (min-width: 1024px){h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}}post-mainnavigation{height:100%}:host{height:100%;display:block}.main-navigation{margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}@media screen and (max-width: 1023.99px){.main-navigation{flex-direction:column}}.main-navigation>post-list{display:flex;align-items:stretch;gap:1rem;height:100%}@media screen and (max-width: 1023.99px){.main-navigation>post-list{flex-direction:column}}.main-navigation a,.main-navigation post-megadropdown-toggle{height:100%;display:flex;align-items:center}";
2584
- const PostMainnavigationStyle0 = postMainnavigationCss;
2585
-
2586
- const PostMainnavigation = class {
2587
- constructor(hostRef) {
2588
- registerInstance(this, hostRef);
2589
- this.postToggle = createEvent(this, "postToggle", 7);
2590
- }
2591
- handleMegadropdownToggled(event) {
2592
- // Find next element sibling
2593
- let megalodon;
2594
- let target = event.target;
2595
- while (target !== null) {
2596
- if (target.tagName === 'POST-MEGADROPDOWN') {
2597
- megalodon = target;
2598
- break;
2599
- }
2600
- target = target.nextElementSibling;
2601
- }
2602
- if (megalodon)
2603
- megalodon.toggle(event.target);
2604
- }
2605
- handleBackButtonClick() {
2606
- this.postToggle.emit();
2607
- }
2608
- render() {
2609
- return (h(Host, { key: '7179d087e93ab9e14dc21e16b52beaf965c53cd3', slot: "post-mainnavigation" }, h("div", { key: '2aede886c29972bf1dfebbe4513c4acf2e47c6ea', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '4697ec520be78fccee832a358b349f68081b2f54', name: "back-button" })), h("nav", { key: '5bae57025152af07b9d68a19a07b61d0149d31dc', class: "main-navigation" }, h("slot", { key: 'e2a73a4b814a39a7cb1f7733f87c3c588f484006' }))));
2610
- }
2611
- };
2612
- PostMainnavigation.style = PostMainnavigationStyle0;
2613
-
2614
- const postMegadropdownCss = "*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;width:100%;border-bottom:1px solid #000}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto}}.megadropdown{display:flex;gap:1rem;padding:1.5rem;border-radius:0 0 3px 3px}@media screen and (max-width: 1023.99px){.megadropdown{flex-direction:column}}.megadropdown post-list{display:flex;flex-direction:column;gap:.5rem}.megadropdown post-list-item{border-bottom:1px solid gray}.megadropdown post-list-item>a{padding-block:.25rem;display:block;text-decoration:none}.back-button{display:none}@media screen and (max-width: 1023.99px){.back-button{display:block}}post-closebutton{margin-left:auto}@media screen and (max-width: 1023.99px){post-closebutton{display:none}}h3{font-size:20px}";
2615
- const PostMegadropdownStyle0 = postMegadropdownCss;
2616
-
2617
- const PostMegadropdown = class {
2618
- constructor(hostRef) {
2619
- registerInstance(this, hostRef);
2620
- }
2621
- /**
2622
- * Show megadropdown
2623
- * @param element HTMLElement
2624
- * @returns boolean
2625
- */
2626
- async show(element) {
2627
- return this.popoverRef.show(element);
2628
- }
2629
- /**
2630
- * Hide megadropdown
2631
- * @returns boolean
2632
- */
2633
- async hide() {
2634
- return this.popoverRef.hide();
2635
- }
2636
- /**
2637
- * Toggle megadropdown
2638
- * @param element HTMLElement
2639
- * @param force boolean
2640
- * @returns boolean
2641
- */
2642
- async toggle(element, force) {
2643
- return this.popoverRef.toggle(element, force !== null && force !== void 0 ? force : undefined);
2644
- }
2645
- handleBackButtonClick() {
2646
- this.hide();
2647
- }
2648
- render() {
2649
- return (h(Host, { key: '9b8e17f4120259f55ed3dbce4780559cb8876540', slot: "post-mainnavigation" }, h("post-popovercontainer", { key: 'ac48d1fffbcdff5aa20d9f2f6fed9beb4dd3be23', placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, h("div", { key: 'af02d9fd35973b6d889b639f1d856dd3d9921ae1', class: "megadropdown" }, h("div", { key: '445aa9b1a04e63c0d2b17466c610a30662f3db0e', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '8d8f4cad3d5860fdfc1c615e7122ab5dd2ca5ed3', name: "back-button" })), h("slot", { key: 'c9ba8c0941f86fd29a44153e186cd679bcd678f5' })))));
2650
- }
2651
- };
2652
- PostMegadropdown.style = PostMegadropdownStyle0;
2653
-
2654
- const postMegadropdownTriggerCss = ":host{display:inline-block}";
2655
- const PostMegadropdownTriggerStyle0 = postMegadropdownTriggerCss;
2656
-
2657
- const PostMegadropdownTrigger = class {
2658
- constructor(hostRef) {
2659
- registerInstance(this, hostRef);
2660
- this.postToggle = createEvent(this, "postToggle", 7);
2661
- this.toggled = false;
2662
- }
2663
- handleClick() {
2664
- this.toggled = !this.toggled;
2665
- this.postToggle.emit();
2666
- }
2667
- render() {
2668
- return (h(Host, { key: 'd139b405fe28c7334c01eec4846a6f8b5bf1e261', slot: "post-megadropdown-trigger" }, h("button", { key: 'd3aee53488359a79764974d440d7a058d5d96873', "aria-expanded": this.toggled, onClick: () => this.handleClick() }, h("slot", { key: '7012055defbb7c8058481db5c4129919847010c6' }))));
2669
- }
2257
+ PostPopovercontainer.STATIC_SIDES = {
2258
+ top: 'bottom',
2259
+ right: 'left',
2260
+ bottom: 'top',
2261
+ left: 'right',
2670
2262
  };
2671
- PostMegadropdownTrigger.style = PostMegadropdownTriggerStyle0;
2263
+ PostPopovercontainer.PROPERTIES_TO_CLEAR = [
2264
+ '--post-safe-space-popover-x',
2265
+ '--post-safe-space-popover-y',
2266
+ '--post-safe-space-popover-x-start',
2267
+ '--post-safe-space-popover-x-end',
2268
+ '--post-safe-space-popover-y-start',
2269
+ '--post-safe-space-popover-y-end',
2270
+ '--post-safe-space-trigger-x',
2271
+ '--post-safe-space-trigger-y',
2272
+ '--post-safe-space-trigger-x-start',
2273
+ '--post-safe-space-trigger-x-end',
2274
+ '--post-safe-space-trigger-y-start',
2275
+ '--post-safe-space-trigger-y-end',
2276
+ ];
2277
+ PostPopovercontainer.style = PostPopovercontainerStyle0;
2672
2278
 
2673
- export { PostClosebutton as P, PostIcon as a, PostLogo as b, PostPopovercontainer as c, PostList as d, PostListItem as e, PostHeader as f, PostMainnavigation as g, PostMegadropdown as h, PostMegadropdownTrigger as i };
2279
+ export { PostPopovercontainer as P };