@swisspost/design-system-components 9.0.0-next.1 → 9.0.0-next.10

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 (451) hide show
  1. package/dist/cjs/check-type-64af82a9.js +16 -0
  2. package/dist/cjs/check-url-3ffdd2fb.js +14 -0
  3. package/dist/cjs/debounce-1151afe3.js +12 -0
  4. package/dist/cjs/get-root-7a3498ef.js +11 -0
  5. package/dist/cjs/{index-01f30442.js → index-5d4e0aed.js} +4 -27
  6. package/dist/cjs/{index-c15bd800.js → index-f1b08cdb.js} +45 -16
  7. package/dist/cjs/index.browser-2f65f583.js +15 -0
  8. package/dist/cjs/index.cjs.js +51 -24
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{package-c7d01968.js → package-aaec3cba.js} +1 -1
  11. package/dist/cjs/{post-accordion-e29956c4.js → post-accordion-85bf5e0a.js} +3 -3
  12. package/dist/cjs/post-accordion-item-957b3464.js +64 -0
  13. package/dist/cjs/post-accordion-item.cjs.entry.js +7 -4
  14. package/dist/cjs/post-accordion.cjs.entry.js +3 -3
  15. package/dist/cjs/post-avatar-58540591.js +148 -0
  16. package/dist/cjs/post-avatar.cjs.entry.js +13 -0
  17. package/dist/cjs/post-back-to-top-db5c7d01.js +75 -0
  18. package/dist/cjs/post-back-to-top.cjs.entry.js +15 -0
  19. package/dist/cjs/post-banner-727866d5.js +91 -0
  20. package/dist/cjs/post-banner.cjs.entry.js +19 -0
  21. package/dist/cjs/post-breadcrumb-cacca682.js +111 -0
  22. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +17 -0
  23. package/dist/cjs/post-breadcrumb.cjs.entry.js +13 -0
  24. package/dist/cjs/post-card-control-f5d72ddc.js +272 -0
  25. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  26. package/dist/cjs/post-closebutton_15.cjs.entry.js +34 -0
  27. package/dist/cjs/{post-collapsible-trigger-32549d33.js → post-collapsible-trigger-067d1f4c.js} +14 -26
  28. package/dist/cjs/post-collapsible_2.cjs.entry.js +8 -4
  29. package/dist/cjs/post-components.cjs.js +2 -2
  30. package/dist/cjs/post-footer-beeb36c8.js +84 -0
  31. package/dist/cjs/post-footer.cjs.entry.js +11 -0
  32. package/dist/cjs/post-menu-item-e0e214b9.js +69 -0
  33. package/dist/cjs/{post-popover-cfc1b31b.js → post-popover-7acbdf17.js} +4 -4
  34. package/dist/cjs/post-popover.cjs.entry.js +3 -3
  35. package/dist/cjs/{post-rating-b9b8b6f3.js → post-rating-ac1b9b3c.js} +4 -4
  36. package/dist/cjs/post-rating.cjs.entry.js +3 -3
  37. package/dist/cjs/post-tab-header-a3d28719.js +33 -0
  38. package/dist/cjs/post-tab-header.cjs.entry.js +4 -3
  39. package/dist/cjs/{post-tab-panel-300a0618.js → post-tab-panel-4562e265.js} +5 -4
  40. package/dist/cjs/post-tab-panel.cjs.entry.js +4 -3
  41. package/dist/cjs/{post-tabs-b06f799b.js → post-tabs-80f65e1d.js} +9 -7
  42. package/dist/cjs/post-tabs.cjs.entry.js +3 -3
  43. package/dist/cjs/post-tag-5741a78d.js +47 -0
  44. package/dist/cjs/post-tag.cjs.entry.js +3 -3
  45. package/dist/cjs/{post-popovercontainer-c0b86b11.js → post-togglebutton-245e33f1.js} +1082 -21
  46. package/dist/cjs/{post-tooltip-8d7e64f6.js → post-tooltip-cefce5e1.js} +31 -19
  47. package/dist/cjs/post-tooltip.cjs.entry.js +6 -4
  48. package/dist/cjs/slide-5d51abe8.js +28 -0
  49. package/dist/collection/animations/slide.js +23 -0
  50. package/dist/collection/collection-manifest.json +21 -3
  51. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  52. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  53. package/dist/collection/components/post-accordion-item/post-accordion-item.js +26 -9
  54. package/dist/collection/components/post-avatar/post-avatar.css +3 -0
  55. package/dist/collection/components/post-avatar/post-avatar.js +237 -0
  56. package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -0
  57. package/dist/collection/components/post-back-to-top/post-back-to-top.js +107 -0
  58. package/dist/collection/components/post-banner/banner-types.js +1 -0
  59. package/dist/collection/components/post-banner/post-banner.css +3 -0
  60. package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +41 -69
  61. package/dist/collection/components/post-breadcrumb/post-breadcrumb.css +3 -0
  62. package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +161 -0
  63. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -0
  64. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +93 -0
  65. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  66. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  67. package/dist/collection/components/post-closebutton/post-closebutton.js +12 -0
  68. package/dist/collection/components/post-collapsible/post-collapsible.js +5 -3
  69. package/dist/collection/components/post-footer/post-footer.css +1 -0
  70. package/dist/collection/components/post-footer/post-footer.js +75 -0
  71. package/dist/collection/components/post-header/post-header.css +1 -0
  72. package/dist/collection/components/post-header/post-header.js +172 -0
  73. package/dist/collection/components/post-icon/post-icon.js +22 -30
  74. package/dist/collection/components/post-language-option/post-language-option.css +3 -0
  75. package/dist/collection/components/post-language-option/post-language-option.js +219 -0
  76. package/dist/collection/components/post-language-switch/post-language-switch.css +1 -0
  77. package/dist/collection/components/post-language-switch/post-language-switch.js +163 -0
  78. package/dist/collection/components/post-language-switch/switch-variants.js +1 -0
  79. package/dist/collection/components/post-list/post-list.css +3 -0
  80. package/dist/collection/components/post-list/post-list.js +88 -0
  81. package/dist/collection/components/post-list-item/post-list-item.css +1 -0
  82. package/dist/collection/components/post-list-item/post-list-item.js +25 -0
  83. package/dist/collection/components/post-logo/post-logo.js +2 -2
  84. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -0
  85. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +52 -0
  86. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -0
  87. package/dist/collection/components/post-megadropdown/post-megadropdown.js +158 -0
  88. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -0
  89. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +104 -0
  90. package/dist/collection/components/post-menu/post-menu.css +3 -0
  91. package/dist/collection/components/post-menu/post-menu.js +280 -0
  92. package/dist/collection/components/post-menu-item/post-menu-item.js +8 -0
  93. package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +1 -0
  94. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +114 -0
  95. package/dist/collection/components/post-popover/post-popover.css +1 -1
  96. package/dist/collection/components/post-popover/post-popover.js +1 -1
  97. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  98. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +26 -6
  99. package/dist/collection/components/post-rating/post-rating.css +1 -1
  100. package/dist/collection/components/post-rating/post-rating.js +1 -1
  101. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  102. package/dist/collection/components/post-tab-header/post-tab-header.js +3 -2
  103. package/dist/collection/components/post-tab-panel/post-tab-panel.js +3 -2
  104. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  105. package/dist/collection/components/post-tabs/post-tabs.js +6 -4
  106. package/dist/collection/components/post-tag/post-tag.css +1 -1
  107. package/dist/collection/components/post-tag/post-tag.js +2 -2
  108. package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
  109. package/dist/collection/components/post-togglebutton/post-togglebutton.js +74 -0
  110. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  111. package/dist/collection/components/post-tooltip/post-tooltip.js +28 -12
  112. package/dist/collection/index.js +20 -2
  113. package/dist/collection/utils/breakpoints.js +46 -0
  114. package/dist/collection/utils/get-focusable-children.js +27 -0
  115. package/dist/components/debounce.js +10 -0
  116. package/dist/components/get-root.js +9 -0
  117. package/dist/components/index.browser.js +13 -0
  118. package/dist/components/index.js +20 -2
  119. package/dist/components/index2.js +1 -1
  120. package/dist/components/package.js +1 -1
  121. package/dist/components/post-accordion-item2.js +33 -13
  122. package/dist/components/post-accordion2.js +1 -1
  123. package/dist/components/post-avatar.d.ts +11 -0
  124. package/dist/components/post-avatar.js +6 -0
  125. package/dist/components/post-avatar2.js +173 -0
  126. package/dist/components/post-back-to-top.d.ts +11 -0
  127. package/dist/components/post-back-to-top.js +6 -0
  128. package/dist/components/post-back-to-top2.js +100 -0
  129. package/dist/components/post-banner.d.ts +11 -0
  130. package/dist/components/post-banner.js +6 -0
  131. package/dist/components/post-banner2.js +126 -0
  132. package/dist/components/post-breadcrumb-item.d.ts +11 -0
  133. package/dist/components/post-breadcrumb-item.js +6 -0
  134. package/dist/components/post-breadcrumb-item2.js +82 -0
  135. package/dist/components/post-breadcrumb.d.ts +11 -0
  136. package/dist/components/post-breadcrumb.js +6 -0
  137. package/dist/components/post-breadcrumb2.js +168 -0
  138. package/dist/components/post-card-control2.js +3 -3
  139. package/dist/components/post-closebutton.d.ts +11 -0
  140. package/dist/components/post-closebutton.js +6 -0
  141. package/dist/components/post-closebutton2.js +34 -0
  142. package/dist/components/post-collapsible-trigger2.js +2 -17
  143. package/dist/components/post-collapsible2.js +6 -4
  144. package/dist/components/post-footer.d.ts +11 -0
  145. package/dist/components/post-footer.js +6 -0
  146. package/dist/components/post-footer2.js +124 -0
  147. package/dist/components/post-header.d.ts +11 -0
  148. package/dist/components/post-header.js +6 -0
  149. package/dist/components/post-header2.js +279 -0
  150. package/dist/components/post-icon2.js +24 -28
  151. package/dist/components/post-language-option.d.ts +11 -0
  152. package/dist/components/post-language-option.js +6 -0
  153. package/dist/components/post-language-option2.js +98 -0
  154. package/dist/components/post-language-switch.d.ts +11 -0
  155. package/dist/components/post-language-switch.js +6 -0
  156. package/dist/components/post-language-switch2.js +135 -0
  157. package/dist/components/post-list-item.d.ts +11 -0
  158. package/dist/components/post-list-item.js +6 -0
  159. package/dist/components/post-list-item2.js +35 -0
  160. package/dist/components/{post-alert.d.ts → post-list.d.ts} +4 -4
  161. package/dist/components/post-list.js +6 -0
  162. package/dist/components/post-list2.js +54 -0
  163. package/dist/components/post-logo2.js +2 -2
  164. package/dist/components/post-mainnavigation.d.ts +11 -0
  165. package/dist/components/post-mainnavigation.js +6 -0
  166. package/dist/components/post-mainnavigation2.js +48 -0
  167. package/dist/components/post-megadropdown-trigger.d.ts +11 -0
  168. package/dist/components/post-megadropdown-trigger.js +6 -0
  169. package/dist/components/post-megadropdown-trigger2.js +91 -0
  170. package/dist/components/post-megadropdown.d.ts +11 -0
  171. package/dist/components/post-megadropdown.js +6 -0
  172. package/dist/components/post-megadropdown2.js +100 -0
  173. package/dist/components/post-menu-item.d.ts +11 -0
  174. package/dist/components/post-menu-item.js +6 -0
  175. package/dist/components/post-menu-item2.js +27 -0
  176. package/dist/components/post-menu-trigger.d.ts +11 -0
  177. package/dist/components/post-menu-trigger.js +6 -0
  178. package/dist/components/post-menu-trigger2.js +102 -0
  179. package/dist/components/post-menu.d.ts +11 -0
  180. package/dist/components/post-menu.js +6 -0
  181. package/dist/components/post-menu2.js +204 -0
  182. package/dist/components/post-popover2.js +2 -2
  183. package/dist/components/post-popovercontainer2.js +10 -7
  184. package/dist/components/post-rating2.js +2 -2
  185. package/dist/components/post-tab-header2.js +4 -3
  186. package/dist/components/post-tab-panel2.js +3 -2
  187. package/dist/components/post-tabs2.js +7 -5
  188. package/dist/components/post-tag2.js +2 -2
  189. package/dist/components/post-togglebutton.d.ts +11 -0
  190. package/dist/components/post-togglebutton.js +6 -0
  191. package/dist/components/post-togglebutton2.js +61 -0
  192. package/dist/components/post-tooltip2.js +29 -17
  193. package/dist/components/slide.js +25 -0
  194. package/dist/docs.json +1870 -283
  195. package/dist/esm/check-type-8828dbe4.js +14 -0
  196. package/dist/esm/check-url-a974431e.js +12 -0
  197. package/dist/esm/debounce-abe98cc2.js +10 -0
  198. package/dist/esm/get-root-7af2e0d1.js +9 -0
  199. package/dist/esm/{index-0b56fc28.js → index-6bfe6554.js} +45 -16
  200. package/dist/esm/index-b49c9904.js +24 -0
  201. package/dist/esm/index.browser-51485f85.js +13 -0
  202. package/dist/esm/index.js +28 -19
  203. package/dist/esm/loader.js +3 -3
  204. package/dist/esm/package-2ee42825.js +3 -0
  205. package/dist/esm/{post-accordion-3a7b3f3c.js → post-accordion-3bf30525.js} +3 -3
  206. package/dist/esm/post-accordion-item-6683fbed.js +62 -0
  207. package/dist/esm/post-accordion-item.entry.js +7 -4
  208. package/dist/esm/post-accordion.entry.js +3 -3
  209. package/dist/esm/post-avatar-3ddb4c79.js +146 -0
  210. package/dist/esm/post-avatar.entry.js +5 -0
  211. package/dist/esm/post-back-to-top-15ee2771.js +73 -0
  212. package/dist/esm/post-back-to-top.entry.js +7 -0
  213. package/dist/esm/post-banner-fc407f6e.js +89 -0
  214. package/dist/esm/post-banner.entry.js +11 -0
  215. package/dist/esm/post-breadcrumb-6252b112.js +109 -0
  216. package/dist/esm/post-breadcrumb-item_2.entry.js +8 -0
  217. package/dist/esm/post-breadcrumb.entry.js +5 -0
  218. package/dist/esm/post-card-control-cb3dfc60.js +270 -0
  219. package/dist/esm/post-card-control.entry.js +3 -3
  220. package/dist/esm/post-closebutton_15.entry.js +12 -0
  221. package/dist/esm/{post-collapsible-trigger-8d7e027b.js → post-collapsible-trigger-b727bf7e.js} +11 -23
  222. package/dist/esm/post-collapsible_2.entry.js +8 -4
  223. package/dist/esm/post-components.js +3 -3
  224. package/dist/esm/post-footer-7a03a9bb.js +82 -0
  225. package/dist/esm/post-footer.entry.js +3 -0
  226. package/dist/esm/post-menu-item-3e168ecd.js +66 -0
  227. package/dist/esm/{post-popover-972c5ea7.js → post-popover-bff5cffd.js} +4 -4
  228. package/dist/esm/post-popover.entry.js +3 -3
  229. package/dist/esm/{post-rating-cca784ae.js → post-rating-ce595a65.js} +4 -4
  230. package/dist/esm/post-rating.entry.js +3 -3
  231. package/dist/esm/post-tab-header-c864586f.js +31 -0
  232. package/dist/esm/post-tab-header.entry.js +4 -3
  233. package/dist/esm/{post-tab-panel-633a5e6b.js → post-tab-panel-800425b8.js} +5 -4
  234. package/dist/esm/post-tab-panel.entry.js +4 -3
  235. package/dist/esm/{post-tabs-74ded897.js → post-tabs-e5aa8b08.js} +9 -7
  236. package/dist/esm/post-tabs.entry.js +3 -3
  237. package/dist/esm/post-tag-fc3df50a.js +45 -0
  238. package/dist/esm/post-tag.entry.js +3 -3
  239. package/dist/esm/{post-popovercontainer-2485b7d9.js → post-togglebutton-101dd3bd.js} +1069 -22
  240. package/dist/esm/{post-tooltip-0457467f.js → post-tooltip-e8484aea.js} +31 -19
  241. package/dist/esm/post-tooltip.entry.js +6 -4
  242. package/dist/esm/slide-3422b8a3.js +25 -0
  243. package/dist/post-components/index.esm.js +1 -1
  244. package/dist/post-components/p-02bb5231.js +1 -0
  245. package/dist/post-components/p-0e216cc4.js +2 -0
  246. package/dist/post-components/p-11880d55.js +1 -0
  247. package/dist/post-components/p-1489d777.entry.js +1 -0
  248. package/dist/post-components/p-19707347.entry.js +1 -0
  249. package/dist/post-components/p-1d3acbfd.js +1 -0
  250. package/dist/post-components/p-24476696.js +1 -0
  251. package/dist/post-components/p-25f6efab.entry.js +1 -0
  252. package/dist/post-components/p-27ad2d1f.js +1 -0
  253. package/dist/post-components/p-29626238.entry.js +1 -0
  254. package/dist/post-components/p-339488ba.entry.js +1 -0
  255. package/dist/post-components/p-3de1151e.js +1 -0
  256. package/dist/post-components/p-413d1fff.js +1 -0
  257. package/dist/post-components/p-47095b84.entry.js +1 -0
  258. package/dist/post-components/p-4a3f67ab.js +1 -0
  259. package/dist/post-components/p-515e0f96.js +1 -0
  260. package/dist/post-components/p-5467b223.js +1 -0
  261. package/dist/post-components/p-5959f2bd.js +1 -0
  262. package/dist/post-components/p-5b0703a4.entry.js +1 -0
  263. package/dist/post-components/p-618b8929.js +1 -0
  264. package/dist/post-components/p-66c8d0a2.entry.js +1 -0
  265. package/dist/post-components/p-6e6e5447.entry.js +1 -0
  266. package/dist/post-components/p-80b282a2.js +1 -0
  267. package/dist/post-components/p-86a1ad40.js +1 -0
  268. package/dist/post-components/p-97647d03.entry.js +1 -0
  269. package/dist/post-components/p-98f1d284.js +1 -0
  270. package/dist/post-components/p-9e287cb5.js +1 -0
  271. package/dist/post-components/{p-41094063.js → p-a3694196.js} +1 -1
  272. package/dist/post-components/p-adc79d26.entry.js +1 -0
  273. package/dist/post-components/p-b22656b1.js +1 -0
  274. package/dist/post-components/p-bcf94111.entry.js +1 -0
  275. package/dist/post-components/p-bd87a2b5.entry.js +1 -0
  276. package/dist/post-components/p-bec07e51.js +1 -0
  277. package/dist/post-components/p-bec09df9.entry.js +1 -0
  278. package/dist/post-components/p-d1d9c9a5.js +1 -0
  279. package/dist/post-components/p-d4f93f2b.js +1 -0
  280. package/dist/post-components/p-db2ac0a2.entry.js +1 -0
  281. package/dist/post-components/p-e93a4bd0.entry.js +1 -0
  282. package/dist/post-components/p-eed26f43.js +1 -0
  283. package/dist/post-components/p-f35d5d4a.entry.js +1 -0
  284. package/dist/post-components/p-fa6c79b8.entry.js +1 -0
  285. package/dist/post-components/{p-01a8fe6a.js → p-faf15ec1.js} +3 -3
  286. package/dist/post-components/p-fc09ac69.js +1 -0
  287. package/dist/post-components/p-fc91cbc2.js +1 -0
  288. package/dist/post-components/p-ffcd735f.js +1 -0
  289. package/dist/post-components/post-components.esm.js +1 -1
  290. package/dist/types/animations/slide.d.ts +2 -0
  291. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +7 -1
  292. package/dist/types/components/post-avatar/post-avatar.d.ts +51 -0
  293. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +19 -0
  294. package/dist/types/components/post-banner/banner-types.d.ts +2 -0
  295. package/dist/types/components/post-banner/post-banner.d.ts +49 -0
  296. package/dist/types/components/post-breadcrumb/post-breadcrumb.d.ts +30 -0
  297. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +16 -0
  298. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  299. package/dist/types/components/post-closebutton/post-closebutton.d.ts +7 -0
  300. package/dist/types/components/post-footer/post-footer.d.ts +23 -0
  301. package/dist/types/components/post-header/post-header.d.ts +33 -0
  302. package/dist/types/components/post-icon/post-icon.d.ts +3 -6
  303. package/dist/types/components/post-language-option/post-language-option.d.ts +45 -0
  304. package/dist/types/components/post-language-switch/post-language-switch.d.ts +31 -0
  305. package/dist/types/components/post-language-switch/switch-variants.d.ts +2 -0
  306. package/dist/types/components/post-list/post-list.d.ts +24 -0
  307. package/dist/types/components/post-list-item/post-list-item.d.ts +8 -0
  308. package/dist/types/components/post-logo/post-logo.d.ts +1 -1
  309. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +19 -0
  310. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +36 -0
  311. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +25 -0
  312. package/dist/types/components/post-menu/post-menu.d.ts +48 -0
  313. package/dist/types/components/post-menu-item/post-menu-item.d.ts +3 -0
  314. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +27 -0
  315. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +4 -0
  316. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  317. package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +15 -0
  318. package/dist/types/components.d.ts +570 -44
  319. package/dist/types/index.d.ts +20 -2
  320. package/dist/types/utils/breakpoints.d.ts +11 -0
  321. package/dist/types/utils/get-focusable-children.d.ts +1 -0
  322. package/dist/types/utils/get-root.d.ts +1 -1
  323. package/loaders/debounce.js +10 -0
  324. package/loaders/get-root.js +9 -0
  325. package/loaders/index.browser.js +13 -0
  326. package/loaders/index.d.ts +38 -2
  327. package/loaders/index.js +20 -2
  328. package/loaders/index2.js +1 -1
  329. package/loaders/package.js +1 -1
  330. package/loaders/post-accordion-item.js +1 -81
  331. package/loaders/post-accordion-item2.js +103 -0
  332. package/loaders/post-accordion.js +1 -1
  333. package/loaders/post-avatar.d.ts +11 -0
  334. package/loaders/post-avatar.js +176 -0
  335. package/loaders/post-back-to-top.d.ts +11 -0
  336. package/loaders/post-back-to-top.js +103 -0
  337. package/loaders/post-banner.d.ts +11 -0
  338. package/loaders/post-banner.js +129 -0
  339. package/loaders/post-breadcrumb-item.d.ts +11 -0
  340. package/loaders/post-breadcrumb-item.js +6 -0
  341. package/loaders/post-breadcrumb-item2.js +82 -0
  342. package/loaders/post-breadcrumb.d.ts +11 -0
  343. package/loaders/post-breadcrumb.js +171 -0
  344. package/loaders/post-card-control.js +3 -3
  345. package/loaders/post-closebutton.d.ts +11 -0
  346. package/loaders/post-closebutton.js +37 -0
  347. package/loaders/post-collapsible-trigger2.js +2 -17
  348. package/loaders/post-collapsible2.js +5 -3
  349. package/loaders/post-footer.d.ts +11 -0
  350. package/loaders/post-footer.js +127 -0
  351. package/loaders/post-header.d.ts +11 -0
  352. package/loaders/post-header.js +282 -0
  353. package/loaders/post-icon2.js +24 -28
  354. package/loaders/post-language-option.d.ts +11 -0
  355. package/loaders/post-language-option.js +101 -0
  356. package/loaders/post-language-switch.d.ts +11 -0
  357. package/loaders/post-language-switch.js +138 -0
  358. package/loaders/post-list-item.d.ts +11 -0
  359. package/loaders/post-list-item.js +38 -0
  360. package/loaders/{post-alert.d.ts → post-list.d.ts} +4 -4
  361. package/loaders/post-list.js +57 -0
  362. package/loaders/post-logo.js +3 -3
  363. package/loaders/post-mainnavigation.d.ts +11 -0
  364. package/loaders/post-mainnavigation.js +51 -0
  365. package/loaders/post-megadropdown-trigger.d.ts +11 -0
  366. package/loaders/post-megadropdown-trigger.js +94 -0
  367. package/loaders/post-megadropdown.d.ts +11 -0
  368. package/loaders/post-megadropdown.js +103 -0
  369. package/loaders/post-menu-item.d.ts +11 -0
  370. package/loaders/post-menu-item.js +6 -0
  371. package/loaders/post-menu-item2.js +27 -0
  372. package/loaders/post-menu-trigger.d.ts +11 -0
  373. package/loaders/post-menu-trigger.js +6 -0
  374. package/loaders/post-menu-trigger2.js +102 -0
  375. package/loaders/post-menu.d.ts +11 -0
  376. package/loaders/post-menu.js +6 -0
  377. package/loaders/post-menu2.js +204 -0
  378. package/loaders/post-popover.js +2 -2
  379. package/loaders/post-popovercontainer2.js +10 -7
  380. package/loaders/post-rating.js +2 -2
  381. package/loaders/post-tab-header.js +4 -3
  382. package/loaders/post-tab-panel.js +3 -2
  383. package/loaders/post-tabs.js +7 -5
  384. package/loaders/post-tag.js +2 -2
  385. package/loaders/post-togglebutton.d.ts +11 -0
  386. package/loaders/post-togglebutton.js +64 -0
  387. package/loaders/post-tooltip.js +28 -16
  388. package/loaders/slide.js +25 -0
  389. package/package.json +9 -6
  390. package/dist/cjs/post-accordion-item-dc4d1801.js +0 -51
  391. package/dist/cjs/post-alert-106c34ac.js +0 -98
  392. package/dist/cjs/post-alert.cjs.entry.js +0 -16
  393. package/dist/cjs/post-card-control-69769d1a.js +0 -272
  394. package/dist/cjs/post-icon-221d976f.js +0 -104
  395. package/dist/cjs/post-icon.cjs.entry.js +0 -15
  396. package/dist/cjs/post-logo-e6cb079f.js +0 -39
  397. package/dist/cjs/post-logo.cjs.entry.js +0 -14
  398. package/dist/cjs/post-popovercontainer.cjs.entry.js +0 -11
  399. package/dist/cjs/post-tab-header-43310d08.js +0 -32
  400. package/dist/cjs/post-tag-d7ac3cbb.js +0 -47
  401. package/dist/collection/components/post-alert/alert-types.js +0 -1
  402. package/dist/collection/components/post-alert/post-alert.css +0 -7
  403. package/dist/components/post-alert.js +0 -6
  404. package/dist/components/post-alert2.js +0 -136
  405. package/dist/esm/index-f41b763f.js +0 -46
  406. package/dist/esm/package-bc6404e2.js +0 -3
  407. package/dist/esm/post-accordion-item-55d1e771.js +0 -49
  408. package/dist/esm/post-alert-6c908130.js +0 -96
  409. package/dist/esm/post-alert.entry.js +0 -8
  410. package/dist/esm/post-card-control-9fff6efc.js +0 -270
  411. package/dist/esm/post-icon-d59ad345.js +0 -102
  412. package/dist/esm/post-icon.entry.js +0 -7
  413. package/dist/esm/post-logo-a1487634.js +0 -37
  414. package/dist/esm/post-logo.entry.js +0 -6
  415. package/dist/esm/post-popovercontainer.entry.js +0 -3
  416. package/dist/esm/post-tab-header-dd2cb68e.js +0 -30
  417. package/dist/esm/post-tag-f60a71fd.js +0 -45
  418. package/dist/post-components/p-0e0c11f9.entry.js +0 -1
  419. package/dist/post-components/p-124fe6c8.js +0 -1
  420. package/dist/post-components/p-15c6739e.entry.js +0 -1
  421. package/dist/post-components/p-2180e02d.entry.js +0 -1
  422. package/dist/post-components/p-22ec06ae.entry.js +0 -1
  423. package/dist/post-components/p-26bbd8e5.entry.js +0 -1
  424. package/dist/post-components/p-2b43665d.js +0 -1
  425. package/dist/post-components/p-2d1f85f4.js +0 -1
  426. package/dist/post-components/p-464ce10a.entry.js +0 -1
  427. package/dist/post-components/p-51eff367.js +0 -1
  428. package/dist/post-components/p-586f7f53.entry.js +0 -1
  429. package/dist/post-components/p-65031b20.entry.js +0 -1
  430. package/dist/post-components/p-6d9c46f4.js +0 -1
  431. package/dist/post-components/p-6f12f3e5.js +0 -1
  432. package/dist/post-components/p-718eb560.js +0 -1
  433. package/dist/post-components/p-78407640.entry.js +0 -1
  434. package/dist/post-components/p-79a40235.entry.js +0 -1
  435. package/dist/post-components/p-7ab513fc.js +0 -1
  436. package/dist/post-components/p-9cba7d2f.js +0 -1
  437. package/dist/post-components/p-9eb27378.entry.js +0 -1
  438. package/dist/post-components/p-a528acc4.js +0 -1
  439. package/dist/post-components/p-aa8e43c3.js +0 -1
  440. package/dist/post-components/p-b68c86a7.js +0 -1
  441. package/dist/post-components/p-b8db0e0a.entry.js +0 -1
  442. package/dist/post-components/p-bcd5843c.entry.js +0 -1
  443. package/dist/post-components/p-c21b810d.js +0 -1
  444. package/dist/post-components/p-c386219b.js +0 -1
  445. package/dist/post-components/p-d2f9de94.js +0 -2
  446. package/dist/post-components/p-deb4131c.js +0 -1
  447. package/dist/post-components/p-e7c67ff0.entry.js +0 -1
  448. package/dist/post-components/p-f10e2bb1.entry.js +0 -1
  449. package/dist/types/components/post-alert/alert-types.d.ts +0 -2
  450. package/dist/types/components/post-alert/post-alert.d.ts +0 -54
  451. package/loaders/post-alert.js +0 -139
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface PostMenuTrigger extends Components.PostMenuTrigger, HTMLElement {}
4
+ export const PostMenuTrigger: {
5
+ prototype: PostMenuTrigger;
6
+ new (): PostMenuTrigger;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as PostMenuTrigger$1, d as defineCustomElement$1 } from './post-menu-trigger2.js';
2
+
3
+ const PostMenuTrigger = PostMenuTrigger$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PostMenuTrigger, defineCustomElement };
@@ -0,0 +1,102 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { v as version } from './package.js';
3
+ import { c as checkType } from './check-type.js';
4
+ import { g as getRoot } from './get-root.js';
5
+
6
+ const postMenuTriggerCss = ":host{display:inline-block}";
7
+ const PostMenuTriggerStyle0 = postMenuTriggerCss;
8
+
9
+ const PostMenuTrigger = /*@__PURE__*/ proxyCustomElement(class PostMenuTrigger extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ /**
14
+ * Reference to the slotted button within the trigger, if present.
15
+ * Used to manage click and key events for menu control.
16
+ */
17
+ this.slottedButton = null;
18
+ this.handleKeyDown = (e) => {
19
+ if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
20
+ e.preventDefault();
21
+ this.handleToggle();
22
+ }
23
+ };
24
+ this.for = undefined;
25
+ this.ariaExpanded = false;
26
+ }
27
+ /**
28
+ * Watch for changes to the `for` property to validate its type and ensure it is a string.
29
+ * @param forValue - The new value of the `for` property.
30
+ */
31
+ validateControlFor(forValue = this.for) {
32
+ checkType(forValue, 'string', 'The "for" property is required and should be a string.');
33
+ }
34
+ get menu() {
35
+ const ref = this.root.getElementById(this.for);
36
+ return ref && ref.localName === 'post-menu' ? ref : null;
37
+ }
38
+ handleToggle() {
39
+ const menu = this.menu;
40
+ if (menu && this.slottedButton) {
41
+ this.ariaExpanded = !this.ariaExpanded;
42
+ this.slottedButton.setAttribute('aria-expanded', this.ariaExpanded.toString());
43
+ menu.toggle(this.host);
44
+ }
45
+ else {
46
+ console.warn(`No post-menu found with ID: ${this.for}`);
47
+ }
48
+ }
49
+ componentDidLoad() {
50
+ this.root = getRoot(this.host);
51
+ this.validateControlFor();
52
+ this.slottedButton = this.host.querySelector('button');
53
+ // Check if the slottedButton is within a web component
54
+ if (!this.slottedButton) {
55
+ const webComponent = this.host.querySelector('.menu-trigger-webc');
56
+ if (webComponent.shadowRoot) {
57
+ const slottedButton = webComponent.shadowRoot.querySelector('button');
58
+ if (slottedButton) {
59
+ this.slottedButton = slottedButton;
60
+ }
61
+ }
62
+ }
63
+ if (this.slottedButton) {
64
+ this.slottedButton.setAttribute('aria-haspopup', 'menu');
65
+ this.slottedButton.addEventListener('click', () => {
66
+ this.handleToggle();
67
+ });
68
+ this.slottedButton.addEventListener('keydown', this.handleKeyDown);
69
+ }
70
+ else {
71
+ console.warn('No button found within post-menu-trigger');
72
+ }
73
+ }
74
+ render() {
75
+ return (h(Host, { key: '5bdaebd0c1f46fda5804c0e8d39ab3e714b523c5', "data-version": version, "tab-index": "-1" }, h("slot", { key: 'ffee26535991d712f44cb1859a5976ec89ad772a' })));
76
+ }
77
+ get host() { return this; }
78
+ static get watchers() { return {
79
+ "for": ["validateControlFor"]
80
+ }; }
81
+ static get style() { return PostMenuTriggerStyle0; }
82
+ }, [4, "post-menu-trigger", {
83
+ "for": [1],
84
+ "ariaExpanded": [32]
85
+ }, undefined, {
86
+ "for": ["validateControlFor"]
87
+ }]);
88
+ function defineCustomElement() {
89
+ if (typeof customElements === "undefined") {
90
+ return;
91
+ }
92
+ const components = ["post-menu-trigger"];
93
+ components.forEach(tagName => { switch (tagName) {
94
+ case "post-menu-trigger":
95
+ if (!customElements.get(tagName)) {
96
+ customElements.define(tagName, PostMenuTrigger);
97
+ }
98
+ break;
99
+ } });
100
+ }
101
+
102
+ export { PostMenuTrigger as P, defineCustomElement as d };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface PostMenu extends Components.PostMenu, HTMLElement {}
4
+ export const PostMenu: {
5
+ prototype: PostMenu;
6
+ new (): PostMenu;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as PostMenu$1, d as defineCustomElement$1 } from './post-menu2.js';
2
+
3
+ const PostMenu = PostMenu$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PostMenu, defineCustomElement };
@@ -0,0 +1,204 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { v as version } from './package.js';
3
+ import { g as getRoot } from './get-root.js';
4
+ import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
5
+
6
+ const focusableSelector = `:where(${[
7
+ 'button',
8
+ 'input:not([type="hidden"])',
9
+ '[tabindex]',
10
+ 'select',
11
+ 'textarea',
12
+ '[contenteditable]',
13
+ 'a[href]',
14
+ 'iframe',
15
+ 'audio[controls]',
16
+ 'video[controls]',
17
+ 'area[href]',
18
+ 'details > summary:first-of-type',
19
+ ].join(',')})`;
20
+ const focusDisablingSelector = `:where(${[
21
+ '[inert]',
22
+ '[inert] *',
23
+ ':disabled',
24
+ 'dialog:not([open]) *',
25
+ '[popover]:not(:popover-open) *',
26
+ 'details:not([open]) > *:not(details > summary:first-of-type)',
27
+ 'details:not([open]) > *:not(details > summary:first-of-type) *',
28
+ '[tabindex^="-"]',
29
+ ].join(',')})`;
30
+ const getFocusableChildren = (element) => {
31
+ return element.querySelectorAll(`& > ${focusableSelector}:not(${focusDisablingSelector})`);
32
+ };
33
+
34
+ const postMenuCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}post-popovercontainer{padding:var(--post-menu-padding);background-color:var(--post-menu-bg, #ffffff);border-color:var(--post-menu-bg, #ffffff)}.popover-container{display:flex;flex-direction:column}";
35
+ const PostMenuStyle0 = postMenuCss;
36
+
37
+ const PostMenu = /*@__PURE__*/ proxyCustomElement(class PostMenu extends HTMLElement {
38
+ constructor() {
39
+ super();
40
+ this.__registerHost();
41
+ this.__attachShadow();
42
+ this.toggleMenu = createEvent(this, "toggleMenu", 7);
43
+ this.lastFocusedElement = null;
44
+ this.KEYCODES = {
45
+ SPACE: ' ',
46
+ ENTER: 'Enter',
47
+ UP: 'ArrowUp',
48
+ DOWN: 'ArrowDown',
49
+ TAB: 'Tab',
50
+ HOME: 'Home',
51
+ END: 'End',
52
+ ESCAPE: 'Escape',
53
+ };
54
+ this.handleKeyDown = (e) => {
55
+ e.stopPropagation();
56
+ if (e.key === this.KEYCODES.ESCAPE) {
57
+ this.toggle(this.host);
58
+ return;
59
+ }
60
+ if (Object.values(this.KEYCODES).includes(e.key)) {
61
+ this.controlKeyDownHandler(e);
62
+ }
63
+ };
64
+ this.handleClick = (e) => {
65
+ const target = e.target;
66
+ if (['BUTTON', 'A', 'INPUT', 'SELECT', 'TEXTAREA'].includes(target.tagName)) {
67
+ this.toggle(this.host);
68
+ }
69
+ };
70
+ this.placement = 'bottom';
71
+ this.isVisible = false;
72
+ }
73
+ connectedCallback() {
74
+ this.root = getRoot(this.host);
75
+ this.host.addEventListener('keydown', this.handleKeyDown);
76
+ this.host.addEventListener('click', this.handleClick);
77
+ }
78
+ disconnectedCallback() {
79
+ this.host.removeEventListener('keydown', this.handleKeyDown);
80
+ this.host.removeEventListener('click', this.handleClick);
81
+ }
82
+ componentDidLoad() {
83
+ this.popoverRef.addEventListener('postToggle', (event) => {
84
+ this.isVisible = event.detail;
85
+ this.toggleMenu.emit(this.isVisible);
86
+ });
87
+ }
88
+ /**
89
+ * Toggles the menu visibility based on its current state.
90
+ */
91
+ async toggle(target) {
92
+ this.isVisible ? await this.hide() : await this.show(target);
93
+ }
94
+ /**
95
+ * Displays the popover menu, focusing the first menu item.
96
+ *
97
+ * @param target - The HTML element relative to which the popover menu should be displayed.
98
+ */
99
+ async show(target) {
100
+ if (this.popoverRef) {
101
+ await this.popoverRef.show(target);
102
+ this.lastFocusedElement = this.root.activeElement; // Use root's activeElement
103
+ const menuItems = this.getSlottedItems();
104
+ if (menuItems.length > 0) {
105
+ menuItems[0].focus();
106
+ }
107
+ }
108
+ else {
109
+ console.error('show: popoverRef is null or undefined');
110
+ }
111
+ }
112
+ /**
113
+ * Hides the popover menu and restores focus to the previously focused element.
114
+ */
115
+ async hide() {
116
+ if (this.popoverRef) {
117
+ await this.popoverRef.hide();
118
+ if (this.lastFocusedElement) {
119
+ this.lastFocusedElement.focus();
120
+ }
121
+ }
122
+ else {
123
+ console.error('hide: popoverRef is null or undefined');
124
+ }
125
+ }
126
+ controlKeyDownHandler(e) {
127
+ const menuItems = this.getSlottedItems();
128
+ if (!menuItems.length) {
129
+ return;
130
+ }
131
+ let currentIndex = menuItems.findIndex(el => {
132
+ // Check if the item is currently focused within its rendered scope (document or shadow root)
133
+ return el === getRoot(el).activeElement;
134
+ });
135
+ switch (e.key) {
136
+ case this.KEYCODES.UP:
137
+ e.preventDefault();
138
+ currentIndex = (currentIndex - 1 + menuItems.length) % menuItems.length;
139
+ break;
140
+ case this.KEYCODES.DOWN:
141
+ e.preventDefault();
142
+ currentIndex = (currentIndex + 1) % menuItems.length;
143
+ break;
144
+ case this.KEYCODES.HOME:
145
+ currentIndex = 0;
146
+ break;
147
+ case this.KEYCODES.END:
148
+ currentIndex = menuItems.length - 1;
149
+ break;
150
+ case this.KEYCODES.SPACE:
151
+ case this.KEYCODES.ENTER:
152
+ this.toggle(this.host);
153
+ return;
154
+ case this.KEYCODES.TAB:
155
+ this.toggle(this.host);
156
+ break;
157
+ }
158
+ if (menuItems[currentIndex]) {
159
+ menuItems[currentIndex].focus();
160
+ }
161
+ }
162
+ getSlottedItems() {
163
+ const slot = this.host.shadowRoot.querySelector('slot');
164
+ const slottedElements = slot ? slot.assignedElements() : [];
165
+ return (slottedElements
166
+ // If the element is a slot, get the assigned elements
167
+ .flatMap(el => (el instanceof HTMLSlotElement ? el.assignedElements() : el))
168
+ // Filter out elements that have a 'menuitem' role
169
+ .filter(el => el.getAttribute('role') === 'menuitem')
170
+ // For each menu item, get any focusable children (e.g., buttons, links)
171
+ .flatMap(el => Array.from(getFocusableChildren(el))));
172
+ }
173
+ render() {
174
+ return (h(Host, { key: '68c4661d3ab9256dadbbe3243247456c090b728e', "data-version": version }, h("post-popovercontainer", { key: 'b6cb0624239e0ed5aeadac63ffb1b1f7fb0e873e', placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '608f677ae715eb09ed46fde9912241dc35673e06', class: "popover-container", part: "popover-container" }, h("slot", { key: '83f84b7b29b4d7c9d4e0924026ca7469c1f0cfb0' })))));
175
+ }
176
+ get host() { return this; }
177
+ static get style() { return PostMenuStyle0; }
178
+ }, [1, "post-menu", {
179
+ "placement": [1],
180
+ "isVisible": [32],
181
+ "toggle": [64],
182
+ "show": [64],
183
+ "hide": [64]
184
+ }]);
185
+ function defineCustomElement() {
186
+ if (typeof customElements === "undefined") {
187
+ return;
188
+ }
189
+ const components = ["post-menu", "post-popovercontainer"];
190
+ components.forEach(tagName => { switch (tagName) {
191
+ case "post-menu":
192
+ if (!customElements.get(tagName)) {
193
+ customElements.define(tagName, PostMenu);
194
+ }
195
+ break;
196
+ case "post-popovercontainer":
197
+ if (!customElements.get(tagName)) {
198
+ defineCustomElement$1();
199
+ }
200
+ break;
201
+ } });
202
+ }
203
+
204
+ export { PostMenu as P, defineCustomElement as d };
@@ -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$2 } 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:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-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: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{-webkit-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\");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:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.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{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;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}@media (max-width: 599.98px){.popover-container{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{-webkit-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\");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}";
7
7
  const PostPopoverStyle0 = postPopoverCss;
8
8
 
9
9
  /**
@@ -96,7 +96,7 @@ const PostPopover$1 = /*@__PURE__*/ proxyCustomElement(class PostPopover extends
96
96
  this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
97
97
  }
98
98
  render() {
99
- return (h(Host, { key: '6fe379d071ec88a76f99cc10f0fdce0b2f079fbd', "data-version": version }, h("post-popovercontainer", { key: '3a5e2896e87e3f2d32c0ad9b1d80327cc585f289', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '46834ef6a3893fe8823776d8feb20a2fb328e3bc', class: "popover-container" }, h("div", { key: '9d61b678c2613e84efc0df805cbb67fbe3d06991', class: "popover-content" }, h("slot", { key: '1cfef5daaea3f6370869a3ae648ff36e2dddd82a' })), h("button", { key: 'c7a2e12ece46ee63d8004d99427c8c6febc2dc17', class: "btn-close", onClick: () => this.hide() }, h("span", { key: '1aee8ffe06b5c4c9bade0185a8832328410fbe4a', class: "visually-hidden" }, this.closeButtonCaption))))));
99
+ 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
100
  }
101
101
  get host() { return this; }
102
102
  static get style() { return PostPopoverStyle0; }
@@ -2039,7 +2039,7 @@ const computePosition = (reference, floating, options) => {
2039
2039
  }
2040
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();})();
2041
2041
 
2042
- 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) .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 = "@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)}";
2043
2043
  const PostPopovercontainerStyle0 = postPopovercontainerCss;
2044
2044
 
2045
2045
  const SIDE_MAP = {
@@ -2054,6 +2054,7 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2054
2054
  this.__registerHost();
2055
2055
  this.postToggle = createEvent(this, "postToggle", 7);
2056
2056
  this.placement = 'top';
2057
+ this.edgeGap = 8;
2057
2058
  this.arrow = false;
2058
2059
  }
2059
2060
  componentDidLoad() {
@@ -2125,11 +2126,12 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2125
2126
  this.clearAutoUpdate = autoUpdate(this.eventTarget, this.host, this.calculatePosition.bind(this));
2126
2127
  }
2127
2128
  async calculatePosition() {
2129
+ const gap = this.edgeGap;
2128
2130
  const middleware = [
2129
2131
  flip(),
2130
2132
  inline(),
2131
2133
  shift({
2132
- padding: 8,
2134
+ padding: gap,
2133
2135
  // Prevents shifting away from the anchor too far, while shifting as far as possible
2134
2136
  // https://floating-ui.com/docs/shift#limiter
2135
2137
  limiter: limitShift({
@@ -2139,14 +2141,14 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2139
2141
  size({
2140
2142
  apply({ availableWidth, elements }) {
2141
2143
  Object.assign(elements.floating.style, {
2142
- maxWidth: `${availableWidth - 16}px`,
2144
+ maxWidth: `${availableWidth - gap * 2}px`,
2143
2145
  });
2144
2146
  },
2145
2147
  }),
2146
- offset(this.arrow ? 12 : 8), // 4px outside of element to account for focus outline + ~arrow size
2148
+ offset(this.arrow ? gap + 4 : gap), // 4px outside of element to account for focus outline + ~arrow size
2147
2149
  ];
2148
2150
  if (this.arrow) {
2149
- middleware.push(arrow({ element: this.arrowRef, padding: 8 }));
2151
+ middleware.push(arrow({ element: this.arrowRef, padding: gap }));
2150
2152
  }
2151
2153
  const { x, y, middlewareData, placement: currentPlacement, } = await computePosition(this.eventTarget, this.host, {
2152
2154
  placement: this.placement || 'top',
@@ -2174,14 +2176,15 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
2174
2176
  }
2175
2177
  }
2176
2178
  render() {
2177
- return (h(Host, { key: 'daf21d119057a14c2c2f68b8068901ab698beae3', "data-version": version }, this.arrow && (h("span", { key: '4f5cfb1422217f9ef71732cdfc0c97b6b29e4809', class: "arrow", ref: el => {
2179
+ return (h(Host, { key: '844302edb3852f99229d4f4ccacf82cd78588435', "data-version": version }, this.arrow && (h("span", { key: 'ae293d24ef24282bfcaeb7f545653a563e5246d5', class: "arrow", ref: el => {
2178
2180
  this.arrowRef = el;
2179
- } })), h("slot", { key: 'f6e4beefb8e365dbf20a0a5019cceaac4ecb73a4' })));
2181
+ } })), h("slot", { key: '61dd3072a5217099028e3dd4b22fa845ea2f5970' })));
2180
2182
  }
2181
2183
  get host() { return this; }
2182
2184
  static get style() { return PostPopovercontainerStyle0; }
2183
2185
  }, [4, "post-popovercontainer", {
2184
2186
  "placement": [1],
2187
+ "edgeGap": [2, "edge-gap"],
2185
2188
  "arrow": [4],
2186
2189
  "show": [64],
2187
2190
  "hide": [64],
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { v as version } from './package.js';
3
3
  import { d as defineCustomElement$2 } from './post-icon2.js';
4
4
 
5
- const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
5
+ const postRatingCss = "/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 calc(var(--post-core-dimension-4)*-1);border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:var(--post-core-dimension-2);outline:var(--post-core-dimension-2) solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}";
6
6
  const PostRatingStyle0 = postRatingCss;
7
7
 
8
8
  const PostRating$1 = /*@__PURE__*/ proxyCustomElement(class PostRating extends HTMLElement {
@@ -74,7 +74,7 @@ const PostRating$1 = /*@__PURE__*/ proxyCustomElement(class PostRating extends H
74
74
  }
75
75
  }
76
76
  render() {
77
- return (h(Host, { key: '0a4972eeedcda4d4f772db0407ba2a6279f5d797', "data-version": version }, h("div", { key: 'a9ab9daaa3f9e1e421f28267057b99a1a2e235ee', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
77
+ return (h(Host, { key: 'bb4ab7c2ae609e8e288c62516be93f0b96926eff', "data-version": version }, h("div", { key: '0176474611f998938aef0b267c118478d6623fbc', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
78
78
  'star': true,
79
79
  'before-hover': i < this.hoveredIndex,
80
80
  'active': i < Math.round(this.currentRating),
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { v as version } from './package.js';
3
3
  import { c as checkNonEmpty } from './check-non-empty.js';
4
+ import { n as nanoid } from './index.browser.js';
4
5
 
5
- 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:.25rem;background-color:#fc0}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=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,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=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:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-secondary .tab-title{background-color:#666}.bg-secondary .tab-title.active{background-color:#666}.bg-secondary .nav-item{background-color:#666}.bg-success .tab-title{background-color:#2c871d}.bg-success .tab-title.active{background-color:#2c871d}.bg-success .nav-item{background-color:#2c871d}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-error .tab-title{background-color:#a51728}.bg-error .tab-title.active{background-color:#a51728}.bg-error .nav-item{background-color:#a51728}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\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: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
7
  const PostTabHeaderStyle0 = postTabHeaderCss;
7
8
 
8
9
  const PostTabHeader$1 = /*@__PURE__*/ proxyCustomElement(class PostTabHeader extends HTMLElement {
@@ -17,10 +18,10 @@ const PostTabHeader$1 = /*@__PURE__*/ proxyCustomElement(class PostTabHeader ext
17
18
  checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
18
19
  }
19
20
  componentWillLoad() {
20
- this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
21
+ this.tabId = `tab-${this.host.id || nanoid(6)}`;
21
22
  }
22
23
  render() {
23
- return (h(Host, { key: '35077e5514ffd19a4fb27bc3a4c1d9d19072768b', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '67b09864a209c00c677e1c279240d9b4ca289faa' })));
24
+ 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' })));
24
25
  }
25
26
  get host() { return this; }
26
27
  static get watchers() { return {
@@ -1,5 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { v as version } from './package.js';
3
+ import { n as nanoid } from './index.browser.js';
3
4
 
4
5
  const postTabPanelCss = ":host{display:none}";
5
6
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -14,10 +15,10 @@ const PostTabPanel$1 = /*@__PURE__*/ proxyCustomElement(class PostTabPanel exten
14
15
  }
15
16
  componentWillLoad() {
16
17
  // get the id set on the host element or use a random id by default
17
- this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
18
+ this.panelId = `panel-${this.host.id || nanoid(6)}`;
18
19
  }
19
20
  render() {
20
- return (h(Host, { key: '2d01a8e7f06e45b4750e63584a3c52232dee4dd5', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: 'b51e2f112791ac22df43ebb537208c65aebe3d03' })));
21
+ return (h(Host, { key: '9e8f9c5dc0c1c3d1b7e63cbb9e9cbb0cf116da9b', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '3ece42346845324cfa0fb9af5721efab2b71e2f1' })));
21
22
  }
22
23
  get host() { return this; }
23
24
  static get style() { return PostTabPanelStyle0; }
@@ -23,7 +23,7 @@ const customOnReady = (callback) => {
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{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-white .tabs-wrapper{background-color:#fff}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-black .tabs-wrapper{background-color:#000}.bg-primary .tabs-wrapper{background-color:#333}.bg-secondary .tabs-wrapper{background-color:#666}.bg-success .tabs-wrapper{background-color:#2c871d}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-error .tabs-wrapper{background-color:#a51728}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}:host{display:block}";
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}";
27
27
  const PostTabsStyle0 = postTabsCss;
28
28
 
29
29
  const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLElement {
@@ -36,12 +36,13 @@ const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLE
36
36
  this.activePanel = undefined;
37
37
  }
38
38
  get tabs() {
39
- return this.host.querySelectorAll('post-tab-header');
39
+ return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
40
40
  }
41
41
  componentDidLoad() {
42
+ var _a;
42
43
  this.moveMisplacedTabs();
43
44
  this.enableTabs();
44
- const initiallyActivePanel = this.activePanel || this.tabs.item(0).panel;
45
+ const initiallyActivePanel = this.activePanel || ((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
45
46
  void this.show(initiallyActivePanel);
46
47
  this.isLoaded = true;
47
48
  }
@@ -86,6 +87,7 @@ const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLE
86
87
  });
87
88
  }
88
89
  enableTabs() {
90
+ var _a;
89
91
  if (!this.tabs)
90
92
  return;
91
93
  this.tabs.forEach(async (tab) => {
@@ -112,7 +114,7 @@ const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLE
112
114
  });
113
115
  // if the currently active tab was removed from the DOM then select the first one
114
116
  if (this.activeTab && !this.activeTab.isConnected) {
115
- void this.show(this.tabs.item(0).panel);
117
+ void this.show((_a = this.tabs[0]) === null || _a === void 0 ? void 0 : _a.panel);
116
118
  }
117
119
  }
118
120
  activateTab(tab) {
@@ -164,7 +166,7 @@ const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLE
164
166
  nextTab.focus();
165
167
  }
166
168
  render() {
167
- return (h(Host, { key: '6a3e84a92b03d462dbff1b8fc638f7ebf8ea9d23', "data-version": version }, h("div", { key: 'e73b58f1524e70401089830b1b9b47a2c85b828a', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '9da5ce2d30d37c74dee92f2e871e56e96d07d429', class: "tabs", role: "tablist" }, h("slot", { key: '944e209f2f23b9a3469bc6b5167a0939da4c9631', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '93caabfd1a0be19df3e8be64f0965de488159526', class: "tab-content", part: "content" }, h("slot", { key: '92465fa749afad52130631cb3957fefeb40b8e9a', onSlotchange: () => this.moveMisplacedTabs() }))));
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() }))));
168
170
  }
169
171
  get host() { return this; }
170
172
  static get style() { return PostTabsStyle0; }
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { v as version } from './package.js';
3
3
  import { d as defineCustomElement$2 } 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:.25rem;padding:0 .5rem;max-width:100%;background-color:var(--post-tag-bg);border:1px solid rgba(0,0,0,0);border-radius:.25rem;font-size:1rem;line-height:1.875rem;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:1.5rem}.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: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}";
6
6
  const PostTagStyle0 = postTagCss;
7
7
 
8
8
  const PostTag$1 = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLElement {
@@ -35,7 +35,7 @@ const PostTag$1 = /*@__PURE__*/ proxyCustomElement(class PostTag extends HTMLEle
35
35
  this.setClasses();
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: '7426002d3008de53e92edc8ec2fc759569b191bf', "data-version": version }, h("div", { key: '1cde8f5c3d2db66f45aaa64091a1b76f1d1468ee', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: 'cc63b7277ba4f4076a46f5038b24699f6818c81b', class: "tag-text" }, h("slot", { key: '37b57632add7f7c093e42302e44defef63ccc29f' })))));
38
+ 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
39
  }
40
40
  get host() { return this; }
41
41
  static get watchers() { return {