@swisspost/design-system-components 1.7.1 → 2.0.1

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 (339) hide show
  1. package/LICENSE +183 -185
  2. package/README.md +1 -1
  3. package/dist/cjs/check-non-empty-eeaa8f77.js +0 -2
  4. package/dist/cjs/constants-238701d3.js +0 -2
  5. package/dist/cjs/fade-35a3633a.js +0 -2
  6. package/dist/cjs/index-8c288b1a.js +0 -2
  7. package/dist/cjs/{index-c07c0cdb.js → index-f243643b.js} +38 -8
  8. package/dist/cjs/index.cjs.js +15 -15
  9. package/dist/cjs/loader.cjs.js +2 -4
  10. package/dist/cjs/package-0645dd08.js +5 -0
  11. package/dist/cjs/post-accordion-64aa88cf.js +87 -0
  12. package/dist/cjs/post-accordion-item-51df1dfa.js +51 -0
  13. package/dist/cjs/post-accordion-item.cjs.entry.js +13 -0
  14. package/dist/cjs/post-accordion.cjs.entry.js +3 -5
  15. package/dist/cjs/{post-alert-39ac30a4.js → post-alert-ac59385a.js} +9 -12
  16. package/dist/cjs/post-alert.cjs.entry.js +3 -5
  17. package/dist/cjs/post-collapsible-84416953.js +83 -0
  18. package/dist/cjs/post-collapsible.cjs.entry.js +3 -5
  19. package/dist/cjs/post-components.cjs.js +3 -5
  20. package/dist/cjs/{post-icon-53e50c15.js → post-icon-5fc20211.js} +5 -6
  21. package/dist/cjs/post-icon.cjs.entry.js +3 -5
  22. package/dist/cjs/{post-popover-5a75c1b2.js → post-popover-be868244.js} +5 -6
  23. package/dist/cjs/post-popover.cjs.entry.js +3 -5
  24. package/dist/cjs/{post-popovercontainer-84378594.js → post-popovercontainer-cc5fa030.js} +118 -30
  25. package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -5
  26. package/dist/cjs/{post-tab-header-02c6e31e.js → post-tab-header-5a7070e9.js} +5 -6
  27. package/dist/cjs/post-tab-header.cjs.entry.js +3 -5
  28. package/dist/cjs/{post-tab-panel-3973b707.js → post-tab-panel-1143ea40.js} +5 -6
  29. package/dist/cjs/post-tab-panel.cjs.entry.js +3 -5
  30. package/dist/cjs/{post-tabs-7a4fead7.js → post-tabs-7ef36ff6.js} +5 -6
  31. package/dist/cjs/post-tabs.cjs.entry.js +3 -5
  32. package/dist/cjs/{post-tooltip-79a9c96d.js → post-tooltip-45784e17.js} +1732 -358
  33. package/dist/cjs/post-tooltip.cjs.entry.js +3 -5
  34. package/dist/collection/animations/collapse.js +10 -6
  35. package/dist/collection/animations/fade.js +0 -1
  36. package/dist/collection/animations/index.js +0 -1
  37. package/dist/collection/collection-manifest.json +3 -2
  38. package/dist/collection/components/post-accordion/post-accordion.js +40 -37
  39. package/dist/collection/components/{post-collapsible → post-accordion-item}/heading-levels.js +0 -1
  40. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -0
  41. package/dist/collection/components/post-accordion-item/post-accordion-item.js +145 -0
  42. package/dist/collection/components/post-alert/alert-types.js +0 -1
  43. package/dist/collection/components/post-alert/post-alert.css +1 -1
  44. package/dist/collection/components/post-alert/post-alert.js +10 -8
  45. package/dist/collection/components/post-collapsible/post-collapsible.css +1 -1
  46. package/dist/collection/components/post-collapsible/post-collapsible.js +10 -49
  47. package/dist/collection/components/post-icon/post-icon.js +1 -2
  48. package/dist/collection/components/post-popover/post-popover.js +5 -3
  49. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  50. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -4
  51. package/dist/collection/components/post-tab-header/post-tab-header.js +4 -2
  52. package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -2
  53. package/dist/collection/components/post-tabs/post-tabs.js +5 -2
  54. package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
  55. package/dist/collection/components/post-tooltip/post-tooltip.js +28 -5
  56. package/dist/collection/components/post-tooltip/types.js +0 -1
  57. package/dist/collection/index.js +1 -1
  58. package/dist/collection/index.spec.js +27 -0
  59. package/dist/collection/utils/index.js +0 -1
  60. package/dist/collection/utils/is-motion-reduced.js +0 -1
  61. package/dist/collection/utils/property-checkers/check-non-empty.js +0 -1
  62. package/dist/collection/utils/property-checkers/check-one-of.js +0 -1
  63. package/dist/collection/utils/property-checkers/check-pattern.js +0 -1
  64. package/dist/collection/utils/property-checkers/check-type.js +0 -1
  65. package/dist/collection/utils/property-checkers/constants.js +0 -1
  66. package/dist/collection/utils/property-checkers/empty-or.js +0 -1
  67. package/dist/collection/utils/property-checkers/index.js +0 -1
  68. package/dist/components/check-non-empty.js +0 -2
  69. package/dist/components/constants.js +0 -2
  70. package/dist/components/fade.js +0 -2
  71. package/dist/components/index.js +1 -2
  72. package/dist/components/index2.js +1 -3
  73. package/dist/components/package.js +1 -3
  74. package/dist/components/post-accordion-item.d.ts +11 -0
  75. package/dist/components/post-accordion-item.js +6 -0
  76. package/dist/components/post-accordion-item2.js +78 -0
  77. package/dist/components/post-accordion.js +0 -2
  78. package/dist/components/post-accordion2.js +35 -35
  79. package/dist/components/post-alert.js +0 -2
  80. package/dist/components/post-alert2.js +8 -11
  81. package/dist/components/post-collapsible.js +0 -2
  82. package/dist/components/post-collapsible2.js +18 -32
  83. package/dist/components/post-icon.js +0 -2
  84. package/dist/components/post-icon2.js +4 -5
  85. package/dist/components/post-popover.js +0 -2
  86. package/dist/components/post-popover2.js +3 -4
  87. package/dist/components/post-popovercontainer.js +0 -2
  88. package/dist/components/post-popovercontainer2.js +116 -28
  89. package/dist/components/post-tab-header.js +0 -2
  90. package/dist/components/post-tab-header2.js +3 -4
  91. package/dist/components/post-tab-panel.js +0 -2
  92. package/dist/components/post-tab-panel2.js +3 -4
  93. package/dist/components/post-tabs.js +0 -2
  94. package/dist/components/post-tabs2.js +3 -4
  95. package/dist/components/post-tooltip.js +0 -2
  96. package/dist/components/post-tooltip2.js +1732 -357
  97. package/dist/docs.json +342 -93
  98. package/dist/esm/check-non-empty-58bd6b17.js +0 -2
  99. package/dist/esm/constants-8d548297.js +0 -2
  100. package/dist/esm/fade-7fd71785.js +0 -2
  101. package/dist/esm/{index-35998e08.js → index-1708db56.js} +38 -8
  102. package/dist/esm/{index-1427953c.js → index-b444db27.js} +1 -3
  103. package/dist/esm/index.js +15 -16
  104. package/dist/esm/loader.js +3 -5
  105. package/dist/esm/package-37a68f71.js +3 -0
  106. package/dist/esm/post-accordion-8872dc1b.js +85 -0
  107. package/dist/esm/post-accordion-item-02b9f01c.js +49 -0
  108. package/dist/esm/post-accordion-item.entry.js +5 -0
  109. package/dist/esm/post-accordion.entry.js +3 -5
  110. package/dist/esm/{post-alert-5e352303.js → post-alert-1a766c15.js} +10 -13
  111. package/dist/esm/post-alert.entry.js +4 -6
  112. package/dist/esm/post-collapsible-1f23fe7d.js +81 -0
  113. package/dist/esm/post-collapsible.entry.js +4 -6
  114. package/dist/esm/post-components.js +4 -6
  115. package/dist/esm/{post-icon-fdda3f99.js → post-icon-2ec2127e.js} +6 -7
  116. package/dist/esm/post-icon.entry.js +4 -6
  117. package/dist/esm/{post-popover-ff2c259f.js → post-popover-f6029c96.js} +5 -6
  118. package/dist/esm/post-popover.entry.js +3 -5
  119. package/dist/esm/{post-popovercontainer-f4cd18cd.js → post-popovercontainer-4a48161f.js} +118 -30
  120. package/dist/esm/post-popovercontainer.entry.js +3 -5
  121. package/dist/esm/{post-tab-header-486b267b.js → post-tab-header-63676360.js} +5 -6
  122. package/dist/esm/post-tab-header.entry.js +3 -5
  123. package/dist/esm/{post-tab-panel-13940300.js → post-tab-panel-da24046f.js} +5 -6
  124. package/dist/esm/post-tab-panel.entry.js +3 -5
  125. package/dist/esm/{post-tabs-6f44ed1d.js → post-tabs-21a5dfeb.js} +5 -6
  126. package/dist/esm/post-tabs.entry.js +3 -5
  127. package/dist/esm/{post-tooltip-1d99cd0c.js → post-tooltip-4f4f87b4.js} +1732 -358
  128. package/dist/esm/post-tooltip.entry.js +3 -5
  129. package/dist/post-components/index.esm.js +1 -2
  130. package/dist/post-components/p-0b46c9ba.entry.js +1 -0
  131. package/dist/post-components/p-10b4cf7a.js +2 -0
  132. package/dist/post-components/p-21557c34.js +15 -0
  133. package/dist/post-components/p-2737eaf5.js +1 -2
  134. package/dist/post-components/p-2b67b933.js +1 -0
  135. package/dist/post-components/p-440193f4.js +1 -2
  136. package/dist/post-components/p-47fd6eb0.js +1 -0
  137. package/dist/post-components/p-548ee455.entry.js +1 -0
  138. package/dist/post-components/p-63b6c589.entry.js +1 -0
  139. package/dist/post-components/p-66f346fb.entry.js +1 -0
  140. package/dist/post-components/p-73a7d4f9.js +1 -0
  141. package/dist/post-components/p-7973e3e4.js +1 -0
  142. package/dist/post-components/p-829f9eaf.entry.js +1 -0
  143. package/dist/post-components/p-82facb04.js +1 -0
  144. package/dist/post-components/p-8aa01298.js +1 -0
  145. package/dist/post-components/p-9170d84d.entry.js +1 -0
  146. package/dist/post-components/p-959f83c0.entry.js +1 -0
  147. package/dist/post-components/p-9bc7ed9e.entry.js +1 -0
  148. package/dist/post-components/p-a3fc7eaf.js +1 -0
  149. package/dist/post-components/p-a762b512.entry.js +1 -0
  150. package/dist/post-components/p-aee1750c.js +1 -0
  151. package/dist/post-components/p-b095519d.js +1 -2
  152. package/dist/post-components/p-c1c8f2ec.js +1 -0
  153. package/dist/post-components/p-ccd827a1.js +1 -0
  154. package/dist/post-components/p-d25e401c.entry.js +1 -0
  155. package/dist/post-components/p-e836df41.js +1 -0
  156. package/dist/post-components/p-f0e82e63.js +1 -0
  157. package/dist/post-components/p-f655856d.entry.js +1 -0
  158. package/dist/post-components/post-components.esm.js +1 -2
  159. package/dist/types/components/post-accordion/post-accordion.d.ts +11 -8
  160. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +28 -0
  161. package/dist/types/components/post-alert/post-alert.d.ts +5 -0
  162. package/dist/types/components/post-collapsible/post-collapsible.d.ts +7 -10
  163. package/dist/types/components/post-popover/post-popover.d.ts +3 -0
  164. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +3 -0
  165. package/dist/types/components/post-tab-header/post-tab-header.d.ts +3 -0
  166. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -0
  167. package/dist/types/components/post-tabs/post-tabs.d.ts +4 -0
  168. package/dist/types/components/post-tooltip/post-tooltip.d.ts +7 -0
  169. package/dist/types/components.d.ts +51 -18
  170. package/dist/types/index.d.ts +1 -0
  171. package/package.json +21 -14
  172. package/dist/cjs/check-non-empty-eeaa8f77.js.map +0 -1
  173. package/dist/cjs/constants-238701d3.js.map +0 -1
  174. package/dist/cjs/fade-35a3633a.js.map +0 -1
  175. package/dist/cjs/index-8c288b1a.js.map +0 -1
  176. package/dist/cjs/index-c07c0cdb.js.map +0 -1
  177. package/dist/cjs/index.cjs.js.map +0 -1
  178. package/dist/cjs/loader.cjs.js.map +0 -1
  179. package/dist/cjs/package-989e0b36.js +0 -7
  180. package/dist/cjs/package-989e0b36.js.map +0 -1
  181. package/dist/cjs/post-accordion-bc0c6f31.js +0 -87
  182. package/dist/cjs/post-accordion-bc0c6f31.js.map +0 -1
  183. package/dist/cjs/post-accordion.cjs.entry.js.map +0 -1
  184. package/dist/cjs/post-alert-39ac30a4.js.map +0 -1
  185. package/dist/cjs/post-alert.cjs.entry.js.map +0 -1
  186. package/dist/cjs/post-collapsible-85f8ace5.js +0 -93
  187. package/dist/cjs/post-collapsible-85f8ace5.js.map +0 -1
  188. package/dist/cjs/post-collapsible.cjs.entry.js.map +0 -1
  189. package/dist/cjs/post-components.cjs.js.map +0 -1
  190. package/dist/cjs/post-icon-53e50c15.js.map +0 -1
  191. package/dist/cjs/post-icon.cjs.entry.js.map +0 -1
  192. package/dist/cjs/post-popover-5a75c1b2.js.map +0 -1
  193. package/dist/cjs/post-popover.cjs.entry.js.map +0 -1
  194. package/dist/cjs/post-popovercontainer-84378594.js.map +0 -1
  195. package/dist/cjs/post-popovercontainer.cjs.entry.js.map +0 -1
  196. package/dist/cjs/post-tab-header-02c6e31e.js.map +0 -1
  197. package/dist/cjs/post-tab-header.cjs.entry.js.map +0 -1
  198. package/dist/cjs/post-tab-panel-3973b707.js.map +0 -1
  199. package/dist/cjs/post-tab-panel.cjs.entry.js.map +0 -1
  200. package/dist/cjs/post-tabs-7a4fead7.js.map +0 -1
  201. package/dist/cjs/post-tabs.cjs.entry.js.map +0 -1
  202. package/dist/cjs/post-tooltip-79a9c96d.js.map +0 -1
  203. package/dist/cjs/post-tooltip.cjs.entry.js.map +0 -1
  204. package/dist/collection/animations/collapse.js.map +0 -1
  205. package/dist/collection/animations/fade.js.map +0 -1
  206. package/dist/collection/animations/index.js.map +0 -1
  207. package/dist/collection/components/post-accordion/post-accordion.js.map +0 -1
  208. package/dist/collection/components/post-alert/alert-types.js.map +0 -1
  209. package/dist/collection/components/post-alert/post-alert.js.map +0 -1
  210. package/dist/collection/components/post-collapsible/heading-levels.js.map +0 -1
  211. package/dist/collection/components/post-collapsible/post-collapsible.js.map +0 -1
  212. package/dist/collection/components/post-icon/post-icon.js.map +0 -1
  213. package/dist/collection/components/post-popover/post-popover.js.map +0 -1
  214. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js.map +0 -1
  215. package/dist/collection/components/post-tab-header/post-tab-header.js.map +0 -1
  216. package/dist/collection/components/post-tab-panel/post-tab-panel.js.map +0 -1
  217. package/dist/collection/components/post-tabs/post-tabs.js.map +0 -1
  218. package/dist/collection/components/post-tooltip/post-tooltip.js.map +0 -1
  219. package/dist/collection/components/post-tooltip/types.js.map +0 -1
  220. package/dist/collection/index.js.map +0 -1
  221. package/dist/collection/utils/index.js.map +0 -1
  222. package/dist/collection/utils/is-motion-reduced.js.map +0 -1
  223. package/dist/collection/utils/property-checkers/check-non-empty.js.map +0 -1
  224. package/dist/collection/utils/property-checkers/check-one-of.js.map +0 -1
  225. package/dist/collection/utils/property-checkers/check-pattern.js.map +0 -1
  226. package/dist/collection/utils/property-checkers/check-type.js.map +0 -1
  227. package/dist/collection/utils/property-checkers/constants.js.map +0 -1
  228. package/dist/collection/utils/property-checkers/empty-or.js.map +0 -1
  229. package/dist/collection/utils/property-checkers/index.js.map +0 -1
  230. package/dist/components/check-non-empty.js.map +0 -1
  231. package/dist/components/constants.js.map +0 -1
  232. package/dist/components/fade.js.map +0 -1
  233. package/dist/components/index.js.map +0 -1
  234. package/dist/components/index2.js.map +0 -1
  235. package/dist/components/package.js.map +0 -1
  236. package/dist/components/post-accordion.js.map +0 -1
  237. package/dist/components/post-accordion2.js.map +0 -1
  238. package/dist/components/post-alert.js.map +0 -1
  239. package/dist/components/post-alert2.js.map +0 -1
  240. package/dist/components/post-collapsible.js.map +0 -1
  241. package/dist/components/post-collapsible2.js.map +0 -1
  242. package/dist/components/post-icon.js.map +0 -1
  243. package/dist/components/post-icon2.js.map +0 -1
  244. package/dist/components/post-popover.js.map +0 -1
  245. package/dist/components/post-popover2.js.map +0 -1
  246. package/dist/components/post-popovercontainer.js.map +0 -1
  247. package/dist/components/post-popovercontainer2.js.map +0 -1
  248. package/dist/components/post-tab-header.js.map +0 -1
  249. package/dist/components/post-tab-header2.js.map +0 -1
  250. package/dist/components/post-tab-panel.js.map +0 -1
  251. package/dist/components/post-tab-panel2.js.map +0 -1
  252. package/dist/components/post-tabs.js.map +0 -1
  253. package/dist/components/post-tabs2.js.map +0 -1
  254. package/dist/components/post-tooltip.js.map +0 -1
  255. package/dist/components/post-tooltip2.js.map +0 -1
  256. package/dist/esm/check-non-empty-58bd6b17.js.map +0 -1
  257. package/dist/esm/constants-8d548297.js.map +0 -1
  258. package/dist/esm/fade-7fd71785.js.map +0 -1
  259. package/dist/esm/index-1427953c.js.map +0 -1
  260. package/dist/esm/index-35998e08.js.map +0 -1
  261. package/dist/esm/index.js.map +0 -1
  262. package/dist/esm/loader.js.map +0 -1
  263. package/dist/esm/package-e13ef9ad.js +0 -5
  264. package/dist/esm/package-e13ef9ad.js.map +0 -1
  265. package/dist/esm/post-accordion-8e96598a.js +0 -85
  266. package/dist/esm/post-accordion-8e96598a.js.map +0 -1
  267. package/dist/esm/post-accordion.entry.js.map +0 -1
  268. package/dist/esm/post-alert-5e352303.js.map +0 -1
  269. package/dist/esm/post-alert.entry.js.map +0 -1
  270. package/dist/esm/post-collapsible-3cc5dd87.js +0 -91
  271. package/dist/esm/post-collapsible-3cc5dd87.js.map +0 -1
  272. package/dist/esm/post-collapsible.entry.js.map +0 -1
  273. package/dist/esm/post-components.js.map +0 -1
  274. package/dist/esm/post-icon-fdda3f99.js.map +0 -1
  275. package/dist/esm/post-icon.entry.js.map +0 -1
  276. package/dist/esm/post-popover-ff2c259f.js.map +0 -1
  277. package/dist/esm/post-popover.entry.js.map +0 -1
  278. package/dist/esm/post-popovercontainer-f4cd18cd.js.map +0 -1
  279. package/dist/esm/post-popovercontainer.entry.js.map +0 -1
  280. package/dist/esm/post-tab-header-486b267b.js.map +0 -1
  281. package/dist/esm/post-tab-header.entry.js.map +0 -1
  282. package/dist/esm/post-tab-panel-13940300.js.map +0 -1
  283. package/dist/esm/post-tab-panel.entry.js.map +0 -1
  284. package/dist/esm/post-tabs-6f44ed1d.js.map +0 -1
  285. package/dist/esm/post-tabs.entry.js.map +0 -1
  286. package/dist/esm/post-tooltip-1d99cd0c.js.map +0 -1
  287. package/dist/esm/post-tooltip.entry.js.map +0 -1
  288. package/dist/post-components/index.esm.js.map +0 -1
  289. package/dist/post-components/p-169b8ef7.entry.js +0 -2
  290. package/dist/post-components/p-169b8ef7.entry.js.map +0 -1
  291. package/dist/post-components/p-2737eaf5.js.map +0 -1
  292. package/dist/post-components/p-28be44d7.js +0 -2
  293. package/dist/post-components/p-28be44d7.js.map +0 -1
  294. package/dist/post-components/p-3ef3a1d2.js +0 -2
  295. package/dist/post-components/p-3ef3a1d2.js.map +0 -1
  296. package/dist/post-components/p-440193f4.js.map +0 -1
  297. package/dist/post-components/p-4b94c2a1.entry.js +0 -2
  298. package/dist/post-components/p-4b94c2a1.entry.js.map +0 -1
  299. package/dist/post-components/p-4cbb5212.entry.js +0 -2
  300. package/dist/post-components/p-4cbb5212.entry.js.map +0 -1
  301. package/dist/post-components/p-51ae6f46.entry.js +0 -2
  302. package/dist/post-components/p-51ae6f46.entry.js.map +0 -1
  303. package/dist/post-components/p-668bf58c.entry.js +0 -2
  304. package/dist/post-components/p-668bf58c.entry.js.map +0 -1
  305. package/dist/post-components/p-67d0a4fa.entry.js +0 -2
  306. package/dist/post-components/p-67d0a4fa.entry.js.map +0 -1
  307. package/dist/post-components/p-6b3a5063.entry.js +0 -2
  308. package/dist/post-components/p-6b3a5063.entry.js.map +0 -1
  309. package/dist/post-components/p-6cdc82c6.js +0 -2
  310. package/dist/post-components/p-6cdc82c6.js.map +0 -1
  311. package/dist/post-components/p-723336f2.js +0 -2
  312. package/dist/post-components/p-723336f2.js.map +0 -1
  313. package/dist/post-components/p-7d08e4f1.js +0 -2
  314. package/dist/post-components/p-7d08e4f1.js.map +0 -1
  315. package/dist/post-components/p-81591ad0.js +0 -3
  316. package/dist/post-components/p-81591ad0.js.map +0 -1
  317. package/dist/post-components/p-96f4ebc4.js +0 -2
  318. package/dist/post-components/p-96f4ebc4.js.map +0 -1
  319. package/dist/post-components/p-9b1b6e06.entry.js +0 -2
  320. package/dist/post-components/p-9b1b6e06.entry.js.map +0 -1
  321. package/dist/post-components/p-a5a23448.js +0 -2
  322. package/dist/post-components/p-a5a23448.js.map +0 -1
  323. package/dist/post-components/p-aca6e9c1.js +0 -2
  324. package/dist/post-components/p-aca6e9c1.js.map +0 -1
  325. package/dist/post-components/p-b095519d.js.map +0 -1
  326. package/dist/post-components/p-bc27f061.js +0 -9
  327. package/dist/post-components/p-bc27f061.js.map +0 -1
  328. package/dist/post-components/p-bd1d0117.js +0 -2
  329. package/dist/post-components/p-bd1d0117.js.map +0 -1
  330. package/dist/post-components/p-d3ed113e.js +0 -2
  331. package/dist/post-components/p-d3ed113e.js.map +0 -1
  332. package/dist/post-components/p-d8365401.entry.js +0 -2
  333. package/dist/post-components/p-d8365401.entry.js.map +0 -1
  334. package/dist/post-components/p-e78d158d.entry.js +0 -2
  335. package/dist/post-components/p-e78d158d.entry.js.map +0 -1
  336. package/dist/post-components/p-f695aab4.js +0 -2
  337. package/dist/post-components/p-f695aab4.js.map +0 -1
  338. package/dist/post-components/post-components.esm.js.map +0 -1
  339. /package/dist/types/components/{post-collapsible → post-accordion-item}/heading-levels.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { v as version } from './package.js';
3
+ import { c as checkEmptyOrOneOf } from './index2.js';
4
+ import { d as defineCustomElement$1 } from './post-collapsible2.js';
5
+
6
+ const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
7
+
8
+ const postAccordionItemCss = "post-accordion-item::part(accordion-item),.bg-yellow 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-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger 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),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .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,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .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-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-danger 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),.bg-success-green post-accordion-item::part(accordion-item),.bg-error-red post-accordion-item::part(accordion-item),.bg-warning-orange post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-primary .accordion-item,.bg-white .accordion-item,.bg-black .accordion-item,.bg-info .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-danger .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,.bg-success-green .accordion-item,.bg-error-red .accordion-item,.bg-warning-orange .accordion-item,.bg-success-background .accordion-item,.bg-error-background .accordion-item,.bg-warning-background .accordion-item{--post-contrast-color:#000;--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-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-primary:hsl(0, 0%, 20%);--post-white:#fff;--post-black:#000;--post-info:#cce4ee;--post-success:#2c911c;--post-warning:#f49e00;--post-danger:#a51728;--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-success-green:#2c871d;--post-error-red:#a51728;--post-warning-orange:#f49e00;--post-success-background:#c0debb;--post-error-background:#ffdade;--post-warning-background:#fce2b2;--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-yellow-rgb:255, 204, 0;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-primary-rgb:51, 51, 51;--post-white-rgb:255, 255, 255;--post-black-rgb:0, 0, 0;--post-info-rgb:204, 228, 238;--post-success-rgb:44, 145, 28;--post-warning-rgb:244, 158, 0;--post-danger-rgb:165, 23, 40;--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;--post-success-green-rgb:44, 135, 29;--post-error-red-rgb:165, 23, 40;--post-warning-orange-rgb:244, 158, 0;--post-success-background-rgb:192, 222, 187;--post-error-background-rgb:255, 218, 222;--post-warning-background-rgb:252, 226, 178}.accordion-item{--post-bg-rgb:244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.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-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .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-danger .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}.bg-success-green .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-red .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-orange .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .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;-webkit-appearance:button;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 xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;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:300}.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-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-primary 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-black 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 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-danger 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}.bg-success-green post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-red post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-orange 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-error-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}post-accordion-item+post-accordion-item::part(accordion-item){border-block-start:0 !important}";
9
+ const PostAccordionItemStyle0 = postAccordionItemCss;
10
+
11
+ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends HTMLElement {
12
+ constructor() {
13
+ super();
14
+ this.__registerHost();
15
+ this.__attachShadow();
16
+ this.id = undefined;
17
+ this.isOpen = undefined;
18
+ this.collapsed = false;
19
+ this.headingLevel = 2;
20
+ }
21
+ validateHeadingLevel(newValue = this.headingLevel) {
22
+ checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `headingLevel` property of the `post-accordion-item` must be a number between 1 and 6.');
23
+ }
24
+ connectedCallback() {
25
+ this.validateHeadingLevel();
26
+ }
27
+ componentWillLoad() {
28
+ this.isOpen = !this.collapsed;
29
+ this.id = this.host.id || `a${crypto.randomUUID()}`;
30
+ }
31
+ onCollapseChange(event) {
32
+ this.isOpen = event.detail;
33
+ }
34
+ /**
35
+ * Triggers the collapse programmatically.
36
+ */
37
+ async toggle(force) {
38
+ return this.collapsible.toggle(force);
39
+ }
40
+ render() {
41
+ var _a;
42
+ const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
43
+ return (h(Host, { key: '795ccef5a57e07755df60f651712dff5eb3fcfaf', id: this.id, "data-version": version }, h("div", { key: '529feda41150180001d5535d0d79007e312b0d39', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '4ddcc8f6ab703625ab072541b65ed0dcb7392129', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '09dcd22dc3382fe442018649b392ba95ed3918f9', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '8e4026adc26445aa84cce3587bf4cc82b816641a', name: "header" }))), h("post-collapsible", { key: '83aeca309682e6f0d9dc2f6fa0701a01229a8f2b', collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: 'c881ddf1fe72345d1e6fedaff9376cf43ad566b4', class: "accordion-body" }, h("slot", { key: '8d72ce66dd9b3b2059ea789ec5854d53b4895907' }))))));
44
+ }
45
+ get host() { return this; }
46
+ static get watchers() { return {
47
+ "headingLevel": ["validateHeadingLevel"]
48
+ }; }
49
+ static get style() { return PostAccordionItemStyle0; }
50
+ }, [1, "post-accordion-item", {
51
+ "collapsed": [4],
52
+ "headingLevel": [2, "heading-level"],
53
+ "id": [32],
54
+ "isOpen": [32],
55
+ "toggle": [64]
56
+ }, [[0, "collapseChange", "onCollapseChange"]], {
57
+ "headingLevel": ["validateHeadingLevel"]
58
+ }]);
59
+ function defineCustomElement() {
60
+ if (typeof customElements === "undefined") {
61
+ return;
62
+ }
63
+ const components = ["post-accordion-item", "post-collapsible"];
64
+ components.forEach(tagName => { switch (tagName) {
65
+ case "post-accordion-item":
66
+ if (!customElements.get(tagName)) {
67
+ customElements.define(tagName, PostAccordionItem);
68
+ }
69
+ break;
70
+ case "post-collapsible":
71
+ if (!customElements.get(tagName)) {
72
+ defineCustomElement$1();
73
+ }
74
+ break;
75
+ } });
76
+ }
77
+
78
+ export { PostAccordionItem as P, defineCustomElement as d };
@@ -4,5 +4,3 @@ const PostAccordion = PostAccordion$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostAccordion, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-accordion.js.map
@@ -2,84 +2,86 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { v as version } from './package.js';
3
3
 
4
4
  const postAccordionCss = ":host{display:block}";
5
+ const PostAccordionStyle0 = postAccordionCss;
5
6
 
6
7
  const PostAccordion = /*@__PURE__*/ proxyCustomElement(class PostAccordion extends HTMLElement {
7
8
  constructor() {
8
9
  super();
9
10
  this.__registerHost();
10
11
  this.__attachShadow();
11
- this.expandedCollapsibles = new Set();
12
+ this.expandedItems = new Set();
12
13
  this.multiple = false;
13
14
  }
14
15
  componentWillLoad() {
15
- this.registerCollapsibles();
16
+ this.registerAccordionItems();
16
17
  }
17
18
  /**
18
- * Toggles the `post-collapsible` children with the given id.
19
+ * Toggles the `post-accordion-item` with the given id.
19
20
  */
20
21
  async toggle(id) {
21
- const collapsibleToToggle = this.collapsibles
22
- .find(collapsible => collapsible.id === id);
23
- if (!collapsibleToToggle)
24
- throw new Error(`No post-collapsible found with id #${id}.`);
25
- await collapsibleToToggle.toggle();
22
+ const itemToToggle = this.accordionItems.find(item => item.id === id);
23
+ if (!itemToToggle)
24
+ throw new Error(`No post-accordion-item found with id #${id}.`);
25
+ await itemToToggle.toggle();
26
26
  }
27
27
  collapseChangeHandler(event) {
28
- const toggledCollapsible = event.target;
29
- const isClosing = this.expandedCollapsibles.has(toggledCollapsible);
28
+ event.stopPropagation();
29
+ const toggledItem = event.target;
30
+ const isClosing = this.expandedItems.has(toggledItem);
30
31
  if (isClosing) {
31
- this.expandedCollapsibles.delete(toggledCollapsible);
32
+ this.expandedItems.delete(toggledItem);
32
33
  }
33
34
  else {
34
- this.expandedCollapsibles.add(toggledCollapsible);
35
+ this.expandedItems.add(toggledItem);
35
36
  }
36
37
  if (this.multiple || isClosing)
37
38
  return;
38
- // close other open collapsible elements to have only one opened at a time
39
- Array.from(this.expandedCollapsibles.values())
40
- .filter(collapsible => collapsible !== toggledCollapsible)
41
- .forEach(collapsible => {
42
- void collapsible.toggle(false);
39
+ // close other open accordion items to have only one opened at a time
40
+ Array.from(this.expandedItems.values())
41
+ .filter(item => item !== toggledItem)
42
+ .forEach(item => {
43
+ item.toggle(false);
43
44
  });
44
45
  }
45
46
  /**
46
- * Expands all `post-collapsible` children.
47
+ * Expands all `post-accordion-item`.
47
48
  *
48
49
  * If `close-others` is `true` and all items are closed, it will open the first one.
49
50
  * Otherwise, it will keep the opened one.
50
51
  */
51
52
  async expandAll() {
52
53
  if (this.multiple) {
53
- await Promise.all(this.collapsibles.map(collapsible => collapsible.toggle(true)));
54
+ await Promise.all(this.accordionItems.map(item => item.toggle(true)));
54
55
  }
55
- else if (!this.expandedCollapsibles.size) {
56
- await this.collapsibles[0].toggle(true);
56
+ else if (!this.expandedItems.size) {
57
+ await this.accordionItems[0].toggle(true);
57
58
  }
58
59
  }
59
60
  /**
60
- * Collapses all `post-collapsible` children.
61
+ * Collapses all `post-accordion-item`.
61
62
  */
62
63
  async collapseAll() {
63
- await Promise.all(this.collapsibles.map(collapsible => collapsible.toggle(false)));
64
+ await Promise.all(this.accordionItems.map(item => item.toggle(false)));
64
65
  }
65
- registerCollapsibles() {
66
- this.collapsibles = Array.from(this.host.querySelectorAll('post-collapsible'));
67
- this.collapsibles
68
- .filter(collapsible => {
69
- return !collapsible.collapsed || this.expandedCollapsibles.has(collapsible);
70
- }).forEach((collapsible, index) => {
66
+ registerAccordionItems() {
67
+ this.accordionItems = Array.from(this.host.querySelectorAll('post-accordion-item'));
68
+ this.accordionItems
69
+ .filter(item => {
70
+ return !item.collapsed || this.expandedItems.has(item);
71
+ })
72
+ .forEach((item, index) => {
71
73
  if (!this.multiple && index !== 0) {
72
- collapsible.setAttribute('collapsed', '');
74
+ item.setAttribute('collapsed', '');
73
75
  return;
74
76
  }
75
- this.expandedCollapsibles.add(collapsible);
77
+ this.expandedItems.add(item);
76
78
  });
77
79
  }
78
80
  render() {
79
- return (h(Host, { "data-version": version }, h("div", { class: "accordion" }, h("slot", { onSlotchange: () => this.registerCollapsibles() }))));
81
+ return (h(Host, { key: '08d0661a81fef59f3b74cbceceff49920cbfda0c', "data-version": version }, h("div", { key: '2625963e5f2952fd5bd5b4f05a14142a501b272c', class: "accordion" }, h("slot", { key: 'f2514ed051562c17fe852bd2bf39c10282915bfb', onSlotchange: () => this.registerAccordionItems() }))));
80
82
  }
81
83
  get host() { return this; }
82
- static get style() { return postAccordionCss; }
84
+ static get style() { return PostAccordionStyle0; }
83
85
  }, [1, "post-accordion", {
84
86
  "multiple": [4],
85
87
  "toggle": [64],
@@ -101,5 +103,3 @@ function defineCustomElement() {
101
103
  }
102
104
 
103
105
  export { PostAccordion as P, defineCustomElement as d };
104
-
105
- //# sourceMappingURL=post-accordion2.js.map
@@ -4,5 +4,3 @@ const PostAlert = PostAlert$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostAlert, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-alert.js.map
@@ -1,13 +1,14 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { v as version } from './package.js';
3
3
  import { f as fadeOut } from './fade.js';
4
- import { c as checkType, a as checkEmptyOrPattern, b as checkEmptyOrOneOf } from './index2.js';
4
+ import { a as checkType, b as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './index2.js';
5
5
  import { d as defineCustomElement$1 } from './post-icon2.js';
6
6
  import { c as checkNonEmpty } from './check-non-empty.js';
7
7
 
8
8
  const ALERT_TYPES = ['primary', 'success', 'danger', 'warning', 'info', 'gray'];
9
9
 
10
- 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-danger,.alert-warning,.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-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-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-primary:hsl(0, 0%, 20%);--post-white:#fff;--post-black:#000;--post-info:#cce4ee;--post-success:#2c911c;--post-warning:#f49e00;--post-danger:#a51728;--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-success-green:#2c871d;--post-error-red:#a51728;--post-warning-orange:#f49e00;--post-success-background:#c0debb;--post-error-background:#ffdade;--post-warning-background:#fce2b2;--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-yellow-rgb:255, 204, 0;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-primary-rgb:51, 51, 51;--post-white-rgb:255, 255, 255;--post-black-rgb:0, 0, 0;--post-info-rgb:204, 228, 238;--post-success-rgb:44, 145, 28;--post-warning-rgb:244, 158, 0;--post-danger-rgb:165, 23, 40;--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;--post-success-green-rgb:44, 135, 29;--post-error-red-rgb:165, 23, 40;--post-warning-orange-rgb:244, 158, 0;--post-success-background-rgb:192, 222, 187;--post-error-background-rgb:255, 218, 222;--post-warning-background-rgb:252, 226, 178}.alert-primary,.alert-success,.alert-danger,.alert-notification,.alert-error{--post-contrast-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:300}.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;background-color:rgba(0,0,0,0) !important;border:2px solid WindowText}}.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>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn{flex:1 0 0;width:100%}.alert-action>.alert-buttons>.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: 1441px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1440px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1440px) / 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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 145, 28}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c911c}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.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%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.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 xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.241 5.241 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.241 5.241 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.325 6.325 0 0 0-.325 1.997 6.598 6.598 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 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-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.19 13.19 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.647 11.647 0 0 0 2.359-.888.668.668 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.798 11.798 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.241 5.241 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.241 5.241 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.325 6.325 0 0 0-.325 1.997 6.598 6.598 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 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-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.19 13.19 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.647 11.647 0 0 0 2.359-.888.668.668 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.798 11.798 0 0 0 4 15.92'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.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;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;content:\"\";display:block;height:1.5rem;width:1.5rem}.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-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}/*!\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}";
10
+ 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-danger,.alert-warning,.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-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-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-primary:hsl(0, 0%, 20%);--post-white:#fff;--post-black:#000;--post-info:#cce4ee;--post-success:#2c911c;--post-warning:#f49e00;--post-danger:#a51728;--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-success-green:#2c871d;--post-error-red:#a51728;--post-warning-orange:#f49e00;--post-success-background:#c0debb;--post-error-background:#ffdade;--post-warning-background:#fce2b2;--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-yellow-rgb:255, 204, 0;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-primary-rgb:51, 51, 51;--post-white-rgb:255, 255, 255;--post-black-rgb:0, 0, 0;--post-info-rgb:204, 228, 238;--post-success-rgb:44, 145, 28;--post-warning-rgb:244, 158, 0;--post-danger-rgb:165, 23, 40;--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;--post-success-green-rgb:44, 135, 29;--post-error-red-rgb:165, 23, 40;--post-warning-orange-rgb:244, 158, 0;--post-success-background-rgb:192, 222, 187;--post-error-background-rgb:255, 218, 222;--post-warning-background-rgb:252, 226, 178}.alert-primary,.alert-success,.alert-danger,.alert-notification,.alert-error{--post-contrast-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:300}.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;background-color:rgba(0,0,0,0) !important;border:2px solid WindowText}}.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>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn{flex:1 0 0;width:100%}.alert-action>.alert-buttons>.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: 1441px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1440px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1440px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1440px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1440px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1440px) / 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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 145, 28}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c911c}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.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%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M17.333 25.333v-16h-4.667V12h2v13.333h-2V28h6.667v-2.667zM14.667 4h2.667v2.667h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.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 xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-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/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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 0c0-.735.599-1.333 1.334-1.333s1.333.598 1.333 1.333-.598 1.334-1.333 1.334-1.334-.598-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/g%3E%3C/svg%3E\");background-color:currentColor}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor}.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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%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%3Cg id='icon'%3E%3Cpath d='M14.667 4h2.667v18.667h-2.667zm0 21.333h2.667V28h-2.667z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor}.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;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;content:\"\";display:block;height:1.5rem;width:1.5rem}.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-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}/*!\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}";
11
+ const PostAlertStyle0 = postAlertCss;
11
12
 
12
13
  const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLElement {
13
14
  constructor() {
@@ -75,16 +76,14 @@ const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLE
75
76
  }
76
77
  render() {
77
78
  const defaultAlertContent = [
78
- this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { name: "heading" }))),
79
- h("slot", { key: `${this.alertId}-message` })
79
+ this.hasHeading && (h("div", { key: `${this.alertId}-heading`, class: "alert-heading" }, h("slot", { key: 'b151a1b8d49d08bd15b4a6661f7ecd25660971f8', name: "heading" }))),
80
+ h("slot", { key: `${this.alertId}-message` }),
80
81
  ];
81
82
  const actionAlertContent = [
82
83
  h("div", { key: `${this.alertId}-content`, class: "alert-content" }, defaultAlertContent),
83
- h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { name: "actions" })),
84
+ h("div", { key: `${this.alertId}-buttons`, class: "alert-buttons" }, h("slot", { key: '6855a0e7c42527b628f3d76aeb13c86a1f708f38', name: "actions" })),
84
85
  ];
85
- return (h(Host, { "data-version": version }, h("div", { role: "alert", class: this.classes }, this.dismissible && (h("button", { class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.alertId}-icon`, name: this.icon })), this.hasActions
86
- ? actionAlertContent
87
- : defaultAlertContent)));
86
+ return (h(Host, { key: '959f326cf08711d6639678bfba195b8089b5cf6f', "data-version": version }, h("div", { key: '011f13e08ebc25fcec404c316b3b74d0f588e0fc', role: "alert", class: this.classes }, this.dismissible && (h("button", { class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { 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
87
  }
89
88
  get host() { return this; }
90
89
  static get watchers() { return {
@@ -94,7 +93,7 @@ const PostAlert = /*@__PURE__*/ proxyCustomElement(class PostAlert extends HTMLE
94
93
  "icon": ["validateIcon"],
95
94
  "type": ["validateType"]
96
95
  }; }
97
- static get style() { return postAlertCss; }
96
+ static get style() { return PostAlertStyle0; }
98
97
  }, [1, "post-alert", {
99
98
  "dismissible": [4],
100
99
  "dismissLabel": [1, "dismiss-label"],
@@ -134,5 +133,3 @@ function defineCustomElement() {
134
133
  }
135
134
 
136
135
  export { PostAlert as P, defineCustomElement as d };
137
-
138
- //# sourceMappingURL=post-alert2.js.map
@@ -4,5 +4,3 @@ const PostCollapsible = PostCollapsible$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostCollapsible, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-collapsible.js.map
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { v as version } from './package.js';
3
- import { d as checkEmptyOrType, b as checkEmptyOrOneOf } from './index2.js';
3
+ import { d as checkEmptyOrType } from './index2.js';
4
4
 
5
5
  function isMotionReduced() {
6
6
  return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
@@ -9,19 +9,23 @@ function isMotionReduced() {
9
9
  const collapseDuration = 350;
10
10
  const collapseEasing = 'ease';
11
11
  const collapsedKeyframe = { height: '0', overflow: 'hidden' };
12
+ const animationOptions = {
13
+ duration: collapseDuration,
14
+ easing: collapseEasing,
15
+ fill: 'forwards',
16
+ };
12
17
  const collapse = (el) => {
13
- const { height } = window.getComputedStyle(el);
14
- const expandedKeyframe = { height };
15
- return el.animate([expandedKeyframe, collapsedKeyframe], { duration: collapseDuration, easing: collapseEasing, fill: 'forwards' });
18
+ const expandedKeyframe = { height: window.getComputedStyle(el).height };
19
+ return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
16
20
  };
17
21
  const expand = (el) => {
18
- const expandedKeyframe = { height: `${el.scrollHeight}px` };
19
- return el.animate([collapsedKeyframe, expandedKeyframe], { duration: collapseDuration, easing: collapseEasing, fill: 'forwards' });
22
+ const expandedKeyframe = { height: `${el.scrollHeight}px`, offset: 1 };
23
+ const finalKeyframe = { height: 'auto' };
24
+ return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
20
25
  };
21
26
 
22
- const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
23
-
24
- const postCollapsibleCss = ".accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item{--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}.accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item{--post-contrast-color:#000;--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-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-primary:hsl(0, 0%, 20%);--post-white:#fff;--post-black:#000;--post-info:#cce4ee;--post-success:#2c911c;--post-warning:#f49e00;--post-danger:#a51728;--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-success-green:#2c871d;--post-error-red:#a51728;--post-warning-orange:#f49e00;--post-success-background:#c0debb;--post-error-background:#ffdade;--post-warning-background:#fce2b2;--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-yellow-rgb:255, 204, 0;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-primary-rgb:51, 51, 51;--post-white-rgb:255, 255, 255;--post-black-rgb:0, 0, 0;--post-info-rgb:204, 228, 238;--post-success-rgb:44, 145, 28;--post-warning-rgb:244, 158, 0;--post-danger-rgb:165, 23, 40;--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;--post-success-green-rgb:44, 135, 29;--post-error-red-rgb:165, 23, 40;--post-warning-orange-rgb:244, 158, 0;--post-success-background-rgb:192, 222, 187;--post-error-background-rgb:255, 218, 222;--post-warning-background-rgb:252, 226, 178}.accordion-item{border-block:2px solid #666;--post-bg-rgb:244, 243, 241}.accordion-item+.accordion-item{border-block-start:0}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.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;-webkit-appearance:button;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 xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;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:300}.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-collapsible+post-collapsible::part(accordion-item){border-block-start:0 !important}";
27
+ const postCollapsibleCss = ":host{display:block}";
28
+ const PostCollapsibleStyle0 = postCollapsibleCss;
25
29
 
26
30
  const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible extends HTMLElement {
27
31
  constructor() {
@@ -32,26 +36,16 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
32
36
  this.isLoaded = false;
33
37
  this.id = undefined;
34
38
  this.isOpen = true;
35
- this.hasHeader = undefined;
36
- this.headingTag = undefined;
37
39
  this.collapsed = false;
38
- this.headingLevel = 2;
39
40
  }
40
41
  validateCollapsed(newValue = this.collapsed) {
41
42
  checkEmptyOrType(newValue, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
42
43
  }
43
- validateHeadingLevel(newValue = this.headingLevel) {
44
- checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `headingLevel` property of the `post-collapsible` must be a number between 1 and 6.');
45
- }
46
44
  connectedCallback() {
47
45
  this.validateCollapsed();
48
- this.validateHeadingLevel();
49
46
  }
50
47
  componentWillRender() {
51
- var _a;
52
48
  this.id = this.host.id || `c${crypto.randomUUID()}`;
53
- this.hasHeader = this.host.querySelectorAll('[slot="header"]').length > 0;
54
- this.headingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
55
49
  }
56
50
  componentDidLoad() {
57
51
  if (this.collapsed)
@@ -68,7 +62,7 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
68
62
  return open;
69
63
  this.isOpen = !this.isOpen;
70
64
  if (this.isLoaded)
71
- this.collapseChange.emit();
65
+ this.collapseChange.emit(this.isOpen);
72
66
  const animation = open ? expand(this.collapsible) : collapse(this.collapsible);
73
67
  if (!this.isLoaded || isMotionReduced())
74
68
  animation.finish();
@@ -77,26 +71,20 @@ const PostCollapsible = /*@__PURE__*/ proxyCustomElement(class PostCollapsible e
77
71
  return this.isOpen;
78
72
  }
79
73
  render() {
80
- const collapse = (h("div", { "aria-labelledby": this.hasHeader ? `${this.id}--header` : undefined, class: `collapse${this.hasHeader ? ' accordion-collapse' : ''}`, id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, this.hasHeader ? (h("div", { class: "accordion-body" }, h("slot", null))) : (h("slot", null))));
81
- return (h(Host, { id: this.id, "data-version": version }, this.hasHeader ? (h("div", { part: "accordion-item", class: "accordion-item" }, h(this.headingTag, { class: "accordion-header", id: `${this.id}--header` }, h("button", { "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { name: "header" }))), collapse)) : (collapse)));
74
+ return (h(Host, { key: 'cf0622c0844054ac31023781a393b174ac263397', id: this.id, "data-version": version }, h("div", { key: '4138a3402559b59bc2994eace597bbf27623f806', class: "collapse", id: `${this.id}--collapse`, ref: el => (this.collapsible = el) }, h("slot", { key: '9a6fd61dcc0925b8ac1bf2353c4a093ae23fac22' }))));
82
75
  }
83
76
  get host() { return this; }
84
77
  static get watchers() { return {
85
- "collapsed": ["validateCollapsed"],
86
- "headingLevel": ["validateHeadingLevel"]
78
+ "collapsed": ["validateCollapsed"]
87
79
  }; }
88
- static get style() { return postCollapsibleCss; }
80
+ static get style() { return PostCollapsibleStyle0; }
89
81
  }, [1, "post-collapsible", {
90
82
  "collapsed": [4],
91
- "headingLevel": [2, "heading-level"],
92
83
  "id": [32],
93
84
  "isOpen": [32],
94
- "hasHeader": [32],
95
- "headingTag": [32],
96
85
  "toggle": [64]
97
86
  }, undefined, {
98
- "collapsed": ["validateCollapsed"],
99
- "headingLevel": ["validateHeadingLevel"]
87
+ "collapsed": ["validateCollapsed"]
100
88
  }]);
101
89
  function defineCustomElement() {
102
90
  if (typeof customElements === "undefined") {
@@ -113,5 +101,3 @@ function defineCustomElement() {
113
101
  }
114
102
 
115
103
  export { PostCollapsible as P, defineCustomElement as d };
116
-
117
- //# sourceMappingURL=post-collapsible2.js.map
@@ -4,5 +4,3 @@ const PostIcon = PostIcon$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostIcon, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-icon.js.map
@@ -1,9 +1,10 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { b as checkEmptyOrOneOf, d as checkEmptyOrType, c as checkType } from './index2.js';
2
+ import { c as checkEmptyOrOneOf, d as checkEmptyOrType, a as checkType } from './index2.js';
3
3
  import { v as version } from './package.js';
4
4
  import { c as checkNonEmpty } from './check-non-empty.js';
5
5
 
6
6
  const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;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)}}";
7
+ const PostIconStyle0 = postIconCss;
7
8
 
8
9
  const CDN_URL = 'https://unpkg.com/@swisspost/design-system-icons/public/post-icons';
9
10
  const ANIMATION_NAMES = [
@@ -85,7 +86,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
85
86
  })
86
87
  .filter(([_key, value]) => value !== null)
87
88
  .reduce((styles, [key, value]) => Object.assign(styles, { [key]: value }), {});
88
- return (h(Host, { "data-version": version }, h("span", { style: svgStyles })));
89
+ return (h(Host, { key: '8a892fa9fa24e07995453e0e491328fde76dc496', "data-version": version }, h("span", { key: '14761a251eb0ab02df268aa23597151ccb71ebc8', style: svgStyles })));
89
90
  }
90
91
  get host() { return this; }
91
92
  static get watchers() { return {
@@ -97,7 +98,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
97
98
  "rotate": ["validateRotate"],
98
99
  "scale": ["validateScale"]
99
100
  }; }
100
- static get style() { return postIconCss; }
101
+ static get style() { return PostIconStyle0; }
101
102
  }, [1, "post-icon", {
102
103
  "animation": [1],
103
104
  "base": [1],
@@ -132,5 +133,3 @@ function defineCustomElement() {
132
133
  }
133
134
 
134
135
  export { PostIcon as P, defineCustomElement as d };
135
-
136
- //# sourceMappingURL=post-icon2.js.map
@@ -4,5 +4,3 @@ const PostPopover = PostPopover$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostPopover, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-popover.js.map
@@ -3,6 +3,7 @@ import { v as version } from './package.js';
3
3
  import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
4
4
 
5
5
  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;-webkit-appearance:button;appearance:button;outline:none;outline-offset:2px;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline:2px solid var(--post-contrast-color)}.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%3Cg id='icon'%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/g%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%3Cg id='icon'%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/g%3E%3C/svg%3E\");background-color:currentColor;content:\"\";display:block;height:1.5rem;width:1.5rem}.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-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;max-width:min(66vw,60rem)}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em}";
6
+ const PostPopoverStyle0 = postPopoverCss;
6
7
 
7
8
  const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends HTMLElement {
8
9
  constructor() {
@@ -108,10 +109,10 @@ const PostPopover = /*@__PURE__*/ proxyCustomElement(class PostPopover extends H
108
109
  e.stopImmediatePropagation();
109
110
  }
110
111
  render() {
111
- return (h(Host, { "data-version": version }, h("post-popovercontainer", { arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e), onPostPopoverToggled: e => this.onToggle(e) }, h("div", { class: "popover-container", onPointerDown: e => this.stopImmediatePropagation(e), onPointerUp: e => this.stopImmediatePropagation(e) }, h("div", { class: "popover-content" }, h("slot", null)), h("button", { class: "btn-close", onClick: () => this.hide() }, h("span", { class: "visually-hidden" }, this.closeButtonCaption))))));
112
+ return (h(Host, { key: 'f1580a33b1a6398ce0f32ce76365a1cebe68ceeb', "data-version": version }, h("post-popovercontainer", { key: '3fbf43896d0cb2c4d35b18302a66097499aa31c0', arrow: this.arrow, placement: this.placement, ref: e => (this.popoverRef = e), onPostPopoverToggled: e => this.onToggle(e) }, h("div", { key: '3b698cdc50d72e59238a1dbc48aced03c0c7dc43', class: "popover-container", onPointerDown: e => this.stopImmediatePropagation(e), onPointerUp: e => this.stopImmediatePropagation(e) }, h("div", { key: '1e9f888bba7c54fa4ba956553e7668f3f37daa67', class: "popover-content" }, h("slot", { key: '433e2b5d75f7bf7b07ba2895c97fc362a98b653f' })), h("button", { key: 'ee88604aabea87068e5653a0d14111064c6e8829', class: "btn-close", onClick: () => this.hide() }, h("span", { key: 'f9fbd6ab73a99c293281c5a80e4c583fe5ca8f37', class: "visually-hidden" }, this.closeButtonCaption))))));
112
113
  }
113
114
  get host() { return this; }
114
- static get style() { return postPopoverCss; }
115
+ static get style() { return PostPopoverStyle0; }
115
116
  }, [1, "post-popover", {
116
117
  "placement": [1],
117
118
  "closeButtonCaption": [1, "close-button-caption"],
@@ -140,5 +141,3 @@ function defineCustomElement() {
140
141
  }
141
142
 
142
143
  export { PostPopover as P, defineCustomElement as d };
143
-
144
- //# sourceMappingURL=post-popover2.js.map
@@ -4,5 +4,3 @@ const PostPopovercontainer = PostPopovercontainer$1;
4
4
  const defineCustomElement = defineCustomElement$1;
5
5
 
6
6
  export { PostPopovercontainer, defineCustomElement };
7
-
8
- //# sourceMappingURL=post-popovercontainer.js.map