@oiz/stzh-components 2.11.0-beta1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (671) hide show
  1. package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-909813e1.js} +2 -2
  2. package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-909813e1.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
  7. package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
  8. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
  11. package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
  13. package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
  14. package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
  15. package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
  16. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
  19. package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
  20. package/dist/cjs/stzh-components.cjs.js +2 -2
  21. package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
  22. package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
  23. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
  25. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  29. package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
  30. package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
  31. package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
  32. package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
  33. package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
  34. package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
  35. package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-header.cjs.entry.js +3 -6
  37. package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
  38. package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
  39. package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
  40. package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
  41. package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
  42. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
  45. package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
  46. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
  51. package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
  52. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-print.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
  55. package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
  56. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-row.cjs.entry.js +4 -4
  58. package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
  59. package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-space.cjs.entry.js +5 -5
  62. package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
  63. package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
  64. package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
  65. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  67. package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
  68. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
  75. package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
  76. package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
  77. package/dist/cjs/utils-01c0bbdd.js.map +1 -0
  78. package/dist/collection/assets/i18n/de.json +19 -10
  79. package/dist/collection/assets/i18n/en.json +19 -10
  80. package/dist/collection/collection-manifest.json +2 -0
  81. package/dist/collection/components/stzh-button/stzh-button.css +4 -0
  82. package/dist/collection/components/stzh-button/stzh-button.js +3 -3
  83. package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
  84. package/dist/collection/components/stzh-card/stzh-card.css +1 -0
  85. package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
  86. package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
  87. package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
  88. package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
  89. package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
  90. package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
  91. package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
  92. package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
  93. package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
  94. package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
  95. package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
  96. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
  97. package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
  98. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
  99. package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
  100. package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
  101. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
  102. package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
  103. package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
  104. package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
  105. package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
  106. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
  107. package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
  108. package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
  109. package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
  110. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
  111. package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
  112. package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
  113. package/dist/collection/components/stzh-header/stzh-header.css +19 -1
  114. package/dist/collection/components/stzh-header/stzh-header.js +1 -4
  115. package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
  116. package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
  117. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  118. package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
  119. package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
  120. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
  121. package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
  122. package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
  123. package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
  124. package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
  125. package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
  126. package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
  127. package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
  128. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
  129. package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
  130. package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
  131. package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
  132. package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
  133. package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
  134. package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
  135. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
  136. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
  137. package/dist/collection/components/stzh-row/stzh-row.js +9 -13
  138. package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
  139. package/dist/collection/components/stzh-show/stzh-show.js +5 -5
  140. package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
  141. package/dist/collection/components/stzh-space/stzh-space.js +13 -18
  142. package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
  143. package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
  144. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
  145. package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
  146. package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
  147. package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
  148. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
  149. package/dist/collection/components/stzh-text/stzh-text.css +19 -0
  150. package/dist/collection/components/stzh-text/stzh-text.js +1 -1
  151. package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
  152. package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
  153. package/dist/collection/index.js.map +1 -1
  154. package/dist/collection/patterns/media/media.e2e.js +3 -1
  155. package/dist/collection/patterns/media/media.e2e.js.map +1 -1
  156. package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
  157. package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
  158. package/dist/collection/utils/utils.js +22 -0
  159. package/dist/collection/utils/utils.js.map +1 -1
  160. package/dist/components/index.js +1 -1
  161. package/dist/components/index2.js.map +1 -1
  162. package/dist/components/stzh-button2.js +2 -2
  163. package/dist/components/stzh-button2.js.map +1 -1
  164. package/dist/components/stzh-card-list2.js +1 -1
  165. package/dist/components/stzh-card-list2.js.map +1 -1
  166. package/dist/components/stzh-card2.js +1 -1
  167. package/dist/components/stzh-card2.js.map +1 -1
  168. package/dist/components/stzh-carousel2.js +3 -2
  169. package/dist/components/stzh-carousel2.js.map +1 -1
  170. package/dist/components/stzh-cell.js +9 -9
  171. package/dist/components/stzh-cell.js.map +1 -1
  172. package/dist/components/stzh-clamp2.js +8 -1
  173. package/dist/components/stzh-clamp2.js.map +1 -1
  174. package/dist/components/stzh-contact.js +7 -3
  175. package/dist/components/stzh-contact.js.map +1 -1
  176. package/dist/components/stzh-cspace.js +1 -1
  177. package/dist/components/stzh-cspace.js.map +1 -1
  178. package/dist/components/stzh-figure2.js +1 -1
  179. package/dist/components/stzh-figure2.js.map +1 -1
  180. package/dist/components/stzh-footer.js +21 -5
  181. package/dist/components/stzh-footer.js.map +1 -1
  182. package/dist/components/stzh-gallery.d.ts +11 -0
  183. package/dist/components/stzh-gallery.js +9808 -0
  184. package/dist/components/stzh-gallery.js.map +1 -0
  185. package/dist/components/stzh-header.js +2 -5
  186. package/dist/components/stzh-header.js.map +1 -1
  187. package/dist/components/stzh-hspace.js +1 -57
  188. package/dist/components/stzh-hspace.js.map +1 -1
  189. package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
  190. package/dist/components/stzh-hspace2.js.map +1 -0
  191. package/dist/components/stzh-imagecomparison.js +0 -4
  192. package/dist/components/stzh-imagecomparison.js.map +1 -1
  193. package/dist/components/stzh-logo.d.ts +11 -0
  194. package/dist/components/stzh-logo.js +687 -0
  195. package/dist/components/stzh-logo.js.map +1 -0
  196. package/dist/components/stzh-panorama.js +4 -2
  197. package/dist/components/stzh-panorama.js.map +1 -1
  198. package/dist/components/stzh-progressbar-item2.js +2 -1
  199. package/dist/components/stzh-progressbar-item2.js.map +1 -1
  200. package/dist/components/stzh-row.js +9 -9
  201. package/dist/components/stzh-row.js.map +1 -1
  202. package/dist/components/stzh-show.js +1 -59
  203. package/dist/components/stzh-show.js.map +1 -1
  204. package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
  205. package/dist/components/stzh-show2.js.map +1 -0
  206. package/dist/components/stzh-space.js +13 -13
  207. package/dist/components/stzh-space.js.map +1 -1
  208. package/dist/components/stzh-sticky.js +171 -17
  209. package/dist/components/stzh-sticky.js.map +1 -1
  210. package/dist/components/stzh-text2.js +1 -1
  211. package/dist/components/stzh-text2.js.map +1 -1
  212. package/dist/components/stzh-vbz-majorticker.js +1 -1
  213. package/dist/components/stzh-vspace.js +13 -13
  214. package/dist/components/stzh-vspace.js.map +1 -1
  215. package/dist/components/utils.js +23 -1
  216. package/dist/components/utils.js.map +1 -1
  217. package/dist/esm/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  218. package/dist/esm/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  219. package/dist/esm/index.js.map +1 -1
  220. package/dist/esm/loader.js +2 -2
  221. package/dist/esm/stzh-actions.entry.js +1 -1
  222. package/dist/esm/stzh-actionset_4.entry.js +3 -3
  223. package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
  224. package/dist/esm/stzh-appnav.entry.js +1 -1
  225. package/dist/esm/stzh-audio.entry.js +1 -1
  226. package/dist/esm/stzh-badge_3.entry.js +3 -3
  227. package/dist/esm/stzh-badge_3.entry.js.map +1 -1
  228. package/dist/esm/stzh-carousel.entry.js +4 -3
  229. package/dist/esm/stzh-carousel.entry.js.map +1 -1
  230. package/dist/esm/stzh-cell.entry.js +4 -4
  231. package/dist/esm/stzh-cell.entry.js.map +1 -1
  232. package/dist/esm/stzh-checkbox.entry.js +1 -1
  233. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  234. package/dist/esm/stzh-chip_2.entry.js +8 -1
  235. package/dist/esm/stzh-chip_2.entry.js.map +1 -1
  236. package/dist/esm/stzh-components.js +2 -2
  237. package/dist/esm/stzh-contact.entry.js +7 -4
  238. package/dist/esm/stzh-contact.entry.js.map +1 -1
  239. package/dist/esm/stzh-cspace.entry.js +1 -1
  240. package/dist/esm/stzh-cspace.entry.js.map +1 -1
  241. package/dist/esm/stzh-datepicker_3.entry.js +1 -1
  242. package/dist/esm/stzh-details.entry.js +1 -1
  243. package/dist/esm/stzh-dialog.entry.js +1 -1
  244. package/dist/esm/stzh-dropdown.entry.js +1 -1
  245. package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
  246. package/dist/esm/stzh-figure_2.entry.js.map +1 -0
  247. package/dist/esm/stzh-footer.entry.js +22 -6
  248. package/dist/esm/stzh-footer.entry.js.map +1 -1
  249. package/dist/esm/stzh-gallery.entry.js +9729 -0
  250. package/dist/esm/stzh-gallery.entry.js.map +1 -0
  251. package/dist/esm/stzh-ghettobox.entry.js +1 -1
  252. package/dist/esm/stzh-header.entry.js +3 -6
  253. package/dist/esm/stzh-header.entry.js.map +1 -1
  254. package/dist/esm/stzh-hspace_2.entry.js +67 -0
  255. package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
  256. package/dist/esm/stzh-imagecomparison.entry.js +0 -2
  257. package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
  258. package/dist/esm/stzh-input.entry.js +1 -1
  259. package/dist/esm/stzh-link.entry.js +1 -1
  260. package/dist/esm/stzh-logo.entry.js +667 -0
  261. package/dist/esm/stzh-logo.entry.js.map +1 -0
  262. package/dist/esm/stzh-menu_2.entry.js +1 -1
  263. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  264. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  265. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  266. package/dist/esm/stzh-panorama.entry.js +3 -2
  267. package/dist/esm/stzh-panorama.entry.js.map +1 -1
  268. package/dist/esm/stzh-popover.entry.js +1 -1
  269. package/dist/esm/stzh-print.entry.js +1 -1
  270. package/dist/esm/stzh-progressbar-item.entry.js +2 -1
  271. package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
  272. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  273. package/dist/esm/stzh-row.entry.js +4 -4
  274. package/dist/esm/stzh-row.entry.js.map +1 -1
  275. package/dist/esm/stzh-scrollup.entry.js +1 -1
  276. package/dist/esm/stzh-share.entry.js +1 -1
  277. package/dist/esm/stzh-space.entry.js +5 -5
  278. package/dist/esm/stzh-space.entry.js.map +1 -1
  279. package/dist/esm/stzh-sticky.entry.js +166 -15
  280. package/dist/esm/stzh-sticky.entry.js.map +1 -1
  281. package/dist/esm/stzh-table.entry.js +1 -1
  282. package/dist/esm/stzh-text.entry.js +1 -1
  283. package/dist/esm/stzh-text.entry.js.map +1 -1
  284. package/dist/esm/stzh-textandimage.entry.js +1 -1
  285. package/dist/esm/stzh-timeline-item.entry.js +1 -1
  286. package/dist/esm/stzh-toast.entry.js +1 -1
  287. package/dist/esm/stzh-toggle.entry.js +1 -1
  288. package/dist/esm/stzh-tooltip.entry.js +1 -1
  289. package/dist/esm/stzh-upload.entry.js +1 -1
  290. package/dist/esm/stzh-vspace.entry.js +5 -5
  291. package/dist/esm/stzh-vspace.entry.js.map +1 -1
  292. package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
  293. package/dist/esm/utils-8bb4c3c6.js.map +1 -0
  294. package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-8bdc0f78.js} +2 -2
  295. package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-8bdc0f78.js.map} +1 -1
  296. package/dist/esm-es5/index.js.map +1 -1
  297. package/dist/esm-es5/loader.js +1 -1
  298. package/dist/esm-es5/loader.js.map +1 -1
  299. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  300. package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
  301. package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
  302. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  303. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  304. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  305. package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
  306. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  307. package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
  308. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  309. package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
  310. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  311. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  312. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  313. package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
  314. package/dist/esm-es5/stzh-components.js +1 -1
  315. package/dist/esm-es5/stzh-components.js.map +1 -1
  316. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  317. package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
  318. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  319. package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
  320. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  321. package/dist/esm-es5/stzh-details.entry.js +1 -1
  322. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  323. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  324. package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
  325. package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
  326. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  327. package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
  328. package/dist/esm-es5/stzh-gallery.entry.js +10 -0
  329. package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
  330. package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
  331. package/dist/esm-es5/stzh-header.entry.js +1 -1
  332. package/dist/esm-es5/stzh-header.entry.js.map +1 -1
  333. package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
  334. package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
  335. package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
  336. package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
  337. package/dist/esm-es5/stzh-input.entry.js +1 -1
  338. package/dist/esm-es5/stzh-link.entry.js +1 -1
  339. package/dist/esm-es5/stzh-logo.entry.js +2 -0
  340. package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
  341. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  342. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  343. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  344. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  345. package/dist/esm-es5/stzh-panorama.entry.js +1 -1
  346. package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
  347. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  348. package/dist/esm-es5/stzh-print.entry.js +1 -1
  349. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  350. package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
  351. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  352. package/dist/esm-es5/stzh-row.entry.js +1 -1
  353. package/dist/esm-es5/stzh-row.entry.js.map +1 -1
  354. package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
  355. package/dist/esm-es5/stzh-share.entry.js +1 -1
  356. package/dist/esm-es5/stzh-space.entry.js +1 -1
  357. package/dist/esm-es5/stzh-space.entry.js.map +1 -1
  358. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  359. package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
  360. package/dist/esm-es5/stzh-table.entry.js +1 -1
  361. package/dist/esm-es5/stzh-text.entry.js +1 -1
  362. package/dist/esm-es5/stzh-text.entry.js.map +1 -1
  363. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  364. package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
  365. package/dist/esm-es5/stzh-toast.entry.js +1 -1
  366. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  367. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  368. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  369. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  370. package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
  371. package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
  372. package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
  373. package/dist/stzh-components/assets/i18n/de.json +19 -10
  374. package/dist/stzh-components/assets/i18n/en.json +19 -10
  375. package/dist/stzh-components/index.esm.js.map +1 -1
  376. package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
  377. package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
  378. package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
  379. package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
  380. package/dist/stzh-components/p-07819ba5.entry.js +2 -0
  381. package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
  382. package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
  383. package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
  384. package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
  385. package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
  386. package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
  387. package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
  388. package/dist/stzh-components/{p-1e7376c9.system.js → p-0c972915.system.js} +2 -2
  389. package/dist/stzh-components/{p-1e7376c9.system.js.map → p-0c972915.system.js.map} +1 -1
  390. package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
  391. package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
  392. package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
  393. package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
  394. package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
  395. package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
  396. package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
  397. package/dist/stzh-components/p-15980af0.entry.js +10 -0
  398. package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
  399. package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
  400. package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
  401. package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
  402. package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
  403. package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
  404. package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
  405. package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
  406. package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
  407. package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
  408. package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
  409. package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
  410. package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
  411. package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
  412. package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
  413. package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
  414. package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
  415. package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
  416. package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
  417. package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
  418. package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
  419. package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
  420. package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
  421. package/dist/stzh-components/p-428eacce.system.js +2 -0
  422. package/dist/stzh-components/{p-044b80d8.system.js.map → p-428eacce.system.js.map} +1 -1
  423. package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
  424. package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
  425. package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
  426. package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
  427. package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
  428. package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
  429. package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
  430. package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
  431. package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
  432. package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
  433. package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
  434. package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
  435. package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
  436. package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
  437. package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
  438. package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
  439. package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
  440. package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
  441. package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
  442. package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
  443. package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
  444. package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
  445. package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
  446. package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
  447. package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
  448. package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
  449. package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
  450. package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
  451. package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
  452. package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
  453. package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
  454. package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
  455. package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
  456. package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
  457. package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
  458. package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
  459. package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
  460. package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
  461. package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
  462. package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
  463. package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
  464. package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
  465. package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
  466. package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
  467. package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
  468. package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
  469. package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
  470. package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
  471. package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
  472. package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
  473. package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
  474. package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
  475. package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
  476. package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
  477. package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
  478. package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
  479. package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
  480. package/dist/stzh-components/p-b305ec22.entry.js +2 -0
  481. package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
  482. package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
  483. package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
  484. package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
  485. package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
  486. package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
  487. package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
  488. package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
  489. package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
  490. package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
  491. package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
  492. package/dist/stzh-components/{p-a00db16c.js → p-ca32a687.js} +2 -2
  493. package/dist/stzh-components/{p-a00db16c.js.map → p-ca32a687.js.map} +1 -1
  494. package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
  495. package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
  496. package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
  497. package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
  498. package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
  499. package/dist/stzh-components/p-cfdb06e4.js +2 -0
  500. package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
  501. package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
  502. package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
  503. package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
  504. package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
  505. package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
  506. package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
  507. package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
  508. package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
  509. package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
  510. package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
  511. package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
  512. package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
  513. package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
  514. package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
  515. package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
  516. package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
  517. package/dist/stzh-components/p-f73af272.entry.js +8 -0
  518. package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
  519. package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
  520. package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
  521. package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
  522. package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
  523. package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
  524. package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
  525. package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
  526. package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
  527. package/dist/stzh-components/stzh-components.esm.js +1 -1
  528. package/dist/stzh-components/stzh-components.esm.js.map +1 -1
  529. package/dist/stzh-components/stzh-components.js +1 -1
  530. package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
  531. package/dist/types/components.d.ts +101 -24
  532. package/dist/types/utils/utils.d.ts +5 -0
  533. package/dist/vscode-data.json +102 -13
  534. package/package.json +2 -1
  535. package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
  536. package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
  537. package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
  538. package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
  539. package/dist/cjs/stzh-show.cjs.entry.js +0 -43
  540. package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
  541. package/dist/cjs/utils-77bc0ea1.js.map +0 -1
  542. package/dist/esm/stzh-figure.entry.js +0 -36
  543. package/dist/esm/stzh-figure.entry.js.map +0 -1
  544. package/dist/esm/stzh-hspace.entry.js.map +0 -1
  545. package/dist/esm/stzh-ratio.entry.js.map +0 -1
  546. package/dist/esm/stzh-show.entry.js.map +0 -1
  547. package/dist/esm/utils-107fad0f.js.map +0 -1
  548. package/dist/esm-es5/stzh-figure.entry.js +0 -2
  549. package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
  550. package/dist/esm-es5/stzh-hspace.entry.js +0 -2
  551. package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
  552. package/dist/esm-es5/stzh-ratio.entry.js +0 -2
  553. package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
  554. package/dist/esm-es5/stzh-show.entry.js +0 -2
  555. package/dist/esm-es5/stzh-show.entry.js.map +0 -1
  556. package/dist/esm-es5/utils-107fad0f.js +0 -2
  557. package/dist/esm-es5/utils-107fad0f.js.map +0 -1
  558. package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
  559. package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
  560. package/dist/stzh-components/p-044b80d8.system.js +0 -2
  561. package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
  562. package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
  563. package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
  564. package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
  565. package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
  566. package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
  567. package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
  568. package/dist/stzh-components/p-168f0faa.entry.js +0 -8
  569. package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
  570. package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
  571. package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
  572. package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
  573. package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
  574. package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
  575. package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
  576. package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
  577. package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
  578. package/dist/stzh-components/p-41b2f989.entry.js +0 -2
  579. package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
  580. package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
  581. package/dist/stzh-components/p-53e44e89.system.js +0 -2
  582. package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
  583. package/dist/stzh-components/p-645bbb42.entry.js +0 -2
  584. package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
  585. package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
  586. package/dist/stzh-components/p-74e07267.entry.js +0 -2
  587. package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
  588. package/dist/stzh-components/p-7b044a55.entry.js +0 -2
  589. package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
  590. package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
  591. package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
  592. package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
  593. package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
  594. package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
  595. package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
  596. package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
  597. package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
  598. package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
  599. package/dist/stzh-components/p-a999bb48.entry.js +0 -2
  600. package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
  601. package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
  602. package/dist/stzh-components/p-ba8c574b.js +0 -2
  603. package/dist/stzh-components/p-ba8c574b.js.map +0 -1
  604. package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
  605. package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
  606. package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
  607. package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
  608. package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
  609. package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
  610. package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
  611. package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
  612. package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
  613. package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
  614. package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
  615. package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
  616. /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
  617. /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
  618. /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
  619. /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
  620. /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
  621. /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
  622. /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
  623. /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
  624. /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
  625. /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
  626. /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
  627. /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
  628. /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
  629. /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
  630. /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
  631. /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
  632. /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
  633. /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
  634. /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
  635. /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
  636. /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
  637. /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
  638. /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
  639. /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
  640. /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
  641. /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
  642. /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
  643. /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
  644. /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
  645. /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
  646. /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
  647. /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
  648. /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
  649. /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
  650. /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
  651. /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
  652. /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
  653. /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
  654. /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
  655. /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
  656. /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
  657. /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
  658. /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
  659. /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
  660. /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
  661. /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
  662. /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
  663. /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
  664. /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
  665. /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
  666. /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
  667. /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
  668. /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
  669. /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
  670. /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
  671. /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
@@ -55,7 +55,7 @@ export class StzhShow {
55
55
  "text": "Mikro"
56
56
  },
57
57
  "attribute": "mikro",
58
- "reflect": false
58
+ "reflect": true
59
59
  },
60
60
  "small": {
61
61
  "type": "boolean",
@@ -72,7 +72,7 @@ export class StzhShow {
72
72
  "text": "Small"
73
73
  },
74
74
  "attribute": "small",
75
- "reflect": false
75
+ "reflect": true
76
76
  },
77
77
  "medium": {
78
78
  "type": "boolean",
@@ -89,7 +89,7 @@ export class StzhShow {
89
89
  "text": "Medium"
90
90
  },
91
91
  "attribute": "medium",
92
- "reflect": false
92
+ "reflect": true
93
93
  },
94
94
  "large": {
95
95
  "type": "boolean",
@@ -106,7 +106,7 @@ export class StzhShow {
106
106
  "text": "Large"
107
107
  },
108
108
  "attribute": "large",
109
- "reflect": false
109
+ "reflect": true
110
110
  },
111
111
  "ultra": {
112
112
  "type": "boolean",
@@ -123,7 +123,7 @@ export class StzhShow {
123
123
  "text": "Ultra"
124
124
  },
125
125
  "attribute": "ultra",
126
- "reflect": false
126
+ "reflect": true
127
127
  },
128
128
  "hideFromDate": {
129
129
  "type": "string",
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-show.js","sourceRoot":"","sources":["../../../../src/components/stzh-show/stzh-show.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AAMH,MAAM,OAAO,QAAQ;;;;;;;;;EAqBnB,mBAAmB,CAAC,QAAuB;IACzC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAChC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;KAC7C;SAAM;MACL,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC;KAC/B;EACH,CAAC;EAID,iBAAiB;IACf,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;EAC9C,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,MAAM,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;MAC5E,eAAa,CACR,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch\n} from \"@stencil/core\";\n\nimport { parseISODate } from \"../../utils/date-utils\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-show\",\n styleUrl: \"stzh-show.scss\",\n shadow: true\n})\nexport class StzhShow {\n /** Mikro */\n @Prop() mikro: boolean;\n\n /** Small */\n @Prop() small: boolean;\n\n /** Medium */\n @Prop() medium: boolean;\n\n /** Large */\n @Prop() large: boolean;\n\n /** Ultra */\n @Prop() ultra: boolean;\n\n /** Hide from date */\n @Prop() hideFromDate: Date | string;\n private _hideFromDate: Date;\n\n @Watch(\"hideFromDate\")\n hideFromDateWatcher(newValue: Date | string) {\n if (typeof newValue === \"string\") {\n this._hideFromDate = parseISODate(newValue);\n } else {\n this._hideFromDate = newValue;\n }\n }\n\n @Element() element: HTMLStzhShowElement;\n\n componentWillLoad() {\n this.hideFromDateWatcher(this.hideFromDate);\n }\n\n render() {\n return (\n <Host hidden={this._hideFromDate && Date.now() >= this._hideFromDate.getTime()}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-show.js","sourceRoot":"","sources":["../../../../src/components/stzh-show/stzh-show.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;GAEG;AAMH,MAAM,OAAO,QAAQ;;;;;;;;;EAqBnB,mBAAmB,CAAC,QAAuB;IACzC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;MAChC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;KAC7C;SAAM;MACL,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC;KAC/B;EACH,CAAC;EAID,iBAAiB;IACf,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;EAC9C,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI,IAAC,MAAM,EAAE,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;MAC5E,eAAa,CACR,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Watch\n} from \"@stencil/core\";\n\nimport { parseISODate } from \"../../utils/date-utils\";\n\n/**\n * @slot - Slot for any content\n */\n@Component({\n tag: \"stzh-show\",\n styleUrl: \"stzh-show.scss\",\n shadow: true\n})\nexport class StzhShow {\n /** Mikro */\n @Prop({ reflect: true }) mikro: boolean;\n\n /** Small */\n @Prop({ reflect: true }) small: boolean;\n\n /** Medium */\n @Prop({ reflect: true }) medium: boolean;\n\n /** Large */\n @Prop({ reflect: true }) large: boolean;\n\n /** Ultra */\n @Prop({ reflect: true }) ultra: boolean;\n\n /** Hide from date */\n @Prop() hideFromDate: Date | string;\n private _hideFromDate: Date;\n\n @Watch(\"hideFromDate\")\n hideFromDateWatcher(newValue: Date | string) {\n if (typeof newValue === \"string\") {\n this._hideFromDate = parseISODate(newValue);\n } else {\n this._hideFromDate = newValue;\n }\n }\n\n @Element() element: HTMLStzhShowElement;\n\n componentWillLoad() {\n this.hideFromDateWatcher(this.hideFromDate);\n }\n\n render() {\n return (\n <Host hidden={this._hideFromDate && Date.now() >= this._hideFromDate.getTime()}>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -5,11 +5,11 @@ import { Host, h, } from "@stencil/core";
5
5
  export class StzhSpace {
6
6
  constructor() {
7
7
  this.curve = "none";
8
- this.size = "inherit";
9
- this.sizeSmall = "inherit";
10
- this.sizeMedium = "inherit";
11
- this.sizeLarge = "inherit";
12
- this.sizeUltra = "inherit";
8
+ this.size = undefined;
9
+ this.sizeSmall = undefined;
10
+ this.sizeMedium = undefined;
11
+ this.sizeLarge = undefined;
12
+ this.sizeUltra = undefined;
13
13
  this.justify = "start";
14
14
  this.items = "start";
15
15
  this.around = false;
@@ -58,7 +58,7 @@ export class StzhSpace {
58
58
  "text": "Type of curve (see [Spacings docs page](/docs/tokens-spacings--docs#curves) for more info)."
59
59
  },
60
60
  "attribute": "curve",
61
- "reflect": false,
61
+ "reflect": true,
62
62
  "defaultValue": "\"none\""
63
63
  },
64
64
  "size": {
@@ -82,8 +82,7 @@ export class StzhSpace {
82
82
  "text": "Type of size (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info)."
83
83
  },
84
84
  "attribute": "size",
85
- "reflect": false,
86
- "defaultValue": "\"inherit\""
85
+ "reflect": true
87
86
  },
88
87
  "sizeSmall": {
89
88
  "type": "string",
@@ -106,8 +105,7 @@ export class StzhSpace {
106
105
  "text": "Type of size above small breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info)."
107
106
  },
108
107
  "attribute": "size-small",
109
- "reflect": false,
110
- "defaultValue": "\"inherit\""
108
+ "reflect": true
111
109
  },
112
110
  "sizeMedium": {
113
111
  "type": "string",
@@ -130,8 +128,7 @@ export class StzhSpace {
130
128
  "text": "Type of size above medium breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info)."
131
129
  },
132
130
  "attribute": "size-medium",
133
- "reflect": false,
134
- "defaultValue": "\"inherit\""
131
+ "reflect": true
135
132
  },
136
133
  "sizeLarge": {
137
134
  "type": "string",
@@ -154,8 +151,7 @@ export class StzhSpace {
154
151
  "text": "Type of size above large breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info)."
155
152
  },
156
153
  "attribute": "size-large",
157
- "reflect": false,
158
- "defaultValue": "\"inherit\""
154
+ "reflect": true
159
155
  },
160
156
  "sizeUltra": {
161
157
  "type": "string",
@@ -178,8 +174,7 @@ export class StzhSpace {
178
174
  "text": "Type of size above ultra breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info)."
179
175
  },
180
176
  "attribute": "size-ultra",
181
- "reflect": false,
182
- "defaultValue": "\"inherit\""
177
+ "reflect": true
183
178
  },
184
179
  "justify": {
185
180
  "type": "string",
@@ -202,7 +197,7 @@ export class StzhSpace {
202
197
  "text": "Alignment"
203
198
  },
204
199
  "attribute": "justify",
205
- "reflect": false,
200
+ "reflect": true,
206
201
  "defaultValue": "\"start\""
207
202
  },
208
203
  "items": {
@@ -226,7 +221,7 @@ export class StzhSpace {
226
221
  "text": "Control how cells items are positioned along a container's cross axis"
227
222
  },
228
223
  "attribute": "items",
229
- "reflect": false,
224
+ "reflect": true,
230
225
  "defaultValue": "\"start\""
231
226
  },
232
227
  "around": {
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-space.js","sourceRoot":"","sources":["../../../../src/components/stzh-space/stzh-space.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,GACL,MAAM,eAAe,CAAC;AAIvB;;GAEG;AAMH,MAAM,OAAO,SAAS;;iBAEU,MAAM;gBAGR,SAAS;qBAEJ,SAAS;sBAER,SAAS;qBAEV,SAAS;qBAET,SAAS;mBAGR,OAAO;iBAGX,OAAO;kBAGM,KAAK;kBAG8D,MAAM;;EAEpH,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE;UACL,YAAY,EAAE,IAAI;UAClB,uBAAuB,EAAE,IAAI,CAAC,MAAM;UACpC,CAAC,uBAAuB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;UACvD,CAAC,qBAAqB,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;SAClD;QAED,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n} from \"@stencil/core\";\n\nimport { Space, Layout } from \"../../index\";\n\n/**\n * @slot - Slot for any elements that should be vertically spaced\n */\n@Component({\n tag: \"stzh-space\",\n styleUrl: \"stzh-space.scss\",\n shadow: true\n})\nexport class StzhSpace {\n /** Type of curve (see [Spacings docs page](/docs/tokens-spacings--docs#curves) for more info). */\n @Prop() curve: Space.Curves = \"none\";\n\n /** Type of size (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop() size: Space.Sizes = \"inherit\";\n /** Type of size above small breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop() sizeSmall: Space.Sizes = \"inherit\";\n /** Type of size above medium breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop() sizeMedium: Space.Sizes = \"inherit\";\n /** Type of size above large breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop() sizeLarge: Space.Sizes = \"inherit\";\n /** Type of size above ultra breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop() sizeUltra: Space.Sizes = \"inherit\";\n\n /** Alignment */\n @Prop() justify: Layout.Justify = \"start\";\n\n /** Control how cells items are positioned along a container's cross axis */\n @Prop() items: Layout.Items = \"start\";\n\n /** Apply spacing to slotted elements */\n @Prop({ reflect: true }) around: boolean = false;\n\n /** Add border */\n @Prop({ reflect: true }) border: \"none\" | \"top\" | \"bottom\" | \"left\" | \"right\" | \"left-right\" | \"top-bottom\" = \"none\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-space\": true,\n 'stzh-space--is-around': this.around,\n [`stzh-space--justify-${this.justify}`]: !!this.justify,\n [`stzh-space--items-${this.items}`]: !!this.items\n }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-space.js","sourceRoot":"","sources":["../../../../src/components/stzh-space/stzh-space.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,GACL,MAAM,eAAe,CAAC;AAIvB;;GAEG;AAMH,MAAM,OAAO,SAAS;;iBAE2B,MAAM;;;;;;mBAcF,OAAO;iBAGX,OAAO;kBAGX,KAAK;kBAG8D,MAAM;;EAEpH,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,KAAK,EAAE;UACL,YAAY,EAAE,IAAI;UAClB,uBAAuB,EAAE,IAAI,CAAC,MAAM;UACpC,CAAC,uBAAuB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;UACvD,CAAC,qBAAqB,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;SAClD;QAED,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n} from \"@stencil/core\";\n\nimport { Space, Layout } from \"../../index\";\n\n/**\n * @slot - Slot for any elements that should be vertically spaced\n */\n@Component({\n tag: \"stzh-space\",\n styleUrl: \"stzh-space.scss\",\n shadow: true\n})\nexport class StzhSpace {\n /** Type of curve (see [Spacings docs page](/docs/tokens-spacings--docs#curves) for more info). */\n @Prop({ reflect: true }) curve: Space.Curves = \"none\";\n\n /** Type of size (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop({ reflect: true }) size: Space.Sizes;\n /** Type of size above small breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop({ reflect: true }) sizeSmall: Space.Sizes;\n /** Type of size above medium breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop({ reflect: true }) sizeMedium: Space.Sizes;\n /** Type of size above large breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop({ reflect: true }) sizeLarge: Space.Sizes;\n /** Type of size above ultra breakpoint (see [Spacings docs page](/docs/tokens-spacings--docs#values) for more info). */\n @Prop({ reflect: true }) sizeUltra: Space.Sizes;\n\n /** Alignment */\n @Prop({ reflect: true }) justify: Layout.Justify = \"start\";\n\n /** Control how cells items are positioned along a container's cross axis */\n @Prop({ reflect: true }) items: Layout.Items = \"start\";\n\n /** Apply spacing to slotted elements */\n @Prop({ reflect: true }) around: boolean = false;\n\n /** Add border */\n @Prop({ reflect: true }) border: \"none\" | \"top\" | \"bottom\" | \"left\" | \"right\" | \"left-right\" | \"top-bottom\" = \"none\";\n\n render() {\n return (\n <Host>\n <div\n class={{\n \"stzh-space\": true,\n 'stzh-space--is-around': this.around,\n [`stzh-space--justify-${this.justify}`]: !!this.justify,\n [`stzh-space--items-${this.items}`]: !!this.items\n }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -124,28 +124,30 @@
124
124
  */
125
125
  :host {
126
126
  --padding: var(--stzh-space-large) 0;
127
- position: -webkit-sticky;
128
- position: sticky;
129
- top: -0.0625rem;
130
- bottom: -0.0625rem;
127
+ display: contents;
131
128
  }
132
129
  @media print {
133
130
  :host {
134
131
  display: none;
135
132
  }
136
133
  }
137
- :host[disable-sticky-top]:not([disable-sticky-top=false]) {
138
- top: auto;
139
- }
140
- :host[disable-sticky-bottom]:not([disable-sticky-bottom=false]) {
141
- bottom: auto;
142
- }
143
134
 
144
135
  .stzh-sticky {
136
+ display: contents;
137
+ /* Position sticky variant */
138
+ }
139
+ .stzh-sticky__sticky {
140
+ position: -webkit-sticky;
141
+ position: sticky;
142
+ top: -0.0625rem;
143
+ bottom: -0.0625rem;
144
+ z-index: var(--stzh-z-index-sticky);
145
+ }
146
+ .stzh-sticky__content {
145
147
  position: relative;
146
148
  padding: var(--padding);
147
149
  }
148
- .stzh-sticky::before, .stzh-sticky::after {
150
+ .stzh-sticky__content::before, .stzh-sticky__content::after {
149
151
  content: "";
150
152
  pointer-events: none;
151
153
  display: block;
@@ -156,26 +158,35 @@
156
158
  opacity: 0;
157
159
  transition: opacity var(--stzh-base-transition-animation-speed);
158
160
  }
159
- .stzh-sticky::before {
161
+ .stzh-sticky__content::before {
160
162
  background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
161
163
  top: 0;
162
164
  transform: translateY(-100%);
163
165
  }
164
- .stzh-sticky::after {
166
+ .stzh-sticky__content::after {
165
167
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
166
168
  bottom: 0;
167
169
  transform: translateY(100%);
168
170
  }
169
- .stzh-sticky--is-stuck {
171
+ .stzh-sticky__spacer {
172
+ display: none;
173
+ }
174
+ .stzh-sticky--is-disabled-sticky-top .stzh-sticky__sticky {
175
+ top: auto;
176
+ }
177
+ .stzh-sticky--is-disabled-sticky-bottom .stzh-sticky__sticky {
178
+ bottom: auto;
179
+ }
180
+ .stzh-sticky--is-stuck .stzh-sticky__content {
170
181
  background-color: var(--stzh-color-white);
171
182
  }
172
- .stzh-sticky--is-stuck-bottom::before {
183
+ .stzh-sticky--is-stuck-bottom .stzh-sticky__content::before {
173
184
  opacity: 1;
174
185
  }
175
- .stzh-sticky--is-stuck-top::after {
186
+ .stzh-sticky--is-stuck-top .stzh-sticky__content::after {
176
187
  opacity: 1;
177
188
  }
178
- .stzh-sticky--is-breakout {
189
+ .stzh-sticky--is-breakout .stzh-sticky__content {
179
190
  position: relative;
180
191
  left: 50%;
181
192
  right: 50%;
@@ -3,6 +3,7 @@ import { visualDiff } from "../../../.build/test/utils";
3
3
  const URL = "components-sticky";
4
4
  const STORIES = [
5
5
  "default",
6
+ "nested-fixed",
6
7
  ];
7
8
  test.describe("sticky", () => {
8
9
  STORIES.forEach((storyId) => {
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-sticky.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-sticky/stzh-sticky.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,mBAAmB,CAAC;AAEhC,MAAM,OAAO,GAAG;EACd,SAAS;CACV,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;EAC3B,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;MACtD,MAAM,UAAU,CAAC;QACf,OAAO;QACP,IAAI;QACJ,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,KAAK;OAChB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-sticky\";\n\nconst STORIES = [\n \"default\",\n];\n\ntest.describe(\"sticky\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL,\n fullPage: false\n });\n });\n });\n});\n"]}
1
+ {"version":3,"file":"stzh-sticky.e2e.js","sourceRoot":"","sources":["../../../../src/components/stzh-sticky/stzh-sticky.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,MAAM,GAAG,GAAG,mBAAmB,CAAC;AAEhC,MAAM,OAAO,GAAG;EACd,SAAS;EACT,cAAc;CACf,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;EAC3B,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;IAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;MACtD,MAAM,UAAU,CAAC;QACf,OAAO;QACP,IAAI;QACJ,GAAG,EAAE,GAAG;QACR,QAAQ,EAAE,KAAK;OAChB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../.build/test/utils\";\n\nconst URL = \"components-sticky\";\n\nconst STORIES = [\n \"default\",\n \"nested-fixed\",\n];\n\ntest.describe(\"sticky\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL,\n fullPage: false\n });\n });\n });\n});\n"]}
@@ -1,22 +1,107 @@
1
1
  import { Host, h } from "@stencil/core";
2
+ import { isVisible, offset } from "../../utils/utils";
2
3
  /**
3
4
  *
4
5
  */
5
6
  export class StzhSticky {
6
7
  constructor() {
7
- this.observe = ([entry]) => {
8
- this.updateStuck(entry.target);
8
+ this.fixedHeight = 0;
9
+ this.fixedWidth = 0;
10
+ this.fixedLimit = null;
11
+ this.handleScroll = () => {
12
+ if (this.debounceScroll) {
13
+ window.cancelAnimationFrame(this.debounceScroll);
14
+ }
15
+ this.debounceScroll = requestAnimationFrame(this.updateFixedByScroll);
16
+ };
17
+ this.handleResize = () => {
18
+ if (this.debounceResize) {
19
+ window.cancelAnimationFrame(this.debounceResize);
20
+ }
21
+ this.debounceResize = requestAnimationFrame(this.updateFixedByResize);
22
+ };
23
+ this.updateFixedByScroll = () => {
24
+ if (!isVisible(this.stickyElement)) {
25
+ return;
26
+ }
27
+ this.scrollX = window.scrollX;
28
+ this.scrollY = window.scrollY;
29
+ this.fixedLimit = this.getFixedLimit();
30
+ if (this.isStuckTop || this.isStuckBottom) {
31
+ const off = offset(this.spacerElement);
32
+ this.fixedTop = off.top;
33
+ this.fixedLeft = off.left;
34
+ }
35
+ else {
36
+ const off = offset(this.stickyElement);
37
+ this.fixedTop = off.top;
38
+ this.fixedLeft = off.left;
39
+ }
40
+ // console.log(
41
+ // this.scrollX,
42
+ // this.scrollY,
43
+ // this.windowHeight,
44
+ // this.fixedTop,
45
+ // this.fixedLeft,
46
+ // this.fixedHeight,
47
+ // this.fixedLimit,
48
+ // );
49
+ this.isStuckBottom = !this.disableStickyBottom
50
+ && this.scrollY + this.windowHeight <= this.fixedTop + this.fixedHeight;
51
+ this.isStuckTop = !this.disableStickyTop
52
+ && this.scrollY >= this.fixedTop;
53
+ this.hasReachedTopLimit = this.fixedLimit
54
+ && this.scrollY + this.windowHeight - this.fixedHeight <= this.fixedLimit.top;
55
+ this.hasReachedBottomLimit = this.fixedLimit
56
+ && this.scrollY >= this.fixedLimit.bottom - this.fixedHeight;
57
+ // console.log(
58
+ // this.isStuckBottom,
59
+ // this.isStuckTop,
60
+ // this.hasReachedBottomLimit,
61
+ // this.hasReachedTopLimit,
62
+ // );
63
+ if (this.isStuckTop || this.isStuckBottom) {
64
+ this.setFixed();
65
+ }
66
+ else {
67
+ this.setUnfixed();
68
+ }
69
+ };
70
+ this.updateFixedByResize = () => {
71
+ // reset sticky so we can read current offsets
72
+ this.setUnfixed();
73
+ this.stickyElement.style.position = "static";
74
+ this.isStuckTop = false;
75
+ this.isStuckBottom = false;
76
+ if (isVisible(this.stickyElement)) {
77
+ this.windowHeight = window.innerHeight;
78
+ this.fixedHeight = this.stickyElement.offsetHeight;
79
+ this.fixedWidth = this.stickyElement.offsetWidth;
80
+ this.spacerElement.style.height = `${this.fixedHeight}px`;
81
+ this.updateFixedByScroll();
82
+ }
83
+ };
84
+ this.observe = () => {
85
+ this.updateStuck();
9
86
  };
10
87
  this.disableStickyTop = false;
11
88
  this.disableStickyBottom = false;
12
89
  this.breakout = false;
90
+ this.position = "sticky";
13
91
  this.isStuckTop = false;
14
92
  this.isStuckBottom = false;
93
+ this.hasReachedTopLimit = false;
94
+ this.hasReachedBottomLimit = false;
15
95
  }
16
96
  disableStickyWatcher() {
17
97
  requestAnimationFrame(() => {
18
98
  requestAnimationFrame(() => {
19
- this.updateStuck(this.element);
99
+ if (this.position === "fixed") {
100
+ this.updateFixedByResize();
101
+ }
102
+ else {
103
+ this.updateStuck();
104
+ }
20
105
  });
21
106
  });
22
107
  }
@@ -32,10 +117,28 @@ export class StzhSticky {
32
117
  sticky: newValue
33
118
  });
34
119
  }
35
- updateStuck(element) {
36
- const topCss = parseInt(getComputedStyle(element).top, 10);
37
- const bottomCss = parseInt(getComputedStyle(element).bottom, 10);
38
- const rect = element.getBoundingClientRect();
120
+ positionWatcher(newValue) {
121
+ if (newValue === "fixed") {
122
+ if (this.observer) {
123
+ this.observer.disconnect();
124
+ }
125
+ window.addEventListener("scroll", this.handleScroll, { passive: true });
126
+ window.addEventListener("resize", this.handleResize);
127
+ this.updateFixedByResize();
128
+ }
129
+ else {
130
+ window.removeEventListener("scroll", this.handleScroll);
131
+ window.removeEventListener("resize", this.handleResize);
132
+ this.setUnfixed();
133
+ this.observer = new IntersectionObserver(this.observe, { threshold: [1] });
134
+ this.observer.observe(this.stickyElement);
135
+ this.updateStuck();
136
+ }
137
+ }
138
+ updateStuck() {
139
+ const topCss = parseInt(getComputedStyle(this.stickyElement).top, 10);
140
+ const bottomCss = parseInt(getComputedStyle(this.stickyElement).bottom, 10);
141
+ const rect = this.stickyElement.getBoundingClientRect();
39
142
  if (topCss) {
40
143
  this.isStuckTop = rect.top < 0;
41
144
  }
@@ -49,24 +152,70 @@ export class StzhSticky {
49
152
  this.isStuckBottom = false;
50
153
  }
51
154
  }
52
- connectedCallback() {
53
- this.observer = new IntersectionObserver(this.observe, { threshold: [1] });
54
- this.observer.observe(this.element);
155
+ getFixedLimit() {
156
+ const stickyContainer = this.element.closest("[data-stzh-sticky-container]");
157
+ if (!stickyContainer) {
158
+ return null;
159
+ }
160
+ const off = offset(stickyContainer);
161
+ return {
162
+ top: off.top,
163
+ bottom: off.top + stickyContainer.scrollHeight,
164
+ };
165
+ }
166
+ setUnfixed() {
167
+ Object.assign(this.stickyElement.style, {
168
+ position: null,
169
+ top: null,
170
+ bottom: null,
171
+ left: null,
172
+ width: null,
173
+ });
174
+ Object.assign(this.spacerElement.style, {
175
+ display: "none",
176
+ });
177
+ }
178
+ setFixed() {
179
+ const position = (this.hasReachedTopLimit || this.hasReachedBottomLimit)
180
+ ? "absolute"
181
+ : "fixed";
182
+ Object.assign(this.stickyElement.style, {
183
+ position,
184
+ top: position === "absolute"
185
+ ? `${this.isStuckTop ? this.fixedLimit.bottom - this.fixedHeight : this.fixedLimit.top}px`
186
+ : this.isStuckTop ? "0px" : "auto",
187
+ bottom: this.isStuckTop || position === "absolute"
188
+ ? "auto" : "0px",
189
+ left: `${this.fixedLeft + (position === "fixed" ? this.scrollX : 0)}px`,
190
+ width: `${this.fixedWidth}px`,
191
+ });
192
+ Object.assign(this.spacerElement.style, {
193
+ display: "block",
194
+ });
195
+ }
196
+ componentDidLoad() {
197
+ this.positionWatcher(this.position);
55
198
  }
56
199
  disconnectedCallback() {
57
200
  if (this.observer) {
58
201
  this.observer.disconnect();
59
202
  }
203
+ window.removeEventListener("scroll", this.handleScroll);
204
+ window.removeEventListener("resize", this.handleResize);
60
205
  }
61
206
  render() {
207
+ const isStuck = this.isStuckTop || this.isStuckBottom;
62
208
  const classes = {
63
209
  "stzh-sticky": true,
64
- "stzh-sticky--is-stuck": this.isStuckTop || this.isStuckBottom,
210
+ "stzh-sticky--is-stuck": isStuck,
65
211
  "stzh-sticky--is-stuck-top": this.isStuckTop,
66
212
  "stzh-sticky--is-stuck-bottom": this.isStuckBottom,
67
- "stzh-sticky--is-breakout": this.breakout
213
+ "stzh-sticky--is-breakout": this.breakout,
214
+ "stzh-sticky--is-disabled-sticky-top": this.disableStickyTop,
215
+ "stzh-sticky--is-disabled-sticky-bottom": this.disableStickyBottom,
216
+ [`stzh-sticky--position-${this.position}`]: !!this.position,
68
217
  };
69
- return (h(Host, { "is-stuck": this.isStuckTop || this.isStuckBottom, "is-stuck-top": this.isStuckTop, "is-stuck-bottom": this.isStuckBottom }, h("div", { class: classes }, h("slot", null))));
218
+ return (h(Host, { "is-stuck": this.isStuckTop || this.isStuckBottom, "is-stuck-top": this.isStuckTop, "is-stuck-bottom": this.isStuckBottom }, h("div", { class: classes }, h("div", { ref: (el) => (this.spacerElement = el), class: "stzh-sticky__spacer" }), h("div", { ref: (el) => (this.stickyElement = el), class: "stzh-sticky__sticky" }, h("div", { class: "stzh-sticky__content" }, h("slot", null))))));
70
219
  }
71
220
  static get is() { return "stzh-sticky"; }
72
221
  static get encapsulation() { return "scoped"; }
@@ -135,13 +284,33 @@ export class StzhSticky {
135
284
  "attribute": "breakout",
136
285
  "reflect": true,
137
286
  "defaultValue": "false"
287
+ },
288
+ "position": {
289
+ "type": "string",
290
+ "mutable": false,
291
+ "complexType": {
292
+ "original": "\"sticky\" |\u00A0\"fixed\"",
293
+ "resolved": "\"fixed\" | \"sticky\"",
294
+ "references": {}
295
+ },
296
+ "required": false,
297
+ "optional": false,
298
+ "docs": {
299
+ "tags": [],
300
+ "text": "Position type used.\n\n- sticky: used only css position sticky\n- fixed: uses position fixed with js for positioning (`data-stzh-sticky-container` can be used on a container element to limit sticky position)"
301
+ },
302
+ "attribute": "position",
303
+ "reflect": true,
304
+ "defaultValue": "\"sticky\""
138
305
  }
139
306
  };
140
307
  }
141
308
  static get states() {
142
309
  return {
143
310
  "isStuckTop": {},
144
- "isStuckBottom": {}
311
+ "isStuckBottom": {},
312
+ "hasReachedTopLimit": {},
313
+ "hasReachedBottomLimit": {}
145
314
  };
146
315
  }
147
316
  static get events() {
@@ -203,6 +372,9 @@ export class StzhSticky {
203
372
  }, {
204
373
  "propName": "isStuckBottom",
205
374
  "methodName": "isStuckBottomWatcher"
375
+ }, {
376
+ "propName": "position",
377
+ "methodName": "positionWatcher"
206
378
  }];
207
379
  }
208
380
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stzh-sticky.js","sourceRoot":"","sources":["../../../../src/components/stzh-sticky/stzh-sticky.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EAEN,MAAM,eAAe,CAAC;AAOvB;;GAEG;AAMH,MAAM,OAAO,UAAU;;IAmEb,YAAO,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE;MAC5B,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC,CAAC;4BAnEmD,KAAK;+BAGF,KAAK;oBAGhB,KAAK;sBAcnB,KAAK;yBACF,KAAK;;EAXvC,oBAAoB;IAClB,qBAAqB,CAAC,GAAG,EAAE;MACzB,qBAAqB,CAAC,GAAG,EAAE;QACzB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;MACjC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;EACL,CAAC;EAQD,iBAAiB,CAAC,QAAiB;IACjC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;MACrB,SAAS,EAAE,aAAa;MACxB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;EACL,CAAC;EAGD,oBAAoB,CAAC,QAAiB;IACpC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;MACxB,SAAS,EAAE,aAAa;MACxB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;EACL,CAAC;EAUO,WAAW,CAAC,OAAoB;IACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,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,WAAK,KAAK,EAAE,OAAO;QACjB,eAAa,CACT,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Watch,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhStickyStuckTopEvent,\n StzhStickyStuckBottomEvent\n} from \"../../index\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-sticky\",\n styleUrl: \"stzh-sticky.scss\",\n scoped: true\n})\nexport class StzhSticky {\n /** Whether to disable sticking to top */\n @Prop({ reflect: true }) disableStickyTop: boolean = false;\n\n /** Whether to disable sticking to bottom */\n @Prop({ reflect: true }) disableStickyBottom: boolean = false;\n\n /** Whether to breakout container */\n @Prop({ reflect: true }) breakout: boolean = false;\n\n @Watch(\"disableStickyTop\")\n @Watch(\"disableStickyBottom\")\n disableStickyWatcher() {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n this.updateStuck(this.element);\n });\n });\n }\n\n @Element() element: HTMLStzhStickyElement;\n\n @State() isStuckTop: boolean = false;\n @State() isStuckBottom: boolean = false;\n\n @Watch(\"isStuckTop\")\n isStuckTopWatcher(newValue: boolean) {\n this.stzhStuckTop.emit({\n component: \"stzh-sticky\",\n sticky: newValue\n });\n }\n\n @Watch(\"isStuckBottom\")\n isStuckBottomWatcher(newValue: boolean) {\n this.stzhStuckBottom.emit({\n component: \"stzh-sticky\",\n sticky: newValue\n });\n }\n\n /** Sticky stuck top event */\n @Event() stzhStuckTop: EventEmitter<StzhStickyStuckTopEvent>;\n\n /** Sticky stuck bottom event */\n @Event() stzhStuckBottom: EventEmitter<StzhStickyStuckBottomEvent>;\n\n private observer: IntersectionObserver;\n\n private updateStuck(element: HTMLElement) {\n const topCss = parseInt(getComputedStyle(element).top, 10);\n const bottomCss = parseInt(getComputedStyle(element).bottom, 10);\n const rect = element.getBoundingClientRect();\n\n if (topCss) {\n this.isStuckTop = rect.top < 0;\n } else {\n this.isStuckTop = false;\n }\n\n if (bottomCss) {\n this.isStuckBottom = document.documentElement.clientHeight < rect.bottom;\n } else {\n this.isStuckBottom = false;\n }\n }\n\n private observe = ([entry]) => {\n this.updateStuck(entry.target);\n };\n\n connectedCallback() {\n this.observer = new IntersectionObserver(this.observe, { threshold: [1] });\n this.observer.observe(this.element)\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n }\n\n render() {\n const classes = {\n \"stzh-sticky\": true,\n \"stzh-sticky--is-stuck\": this.isStuckTop || this.isStuckBottom,\n \"stzh-sticky--is-stuck-top\": this.isStuckTop,\n \"stzh-sticky--is-stuck-bottom\": this.isStuckBottom,\n \"stzh-sticky--is-breakout\": this.breakout\n };\n\n return (\n <Host\n is-stuck={this.isStuckTop || this.isStuckBottom}\n is-stuck-top={this.isStuckTop}\n is-stuck-bottom={this.isStuckBottom}\n >\n <div class={classes}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"stzh-sticky.js","sourceRoot":"","sources":["../../../../src/components/stzh-sticky/stzh-sticky.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EAEN,MAAM,eAAe,CAAC;AAOvB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AAMH,MAAM,OAAO,UAAU;;IAgGb,gBAAW,GAAW,CAAC,CAAC;IACxB,eAAU,GAAW,CAAC,CAAC;IACvB,eAAU,GAA2C,IAAI,CAAC;IAsE1D,iBAAY,GAAG,GAAG,EAAE;MAC1B,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,MAAM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;IAEF,OAAO,CACL,EAAC,IAAI,gBACO,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,aAAa,kBACjC,IAAI,CAAC,UAAU,qBACZ,IAAI,CAAC,aAAa;MAEnC,WAAK,KAAK,EAAE,OAAO;QACjB,WACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,EAAoB,CAAC,EACxD,KAAK,EAAC,qBAAqB,GACtB;QACP,WACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,EAAoB,CAAC,EACxD,KAAK,EAAC,qBAAqB;UAE3B,WAAK,KAAK,EAAC,sBAAsB;YAC/B,eAAa,CACT,CACF,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Watch,\n Event,\n EventEmitter\n} from \"@stencil/core\";\n\nimport {\n StzhStickyStuckTopEvent,\n StzhStickyStuckBottomEvent\n} from \"../../index\";\n\nimport { isVisible, offset } from \"../../utils/utils\";\n\n/**\n *\n */\n@Component({\n tag: \"stzh-sticky\",\n styleUrl: \"stzh-sticky.scss\",\n scoped: true\n})\nexport class StzhSticky {\n /** Whether to disable sticking to top */\n @Prop({ reflect: true }) disableStickyTop: boolean = false;\n\n /** Whether to disable sticking to bottom */\n @Prop({ reflect: true }) disableStickyBottom: boolean = false;\n\n /** Whether to breakout container */\n @Prop({ reflect: true }) breakout: boolean = false;\n\n /**\n * Position type used.\n *\n * - sticky: used only css position sticky\n * - fixed: uses position fixed with js for positioning (`data-stzh-sticky-container` can be used on a container element to limit sticky position)\n */\n @Prop({ reflect: true }) position: \"sticky\" | \"fixed\" = \"sticky\";\n\n @Watch(\"disableStickyTop\")\n @Watch(\"disableStickyBottom\")\n disableStickyWatcher() {\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n if (this.position === \"fixed\") {\n this.updateFixedByResize();\n } else {\n this.updateStuck();\n }\n });\n });\n }\n\n @Element() element: HTMLStzhStickyElement;\n\n @State() isStuckTop: boolean = false;\n @State() isStuckBottom: boolean = false;\n\n @State() hasReachedTopLimit: boolean = false;\n @State() hasReachedBottomLimit: boolean = false;\n\n @Watch(\"isStuckTop\")\n isStuckTopWatcher(newValue: boolean) {\n this.stzhStuckTop.emit({\n component: \"stzh-sticky\",\n sticky: newValue\n });\n }\n\n @Watch(\"isStuckBottom\")\n isStuckBottomWatcher(newValue: boolean) {\n this.stzhStuckBottom.emit({\n component: \"stzh-sticky\",\n sticky: newValue\n });\n }\n\n @Watch(\"position\")\n positionWatcher(newValue: string) {\n if (newValue === \"fixed\") {\n if (this.observer) {\n this.observer.disconnect();\n }\n\n window.addEventListener(\"scroll\", this.handleScroll, { passive: true });\n window.addEventListener(\"resize\", this.handleResize);\n\n this.updateFixedByResize();\n } else {\n window.removeEventListener(\"scroll\", this.handleScroll);\n window.removeEventListener(\"resize\", this.handleResize);\n this.setUnfixed();\n\n this.observer = new IntersectionObserver(this.observe, { threshold: [1] });\n this.observer.observe(this.stickyElement);\n\n this.updateStuck();\n }\n }\n\n /** Sticky stuck top event */\n @Event() stzhStuckTop: EventEmitter<StzhStickyStuckTopEvent>;\n\n /** Sticky stuck bottom event */\n @Event() stzhStuckBottom: EventEmitter<StzhStickyStuckBottomEvent>;\n\n private observer: IntersectionObserver;\n private debounceScroll: number;\n private debounceResize: number;\n private stickyElement: HTMLElement;\n private spacerElement: HTMLElement;\n\n private windowHeight: number;\n private scrollX: number;\n private scrollY: number;\n private fixedTop: number;\n private fixedLeft: number;\n private fixedHeight: number = 0;\n private fixedWidth: number = 0;\n private fixedLimit: { top: number, bottom: number } | null = null;\n\n private updateStuck() {\n const topCss = parseInt(getComputedStyle(this.stickyElement).top, 10);\n const bottomCss = parseInt(getComputedStyle(this.stickyElement).bottom, 10);\n const rect = this.stickyElement.getBoundingClientRect();\n\n if (topCss) {\n this.isStuckTop = rect.top < 0;\n } else {\n this.isStuckTop = false;\n }\n\n if (bottomCss) {\n this.isStuckBottom = document.documentElement.clientHeight < rect.bottom;\n } else {\n this.isStuckBottom = false;\n }\n }\n\n private getFixedLimit(): { top: number, bottom: number } | null {\n const stickyContainer = this.element.closest(\"[data-stzh-sticky-container]\");\n\n if (!stickyContainer) {\n return null;\n }\n\n const off = offset(stickyContainer);\n\n return {\n top: off.top,\n bottom: off.top + stickyContainer.scrollHeight,\n };\n }\n\n private setUnfixed() {\n Object.assign(this.stickyElement.style, {\n position: null,\n top: null,\n bottom: null,\n left: null,\n width: null,\n });\n\n Object.assign(this.spacerElement.style, {\n display: \"none\",\n });\n }\n\n private setFixed() {\n const position = (this.hasReachedTopLimit || this.hasReachedBottomLimit)\n ? \"absolute\"\n : \"fixed\";\n\n Object.assign(this.stickyElement.style, {\n position,\n top: position === \"absolute\"\n ? `${this.isStuckTop ? this.fixedLimit.bottom - this.fixedHeight : this.fixedLimit.top}px`\n : this.isStuckTop ? \"0px\" : \"auto\",\n bottom: this.isStuckTop || position === \"absolute\"\n ? \"auto\" : \"0px\",\n left: `${this.fixedLeft + (position === \"fixed\" ? this.scrollX : 0)}px`,\n width: `${this.fixedWidth}px`,\n });\n\n Object.assign(this.spacerElement.style, {\n display: \"block\",\n });\n }\n\n private handleScroll = () => {\n if (this.debounceScroll) {\n window.cancelAnimationFrame(this.debounceScroll);\n }\n\n this.debounceScroll = requestAnimationFrame(this.updateFixedByScroll);\n }\n\n private handleResize = () => {\n if (this.debounceResize) {\n window.cancelAnimationFrame(this.debounceResize);\n }\n\n this.debounceResize = requestAnimationFrame(this.updateFixedByResize);\n }\n\n private updateFixedByScroll = () => {\n if (!isVisible(this.stickyElement)) {\n return;\n }\n\n this.scrollX = window.scrollX;\n this.scrollY = window.scrollY;\n this.fixedLimit = this.getFixedLimit();\n\n if (this.isStuckTop || this.isStuckBottom) {\n const off = offset(this.spacerElement);\n\n this.fixedTop = off.top;\n this.fixedLeft = off.left;\n } else {\n const off = offset(this.stickyElement);\n\n this.fixedTop = off.top;\n this.fixedLeft = off.left;\n }\n\n // console.log(\n // this.scrollX,\n // this.scrollY,\n // this.windowHeight, \n // this.fixedTop,\n // this.fixedLeft,\n // this.fixedHeight,\n // this.fixedLimit,\n // );\n\n this.isStuckBottom = !this.disableStickyBottom\n && this.scrollY + this.windowHeight <= this.fixedTop + this.fixedHeight;\n this.isStuckTop = !this.disableStickyTop\n && this.scrollY >= this.fixedTop;\n\n this.hasReachedTopLimit = this.fixedLimit \n && this.scrollY + this.windowHeight - this.fixedHeight <= this.fixedLimit.top;\n this.hasReachedBottomLimit = this.fixedLimit \n && this.scrollY >= this.fixedLimit.bottom - this.fixedHeight;\n\n // console.log(\n // this.isStuckBottom,\n // this.isStuckTop,\n // this.hasReachedBottomLimit,\n // this.hasReachedTopLimit,\n // );\n\n if (this.isStuckTop || this.isStuckBottom) {\n this.setFixed();\n } else {\n this.setUnfixed();\n }\n }\n\n private updateFixedByResize = () => {\n // reset sticky so we can read current offsets\n this.setUnfixed();\n this.stickyElement.style.position = \"static\";\n this.isStuckTop = false;\n this.isStuckBottom = false;\n\n if (isVisible(this.stickyElement)) {\n this.windowHeight = window.innerHeight;\n this.fixedHeight = this.stickyElement.offsetHeight; \n this.fixedWidth = this.stickyElement.offsetWidth;\n this.spacerElement.style.height = `${this.fixedHeight}px`;\n\n this.updateFixedByScroll();\n }\n }\n\n private observe = () => {\n this.updateStuck();\n };\n\n componentDidLoad() {\n this.positionWatcher(this.position);\n }\n\n disconnectedCallback() {\n if (this.observer) {\n this.observer.disconnect();\n }\n\n window.removeEventListener(\"scroll\", this.handleScroll);\n window.removeEventListener(\"resize\", this.handleResize);\n }\n\n render() {\n const isStuck = this.isStuckTop || this.isStuckBottom;\n\n const classes = {\n \"stzh-sticky\": true,\n \"stzh-sticky--is-stuck\": isStuck,\n \"stzh-sticky--is-stuck-top\": this.isStuckTop,\n \"stzh-sticky--is-stuck-bottom\": this.isStuckBottom,\n \"stzh-sticky--is-breakout\": this.breakout,\n \"stzh-sticky--is-disabled-sticky-top\": this.disableStickyTop,\n \"stzh-sticky--is-disabled-sticky-bottom\": this.disableStickyBottom,\n [`stzh-sticky--position-${this.position}`]: !!this.position,\n };\n\n return (\n <Host\n is-stuck={this.isStuckTop || this.isStuckBottom}\n is-stuck-top={this.isStuckTop}\n is-stuck-bottom={this.isStuckBottom}\n >\n <div class={classes}>\n <div\n ref={(el) => (this.spacerElement = el as HTMLDivElement)}\n class=\"stzh-sticky__spacer\"\n ></div>\n <div\n ref={(el) => (this.stickyElement = el as HTMLDivElement)}\n class=\"stzh-sticky__sticky\"\n >\n <div class=\"stzh-sticky__content\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}