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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/dist/cjs/index-e1f32cce.js +16 -36
  2. package/dist/cjs/index.cjs.js +23 -44
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-a2b895fc.js → package-3ed88bb9.js} +1 -1
  5. package/dist/cjs/{post-accordion-3ce01432.js → post-accordion-9ef382e8.js} +2 -2
  6. package/dist/cjs/post-accordion-item-5f685bee.js +52 -0
  7. package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
  8. package/dist/cjs/post-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/post-alert-88adc668.js +99 -0
  10. package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +3 -3
  11. package/dist/cjs/post-card-control-c6e5c427.js +272 -0
  12. package/dist/cjs/post-card-control.cjs.entry.js +2 -2
  13. package/dist/cjs/{post-collapsible-trigger-8ca4d85b.js → post-collapsible-trigger-1764e6dc.js} +12 -7
  14. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -3
  15. package/dist/cjs/post-components.cjs.js +1 -1
  16. package/dist/cjs/post-icon-f735da00.js +139 -0
  17. package/dist/cjs/{post-language-option.cjs.entry.js → post-icon.cjs.entry.js} +4 -3
  18. package/dist/cjs/post-logo-2cd8ae98.js +39 -0
  19. package/dist/cjs/{post-breadcrumb-item.cjs.entry.js → post-logo.cjs.entry.js} +3 -3
  20. package/dist/cjs/post-popover-36c854a4.js +131 -0
  21. package/dist/cjs/post-popover.cjs.entry.js +2 -3
  22. package/dist/cjs/{post-megadropdown-trigger-7376d867.js → post-popovercontainer-cb4793c1.js} +142 -545
  23. package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
  24. package/dist/cjs/post-rating-d5073d8d.js +88 -0
  25. package/dist/cjs/post-rating.cjs.entry.js +2 -2
  26. package/dist/cjs/post-tab-header-b756d9b1.js +32 -0
  27. package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
  28. package/dist/cjs/{post-tab-panel-34aed8e6.js → post-tab-panel-97b79ecd.js} +2 -2
  29. package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
  30. package/dist/cjs/{post-tabs-dd2da5d2.js → post-tabs-834497f2.js} +8 -6
  31. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  32. package/dist/cjs/post-tag-c70fb945.js +47 -0
  33. package/dist/cjs/post-tag.cjs.entry.js +2 -2
  34. package/dist/cjs/post-tooltip-20ebe011.js +69 -0
  35. package/dist/cjs/{post-tooltip-3e0c1509.js → post-tooltip-trigger-6f4c9748.js} +506 -556
  36. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
  37. package/dist/cjs/post-tooltip.cjs.entry.js +2 -6
  38. package/dist/collection/collection-manifest.json +3 -17
  39. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  40. package/dist/collection/components/post-accordion/post-accordion.js +2 -2
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  42. package/dist/collection/components/post-accordion-item/post-accordion-item.js +8 -19
  43. package/dist/collection/components/post-alert/alert-types.js +1 -0
  44. package/dist/collection/components/post-alert/post-alert.css +35 -0
  45. package/dist/collection/components/{post-banner/post-banner.js → post-alert/post-alert.js} +68 -39
  46. package/dist/collection/components/post-card-control/post-card-control.css +30 -2
  47. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  48. package/dist/collection/components/post-collapsible/post-collapsible.js +2 -4
  49. package/dist/collection/components/post-icon/post-icon.css +1 -1
  50. package/dist/collection/components/post-icon/post-icon.js +52 -13
  51. package/dist/collection/components/post-logo/post-logo.js +1 -1
  52. package/dist/collection/components/post-popover/post-popover.css +30 -2
  53. package/dist/collection/components/post-popover/post-popover.js +10 -6
  54. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +31 -1
  55. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +180 -52
  56. package/dist/collection/components/post-rating/post-rating.css +29 -1
  57. package/dist/collection/components/post-rating/post-rating.js +1 -1
  58. package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
  59. package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
  60. package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
  61. package/dist/collection/components/post-tabs/post-tabs.css +1 -1
  62. package/dist/collection/components/post-tabs/post-tabs.js +6 -4
  63. package/dist/collection/components/post-tag/post-tag.css +29 -1
  64. package/dist/collection/components/post-tag/post-tag.js +2 -2
  65. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  66. package/dist/collection/components/post-tooltip/post-tooltip.js +60 -213
  67. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.css +1 -0
  68. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +230 -0
  69. package/dist/collection/index.js +2 -16
  70. package/dist/components/index.js +2 -16
  71. package/dist/components/index2.js +1 -1
  72. package/dist/components/package.js +1 -1
  73. package/dist/components/post-accordion-item2.js +10 -27
  74. package/dist/components/post-accordion2.js +1 -1
  75. package/dist/components/{post-menu.d.ts → post-alert.d.ts} +4 -4
  76. package/dist/components/post-alert.js +6 -0
  77. package/dist/components/post-alert2.js +136 -0
  78. package/dist/components/post-card-control2.js +3 -3
  79. package/dist/components/post-collapsible-trigger2.js +8 -1
  80. package/dist/components/post-collapsible2.js +3 -5
  81. package/dist/components/post-icon2.js +54 -15
  82. package/dist/components/post-logo2.js +2 -2
  83. package/dist/components/post-popover2.js +35 -8
  84. package/dist/components/post-popovercontainer2.js +136 -41
  85. package/dist/components/post-rating2.js +2 -2
  86. package/dist/components/post-tab-header2.js +2 -2
  87. package/dist/components/post-tab-panel2.js +1 -1
  88. package/dist/components/post-tabs2.js +7 -5
  89. package/dist/components/post-tag2.js +2 -2
  90. package/dist/components/{post-banner.d.ts → post-tooltip-trigger.d.ts} +4 -4
  91. package/dist/components/post-tooltip-trigger.js +6 -0
  92. package/dist/components/post-tooltip-trigger2.js +4968 -0
  93. package/dist/components/post-tooltip2.js +32 -4962
  94. package/dist/docs.json +290 -1288
  95. package/dist/esm/{index-f8a00dc0.js → index-69587a51.js} +1 -1
  96. package/dist/esm/index-e1b64755.js +16 -36
  97. package/dist/esm/index.js +19 -26
  98. package/dist/esm/loader.js +1 -1
  99. package/dist/esm/package-983f957d.js +3 -0
  100. package/dist/esm/{post-accordion-19e88941.js → post-accordion-ad570427.js} +2 -2
  101. package/dist/esm/post-accordion-item-4db0aa2a.js +50 -0
  102. package/dist/esm/post-accordion-item.entry.js +3 -3
  103. package/dist/esm/post-accordion.entry.js +2 -2
  104. package/dist/esm/post-alert-1e9fbdfa.js +97 -0
  105. package/dist/esm/{post-banner.entry.js → post-alert.entry.js} +3 -3
  106. package/dist/esm/post-card-control-ccb189a8.js +270 -0
  107. package/dist/esm/post-card-control.entry.js +2 -2
  108. package/dist/esm/{post-collapsible-trigger-1d939eb6.js → post-collapsible-trigger-45fe328a.js} +12 -7
  109. package/dist/esm/post-collapsible_2.entry.js +3 -4
  110. package/dist/esm/post-components.js +1 -1
  111. package/dist/esm/post-icon-3fc4dd7d.js +137 -0
  112. package/dist/esm/post-icon.entry.js +8 -0
  113. package/dist/esm/post-logo-e6cdea13.js +37 -0
  114. package/dist/esm/post-logo.entry.js +7 -0
  115. package/dist/esm/post-popover-afdf4906.js +129 -0
  116. package/dist/esm/post-popover.entry.js +2 -3
  117. package/dist/esm/{post-megadropdown-trigger-210b4ab3.js → post-popovercontainer-b19b7606.js} +144 -538
  118. package/dist/esm/post-popovercontainer.entry.js +3 -0
  119. package/dist/esm/post-rating-f60024fa.js +86 -0
  120. package/dist/esm/post-rating.entry.js +2 -2
  121. package/dist/esm/post-tab-header-333e15d5.js +30 -0
  122. package/dist/esm/post-tab-header.entry.js +2 -2
  123. package/dist/esm/{post-tab-panel-afce8d40.js → post-tab-panel-0ddb05a2.js} +2 -2
  124. package/dist/esm/post-tab-panel.entry.js +2 -2
  125. package/dist/esm/{post-tabs-fbb42496.js → post-tabs-ab7853cf.js} +8 -6
  126. package/dist/esm/post-tabs.entry.js +2 -2
  127. package/dist/esm/post-tag-4a7d14b9.js +45 -0
  128. package/dist/esm/post-tag.entry.js +2 -2
  129. package/dist/esm/post-tooltip-c03cd719.js +67 -0
  130. package/dist/esm/{post-tooltip-7101ed24.js → post-tooltip-trigger-1fefc8ad.js} +506 -556
  131. package/dist/esm/post-tooltip-trigger.entry.js +4 -0
  132. package/dist/esm/post-tooltip.entry.js +2 -6
  133. package/dist/post-components/index.esm.js +1 -1
  134. package/dist/post-components/p-0a45da5e.entry.js +1 -0
  135. package/dist/post-components/p-12e82863.entry.js +1 -0
  136. package/dist/post-components/p-1386b77d.js +1 -0
  137. package/dist/post-components/p-1528b798.js +1 -0
  138. package/dist/post-components/p-18dc1299.entry.js +1 -0
  139. package/dist/post-components/p-1a8f6c84.entry.js +1 -0
  140. package/dist/post-components/p-256453ca.js +1 -0
  141. package/dist/post-components/p-3272ebad.js +1 -0
  142. package/dist/post-components/p-3596035e.js +1 -0
  143. package/dist/post-components/p-3668f4fa.entry.js +1 -0
  144. package/dist/post-components/p-375845d4.js +1 -0
  145. package/dist/post-components/p-381de59d.entry.js +1 -0
  146. package/dist/post-components/p-4e68c514.js +1 -0
  147. package/dist/post-components/p-4eb5d9a1.entry.js +1 -0
  148. package/dist/post-components/p-61a7d216.js +1 -0
  149. package/dist/post-components/{p-0338f9da.js → p-788e64fb.js} +1 -1
  150. package/dist/post-components/p-7d5b41d1.js +1 -0
  151. package/dist/post-components/p-82ea24e7.js +1 -0
  152. package/dist/post-components/p-85c4d04f.js +1 -0
  153. package/dist/post-components/p-85c6d001.entry.js +1 -0
  154. package/dist/post-components/p-8e555dda.js +15 -0
  155. package/dist/post-components/p-962a6f36.entry.js +1 -0
  156. package/dist/post-components/p-a76c71bc.js +1 -0
  157. package/dist/post-components/p-a7e8fd41.entry.js +1 -0
  158. package/dist/post-components/p-ac216bd0.entry.js +1 -0
  159. package/dist/post-components/p-b17ecbee.entry.js +1 -0
  160. package/dist/post-components/p-bb4227ad.entry.js +1 -0
  161. package/dist/post-components/p-bc294d0b.js +1 -0
  162. package/dist/post-components/p-d0b3c5d3.entry.js +1 -0
  163. package/dist/post-components/p-d4e148d8.entry.js +1 -0
  164. package/dist/post-components/p-d9809281.js +1 -0
  165. package/dist/post-components/p-eb1e7a49.js +1 -0
  166. package/dist/post-components/p-f35291d5.entry.js +1 -0
  167. package/dist/post-components/p-fc3bfe08.js +1 -0
  168. package/dist/post-components/post-components.esm.js +1 -1
  169. package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
  170. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -5
  171. package/dist/types/components/post-alert/alert-types.d.ts +2 -0
  172. package/dist/types/components/post-alert/post-alert.d.ts +54 -0
  173. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  174. package/dist/types/components/post-icon/post-icon.d.ts +1 -1
  175. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +31 -13
  176. package/dist/types/components/post-tag/post-tag.d.ts +1 -1
  177. package/dist/types/components/post-tooltip/post-tooltip.d.ts +20 -34
  178. package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +47 -0
  179. package/dist/types/components.d.ts +124 -490
  180. package/dist/types/index.d.ts +2 -16
  181. package/loaders/index.d.ts +4 -32
  182. package/loaders/index.js +4 -18
  183. package/loaders/index2.js +1 -1
  184. package/loaders/package.js +1 -1
  185. package/loaders/post-accordion-item.js +11 -28
  186. package/loaders/post-accordion.js +1 -1
  187. package/loaders/{post-menu.d.ts → post-alert.d.ts} +4 -4
  188. package/loaders/post-alert.js +139 -0
  189. package/loaders/post-card-control.js +3 -3
  190. package/loaders/post-collapsible-trigger2.js +8 -1
  191. package/loaders/post-collapsible2.js +3 -5
  192. package/loaders/post-icon2.js +54 -15
  193. package/loaders/post-logo.js +2 -2
  194. package/loaders/post-popover.js +35 -8
  195. package/loaders/post-popovercontainer2.js +136 -41
  196. package/loaders/post-rating.js +2 -2
  197. package/loaders/post-tab-header.js +2 -2
  198. package/loaders/post-tab-panel.js +1 -1
  199. package/loaders/post-tabs.js +7 -5
  200. package/loaders/post-tag.js +2 -2
  201. package/loaders/{post-avatar.d.ts → post-tooltip-trigger.d.ts} +4 -4
  202. package/loaders/post-tooltip-trigger.js +4971 -0
  203. package/loaders/post-tooltip.js +32 -4962
  204. package/package.json +5 -7
  205. package/dist/cjs/attribute-observer-10f08c04.js +0 -27
  206. package/dist/cjs/get-root-7a3498ef.js +0 -11
  207. package/dist/cjs/post-accordion-item-81601b1e.js +0 -62
  208. package/dist/cjs/post-avatar-b1c97f51.js +0 -148
  209. package/dist/cjs/post-avatar.cjs.entry.js +0 -13
  210. package/dist/cjs/post-back-to-top-0ce98569.js +0 -98
  211. package/dist/cjs/post-back-to-top.cjs.entry.js +0 -14
  212. package/dist/cjs/post-banner-8611eab5.js +0 -90
  213. package/dist/cjs/post-breadcrumb-item-2075462a.js +0 -49
  214. package/dist/cjs/post-card-control-acd30573.js +0 -272
  215. package/dist/cjs/post-closebutton_10.cjs.entry.js +0 -25
  216. package/dist/cjs/post-language-option-cf32d0ed.js +0 -68
  217. package/dist/cjs/post-menu-a3b7b63b.js +0 -176
  218. package/dist/cjs/post-menu-item-28ab1a72.js +0 -20
  219. package/dist/cjs/post-menu-item.cjs.entry.js +0 -11
  220. package/dist/cjs/post-menu-trigger-821839f5.js +0 -75
  221. package/dist/cjs/post-menu-trigger.cjs.entry.js +0 -13
  222. package/dist/cjs/post-menu.cjs.entry.js +0 -11
  223. package/dist/cjs/post-popover-c4f50134.js +0 -104
  224. package/dist/cjs/post-rating-3a87ca46.js +0 -88
  225. package/dist/cjs/post-tab-header-5fdb05a1.js +0 -32
  226. package/dist/cjs/post-tag-59232922.js +0 -47
  227. package/dist/cjs/post-togglebutton-59c6357b.js +0 -28
  228. package/dist/cjs/post-togglebutton.cjs.entry.js +0 -11
  229. package/dist/collection/animations/slide.js +0 -23
  230. package/dist/collection/components/post-avatar/post-avatar.css +0 -3
  231. package/dist/collection/components/post-avatar/post-avatar.js +0 -237
  232. package/dist/collection/components/post-back-to-top/post-back-to-top.css +0 -1
  233. package/dist/collection/components/post-back-to-top/post-back-to-top.js +0 -107
  234. package/dist/collection/components/post-banner/banner-types.js +0 -1
  235. package/dist/collection/components/post-banner/post-banner.css +0 -3
  236. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +0 -1
  237. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -83
  238. package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
  239. package/dist/collection/components/post-header/post-header.css +0 -1
  240. package/dist/collection/components/post-header/post-header.js +0 -103
  241. package/dist/collection/components/post-language-option/post-language-option.css +0 -3
  242. package/dist/collection/components/post-language-option/post-language-option.js +0 -191
  243. package/dist/collection/components/post-list/post-list.css +0 -3
  244. package/dist/collection/components/post-list/post-list.js +0 -87
  245. package/dist/collection/components/post-list-item/post-list-item.css +0 -1
  246. package/dist/collection/components/post-list-item/post-list-item.js +0 -25
  247. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +0 -1
  248. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +0 -61
  249. package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
  250. package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -137
  251. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +0 -1
  252. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +0 -48
  253. package/dist/collection/components/post-menu/post-menu.css +0 -3
  254. package/dist/collection/components/post-menu/post-menu.js +0 -278
  255. package/dist/collection/components/post-menu-item/post-menu-item.css +0 -1
  256. package/dist/collection/components/post-menu-item/post-menu-item.js +0 -20
  257. package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +0 -1
  258. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +0 -104
  259. package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
  260. package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -56
  261. package/dist/collection/utils/is-focusable.js +0 -26
  262. package/dist/components/attribute-observer.js +0 -25
  263. package/dist/components/get-root.js +0 -9
  264. package/dist/components/post-avatar.d.ts +0 -11
  265. package/dist/components/post-avatar.js +0 -6
  266. package/dist/components/post-avatar2.js +0 -173
  267. package/dist/components/post-back-to-top.d.ts +0 -11
  268. package/dist/components/post-back-to-top.js +0 -6
  269. package/dist/components/post-back-to-top2.js +0 -123
  270. package/dist/components/post-banner.js +0 -6
  271. package/dist/components/post-banner2.js +0 -125
  272. package/dist/components/post-breadcrumb-item.d.ts +0 -11
  273. package/dist/components/post-breadcrumb-item.js +0 -6
  274. package/dist/components/post-breadcrumb-item2.js +0 -72
  275. package/dist/components/post-closebutton.d.ts +0 -11
  276. package/dist/components/post-closebutton.js +0 -6
  277. package/dist/components/post-closebutton2.js +0 -34
  278. package/dist/components/post-header.d.ts +0 -11
  279. package/dist/components/post-header.js +0 -6
  280. package/dist/components/post-header2.js +0 -235
  281. package/dist/components/post-language-option.d.ts +0 -11
  282. package/dist/components/post-language-option.js +0 -6
  283. package/dist/components/post-language-option2.js +0 -92
  284. package/dist/components/post-list-item.d.ts +0 -11
  285. package/dist/components/post-list-item.js +0 -6
  286. package/dist/components/post-list-item2.js +0 -35
  287. package/dist/components/post-list.d.ts +0 -11
  288. package/dist/components/post-list.js +0 -6
  289. package/dist/components/post-list2.js +0 -53
  290. package/dist/components/post-mainnavigation.d.ts +0 -11
  291. package/dist/components/post-mainnavigation.js +0 -6
  292. package/dist/components/post-mainnavigation2.js +0 -48
  293. package/dist/components/post-megadropdown-trigger.d.ts +0 -11
  294. package/dist/components/post-megadropdown-trigger.js +0 -6
  295. package/dist/components/post-megadropdown-trigger2.js +0 -39
  296. package/dist/components/post-megadropdown.d.ts +0 -11
  297. package/dist/components/post-megadropdown.js +0 -6
  298. package/dist/components/post-megadropdown2.js +0 -67
  299. package/dist/components/post-menu-item.d.ts +0 -11
  300. package/dist/components/post-menu-item.js +0 -6
  301. package/dist/components/post-menu-item2.js +0 -33
  302. package/dist/components/post-menu-trigger.d.ts +0 -11
  303. package/dist/components/post-menu-trigger.js +0 -6
  304. package/dist/components/post-menu-trigger2.js +0 -92
  305. package/dist/components/post-menu.js +0 -6
  306. package/dist/components/post-menu2.js +0 -201
  307. package/dist/components/post-togglebutton.d.ts +0 -11
  308. package/dist/components/post-togglebutton.js +0 -6
  309. package/dist/components/post-togglebutton2.js +0 -43
  310. package/dist/esm/attribute-observer-37fa950a.js +0 -25
  311. package/dist/esm/get-root-7af2e0d1.js +0 -9
  312. package/dist/esm/package-9cafe148.js +0 -3
  313. package/dist/esm/post-accordion-item-33bbe4de.js +0 -60
  314. package/dist/esm/post-avatar-d15a9f9e.js +0 -146
  315. package/dist/esm/post-avatar.entry.js +0 -5
  316. package/dist/esm/post-back-to-top-bcf46150.js +0 -96
  317. package/dist/esm/post-back-to-top.entry.js +0 -6
  318. package/dist/esm/post-banner-bf5e6a18.js +0 -88
  319. package/dist/esm/post-breadcrumb-item-e3b41f74.js +0 -47
  320. package/dist/esm/post-breadcrumb-item.entry.js +0 -7
  321. package/dist/esm/post-card-control-f0788f6f.js +0 -270
  322. package/dist/esm/post-closebutton_10.entry.js +0 -8
  323. package/dist/esm/post-language-option-1436370d.js +0 -66
  324. package/dist/esm/post-language-option.entry.js +0 -7
  325. package/dist/esm/post-menu-e853e28b.js +0 -174
  326. package/dist/esm/post-menu-item-86d4c7ab.js +0 -18
  327. package/dist/esm/post-menu-item.entry.js +0 -3
  328. package/dist/esm/post-menu-trigger-80c2bdf4.js +0 -73
  329. package/dist/esm/post-menu-trigger.entry.js +0 -5
  330. package/dist/esm/post-menu.entry.js +0 -3
  331. package/dist/esm/post-popover-7195d05a.js +0 -102
  332. package/dist/esm/post-rating-8baf86fe.js +0 -86
  333. package/dist/esm/post-tab-header-a1d1d9d0.js +0 -30
  334. package/dist/esm/post-tag-d67b6a19.js +0 -45
  335. package/dist/esm/post-togglebutton-c3fb912d.js +0 -26
  336. package/dist/esm/post-togglebutton.entry.js +0 -3
  337. package/dist/post-components/p-00fa0152.js +0 -1
  338. package/dist/post-components/p-1667387e.entry.js +0 -1
  339. package/dist/post-components/p-19551c18.entry.js +0 -1
  340. package/dist/post-components/p-1b627f80.js +0 -1
  341. package/dist/post-components/p-24673919.js +0 -1
  342. package/dist/post-components/p-266b734f.entry.js +0 -1
  343. package/dist/post-components/p-282115c4.js +0 -1
  344. package/dist/post-components/p-2d0ffc1e.entry.js +0 -1
  345. package/dist/post-components/p-45018d7e.entry.js +0 -1
  346. package/dist/post-components/p-485dafcf.js +0 -1
  347. package/dist/post-components/p-4a647a78.js +0 -1
  348. package/dist/post-components/p-4abfa65b.js +0 -1
  349. package/dist/post-components/p-517f2b1f.entry.js +0 -1
  350. package/dist/post-components/p-55224ee7.entry.js +0 -1
  351. package/dist/post-components/p-558a9849.js +0 -1
  352. package/dist/post-components/p-59b31557.js +0 -1
  353. package/dist/post-components/p-5d1db85c.entry.js +0 -1
  354. package/dist/post-components/p-61e79941.js +0 -1
  355. package/dist/post-components/p-679978de.entry.js +0 -1
  356. package/dist/post-components/p-6a842b96.entry.js +0 -1
  357. package/dist/post-components/p-6adeaa6c.js +0 -1
  358. package/dist/post-components/p-6cea23cd.js +0 -15
  359. package/dist/post-components/p-71f03424.js +0 -1
  360. package/dist/post-components/p-8c2568c1.entry.js +0 -1
  361. package/dist/post-components/p-8fd3a3cb.entry.js +0 -1
  362. package/dist/post-components/p-939f2ba7.js +0 -1
  363. package/dist/post-components/p-a4c39296.entry.js +0 -1
  364. package/dist/post-components/p-af5d3b89.entry.js +0 -1
  365. package/dist/post-components/p-b4423249.entry.js +0 -1
  366. package/dist/post-components/p-c31a7d65.entry.js +0 -1
  367. package/dist/post-components/p-c544bb82.js +0 -1
  368. package/dist/post-components/p-ccb6dfa1.js +0 -1
  369. package/dist/post-components/p-d0b8820a.js +0 -1
  370. package/dist/post-components/p-d36adfb5.js +0 -1
  371. package/dist/post-components/p-da6a8268.entry.js +0 -1
  372. package/dist/post-components/p-ece14d88.js +0 -1
  373. package/dist/post-components/p-f0f8427e.js +0 -1
  374. package/dist/post-components/p-f2e1b4d8.js +0 -1
  375. package/dist/post-components/p-f627744e.js +0 -1
  376. package/dist/post-components/p-f7b6b96a.entry.js +0 -1
  377. package/dist/post-components/p-f812e93d.entry.js +0 -1
  378. package/dist/post-components/p-f8d41c32.js +0 -1
  379. package/dist/post-components/p-fc91cbc2.js +0 -1
  380. package/dist/post-components/p-fe516cdf.entry.js +0 -1
  381. package/dist/post-components/p-fe7467fb.entry.js +0 -1
  382. package/dist/types/animations/slide.d.ts +0 -2
  383. package/dist/types/components/post-avatar/post-avatar.d.ts +0 -51
  384. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -19
  385. package/dist/types/components/post-banner/banner-types.d.ts +0 -2
  386. package/dist/types/components/post-banner/post-banner.d.ts +0 -49
  387. package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -15
  388. package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
  389. package/dist/types/components/post-header/post-header.d.ts +0 -16
  390. package/dist/types/components/post-language-option/post-language-option.d.ts +0 -40
  391. package/dist/types/components/post-list/post-list.d.ts +0 -24
  392. package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
  393. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -10
  394. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -23
  395. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -10
  396. package/dist/types/components/post-menu/post-menu.d.ts +0 -47
  397. package/dist/types/components/post-menu-item/post-menu-item.d.ts +0 -4
  398. package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -27
  399. package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -13
  400. package/dist/types/utils/is-focusable.d.ts +0 -1
  401. package/loaders/attribute-observer.js +0 -25
  402. package/loaders/get-root.js +0 -9
  403. package/loaders/post-avatar.js +0 -176
  404. package/loaders/post-back-to-top.d.ts +0 -11
  405. package/loaders/post-back-to-top.js +0 -126
  406. package/loaders/post-banner.d.ts +0 -11
  407. package/loaders/post-banner.js +0 -128
  408. package/loaders/post-breadcrumb-item.d.ts +0 -11
  409. package/loaders/post-breadcrumb-item.js +0 -75
  410. package/loaders/post-closebutton.d.ts +0 -11
  411. package/loaders/post-closebutton.js +0 -37
  412. package/loaders/post-header.d.ts +0 -11
  413. package/loaders/post-header.js +0 -238
  414. package/loaders/post-language-option.d.ts +0 -11
  415. package/loaders/post-language-option.js +0 -95
  416. package/loaders/post-list-item.d.ts +0 -11
  417. package/loaders/post-list-item.js +0 -38
  418. package/loaders/post-list.d.ts +0 -11
  419. package/loaders/post-list.js +0 -56
  420. package/loaders/post-mainnavigation.d.ts +0 -11
  421. package/loaders/post-mainnavigation.js +0 -51
  422. package/loaders/post-megadropdown-trigger.d.ts +0 -11
  423. package/loaders/post-megadropdown-trigger.js +0 -42
  424. package/loaders/post-megadropdown.d.ts +0 -11
  425. package/loaders/post-megadropdown.js +0 -70
  426. package/loaders/post-menu-item.d.ts +0 -11
  427. package/loaders/post-menu-item.js +0 -36
  428. package/loaders/post-menu-trigger.d.ts +0 -11
  429. package/loaders/post-menu-trigger.js +0 -95
  430. package/loaders/post-menu.js +0 -204
  431. package/loaders/post-togglebutton.d.ts +0 -11
  432. package/loaders/post-togglebutton.js +0 -46
@@ -1,20 +1,12 @@
1
1
  // Export every single component so it gets included in the dist output
2
2
  export { PostAccordion } from './components/post-accordion/post-accordion';
3
3
  export { PostAccordionItem } from './components/post-accordion-item/post-accordion-item';
4
- export { PostBackToTop } from './components/post-back-to-top/post-back-to-top';
5
- export { PostBanner } from './components/post-banner/post-banner';
6
- export { PostBreadcrumbItem } from './components/post-breadcrumb-item/post-breadcrumb-item';
7
- export { PostAvatar } from './components/post-avatar/post-avatar';
4
+ export { PostAlert } from './components/post-alert/post-alert';
8
5
  export { PostCardControl } from './components/post-card-control/post-card-control';
9
- export { PostClosebutton } from './components/post-closebutton/post-closebutton';
10
6
  export { PostCollapsible } from './components/post-collapsible/post-collapsible';
11
7
  export { PostCollapsibleTrigger } from './components/post-collapsible-trigger/post-collapsible-trigger';
12
8
  export { PostIcon } from './components/post-icon/post-icon';
13
- export { PostLanguageOption } from './components/post-language-option/post-language-option';
14
9
  export { PostLogo } from './components/post-logo/post-logo';
15
- export { PostMenu } from './components/post-menu/post-menu';
16
- export { PostMenuTrigger } from './components/post-menu-trigger/post-menu-trigger';
17
- export { PostMenuItem } from './components/post-menu-item/post-menu-item';
18
10
  export { PostPopover } from './components/post-popover/post-popover';
19
11
  export { PostPopovercontainer } from './components/post-popovercontainer/post-popovercontainer';
20
12
  export { PostRating } from './components/post-rating/post-rating';
@@ -22,11 +14,5 @@ export { PostTabs } from './components/post-tabs/post-tabs';
22
14
  export { PostTabHeader } from './components/post-tab-header/post-tab-header';
23
15
  export { PostTabPanel } from './components/post-tab-panel/post-tab-panel';
24
16
  export { PostTooltip } from './components/post-tooltip/post-tooltip';
17
+ export { PostTooltipTrigger } from './components/post-tooltip-trigger/post-tooltip-trigger';
25
18
  export { PostTag } from './components/post-tag/post-tag';
26
- export { PostTogglebutton } from './components/post-togglebutton/post-togglebutton';
27
- export { PostList } from './components/post-list/post-list';
28
- export { PostListItem } from './components/post-list-item/post-list-item';
29
- export { PostHeader } from './components/post-header/post-header';
30
- export { PostMainnavigation } from './components/post-mainnavigation/post-mainnavigation';
31
- export { PostMegadropdown } from './components/post-megadropdown/post-megadropdown';
32
- export { PostMegadropdownTrigger } from './components/post-megadropdown-trigger/post-megadropdown-trigger';
@@ -1,20 +1,12 @@
1
1
  export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
2
  export { P as PostAccordion } from './post-accordion2.js';
3
3
  export { P as PostAccordionItem } from './post-accordion-item2.js';
4
- export { P as PostBackToTop } from './post-back-to-top2.js';
5
- export { P as PostBanner } from './post-banner2.js';
6
- export { P as PostBreadcrumbItem } from './post-breadcrumb-item2.js';
7
- export { P as PostAvatar } from './post-avatar2.js';
4
+ export { P as PostAlert } from './post-alert2.js';
8
5
  export { P as PostCardControl } from './post-card-control2.js';
9
- export { P as PostClosebutton } from './post-closebutton2.js';
10
6
  export { P as PostCollapsible } from './post-collapsible2.js';
11
7
  export { P as PostCollapsibleTrigger } from './post-collapsible-trigger2.js';
12
8
  export { P as PostIcon } from './post-icon2.js';
13
- export { P as PostLanguageOption } from './post-language-option2.js';
14
9
  export { P as PostLogo } from './post-logo2.js';
15
- export { P as PostMenu } from './post-menu2.js';
16
- export { P as PostMenuTrigger } from './post-menu-trigger2.js';
17
- export { P as PostMenuItem } from './post-menu-item2.js';
18
10
  export { P as PostPopover } from './post-popover2.js';
19
11
  export { P as PostPopovercontainer } from './post-popovercontainer2.js';
20
12
  export { P as PostRating } from './post-rating2.js';
@@ -22,11 +14,5 @@ export { P as PostTabs } from './post-tabs2.js';
22
14
  export { P as PostTabHeader } from './post-tab-header2.js';
23
15
  export { P as PostTabPanel } from './post-tab-panel2.js';
24
16
  export { P as PostTooltip } from './post-tooltip2.js';
17
+ export { P as PostTooltipTrigger } from './post-tooltip-trigger2.js';
25
18
  export { P as PostTag } from './post-tag2.js';
26
- export { P as PostTogglebutton } from './post-togglebutton2.js';
27
- export { P as PostList } from './post-list2.js';
28
- export { P as PostListItem } from './post-list-item2.js';
29
- export { P as PostHeader } from './post-header2.js';
30
- export { P as PostMainnavigation } from './post-mainnavigation2.js';
31
- export { P as PostMegadropdown } from './post-megadropdown2.js';
32
- export { P as PostMegadropdownTrigger } from './post-megadropdown-trigger2.js';
@@ -31,4 +31,4 @@ const checkEmptyOrPattern = emptyOr(checkPattern);
31
31
  const checkEmptyOrType = emptyOr(checkType);
32
32
  const checkEmptyOrUrl = emptyOr(checkUrl);
33
33
 
34
- export { checkEmptyOrPattern as a, checkEmptyOrUrl as b, checkEmptyOrOneOf as c, checkEmptyOrType as d };
34
+ export { checkEmptyOrPattern as a, checkEmptyOrType as b, checkEmptyOrOneOf as c, checkEmptyOrUrl as d };
@@ -1,3 +1,3 @@
1
- const version = "9.0.0-next.8";
1
+ const version = "9.0.0";
2
2
 
3
3
  export { version as v };
@@ -2,11 +2,10 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { v as version } from './package.js';
3
3
  import { H as HEADING_LEVELS } from './heading-levels.js';
4
4
  import { c as checkEmptyOrOneOf } from './index2.js';
5
- import { d as defineCustomElement$3 } from './post-collapsible2.js';
6
- import { d as defineCustomElement$2 } from './post-collapsible-trigger2.js';
7
- import { d as defineCustomElement$1 } from './post-icon2.js';
5
+ import { d as defineCustomElement$2 } from './post-collapsible2.js';
6
+ import { d as defineCustomElement$1 } from './post-collapsible-trigger2.js';
8
7
 
9
- const postAccordionItemCss = ":host::after{display:block;content:\"\";margin-top:calc(var(--post-device-border-width-default)*-1);border-bottom:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;bottom:auto;border-top:var(--post-accordion-button-border-top)}.accordion-button{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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:var(--post-device-border-width-default) solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}";
8
+ const postAccordionItemCss = "post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.accordion-item{--post-bg-rgb:244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%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='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";
10
9
  const PostAccordionItemStyle0 = postAccordionItemCss;
11
10
 
12
11
  const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends HTMLElement {
@@ -15,19 +14,18 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
15
14
  this.__registerHost();
16
15
  this.__attachShadow();
17
16
  this.id = undefined;
18
- this.slottedLogo = undefined;
19
17
  this.collapsed = false;
20
- this.headingLevel = undefined;
18
+ this.headingLevel = 2;
21
19
  }
22
20
  validateHeadingLevel(newValue = this.headingLevel) {
23
21
  checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
24
22
  }
25
- componentWillLoad() {
26
- this.id = this.host.id || `a${crypto.randomUUID()}`;
27
- }
28
23
  componentDidLoad() {
29
24
  this.validateHeadingLevel();
30
25
  }
26
+ componentWillLoad() {
27
+ this.id = this.host.id || `a${crypto.randomUUID()}`;
28
+ }
31
29
  // capture to make sure the "collapsed" property is updated before the event is consumed
32
30
  onCollapseToggle(event) {
33
31
  if (event.target === this.host &&
@@ -41,19 +39,10 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
41
39
  async toggle(force) {
42
40
  return this.collapsible.toggle(force);
43
41
  }
44
- onSlotLogoChange() {
45
- this.slottedLogo = this.host.querySelector('img[slot="logo"]');
46
- }
47
- componentWillRender() {
48
- this.slottedLogo = this.host.querySelector('img[slot="logo"]');
49
- }
50
42
  render() {
51
43
  var _a;
52
44
  const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
53
- return (h(Host, { key: 'c125939ea36a2d8d98f645ff2e22863cfe799a73', id: this.id, "data-version": version }, h("div", { key: '2d8ac2807d839745562b72e2db650886a7f04d8d', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '4b2743a143c21bbff7cc3be3f8f9833b97327605', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'c2073d092cb021ac7825184c0634f3f903f119ae', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '663915c767685ac0f57dd04071e3d525312f4fa7', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}` }, h("span", { key: 'bbd07f382cdb69334fc8540fc48db81865caa4b2', class: {
54
- 'logo-container': true,
55
- 'has-image': !!this.slottedLogo,
56
- } }, h("slot", { key: '9d1e97d3c93a7ef406a743a2a877660f3de9747e', name: "logo", onSlotchange: this.onSlotLogoChange.bind(this) })), h("slot", { key: 'ffdaac001188bc920bc43145604b0208427fbe59', name: "header" }), h("post-icon", { key: '6cba37b29b734819a698a0043d8d4924fd496309', name: "2051" })))), h("post-collapsible", { key: '915f7e9063066ca1adf684157832d70a961c20e0', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: 'e1d38f9f25a93dcf5aa3bbb94b8baed46b337616', class: "accordion-body" }, h("slot", { key: 'fbfb6764e6a8d3dfda7b87fe0a61d62d90d59b7e' }))))));
45
+ return (h(Host, { key: '610dbc5f3a5da823806ce205d26eeab37fc6ea37', id: this.id, "data-version": version }, h("div", { key: '9678dacae2bd8a50644506db46852c006e35f10c', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '3c2b300f3c2a4b992678e15a7bf39e46ec033637', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'a9ce98a575f64d9be7f6017d213217801556803d', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '7149fa70d9a0d004ba16eb4ad17542eff6952575', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}` }, h("slot", { key: '0a3f01852653f09fcb5a9c8d9a9cde276091ab6d', name: "header" })))), h("post-collapsible", { key: '99f28c099b124010e063b099153dd6ca96020a50', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '65e6dd8a1975231686836e42d90778a822bc501a', class: "accordion-body" }, h("slot", { key: 'e9ebb2918d7bbe92e2ce82da477b1df4c3146ee2' }))))));
57
46
  }
58
47
  get host() { return this; }
59
48
  static get watchers() { return {
@@ -64,7 +53,6 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
64
53
  "collapsed": [1028],
65
54
  "headingLevel": [2, "heading-level"],
66
55
  "id": [32],
67
- "slottedLogo": [32],
68
56
  "toggle": [64]
69
57
  }, [[2, "postToggle", "onCollapseToggle"]], {
70
58
  "headingLevel": ["validateHeadingLevel"]
@@ -73,7 +61,7 @@ function defineCustomElement() {
73
61
  if (typeof customElements === "undefined") {
74
62
  return;
75
63
  }
76
- const components = ["post-accordion-item", "post-collapsible", "post-collapsible-trigger", "post-icon"];
64
+ const components = ["post-accordion-item", "post-collapsible", "post-collapsible-trigger"];
77
65
  components.forEach(tagName => { switch (tagName) {
78
66
  case "post-accordion-item":
79
67
  if (!customElements.get(tagName)) {
@@ -81,16 +69,11 @@ function defineCustomElement() {
81
69
  }
82
70
  break;
83
71
  case "post-collapsible":
84
- if (!customElements.get(tagName)) {
85
- defineCustomElement$3();
86
- }
87
- break;
88
- case "post-collapsible-trigger":
89
72
  if (!customElements.get(tagName)) {
90
73
  defineCustomElement$2();
91
74
  }
92
75
  break;
93
- case "post-icon":
76
+ case "post-collapsible-trigger":
94
77
  if (!customElements.get(tagName)) {
95
78
  defineCustomElement$1();
96
79
  }
@@ -3,7 +3,7 @@ import { v as version } from './package.js';
3
3
  import { H as HEADING_LEVELS } from './heading-levels.js';
4
4
  import { c as checkOneOf } from './check-one-of.js';
5
5
 
6
- const postAccordionCss = ":host{display:block}::slotted(post-accordion-item){display:block}::slotted(post-accordion-item:not(:only-of-type:first-of-type)){margin-top:calc(var(--post-device-border-width-default)*-1)}::slotted(post-accordion-item:not(:only-of-type):first-of-type){--post-accordion-button-border-top:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}";
6
+ const postAccordionCss = ":host{display:block}";
7
7
  const PostAccordionStyle0 = postAccordionCss;
8
8
 
9
9
  const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion extends HTMLElement {
@@ -1,9 +1,9 @@
1
1
  import type { Components, JSX } from "../types/components";
2
2
 
3
- interface PostMenu extends Components.PostMenu, HTMLElement {}
4
- export const PostMenu: {
5
- prototype: PostMenu;
6
- new (): PostMenu;
3
+ interface PostAlert extends Components.PostAlert, HTMLElement {}
4
+ export const PostAlert: {
5
+ prototype: PostAlert;
6
+ new (): PostAlert;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -0,0 +1,6 @@
1
+ import { P as PostAlert$1, d as defineCustomElement$1 } from './post-alert2.js';
2
+
3
+ const PostAlert = PostAlert$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PostAlert, defineCustomElement };
@@ -0,0 +1,136 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { v as version } from './package.js';
3
+ import { f as fadeOut } from './fade.js';
4
+ import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index2.js';
5
+ import { d as defineCustomElement$1 } from './post-icon2.js';
6
+ import { c as checkType } from './check-type.js';
7
+ import { c as checkNonEmpty } from './check-non-empty.js';
8
+
9
+ const ALERT_TYPES = ['primary', 'success', 'warning', 'danger', 'info', 'gray'];
10
+
11
+ const postAlertCss = "/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */.alert-primary,.alert-success,.alert-warning,.alert-danger,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-warning,.alert-info,.alert-gray{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.alert-primary,.alert-success,.alert-danger,.alert-notification,.alert-error{--post-contrast-color:#fff;--post-focus-color:#fff;--post-contrast-color-inverted:#000;--post-dark:#faf9f8;--post-light:hsl(0, 0%, 20%);--post-gray-80:hsl(0, 0%, 90%);--post-gray-60:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-20:hsl(0, 0%, 40%);--post-gray-10:hsl(0, 0%, 20%);--post-contrast-color-rgb:255, 255, 255;--post-contrast-color-inverted-rgb:0, 0, 0;--post-dark-rgb:250, 249, 248;--post-light-rgb:51, 51, 51;--post-gray-80-rgb:230, 230, 230;--post-gray-60-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-20-rgb:102, 102, 102;--post-gray-10-rgb:51, 51, 51}.alert{position:relative;box-sizing:border-box;min-height:5rem;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);border-radius:4px;padding:1rem 1.25rem;padding-inline-start:5.5rem;margin-block-end:1rem;font-size:1rem;font-weight:400}.alert.no-icon{min-height:3.5rem;padding-inline-start:1.25rem}.alert[class^=pi-],.alert[class*=\" pi-\"]{background-size:3rem;background-position:1.25rem 1rem;background-repeat:no-repeat}.alert[class^=pi-].no-icon,.alert[class*=\" pi-\"].no-icon{background-image:none}.alert::before{content:\"\";display:block}.alert::before,.alert>post-icon{position:absolute;height:3rem;width:3rem;left:1.25rem;top:1rem}.alert.no-icon::before,.alert[class^=pi-]::before,.alert[class*=\" pi-\"]::before{content:unset}.alert.no-icon>post-icon,.alert[class^=pi-]>post-icon,.alert[class*=\" pi-\"]>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.alert{filter:none !important;border:2px solid CanvasText}}.alert:not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert:not(.alert-action) a{font-weight:400}.alert:not(.alert-action) hr{margin-block:.5rem .75rem !important}.alert:not(.alert-action)>:only-child,.alert:not(.alert-action)>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert:not(.alert-action)>*{margin:0}.alert-heading{font-size:1.0625rem;font-weight:700}.alert-dismissible{pointer-events:auto;position:relative;padding-inline-end:4rem}.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:1.25rem}.alert-dismissible>.btn-close:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action{display:flex;flex-direction:row;align-items:center;gap:1.25rem}.alert-action>.alert-content{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert-action>.alert-content a{font-weight:400}.alert-action>.alert-content hr{margin-block:.5rem .75rem !important}.alert-action>.alert-content>:only-child,.alert-action>.alert-content>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action>.alert-content>*{margin:0}.alert-action>.alert-buttons{flex:0 0 auto;display:flex;align-items:center;gap:.5rem}@media (min-width: 780px){.alert-action.alert-dismissible>.btn-close{inset-block-start:calc(50% - 0.75rem)}}@media (max-width: 779.98px){.alert-action{flex-direction:column;align-items:stretch;padding-inline:1.25rem}.alert-action>.alert-content{padding-inline-start:4.25rem;padding-inline-end:2.75rem}.alert-action.no-icon>.alert-content{padding-inline-start:0}.alert-action>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.alert-fixed-bottom{position:fixed;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;margin-bottom:0;border-radius:0;z-index:1030}@media (min-width: 1440px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1439px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb:51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%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='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 135, 29}.alert-success:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%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='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c871d}.alert-warning{--post-bg-rgb:244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-danger{--post-bg-rgb:165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-info{--post-bg-rgb:204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%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='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb:244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%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='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb:51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%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='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb:165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%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='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.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}@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}.alert-heading>::slotted(h1){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h2){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h3){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h4){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h5){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h6){font-size:inherit !important;font-weight:inherit !important}";
12
+ const PostAlertStyle0 = postAlertCss;
13
+
14
+ const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLElement {
15
+ constructor() {
16
+ super();
17
+ this.__registerHost();
18
+ this.__attachShadow();
19
+ this.postDismissed = createEvent(this, "postDismissed", 7);
20
+ this.alertId = crypto.randomUUID();
21
+ this.classes = undefined;
22
+ this.hasActions = undefined;
23
+ this.hasHeading = undefined;
24
+ this.onDismissButtonClick = () => this.dismiss();
25
+ this.dismissible = false;
26
+ this.dismissLabel = undefined;
27
+ this.fixed = false;
28
+ this.icon = undefined;
29
+ this.type = 'primary';
30
+ }
31
+ validateDismissible(isDismissible = this.dismissible) {
32
+ checkType(isDismissible, 'boolean', 'The post-alert "dismissible" prop should be a boolean.');
33
+ setTimeout(() => this.validateDismissLabel());
34
+ }
35
+ validateDismissLabel(dismissLabel = this.dismissLabel) {
36
+ if (this.dismissible) {
37
+ checkNonEmpty(dismissLabel, 'Dismissible post-alert\'s require a "dismiss-label" prop.');
38
+ }
39
+ }
40
+ validateFixed(isFixed = this.fixed) {
41
+ checkType(isFixed, 'boolean', 'The post-alert "fixed" prop should be a boolean.');
42
+ }
43
+ validateIcon(icon = this.icon) {
44
+ checkEmptyOrPattern(icon, /\d{4}|none/, 'The post-alert "icon" prop should be a 4-digits string.');
45
+ }
46
+ validateType(type = this.type) {
47
+ checkEmptyOrOneOf(type, ALERT_TYPES, `The post-alert requires a type form: ${ALERT_TYPES.join(', ')}`);
48
+ }
49
+ componentDidLoad() {
50
+ this.validateDismissible();
51
+ this.validateFixed();
52
+ this.validateIcon();
53
+ this.validateType();
54
+ }
55
+ componentWillRender() {
56
+ var _a;
57
+ this.hasHeading = this.host.querySelectorAll('[slot=heading]').length > 0;
58
+ this.hasActions = this.host.querySelectorAll('[slot=actions]').length > 0;
59
+ this.classes = `alert alert-${(_a = this.type) !== null && _a !== void 0 ? _a : 'primary'}`;
60
+ if (this.dismissible)
61
+ this.classes += ' alert-dismissible';
62
+ if (this.hasActions)
63
+ this.classes += ' alert-action';
64
+ if (this.fixed)
65
+ this.classes += ' alert-fixed-bottom';
66
+ if (this.icon === 'none')
67
+ this.classes += ' no-icon';
68
+ }
69
+ /**
70
+ * Triggers alert dismissal programmatically (same as clicking on the close button (×)).
71
+ */
72
+ async dismiss() {
73
+ const dismissal = fadeOut(this.host);
74
+ await dismissal.finished;
75
+ this.host.remove();
76
+ this.postDismissed.emit();
77
+ }
78
+ render() {
79
+ const defaultAlertContent = [
80
+ this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'a3404eee0322cc2b50125bf4ca08969e33d15763', name: "heading" }))),
81
+ h("slot", { key: `${this.alertId}-message` }),
82
+ ];
83
+ const actionAlertContent = [
84
+ h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
85
+ h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '50941abd468008cd58a1e05577243d1046a0e20e', name: "actions" })),
86
+ ];
87
+ return (h(Host, { key: '99c1e3b4cc943d8be2d5abe7b2b27dce03548d15', "data-version": version }, h("div", { key: 'a290771bcc1234684502f524fe6e7e44501fc004', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '57c9cdbec53430b0fc6e121b5928bb14b86c37e0', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: '82d59b6deb736b4053b2b0876c87456c160928ee', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions ? actionAlertContent : defaultAlertContent)));
88
+ }
89
+ get host() { return this; }
90
+ static get watchers() { return {
91
+ "dismissible": ["validateDismissible"],
92
+ "dismissLabel": ["validateDismissLabel"],
93
+ "fixed": ["validateFixed"],
94
+ "icon": ["validateIcon"],
95
+ "type": ["validateType"]
96
+ }; }
97
+ static get style() { return PostAlertStyle0; }
98
+ }, [1, "post-alert", {
99
+ "dismissible": [4],
100
+ "dismissLabel": [1, "dismiss-label"],
101
+ "fixed": [4],
102
+ "icon": [1],
103
+ "type": [1],
104
+ "alertId": [32],
105
+ "classes": [32],
106
+ "hasActions": [32],
107
+ "hasHeading": [32],
108
+ "onDismissButtonClick": [32],
109
+ "dismiss": [64]
110
+ }, undefined, {
111
+ "dismissible": ["validateDismissible"],
112
+ "dismissLabel": ["validateDismissLabel"],
113
+ "fixed": ["validateFixed"],
114
+ "icon": ["validateIcon"],
115
+ "type": ["validateType"]
116
+ }]);
117
+ function defineCustomElement() {
118
+ if (typeof customElements === "undefined") {
119
+ return;
120
+ }
121
+ const components = ["post-alert", "post-icon"];
122
+ components.forEach(tagName => { switch (tagName) {
123
+ case "post-alert":
124
+ if (!customElements.get(tagName)) {
125
+ customElements.define(tagName, PostAlert);
126
+ }
127
+ break;
128
+ case "post-icon":
129
+ if (!customElements.get(tagName)) {
130
+ defineCustomElement$1();
131
+ }
132
+ break;
133
+ } });
134
+ }
135
+
136
+ export { PostAlert as P, defineCustomElement as d };