@swisspost/design-system-components 9.0.0-next.5 → 9.0.0-next.7

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 (287) hide show
  1. package/dist/cjs/get-root-7a3498ef.js +11 -0
  2. package/dist/cjs/index-e1f32cce.js +8 -4
  3. package/dist/cjs/index.cjs.js +24 -21
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{package-53892d3d.js → package-bc44930e.js} +1 -1
  6. package/dist/cjs/{post-accordion-7f627ffd.js → post-accordion-c55fef06.js} +1 -1
  7. package/dist/cjs/{post-accordion-item-ceb5399f.js → post-accordion-item-641f0b42.js} +1 -1
  8. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  9. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  10. package/dist/cjs/{post-avatar-a8123d38.js → post-avatar-10d7b5c0.js} +1 -1
  11. package/dist/cjs/post-avatar.cjs.entry.js +2 -2
  12. package/dist/cjs/post-banner-b286d37f.js +90 -0
  13. package/dist/cjs/{post-alert.cjs.entry.js → post-banner.cjs.entry.js} +3 -3
  14. package/dist/cjs/{post-breadcrumb-item-6e4704e5.js → post-breadcrumb-item-8cdc59a8.js} +1 -1
  15. package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
  16. package/dist/cjs/post-card-control-fc4aca2a.js +272 -0
  17. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  18. package/dist/cjs/post-closebutton_10.cjs.entry.js +2 -2
  19. package/dist/cjs/{post-collapsible-trigger-e4862a5b.js → post-collapsible-trigger-c8b3e767.js} +3 -10
  20. package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -2
  21. package/dist/cjs/post-components.cjs.js +1 -1
  22. package/dist/cjs/{post-language-option-62414842.js → post-language-option-8c1ec4fd.js} +2 -2
  23. package/dist/cjs/post-language-option.cjs.entry.js +2 -2
  24. package/dist/cjs/{post-megadropdown-trigger-da912fed.js → post-megadropdown-trigger-9b9f1036.js} +32 -37
  25. package/dist/cjs/{post-menu-54fa65d3.js → post-menu-5a71a6fe.js} +2 -2
  26. package/dist/cjs/{post-menu-item-8c3090b1.js → post-menu-item-5c5c1aaf.js} +2 -2
  27. package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-menu-trigger-71449876.js → post-menu-trigger-02d128c4.js} +5 -3
  29. package/dist/cjs/post-menu-trigger.cjs.entry.js +3 -2
  30. package/dist/cjs/post-menu.cjs.entry.js +2 -2
  31. package/dist/cjs/{post-popover-5f639e4f.js → post-popover-91a83e9d.js} +3 -3
  32. package/dist/cjs/post-popover.cjs.entry.js +2 -2
  33. package/dist/cjs/{post-rating-3d166fed.js → post-rating-57fcf949.js} +2 -2
  34. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  35. package/dist/cjs/post-tab-header-ce56b760.js +32 -0
  36. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  37. package/dist/cjs/{post-tab-panel-e5685f3d.js → post-tab-panel-70e49260.js} +2 -2
  38. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  39. package/dist/cjs/{post-tabs-e871c911.js → post-tabs-39262e55.js} +3 -3
  40. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  41. package/dist/cjs/{post-tag-62f31d0e.js → post-tag-b6bc5785.js} +2 -2
  42. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  43. package/dist/cjs/post-togglebutton-2f39442e.js +28 -0
  44. package/dist/cjs/post-togglebutton.cjs.entry.js +11 -0
  45. package/dist/cjs/{post-tooltip-851c342c.js → post-tooltip-8be3b2aa.js} +28 -16
  46. package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
  47. package/dist/collection/collection-manifest.json +2 -1
  48. package/dist/collection/components/post-avatar/post-avatar.js +1 -1
  49. package/dist/collection/components/post-banner/banner-types.js +1 -0
  50. package/dist/collection/components/post-banner/post-banner.css +3 -0
  51. package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +39 -68
  52. package/dist/collection/components/post-card-control/post-card-control.css +1 -1
  53. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  54. package/dist/collection/components/post-header/post-header.js +1 -1
  55. package/dist/collection/components/post-icon/post-icon.css +1 -1
  56. package/dist/collection/components/post-icon/post-icon.js +20 -31
  57. package/dist/collection/components/post-language-option/post-language-option.js +1 -1
  58. package/dist/collection/components/post-list/post-list.js +2 -2
  59. package/dist/collection/components/post-list-item/post-list-item.js +1 -1
  60. package/dist/collection/components/post-logo/post-logo.js +1 -1
  61. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
  62. package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
  63. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
  64. package/dist/collection/components/post-menu/post-menu.js +1 -1
  65. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  66. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +4 -3
  67. package/dist/collection/components/post-popover/post-popover.css +1 -1
  68. package/dist/collection/components/post-popover/post-popover.js +1 -1
  69. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +2 -2
  70. package/dist/collection/components/post-rating/post-rating.js +1 -1
  71. package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
  72. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  73. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  74. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  75. package/dist/collection/components/post-tabs/post-tabs.js +1 -1
  76. package/dist/collection/components/post-tag/post-tag.js +2 -2
  77. package/dist/collection/components/post-togglebutton/post-togglebutton.css +1 -0
  78. package/dist/collection/components/post-togglebutton/post-togglebutton.js +56 -0
  79. package/dist/collection/components/post-tooltip/post-tooltip.js +28 -12
  80. package/dist/collection/index.js +2 -1
  81. package/dist/components/get-root.js +9 -0
  82. package/dist/components/index.js +2 -1
  83. package/dist/components/package.js +1 -1
  84. package/dist/components/{post-alert.d.ts → post-banner.d.ts} +4 -4
  85. package/dist/components/post-banner.js +6 -0
  86. package/dist/components/post-banner2.js +125 -0
  87. package/dist/components/post-card-control2.js +3 -3
  88. package/dist/components/post-collapsible-trigger2.js +1 -8
  89. package/dist/components/post-header2.js +1 -1
  90. package/dist/components/post-icon2.js +22 -29
  91. package/dist/components/post-language-option2.js +1 -1
  92. package/dist/components/post-list-item2.js +1 -1
  93. package/dist/components/post-list2.js +2 -2
  94. package/dist/components/post-logo2.js +1 -1
  95. package/dist/components/post-mainnavigation2.js +1 -1
  96. package/dist/components/post-megadropdown-trigger2.js +1 -1
  97. package/dist/components/post-megadropdown2.js +1 -1
  98. package/dist/components/post-menu-item2.js +1 -1
  99. package/dist/components/post-menu-trigger2.js +4 -2
  100. package/dist/components/post-menu2.js +1 -1
  101. package/dist/components/post-popover2.js +2 -2
  102. package/dist/components/post-popovercontainer2.js +2 -2
  103. package/dist/components/post-rating2.js +1 -1
  104. package/dist/components/post-tab-header2.js +2 -2
  105. package/dist/components/post-tab-panel2.js +1 -1
  106. package/dist/components/post-tabs2.js +2 -2
  107. package/dist/components/post-tag2.js +1 -1
  108. package/dist/components/post-togglebutton.d.ts +11 -0
  109. package/dist/components/post-togglebutton.js +6 -0
  110. package/dist/components/post-togglebutton2.js +43 -0
  111. package/dist/components/post-tooltip2.js +27 -15
  112. package/dist/docs.json +209 -175
  113. package/dist/esm/get-root-7af2e0d1.js +9 -0
  114. package/dist/esm/index-e1b64755.js +8 -4
  115. package/dist/esm/index.js +22 -20
  116. package/dist/esm/loader.js +1 -1
  117. package/dist/esm/package-180da9f3.js +3 -0
  118. package/dist/esm/{post-accordion-b2762084.js → post-accordion-7268e29b.js} +1 -1
  119. package/dist/esm/{post-accordion-item-82ef1c4a.js → post-accordion-item-a5a76abb.js} +1 -1
  120. package/dist/esm/post-accordion-item.entry.js +2 -2
  121. package/dist/esm/post-accordion.entry.js +2 -2
  122. package/dist/esm/{post-avatar-e84c49cb.js → post-avatar-19162f90.js} +1 -1
  123. package/dist/esm/post-avatar.entry.js +2 -2
  124. package/dist/esm/post-banner-132709ad.js +88 -0
  125. package/dist/esm/{post-alert.entry.js → post-banner.entry.js} +2 -2
  126. package/dist/esm/{post-breadcrumb-item-ff752018.js → post-breadcrumb-item-5a77f988.js} +1 -1
  127. package/dist/esm/post-breadcrumb-item.entry.js +2 -2
  128. package/dist/esm/post-card-control-5be9c80a.js +270 -0
  129. package/dist/esm/post-card-control.entry.js +2 -2
  130. package/dist/esm/post-closebutton_10.entry.js +2 -2
  131. package/dist/esm/{post-collapsible-trigger-34740fa6.js → post-collapsible-trigger-43fbbf03.js} +2 -9
  132. package/dist/esm/post-collapsible_2.entry.js +3 -2
  133. package/dist/esm/post-components.js +1 -1
  134. package/dist/esm/{post-language-option-e2a76752.js → post-language-option-f41240c3.js} +2 -2
  135. package/dist/esm/post-language-option.entry.js +2 -2
  136. package/dist/esm/{post-megadropdown-trigger-7e577245.js → post-megadropdown-trigger-813b5140.js} +32 -37
  137. package/dist/esm/{post-menu-e6337859.js → post-menu-62c3e49a.js} +2 -2
  138. package/dist/esm/{post-menu-item-c10a0a93.js → post-menu-item-f63a1521.js} +2 -2
  139. package/dist/esm/post-menu-item.entry.js +2 -2
  140. package/dist/esm/{post-menu-trigger-5f31ad60.js → post-menu-trigger-b84f728d.js} +5 -3
  141. package/dist/esm/post-menu-trigger.entry.js +3 -2
  142. package/dist/esm/post-menu.entry.js +2 -2
  143. package/dist/esm/{post-popover-d78547b4.js → post-popover-abae1f3a.js} +3 -3
  144. package/dist/esm/post-popover.entry.js +2 -2
  145. package/dist/esm/{post-rating-d04d0349.js → post-rating-b963d4f2.js} +2 -2
  146. package/dist/esm/post-rating.entry.js +2 -2
  147. package/dist/esm/post-tab-header-c16feb72.js +30 -0
  148. package/dist/esm/post-tab-header.entry.js +2 -2
  149. package/dist/esm/{post-tab-panel-d9ecc10e.js → post-tab-panel-cb02df49.js} +2 -2
  150. package/dist/esm/post-tab-panel.entry.js +2 -2
  151. package/dist/esm/{post-tabs-e98a47e8.js → post-tabs-81085d7b.js} +3 -3
  152. package/dist/esm/post-tabs.entry.js +2 -2
  153. package/dist/esm/{post-tag-40a65871.js → post-tag-103bfff5.js} +2 -2
  154. package/dist/esm/post-tag.entry.js +2 -2
  155. package/dist/esm/post-togglebutton-0e714838.js +26 -0
  156. package/dist/esm/post-togglebutton.entry.js +3 -0
  157. package/dist/esm/{post-tooltip-3b1e121c.js → post-tooltip-2c5ff736.js} +28 -16
  158. package/dist/esm/post-tooltip.entry.js +2 -2
  159. package/dist/post-components/index.esm.js +1 -1
  160. package/dist/post-components/p-06980a04.js +1 -0
  161. package/dist/post-components/p-0af7dfbb.js +1 -0
  162. package/dist/post-components/p-0f699dbc.js +1 -0
  163. package/dist/post-components/p-12262945.entry.js +1 -0
  164. package/dist/post-components/p-2504dace.entry.js +1 -0
  165. package/dist/post-components/p-27343d32.entry.js +1 -0
  166. package/dist/post-components/{p-42c628fd.js → p-2a456317.js} +1 -1
  167. package/dist/post-components/p-2c3980d2.js +1 -0
  168. package/dist/post-components/p-31d38040.js +1 -0
  169. package/dist/post-components/{p-76dbca34.entry.js → p-339e000e.entry.js} +1 -1
  170. package/dist/post-components/p-3b325360.entry.js +1 -0
  171. package/dist/post-components/{p-2069e764.js → p-3e65ba47.js} +1 -1
  172. package/dist/post-components/p-3f417208.entry.js +1 -0
  173. package/dist/post-components/p-4922deaf.entry.js +1 -0
  174. package/dist/post-components/p-6c7546b8.entry.js +1 -0
  175. package/dist/post-components/{p-e0dc4fac.js → p-6f56a13d.js} +3 -3
  176. package/dist/post-components/p-7eee2b6a.js +1 -0
  177. package/dist/post-components/p-816623f0.entry.js +1 -0
  178. package/dist/post-components/p-83cd3885.entry.js +1 -0
  179. package/dist/post-components/{p-879ae242.js → p-8b6f7f04.js} +1 -1
  180. package/dist/post-components/p-9abe554b.js +1 -0
  181. package/dist/post-components/p-9ea6103e.entry.js +1 -0
  182. package/dist/post-components/p-a0a7c2c1.entry.js +1 -0
  183. package/dist/post-components/p-abf9ffdc.entry.js +1 -0
  184. package/dist/post-components/p-b4a2c7b7.entry.js +1 -0
  185. package/dist/post-components/{p-77a757d4.js → p-b7ef401f.js} +1 -1
  186. package/dist/post-components/p-b8a9cf2d.js +1 -0
  187. package/dist/post-components/p-bb103905.js +1 -0
  188. package/dist/post-components/{p-75514d7d.js → p-c819933c.js} +1 -1
  189. package/dist/post-components/p-ccd8a221.entry.js +1 -0
  190. package/dist/post-components/p-cfc1727f.entry.js +1 -0
  191. package/dist/post-components/{p-fc2c7222.js → p-d4465c2b.js} +1 -1
  192. package/dist/post-components/{p-af8cfb8e.js → p-d4cef624.js} +1 -1
  193. package/dist/post-components/p-da449573.js +1 -0
  194. package/dist/post-components/p-df5bdda5.entry.js +1 -0
  195. package/dist/post-components/{p-7a20605b.js → p-ed834dde.js} +1 -1
  196. package/dist/post-components/p-f1416918.entry.js +1 -0
  197. package/dist/post-components/p-f171b18b.entry.js +1 -0
  198. package/dist/post-components/p-f4dbd35f.entry.js +1 -0
  199. package/dist/post-components/p-f6b44820.js +1 -0
  200. package/dist/post-components/p-fa7af203.js +1 -0
  201. package/dist/post-components/p-fc91cbc2.js +1 -0
  202. package/dist/post-components/post-components.esm.js +1 -1
  203. package/dist/types/components/post-avatar/post-avatar.d.ts +1 -1
  204. package/dist/types/components/post-banner/banner-types.d.ts +2 -0
  205. package/dist/types/components/post-banner/post-banner.d.ts +49 -0
  206. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  207. package/dist/types/components/post-icon/post-icon.d.ts +2 -5
  208. package/dist/types/components/post-list/post-list.d.ts +1 -1
  209. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +1 -0
  210. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  211. package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +13 -0
  212. package/dist/types/components.d.ts +92 -79
  213. package/dist/types/index.d.ts +2 -1
  214. package/loaders/get-root.js +9 -0
  215. package/loaders/index.d.ts +4 -2
  216. package/loaders/index.js +2 -1
  217. package/loaders/package.js +1 -1
  218. package/loaders/{post-alert.d.ts → post-banner.d.ts} +4 -4
  219. package/loaders/post-banner.js +128 -0
  220. package/loaders/post-card-control.js +3 -3
  221. package/loaders/post-collapsible-trigger2.js +1 -8
  222. package/loaders/post-header.js +1 -1
  223. package/loaders/post-icon2.js +22 -29
  224. package/loaders/post-language-option.js +1 -1
  225. package/loaders/post-list-item.js +1 -1
  226. package/loaders/post-list.js +2 -2
  227. package/loaders/post-logo.js +1 -1
  228. package/loaders/post-mainnavigation.js +1 -1
  229. package/loaders/post-megadropdown-trigger.js +1 -1
  230. package/loaders/post-megadropdown.js +1 -1
  231. package/loaders/post-menu-item.js +1 -1
  232. package/loaders/post-menu-trigger.js +4 -2
  233. package/loaders/post-menu.js +1 -1
  234. package/loaders/post-popover.js +2 -2
  235. package/loaders/post-popovercontainer2.js +2 -2
  236. package/loaders/post-rating.js +1 -1
  237. package/loaders/post-tab-header.js +2 -2
  238. package/loaders/post-tab-panel.js +1 -1
  239. package/loaders/post-tabs.js +2 -2
  240. package/loaders/post-tag.js +1 -1
  241. package/loaders/post-togglebutton.d.ts +11 -0
  242. package/loaders/post-togglebutton.js +46 -0
  243. package/loaders/post-tooltip.js +27 -15
  244. package/package.json +5 -5
  245. package/dist/cjs/post-alert-5333a23c.js +0 -99
  246. package/dist/cjs/post-card-control-b289ddcf.js +0 -272
  247. package/dist/cjs/post-tab-header-03b20f24.js +0 -32
  248. package/dist/collection/components/post-alert/alert-types.js +0 -1
  249. package/dist/collection/components/post-alert/post-alert.css +0 -7
  250. package/dist/components/post-alert.js +0 -6
  251. package/dist/components/post-alert2.js +0 -136
  252. package/dist/esm/package-d0380f19.js +0 -3
  253. package/dist/esm/post-alert-0679e14b.js +0 -97
  254. package/dist/esm/post-card-control-53b9ca94.js +0 -270
  255. package/dist/esm/post-tab-header-6efc530f.js +0 -30
  256. package/dist/post-components/p-029c91d8.entry.js +0 -1
  257. package/dist/post-components/p-03c850fa.entry.js +0 -1
  258. package/dist/post-components/p-1d8a41d3.js +0 -1
  259. package/dist/post-components/p-3705d2b4.js +0 -1
  260. package/dist/post-components/p-3aaea2a7.js +0 -1
  261. package/dist/post-components/p-3b4342e4.entry.js +0 -1
  262. package/dist/post-components/p-3b5bd4a4.entry.js +0 -1
  263. package/dist/post-components/p-3f785d16.entry.js +0 -1
  264. package/dist/post-components/p-40a57111.entry.js +0 -1
  265. package/dist/post-components/p-41f5f626.entry.js +0 -1
  266. package/dist/post-components/p-43451d07.js +0 -1
  267. package/dist/post-components/p-49a42850.js +0 -1
  268. package/dist/post-components/p-4f1a40dd.entry.js +0 -1
  269. package/dist/post-components/p-6e7bde44.js +0 -1
  270. package/dist/post-components/p-70c016ab.js +0 -1
  271. package/dist/post-components/p-77af2367.entry.js +0 -1
  272. package/dist/post-components/p-976c2742.js +0 -1
  273. package/dist/post-components/p-9cda2b0d.entry.js +0 -1
  274. package/dist/post-components/p-9fab4d3c.js +0 -1
  275. package/dist/post-components/p-a0226aec.js +0 -1
  276. package/dist/post-components/p-aa890e24.entry.js +0 -1
  277. package/dist/post-components/p-ac6d9496.js +0 -1
  278. package/dist/post-components/p-ad6e41d5.entry.js +0 -1
  279. package/dist/post-components/p-c95813b2.entry.js +0 -1
  280. package/dist/post-components/p-d3814644.entry.js +0 -1
  281. package/dist/post-components/p-d5b02b44.entry.js +0 -1
  282. package/dist/post-components/p-f404d0bb.entry.js +0 -1
  283. package/dist/post-components/p-f5b933bc.entry.js +0 -1
  284. package/dist/post-components/p-fbda2556.entry.js +0 -1
  285. package/dist/types/components/post-alert/alert-types.d.ts +0 -2
  286. package/dist/types/components/post-alert/post-alert.d.ts +0 -54
  287. package/loaders/post-alert.js +0 -139
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
  const index$1 = require('./index-824d2b71.js');
6
6
  const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
7
7
  const checkType = require('./check-type-64af82a9.js');
@@ -16,7 +16,7 @@ const PostClosebutton = class {
16
16
  get host() { return index.getElement(this); }
17
17
  };
18
18
 
19
- const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
19
+ const postIconCss = ":host{container-name:post-icon;container-type:inline-size;display:inline-block;width:1em;height:1em;vertical-align:-0.15em}svg{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color}@container post-icon (max-width: 23.98px){svg{--pis-16: block}}@container post-icon (min-width: 24px) and (max-width: 31.98px){svg{--pis-24: block}}@container post-icon (min-width: 32px) and (max-width: 39.98px){svg{--pis-32: block}}@container post-icon (min-width: 40px) and (max-width: 47.98px){svg{--pis-40: block}}@container post-icon (min-width: 48px) and (max-width: 63.98px){svg{--pis-48: block}}@container post-icon (min-width: 64px){svg{--pis-64: block}}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
20
20
  const PostIconStyle0 = postIconCss;
21
21
 
22
22
  const CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';
@@ -32,8 +32,6 @@ const ANIMATION_KEYS = [...ANIMATION_NAMES];
32
32
  const PostIcon = class {
33
33
  constructor(hostRef) {
34
34
  index.registerInstance(this, hostRef);
35
- this.svgStyles = undefined;
36
- this.svgOutput = undefined;
37
35
  this.animation = null;
38
36
  this.base = null;
39
37
  this.flipH = false;
@@ -65,6 +63,25 @@ const PostIcon = class {
65
63
  validateScale(newValue = this.scale) {
66
64
  index$1.checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
67
65
  }
66
+ getPath() {
67
+ var _a, _b, _c, _d, _e, _f;
68
+ // Construct icon path from different possible sources
69
+ const metaBase = (_b = (_a = document.head
70
+ .querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
71
+ const baseHref = (_c = document.getElementsByTagName('base')[0]) === null || _c === void 0 ? void 0 : _c.href;
72
+ const fileBase = `${(_f = (_e = (_d = this.base) !== null && _d !== void 0 ? _d : metaBase) !== null && _e !== void 0 ? _e : baseHref) !== null && _f !== void 0 ? _f : CDN_URL}/`.replace(/\/\/$/, '/');
73
+ const fileName = `${this.name}.svg#i-${this.name}`;
74
+ const filePath = `${fileBase}${fileName}`;
75
+ return new URL(filePath, window.location.origin).toString();
76
+ }
77
+ getStyles() {
78
+ return Object.entries({
79
+ transform: (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
80
+ (this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
81
+ })
82
+ .filter(([_key, value]) => value !== null)
83
+ .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
84
+ }
68
85
  componentDidLoad() {
69
86
  this.validateBase();
70
87
  this.validateName();
@@ -74,30 +91,8 @@ const PostIcon = class {
74
91
  this.validateRotate();
75
92
  this.validateAnimation();
76
93
  }
77
- componentWillRender() {
78
- this.setPath();
79
- }
80
- setPath() {
81
- var _a, _b, _c, _d;
82
- // Construct icon path from different possible sources
83
- const metaBase = (_b = (_a = document.head
84
- .querySelector('meta[name="design-system-settings"][data-post-icon-base]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-post-icon-base')) !== null && _b !== void 0 ? _b : null;
85
- const fileBase = `${(_d = (_c = this.base) !== null && _c !== void 0 ? _c : metaBase) !== null && _d !== void 0 ? _d : CDN_URL}/`.replace(/\/\/$/, '/');
86
- const fileName = `${this.name}.svg`;
87
- const filePath = `${fileBase}${fileName}`;
88
- this.path = new URL(filePath, window.location.origin).toString();
89
- }
90
94
  render() {
91
- // create inline styles for some properties
92
- const svgStyles = Object.entries({
93
- '-webkit-mask-image': `url('${this.path}')`,
94
- 'mask-image': `url('${this.path}')`,
95
- 'transform': (this.scale && !isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
96
- (this.rotate && !isNaN(Number(this.rotate)) ? ' rotate(' + this.rotate + 'deg)' : ''),
97
- })
98
- .filter(([_key, value]) => value !== null)
99
- .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
100
- return (index.h(index.Host, { key: '86c61ac92270e1b46ef63e2bb0ff4683a16ca794', "data-version": _package.version }, index.h("span", { key: 'ad856363b96d303912c9085d9d45cb911cbedfc6', style: svgStyles })));
95
+ return (index.h(index.Host, { key: '34a48ba95a05ab98ccbd7d5c59423f8f261c2a77', "data-version": _package.version }, index.h("svg", { key: '34a70353c83fba4b8606ee4516cda7982c042ea2', style: this.getStyles() }, index.h("use", { key: '3241328a9e9b1f7929d79fff89725d98e5e162a0', href: this.getPath() }))));
101
96
  }
102
97
  get host() { return index.getElement(this); }
103
98
  static get watchers() { return {
@@ -135,7 +130,7 @@ const PostLogo = class {
135
130
  render() {
136
131
  const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
137
132
  const LogoTag = logoLink ? 'a' : 'span';
138
- return (index.h(index.Host, { key: '9f23dca4f568ecbcf3d90387b2a9cb4fa1e85a98', "data-version": _package.version, slot: "post-logo" }, index.h(LogoTag, Object.assign({ key: '1b303363d3a4a829d4ab4b38bc40cbd3107b55e9', class: "logo" }, (logoLink ? { href: logoLink } : {})), index.h("span", { key: 'de29d53c4bb663053092b905d32f6597bd9a00d5', class: "description" }, index.h("slot", { key: 'bdfc96e3d9cb9384a61fa8af91c12a4b119f2f3b', onSlotchange: () => this.checkDescription() })), index.h("svg", { key: 'f2d1e0803c7f2f3a7c425dd5ebd57346c8d967e6', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, index.h("g", { key: '554a2d4edb796b01969555eccb3f0f34e74f0121', id: "Logo" }, index.h("rect", { key: '7596d8684037b02d015e48539bddda3f44dfcadf', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), index.h("polygon", { key: 'f79c5e941f7d87de1484a934565cf363b49914d5', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), index.h("path", { key: '7c5babc1703e4f74c08b78916a86c553f8cc6edf', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
133
+ return (index.h(index.Host, { key: 'd3dd408c30b4e22712b9a293906c7334e7d1852b', "data-version": _package.version, slot: "post-logo" }, index.h(LogoTag, Object.assign({ key: '4eb08a4d1b4a0ec2557b63678225a16d287c692c', class: "logo" }, (logoLink ? { href: logoLink } : {})), index.h("span", { key: 'ab3b1a8da4a7b87aa0a020d47586a7018619e9c3', class: "description" }, index.h("slot", { key: 'a9c39b1f2f54fd4ceb79a82ab30571c161a29adb', onSlotchange: () => this.checkDescription() })), index.h("svg", { key: 'af4c3fbdb2a72e0b8518a6c16cefdb795f41244c', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, index.h("g", { key: '05e25c1522dd4edfc676b04cf9092ed519d95381', id: "Logo" }, index.h("rect", { key: '12e1b7878e990e110c8ae83ef742bb6fa4c48a2f', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), index.h("polygon", { key: '0e1120c70769c4a23b3711c1157e6f1742e3a75b', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), index.h("path", { key: 'ccc271be1919898fc6eed78bf2e012e71dd96c48', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
139
134
  }
140
135
  get host() { return index.getElement(this); }
141
136
  static get watchers() { return {
@@ -2318,9 +2313,9 @@ const PostPopovercontainer = class {
2318
2313
  }
2319
2314
  }
2320
2315
  render() {
2321
- return (index.h(index.Host, { key: '97a63bfbf098bd3463eb75678e54ddcc9e4790b3', "data-version": _package.version }, this.arrow && (index.h("span", { key: 'f6eaa7bd6cd3eb63d15e7d91825365661daae7dd', class: "arrow", ref: el => {
2316
+ return (index.h(index.Host, { key: '11e3be5293791aa58da291f2a0f17677ad0e0e63', "data-version": _package.version }, this.arrow && (index.h("span", { key: '00d76dcd41bf267bb50290ae439c49333ade68b3', class: "arrow", ref: el => {
2322
2317
  this.arrowRef = el;
2323
- } })), index.h("slot", { key: '414055000891719b74c2c449fec2c87a60b62047' })));
2318
+ } })), index.h("slot", { key: '7c579254fc1b76c91ddecf0952945339cf5bc7fd' })));
2324
2319
  }
2325
2320
  get host() { return index.getElement(this); }
2326
2321
  };
@@ -2346,12 +2341,12 @@ const PostList = class {
2346
2341
  this.checkTitle();
2347
2342
  }
2348
2343
  checkTitle() {
2349
- if (!this.titleEl.innerText) {
2344
+ if (!this.titleEl.textContent.trim()) {
2350
2345
  throw new Error('Please provide a title to the list component. Title is mandatory for accessibility purposes.');
2351
2346
  }
2352
2347
  }
2353
2348
  render() {
2354
- return (index.h(index.Host, { key: '23875f577fa2cbdeac88596616ddd1d5b924f983', "data-version": _package.version }, index.h("div", { key: '3fe8da70bc5c0e7b72c5e8b76a37762deb55fffd', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, index.h("slot", { key: '536bec8ddbed178108a921f0b643d6eeb7b58edc' })), index.h("div", { key: 'c6b560206740105afc494050fa4b8608ccf4bd15', role: "list", "aria-labelledby": this.titleId }, index.h("slot", { key: '06272c2a9cc18d2f5440ff1fc0b966929b3ab6a0', name: "post-list-item" }))));
2349
+ return (index.h(index.Host, { key: '7126a864e6c4d8152c9024bd8d390514bc8c0b7a', "data-version": _package.version }, index.h("div", { key: 'c3f56a0e41146dc5dbd2c3fc165152e05953956f', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, index.h("slot", { key: '3de0cd83b48ef3a3201f854842781ccba9bedf29' })), index.h("div", { key: '4b8a4ac0a9c89451a408cc8de814878dc8da11b7', role: "list", "aria-labelledby": this.titleId }, index.h("slot", { key: '474d87804fc39241a0f3541a82bdfbe1491a4452', name: "post-list-item" }))));
2355
2350
  }
2356
2351
  get host() { return index.getElement(this); }
2357
2352
  };
@@ -2368,7 +2363,7 @@ const PostListItem = class {
2368
2363
  this.host.setAttribute('slot', 'post-list-item');
2369
2364
  }
2370
2365
  render() {
2371
- return (index.h(index.Host, { key: '8336f46e5c7d9b6b921582498e1d7e62086b3d4b', role: "listitem" }, index.h("slot", { key: '36ca0d6632ca775793f1db91d747894e0037dca2' })));
2366
+ return (index.h(index.Host, { key: '25532c40e8f02f335df6b112041cbaf6056576b6', role: "listitem" }, index.h("slot", { key: '46ddc9e27c71040b271ab6bd59db2ac37fa4a112' })));
2372
2367
  }
2373
2368
  get host() { return index.getElement(this); }
2374
2369
  };
@@ -2581,7 +2576,7 @@ const PostHeader = class {
2581
2576
  if (this.mobileMenuExtended) {
2582
2577
  mainNavClasses.push('extended');
2583
2578
  }
2584
- return (index.h(index.Host, { key: '5a05f890e66ec97d54fd17ca26436392a4e78e9b', version: _package.version }, index.h("div", { key: '8f9b79cb289d0c613f6d000cf969ce5bf0b3d62a', class: "global-header" }, index.h("div", { key: '0a482fc3153e29917ed2df1fcbf39492a18918ef', class: "global-sub" }, index.h("div", { key: '3d25cc42a1fac21906cb2c487d90de84a9f1d029', class: "logo" }, index.h("slot", { key: '5a14eb7b8f9927083a56e37d53bc4aed3311b6c8', name: "post-logo" })), this.device === 'desktop' && index.h("slot", { key: '21bc41d4a09536a33ee3d7a98424a00d3969718f', name: "audience-navigation" })), index.h("div", { key: '6c8fdc5acc99c165bda366e872ceb32d6918b515', class: "global-sub" }, this.device === 'desktop' && index.h("slot", { key: '88f681de4d63517d73decd436b7084fca410f021', name: "meta-navigation" }), index.h("slot", { key: 'b6e5c1143fb89e2940f464bac95277bc2741a5c8', name: "global-controls" }), this.device === 'desktop' && index.h("slot", { key: '2edb30a148ffaae9f864e9babc03228c63a46314', name: "post-language-switch" }), index.h("div", { key: 'cc0633f19bd9b948fb2456fdc44431984e3a10eb', onClick: () => this.handleMobileMenuToggle(), class: "mobile-toggle" }, index.h("slot", { key: '26fa9aa29cab7e4048c387ee6c49216dc911f209', name: "post-togglebutton" })))), index.h("div", { key: '772afbe63ac2f0ae0527e25c6feac75b02365689', class: "title-header d-flex space-between align-center" }, index.h("slot", { key: '32bf212b1e16df0a2fd7cec6b21a7649458e7660', name: "title" }), index.h("div", { key: '13bf9f2443fa9c48c6f25a0159896995e170b4dc', class: "global-sub" }, index.h("slot", { key: 'a20c9414619c9508600c25ef31d5c14f6178f520', name: "local-controls" }), index.h("slot", { key: 'a87beb7500f4e07396bf4a91ee299a4bebd751bd' }))), index.h("div", { key: '008c9d1a0acf59a9b54facec5e6aec2f483f8ed7', class: mainNavClasses.join(' ') }, (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: 'e8013ae7c0fe3883a4be405409fd3b35e236cf8c', name: "audience-navigation" })), index.h("slot", { key: '90412d08f0a835714de0a6c635f82aae90abeac2', name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: '31fb4b34ddabda5f87f65a6c841b64f4a9802d50', name: "meta-navigation" })), (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: 'cfd212a052d0b736d049084f492c614131ae7a32', name: "post-language-switch" })))));
2579
+ return (index.h(index.Host, { key: '85b0f7c1d14b96947497cc6d1cdf059430eb9ab6', version: _package.version }, index.h("div", { key: '740ed42365e2e71215d4b8174cf98d8f8385fe9a', class: "global-header" }, index.h("div", { key: '0a0b0a3bdb527c6988992e23a3401f9c51b02d51', class: "global-sub" }, index.h("div", { key: '983bc0dacdc9f7f96a8aefdd3e17f31d0fbe1ef8', class: "logo" }, index.h("slot", { key: 'e9b97b26cfdbe836147493c50a98986791d8ce85', name: "post-logo" })), this.device === 'desktop' && index.h("slot", { key: '8a6d9c3c9d3f72de6d9ef0dbd2ecde3fd4982de6', name: "audience-navigation" })), index.h("div", { key: 'a85add260edc38024612e7bc1f2e7d19a2b11fdf', class: "global-sub" }, this.device === 'desktop' && index.h("slot", { key: 'ffac0efc9078819711471067b6a85feaa807c9c9', name: "meta-navigation" }), index.h("slot", { key: 'c8270ebb6c57bbba4db4e2799e69e33ea0a2c094', name: "global-controls" }), this.device === 'desktop' && index.h("slot", { key: 'ac209cb8acd66dcaeb300c17994f0bae201cc0f8', name: "post-language-switch" }), index.h("div", { key: '210a5220eb97155138422a032a850d13992ac9a2', onClick: () => this.handleMobileMenuToggle(), class: "mobile-toggle" }, index.h("slot", { key: '42fb06418bc617252c80bab4ae64c64a74265723', name: "post-togglebutton" })))), index.h("div", { key: '62e1859020d65a54b86d53882a4452f6005589e9', class: "title-header d-flex space-between align-center" }, index.h("slot", { key: 'b285ac31f54fb3011813aab9f7c8ae1e9d64e8c2', name: "title" }), index.h("div", { key: 'b529d4b6d01bc39c9344bd2ed15f698d0637fe35', class: "global-sub" }, index.h("slot", { key: 'da20b42e70bd715c89ef4e6c7419f115bb1bfb45', name: "local-controls" }), index.h("slot", { key: 'd27c3b97b6597df51811913c74ae2ec157939563' }))), index.h("div", { key: '7d80d02dd4794598828d6c05779714d874818bbe', class: mainNavClasses.join(' ') }, (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: 'dc02044dec14c3b716dd20209c5fb775d75d583f', name: "audience-navigation" })), index.h("slot", { key: '3f5a09fb4f69bb21924db2e236d554036a559d54', name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: 'f50c0ce8631109041c25200c4e4b3f57502cf434', name: "meta-navigation" })), (this.device === 'mobile' || this.device === 'tablet') && (index.h("slot", { key: 'fc87fa82fd01021eb629bacc168f2d0a537409eb', name: "post-language-switch" })))));
2585
2580
  }
2586
2581
  get host() { return index.getElement(this); }
2587
2582
  };
@@ -2613,7 +2608,7 @@ const PostMainnavigation = class {
2613
2608
  this.postToggle.emit();
2614
2609
  }
2615
2610
  render() {
2616
- return (index.h(index.Host, { key: '1c1d1d1c2781f39acc0fd02d3f93f922d801d98f', slot: "post-mainnavigation" }, index.h("div", { key: '1bc1129c65fc03ec72609438bbf28afe5bc5974b', onClick: () => this.handleBackButtonClick(), class: "back-button" }, index.h("slot", { key: '6b1bcc25306f1f959a25b18a6319eb696b0cbc2c', name: "back-button" })), index.h("nav", { key: '0002b55cb82fbf88a69a886c5ec1ba24168c9979', class: "main-navigation" }, index.h("slot", { key: '15e4558c1202f8f83e09dad76441d6bf7e3e16ea' }))));
2611
+ return (index.h(index.Host, { key: '5006fede681cf581b878c84fd1a6b7fe4830cbd2', slot: "post-mainnavigation" }, index.h("div", { key: 'a2273bab074eac3f9197961b935c3ba19ecbbb21', onClick: () => this.handleBackButtonClick(), class: "back-button" }, index.h("slot", { key: 'c42751bee76cecbb076bb227bd0ffcc634b354a2', name: "back-button" })), index.h("nav", { key: '89541b5efc3500a8feec250a3d10402ea4b1a3a2', class: "main-navigation" }, index.h("slot", { key: 'f5f5a030325e701aaaca13747131b1f1fa10e849' }))));
2617
2612
  }
2618
2613
  };
2619
2614
  PostMainnavigation.style = PostMainnavigationStyle0;
@@ -2653,7 +2648,7 @@ const PostMegadropdown = class {
2653
2648
  this.hide();
2654
2649
  }
2655
2650
  render() {
2656
- return (index.h(index.Host, { key: '6b30399852561a911c04a79c7c785bb5cf8e68ff', slot: "post-mainnavigation" }, index.h("post-popovercontainer", { key: 'caa196c59c0177948a73c43033f7399344068d77', placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, index.h("div", { key: '7c88bd1ca7fac00b9ab0cb1d73252c6990484fb2', class: "megadropdown" }, index.h("div", { key: '25073177e9c9a05fca93b3b0abbed18f6b2a075b', onClick: () => this.handleBackButtonClick(), class: "back-button" }, index.h("slot", { key: '06a153e974f60476f2796e03afea3ad86c7560ca', name: "back-button" })), index.h("slot", { key: 'ea95044efbd609894dd96b3aa8662756e14711af' })))));
2651
+ return (index.h(index.Host, { key: '96d71da6b3cfcd8980d7e60cb383d545c754d7b3', slot: "post-mainnavigation" }, index.h("post-popovercontainer", { key: 'ec27bcdae9da77299d59d8869be60c08816eef85', placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, index.h("div", { key: '0b97d183a5fad18401aa876cf19d3975a1757d18', class: "megadropdown" }, index.h("div", { key: '4eb9715d7cf88898dddae702f71d430f1e3810af', onClick: () => this.handleBackButtonClick(), class: "back-button" }, index.h("slot", { key: 'a21d4b50b1d04211ecfb5d0b145452a6bbae0ae0', name: "back-button" })), index.h("slot", { key: '5a4dd77f0f91bf6a61ef1cf9bdd4371875a52d2e' })))));
2657
2652
  }
2658
2653
  };
2659
2654
  PostMegadropdown.style = PostMegadropdownStyle0;
@@ -2672,7 +2667,7 @@ const PostMegadropdownTrigger = class {
2672
2667
  this.postToggle.emit();
2673
2668
  }
2674
2669
  render() {
2675
- return (index.h(index.Host, { key: 'af6dbf6cb97c5f98242e2d3fc31f193d00444b26', slot: "post-megadropdown-trigger" }, index.h("button", { key: '8160075f3dcb5afdd88a375698a61edfdbe8b7a1', "aria-expanded": this.toggled, onClick: () => this.handleClick() }, index.h("slot", { key: 'f5be082b15802582540d9a3320d4bf19ca3d98c3' }))));
2670
+ return (index.h(index.Host, { key: '0b3de3d7d035e7427ff55d5818ce89f3cadd3c57', slot: "post-megadropdown-trigger" }, index.h("button", { key: '6e5ea2515fcafbf9ed4ea4f0532f85f6c044f2a5', "aria-expanded": this.toggled, onClick: () => this.handleClick() }, index.h("slot", { key: '60daae26758894fea7576d696d9325fa61f3cc31' }))));
2676
2671
  }
2677
2672
  };
2678
2673
  PostMegadropdownTrigger.style = PostMegadropdownTriggerStyle0;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
 
6
6
  const focusableSelector = `:where(${[
7
7
  'button',
@@ -167,7 +167,7 @@ const PostMenu = class {
167
167
  return menuItems;
168
168
  }
169
169
  render() {
170
- return (index.h(index.Host, { key: '4447ff6878a1b0f38b533196466b33217f9499d4', "data-version": _package.version }, index.h("post-popovercontainer", { key: '918e2b8a662cdb64972cb0729b8b077e1bca5e0a', placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '40b04b6c0d65cc3c10f6b8b037ec3ff24d1b907b', class: "popover-container" }, index.h("slot", { key: 'e836fdb9e29961f3b6c6c13261e8eef0f874cfb6' })))));
170
+ return (index.h(index.Host, { key: '80720b7f1d029833de466c84c9fe931460a5b9b1', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'b1e610ad0c0f33a09ac3fee5954567e957653e76', placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: 'a9cd7f6efcd762b548acb7c8d3bf614ccdedd504', class: "popover-container" }, index.h("slot", { key: 'e278c4020b70c8bd5f6a1e4a3ac8cbaf37f2b786' })))));
171
171
  }
172
172
  get host() { return index.getElement(this); }
173
173
  };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
 
6
6
  const postMenuItemCss = ":host{display:block}";
7
7
  const PostMenuItemStyle0 = postMenuItemCss;
@@ -11,7 +11,7 @@ const PostMenuItem = class {
11
11
  index.registerInstance(this, hostRef);
12
12
  }
13
13
  render() {
14
- return (index.h(index.Host, { key: '7984d6be0ae981f54618b4c0d7a80bfcc71f16a3', role: "menuitem", "data-version": _package.version }, index.h("slot", { key: '7fbb20f1586676b1c8f933e0f067144bbcca825f' })));
14
+ return (index.h(index.Host, { key: '48720f09bc2ab4a979d215f590dcb80e39422e46', role: "menuitem", "data-version": _package.version }, index.h("slot", { key: '5a0c1aeb2c96a02c2e4567d3e1e83fd6e3a3aace' })));
15
15
  }
16
16
  get host() { return index.getElement(this); }
17
17
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postMenuItem = require('./post-menu-item-8c3090b1.js');
5
+ const postMenuItem = require('./post-menu-item-5c5c1aaf.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
 
9
9
 
10
10
 
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
  const checkType = require('./check-type-64af82a9.js');
6
+ const getRoot = require('./get-root-7a3498ef.js');
6
7
 
7
8
  const postMenuTriggerCss = ":host{display:inline-block}";
8
9
  const PostMenuTriggerStyle0 = postMenuTriggerCss;
@@ -32,7 +33,7 @@ const PostMenuTrigger = class {
32
33
  checkType.checkType(forValue, 'string', 'The "for" property is required and should be a string.');
33
34
  }
34
35
  get menu() {
35
- const ref = document.getElementById(this.for);
36
+ const ref = this.root.getElementById(this.for);
36
37
  return ref && ref.localName === 'post-menu' ? ref : null;
37
38
  }
38
39
  handleToggle() {
@@ -47,6 +48,7 @@ const PostMenuTrigger = class {
47
48
  }
48
49
  }
49
50
  componentDidLoad() {
51
+ this.root = getRoot.getRoot(this.host);
50
52
  this.validateControlFor();
51
53
  this.slottedButton = this.host.querySelector('button');
52
54
  if (this.slottedButton) {
@@ -61,7 +63,7 @@ const PostMenuTrigger = class {
61
63
  }
62
64
  }
63
65
  render() {
64
- return (index.h(index.Host, { key: 'ce2a30260fae6eecae5b2feb0538ac2ce66b989c', "data-version": _package.version, "tab-index": "-1" }, index.h("slot", { key: 'a69d7dc4a1a798332bd9881cedb216ef82d279ab' })));
66
+ return (index.h(index.Host, { key: '5c07c2a808f5048b870d77f1f65d84bc2007431f', "data-version": _package.version, "tab-index": "-1" }, index.h("slot", { key: 'ab779f01983e2c88f09707ab8b12eb326ac6946b' })));
65
67
  }
66
68
  get host() { return index.getElement(this); }
67
69
  static get watchers() { return {
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postMenuTrigger = require('./post-menu-trigger-71449876.js');
5
+ const postMenuTrigger = require('./post-menu-trigger-02d128c4.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
  require('./check-type-64af82a9.js');
9
+ require('./get-root-7a3498ef.js');
9
10
 
10
11
 
11
12
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postMenu = require('./post-menu-54fa65d3.js');
5
+ const postMenu = require('./post-menu-5a71a6fe.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
 
9
9
 
10
10
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
  const attributeObserver = require('./attribute-observer-10f08c04.js');
6
6
 
7
- 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:var(--post-gray-80);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:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.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}";
7
+ 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:1.5rem;width:1.5rem}.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{--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;max-width:100%}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";
8
8
  const PostPopoverStyle0 = postPopoverCss;
9
9
 
10
10
  /**
@@ -95,7 +95,7 @@ const PostPopover = class {
95
95
  this.triggers.forEach(trigger => trigger.setAttribute('aria-expanded', 'false'));
96
96
  }
97
97
  render() {
98
- return (index.h(index.Host, { key: '22964a2be347979d1ebaaec468edfd4b079776ff', "data-version": _package.version }, index.h("post-popovercontainer", { key: 'a108ed03721a453ce73a850913d93b8bfaf83922', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '943f1a914ada58c3f8b085613b47ed4b7c55e591', class: "popover-container" }, index.h("div", { key: 'a6a8dec53c9190c48d1b3b217c979d78b2f32995', class: "popover-content" }, index.h("slot", { key: '555bc4537d6bd62b60186db9700588eb3ec38ac2' })), index.h("button", { key: 'db0826565312bba9bc48a88cd84636a903eeb94f', class: "btn-close", onClick: () => this.hide() }, index.h("span", { key: 'aef92ba6e586e02924a09d459e4d753ad18f72f7', class: "visually-hidden" }, this.closeButtonCaption))))));
98
+ return (index.h(index.Host, { key: 'e716f0b45da8a21c43afba019dbf84a87bc49fab', "data-version": _package.version }, index.h("post-popovercontainer", { key: '530ffbd07a0f2b2edc26db0c5667c9de372edf01', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e) }, index.h("div", { key: '4d7420876786f835aef9decf92030651f5117f52', class: "popover-container" }, index.h("div", { key: 'e557e3e1f4566fc81b1255ef628e7c58d59fc596', class: "popover-content" }, index.h("slot", { key: 'ea5e3407ec41868471d388a02cb8a4ba32889d6c' })), index.h("button", { key: 'af21850867d713f7c5a825d4ac824b12ce40f3e7', class: "btn-close", onClick: () => this.hide() }, index.h("span", { key: 'b2f85d5efd0fd424448efa73ee9ad07c5bab2947', class: "visually-hidden" }, this.closeButtonCaption))))));
99
99
  }
100
100
  get host() { return index.getElement(this); }
101
101
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postPopover = require('./post-popover-5f639e4f.js');
5
+ const postPopover = require('./post-popover-91a83e9d.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
  require('./attribute-observer-10f08c04.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
 
6
6
  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%)}";
7
7
  const PostRatingStyle0 = postRatingCss;
@@ -73,7 +73,7 @@ const PostRating = class {
73
73
  }
74
74
  }
75
75
  render() {
76
- return (index.h(index.Host, { key: '0202a629d68bc85d00fb3ccae63073938fb174d3', "data-version": _package.version }, index.h("div", { key: '7de2c78d498957dbd988472729fde2ea04162490', 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) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
76
+ return (index.h(index.Host, { key: 'd5bce841329555bdb71e7f861b7d1f74d93dbcbc', "data-version": _package.version }, index.h("div", { key: '0c81664652bd279c833ffabe63f082e4849e611a', 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) => (index.h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
77
77
  'star': true,
78
78
  'before-hover': i < this.hoveredIndex,
79
79
  'active': i < Math.round(this.currentRating),
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postRating = require('./post-rating-3d166fed.js');
5
+ const postRating = require('./post-rating-57fcf949.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
 
9
9
 
10
10
 
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-e1f32cce.js');
4
+ const _package = require('./package-bc44930e.js');
5
+ const checkNonEmpty = require('./check-non-empty-eeaa8f77.js');
6
+
7
+ 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) .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: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}[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}";
8
+ const PostTabHeaderStyle0 = postTabHeaderCss;
9
+
10
+ const PostTabHeader = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.tabId = undefined;
14
+ this.panel = undefined;
15
+ }
16
+ validateFor(newValue) {
17
+ checkNonEmpty.checkNonEmpty(newValue, 'The "panel" prop is required for the post-tab-header.');
18
+ }
19
+ componentWillLoad() {
20
+ this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
21
+ }
22
+ render() {
23
+ return (index.h(index.Host, { key: '4ca8efb0e3a6a429442be5406eb43f9cd2406b49', id: this.tabId, role: "tab", "data-version": _package.version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, index.h("slot", { key: '049d4c8378c42fc31b572d8b073fef523fbc6f37' })));
24
+ }
25
+ get host() { return index.getElement(this); }
26
+ static get watchers() { return {
27
+ "panel": ["validateFor"]
28
+ }; }
29
+ };
30
+ PostTabHeader.style = PostTabHeaderStyle0;
31
+
32
+ exports.PostTabHeader = PostTabHeader;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabHeader = require('./post-tab-header-03b20f24.js');
5
+ const postTabHeader = require('./post-tab-header-ce56b760.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
  require('./check-non-empty-eeaa8f77.js');
9
9
  require('./constants-238701d3.js');
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
 
6
6
  const postTabPanelCss = ":host{display:none}";
7
7
  const PostTabPanelStyle0 = postTabPanelCss;
@@ -17,7 +17,7 @@ const PostTabPanel = class {
17
17
  this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, { key: '9018d11d85d1ce0b83e74987f8fb96eb1b873a40', "data-version": _package.version, id: this.panelId, role: "tabpanel" }, index.h("slot", { key: '45e2214fbeb5d4c2b4e5e35eb5ad74d99033a0a3' })));
20
+ return (index.h(index.Host, { key: '8116daf192361e9c9333c1a94afa4d9eb5cce3d1', "data-version": _package.version, id: this.panelId, role: "tabpanel" }, index.h("slot", { key: '646fc0fa564f76c6f2a1f706cc753f11306ca231' })));
21
21
  }
22
22
  get host() { return index.getElement(this); }
23
23
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabPanel = require('./post-tab-panel-e5685f3d.js');
5
+ const postTabPanel = require('./post-tab-panel-70e49260.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
 
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
  const fade = require('./fade-35a3633a.js');
6
6
 
7
7
  /**
@@ -25,7 +25,7 @@ const customOnReady = (callback) => {
25
25
  return setTimeout(callback);
26
26
  };
27
27
 
28
- 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.list-bullet>li{margin:0;padding:0}.tabs.list-bullet>li::before{display:none}.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}:host{display:block}";
28
+ 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}.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}:host{display:block}";
29
29
  const PostTabsStyle0 = postTabsCss;
30
30
 
31
31
  const PostTabs = class {
@@ -164,7 +164,7 @@ const PostTabs = class {
164
164
  nextTab.focus();
165
165
  }
166
166
  render() {
167
- return (index.h(index.Host, { key: '3c9d7351fa09531238892f0bd05447379f46fdb4', "data-version": _package.version }, index.h("div", { key: '1eff106f6324302155e809a58cd3367bb7bdbd76', class: "tabs-wrapper", part: "tabs" }, index.h("div", { key: 'fc5917d92b577f99fb19fa80ecd1a863ffeaa4d8', class: "tabs", role: "tablist" }, index.h("slot", { key: 'af35884271ca9d75dbbd113e05fd052c4691c53e', name: "tabs", onSlotchange: () => this.enableTabs() }))), index.h("div", { key: '4908774e2306e432af65b94a9dd5e1d257569652', class: "tab-content", part: "content" }, index.h("slot", { key: 'c0eb44e39b0cffe57c42c51dd74e605e74241f70', onSlotchange: () => this.moveMisplacedTabs() }))));
167
+ return (index.h(index.Host, { key: '2a7fe6d86dc18dcebaa25b5466ffc88de96114e6', "data-version": _package.version }, index.h("div", { key: '71940a2be5c36f591f0948c7f8dedbb26e98736d', class: "tabs-wrapper", part: "tabs" }, index.h("div", { key: 'bd9fa6ba6e2bd037a0a09365d4906b7288f929c6', class: "tabs", role: "tablist" }, index.h("slot", { key: '72a369206b0f81e88ff9741a69e6b58ba3239f5e', name: "tabs", onSlotchange: () => this.enableTabs() }))), index.h("div", { key: '9c544b7bae6dc2abb3e297015216c88872a78b8e', class: "tab-content", part: "content" }, index.h("slot", { key: '2f2e274ecb2bbe19c8f016b8d7a1f7a7038d6646', onSlotchange: () => this.moveMisplacedTabs() }))));
168
168
  }
169
169
  get host() { return index.getElement(this); }
170
170
  };
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTabs = require('./post-tabs-e871c911.js');
5
+ const postTabs = require('./post-tabs-39262e55.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
  require('./fade-35a3633a.js');
9
9
 
10
10
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-e1f32cce.js');
4
- const _package = require('./package-53892d3d.js');
4
+ const _package = require('./package-bc44930e.js');
5
5
 
6
6
  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}";
7
7
  const PostTagStyle0 = postTagCss;
@@ -34,7 +34,7 @@ const PostTag = class {
34
34
  this.setClasses();
35
35
  }
36
36
  render() {
37
- return (index.h(index.Host, { key: '01f369b7c6803f710fb0b5eae652d6d1beb340ed', "data-version": _package.version }, index.h("div", { key: 'bba40e4deaa43e64c9bc32c2ad4a3e3515bdf8dd', class: this.classes }, this.icon ? index.h("post-icon", { name: this.icon }) : null, index.h("div", { key: '9addb054f9555c9a97d8825a148958b2e2b863a7', class: "tag-text" }, index.h("slot", { key: '315cf79690fa489c61edd6ce6b304b94a3866b8c' })))));
37
+ return (index.h(index.Host, { key: '52768516080d294eaf20034e18e6a776149fa97e', "data-version": _package.version }, index.h("div", { key: 'f342d20bfccfdf650f5c6e943065f090a13fd94c', class: this.classes }, this.icon ? index.h("post-icon", { name: this.icon }) : null, index.h("div", { key: '5286cb07cbfa5b20e0dfbbd4847a3dda49a19278', class: "tag-text" }, index.h("slot", { key: '6215a61b4e10d6c0274019f183ef90e46d282114' })))));
38
38
  }
39
39
  get host() { return index.getElement(this); }
40
40
  static get watchers() { return {
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const postTag = require('./post-tag-62f31d0e.js');
5
+ const postTag = require('./post-tag-b6bc5785.js');
6
6
  require('./index-e1f32cce.js');
7
- require('./package-53892d3d.js');
7
+ require('./package-bc44930e.js');
8
8
 
9
9
 
10
10
 
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-e1f32cce.js');
4
+ const _package = require('./package-bc44930e.js');
5
+
6
+ const postTogglebuttonCss = ":host{cursor:pointer}";
7
+ const PostTogglebuttonStyle0 = postTogglebuttonCss;
8
+
9
+ const PostTogglebutton = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.handleClick = () => {
13
+ this.toggled = !this.toggled;
14
+ };
15
+ this.handleKeydown = (event) => {
16
+ if (event.key === 'Enter') {
17
+ this.toggled = !this.toggled;
18
+ }
19
+ };
20
+ this.toggled = false;
21
+ }
22
+ render() {
23
+ return (index.h(index.Host, { key: '253ca4026764e8d2c0979341a617fffb6d0d2e8e', slot: "post-togglebutton", tabindex: "0", "data-version": _package.version, role: "button", "aria-pressed": this.toggled.toString(), onClick: this.handleClick, onKeyDown: this.handleKeydown }, index.h("span", { key: 'e8c7c7492986993ca1ec6c38743555030b068dbb', hidden: this.toggled }, index.h("slot", { key: 'd012a64cf1da8acc149ad4c5929cfe3fa31619a3', name: "untoggled" })), index.h("span", { key: '6603b12b05870348e979a9283ac4a17f15a217c6', hidden: !this.toggled }, index.h("slot", { key: '1306cb988d645ca297fb32d8b743ae65abfe644b', name: "toggled" }))));
24
+ }
25
+ };
26
+ PostTogglebutton.style = PostTogglebuttonStyle0;
27
+
28
+ exports.PostTogglebutton = PostTogglebutton;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const postTogglebutton = require('./post-togglebutton-2f39442e.js');
6
+ require('./index-e1f32cce.js');
7
+ require('./package-bc44930e.js');
8
+
9
+
10
+
11
+ exports.post_togglebutton = postTogglebutton.PostTogglebutton;