@swisspost/design-system-components 10.0.0-next.55 → 10.0.0-next.57

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 (443) hide show
  1. package/dist/{components/react/p-CJ80BZ06.js → cjs/breakpoints-Df03Ct7n.js} +103 -5
  2. package/dist/cjs/debounce-BsIBi_-2.js +13 -0
  3. package/dist/cjs/environment-BQE9Unf_.js +52 -0
  4. package/dist/cjs/{event-from-CLvtSUKf.js → event-from-CwMw19f8.js} +2 -2
  5. package/dist/cjs/fade-CPQhl1fP.js +26 -0
  6. package/dist/cjs/fade-slide-dPhQa-I1.js +38 -0
  7. package/dist/cjs/{get-focusable-children-Bx63XUQg.js → get-focusable-children-ChETM1wK.js} +29 -21
  8. package/dist/cjs/{get-root-CyMf3Vsd.js → get-root-CUAv4k4C.js} +2 -2
  9. package/dist/cjs/{index-B4gYpuJF.js → index-B4rc1pqu.js} +2150 -292
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/{package-DkJrv93P.js → package-uQ5oiSiN.js} +1 -1
  12. package/dist/cjs/post-accordion_2.cjs.entry.js +19 -15
  13. package/dist/cjs/post-avatar.cjs.entry.js +27 -17
  14. package/dist/cjs/post-back-to-top.cjs.entry.js +23 -43
  15. package/dist/cjs/post-banner.cjs.entry.js +15 -12
  16. package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +14 -12
  17. package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
  18. package/dist/cjs/post-card-control.cjs.entry.js +42 -26
  19. package/dist/cjs/{post-closebutton_15.cjs.entry.js → post-closebutton_13.cjs.entry.js} +618 -531
  20. package/dist/cjs/post-collapsible_2.cjs.entry.js +41 -37
  21. package/dist/cjs/post-components.cjs.js +3 -3
  22. package/dist/cjs/post-env-test.cjs.entry.js +15 -0
  23. package/dist/cjs/post-footer.cjs.entry.js +24 -20
  24. package/dist/cjs/post-linkarea.cjs.entry.js +5 -5
  25. package/dist/cjs/post-pagination.cjs.entry.js +615 -0
  26. package/dist/cjs/post-popover-trigger.cjs.entry.js +54 -34
  27. package/dist/cjs/post-popover.cjs.entry.js +26 -17
  28. package/dist/cjs/post-rating.cjs.entry.js +24 -18
  29. package/dist/cjs/post-stepper-item.cjs.entry.js +5 -5
  30. package/dist/cjs/post-stepper.cjs.entry.js +40 -29
  31. package/dist/cjs/post-tab-item.cjs.entry.js +51 -0
  32. package/dist/cjs/post-tab-panel.cjs.entry.js +13 -11
  33. package/dist/cjs/post-tabs.cjs.entry.js +195 -40
  34. package/dist/cjs/post-tooltip-trigger.cjs.entry.js +13 -11
  35. package/dist/cjs/post-tooltip.cjs.entry.js +14 -12
  36. package/dist/cjs/utils-s05L2ulk.js +26 -0
  37. package/dist/collection/animations/collapse.js +3 -3
  38. package/dist/collection/animations/fade-slide.js +33 -0
  39. package/dist/collection/animations/fade.js +19 -7
  40. package/dist/collection/animations/index.js +2 -0
  41. package/dist/collection/animations/slide.js +25 -21
  42. package/dist/collection/animations/types.js +14 -0
  43. package/dist/collection/animations/utils.js +8 -0
  44. package/dist/collection/collection-manifest.json +8 -8
  45. package/dist/collection/components/post-accordion/post-accordion.css +1 -1
  46. package/dist/collection/components/post-accordion/post-accordion.js +5 -4
  47. package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
  48. package/dist/collection/components/post-accordion-item/post-accordion-item.js +9 -8
  49. package/dist/collection/components/post-avatar/post-avatar.js +11 -11
  50. package/dist/collection/components/post-back-to-top/post-back-to-top.js +15 -15
  51. package/dist/collection/components/post-banner/post-banner.css +4 -1
  52. package/dist/collection/components/post-banner/post-banner.js +6 -5
  53. package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -3
  54. package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -29
  55. package/dist/collection/components/post-card-control/post-card-control.js +18 -18
  56. package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
  57. package/dist/collection/components/post-closebutton/post-closebutton.js +4 -3
  58. package/dist/collection/components/post-collapsible/post-collapsible.js +28 -28
  59. package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +3 -3
  60. package/dist/collection/components/post-footer/post-footer.css +1 -1
  61. package/dist/collection/components/post-footer/post-footer.js +18 -16
  62. package/dist/collection/components/post-header/post-header.css +1 -1
  63. package/dist/collection/components/post-header/post-header.js +144 -82
  64. package/dist/collection/components/post-icon/post-icon.js +18 -16
  65. package/dist/collection/components/post-language-menu/post-language-menu.css +1 -0
  66. package/dist/collection/components/{post-language-switch/post-language-switch.js → post-language-menu/post-language-menu.js} +45 -36
  67. package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -0
  68. package/dist/collection/components/{post-language-option/post-language-option.js → post-language-menu-item/post-language-menu-item.js} +24 -23
  69. package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
  70. package/dist/collection/components/post-logo/post-logo.css +3 -1
  71. package/dist/collection/components/post-logo/post-logo.js +3 -3
  72. package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
  73. package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +41 -29
  74. package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
  75. package/dist/collection/components/post-megadropdown/post-megadropdown.js +183 -74
  76. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +3 -1
  77. package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +81 -75
  78. package/dist/collection/components/post-menu/post-menu.css +1 -1
  79. package/dist/collection/components/post-menu/post-menu.js +39 -38
  80. package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
  81. package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +3 -3
  82. package/dist/collection/components/post-pagination/post-pagination.css +1 -0
  83. package/dist/collection/components/post-pagination/post-pagination.js +838 -0
  84. package/dist/collection/components/post-popover/post-popover.js +22 -16
  85. package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +45 -29
  86. package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
  87. package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +82 -131
  88. package/dist/collection/components/post-rating/post-rating.js +7 -7
  89. package/dist/collection/components/post-stepper/post-stepper.js +38 -35
  90. package/dist/collection/components/post-stepper-item/post-stepper-item.css +2 -2
  91. package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
  92. package/dist/collection/components/post-tab-item/post-tab-item.css +1 -0
  93. package/dist/collection/components/post-tab-item/post-tab-item.js +86 -0
  94. package/dist/collection/components/post-tab-panel/post-tab-panel.js +10 -10
  95. package/dist/collection/components/post-tabs/post-tabs.js +232 -59
  96. package/dist/collection/components/post-togglebutton/post-togglebutton.js +2 -2
  97. package/dist/collection/components/post-tooltip/post-tooltip.js +9 -27
  98. package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +4 -4
  99. package/dist/collection/utils/environment.js +47 -2
  100. package/dist/collection/utils/event-from.js +2 -2
  101. package/dist/collection/utils/get-focusable-children.js +29 -21
  102. package/dist/collection/utils/is-motion-reduced.js +1 -1
  103. package/dist/collection/utils/tests/environment/hydrate-app-helper.js +16 -0
  104. package/dist/collection/utils/tests/environment/post-env-test.js +9 -0
  105. package/dist/component-names.json +4 -5
  106. package/dist/components/breakpoints.js +1 -178
  107. package/dist/components/debounce.js +1 -0
  108. package/dist/components/environment.js +1 -0
  109. package/dist/components/event-from.js +1 -119
  110. package/dist/components/fade-slide.js +1 -0
  111. package/dist/components/fade.js +1 -11
  112. package/dist/components/focusable.js +1 -5018
  113. package/dist/components/get-focusable-children.js +1 -64
  114. package/dist/components/get-root.js +1 -15
  115. package/dist/components/heading-levels.js +1 -3
  116. package/dist/components/index.browser.js +1 -14
  117. package/dist/components/index.d.ts +11 -10
  118. package/dist/components/index.js +1 -39
  119. package/dist/components/long-press-event.js +1 -257
  120. package/dist/components/package.js +1 -3
  121. package/dist/components/post-accordion-item.js +1 -6
  122. package/dist/components/post-accordion-item2.js +1 -113
  123. package/dist/components/post-accordion.js +1 -6
  124. package/dist/components/post-accordion2.js +1 -138
  125. package/dist/components/post-avatar.js +1 -217
  126. package/dist/components/post-back-to-top.js +1 -144
  127. package/dist/components/post-banner.js +1 -98
  128. package/dist/components/post-breadcrumb-item.js +1 -6
  129. package/dist/components/post-breadcrumb-item2.js +1 -79
  130. package/dist/components/post-breadcrumbs.js +1 -196
  131. package/dist/components/post-card-control.js +1 -326
  132. package/dist/components/post-closebutton.js +1 -6
  133. package/dist/components/post-closebutton2.js +1 -77
  134. package/dist/components/post-collapsible-trigger.js +1 -6
  135. package/dist/components/post-collapsible-trigger2.js +1 -136
  136. package/dist/components/post-collapsible.js +1 -6
  137. package/dist/components/post-collapsible2.js +1 -110
  138. package/dist/components/{post-list.d.ts → post-env-test.d.ts} +4 -4
  139. package/dist/components/post-env-test.js +1 -0
  140. package/dist/components/post-footer.js +1 -116
  141. package/dist/components/post-header.js +1 -372
  142. package/dist/components/post-icon.js +1 -6
  143. package/dist/components/post-icon2.js +1 -159
  144. package/dist/components/post-language-menu-item.d.ts +11 -0
  145. package/dist/components/post-language-menu-item.js +1 -0
  146. package/dist/components/{post-language-switch.d.ts → post-language-menu.d.ts} +4 -4
  147. package/dist/components/post-language-menu.js +1 -0
  148. package/dist/components/post-linkarea.js +1 -58
  149. package/dist/components/post-logo.js +1 -58
  150. package/dist/components/post-mainnavigation.js +1 -180
  151. package/dist/components/post-megadropdown-trigger.js +1 -136
  152. package/dist/components/post-megadropdown.js +1 -267
  153. package/dist/components/post-menu-item.js +1 -6
  154. package/dist/components/post-menu-item2.js +1 -30
  155. package/dist/components/post-menu-trigger.js +1 -6
  156. package/dist/components/post-menu-trigger2.js +1 -110
  157. package/dist/components/post-menu.js +1 -6
  158. package/dist/components/post-menu2.js +1 -242
  159. package/dist/components/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
  160. package/dist/components/post-pagination.js +1 -0
  161. package/dist/components/post-popover-trigger.js +1 -132
  162. package/dist/components/post-popover.js +1 -118
  163. package/dist/components/post-popovercontainer.js +1 -6
  164. package/dist/components/post-popovercontainer2.js +1 -3127
  165. package/dist/components/post-rating.js +1 -148
  166. package/dist/components/post-stepper-item.js +1 -33
  167. package/dist/components/post-stepper.js +1 -134
  168. package/dist/components/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
  169. package/dist/components/post-tab-item.js +1 -0
  170. package/dist/components/post-tab-panel.js +1 -54
  171. package/dist/components/post-tabs.js +1 -196
  172. package/dist/components/post-togglebutton.js +1 -56
  173. package/dist/components/post-togglebutton2.js +1 -0
  174. package/dist/components/post-tooltip-trigger.js +1 -206
  175. package/dist/components/post-tooltip.js +1 -114
  176. package/dist/components/react/index.d.ts +2 -0
  177. package/dist/components/react/index.js +1 -2315
  178. package/dist/components/react/p-B8YiQ3mz.js +1 -0
  179. package/dist/components/react/p-BC5nlBvn.js +1 -0
  180. package/dist/components/react/p-BLchVpF6.js +1 -14
  181. package/dist/components/react/p-BVCjnh6Q.js +1 -0
  182. package/dist/{post-components/p-CBFgkSgY.js → components/react/p-BVGcVycs.js} +1 -1
  183. package/dist/components/react/p-B_XPj2c8.js +1 -0
  184. package/dist/components/react/p-BllOMLDs.js +1 -0
  185. package/dist/components/react/p-BmRNjQUZ.js +1 -0
  186. package/dist/components/react/p-ByFh05IW.js +1 -0
  187. package/dist/components/react/p-C9hMpmsD.js +1 -0
  188. package/dist/components/react/p-CJ13r5fi.js +1 -0
  189. package/dist/components/react/p-CZvbetqX.js +1 -0
  190. package/dist/components/react/p-C_2k3G1c.js +1 -257
  191. package/dist/components/react/p-CoDiS_Ik.js +1 -0
  192. package/dist/components/react/p-Cou17ld8.js +1 -0
  193. package/dist/components/react/p-D5knoiyy.js +1 -0
  194. package/dist/components/react/p-D9DDtvFM.js +1 -0
  195. package/dist/components/react/p-DY2U5CQt.js +1 -0
  196. package/dist/components/react/p-DjIHLduJ.js +1 -3
  197. package/dist/components/react/p-DpATRD2W.js +1 -0
  198. package/dist/components/react/p-FxUVQ4Tx.js +1 -0
  199. package/dist/components/react/p-HygIVKXC.js +1 -5018
  200. package/dist/components/react/p-YR7U0Z_g.js +1 -0
  201. package/dist/components/react/p-ZeKXASQs.js +1 -0
  202. package/dist/components/react/p-r4txK0AC.js +1 -3
  203. package/dist/components/react/p-sSn0kXFi.js +1 -0
  204. package/dist/components/react/post-accordion-item.js +1 -6
  205. package/dist/components/react/post-accordion.js +1 -6
  206. package/dist/components/react/post-avatar.js +1 -218
  207. package/dist/components/react/post-back-to-top.js +1 -145
  208. package/dist/components/react/post-banner.js +1 -99
  209. package/dist/components/react/post-breadcrumb-item.js +1 -6
  210. package/dist/components/react/post-breadcrumbs.js +1 -197
  211. package/dist/components/react/post-card-control.js +1 -327
  212. package/dist/components/react/post-closebutton.js +1 -6
  213. package/dist/components/react/post-collapsible-trigger.js +1 -6
  214. package/dist/components/react/post-collapsible.js +1 -6
  215. package/dist/components/react/{post-list.d.ts → post-env-test.d.ts} +4 -4
  216. package/dist/components/react/post-env-test.js +1 -0
  217. package/dist/components/react/post-footer.js +1 -117
  218. package/dist/components/react/post-header.js +1 -373
  219. package/dist/components/react/post-icon.js +1 -6
  220. package/dist/components/react/post-language-menu-item.d.ts +11 -0
  221. package/dist/components/react/post-language-menu-item.js +1 -0
  222. package/dist/components/react/{post-language-option.d.ts → post-language-menu.d.ts} +4 -4
  223. package/dist/components/react/post-language-menu.js +1 -0
  224. package/dist/components/react/post-linkarea.js +1 -59
  225. package/dist/components/react/post-logo.js +1 -59
  226. package/dist/components/react/post-mainnavigation.js +1 -181
  227. package/dist/components/react/post-megadropdown-trigger.js +1 -137
  228. package/dist/components/react/post-megadropdown.js +1 -268
  229. package/dist/components/react/post-menu-item.js +1 -6
  230. package/dist/components/react/post-menu-trigger.js +1 -6
  231. package/dist/components/react/post-menu.js +1 -6
  232. package/dist/components/react/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
  233. package/dist/components/react/post-pagination.js +1 -0
  234. package/dist/components/react/post-popover-trigger.js +1 -133
  235. package/dist/components/react/post-popover.js +1 -119
  236. package/dist/components/react/post-popovercontainer.js +1 -6
  237. package/dist/components/react/post-rating.js +1 -149
  238. package/dist/components/react/post-stepper-item.js +1 -34
  239. package/dist/components/react/post-stepper.js +1 -135
  240. package/dist/components/react/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
  241. package/dist/components/react/post-tab-item.js +1 -0
  242. package/dist/components/react/post-tab-panel.js +1 -55
  243. package/dist/components/react/post-tabs.js +1 -197
  244. package/dist/components/react/post-togglebutton.js +1 -57
  245. package/dist/components/react/post-tooltip-trigger.js +1 -207
  246. package/dist/components/react/post-tooltip.js +1 -115
  247. package/dist/components/switch-variants.js +1 -3
  248. package/dist/components/utils.js +1 -0
  249. package/dist/docs.d.ts +11 -0
  250. package/dist/docs.json +873 -631
  251. package/dist/{cjs/breakpoints-CEkeixld.js → esm/breakpoints-DYoSKGHO.js} +89 -6
  252. package/dist/esm/debounce-C9hMpmsD.js +11 -0
  253. package/dist/esm/environment-CEmnRoA6.js +49 -0
  254. package/dist/{components/react/p-CzIKqBrS.js → esm/event-from-rEfV4v4a.js} +2 -2
  255. package/dist/esm/fade-DsgPYmAa.js +24 -0
  256. package/dist/esm/fade-slide-CvOvauo9.js +36 -0
  257. package/dist/esm/{get-focusable-children-D9ZHp2FP.js → get-focusable-children-BXNs2_sw.js} +29 -21
  258. package/dist/{components/react/p-CBFgkSgY.js → esm/get-root-CXfAA093.js} +1 -1
  259. package/dist/esm/{index-wEFJ-c34.js → index-CDZBzSdV.js} +2150 -292
  260. package/dist/esm/loader.js +3 -3
  261. package/dist/esm/package-CZvbetqX.js +3 -0
  262. package/dist/esm/post-accordion_2.entry.js +17 -13
  263. package/dist/esm/post-avatar.entry.js +22 -12
  264. package/dist/esm/post-back-to-top.entry.js +23 -43
  265. package/dist/esm/post-banner.entry.js +14 -11
  266. package/dist/esm/post-breadcrumb-item_2.entry.js +13 -11
  267. package/dist/esm/post-breadcrumbs.entry.js +31 -32
  268. package/dist/esm/post-card-control.entry.js +32 -16
  269. package/dist/esm/{post-closebutton_15.entry.js → post-closebutton_13.entry.js} +599 -510
  270. package/dist/esm/post-collapsible_2.entry.js +38 -34
  271. package/dist/esm/post-components.js +4 -4
  272. package/dist/esm/post-env-test.entry.js +13 -0
  273. package/dist/esm/post-footer.entry.js +21 -17
  274. package/dist/esm/post-linkarea.entry.js +5 -5
  275. package/dist/esm/post-pagination.entry.js +613 -0
  276. package/dist/esm/post-popover-trigger.entry.js +52 -32
  277. package/dist/esm/post-popover.entry.js +25 -16
  278. package/dist/esm/post-rating.entry.js +16 -10
  279. package/dist/esm/post-stepper-item.entry.js +5 -5
  280. package/dist/esm/post-stepper.entry.js +39 -28
  281. package/dist/esm/post-tab-item.entry.js +49 -0
  282. package/dist/esm/post-tab-panel.entry.js +13 -11
  283. package/dist/esm/post-tabs.entry.js +195 -40
  284. package/dist/esm/post-tooltip-trigger.entry.js +10 -8
  285. package/dist/esm/post-tooltip.entry.js +13 -11
  286. package/dist/esm/utils-CoDiS_Ik.js +24 -0
  287. package/dist/post-components/p-09ba7cf9.entry.js +1 -0
  288. package/dist/post-components/p-0c091898.entry.js +1 -0
  289. package/dist/post-components/{p-cd03e6f2.entry.js → p-0e97fcfd.entry.js} +1 -1
  290. package/dist/post-components/p-296f1dd5.entry.js +1 -0
  291. package/dist/post-components/p-32ad2b21.entry.js +1 -0
  292. package/dist/post-components/p-366c28cb.entry.js +1 -0
  293. package/dist/post-components/p-41ae68d5.entry.js +1 -0
  294. package/dist/post-components/p-448e7265.entry.js +1 -0
  295. package/dist/post-components/p-554da188.entry.js +1 -0
  296. package/dist/post-components/p-5912f8f1.entry.js +1 -0
  297. package/dist/post-components/p-790f300d.entry.js +1 -0
  298. package/dist/post-components/p-7ed5a493.entry.js +1 -0
  299. package/dist/post-components/p-85bea1b6.entry.js +1 -0
  300. package/dist/post-components/p-8bcff4d2.entry.js +1 -0
  301. package/dist/post-components/p-9dc9c245.entry.js +1 -0
  302. package/dist/post-components/p-B7ebLhHc.js +1 -0
  303. package/dist/post-components/p-BVCjnh6Q.js +1 -0
  304. package/dist/post-components/p-BXNs2_sw.js +1 -0
  305. package/dist/post-components/p-C9hMpmsD.js +1 -0
  306. package/dist/post-components/p-CDZBzSdV.js +2 -0
  307. package/dist/post-components/p-CEmnRoA6.js +1 -0
  308. package/dist/post-components/p-CZvbetqX.js +1 -0
  309. package/dist/post-components/p-CoDiS_Ik.js +1 -0
  310. package/dist/post-components/p-D5knoiyy.js +1 -0
  311. package/dist/post-components/p-DI-h_mEL.js +1 -0
  312. package/dist/post-components/p-a06f9695.entry.js +1 -0
  313. package/dist/post-components/p-a191f1df.entry.js +1 -0
  314. package/dist/post-components/p-c5d19d62.entry.js +1 -0
  315. package/dist/post-components/{p-24dc54d1.entry.js → p-c8c4d05b.entry.js} +1 -1
  316. package/dist/post-components/{p-57288cb2.entry.js → p-d1a5c980.entry.js} +1 -1
  317. package/dist/post-components/p-d4e2c556.entry.js +1 -0
  318. package/dist/post-components/p-f96a310c.entry.js +1 -0
  319. package/dist/post-components/p-fab2327d.entry.js +1 -0
  320. package/dist/post-components/p-rEfV4v4a.js +1 -0
  321. package/dist/post-components/post-components.css +1 -1
  322. package/dist/post-components/post-components.esm.js +1 -1
  323. package/dist/prebuild.js +46 -0
  324. package/dist/types/animations/collapse.d.ts +1 -0
  325. package/dist/types/animations/fade-slide.d.ts +11 -0
  326. package/dist/types/animations/fade.d.ts +2 -2
  327. package/dist/types/animations/index.d.ts +2 -0
  328. package/dist/types/animations/slide.d.ts +9 -2
  329. package/dist/types/animations/types.d.ts +13 -0
  330. package/dist/types/animations/utils.d.ts +2 -0
  331. package/dist/types/components/post-accordion-item/heading-levels.d.ts +1 -1
  332. package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -2
  333. package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +2 -2
  334. package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +6 -6
  335. package/dist/types/components/post-collapsible/post-collapsible.d.ts +4 -5
  336. package/dist/types/components/post-footer/post-footer.d.ts +4 -4
  337. package/dist/types/components/post-header/post-header.d.ts +23 -13
  338. package/dist/types/components/{post-language-switch/post-language-switch.d.ts → post-language-menu/post-language-menu.d.ts} +12 -11
  339. package/dist/types/components/{post-language-option/post-language-option.d.ts → post-language-menu-item/post-language-menu-item.d.ts} +5 -5
  340. package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +6 -5
  341. package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +20 -2
  342. package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +17 -23
  343. package/dist/types/components/post-menu/post-menu.d.ts +4 -4
  344. package/dist/types/components/post-pagination/post-pagination.d.ts +224 -0
  345. package/dist/types/components/post-popover/post-popover.d.ts +4 -3
  346. package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +2 -1
  347. package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +23 -21
  348. package/dist/types/components/post-rating/post-rating.d.ts +1 -1
  349. package/dist/types/components/post-stepper/post-stepper.d.ts +9 -8
  350. package/dist/types/components/post-tab-item/post-tab-item.d.ts +19 -0
  351. package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -3
  352. package/dist/types/components/post-tabs/post-tabs.d.ts +33 -12
  353. package/dist/types/components/post-tooltip/post-tooltip.d.ts +1 -5
  354. package/dist/types/components.d.ts +322 -219
  355. package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/prebuild.d.ts +9 -0
  356. package/dist/types/stencil-public-runtime.d.ts +147 -10
  357. package/dist/types/types/heading-levels.d.ts +1 -1
  358. package/dist/types/utils/environment.d.ts +25 -1
  359. package/dist/types/utils/get-focusable-children.d.ts +2 -2
  360. package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +5 -0
  361. package/dist/types/utils/tests/environment/post-env-test.d.ts +3 -0
  362. package/hydrate/index.d.ts +14 -0
  363. package/hydrate/index.js +7494 -2714
  364. package/hydrate/index.mjs +7493 -2715
  365. package/package.json +7 -8
  366. package/dist/cjs/fade-nS5zzDQS.js +0 -14
  367. package/dist/cjs/index-UFKR6Ok0.js +0 -98
  368. package/dist/cjs/post-tab-header.cjs.entry.js +0 -31
  369. package/dist/collection/animations/slide-and-fade.js +0 -25
  370. package/dist/collection/components/post-language-option/post-language-option.css +0 -1
  371. package/dist/collection/components/post-language-switch/post-language-switch.css +0 -1
  372. package/dist/collection/components/post-list/post-list.css +0 -1
  373. package/dist/collection/components/post-list/post-list.js +0 -97
  374. package/dist/collection/components/post-list-item/post-list-item.css +0 -1
  375. package/dist/collection/components/post-list-item/post-list-item.js +0 -26
  376. package/dist/collection/components/post-tab-header/post-tab-header.css +0 -1
  377. package/dist/collection/components/post-tab-header/post-tab-header.js +0 -65
  378. package/dist/components/index2.js +0 -89
  379. package/dist/components/post-language-option.d.ts +0 -11
  380. package/dist/components/post-language-option.js +0 -99
  381. package/dist/components/post-language-switch.js +0 -157
  382. package/dist/components/post-list-item.js +0 -38
  383. package/dist/components/post-list.js +0 -61
  384. package/dist/components/post-tab-header.js +0 -52
  385. package/dist/components/react/p-BVXiQdHq.js +0 -64
  386. package/dist/components/react/p-BhxZzOEC.js +0 -3
  387. package/dist/components/react/p-CSAMO7iJ.js +0 -243
  388. package/dist/components/react/p-CYkf_7Y5.js +0 -89
  389. package/dist/components/react/p-Ccrl2AQn.js +0 -111
  390. package/dist/components/react/p-CewRvBtg.js +0 -139
  391. package/dist/components/react/p-Cwiv86_f.js +0 -111
  392. package/dist/components/react/p-D2waO0Zc.js +0 -31
  393. package/dist/components/react/p-DBPOV12C.js +0 -160
  394. package/dist/components/react/p-DVGEExot.js +0 -3128
  395. package/dist/components/react/p-Djvj8fd2.js +0 -80
  396. package/dist/components/react/p-LtiDhYis.js +0 -137
  397. package/dist/components/react/p-SbIC4aZX.js +0 -11
  398. package/dist/components/react/p-XrZzCOKT.js +0 -78
  399. package/dist/components/react/p-v3pOrMNQ.js +0 -114
  400. package/dist/components/react/post-language-option.js +0 -100
  401. package/dist/components/react/post-language-switch.d.ts +0 -11
  402. package/dist/components/react/post-language-switch.js +0 -158
  403. package/dist/components/react/post-list-item.js +0 -39
  404. package/dist/components/react/post-list.js +0 -62
  405. package/dist/components/react/post-tab-header.js +0 -53
  406. package/dist/esm/breakpoints-CJ80BZ06.js +0 -178
  407. package/dist/esm/event-from-CzIKqBrS.js +0 -119
  408. package/dist/esm/fade-SbIC4aZX.js +0 -11
  409. package/dist/esm/get-root-BkQ3CrLq.js +0 -15
  410. package/dist/esm/index-Beaz8wEe.js +0 -89
  411. package/dist/esm/package-BhxZzOEC.js +0 -3
  412. package/dist/esm/post-tab-header.entry.js +0 -29
  413. package/dist/post-components/p-01e678c9.entry.js +0 -1
  414. package/dist/post-components/p-034a453f.entry.js +0 -1
  415. package/dist/post-components/p-15a4cdbf.entry.js +0 -1
  416. package/dist/post-components/p-2a2030bf.entry.js +0 -1
  417. package/dist/post-components/p-2ed84cc3.entry.js +0 -1
  418. package/dist/post-components/p-3228968f.entry.js +0 -1
  419. package/dist/post-components/p-3c01ddfe.entry.js +0 -1
  420. package/dist/post-components/p-748b1f01.entry.js +0 -1
  421. package/dist/post-components/p-7745e46e.entry.js +0 -1
  422. package/dist/post-components/p-7f635728.entry.js +0 -1
  423. package/dist/post-components/p-82c178a3.entry.js +0 -1
  424. package/dist/post-components/p-9b5f8319.entry.js +0 -1
  425. package/dist/post-components/p-Beaz8wEe.js +0 -1
  426. package/dist/post-components/p-BhxZzOEC.js +0 -1
  427. package/dist/post-components/p-CJ80BZ06.js +0 -1
  428. package/dist/post-components/p-D9ZHp2FP.js +0 -1
  429. package/dist/post-components/p-SbIC4aZX.js +0 -1
  430. package/dist/post-components/p-a9644e54.entry.js +0 -1
  431. package/dist/post-components/p-af030a3a.entry.js +0 -1
  432. package/dist/post-components/p-b8ba8139.entry.js +0 -1
  433. package/dist/post-components/p-db935e8e.entry.js +0 -1
  434. package/dist/post-components/p-e62e1f57.entry.js +0 -1
  435. package/dist/post-components/p-fb4b1641.entry.js +0 -1
  436. package/dist/post-components/p-wEFJ-c34.js +0 -2
  437. package/dist/types/animations/slide-and-fade.d.ts +0 -2
  438. package/dist/types/components/post-list/post-list.d.ts +0 -24
  439. package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
  440. package/dist/types/components/post-tab-header/post-tab-header.d.ts +0 -14
  441. /package/dist/collection/components/{post-language-switch → post-language-menu}/switch-variants.js +0 -0
  442. /package/dist/{post-components/p-CzIKqBrS.js → components/react/p-rEfV4v4a.js} +0 -0
  443. /package/dist/types/components/{post-language-switch → post-language-menu}/switch-variants.d.ts +0 -0
@@ -1,197 +1 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, a as Host } from './index.js';
2
- import { v as version } from './p-BhxZzOEC.js';
3
- import { f as fadeOut, a as fadeIn } from './p-SbIC4aZX.js';
4
- import './p-CJ80BZ06.js';
5
-
6
- /**
7
- * Invoke the `componentOnReady` method if it is available, simulate it otherwise
8
- * @see https://stenciljs.com/docs/api#componentonready
9
- */
10
- function componentOnReady(el) {
11
- if (typeof el.componentOnReady === 'function') {
12
- return el.componentOnReady();
13
- }
14
- else {
15
- return new Promise(resolve => customOnReady(() => {
16
- resolve(el);
17
- }));
18
- }
19
- }
20
- function customOnReady(callback) {
21
- if (typeof requestAnimationFrame === 'function') {
22
- return requestAnimationFrame(callback);
23
- }
24
- return setTimeout(callback);
25
- }
26
-
27
- const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}:host([full-width=true]) .tabs-wrapper{margin-inline:calc(-1*var(--post-container-offset))}:host([full-width=true]) .tabs-wrapper .tabs{padding-inline:var(--post-container-offset)}";
28
-
29
- const PostTabs$1 = /*@__PURE__*/ proxyCustomElement(class PostTabs extends H {
30
- constructor() {
31
- super();
32
- this.__registerHost();
33
- this.__attachShadow();
34
- this.postChange = createEvent(this, "postChange");
35
- this.isLoaded = false;
36
- /**
37
- * When set to true, this property allows the tabs container to span the
38
- * full width of the screen, from edge to edge.
39
- */
40
- this.fullWidth = false;
41
- }
42
- get tabs() {
43
- return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
44
- }
45
- componentDidLoad() {
46
- this.moveMisplacedTabs();
47
- this.enableTabs();
48
- const initiallyActivePanel = this.activePanel || this.tabs[0]?.panel;
49
- void this.show(initiallyActivePanel);
50
- this.isLoaded = true;
51
- }
52
- /**
53
- * Shows the panel with the given name and selects its associated tab.
54
- * Any other panel that was previously shown becomes hidden and its associated tab is unselected.
55
- */
56
- async show(panelName) {
57
- // do nothing if the tab is already active
58
- if (panelName === this.activeTab?.panel) {
59
- return;
60
- }
61
- const previousTab = this.activeTab;
62
- const newTab = this.host.querySelector(`post-tab-header[panel=${panelName}]`);
63
- this.activateTab(newTab);
64
- // if a panel is currently being displayed, remove it from the view and complete the associated animation
65
- if (this.showing) {
66
- this.showing.effect['target'].style.display = 'none';
67
- this.showing.finish();
68
- }
69
- // hide the currently visible panel only if no other animation is running
70
- if (previousTab && !this.showing && !this.hiding)
71
- this.hidePanel(previousTab.panel);
72
- // wait for any hiding animation to complete before showing the selected tab
73
- if (this.hiding)
74
- await this.hiding.finished;
75
- this.showSelectedPanel();
76
- // wait for any display animation to complete for the returned promise to fully resolve
77
- if (this.showing)
78
- await this.showing.finished;
79
- if (this.isLoaded)
80
- this.postChange.emit(this.activeTab.panel);
81
- }
82
- moveMisplacedTabs() {
83
- if (!this.tabs)
84
- return;
85
- this.tabs.forEach(tab => {
86
- if (tab.getAttribute('slot') === 'tabs')
87
- return;
88
- tab.setAttribute('slot', 'tabs');
89
- });
90
- }
91
- enableTabs() {
92
- if (!this.tabs)
93
- return;
94
- this.tabs.forEach(async (tab) => {
95
- await componentOnReady(tab);
96
- // if the tab has an "aria-controls" attribute it was already linked to its panel: do nothing
97
- if (tab.getAttribute('aria-controls'))
98
- return;
99
- const tabPanel = this.getPanel(tab.panel);
100
- tab.setAttribute('aria-controls', tabPanel.id);
101
- tabPanel.setAttribute('aria-labelledby', tab.id);
102
- tab.addEventListener('click', () => {
103
- void this.show(tab.panel);
104
- });
105
- tab.addEventListener('keydown', (e) => {
106
- if (e.key === 'Enter' || e.key === ' ') {
107
- e.preventDefault();
108
- void this.show(tab.panel);
109
- }
110
- });
111
- tab.addEventListener('keydown', (e) => {
112
- if (e.key === 'ArrowRight' || e.key === 'ArrowLeft')
113
- this.navigateTabs(tab, e.key);
114
- });
115
- });
116
- // if the currently active tab was removed from the DOM then select the first one
117
- if (this.activeTab && !this.activeTab.isConnected) {
118
- void this.show(this.tabs[0]?.panel);
119
- }
120
- }
121
- activateTab(tab) {
122
- if (this.activeTab) {
123
- this.activeTab.setAttribute('aria-selected', 'false');
124
- this.activeTab.setAttribute('tabindex', '-1');
125
- this.activeTab.classList.remove('active');
126
- }
127
- tab.setAttribute('aria-selected', 'true');
128
- tab.setAttribute('tabindex', '0');
129
- tab.classList.add('active');
130
- this.activeTab = tab;
131
- }
132
- hidePanel(panelName) {
133
- const previousPanel = this.getPanel(panelName);
134
- if (!previousPanel)
135
- return;
136
- this.hiding = fadeOut(previousPanel);
137
- this.hiding.onfinish = () => {
138
- previousPanel.style.display = 'none';
139
- this.hiding = null;
140
- };
141
- }
142
- showSelectedPanel() {
143
- const panel = this.getPanel(this.activeTab.panel);
144
- panel.style.display = 'block';
145
- // prevent the initially selected panel from fading in
146
- if (!this.isLoaded)
147
- return;
148
- this.showing = fadeIn(panel);
149
- this.showing.onfinish = () => {
150
- this.showing = null;
151
- };
152
- }
153
- getPanel(name) {
154
- return this.host.querySelector(`post-tab-panel[name=${name}]`);
155
- }
156
- navigateTabs(tab, key) {
157
- const activeTabIndex = Array.from(this.tabs).indexOf(tab);
158
- let nextTab;
159
- if (key === 'ArrowRight') {
160
- nextTab = this.tabs[activeTabIndex + 1] || this.tabs[0];
161
- }
162
- else {
163
- nextTab = this.tabs[activeTabIndex - 1] || this.tabs[this.tabs.length - 1];
164
- }
165
- if (!nextTab)
166
- return;
167
- nextTab.focus();
168
- }
169
- render() {
170
- return (h(Host, { key: 'f3534a3b05c379ce1cb311d4c5ea950c8eba87d0', "data-version": version }, h("div", { key: 'd812db6b2a895504fce8ac9dae2663821b9dd759', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '9abd0ee00204a085ceaebce5e11fcff527273605', class: "tabs", role: "tablist" }, h("slot", { key: '89f09f443ca740dc9af66fedb1367cdb4885074d', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '4a94a19fd67814482934bd31bb219470bea8dec6', class: "tab-content", part: "content" }, h("slot", { key: '44db446865edacb1b1c0fc20ef391adfa189e8cb', onSlotchange: () => this.moveMisplacedTabs() }))));
171
- }
172
- get host() { return this; }
173
- static get style() { return postTabsCss; }
174
- }, [1, "post-tabs", {
175
- "activePanel": [1, "active-panel"],
176
- "fullWidth": [516, "full-width"],
177
- "show": [64]
178
- }]);
179
- function defineCustomElement$1() {
180
- if (typeof customElements === "undefined") {
181
- return;
182
- }
183
- const components = ["post-tabs"];
184
- components.forEach(tagName => { switch (tagName) {
185
- case "post-tabs":
186
- if (!customElements.get(tagName)) {
187
- customElements.define(tagName, PostTabs$1);
188
- }
189
- break;
190
- } });
191
- }
192
- defineCustomElement$1();
193
-
194
- const PostTabs = PostTabs$1;
195
- const defineCustomElement = defineCustomElement$1;
196
-
197
- export { PostTabs, defineCustomElement };
1
+ import{t,p as s,H as i,c as e,h as a,a as n}from"./index.js";import{v as o}from"./p-CZvbetqX.js";import{f as h}from"./p-D5knoiyy.js";import{c as r}from"./p-B8YiQ3mz.js";const l=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.postChange=e(this,"postChange"),this.isLoaded=!1,this.isNavigationMode=!1,this.fullWidth=!1}get tabs(){return Array.from(this.host.querySelectorAll("post-tab-item")).filter((t=>t.closest("post-tabs")===this.host))}get panels(){return Array.from(this.host.querySelectorAll("post-tab-panel")).filter((t=>t.closest("post-tabs")===this.host))}validateLabel(){this.isNavigationMode&&r(this,"label","string")}componentWillRender(){this.detectMode()}componentDidLoad(){if(this.moveMisplacedTabs(),this.moveMisplacedPanels(),this.enableTabs(),this.setupContentObserver(),this.validateLabel(),this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}disconnectedCallback(){this.showing&&(this.showing.cancel(),this.showing=null),this.hiding&&(this.hiding.cancel(),this.hiding=null),this.contentObserver&&this.contentObserver.disconnect()}setupContentObserver(){this.contentObserver=new MutationObserver(this.handleContentChange.bind(this)),this.contentObserver.observe(this.host,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-navigation-mode","aria-current"]})}handleContentChange(t){const s=this.shouldRedetectMode(t);this.hasAriaCurrentChanged(t)&&this.isNavigationMode&&this.updateActiveNavigationTab(),s&&this.handleModeChange()}shouldRedetectMode(t){return t.some((t=>"childList"===t.type?t.addedNodes.length>0||t.removedNodes.length>0:"attributes"===t.type&&"data-navigation-mode"===t.attributeName))}hasAriaCurrentChanged(t){return t.some((t=>"attributes"===t.type&&"aria-current"===t.attributeName))}updateActiveNavigationTab(){const t=this.findActiveNavigationTab();t&&t!==this.currentActiveTab&&this.activateTab(t)}handleModeChange(){const t=this.isNavigationMode;this.detectMode(),t!==this.isNavigationMode&&(this.enableTabs(),this.initializeActiveTab())}initializeActiveTab(){if(this.isNavigationMode){const t=this.findActiveNavigationTab();t&&this.activateTab(t)}else{const t=this.activeTab||this.tabs[0]?.name;t&&this.show(t)}}detectMode(){const t=this.tabs.some((t=>{const s=null!==t.querySelector("a"),i="true"===t.getAttribute("data-navigation-mode");return s||i}));if(t&&this.panels.length>0)throw Error("PostTabs: Mixed mode detected. Cannot use both navigation mode (anchor elements) and panel mode (post-tab-panel elements) at the same time.");this.isNavigationMode=t}findActiveNavigationTab(){return this.tabs.find((t=>null!==t.querySelector('a[aria-current="page"]')))||null}async show(t){if(t===this.currentActiveTab?.name)return;const s=this.currentActiveTab,i=this.host.querySelector(`post-tab-item[name=${t}]`);this.activateTab(i),this.showing&&(this.showing.finish(),this.showing=null),!s||this.showing||this.hiding||this.hidePanel(s.name),this.hiding&&await this.hiding.finished,this.showSelectedPanel(),this.showing&&await this.showing.finished,this.isLoaded&&this.postChange.emit(this.currentActiveTab.name)}moveMisplacedTabs(){this.tabs&&this.tabs.forEach((t=>{t.getAttribute("slot")&&t.removeAttribute("slot")}))}moveMisplacedPanels(){this.panels&&this.panels.forEach((t=>{"panels"!==t.getAttribute("slot")&&t.setAttribute("slot","panels")}))}enableTabs(){this.tabs&&(this.tabs.forEach((async t=>{if(await function(t){return"function"==typeof t.componentOnReady?t.componentOnReady():new Promise((s=>function(t){return"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t)}((()=>{s(t)}))))}(t),this.isNavigationMode)return;if(t.getAttribute("aria-controls"))return;const s=this.getPanel(t.name);s&&(t.setAttribute("aria-controls",s.id),s.setAttribute("aria-labelledby",t.id)),t.addEventListener("click",(()=>{this.show(t.name)})),t.addEventListener("keydown",(s=>{"Enter"!==s.key&&" "!==s.key||(s.preventDefault(),this.show(t.name))})),t.addEventListener("keydown",(s=>{"ArrowRight"!==s.key&&"ArrowLeft"!==s.key||this.navigateTabs(t,s.key)}))})),this.currentActiveTab&&!this.currentActiveTab.isConnected&&this.show(this.tabs[0]?.name))}activateTab(t){this.currentActiveTab&&(this.currentActiveTab.classList.remove("active"),this.isNavigationMode||(this.currentActiveTab.setAttribute("aria-selected","false"),this.currentActiveTab.setAttribute("tabindex","-1"))),t.classList.add("active"),this.isNavigationMode||(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0")),this.currentActiveTab=t}hidePanel(t){const s=this.getPanel(t);s&&(this.hiding=h(s,"out"),this.hiding.onfinish=()=>{s.style.display="none",this.hiding=null})}showSelectedPanel(){const t=this.getPanel(this.currentActiveTab.name);t&&(t.style.display="block",this.isLoaded&&(this.showing=h(t,"in"),this.showing.onfinish=()=>{this.showing=null}))}getPanel(t){return this.host.querySelector(`post-tab-panel[for=${t}]`)}navigateTabs(t,s){const i=Array.from(this.tabs).indexOf(t);let e;e="ArrowRight"===s?this.tabs[i+1]||this.tabs[0]:this.tabs[i-1]||this.tabs[this.tabs.length-1],e&&(e.focus(),this.show(e.name))}render(){return a(n,{key:"89edc2a79734ee9cd60c9db0f01e2f05f2849071","data-version":o},a("div",{key:"d85aa2320cef490831bf59117b54dc7c4edd9d65",class:"tabs-wrapper",part:"post-tabs"},a(this.isNavigationMode?"nav":"div",{key:"e4aa70db5e2d0f3391d8ebfaab6374c1966d6678",class:"tabs",role:this.isNavigationMode?void 0:"tablist","aria-label":this.isNavigationMode?this.label:void 0},a("slot",{key:"7ab6f1e7bbe24ef642d5917b810b62e362ae2dc1",onSlotchange:()=>{this.moveMisplacedTabs(),this.enableTabs()}}))),!this.isNavigationMode&&a("div",{key:"354eafcea40f6aa9bbb206a93bc2155eac725bb4",class:"tab-content",part:"post-tabs-content"},a("slot",{key:"a133b48cea08eade14a954933062380edf112523",name:"panels",onSlotchange:()=>this.moveMisplacedPanels()})))}get host(){return this}static get watchers(){return{label:[{validateLabel:0}]}}static get style(){return'.tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(0,0,0,.02)}.tabs-wrapper::after{content:"";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;margin-block:0;padding-inline-start:0;list-style:none}.tabs::after{content:"";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}:host{display:block}:host([full-width=true]) .tabs-wrapper{margin-inline:calc(-1*var(--post-container-offset))}:host([full-width=true]) .tabs-wrapper .tabs{padding-inline:var(--post-container-offset)}'}},[257,"post-tabs",{activeTab:[1,"active-tab"],fullWidth:[516,"full-width"],label:[513],isNavigationMode:[32],show:[64]},void 0,{label:[{validateLabel:0}]}]);function c(){"undefined"!=typeof customElements&&["post-tabs"].forEach((s=>{"post-tabs"===s&&(customElements.get(t(s))||customElements.define(t(s),l))}))}c();const d=l,b=c;export{d as PostTabs,b as defineCustomElement}
@@ -1,57 +1 @@
1
- import { p as proxyCustomElement, H, h, a as Host } from './index.js';
2
- import { v as version } from './p-BhxZzOEC.js';
3
-
4
- const postTogglebuttonCss = ":host{cursor:pointer;outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host(:focus-visible){outline-color:Highlight !important}}:host([aria-pressed=true]) ::slotted([data-showwhen=untoggled]){display:none}:host([aria-pressed=false]) ::slotted([data-showwhen=toggled]){display:none}";
5
-
6
- const PostTogglebutton$1 = /*@__PURE__*/ proxyCustomElement(class PostTogglebutton extends H {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- /**
12
- * If `true`, the button is in the "on" state, otherwise it is in the "off" state.
13
- */
14
- this.toggled = false;
15
- this.handleClick = () => {
16
- this.toggled = !this.toggled;
17
- };
18
- this.handleKeydown = (event) => {
19
- // perform a click when enter or spaced are pressed to mimic the button behavior
20
- if (event.key === 'Enter' || event.key === ' ') {
21
- event.preventDefault(); // prevents the page from scrolling when space is pressed
22
- this.host.click();
23
- }
24
- };
25
- }
26
- componentWillLoad() {
27
- // add event listener to not override listener that might be set on the host
28
- this.host.addEventListener('click', () => this.handleClick());
29
- this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
30
- }
31
- render() {
32
- return (h(Host, { key: 'ecd5772b09be8842e5c6fc3bf34932b27d90c533', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '3bb32b33155e71ced9375afb5a26d1d4e63a83c8' })));
33
- }
34
- get host() { return this; }
35
- static get style() { return postTogglebuttonCss; }
36
- }, [1, "post-togglebutton", {
37
- "toggled": [1028]
38
- }]);
39
- function defineCustomElement$1() {
40
- if (typeof customElements === "undefined") {
41
- return;
42
- }
43
- const components = ["post-togglebutton"];
44
- components.forEach(tagName => { switch (tagName) {
45
- case "post-togglebutton":
46
- if (!customElements.get(tagName)) {
47
- customElements.define(tagName, PostTogglebutton$1);
48
- }
49
- break;
50
- } });
51
- }
52
- defineCustomElement$1();
53
-
54
- const PostTogglebutton = PostTogglebutton$1;
55
- const defineCustomElement = defineCustomElement$1;
56
-
57
- export { PostTogglebutton, defineCustomElement };
1
+ import{P as s,d as o}from"./p-BllOMLDs.js";const p=s,r=o;export{p as PostTogglebutton,r as defineCustomElement}
@@ -1,207 +1 @@
1
- import { p as proxyCustomElement, H, h, a as Host } from './index.js';
2
- import { I as IS_BROWSER } from './p-CJ80BZ06.js';
3
- import { e as checkEmptyOrType } from './p-CYkf_7Y5.js';
4
- import { v as version } from './p-BhxZzOEC.js';
5
- import { i as isFocusable } from './p-HygIVKXC.js';
6
-
7
- const postTooltipTriggerCss = "post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}";
8
-
9
- const TRIGGER_EVENTS = ['pointerenter', 'pointerleave', 'focusin', 'focusout', 'long-press'];
10
- if (IS_BROWSER) {
11
- (async () => {
12
- await import('./p-C_2k3G1c.js');
13
- })();
14
- }
15
- const PostTooltipTrigger$1 = /*@__PURE__*/ proxyCustomElement(class PostTooltipTrigger extends H {
16
- constructor() {
17
- super();
18
- this.__registerHost();
19
- this.__attachShadow();
20
- /**
21
- * Delay (in milliseconds) before the tooltip is shown.
22
- */
23
- this.delay = 0;
24
- /**
25
- * Reference to the element inside the host that will act as the trigger.
26
- */
27
- this.trigger = null;
28
- /**
29
- * Timeout ID for the delay.
30
- */
31
- this.delayTimeout = null;
32
- this.boundTriggerHandler = this.handleTriggerEvent.bind(this);
33
- this.boundTooltipHandler = this.handleTooltipEvent.bind(this);
34
- }
35
- validateControlFor() {
36
- checkEmptyOrType(this, 'for', 'string');
37
- }
38
- get tooltip() {
39
- if (!IS_BROWSER)
40
- return null;
41
- const ref = document.getElementById(this.for);
42
- return ref?.localName === 'post-tooltip' ? ref : null;
43
- }
44
- componentDidLoad() {
45
- this.setupTrigger();
46
- this.attachListeners();
47
- this.attachTooltipListeners();
48
- }
49
- disconnectedCallback() {
50
- this.removeListeners();
51
- this.removeTooltipListeners();
52
- this.cleanupTrigger();
53
- if (this.delayTimeout) {
54
- clearTimeout(this.delayTimeout);
55
- this.delayTimeout = null;
56
- }
57
- }
58
- handleSlotChange() {
59
- this.cleanupTrigger();
60
- this.setupTrigger();
61
- }
62
- cleanupTrigger() {
63
- if (this.trigger) {
64
- const describedBy = this.trigger.getAttribute('aria-describedby') || '';
65
- if (describedBy.includes(this.for)) {
66
- const newDescribedBy = describedBy
67
- .split(' ')
68
- .filter(id => id !== this.for)
69
- .join(' ');
70
- if (newDescribedBy) {
71
- this.trigger.setAttribute('aria-describedby', newDescribedBy);
72
- }
73
- else {
74
- this.trigger.removeAttribute('aria-describedby');
75
- }
76
- }
77
- this.trigger = null;
78
- }
79
- }
80
- setupTrigger() {
81
- this.trigger = this.host.querySelector('*');
82
- if (this.trigger) {
83
- if (!isFocusable(this.trigger)) {
84
- this.trigger.setAttribute('tabindex', '0');
85
- }
86
- const describedBy = this.trigger.getAttribute('aria-describedby') || '';
87
- if (!describedBy.includes(this.for)) {
88
- this.trigger.setAttribute('aria-describedby', `${describedBy} ${this.for}`.trim());
89
- }
90
- }
91
- else {
92
- console.warn('No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.');
93
- }
94
- }
95
- attachListeners() {
96
- TRIGGER_EVENTS.forEach(event => {
97
- this.host.addEventListener(event, this.boundTriggerHandler);
98
- });
99
- }
100
- removeListeners() {
101
- TRIGGER_EVENTS.forEach(event => {
102
- this.host.removeEventListener(event, this.boundTriggerHandler);
103
- });
104
- }
105
- attachTooltipListeners() {
106
- if (this.tooltip) {
107
- this.tooltip.addEventListener('pointerenter', this.boundTooltipHandler);
108
- this.tooltip.addEventListener('pointerleave', this.boundTooltipHandler);
109
- }
110
- }
111
- removeTooltipListeners() {
112
- if (this.tooltip) {
113
- this.tooltip.removeEventListener('pointerenter', this.boundTooltipHandler);
114
- this.tooltip.removeEventListener('pointerleave', this.boundTooltipHandler);
115
- }
116
- }
117
- handleTriggerEvent(event) {
118
- switch (event.type) {
119
- case 'pointerenter':
120
- case 'focusin':
121
- case 'long-press':
122
- this.handleEnter();
123
- break;
124
- case 'pointerleave':
125
- case 'focusout':
126
- this.handleLeave(event);
127
- break;
128
- }
129
- }
130
- handleTooltipEvent(event) {
131
- switch (event.type) {
132
- case 'pointerenter':
133
- this.handleEnter();
134
- break;
135
- case 'pointerleave':
136
- this.handleLeave(event);
137
- break;
138
- }
139
- }
140
- handleEnter() {
141
- if (this.delayTimeout) {
142
- clearTimeout(this.delayTimeout);
143
- this.delayTimeout = null;
144
- }
145
- this.interestHandler();
146
- }
147
- handleLeave(event) {
148
- const newTarget = event.relatedTarget;
149
- if ((this.tooltip && newTarget && this.tooltip.contains(newTarget)) ||
150
- newTarget === this.trigger) {
151
- return;
152
- }
153
- this.interestLostHandler();
154
- }
155
- interestHandler() {
156
- if (this.trigger) {
157
- if (this.delay > 0) {
158
- this.delayTimeout = window.setTimeout(() => {
159
- this.tooltip?.show(this.trigger);
160
- this.delayTimeout = null;
161
- }, this.delay);
162
- }
163
- else {
164
- this.tooltip?.show(this.trigger);
165
- }
166
- }
167
- }
168
- interestLostHandler() {
169
- if (this.delayTimeout) {
170
- clearTimeout(this.delayTimeout);
171
- this.delayTimeout = null;
172
- }
173
- this.tooltip?.hide();
174
- }
175
- render() {
176
- return (h(Host, { key: '48246523aabaf1851e05d0273346d3e26e7ad866', "data-version": version }, h("slot", { key: '0442aeadddd59642c317b6f10c93008adf3e6585', onSlotchange: () => this.handleSlotChange() })));
177
- }
178
- get host() { return this; }
179
- static get watchers() { return {
180
- "for": ["validateControlFor"]
181
- }; }
182
- static get style() { return postTooltipTriggerCss; }
183
- }, [1, "post-tooltip-trigger", {
184
- "for": [513],
185
- "delay": [2]
186
- }, undefined, {
187
- "for": ["validateControlFor"]
188
- }]);
189
- function defineCustomElement$1() {
190
- if (typeof customElements === "undefined") {
191
- return;
192
- }
193
- const components = ["post-tooltip-trigger"];
194
- components.forEach(tagName => { switch (tagName) {
195
- case "post-tooltip-trigger":
196
- if (!customElements.get(tagName)) {
197
- customElements.define(tagName, PostTooltipTrigger$1);
198
- }
199
- break;
200
- } });
201
- }
202
- defineCustomElement$1();
203
-
204
- const PostTooltipTrigger = PostTooltipTrigger$1;
205
- const defineCustomElement = defineCustomElement$1;
206
-
207
- export { PostTooltipTrigger, defineCustomElement };
1
+ import{t,p as s,H as i,h as e,a as o}from"./index.js";import{I as r}from"./p-FxUVQ4Tx.js";import{e as n}from"./p-B8YiQ3mz.js";import{v as h}from"./p-CZvbetqX.js";import{i as a}from"./p-HygIVKXC.js";const l=["pointerenter","pointerleave","focusin","focusout","long-press"];r&&(async()=>{await import("./p-C_2k3G1c.js")})();const c=s(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.delay=0,this.trigger=null,this.delayTimeout=null,this.boundTriggerHandler=this.handleTriggerEvent.bind(this),this.boundTooltipHandler=this.handleTooltipEvent.bind(this)}validateControlFor(){n(this,"for","string")}get tooltip(){if(!r)return null;const t=document.getElementById(this.for);return"post-tooltip"===t?.localName?t:null}componentDidLoad(){this.setupTrigger(),this.attachListeners(),this.attachTooltipListeners()}disconnectedCallback(){this.removeListeners(),this.removeTooltipListeners(),this.cleanupTrigger(),this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null)}handleSlotChange(){this.cleanupTrigger(),this.setupTrigger()}cleanupTrigger(){if(this.trigger){const t=this.trigger.getAttribute("aria-describedby")||"";if(t.includes(this.for)){const s=t.split(" ").filter((t=>t!==this.for)).join(" ");s?this.trigger.setAttribute("aria-describedby",s):this.trigger.removeAttribute("aria-describedby")}this.trigger=null}}setupTrigger(){if(this.trigger=this.host.querySelector("*"),this.trigger){a(this.trigger)||this.trigger.setAttribute("tabindex","0");const t=this.trigger.getAttribute("aria-describedby")||"";t.includes(this.for)||this.trigger.setAttribute("aria-describedby",`${t} ${this.for}`.trim())}else console.warn("No content found in the post-tooltip-trigger slot. Please insert a focusable element or content that can receive focus.")}attachListeners(){l.forEach((t=>{this.host.addEventListener(t,this.boundTriggerHandler)}))}removeListeners(){l.forEach((t=>{this.host.removeEventListener(t,this.boundTriggerHandler)}))}attachTooltipListeners(){this.tooltip&&(this.tooltip.addEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.addEventListener("pointerleave",this.boundTooltipHandler))}removeTooltipListeners(){this.tooltip&&(this.tooltip.removeEventListener("pointerenter",this.boundTooltipHandler),this.tooltip.removeEventListener("pointerleave",this.boundTooltipHandler))}handleTriggerEvent(t){switch(t.type){case"pointerenter":case"focusin":case"long-press":this.handleEnter();break;case"pointerleave":case"focusout":this.handleLeave(t)}}handleTooltipEvent(t){switch(t.type){case"pointerenter":this.handleEnter();break;case"pointerleave":this.handleLeave(t)}}handleEnter(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.interestHandler()}handleLeave(t){const s=t.relatedTarget;this.tooltip&&s&&this.tooltip.contains(s)||s===this.trigger||this.interestLostHandler()}interestHandler(){this.trigger&&(this.delay>0?this.delayTimeout=window.setTimeout((()=>{this.tooltip?.show(this.trigger),this.delayTimeout=null}),this.delay):this.tooltip?.show(this.trigger))}interestLostHandler(){this.delayTimeout&&(clearTimeout(this.delayTimeout),this.delayTimeout=null),this.tooltip?.hide()}render(){return e(o,{key:"4f6165e23284794b677748c495401ed7c110d134","data-version":h},e("slot",{key:"87a8d412ed0e3fb145853aebb9426dfe13677853",onSlotchange:()=>this.handleSlotChange()}))}get host(){return this}static get watchers(){return{for:[{validateControlFor:0}]}}static get style(){return"post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}"}},[257,"post-tooltip-trigger",{for:[513],delay:[2]},void 0,{for:[{validateControlFor:0}]}]);function p(){"undefined"!=typeof customElements&&["post-tooltip-trigger"].forEach((s=>{"post-tooltip-trigger"===s&&(customElements.get(t(s))||customElements.define(t(s),c))}))}p();const d=c,u=p;export{d as PostTooltipTrigger,u as defineCustomElement}
@@ -1,115 +1 @@
1
- import { p as proxyCustomElement, H, h, a as Host } from './index.js';
2
- import { v as version } from './p-BhxZzOEC.js';
3
- import { d as checkEmptyOrOneOf } from './p-CYkf_7Y5.js';
4
- import './p-CJ80BZ06.js';
5
- import { d as defineCustomElement$2, a as PLACEMENT_TYPES } from './p-DVGEExot.js';
6
-
7
- const postTooltipCss = ":host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:\"\";inset:-13px;z-index:-1}post-popovercontainer>div{color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:var(--post-tooltip-max-width, 280px);width:inherit;min-height:32px;word-wrap:break-word;white-space:normal}";
8
-
9
- const PostTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H {
10
- constructor() {
11
- super();
12
- this.__registerHost();
13
- this.__attachShadow();
14
- /**
15
- * Defines the position of the tooltip relative to its trigger.
16
- * Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
17
- * For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
18
- */
19
- this.placement = 'top';
20
- /**
21
- * Whether or not to display a little pointer arrow
22
- */
23
- this.arrow = false;
24
- /**
25
- * Indicates the open state of the tooltip
26
- */
27
- this.open = false;
28
- }
29
- validatePlacement() {
30
- checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
31
- }
32
- componentWillLoad() {
33
- this.validatePlacement();
34
- }
35
- componentDidLoad() {
36
- if (!this.host.id) {
37
- console.error(
38
- /*prettier-ignore*/
39
- 'No id set: <post-tooltip> must have an id, linking it to it\'s target element with a <post-tooltip-trigger> element.');
40
- }
41
- }
42
- /**
43
- * Programmatically display the tooltip.
44
- * @param target An element where the tooltip should be shown
45
- */
46
- async show(target) {
47
- if (this.open)
48
- return;
49
- this.popoverRef.show(target);
50
- }
51
- /**
52
- * Programmatically hide this tooltip.
53
- */
54
- async hide() {
55
- this.popoverRef.hide();
56
- }
57
- /**
58
- * Toggle tooltip display.
59
- * @param target An element where the tooltip should be shown
60
- * @param [force] Pass true to always show or false to always hide
61
- */
62
- async toggle(target, force) {
63
- this.popoverRef.toggle(target, force);
64
- }
65
- /**
66
- * Set the open state based on the toggle event.
67
- * @param e Popovercontainer toggle event
68
- */
69
- handleToggle(e) {
70
- this.open = e.detail.isOpen;
71
- }
72
- render() {
73
- const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
74
- return (h(Host, { key: 'ebc25bd8a9615a13be82d58f246b5a5d42113cf2', "data-version": version }, h("post-popovercontainer", { key: 'dba7a96c1f354752475a6f1d9116b0097dddf320', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, h("slot", { key: '537370b88912d323a72ee074767b4cf2b4bc1b57' }))));
75
- }
76
- get host() { return this; }
77
- static get watchers() { return {
78
- "placement": ["validatePlacement"]
79
- }; }
80
- static get style() { return postTooltipCss; }
81
- }, [1, "post-tooltip", {
82
- "placement": [1],
83
- "arrow": [4],
84
- "animation": [1],
85
- "open": [1540],
86
- "show": [64],
87
- "hide": [64],
88
- "toggle": [64]
89
- }, undefined, {
90
- "placement": ["validatePlacement"]
91
- }]);
92
- function defineCustomElement$1() {
93
- if (typeof customElements === "undefined") {
94
- return;
95
- }
96
- const components = ["post-tooltip", "post-popovercontainer"];
97
- components.forEach(tagName => { switch (tagName) {
98
- case "post-tooltip":
99
- if (!customElements.get(tagName)) {
100
- customElements.define(tagName, PostTooltip$1);
101
- }
102
- break;
103
- case "post-popovercontainer":
104
- if (!customElements.get(tagName)) {
105
- defineCustomElement$2();
106
- }
107
- break;
108
- } });
109
- }
110
- defineCustomElement$1();
111
-
112
- const PostTooltip = PostTooltip$1;
113
- const defineCustomElement = defineCustomElement$1;
114
-
115
- export { PostTooltip, defineCustomElement };
1
+ import{t,p as e,H as o,h as s,a as i}from"./index.js";import{v as a}from"./p-CZvbetqX.js";import{d as n}from"./p-B8YiQ3mz.js";import{d as r,a as p}from"./p-D9DDtvFM.js";const c=e(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.placement="top",this.arrow=!1,this.open=!1}validatePlacement(){n(this,"placement",p)}componentWillLoad(){this.validatePlacement()}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(t){this.open||await this.popoverRef.show(t)}async hide(){this.popoverRef.hide()}async toggle(t,e){this.popoverRef.toggle(t,e)}handleBeforeToggle(t){this.open=t.detail.willOpen}render(){return s(i,{key:"5de53c10c2556ddb974a65ba06e27ccc99311762","data-version":a},s("post-popovercontainer",{key:"ae3a26fc69d983884eb5aee2b024e74d91983c73",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",role:"tooltip",arrow:this.arrow,placement:this.placement,onPostBeforeToggle:t=>this.handleBeforeToggle(t),ref:t=>this.popoverRef=t},s("slot",{key:"1fd537504554e094894f8549de5c29c515322866"})))}get host(){return this}static get watchers(){return{placement:[{validatePlacement:0}]}}static get style(){return':host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:var(--post-tooltip-max-width, 280px);width:inherit;min-height:32px;word-wrap:break-word;white-space:normal}'}},[257,"post-tooltip",{placement:[1],arrow:[4],open:[1540],show:[64],hide:[64],toggle:[64]},void 0,{placement:[{validatePlacement:0}]}]);function l(){"undefined"!=typeof customElements&&["post-tooltip","post-popovercontainer"].forEach((e=>{switch(e){case"post-tooltip":customElements.get(t(e))||customElements.define(t(e),c);break;case"post-popovercontainer":customElements.get(t(e))||r()}}))}l();const d=c,h=l;export{d as PostTooltip,h as defineCustomElement}
@@ -1,3 +1 @@
1
- const SWITCH_VARIANTS = ['list', 'menu'];
2
-
3
- export { SWITCH_VARIANTS as S };
1
+ const s=["list","menu"];export{s as S}
@@ -0,0 +1 @@
1
+ const e={linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",headerEase:{x1:.8,y1:.2,x2:.8,y2:.7}};function n(n){const s="string"==typeof n?e[n]??n:n;if("string"==typeof s)return s;const{x1:t,y1:a,x2:i,y2:r}=s;return`cubic-bezier(${t}, ${a}, ${i}, ${r})`}export{n as r}
package/dist/docs.d.ts CHANGED
@@ -38,6 +38,17 @@ interface ComponentCompilerTypeReference {
38
38
  * An ID for this type which is unique within a Stencil project.
39
39
  */
40
40
  id: string;
41
+ /**
42
+ * Whether this type was imported as a default import (e.g., `import MyEnum from './my-enum'`)
43
+ * vs a named import (e.g., `import { MyType } from './my-type'`)
44
+ */
45
+ isDefault?: boolean;
46
+ /**
47
+ * The name used in the import statement (before any user-defined alias).
48
+ * For `import { XAxisOption as moo }`, this would be "XAxisOption".
49
+ * This is the name exported by the source module.
50
+ */
51
+ referenceLocation?: string;
41
52
  }
42
53
  interface ComponentCompilerReferencedType {
43
54
  /**