@swisspost/design-system-components 10.0.0-next.46 → 10.0.0-next.48

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 (270) hide show
  1. package/dist/cjs/{event-from-AKK8RQrn.js → event-from-C6kpQwhw.js} +2 -2
  2. package/dist/cjs/index-CpDyH7Ww.js +8 -8
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{package-Din0le0Q.js → package-CZyXYkIN.js} +1 -1
  5. package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
  6. package/dist/cjs/post-avatar.cjs.entry.js +91 -54
  7. package/dist/cjs/post-back-to-top.cjs.entry.js +32 -7
  8. package/dist/cjs/post-banner.cjs.entry.js +31 -35
  9. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +1 -1
  10. package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/post-card-control.cjs.entry.js +3 -3
  12. package/dist/cjs/post-closebutton_15.cjs.entry.js +39 -8
  13. package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
  14. package/dist/cjs/post-components.cjs.js +1 -1
  15. package/dist/cjs/post-footer.cjs.entry.js +1 -1
  16. package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
  17. package/dist/cjs/post-popover.cjs.entry.js +1 -1
  18. package/dist/cjs/post-rating.cjs.entry.js +1 -1
  19. package/dist/cjs/post-tab-header.cjs.entry.js +1 -1
  20. package/dist/cjs/post-tab-panel.cjs.entry.js +1 -1
  21. package/dist/cjs/post-tabs.cjs.entry.js +2 -2
  22. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +1 -1
  23. package/dist/cjs/post-tooltip.cjs.entry.js +1 -1
  24. package/dist/collection/animations/slide-and-fade.js +25 -0
  25. package/dist/collection/components/post-accordion-item/post-accordion-item.js +5 -5
  26. package/dist/collection/components/post-avatar/avatar-utils.js +16 -0
  27. package/dist/collection/components/post-avatar/post-avatar.js +91 -58
  28. package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
  29. package/dist/collection/components/post-back-to-top/post-back-to-top.js +5 -5
  30. package/dist/collection/components/post-banner/post-banner.css +1 -1
  31. package/dist/collection/components/post-banner/post-banner.js +41 -81
  32. package/dist/collection/components/post-card-control/post-card-control.js +8 -8
  33. package/dist/collection/components/post-closebutton/post-closebutton.js +9 -1
  34. package/dist/collection/components/post-menu/post-menu.js +4 -1
  35. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
  36. package/dist/collection/components/post-tabs/post-tabs.js +3 -3
  37. package/dist/collection/utils/event-from.js +2 -2
  38. package/dist/components/{p-8U5GFtQP.js → event-from.js} +2 -2
  39. package/dist/components/get-root.js +15 -0
  40. package/dist/components/index.d.ts +73 -0
  41. package/dist/components/index.js +36 -2315
  42. package/dist/components/package.js +3 -0
  43. package/dist/components/post-accordion-item.js +1 -1
  44. package/dist/components/post-accordion-item2.js +113 -0
  45. package/dist/components/post-accordion.js +1 -1
  46. package/dist/components/post-accordion2.js +138 -0
  47. package/dist/components/post-avatar.js +99 -62
  48. package/dist/components/post-back-to-top.js +37 -13
  49. package/dist/components/post-banner.js +39 -51
  50. package/dist/components/post-breadcrumb-item.js +1 -1
  51. package/dist/components/post-breadcrumb-item2.js +79 -0
  52. package/dist/components/post-breadcrumbs.js +13 -14
  53. package/dist/components/post-card-control.js +10 -11
  54. package/dist/components/post-closebutton.js +13 -6
  55. package/dist/components/post-collapsible-trigger.js +1 -1
  56. package/dist/components/post-collapsible-trigger2.js +135 -0
  57. package/dist/components/post-collapsible.js +1 -1
  58. package/dist/components/post-collapsible2.js +110 -0
  59. package/dist/components/post-footer.js +10 -11
  60. package/dist/components/post-header.js +30 -8
  61. package/dist/components/post-icon.js +1 -1
  62. package/dist/components/post-icon2.js +153 -0
  63. package/dist/components/post-language-option.js +8 -9
  64. package/dist/components/post-language-switch.js +12 -13
  65. package/dist/components/post-linkarea.js +3 -4
  66. package/dist/components/post-list-item.js +3 -4
  67. package/dist/components/post-list.js +4 -5
  68. package/dist/components/post-logo.js +5 -6
  69. package/dist/components/post-mainnavigation.js +4 -5
  70. package/dist/components/post-megadropdown-trigger.js +6 -7
  71. package/dist/components/post-megadropdown.js +7 -8
  72. package/dist/components/post-menu-item.js +1 -1
  73. package/dist/components/post-menu-item2.js +30 -0
  74. package/dist/components/post-menu-trigger.js +1 -1
  75. package/dist/components/post-menu-trigger2.js +110 -0
  76. package/dist/components/post-menu.js +1 -1
  77. package/dist/components/post-menu2.js +222 -0
  78. package/dist/components/post-popover.js +6 -7
  79. package/dist/components/post-popovercontainer.js +1 -1
  80. package/dist/components/post-popovercontainer2.js +3018 -0
  81. package/dist/components/post-rating.js +8 -9
  82. package/dist/components/post-tab-header.js +6 -7
  83. package/dist/components/post-tab-panel.js +6 -7
  84. package/dist/components/post-tabs.js +7 -8
  85. package/dist/components/post-togglebutton.js +3 -4
  86. package/dist/components/post-tooltip-trigger.js +6 -7
  87. package/dist/components/post-tooltip.js +6 -7
  88. package/dist/components/react/index.d.ts +33 -0
  89. package/dist/components/react/index.js +2315 -0
  90. package/dist/components/react/p-0Ltezq5O.js +3 -0
  91. package/dist/components/{p-C8YtuR96.js → react/p-38PqL5iD.js} +1 -1
  92. package/dist/components/react/p-BLchVpF6.js +14 -0
  93. package/dist/components/react/p-C35MCWIp.js +35 -0
  94. package/dist/components/{p-Dg6sSnLv.js → react/p-CGsAj6ij.js} +1 -1
  95. package/dist/components/react/p-CJ80BZ06.js +178 -0
  96. package/dist/{esm/index-BWC0gtGU.js → components/react/p-CV7fm1rW.js} +1 -1
  97. package/dist/components/react/p-C_2k3G1c.js +264 -0
  98. package/dist/components/{p-D1Ldeko3.js → react/p-Ce7jgYmK.js} +2 -2
  99. package/dist/components/{p-DNnYEFO6.js → react/p-CiYSngKM.js} +7 -7
  100. package/dist/components/{p-Cpy7mEQb.js → react/p-Da5wbVP8.js} +1 -1
  101. package/dist/components/{p-9rHPmDn6.js → react/p-Dq9F2i7n.js} +2 -2
  102. package/dist/components/{p-jLh9Y0sO.js → react/p-DzYquz3e.js} +2 -2
  103. package/dist/components/{p-C1i4rB_c.js → react/p-JHuJA2Lv.js} +4 -4
  104. package/dist/components/react/p-SbIC4aZX.js +11 -0
  105. package/dist/components/{p-Cd5RHPSU.js → react/p-Tg0GNTZM.js} +2 -2
  106. package/dist/{esm/event-from-8U5GFtQP.js → components/react/p-kraHE1r3.js} +2 -2
  107. package/dist/components/{p-DQE6fqIb.js → react/p-q8Fvf8A0.js} +1 -1
  108. package/dist/components/react/p-r4txK0AC.js +3 -0
  109. package/dist/components/react/post-accordion-item.d.ts +11 -0
  110. package/dist/components/react/post-accordion-item.js +6 -0
  111. package/dist/components/react/post-accordion.d.ts +11 -0
  112. package/dist/components/react/post-accordion.js +6 -0
  113. package/dist/components/react/post-avatar.d.ts +11 -0
  114. package/dist/components/react/post-avatar.js +226 -0
  115. package/dist/components/react/post-back-to-top.d.ts +11 -0
  116. package/dist/components/react/post-back-to-top.js +145 -0
  117. package/dist/components/react/post-banner.d.ts +11 -0
  118. package/dist/components/react/post-banner.js +99 -0
  119. package/dist/components/react/post-breadcrumb-item.d.ts +11 -0
  120. package/dist/components/react/post-breadcrumb-item.js +6 -0
  121. package/dist/components/react/post-breadcrumbs.d.ts +11 -0
  122. package/dist/components/react/post-breadcrumbs.js +187 -0
  123. package/dist/components/react/post-card-control.d.ts +11 -0
  124. package/dist/components/react/post-card-control.js +327 -0
  125. package/dist/components/react/post-closebutton.d.ts +11 -0
  126. package/dist/components/react/post-closebutton.js +50 -0
  127. package/dist/components/react/post-collapsible-trigger.d.ts +11 -0
  128. package/dist/components/react/post-collapsible-trigger.js +6 -0
  129. package/dist/components/react/post-collapsible.d.ts +11 -0
  130. package/dist/components/react/post-collapsible.js +6 -0
  131. package/dist/components/react/post-footer.d.ts +11 -0
  132. package/dist/components/react/post-footer.js +117 -0
  133. package/dist/components/react/post-header.d.ts +11 -0
  134. package/dist/components/react/post-header.js +333 -0
  135. package/dist/components/react/post-icon.d.ts +11 -0
  136. package/dist/components/react/post-icon.js +6 -0
  137. package/dist/components/react/post-language-option.d.ts +11 -0
  138. package/dist/components/react/post-language-option.js +101 -0
  139. package/dist/components/react/post-language-switch.d.ts +11 -0
  140. package/dist/components/react/post-language-switch.js +159 -0
  141. package/dist/components/react/post-linkarea.d.ts +11 -0
  142. package/dist/components/react/post-linkarea.js +46 -0
  143. package/dist/components/react/post-list-item.d.ts +11 -0
  144. package/dist/components/react/post-list-item.js +39 -0
  145. package/dist/components/react/post-list.d.ts +11 -0
  146. package/dist/components/react/post-list.js +62 -0
  147. package/dist/components/react/post-logo.d.ts +11 -0
  148. package/dist/components/react/post-logo.js +59 -0
  149. package/dist/components/react/post-mainnavigation.d.ts +11 -0
  150. package/dist/components/react/post-mainnavigation.js +181 -0
  151. package/dist/components/react/post-megadropdown-trigger.d.ts +11 -0
  152. package/dist/components/react/post-megadropdown-trigger.js +137 -0
  153. package/dist/components/react/post-megadropdown.d.ts +11 -0
  154. package/dist/components/react/post-megadropdown.js +197 -0
  155. package/dist/components/react/post-menu-item.d.ts +11 -0
  156. package/dist/components/react/post-menu-item.js +6 -0
  157. package/dist/components/react/post-menu-trigger.d.ts +11 -0
  158. package/dist/components/react/post-menu-trigger.js +6 -0
  159. package/dist/components/react/post-menu.d.ts +11 -0
  160. package/dist/components/react/post-menu.js +6 -0
  161. package/dist/components/react/post-popover.d.ts +11 -0
  162. package/dist/components/react/post-popover.js +189 -0
  163. package/dist/components/react/post-popovercontainer.d.ts +11 -0
  164. package/dist/components/react/post-popovercontainer.js +6 -0
  165. package/dist/components/react/post-rating.d.ts +11 -0
  166. package/dist/components/react/post-rating.js +153 -0
  167. package/dist/components/react/post-tab-header.d.ts +11 -0
  168. package/dist/components/react/post-tab-header.js +53 -0
  169. package/dist/components/react/post-tab-panel.d.ts +11 -0
  170. package/dist/components/react/post-tab-panel.js +55 -0
  171. package/dist/components/react/post-tabs.d.ts +11 -0
  172. package/dist/components/react/post-tabs.js +197 -0
  173. package/dist/components/react/post-togglebutton.d.ts +11 -0
  174. package/dist/components/react/post-togglebutton.js +57 -0
  175. package/dist/components/react/post-tooltip-trigger.d.ts +11 -0
  176. package/dist/components/react/post-tooltip-trigger.js +5223 -0
  177. package/dist/components/react/post-tooltip.d.ts +11 -0
  178. package/dist/components/react/post-tooltip.js +115 -0
  179. package/dist/components/switch-variants.js +3 -0
  180. package/dist/docs.json +43 -76
  181. package/dist/esm/event-from-kraHE1r3.js +105 -0
  182. package/dist/esm/index-C8a0ddDa.js +8 -8
  183. package/dist/esm/index-VmK3ABCB.js +88 -0
  184. package/dist/esm/loader.js +1 -1
  185. package/dist/esm/package-0Ltezq5O.js +3 -0
  186. package/dist/esm/post-accordion_2.entry.js +5 -5
  187. package/dist/esm/post-avatar.entry.js +92 -55
  188. package/dist/esm/post-back-to-top.entry.js +33 -8
  189. package/dist/esm/post-banner.entry.js +32 -36
  190. package/dist/esm/post-breadcrumb-item_2.entry.js +2 -2
  191. package/dist/esm/post-breadcrumbs.entry.js +2 -2
  192. package/dist/esm/post-card-control.entry.js +4 -4
  193. package/dist/esm/post-closebutton_15.entry.js +38 -7
  194. package/dist/esm/post-collapsible_2.entry.js +3 -3
  195. package/dist/esm/post-components.js +1 -1
  196. package/dist/esm/post-footer.entry.js +2 -2
  197. package/dist/esm/post-linkarea.entry.js +1 -1
  198. package/dist/esm/post-popover.entry.js +2 -2
  199. package/dist/esm/post-rating.entry.js +2 -2
  200. package/dist/esm/post-tab-header.entry.js +2 -2
  201. package/dist/esm/post-tab-panel.entry.js +2 -2
  202. package/dist/esm/post-tabs.entry.js +2 -2
  203. package/dist/esm/post-tooltip-trigger.entry.js +2 -2
  204. package/dist/esm/post-tooltip.entry.js +2 -2
  205. package/dist/loader/cdn.js +1 -0
  206. package/dist/loader/index.cjs.js +1 -0
  207. package/{loader → dist/loader}/index.d.ts +1 -1
  208. package/dist/loader/index.es2017.js +1 -0
  209. package/{loader → dist/loader}/index.js +1 -1
  210. package/dist/post-components/p-0Ltezq5O.js +1 -0
  211. package/dist/post-components/{p-eddb07df.entry.js → p-16772417.entry.js} +1 -1
  212. package/dist/post-components/{p-1dee733a.entry.js → p-38d3d441.entry.js} +1 -1
  213. package/dist/post-components/{p-470750be.entry.js → p-3c71f590.entry.js} +1 -1
  214. package/dist/post-components/p-40f21542.entry.js +1 -0
  215. package/dist/post-components/{p-30f12b7c.entry.js → p-4243cdd1.entry.js} +1 -1
  216. package/dist/post-components/p-4c18cb8c.entry.js +1 -0
  217. package/dist/post-components/{p-7819009b.entry.js → p-51dc7647.entry.js} +1 -1
  218. package/dist/post-components/{p-80bad606.entry.js → p-6777e505.entry.js} +1 -1
  219. package/dist/post-components/{p-7689015e.entry.js → p-6add880f.entry.js} +1 -1
  220. package/dist/post-components/{p-74a9aafc.entry.js → p-8363fedb.entry.js} +1 -1
  221. package/dist/post-components/p-83998038.entry.js +1 -0
  222. package/dist/post-components/{p-cb937e6b.entry.js → p-85bb1b5e.entry.js} +1 -1
  223. package/dist/post-components/{p-a0a1cab6.entry.js → p-8f4d8685.entry.js} +1 -1
  224. package/dist/post-components/{p-a69c874a.entry.js → p-95ad536d.entry.js} +1 -1
  225. package/dist/post-components/{p-3789cf50.entry.js → p-9d806e89.entry.js} +1 -1
  226. package/dist/post-components/{p-BWC0gtGU.js → p-VmK3ABCB.js} +1 -1
  227. package/dist/post-components/p-aad86320.entry.js +1 -0
  228. package/dist/post-components/p-c3e38acf.entry.js +1 -0
  229. package/dist/post-components/{p-ba13450e.entry.js → p-d61bb2ff.entry.js} +1 -1
  230. package/dist/post-components/p-kraHE1r3.js +1 -0
  231. package/dist/post-components/post-components.esm.js +1 -1
  232. package/dist/types/animations/slide-and-fade.d.ts +2 -0
  233. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +3 -3
  234. package/dist/types/components/post-avatar/avatar-utils.d.ts +3 -0
  235. package/dist/types/components/post-avatar/post-avatar.d.ts +14 -11
  236. package/dist/types/components/post-banner/post-banner.d.ts +6 -14
  237. package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
  238. package/dist/types/components/post-closebutton/post-closebutton.d.ts +2 -0
  239. package/dist/types/components/post-menu/post-menu.d.ts +3 -0
  240. package/dist/types/components/post-tabs/post-tabs.d.ts +2 -2
  241. package/dist/types/components.d.ts +9 -27
  242. package/dist/types/utils/component-on-ready.d.ts +2 -2
  243. package/hydrate/index.js +208 -142
  244. package/hydrate/index.mjs +208 -142
  245. package/package.json +20 -10
  246. package/dist/cjs/slide-CbBL7A8w.js +0 -28
  247. package/dist/components/p-7hVD-I9l.js +0 -3
  248. package/dist/components/p-BuLMaH5t.js +0 -25
  249. package/dist/esm/package-7hVD-I9l.js +0 -3
  250. package/dist/esm/slide-BuLMaH5t.js +0 -25
  251. package/dist/post-components/p-26730afe.entry.js +0 -1
  252. package/dist/post-components/p-2d3fb75c.entry.js +0 -1
  253. package/dist/post-components/p-2ed74834.entry.js +0 -1
  254. package/dist/post-components/p-7hVD-I9l.js +0 -1
  255. package/dist/post-components/p-8U5GFtQP.js +0 -1
  256. package/dist/post-components/p-BuLMaH5t.js +0 -1
  257. package/dist/post-components/p-cb5af9d8.entry.js +0 -1
  258. package/dist/post-components/p-ea9ae6b7.entry.js +0 -1
  259. package/loader/cdn.js +0 -1
  260. package/loader/index.cjs.js +0 -1
  261. package/loader/index.es2017.js +0 -1
  262. /package/dist/components/{p-CJ80BZ06.js → breakpoints.js} +0 -0
  263. /package/dist/components/{p-SbIC4aZX.js → fade.js} +0 -0
  264. /package/dist/components/{p-C35MCWIp.js → get-focusable-children.js} +0 -0
  265. /package/dist/components/{p-r4txK0AC.js → heading-levels.js} +0 -0
  266. /package/dist/components/{p-BLchVpF6.js → index.browser.js} +0 -0
  267. /package/dist/components/{p-CV7fm1rW.js → index2.js} +0 -0
  268. /package/dist/components/{p-C_2k3G1c.js → long-press-event.js} +0 -0
  269. /package/dist/components/{p-CBFgkSgY.js → react/p-CBFgkSgY.js} +0 -0
  270. /package/dist/components/{p-DjIHLduJ.js → react/p-DjIHLduJ.js} +0 -0
@@ -3,24 +3,13 @@ import { BannerType } from './banner-types';
3
3
  /**
4
4
  * @slot heading - Slot for placing custom content within the banner's heading.
5
5
  * @slot actions - Slot for placing custom actions (buttons, links, etc.) within the banner.
6
+ * @slot close-button - Slot for placing a `post-closebutton` component to make the banner dismissible.
6
7
  * @slot default - Slot for placing the main content/message of the banner.
7
8
  */
8
9
  export declare class PostBanner {
10
+ private mutationObserver;
9
11
  host: HTMLPostBannerElement;
10
- bannerId: string;
11
- classes: string;
12
12
  hasActions: boolean;
13
- hasHeading: boolean;
14
- onDismissButtonClick: () => Promise<void>;
15
- /**
16
- * If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
17
- */
18
- readonly dismissible: boolean;
19
- checkDismissible(): void;
20
- /**
21
- * The label to use for the close button of a dismissible banner.
22
- */
23
- readonly dismissLabel?: string;
24
13
  /**
25
14
  * The type of the banner.
26
15
  */
@@ -31,11 +20,14 @@ export declare class PostBanner {
31
20
  * It has no payload and only relevant for dismissible banners.
32
21
  */
33
22
  postDismissed: EventEmitter<void>;
23
+ connectedCallback(): void;
34
24
  componentDidLoad(): void;
35
- componentWillRender(): void;
25
+ disconnectedCallback(): void;
36
26
  /**
37
27
  * Triggers banner dismissal programmatically (same as clicking on the close button (×)).
38
28
  */
39
29
  dismiss(): Promise<void>;
30
+ onCloseButtonClick(): void;
31
+ private checkContent;
40
32
  render(): any;
41
33
  }
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  /**
3
3
  * @class PostCardControl - representing a stencil component
4
4
  *
5
- * @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<p className="banner banner-sm banner-warning">Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable.<br/>This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured.<br/>More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p>
6
- * @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.<p className="banner banner-sm banner-info">It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p>
5
+ * @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<post-banner type="warning" data-size="sm"><p>Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable.<br/>This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured.<br/>More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p></post-banner>
6
+ * @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.<post-banner data-size="sm"><p>It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p></post-banner>
7
7
  */
8
8
  export declare class PostCardControl {
9
9
  private readonly EVENT_MAP;
@@ -30,12 +30,12 @@ export declare class PostCardControl {
30
30
  readonly type: 'checkbox' | 'radio';
31
31
  /**
32
32
  * Defines the `name` attribute of the control.
33
- * <span className="mb-4 banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span>
34
- * <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
33
+ * <post-banner data-size="sm"><p>This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</p></post-banner>
34
+ * <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
35
35
  */
36
36
  readonly name?: string;
37
37
  /**
38
- * Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
38
+ * Defines the `value` attribute of the control. <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
39
39
  */
40
40
  readonly value?: string;
41
41
  /**
@@ -53,7 +53,7 @@ export declare class PostCardControl {
53
53
  validity?: boolean;
54
54
  /**
55
55
  * Defines the icon `name` inside the card.
56
- * <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
56
+ * <post-banner data-size="sm"><p>If not set the icon will not show up.</p></post-banner>
57
57
  */
58
58
  readonly icon?: string;
59
59
  /**
@@ -67,7 +67,7 @@ export declare class PostCardControl {
67
67
  /**
68
68
  * An event emitted whenever the components checked state is toggled.
69
69
  * The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
70
- * <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
70
+ * <post-banner data-size="sm"><p>If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</p></post-banner>
71
71
  */
72
72
  postChange: EventEmitter<{
73
73
  state: boolean;
@@ -3,5 +3,7 @@
3
3
  */
4
4
  export declare class PostClosebutton {
5
5
  host: HTMLPostClosebuttonElement;
6
+ componentDidLoad(): void;
7
+ private checkHiddenLabel;
6
8
  render(): any;
7
9
  }
@@ -1,5 +1,8 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Placement } from '@floating-ui/dom';
3
+ /**
4
+ * @part menu - The container element that holds the list of menu items.
5
+ */
3
6
  export declare class PostMenu {
4
7
  private popoverRef;
5
8
  private lastFocusedElement;
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  /**
3
3
  * @slot tabs - Slot for placing tab headers. Each tab header should be a <post-tab-header> element.
4
4
  * @slot default - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element.
5
- * @part tabs - Add custom styles for the tab header container.
6
- * @part content - Add custom styles for the tab panel container.
5
+ * @part tabs - The container element that holds the set of tabs.
6
+ * @part content - The container element that displays the content of the currently active tab.
7
7
  */
8
8
  export declare class PostTabs {
9
9
  private activeTab;
@@ -67,7 +67,7 @@ export namespace Components {
67
67
  */
68
68
  "lastname"?: string;
69
69
  /**
70
- * Defines the company internal userId.<div className="mb-4 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
70
+ * Defines the company internal userId.<post-banner type="warning" data-size="sm"><p>Can only be used on post.ch domains!</p></post-banner>
71
71
  */
72
72
  "userid"?: string;
73
73
  }
@@ -82,15 +82,6 @@ export namespace Components {
82
82
  * Triggers banner dismissal programmatically (same as clicking on the close button (×)).
83
83
  */
84
84
  "dismiss": () => Promise<void>;
85
- /**
86
- * The label to use for the close button of a dismissible banner.
87
- */
88
- "dismissLabel"?: string;
89
- /**
90
- * If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
91
- * @default false
92
- */
93
- "dismissible": boolean;
94
85
  /**
95
86
  * The type of the banner.
96
87
  * @default 'info'
@@ -137,7 +128,7 @@ export namespace Components {
137
128
  */
138
129
  "groupReset": () => Promise<void>;
139
130
  /**
140
- * Defines the icon `name` inside the card. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
131
+ * Defines the icon `name` inside the card. <post-banner data-size="sm"><p>If not set the icon will not show up.</p></post-banner>
141
132
  */
142
133
  "icon"?: string;
143
134
  /**
@@ -145,7 +136,7 @@ export namespace Components {
145
136
  */
146
137
  "label": string;
147
138
  /**
148
- * Defines the `name` attribute of the control. <span className="mb-4 banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
139
+ * Defines the `name` attribute of the control. <post-banner data-size="sm"><p>This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</p></post-banner> <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
149
140
  */
150
141
  "name"?: string;
151
142
  /**
@@ -161,7 +152,7 @@ export namespace Components {
161
152
  */
162
153
  "validity"?: boolean;
163
154
  /**
164
- * Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
155
+ * Defines the `value` attribute of the control. <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
165
156
  */
166
157
  "value"?: string;
167
158
  }
@@ -964,7 +955,7 @@ declare namespace LocalJSX {
964
955
  */
965
956
  "lastname"?: string;
966
957
  /**
967
- * Defines the company internal userId.<div className="mb-4 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
958
+ * Defines the company internal userId.<post-banner type="warning" data-size="sm"><p>Can only be used on post.ch domains!</p></post-banner>
968
959
  */
969
960
  "userid"?: string;
970
961
  }
@@ -975,15 +966,6 @@ declare namespace LocalJSX {
975
966
  "label": string;
976
967
  }
977
968
  interface PostBanner {
978
- /**
979
- * The label to use for the close button of a dismissible banner.
980
- */
981
- "dismissLabel"?: string;
982
- /**
983
- * If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
984
- * @default false
985
- */
986
- "dismissible"?: boolean;
987
969
  /**
988
970
  * An event emitted when the banner element is dismissed, after the transition. It has no payload and only relevant for dismissible banners.
989
971
  */
@@ -1030,7 +1012,7 @@ declare namespace LocalJSX {
1030
1012
  */
1031
1013
  "disabled"?: boolean;
1032
1014
  /**
1033
- * Defines the icon `name` inside the card. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
1015
+ * Defines the icon `name` inside the card. <post-banner data-size="sm"><p>If not set the icon will not show up.</p></post-banner>
1034
1016
  */
1035
1017
  "icon"?: string;
1036
1018
  /**
@@ -1038,11 +1020,11 @@ declare namespace LocalJSX {
1038
1020
  */
1039
1021
  "label": string;
1040
1022
  /**
1041
- * Defines the `name` attribute of the control. <span className="mb-4 banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
1023
+ * Defines the `name` attribute of the control. <post-banner data-size="sm"><p>This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</p></post-banner> <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
1042
1024
  */
1043
1025
  "name"?: string;
1044
1026
  /**
1045
- * An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked. <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
1027
+ * An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked. <post-banner data-size="sm"><p>If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</p></post-banner>
1046
1028
  */
1047
1029
  "onPostChange"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
1048
1030
  /**
@@ -1058,7 +1040,7 @@ declare namespace LocalJSX {
1058
1040
  */
1059
1041
  "validity"?: boolean;
1060
1042
  /**
1061
- * Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
1043
+ * Defines the `value` attribute of the control. <post-banner data-size="sm"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>
1062
1044
  */
1063
1045
  "value"?: string;
1064
1046
  }
@@ -1,6 +1,6 @@
1
- import { HostElement } from '../stencil-public-runtime';
1
+ import type { HTMLStencilElement } from '../stencil-public-runtime';
2
2
  /**
3
3
  * Invoke the `componentOnReady` method if it is available, simulate it otherwise
4
4
  * @see https://stenciljs.com/docs/api#componentonready
5
5
  */
6
- export declare function componentOnReady<T extends HostElement>(el: T): Promise<T>;
6
+ export declare function componentOnReady<T extends HTMLStencilElement>(el: T): Promise<T>;