@swisspost/design-system-components 9.0.0-next.12 → 9.0.0-next.13

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 (337) hide show
  1. package/dist/.config/bindings.angular.js +4 -0
  2. package/dist/cjs/{attribute-observer-10f08c04.js → attribute-observer-6d8b886b.js} +4 -4
  3. package/dist/cjs/{check-one-of-f4f5d0c0.js → check-one-of-ef931478.js} +2 -1
  4. package/dist/cjs/{check-type-64af82a9.js → check-type-696d2c51.js} +4 -4
  5. package/dist/cjs/{check-url-3ffdd2fb.js → check-url-1cf6fb0d.js} +2 -1
  6. package/dist/cjs/{debounce-1151afe3.js → debounce-158fd76f.js} +2 -1
  7. package/dist/cjs/fade-72d5ef55.js +14 -0
  8. package/dist/cjs/{index-5d4e0aed.js → index-bea4ac42.js} +7 -5
  9. package/dist/cjs/index.cjs.js +27 -27
  10. package/dist/cjs/{package-0bd6fb0d.js → package-60e57542.js} +1 -1
  11. package/dist/cjs/{post-accordion-7aadd881.js → post-accordion-1e495c23.js} +5 -4
  12. package/dist/cjs/{post-accordion-item-bd033c7f.js → post-accordion-item-86b6950a.js} +6 -6
  13. package/dist/cjs/post-accordion-item.cjs.entry.js +6 -6
  14. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  15. package/dist/cjs/{post-avatar-5dbdf70d.js → post-avatar-067c033b.js} +7 -11
  16. package/dist/cjs/post-avatar.cjs.entry.js +2 -2
  17. package/dist/cjs/{post-back-to-top-71bc912c.js → post-back-to-top-7efd1066.js} +8 -7
  18. package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
  19. package/dist/cjs/{post-banner-d4e0c73c.js → post-banner-a6808d7d.js} +11 -6
  20. package/dist/cjs/post-banner.cjs.entry.js +7 -7
  21. package/dist/cjs/{post-breadcrumb-531c4f79.js → post-breadcrumb-b33abf67.js} +27 -26
  22. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +6 -6
  23. package/dist/cjs/post-breadcrumb.cjs.entry.js +4 -4
  24. package/dist/cjs/post-card-control-7867a104.js +283 -0
  25. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  26. package/dist/cjs/post-closebutton_15.cjs.entry.js +7 -7
  27. package/dist/cjs/{post-collapsible-trigger-02924200.js → post-collapsible-trigger-6affdc02.js} +37 -31
  28. package/dist/cjs/post-collapsible_2.cjs.entry.js +7 -7
  29. package/dist/cjs/{post-footer-96d7bd47.js → post-footer-330e8999.js} +11 -8
  30. package/dist/cjs/post-footer.cjs.entry.js +2 -2
  31. package/dist/cjs/{post-menu-item-3f73fb4d.js → post-menu-item-48191dfd.js} +6 -6
  32. package/dist/cjs/{post-popover-64195ffd.js → post-popover-27f3e9aa.js} +7 -5
  33. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  34. package/dist/cjs/{post-rating-bd27ebfc.js → post-rating-28904e91.js} +13 -3
  35. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  36. package/dist/cjs/post-tab-header-86b129ab.js +33 -0
  37. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  38. package/dist/cjs/{post-tab-panel-3eedcd19.js → post-tab-panel-94333a7e.js} +2 -2
  39. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  40. package/dist/cjs/{post-tabs-ea94b243.js → post-tabs-f8581050.js} +21 -16
  41. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  42. package/dist/cjs/{post-tag-1d75024b.js → post-tag-3a24c574.js} +3 -3
  43. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  44. package/dist/cjs/{post-togglebutton-876f7892.js → post-togglebutton-e7d697bf.js} +184 -106
  45. package/dist/cjs/{post-tooltip-e4ef3c7e.js → post-tooltip-8c87dfe3.js} +8 -7
  46. package/dist/cjs/post-tooltip.cjs.entry.js +7 -7
  47. package/dist/cjs/{slide-5d51abe8.js → slide-8ae17ee4.js} +4 -4
  48. package/dist/collection/animations/collapse.js +5 -5
  49. package/dist/collection/animations/fade.js +6 -2
  50. package/dist/collection/animations/slide.js +4 -4
  51. package/dist/collection/components/post-accordion/post-accordion.js +3 -1
  52. package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -3
  53. package/dist/collection/components/post-avatar/post-avatar.js +6 -9
  54. package/dist/collection/components/post-back-to-top/post-back-to-top.js +5 -3
  55. package/dist/collection/components/post-banner/post-banner.css +1 -1
  56. package/dist/collection/components/post-banner/post-banner.js +6 -0
  57. package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +24 -22
  58. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +4 -3
  59. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  60. package/dist/collection/components/post-card-control/post-card-control.js +43 -31
  61. package/dist/collection/components/post-closebutton/post-closebutton.js +1 -0
  62. package/dist/collection/components/post-collapsible/post-collapsible.js +9 -2
  63. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +19 -18
  64. package/dist/collection/components/post-footer/post-footer.js +1 -0
  65. package/dist/collection/components/post-header/post-header.css +1 -1
  66. package/dist/collection/components/post-header/post-header.js +9 -8
  67. package/dist/collection/components/post-icon/post-icon.js +51 -14
  68. package/dist/collection/components/post-language-option/post-language-option.js +5 -0
  69. package/dist/collection/components/post-language-switch/post-language-switch.js +2 -1
  70. package/dist/collection/components/post-list/post-list.js +2 -0
  71. package/dist/collection/components/post-list-item/post-list-item.js +1 -0
  72. package/dist/collection/components/post-logo/post-logo.js +2 -1
  73. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  74. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +6 -0
  75. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  76. package/dist/collection/components/post-megadropdown/post-megadropdown.js +14 -2
  77. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +6 -5
  78. package/dist/collection/components/post-menu/post-menu.js +42 -29
  79. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +13 -11
  80. package/dist/collection/components/post-popover/post-popover.css +1 -1
  81. package/dist/collection/components/post-popover/post-popover.js +4 -1
  82. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  83. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +9 -0
  84. package/dist/collection/components/post-rating/post-rating.js +12 -1
  85. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  86. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -0
  87. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -0
  88. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  89. package/dist/collection/components/post-tabs/post-tabs.js +16 -15
  90. package/dist/collection/components/post-tag/post-tag.css +1 -1
  91. package/dist/collection/components/post-tag/post-tag.js +1 -0
  92. package/dist/collection/components/post-togglebutton/post-togglebutton.js +11 -10
  93. package/dist/collection/components/post-tooltip/post-tooltip.js +5 -3
  94. package/dist/collection/utils/attribute-observer.js +4 -4
  95. package/dist/collection/utils/breakpoints.js +9 -6
  96. package/dist/collection/utils/component-on-ready.js +4 -4
  97. package/dist/collection/utils/debounce.js +2 -1
  98. package/dist/collection/utils/get-focusable-children.js +2 -2
  99. package/dist/collection/utils/property-checkers/check-one-of.js +2 -1
  100. package/dist/collection/utils/property-checkers/check-pattern.js +2 -1
  101. package/dist/collection/utils/property-checkers/check-type.js +4 -4
  102. package/dist/collection/utils/property-checkers/check-url.js +2 -1
  103. package/dist/collection/utils/property-checkers/empty-or.js +2 -1
  104. package/dist/collection/utils/sass-export.js +8 -5
  105. package/dist/components/attribute-observer.js +4 -4
  106. package/dist/components/check-one-of.js +2 -1
  107. package/dist/components/check-type.js +4 -4
  108. package/dist/components/debounce.js +2 -1
  109. package/dist/components/fade.js +6 -2
  110. package/dist/components/index2.js +6 -3
  111. package/dist/components/package.js +1 -1
  112. package/dist/components/post-accordion-item2.js +4 -4
  113. package/dist/components/post-accordion2.js +3 -2
  114. package/dist/components/post-avatar2.js +6 -10
  115. package/dist/components/post-back-to-top2.js +5 -4
  116. package/dist/components/post-banner2.js +7 -2
  117. package/dist/components/post-breadcrumb-item2.js +4 -4
  118. package/dist/components/post-breadcrumb2.js +24 -23
  119. package/dist/components/post-card-control2.js +44 -33
  120. package/dist/components/post-closebutton2.js +1 -1
  121. package/dist/components/post-collapsible-trigger2.js +19 -19
  122. package/dist/components/post-collapsible2.js +14 -8
  123. package/dist/components/post-footer2.js +10 -7
  124. package/dist/components/post-header2.js +10 -10
  125. package/dist/components/post-icon2.js +51 -15
  126. package/dist/components/post-language-option2.js +5 -1
  127. package/dist/components/post-language-switch2.js +2 -2
  128. package/dist/components/post-list-item2.js +1 -1
  129. package/dist/components/post-list2.js +2 -1
  130. package/dist/components/post-logo2.js +2 -2
  131. package/dist/components/post-mainnavigation2.js +7 -2
  132. package/dist/components/post-megadropdown-trigger2.js +6 -6
  133. package/dist/components/post-megadropdown2.js +15 -4
  134. package/dist/components/post-menu-trigger2.js +13 -12
  135. package/dist/components/post-menu2.js +44 -32
  136. package/dist/components/post-popover2.js +5 -3
  137. package/dist/components/post-popovercontainer2.js +10 -2
  138. package/dist/components/post-rating2.js +12 -2
  139. package/dist/components/post-tab-header2.js +2 -2
  140. package/dist/components/post-tab-panel2.js +1 -1
  141. package/dist/components/post-tabs2.js +19 -14
  142. package/dist/components/post-tag2.js +2 -2
  143. package/dist/components/post-togglebutton2.js +11 -11
  144. package/dist/components/post-tooltip2.js +5 -4
  145. package/dist/components/slide.js +4 -4
  146. package/dist/docs.json +3 -8
  147. package/dist/esm/{attribute-observer-37fa950a.js → attribute-observer-2f203993.js} +4 -4
  148. package/dist/esm/{check-one-of-6b3ef8eb.js → check-one-of-0d5858c0.js} +2 -1
  149. package/dist/esm/{check-type-8828dbe4.js → check-type-a6ccc9a3.js} +4 -4
  150. package/dist/esm/{check-url-a974431e.js → check-url-0bd876f7.js} +2 -1
  151. package/dist/esm/{debounce-abe98cc2.js → debounce-e54c7131.js} +2 -1
  152. package/dist/esm/fade-1f3cacf4.js +11 -0
  153. package/dist/esm/{index-b49c9904.js → index-d1bbbd88.js} +7 -5
  154. package/dist/esm/index.js +27 -27
  155. package/dist/esm/package-495dba42.js +3 -0
  156. package/dist/esm/{post-accordion-ca48eb18.js → post-accordion-48eb17c3.js} +6 -5
  157. package/dist/esm/{post-accordion-item-a461f2a7.js → post-accordion-item-e0893bb3.js} +7 -7
  158. package/dist/esm/post-accordion-item.entry.js +6 -6
  159. package/dist/esm/post-accordion.entry.js +3 -3
  160. package/dist/esm/{post-avatar-0da1a2e8.js → post-avatar-20cde806.js} +8 -12
  161. package/dist/esm/post-avatar.entry.js +2 -2
  162. package/dist/esm/{post-back-to-top-77471a90.js → post-back-to-top-e422c426.js} +9 -8
  163. package/dist/esm/post-back-to-top.entry.js +4 -4
  164. package/dist/esm/{post-banner-b0af5bd3.js → post-banner-7385397e.js} +12 -7
  165. package/dist/esm/post-banner.entry.js +7 -7
  166. package/dist/esm/{post-breadcrumb-85ffd02f.js → post-breadcrumb-39203792.js} +28 -27
  167. package/dist/esm/post-breadcrumb-item_2.entry.js +6 -6
  168. package/dist/esm/post-breadcrumb.entry.js +4 -4
  169. package/dist/esm/post-card-control-d2c25c96.js +281 -0
  170. package/dist/esm/post-card-control.entry.js +3 -3
  171. package/dist/esm/post-closebutton_15.entry.js +7 -7
  172. package/dist/esm/{post-collapsible-trigger-883db3bf.js → post-collapsible-trigger-2f9ad9a5.js} +38 -32
  173. package/dist/esm/post-collapsible_2.entry.js +7 -7
  174. package/dist/esm/{post-footer-7b0eb067.js → post-footer-e804a967.js} +12 -9
  175. package/dist/esm/post-footer.entry.js +2 -2
  176. package/dist/esm/{post-menu-item-37f637a3.js → post-menu-item-f9793958.js} +7 -7
  177. package/dist/esm/{post-popover-c24ecd38.js → post-popover-8205412a.js} +8 -6
  178. package/dist/esm/post-popover.entry.js +3 -3
  179. package/dist/esm/{post-rating-e1c66e5c.js → post-rating-95ecb434.js} +14 -4
  180. package/dist/esm/post-rating.entry.js +2 -2
  181. package/dist/esm/post-tab-header-d520b99a.js +31 -0
  182. package/dist/esm/post-tab-header.entry.js +2 -2
  183. package/dist/esm/{post-tab-panel-73b56a16.js → post-tab-panel-8c8d2332.js} +3 -3
  184. package/dist/esm/post-tab-panel.entry.js +2 -2
  185. package/dist/esm/{post-tabs-02e523b8.js → post-tabs-dd6dfe43.js} +22 -17
  186. package/dist/esm/post-tabs.entry.js +3 -3
  187. package/dist/esm/{post-tag-43aba068.js → post-tag-593813a4.js} +4 -4
  188. package/dist/esm/post-tag.entry.js +2 -2
  189. package/dist/esm/{post-togglebutton-c2231709.js → post-togglebutton-120df903.js} +185 -107
  190. package/dist/esm/{post-tooltip-8271950c.js → post-tooltip-a13d6fbb.js} +9 -8
  191. package/dist/esm/post-tooltip.entry.js +7 -7
  192. package/dist/esm/{slide-3422b8a3.js → slide-62768431.js} +4 -4
  193. package/dist/post-components/index.esm.js +1 -1
  194. package/dist/post-components/p-0b613350.js +1 -0
  195. package/dist/post-components/p-1fda117c.js +1 -0
  196. package/dist/post-components/p-20e1b680.js +1 -0
  197. package/dist/post-components/p-29bc8ddc.entry.js +1 -0
  198. package/dist/post-components/p-2b4c7ec7.entry.js +1 -0
  199. package/dist/post-components/p-2f327006.entry.js +1 -0
  200. package/dist/post-components/p-3632ace7.js +1 -0
  201. package/dist/post-components/p-3a978ea9.entry.js +1 -0
  202. package/dist/post-components/{p-33b64e0c.js → p-3d4fdde0.js} +1 -1
  203. package/dist/post-components/p-427132e3.entry.js +1 -0
  204. package/dist/post-components/p-445dfa96.js +1 -0
  205. package/dist/post-components/p-4af6dbed.js +1 -0
  206. package/dist/post-components/p-4c0c13a9.js +1 -0
  207. package/dist/post-components/{p-e2f886ab.js → p-4fc83a1c.js} +2 -2
  208. package/dist/post-components/p-5384e6f4.js +1 -0
  209. package/dist/post-components/p-5630677a.entry.js +1 -0
  210. package/dist/post-components/p-5e5ee06d.entry.js +1 -0
  211. package/dist/post-components/p-64e3de38.js +1 -0
  212. package/dist/post-components/p-68c43ef0.entry.js +1 -0
  213. package/dist/post-components/p-6e39bb59.entry.js +1 -0
  214. package/dist/post-components/p-6fede961.js +1 -0
  215. package/dist/post-components/p-72a5ee9b.js +1 -0
  216. package/dist/post-components/p-72d9d594.entry.js +1 -0
  217. package/dist/post-components/p-85bf673e.entry.js +1 -0
  218. package/dist/post-components/p-8decb072.entry.js +1 -0
  219. package/dist/post-components/p-92f8803c.entry.js +1 -0
  220. package/dist/post-components/p-9596c7d6.js +1 -0
  221. package/dist/post-components/p-9748a355.js +1 -0
  222. package/dist/post-components/p-975b30f5.js +1 -0
  223. package/dist/post-components/p-9a50697e.entry.js +1 -0
  224. package/dist/post-components/p-a72cb18c.js +1 -0
  225. package/dist/post-components/p-aaca7ca7.js +1 -0
  226. package/dist/post-components/p-ac2189b7.js +1 -0
  227. package/dist/post-components/p-afe3b28e.js +1 -0
  228. package/dist/post-components/p-b129c166.js +1 -0
  229. package/dist/post-components/p-bd49bb7e.entry.js +1 -0
  230. package/dist/post-components/p-c043686c.entry.js +1 -0
  231. package/dist/post-components/p-c8544b65.js +1 -0
  232. package/dist/post-components/p-c9f65844.entry.js +1 -0
  233. package/dist/post-components/{p-c510d968.entry.js → p-d6449a93.entry.js} +1 -1
  234. package/dist/post-components/p-f7c5b0c2.js +1 -0
  235. package/dist/post-components/post-components.esm.js +1 -1
  236. package/dist/types/animations/collapse.d.ts +2 -2
  237. package/dist/types/animations/fade.d.ts +2 -2
  238. package/dist/types/animations/slide.d.ts +2 -2
  239. package/dist/types/components/post-icon/post-icon.d.ts +1 -1
  240. package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
  241. package/dist/types/components.d.ts +2 -2
  242. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/bindings.angular.d.ts +2 -0
  243. package/dist/types/utils/attribute-observer.d.ts +1 -1
  244. package/dist/types/utils/component-on-ready.d.ts +1 -1
  245. package/dist/types/utils/get-focusable-children.d.ts +1 -1
  246. package/dist/types/utils/sass-export.d.ts +5 -1
  247. package/loaders/attribute-observer.js +4 -4
  248. package/loaders/check-one-of.js +2 -1
  249. package/loaders/check-type.js +4 -4
  250. package/loaders/debounce.js +2 -1
  251. package/loaders/fade.js +6 -2
  252. package/loaders/index2.js +6 -3
  253. package/loaders/package.js +1 -1
  254. package/loaders/post-accordion-item2.js +4 -4
  255. package/loaders/post-accordion.js +3 -2
  256. package/loaders/post-avatar.js +6 -10
  257. package/loaders/post-back-to-top.js +5 -4
  258. package/loaders/post-banner.js +7 -2
  259. package/loaders/post-breadcrumb-item2.js +4 -4
  260. package/loaders/post-breadcrumb.js +24 -23
  261. package/loaders/post-card-control.js +44 -33
  262. package/loaders/post-closebutton.js +1 -1
  263. package/loaders/post-collapsible-trigger2.js +19 -19
  264. package/loaders/post-collapsible2.js +14 -8
  265. package/loaders/post-footer.js +10 -7
  266. package/loaders/post-header.js +10 -10
  267. package/loaders/post-icon2.js +51 -15
  268. package/loaders/post-language-option.js +5 -1
  269. package/loaders/post-language-switch.js +2 -2
  270. package/loaders/post-list-item.js +1 -1
  271. package/loaders/post-list.js +2 -1
  272. package/loaders/post-logo.js +2 -2
  273. package/loaders/post-mainnavigation.js +7 -2
  274. package/loaders/post-megadropdown-trigger.js +6 -6
  275. package/loaders/post-megadropdown.js +15 -4
  276. package/loaders/post-menu-trigger2.js +13 -12
  277. package/loaders/post-menu2.js +44 -32
  278. package/loaders/post-popover.js +5 -3
  279. package/loaders/post-popovercontainer2.js +10 -2
  280. package/loaders/post-rating.js +12 -2
  281. package/loaders/post-tab-header.js +2 -2
  282. package/loaders/post-tab-panel.js +1 -1
  283. package/loaders/post-tabs.js +19 -14
  284. package/loaders/post-tag.js +2 -2
  285. package/loaders/post-togglebutton.js +11 -11
  286. package/loaders/post-tooltip.js +5 -4
  287. package/loaders/slide.js +4 -4
  288. package/package.json +13 -9
  289. package/dist/cjs/fade-35a3633a.js +0 -10
  290. package/dist/cjs/post-card-control-332f6f1f.js +0 -272
  291. package/dist/cjs/post-tab-header-1f057694.js +0 -33
  292. package/dist/esm/fade-7fd71785.js +0 -7
  293. package/dist/esm/package-f8f7bb40.js +0 -3
  294. package/dist/esm/post-card-control-3225eb57.js +0 -270
  295. package/dist/esm/post-tab-header-6a9b0153.js +0 -31
  296. package/dist/post-components/p-025688e5.js +0 -1
  297. package/dist/post-components/p-08b51b35.entry.js +0 -1
  298. package/dist/post-components/p-24c92608.js +0 -1
  299. package/dist/post-components/p-25a57971.js +0 -1
  300. package/dist/post-components/p-2737eaf5.js +0 -1
  301. package/dist/post-components/p-2cb4a8f1.js +0 -1
  302. package/dist/post-components/p-34d70cd5.js +0 -1
  303. package/dist/post-components/p-350f3900.entry.js +0 -1
  304. package/dist/post-components/p-35bc4554.js +0 -1
  305. package/dist/post-components/p-38b259a4.entry.js +0 -1
  306. package/dist/post-components/p-3c6cef1e.entry.js +0 -1
  307. package/dist/post-components/p-4a713cf8.js +0 -1
  308. package/dist/post-components/p-4b5e2b24.js +0 -1
  309. package/dist/post-components/p-515e0f96.js +0 -1
  310. package/dist/post-components/p-5467b223.js +0 -1
  311. package/dist/post-components/p-54e58fc2.entry.js +0 -1
  312. package/dist/post-components/p-637759d6.js +0 -1
  313. package/dist/post-components/p-6adeaa6c.js +0 -1
  314. package/dist/post-components/p-7589a19f.js +0 -1
  315. package/dist/post-components/p-7cce7342.entry.js +0 -1
  316. package/dist/post-components/p-819e19de.js +0 -1
  317. package/dist/post-components/p-82d48128.js +0 -1
  318. package/dist/post-components/p-85171893.entry.js +0 -1
  319. package/dist/post-components/p-882fdd0c.entry.js +0 -1
  320. package/dist/post-components/p-94399c69.js +0 -1
  321. package/dist/post-components/p-9a02b162.entry.js +0 -1
  322. package/dist/post-components/p-b1f5bc26.js +0 -1
  323. package/dist/post-components/p-b2f239a1.entry.js +0 -1
  324. package/dist/post-components/p-b571e5c8.js +0 -1
  325. package/dist/post-components/p-ba530822.js +0 -1
  326. package/dist/post-components/p-bae1c85f.entry.js +0 -1
  327. package/dist/post-components/p-bdabdec5.js +0 -1
  328. package/dist/post-components/p-c1225174.entry.js +0 -1
  329. package/dist/post-components/p-c372a141.entry.js +0 -1
  330. package/dist/post-components/p-c87c5d59.entry.js +0 -1
  331. package/dist/post-components/p-d04c1b7f.entry.js +0 -1
  332. package/dist/post-components/p-da300843.entry.js +0 -1
  333. package/dist/post-components/p-fec04a15.entry.js +0 -1
  334. /package/dist/post-components/{p-4a3f67ab.js → p-8562c7dc.js} +0 -0
  335. /package/dist/post-components/{p-611b3c41.js → p-bacd3e2c.js} +0 -0
  336. /package/dist/post-components/{p-b22656b1.js → p-cb9ab938.js} +0 -0
  337. /package/dist/post-components/{p-d4f93f2b.js → p-e1baac59.js} +0 -0
@@ -3,7 +3,7 @@ import { v as version } from './package.js';
3
3
  import { g as getAttributeObserver } from './attribute-observer.js';
4
4
  import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
5
5
 
6
- const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
6
+ const postPopoverCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:#999}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
7
7
  const PostPopoverStyle0 = postPopoverCss;
8
8
 
9
9
  /**
@@ -19,7 +19,7 @@ const globalToggleHandler = (e) => {
19
19
  if (!popoverTarget || ('key' in e && e.key !== 'Enter'))
20
20
  return;
21
21
  const popover = document.getElementById(popoverTarget);
22
- popover === null || popover === void 0 ? void 0 : popover.toggle(target);
22
+ popover?.toggle(target);
23
23
  };
24
24
  // Initialize a mutation observer for patching accessibility features
25
25
  const triggerObserver = getAttributeObserver(popoverTargetAttribute, trigger => {
@@ -27,6 +27,9 @@ const triggerObserver = getAttributeObserver(popoverTargetAttribute, trigger =>
27
27
  trigger.setAttribute('aria-expanded', force ? 'false' : null);
28
28
  });
29
29
  const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends HTMLElement {
30
+ popoverRef;
31
+ localBeforeToggleHandler;
32
+ get host() { return this; }
30
33
  constructor() {
31
34
  super();
32
35
  this.__registerHost();
@@ -98,7 +101,6 @@ const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends H
98
101
  render() {
99
102
  return (h(Host, { key: 'c2f53a7ac9d6bbcca8c220d9b8a5ed0dda360cf9', "data-version": version }, h("post-popovercontainer", { key: 'fa5a32cfd4263fcabed5405f2b6bb2ab0ca93c9a', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '4799da001d006a47d93be1393618744a0b393841', class: "popover-container" }, h("div", { key: '7a28ea59e07591c8b835dd10157bc5e9b85793c6', class: "popover-content" }, h("slot", { key: '1ba6533577817d1fc2b7762654b5639596b16422' })), h("button", { key: 'f1446964325e49b79bc0fe26a05bb4f12a140c61', class: "btn-close", onClick: () => this.hide() }, h("span", { key: 'dd056bb988df548e8cae61ba226c1d9e124bc32b', class: "visually-hidden" }, this.closeButtonCaption))))));
100
103
  }
101
- get host() { return this; }
102
104
  static get style() { return PostPopoverStyle0; }
103
105
  }, [1, "post-popover", {
104
106
  "placement": [1],
@@ -2103,7 +2103,7 @@ const computePosition = (reference, floating, options) => {
2103
2103
  }
2104
2104
  `,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();})();
2105
2105
 
2106
- 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);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;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)}";
2106
+ 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);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;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):not(:has(.arrow)){box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12)}:where(post-popovercontainer):has(.arrow){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){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){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){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-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)}";
2107
2107
  const PostPopovercontainerStyle0 = postPopovercontainerCss;
2108
2108
 
2109
2109
  const SIDE_MAP = {
@@ -2121,6 +2121,15 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2121
2121
  this.edgeGap = 8;
2122
2122
  this.arrow = false;
2123
2123
  }
2124
+ get host() { return this; }
2125
+ arrowRef;
2126
+ eventTarget;
2127
+ clearAutoUpdate;
2128
+ toggleTimeoutId;
2129
+ /**
2130
+ * Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
2131
+ */
2132
+ postToggle;
2124
2133
  componentDidLoad() {
2125
2134
  this.host.setAttribute('popover', '');
2126
2135
  this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
@@ -2244,7 +2253,6 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2244
2253
  this.arrowRef = el;
2245
2254
  } })), h("slot", { key: '61dd3072a5217099028e3dd4b22fa845ea2f5970' })));
2246
2255
  }
2247
- get host() { return this; }
2248
2256
  static get style() { return PostPopovercontainerStyle0; }
2249
2257
  }, [4, "post-popovercontainer", {
2250
2258
  "placement": [1],
@@ -6,13 +6,24 @@ const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technol
6
6
  const PostRatingStyle0 = postRatingCss;
7
7
 
8
8
  const PostRating = /*@__PURE__*/ proxyCustomElement(class PostRating extends HTMLElement {
9
+ hasChanged = false;
10
+ get host() { return this; }
11
+ /**
12
+ * An event emitted whenever the component's value has changed (on input).
13
+ * The event payload can be used like so: `event.detail.value`.
14
+ */
15
+ postInput;
16
+ /**
17
+ * An event emitted whenever the component's value has changed (on blur).
18
+ * The event payload can be used like so: `event.detail.value`.
19
+ */
20
+ postChange;
9
21
  constructor() {
10
22
  super();
11
23
  this.__registerHost();
12
24
  this.__attachShadow();
13
25
  this.postInput = createEvent(this, "postInput", 7);
14
26
  this.postChange = createEvent(this, "postChange", 7);
15
- this.hasChanged = false;
16
27
  this.hoveredIndex = undefined;
17
28
  this.label = 'Rating';
18
29
  this.stars = 5;
@@ -82,7 +93,6 @@ const PostRating = /*@__PURE__*/ proxyCustomElement(class PostRating extends HTM
82
93
  'after-active': i > this.hoveredIndex && i < this.currentRating,
83
94
  }, onClick: () => this.update(i + 1), onMouseEnter: e => this.hoverHandler(i, e), onMouseLeave: e => this.hoverHandler(i, e) }, h("post-icon", { name: "2062", class: "stroke" }), h("post-icon", { name: "2574", class: "fill" })))))));
84
95
  }
85
- get host() { return this; }
86
96
  static get style() { return PostRatingStyle0; }
87
97
  }, [1, "post-rating", {
88
98
  "label": [1],
@@ -3,7 +3,7 @@ import { v as version } from './package.js';
3
3
  import { c as checkNonEmpty } from './check-non-empty.js';
4
4
  import { n as nanoid } from './index.browser.js';
5
5
 
6
- const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}";
6
+ const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:#000;text-decoration:none;background-color:rgba(0,0,0,0)}.tab-title[role=tab]:focus{background-color:unset;color:#000}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(0,0,0,.6);color:#fff}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(0,0,0,.6);color:#fff;box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:#fff;color:#000;font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:var(--post-core-dimension-4);background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:var(--post-core-dimension-2) solid Highlight;outline-offset:calc(var(--post-core-dimension-4)*-1)}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button}";
7
7
  const PostTabHeaderStyle0 = postTabHeaderCss;
8
8
 
9
9
  const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader extends HTMLElement {
@@ -14,6 +14,7 @@ const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader exten
14
14
  this.tabId = undefined;
15
15
  this.panel = undefined;
16
16
  }
17
+ get host() { return this; }
17
18
  validateFor(newValue) {
18
19
  checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
19
20
  }
@@ -23,7 +24,6 @@ const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader exten
23
24
  render() {
24
25
  return (h(Host, { key: '9b12878498f63da83113c081f81a749b4ee47ef4', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '3a2e7f3657110d707b49af911e9dd3a4ef323e36' })));
25
26
  }
26
- get host() { return this; }
27
27
  static get watchers() { return {
28
28
  "panel": ["validateFor"]
29
29
  }; }
@@ -13,6 +13,7 @@ const PostTabPanel = /*@__PURE__*/ proxyCustomElement(class PostTabPanel extends
13
13
  this.panelId = undefined;
14
14
  this.name = undefined;
15
15
  }
16
+ get host() { return this; }
16
17
  componentWillLoad() {
17
18
  // get the id set on the host element or use a random id by default
18
19
  this.panelId = `panel-${this.host.id || nanoid(6)}`;
@@ -20,7 +21,6 @@ const PostTabPanel = /*@__PURE__*/ proxyCustomElement(class PostTabPanel extends
20
21
  render() {
21
22
  return (h(Host, { key: '9e8f9c5dc0c1c3d1b7e63cbb9e9cbb0cf116da9b', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '3ece42346845324cfa0fb9af5721efab2b71e2f1' })));
22
23
  }
23
- get host() { return this; }
24
24
  static get style() { return PostTabPanelStyle0; }
25
25
  }, [1, "post-tab-panel", {
26
26
  "name": [1],
@@ -6,7 +6,7 @@ import { f as fadeOut, a as fadeIn } from './fade.js';
6
6
  * Invoke the `componentOnReady` method if it is available, simulate it otherwise
7
7
  * @see https://stenciljs.com/docs/api#componentonready
8
8
  */
9
- const componentOnReady = (el) => {
9
+ function componentOnReady(el) {
10
10
  if (typeof el.componentOnReady === 'function') {
11
11
  return el.componentOnReady();
12
12
  }
@@ -15,15 +15,15 @@ const componentOnReady = (el) => {
15
15
  resolve(el);
16
16
  }));
17
17
  }
18
- };
19
- const customOnReady = (callback) => {
18
+ }
19
+ function customOnReady(callback) {
20
20
  if (typeof requestAnimationFrame === 'function') {
21
21
  return requestAnimationFrame(callback);
22
22
  }
23
23
  return setTimeout(callback);
24
- };
24
+ }
25
25
 
26
- const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}";
26
+ const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}";
27
27
  const PostTabsStyle0 = postTabsCss;
28
28
 
29
29
  const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLElement {
@@ -32,17 +32,25 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
32
32
  this.__registerHost();
33
33
  this.__attachShadow();
34
34
  this.postChange = createEvent(this, "postChange", 7);
35
- this.isLoaded = false;
36
35
  this.activePanel = undefined;
37
36
  }
37
+ activeTab;
38
+ showing;
39
+ hiding;
40
+ isLoaded = false;
38
41
  get tabs() {
39
42
  return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
40
43
  }
44
+ get host() { return this; }
45
+ /**
46
+ * An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
47
+ * The payload is the name of the newly shown panel.
48
+ */
49
+ postChange;
41
50
  componentDidLoad() {
42
- var _a;
43
51
  this.moveMisplacedTabs();
44
52
  this.enableTabs();
45
- const initiallyActivePanel = this.activePanel || ((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
53
+ const initiallyActivePanel = this.activePanel || this.tabs[0]?.panel;
46
54
  void this.show(initiallyActivePanel);
47
55
  this.isLoaded = true;
48
56
  }
@@ -51,9 +59,8 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
51
59
  * Any other panel that was previously shown becomes hidden and its associated tab is unselected.
52
60
  */
53
61
  async show(panelName) {
54
- var _a;
55
62
  // do nothing if the tab is already active
56
- if (panelName === ((_a = this.activeTab) === null || _a === void 0 ? void 0 : _a.panel)) {
63
+ if (panelName === this.activeTab?.panel) {
57
64
  return;
58
65
  }
59
66
  const previousTab = this.activeTab;
@@ -87,7 +94,6 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
87
94
  });
88
95
  }
89
96
  enableTabs() {
90
- var _a;
91
97
  if (!this.tabs)
92
98
  return;
93
99
  this.tabs.forEach(async (tab) => {
@@ -114,7 +120,7 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
114
120
  });
115
121
  // if the currently active tab was removed from the DOM then select the first one
116
122
  if (this.activeTab && !this.activeTab.isConnected) {
117
- void this.show((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
123
+ void this.show(this.tabs[0]?.panel);
118
124
  }
119
125
  }
120
126
  activateTab(tab) {
@@ -166,9 +172,8 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
166
172
  nextTab.focus();
167
173
  }
168
174
  render() {
169
- return (h(Host, { key: '27b5f90f8b6d8f0d3688b3c965fa666df5f8edab', "data-version": version }, h("div", { key: '4d811e26c2bed4abc63e89517dca0f6fd9f701c3', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'd740301189c1335c3d76520d6a5bfe3e75789d4a', class: "tabs", role: "tablist" }, h("slot", { key: '9b3dc7e7d05b8577dfb480d684cf423a8adc2a23', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'fe219c0eaad3c67bea5a47f0690a8bdda0c739aa', class: "tab-content", part: "content" }, h("slot", { key: '80d8eb9fe9292e4c2486fded48928ffc9c5219bf', onSlotchange: () => this.moveMisplacedTabs() }))));
175
+ return (h(Host, { key: '697174a68f4eedabd9170bcad93e60539f0dc778', "data-version": version }, h("div", { key: 'ae39c8fd62edd28113dea0f013ffdd3a76bea739', class: "tabs-wrapper", part: "tabs" }, h("div", { key: 'a638044b8b6ab2d3c2d6e6b59a2e9a02fd137e0d', class: "tabs", role: "tablist" }, h("slot", { key: '2ea6eb60f7d1edcc59eea994cc2fde91c900c286', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '6900fd1914df01fbe5901378611ed0a359bc13f6', class: "tab-content", part: "content" }, h("slot", { key: '464bb9fa7450ddd22517a0e41f692876d6e8bf5b', onSlotchange: () => this.moveMisplacedTabs() }))));
170
176
  }
171
- get host() { return this; }
172
177
  static get style() { return PostTabsStyle0; }
173
178
  }, [1, "post-tabs", {
174
179
  "activePanel": [1, "active-panel"],
@@ -2,10 +2,11 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { v as version } from './package.js';
3
3
  import { d as defineCustomElement$1 } from './post-icon2.js';
4
4
 
5
- const postTagCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:var(--post-contrast-color)}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
5
+ const postTagCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.tag,.tag:where(:has(:not(pre))){--post-tag-bg:hsl(0, 0%, 90%);--post-tag-fg:#000;display:inline-flex;align-items:center;gap:var(--post-core-dimension-4);padding:0 var(--post-core-dimension-8);max-width:100%;background-color:var(--post-tag-bg);border:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-radius:var(--post-core-dimension-4);font-size:1rem;line-height:calc(var(--post-core-dimension-32) - var(--post-core-dimension-1)*2);white-space:nowrap;color:var(--post-tag-fg)}.tag post-icon,.tag:where(:has(:not(pre))) post-icon{flex:0 0 auto;width:1.25rem;height:1.25rem}.tag .tag-text,.tag:where(:has(:not(pre))) .tag-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag .tag-text svg,.tag .tag-text img,.tag:where(:has(:not(pre))) .tag-text svg,.tag:where(:has(:not(pre))) .tag-text img{display:inline-block;height:1.25rem !important;vertical-align:text-top}.tag.tag-sm,.tag:where(:has(:not(pre))).tag-sm{line-height:var(--post-core-dimension-24)}.tag.tag-sm .tag-icon,.tag:where(:has(:not(pre))).tag-sm .tag-icon{width:1rem;height:1rem}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{--post-tag-bg:#fff;--post-tag-fg:#000}.tag.tag-yellow,.tag:where(:has(:not(pre))).tag-yellow{--post-tag-bg:#fc0;--post-tag-fg:#000}.tag.tag-success,.tag:where(:has(:not(pre))).tag-success{--post-tag-bg:#2c871d;--post-tag-fg:#fff}.tag.tag-warning,.tag:where(:has(:not(pre))).tag-warning{--post-tag-bg:#f49e00;--post-tag-fg:#000}.tag.tag-danger,.tag:where(:has(:not(pre))).tag-danger{--post-tag-bg:#a51728;--post-tag-fg:#fff}.tag.tag-info,.tag:where(:has(:not(pre))).tag-info{--post-tag-bg:#cce4ee;--post-tag-fg:#000}.tag.tag-white,.tag:where(:has(:not(pre))).tag-white{border-color:#000}pre .tag,pre .tag:where(:has(:not(pre))){display:inline;padding:initial;max-width:initial;background:initial;border:initial;border-radius:initial;font-size:inherit;line-height:inherit;white-space:unset}*,*:before,*:after{box-sizing:border-box}.tag-text ::slotted(svg),.tag-text ::slotted(img){display:inline-block !important;height:1.25rem !important;vertical-align:text-top !important}";
6
6
  const PostTagStyle0 = postTagCss;
7
7
 
8
8
  const PostTag = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLElement {
9
+ get host() { return this; }
9
10
  constructor() {
10
11
  super();
11
12
  this.__registerHost();
@@ -37,7 +38,6 @@ const PostTag = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLEleme
37
38
  render() {
38
39
  return (h(Host, { key: 'cda93c397ec81e289c843eaae7694bbba6f3c297', "data-version": version }, h("div", { key: '7fa71d9c0ca5393bc188e5e09107ec931943ed66', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: '8d36933c00910e9f36759d101f43b628c0fbf185', class: "tag-text" }, h("slot", { key: '49e2e9dd66cb85df4615c512d8dc0d7cad6606b8' })))));
39
40
  }
40
- get host() { return this; }
41
41
  static get watchers() { return {
42
42
  "variant": ["variantChanged"],
43
43
  "size": ["sizeChanged"]
@@ -10,18 +10,9 @@ const PostTogglebutton = /*@__PURE__*/ proxyCustomElement(class PostTogglebutton
10
10
  super();
11
11
  this.__registerHost();
12
12
  this.__attachShadow();
13
- this.handleClick = () => {
14
- this.toggled = !this.toggled;
15
- };
16
- this.handleKeydown = (event) => {
17
- // perform a click when enter or spaced are pressed to mimic the button behavior
18
- if (event.key === 'Enter' || event.key === ' ') {
19
- event.preventDefault(); // prevents the page from scrolling when space is pressed
20
- this.host.click();
21
- }
22
- };
23
13
  this.toggled = false;
24
14
  }
15
+ get host() { return this; }
25
16
  validateToggled(value = this.toggled) {
26
17
  checkType(value, 'boolean', 'The "toggled" property of the post-togglebutton must be a boolean.');
27
18
  }
@@ -31,10 +22,19 @@ const PostTogglebutton = /*@__PURE__*/ proxyCustomElement(class PostTogglebutton
31
22
  this.host.addEventListener('click', () => this.handleClick());
32
23
  this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
33
24
  }
25
+ handleClick = () => {
26
+ this.toggled = !this.toggled;
27
+ };
28
+ handleKeydown = (event) => {
29
+ // perform a click when enter or spaced are pressed to mimic the button behavior
30
+ if (event.key === 'Enter' || event.key === ' ') {
31
+ event.preventDefault(); // prevents the page from scrolling when space is pressed
32
+ this.host.click();
33
+ }
34
+ };
34
35
  render() {
35
36
  return (h(Host, { key: '461f72ebada75a99921b7a166f67f2547aa6465e', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: 'cd5f4cc4df687cceacb3ea6c125b7b62f01b2712' })));
36
37
  }
37
- get host() { return this; }
38
38
  static get watchers() { return {
39
39
  "toggled": ["validateToggled"]
40
40
  }; }
@@ -4812,7 +4812,7 @@ const globalInterestHandler = (e) => {
4812
4812
  const tooltip = document.getElementById(tooltipTarget);
4813
4813
  // Determine if the tooltip was triggered by a focus event
4814
4814
  const triggeredByFocus = e.type === 'focusin';
4815
- void (tooltip === null || tooltip === void 0 ? void 0 : tooltip.show(targetElement, triggeredByFocus));
4815
+ void tooltip?.show(targetElement, triggeredByFocus);
4816
4816
  if (hideTooltipTimeout) {
4817
4817
  window.clearTimeout(hideTooltipTimeout);
4818
4818
  hideTooltipTimeout = null;
@@ -4853,7 +4853,7 @@ const patchAccessibilityFeatures = (trigger) => {
4853
4853
  const describedBy = trigger.getAttribute('aria-describedby');
4854
4854
  const id = trigger.getAttribute(tooltipTargetAttribute);
4855
4855
  // Add tooltip to aria-describedby
4856
- if (!(describedBy === null || describedBy === void 0 ? void 0 : describedBy.includes(id))) {
4856
+ if (!describedBy?.includes(id)) {
4857
4857
  const newDescribedBy = describedBy ? `${describedBy} ${id}` : id;
4858
4858
  trigger.setAttribute('aria-describedby', newDescribedBy);
4859
4859
  }
@@ -4869,11 +4869,13 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
4869
4869
  super();
4870
4870
  this.__registerHost();
4871
4871
  this.__attachShadow();
4872
- this.wasOpenedByFocus = false;
4873
4872
  this.placement = 'top';
4874
4873
  this.arrow = true;
4875
4874
  this.delayed = false;
4876
4875
  }
4876
+ popoverRef;
4877
+ wasOpenedByFocus = false;
4878
+ get host() { return this; }
4877
4879
  validateDelayed() {
4878
4880
  checkEmptyOrType(this.delayed, 'boolean', 'The post-tooltip "delayed" property should be a boolean.');
4879
4881
  }
@@ -4991,7 +4993,6 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
4991
4993
  const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
4992
4994
  return (h(Host, { key: '492f3f8b1b323417304ffba6c93f277c18f5b3d8', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '1b25c36c8351f0471e9acdf1fdf3073fa59683da', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: '0c1f7d6c81e214155976d1fb6151ec0f97724724' }))));
4993
4995
  }
4994
- get host() { return this; }
4995
4996
  static get watchers() { return {
4996
4997
  "delayed": ["validateDelayed"]
4997
4998
  }; }
@@ -1,7 +1,7 @@
1
1
  const easing = 'ease';
2
2
  const duration = 500;
3
3
  const fill = 'forwards';
4
- const slideUp = (el, translateSize = '100%') => {
4
+ function slideUp(el, translateSize = '100%') {
5
5
  return el.animate([
6
6
  { transform: `translateY(${translateSize})` }, // Starting position (no translation)
7
7
  { transform: 'translateY(0)' }, // End position
@@ -10,8 +10,8 @@ const slideUp = (el, translateSize = '100%') => {
10
10
  easing,
11
11
  fill,
12
12
  });
13
- };
14
- const slideDown = (el, translateSize = '100%') => {
13
+ }
14
+ function slideDown(el, translateSize = '100%') {
15
15
  return el.animate([
16
16
  { transform: 'translateY(0)' }, // Starting position (no translation)
17
17
  { transform: `translateY(${translateSize})` }, // End position
@@ -20,6 +20,6 @@ const slideDown = (el, translateSize = '100%') => {
20
20
  easing,
21
21
  fill,
22
22
  });
23
- };
23
+ }
24
24
 
25
25
  export { slideDown as a, slideUp as s };
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-01-21T13:47:24",
2
+ "timestamp": "2025-01-27T13:58:50",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.19.2",
@@ -3788,14 +3788,9 @@
3788
3788
  "detail": "string",
3789
3789
  "bubbles": true,
3790
3790
  "complexType": {
3791
- "original": "HTMLPostTabPanelElement['name']",
3791
+ "original": "string",
3792
3792
  "resolved": "string",
3793
- "references": {
3794
- "HTMLPostTabPanelElement": {
3795
- "location": "global",
3796
- "id": "global::HTMLPostTabPanelElement"
3797
- }
3798
- }
3793
+ "references": {}
3799
3794
  },
3800
3795
  "cancelable": true,
3801
3796
  "composed": true,
@@ -1,9 +1,9 @@
1
- const getAttributeObserver = (attribute, handler) => {
1
+ function getAttributeObserver(attribute, handler) {
2
2
  /**
3
3
  * Handle attribute changes and childList changes from the observer
4
4
  * @param {MutationRecord[]} mutationList
5
5
  */
6
- const observerHandler = (mutationList) => {
6
+ function observerHandler(mutationList) {
7
7
  mutationList.forEach(mutation => {
8
8
  if (mutation.type === 'attributes' && mutation.attributeName === attribute) {
9
9
  handler(mutation.target);
@@ -17,9 +17,9 @@ const getAttributeObserver = (attribute, handler) => {
17
17
  });
18
18
  }
19
19
  });
20
- };
20
+ }
21
21
  // Initialize a mutation observer for patching accessibility features
22
22
  return new MutationObserver(observerHandler);
23
- };
23
+ }
24
24
 
25
25
  export { getAttributeObserver as g };
@@ -1,6 +1,7 @@
1
1
  function checkOneOf(value, possibleValues, error) {
2
- if (!possibleValues.includes(value))
2
+ if (!possibleValues.includes(value)) {
3
3
  throw new Error(error);
4
+ }
4
5
  }
5
6
 
6
7
  export { checkOneOf as c };
@@ -2,12 +2,12 @@ function checkType(value, type, error) {
2
2
  const typeIsArray = type === 'array';
3
3
  const valueIsArray = Array.isArray(value);
4
4
  if (typeIsArray || valueIsArray) {
5
- if (valueIsArray !== typeIsArray)
5
+ if (valueIsArray !== typeIsArray) {
6
6
  throw new Error(error);
7
+ }
7
8
  }
8
- else {
9
- if (typeof value !== type)
10
- throw new Error(error);
9
+ else if (typeof value !== type) {
10
+ throw new Error(error);
11
11
  }
12
12
  }
13
13
 
@@ -1,6 +1,7 @@
1
1
  function checkUrl(value, error) {
2
- if (typeof value !== 'string' && !(value instanceof URL))
2
+ if (typeof value !== 'string' && !(value instanceof URL)) {
3
3
  throw new Error(error);
4
+ }
4
5
  try {
5
6
  new URL(value);
6
7
  }
@@ -1,8 +1,9 @@
1
1
  function debounce(callback, timeout = 200) {
2
2
  let id;
3
3
  return (...args) => {
4
- if (id)
4
+ if (id) {
5
5
  clearTimeout(id);
6
+ }
6
7
  id = setTimeout(callback, timeout, ...args);
7
8
  };
8
9
  }
@@ -0,0 +1,11 @@
1
+ const fadeDuration = 200;
2
+ const fadedOutKeyframe = { opacity: '0' };
3
+ const fadedInKeyframe = { opacity: '1' };
4
+ function fadeIn(el) {
5
+ return el.animate([fadedOutKeyframe, fadedInKeyframe], { duration: fadeDuration });
6
+ }
7
+ function fadeOut(el) {
8
+ return el.animate([fadedInKeyframe, fadedOutKeyframe], { duration: fadeDuration });
9
+ }
10
+
11
+ export { fadeIn as a, fadeOut as f };
@@ -1,19 +1,21 @@
1
1
  import { E as EMPTY_VALUES } from './constants-8d548297.js';
2
- import { c as checkOneOf } from './check-one-of-6b3ef8eb.js';
3
- import { c as checkType } from './check-type-8828dbe4.js';
4
- import { c as checkUrl } from './check-url-a974431e.js';
2
+ import { c as checkOneOf } from './check-one-of-0d5858c0.js';
3
+ import { c as checkType } from './check-type-a6ccc9a3.js';
4
+ import { c as checkUrl } from './check-url-0bd876f7.js';
5
5
 
6
6
  function emptyOr(check) {
7
7
  return (...args) => {
8
8
  const value = args[0];
9
- if (!EMPTY_VALUES.some(v => v === value))
9
+ if (!EMPTY_VALUES.some(v => v === value)) {
10
10
  check(...args);
11
+ }
11
12
  };
12
13
  }
13
14
 
14
15
  function checkPattern(value, pattern, errorMessage) {
15
- if (typeof value !== 'string' || !pattern.test(value))
16
+ if (typeof value !== 'string' || !pattern.test(value)) {
16
17
  throw new Error(errorMessage);
18
+ }
17
19
  }
18
20
 
19
21
  const checkEmptyOrOneOf = emptyOr(checkOneOf);
package/dist/esm/index.js CHANGED
@@ -1,33 +1,33 @@
1
- export { P as PostAccordion } from './post-accordion-ca48eb18.js';
2
- export { P as PostAccordionItem } from './post-accordion-item-a461f2a7.js';
3
- export { P as PostAvatar } from './post-avatar-0da1a2e8.js';
4
- export { P as PostBackToTop } from './post-back-to-top-77471a90.js';
5
- export { P as PostBanner } from './post-banner-b0af5bd3.js';
6
- export { P as PostBreadcrumb } from './post-breadcrumb-85ffd02f.js';
7
- export { P as PostBreadcrumbItem, a as PostMenuItem } from './post-menu-item-37f637a3.js';
8
- export { P as PostCardControl } from './post-card-control-3225eb57.js';
9
- export { P as PostClosebutton, a as PostHeader, b as PostIcon, c as PostLanguageOption, d as PostLanguageSwitch, e as PostList, f as PostListItem, g as PostLogo, h as PostMainnavigation, i as PostMegadropdown, j as PostMegadropdownTrigger, k as PostMenu, l as PostMenuTrigger, m as PostPopovercontainer, n as PostTogglebutton } from './post-togglebutton-c2231709.js';
10
- export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-883db3bf.js';
11
- export { P as PostFooter } from './post-footer-7b0eb067.js';
12
- export { P as PostPopover } from './post-popover-c24ecd38.js';
13
- export { P as PostRating } from './post-rating-e1c66e5c.js';
14
- export { P as PostTabs } from './post-tabs-02e523b8.js';
15
- export { P as PostTabHeader } from './post-tab-header-6a9b0153.js';
16
- export { P as PostTabPanel } from './post-tab-panel-73b56a16.js';
17
- export { P as PostTag } from './post-tag-43aba068.js';
18
- export { P as PostTooltip } from './post-tooltip-8271950c.js';
1
+ export { P as PostAccordion } from './post-accordion-48eb17c3.js';
2
+ export { P as PostAccordionItem } from './post-accordion-item-e0893bb3.js';
3
+ export { P as PostAvatar } from './post-avatar-20cde806.js';
4
+ export { P as PostBackToTop } from './post-back-to-top-e422c426.js';
5
+ export { P as PostBanner } from './post-banner-7385397e.js';
6
+ export { P as PostBreadcrumb } from './post-breadcrumb-39203792.js';
7
+ export { P as PostBreadcrumbItem, a as PostMenuItem } from './post-menu-item-f9793958.js';
8
+ export { P as PostCardControl } from './post-card-control-d2c25c96.js';
9
+ export { P as PostClosebutton, a as PostHeader, b as PostIcon, c as PostLanguageOption, d as PostLanguageSwitch, e as PostList, f as PostListItem, g as PostLogo, h as PostMainnavigation, i as PostMegadropdown, j as PostMegadropdownTrigger, k as PostMenu, l as PostMenuTrigger, m as PostPopovercontainer, n as PostTogglebutton } from './post-togglebutton-120df903.js';
10
+ export { P as PostCollapsible, a as PostCollapsibleTrigger } from './post-collapsible-trigger-2f9ad9a5.js';
11
+ export { P as PostFooter } from './post-footer-e804a967.js';
12
+ export { P as PostPopover } from './post-popover-8205412a.js';
13
+ export { P as PostRating } from './post-rating-95ecb434.js';
14
+ export { P as PostTabs } from './post-tabs-dd6dfe43.js';
15
+ export { P as PostTabHeader } from './post-tab-header-d520b99a.js';
16
+ export { P as PostTabPanel } from './post-tab-panel-8c8d2332.js';
17
+ export { P as PostTag } from './post-tag-593813a4.js';
18
+ export { P as PostTooltip } from './post-tooltip-a13d6fbb.js';
19
19
  import './index-6bfe6554.js';
20
- import './package-f8f7bb40.js';
20
+ import './package-495dba42.js';
21
21
  import './heading-levels-5b7b4349.js';
22
- import './check-one-of-6b3ef8eb.js';
23
- import './index-b49c9904.js';
22
+ import './check-one-of-0d5858c0.js';
23
+ import './index-d1bbbd88.js';
24
24
  import './constants-8d548297.js';
25
- import './check-type-8828dbe4.js';
26
- import './check-url-a974431e.js';
25
+ import './check-type-a6ccc9a3.js';
26
+ import './check-url-0bd876f7.js';
27
27
  import './index.browser-51485f85.js';
28
28
  import './check-non-empty-58bd6b17.js';
29
- import './slide-3422b8a3.js';
30
- import './fade-7fd71785.js';
31
- import './debounce-abe98cc2.js';
29
+ import './slide-62768431.js';
30
+ import './fade-1f3cacf4.js';
31
+ import './debounce-e54c7131.js';
32
32
  import './get-root-7af2e0d1.js';
33
- import './attribute-observer-37fa950a.js';
33
+ import './attribute-observer-2f203993.js';
@@ -0,0 +1,3 @@
1
+ const version = "9.0.0-next.13";
2
+
3
+ export { version as v };