@oiz/stzh-components 2.11.0-beta1 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5b6fc14f.js → app-globals-7697372c.js} +2 -2
- package/dist/cjs/{app-globals-5b6fc14f.js.map → app-globals-7697372c.js.map} +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-actionset_4.cjs.entry.js +3 -3
- package/dist/cjs/stzh-actionset_4.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +4 -3
- package/dist/cjs/stzh-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cell.cjs.entry.js +4 -4
- package/dist/cjs/stzh-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +8 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact.cjs.entry.js +7 -4
- package/dist/cjs/stzh-contact.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/{stzh-ratio.cjs.entry.js → stzh-figure_2.cjs.entry.js} +33 -1
- package/dist/cjs/stzh-figure_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-footer.cjs.entry.js +22 -6
- package/dist/cjs/stzh-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-gallery.cjs.entry.js +9733 -0
- package/dist/cjs/stzh-gallery.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-ghettobox.cjs.entry.js +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +3 -6
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-hspace.cjs.entry.js → stzh-hspace_2.cjs.entry.js} +41 -6
- package/dist/cjs/stzh-hspace_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +0 -2
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-logo.cjs.entry.js +671 -0
- package/dist/cjs/stzh-logo.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-panorama.cjs.entry.js +3 -2
- package/dist/cjs/stzh-panorama.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-print.cjs.entry.js +1 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js +2 -1
- package/dist/cjs/stzh-progressbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-row.cjs.entry.js +4 -4
- package/dist/cjs/stzh-row.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-share.cjs.entry.js +1 -1
- package/dist/cjs/stzh-space.cjs.entry.js +5 -5
- package/dist/cjs/stzh-space.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +166 -15
- package/dist/cjs/stzh-sticky.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vspace.cjs.entry.js +5 -5
- package/dist/cjs/stzh-vspace.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-77bc0ea1.js → utils-01c0bbdd.js} +25 -1
- package/dist/cjs/utils-01c0bbdd.js.map +1 -0
- package/dist/collection/assets/i18n/de.json +19 -10
- package/dist/collection/assets/i18n/en.json +19 -10
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/stzh-button/stzh-button.css +4 -0
- package/dist/collection/components/stzh-button/stzh-button.js +3 -3
- package/dist/collection/components/stzh-button/stzh-button.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.css +1 -0
- package/dist/collection/components/stzh-card-list/stzh-card-list.css +27 -38
- package/dist/collection/components/stzh-carousel/stzh-carousel.css +3 -0
- package/dist/collection/components/stzh-carousel/stzh-carousel.js +2 -1
- package/dist/collection/components/stzh-carousel/stzh-carousel.js.map +1 -1
- package/dist/collection/components/stzh-cell/stzh-cell.js +9 -13
- package/dist/collection/components/stzh-cell/stzh-cell.js.map +1 -1
- package/dist/collection/components/stzh-clamp/stzh-clamp.js +9 -2
- package/dist/collection/components/stzh-clamp/stzh-clamp.js.map +1 -1
- package/dist/collection/components/stzh-contact/stzh-contact.js +25 -3
- package/dist/collection/components/stzh-contact/stzh-contact.js.map +1 -1
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +5 -0
- package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +1 -1
- package/dist/collection/components/stzh-figure/stzh-figure.css +5 -0
- package/dist/collection/components/stzh-footer/stzh-footer.css +1 -7
- package/dist/collection/components/stzh-footer/stzh-footer.js +21 -5
- package/dist/collection/components/stzh-footer/stzh-footer.js.map +1 -1
- package/dist/collection/components/stzh-footer/stzh-footer.stories.js +2 -2
- package/dist/collection/components/stzh-gallery/assets/angle-left.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/angle-right.svg +3 -0
- package/dist/collection/components/stzh-gallery/assets/close.svg +3 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.css +839 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js +22 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.e2e.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js +410 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js +2 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.localization.js.map +1 -0
- package/dist/collection/components/stzh-gallery/stzh-gallery.stories.js +163 -0
- package/dist/collection/components/stzh-header/stzh-header.css +19 -1
- package/dist/collection/components/stzh-header/stzh-header.js +1 -4
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.stories.js +5 -3
- package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
- package/dist/collection/components/stzh-hspace/stzh-hspace.js +13 -18
- package/dist/collection/components/stzh-hspace/stzh-hspace.js.map +1 -1
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +0 -38
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
- package/dist/collection/components/stzh-logo/assets/aoz.svg +15 -0
- package/dist/collection/components/stzh-logo/assets/pkzh.svg +207 -0
- package/dist/collection/components/stzh-logo/assets/stzh-default.svg +166 -0
- package/dist/collection/components/stzh-logo/assets/uvz.svg +85 -0
- package/dist/collection/components/stzh-logo/assets/vbz.svg +147 -0
- package/dist/collection/components/stzh-logo/stzh-logo.css +134 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js +19 -0
- package/dist/collection/components/stzh-logo/stzh-logo.e2e.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js +72 -0
- package/dist/collection/components/stzh-logo/stzh-logo.js.map +1 -0
- package/dist/collection/components/stzh-logo/stzh-logo.stories.js +51 -0
- package/dist/collection/components/stzh-panorama/stzh-panorama.js +21 -2
- package/dist/collection/components/stzh-panorama/stzh-panorama.js.map +1 -1
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +3 -2
- package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js.map +1 -1
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +2 -4
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js.map +1 -1
- package/dist/collection/components/stzh-row/stzh-row.js +9 -13
- package/dist/collection/components/stzh-row/stzh-row.js.map +1 -1
- package/dist/collection/components/stzh-show/stzh-show.js +5 -5
- package/dist/collection/components/stzh-show/stzh-show.js.map +1 -1
- package/dist/collection/components/stzh-space/stzh-space.js +13 -18
- package/dist/collection/components/stzh-space/stzh-space.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.css +28 -17
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js +1 -0
- package/dist/collection/components/stzh-sticky/stzh-sticky.e2e.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.js +186 -14
- package/dist/collection/components/stzh-sticky/stzh-sticky.js.map +1 -1
- package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +88 -44
- package/dist/collection/components/stzh-text/stzh-text.css +19 -0
- package/dist/collection/components/stzh-text/stzh-text.js +1 -1
- package/dist/collection/components/stzh-vspace/stzh-vspace.js +13 -18
- package/dist/collection/components/stzh-vspace/stzh-vspace.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/patterns/media/media.e2e.js +3 -1
- package/dist/collection/patterns/media/media.e2e.js.map +1 -1
- package/dist/collection/patterns/subpages/subpages.e2e.js +1 -0
- package/dist/collection/patterns/subpages/subpages.e2e.js.map +1 -1
- package/dist/collection/utils/utils.js +22 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-button2.js +2 -2
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-card-list2.js +1 -1
- package/dist/components/stzh-card-list2.js.map +1 -1
- package/dist/components/stzh-card2.js +1 -1
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-carousel2.js +3 -2
- package/dist/components/stzh-carousel2.js.map +1 -1
- package/dist/components/stzh-cell.js +9 -9
- package/dist/components/stzh-cell.js.map +1 -1
- package/dist/components/stzh-clamp2.js +8 -1
- package/dist/components/stzh-clamp2.js.map +1 -1
- package/dist/components/stzh-contact.js +7 -3
- package/dist/components/stzh-contact.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-figure2.js +1 -1
- package/dist/components/stzh-figure2.js.map +1 -1
- package/dist/components/stzh-footer.js +21 -5
- package/dist/components/stzh-footer.js.map +1 -1
- package/dist/components/stzh-gallery.d.ts +11 -0
- package/dist/components/stzh-gallery.js +9808 -0
- package/dist/components/stzh-gallery.js.map +1 -0
- package/dist/components/stzh-header.js +2 -5
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-hspace.js +1 -57
- package/dist/components/stzh-hspace.js.map +1 -1
- package/dist/{esm/stzh-hspace.entry.js → components/stzh-hspace2.js} +41 -13
- package/dist/components/stzh-hspace2.js.map +1 -0
- package/dist/components/stzh-imagecomparison.js +0 -4
- package/dist/components/stzh-imagecomparison.js.map +1 -1
- package/dist/components/stzh-logo.d.ts +11 -0
- package/dist/components/stzh-logo.js +687 -0
- package/dist/components/stzh-logo.js.map +1 -0
- package/dist/components/stzh-panorama.js +4 -2
- package/dist/components/stzh-panorama.js.map +1 -1
- package/dist/components/stzh-progressbar-item2.js +2 -1
- package/dist/components/stzh-progressbar-item2.js.map +1 -1
- package/dist/components/stzh-radiogroup2.js +1 -1
- package/dist/components/stzh-row.js +9 -9
- package/dist/components/stzh-row.js.map +1 -1
- package/dist/components/stzh-show.js +1 -59
- package/dist/components/stzh-show.js.map +1 -1
- package/dist/{esm/stzh-show.entry.js → components/stzh-show2.js} +34 -10
- package/dist/components/stzh-show2.js.map +1 -0
- package/dist/components/stzh-space.js +13 -13
- package/dist/components/stzh-space.js.map +1 -1
- package/dist/components/stzh-sticky.js +171 -17
- package/dist/components/stzh-sticky.js.map +1 -1
- package/dist/components/stzh-text2.js +1 -1
- package/dist/components/stzh-text2.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +1 -1
- package/dist/components/stzh-vspace.js +13 -13
- package/dist/components/stzh-vspace.js.map +1 -1
- package/dist/components/utils.js +23 -1
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{app-globals-2df573fd.js → app-globals-1a77c38b.js} +2 -2
- package/dist/esm/{app-globals-2df573fd.js.map → app-globals-1a77c38b.js.map} +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-actionset_4.entry.js +3 -3
- package/dist/esm/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm/stzh-appnav.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +3 -3
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-carousel.entry.js +4 -3
- package/dist/esm/stzh-carousel.entry.js.map +1 -1
- package/dist/esm/stzh-cell.entry.js +4 -4
- package/dist/esm/stzh-cell.entry.js.map +1 -1
- package/dist/esm/stzh-checkbox.entry.js +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm/stzh-chip_2.entry.js +8 -1
- package/dist/esm/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact.entry.js +7 -4
- package/dist/esm/stzh-contact.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/{stzh-ratio.entry.js → stzh-figure_2.entry.js} +33 -2
- package/dist/esm/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm/stzh-footer.entry.js +22 -6
- package/dist/esm/stzh-footer.entry.js.map +1 -1
- package/dist/esm/stzh-gallery.entry.js +9729 -0
- package/dist/esm/stzh-gallery.entry.js.map +1 -0
- package/dist/esm/stzh-ghettobox.entry.js +1 -1
- package/dist/esm/stzh-header.entry.js +3 -6
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-hspace_2.entry.js +67 -0
- package/dist/esm/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm/stzh-imagecomparison.entry.js +0 -2
- package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-logo.entry.js +667 -0
- package/dist/esm/stzh-logo.entry.js.map +1 -0
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-pagebottom.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-panorama.entry.js +3 -2
- package/dist/esm/stzh-panorama.entry.js.map +1 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-print.entry.js +1 -1
- package/dist/esm/stzh-progressbar-item.entry.js +2 -1
- package/dist/esm/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-row.entry.js +4 -4
- package/dist/esm/stzh-row.entry.js.map +1 -1
- package/dist/esm/stzh-scrollup.entry.js +1 -1
- package/dist/esm/stzh-share.entry.js +1 -1
- package/dist/esm/stzh-space.entry.js +5 -5
- package/dist/esm/stzh-space.entry.js.map +1 -1
- package/dist/esm/stzh-sticky.entry.js +166 -15
- package/dist/esm/stzh-sticky.entry.js.map +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-timeline-item.entry.js +1 -1
- package/dist/esm/stzh-toast.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vspace.entry.js +5 -5
- package/dist/esm/stzh-vspace.entry.js.map +1 -1
- package/dist/esm/{utils-107fad0f.js → utils-8bb4c3c6.js} +24 -2
- package/dist/esm/utils-8bb4c3c6.js.map +1 -0
- package/dist/esm-es5/{app-globals-2df573fd.js → app-globals-1a77c38b.js} +2 -2
- package/dist/esm-es5/{app-globals-2df573fd.js.map → app-globals-1a77c38b.js.map} +1 -1
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/stzh-actions.entry.js +1 -1
- package/dist/esm-es5/stzh-actionset_4.entry.js +2 -2
- package/dist/esm-es5/stzh-actionset_4.entry.js.map +1 -1
- package/dist/esm-es5/stzh-appnav.entry.js +1 -1
- package/dist/esm-es5/stzh-audio.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js +1 -1
- package/dist/esm-es5/stzh-carousel.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cell.entry.js +1 -1
- package/dist/esm-es5/stzh-cell.entry.js.map +1 -1
- package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
- package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js.map +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-components.js.map +1 -1
- package/dist/esm-es5/stzh-contact.entry.js +1 -1
- package/dist/esm-es5/stzh-contact.entry.js.map +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js +1 -1
- package/dist/esm-es5/stzh-cspace.entry.js.map +1 -1
- package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm-es5/stzh-details.entry.js +1 -1
- package/dist/esm-es5/stzh-dialog.entry.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
- package/dist/esm-es5/stzh-figure_2.entry.js +2 -0
- package/dist/esm-es5/stzh-figure_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-footer.entry.js +1 -1
- package/dist/esm-es5/stzh-footer.entry.js.map +1 -1
- package/dist/esm-es5/stzh-gallery.entry.js +10 -0
- package/dist/esm-es5/stzh-gallery.entry.js.map +1 -0
- package/dist/esm-es5/stzh-ghettobox.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js +1 -1
- package/dist/esm-es5/stzh-header.entry.js.map +1 -1
- package/dist/esm-es5/stzh-hspace_2.entry.js +2 -0
- package/dist/esm-es5/stzh-hspace_2.entry.js.map +1 -0
- package/dist/esm-es5/stzh-imagecomparison.entry.js +1 -1
- package/dist/esm-es5/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm-es5/stzh-input.entry.js +1 -1
- package/dist/esm-es5/stzh-link.entry.js +1 -1
- package/dist/esm-es5/stzh-logo.entry.js +2 -0
- package/dist/esm-es5/stzh-logo.entry.js.map +1 -0
- package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
- package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js +1 -1
- package/dist/esm-es5/stzh-panorama.entry.js.map +1 -1
- package/dist/esm-es5/stzh-popover.entry.js +1 -1
- package/dist/esm-es5/stzh-print.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
- package/dist/esm-es5/stzh-progressbar-item.entry.js.map +1 -1
- package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js +1 -1
- package/dist/esm-es5/stzh-row.entry.js.map +1 -1
- package/dist/esm-es5/stzh-scrollup.entry.js +1 -1
- package/dist/esm-es5/stzh-share.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js +1 -1
- package/dist/esm-es5/stzh-space.entry.js.map +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js +1 -1
- package/dist/esm-es5/stzh-sticky.entry.js.map +1 -1
- package/dist/esm-es5/stzh-table.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js +1 -1
- package/dist/esm-es5/stzh-text.entry.js.map +1 -1
- package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
- package/dist/esm-es5/stzh-timeline-item.entry.js +1 -1
- package/dist/esm-es5/stzh-toast.entry.js +1 -1
- package/dist/esm-es5/stzh-toggle.entry.js +1 -1
- package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
- package/dist/esm-es5/stzh-upload.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js +1 -1
- package/dist/esm-es5/stzh-vspace.entry.js.map +1 -1
- package/dist/esm-es5/utils-8bb4c3c6.js +2 -0
- package/dist/esm-es5/utils-8bb4c3c6.js.map +1 -0
- package/dist/stzh-components/assets/i18n/de.json +19 -10
- package/dist/stzh-components/assets/i18n/en.json +19 -10
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-a509436d.entry.js → p-0164f9d1.entry.js} +2 -2
- package/dist/stzh-components/p-0164f9d1.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f1910e4.system.entry.js → p-0684cfac.system.entry.js} +2 -2
- package/dist/stzh-components/{p-1f1910e4.system.entry.js.map → p-0684cfac.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-07819ba5.entry.js +2 -0
- package/dist/stzh-components/p-07819ba5.entry.js.map +1 -0
- package/dist/stzh-components/{p-6b9365fe.system.entry.js → p-0b4cba00.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1fbe1d1.system.entry.js → p-0b8a15cc.system.entry.js} +2 -2
- package/dist/stzh-components/p-0bb08043.system.js.map +1 -1
- package/dist/stzh-components/p-0c049996.system.entry.js +2 -0
- package/dist/stzh-components/p-0c049996.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-9bd8613c.system.entry.js → p-0c2381f6.system.entry.js} +2 -2
- package/dist/stzh-components/p-0d9aa70c.entry.js +2 -0
- package/dist/stzh-components/p-0d9aa70c.entry.js.map +1 -0
- package/dist/stzh-components/{p-55a00af2.entry.js → p-10361297.entry.js} +2 -2
- package/dist/stzh-components/p-1095d872.system.entry.js +2 -0
- package/dist/stzh-components/p-1095d872.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-26f37848.entry.js → p-11031613.entry.js} +2 -2
- package/dist/stzh-components/{p-062360a4.system.entry.js → p-153f8f3f.system.entry.js} +2 -2
- package/dist/stzh-components/p-15980af0.entry.js +10 -0
- package/dist/stzh-components/p-15980af0.entry.js.map +1 -0
- package/dist/stzh-components/{p-fbf4ee43.system.entry.js → p-1834deba.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c1fa2872.system.entry.js → p-188dd49d.system.entry.js} +2 -2
- package/dist/stzh-components/{p-68e15c10.system.entry.js → p-1a49012e.system.entry.js} +2 -2
- package/dist/stzh-components/{p-2565c905.entry.js → p-1c9eee3d.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js → p-24c0e33a.system.entry.js} +2 -2
- package/dist/stzh-components/{p-badd636f.system.entry.js.map → p-24c0e33a.system.entry.js.map} +1 -1
- package/dist/stzh-components/p-2547ec12.system.entry.js +2 -0
- package/dist/stzh-components/p-2547ec12.system.entry.js.map +1 -0
- package/dist/stzh-components/p-287edde1.system.entry.js +2 -0
- package/dist/stzh-components/p-287edde1.system.entry.js.map +1 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js +2 -0
- package/dist/stzh-components/p-2a3fdd90.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-af5151b6.entry.js → p-2abcca01.entry.js} +2 -2
- package/dist/stzh-components/p-2abcca01.entry.js.map +1 -0
- package/dist/stzh-components/{p-97b0b868.system.entry.js → p-2ff7c5db.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e0e5d06f.system.entry.js → p-3154e4da.system.entry.js} +2 -2
- package/dist/stzh-components/{p-754f37ee.entry.js → p-34add4af.entry.js} +2 -2
- package/dist/stzh-components/{p-b28e5fd4.system.entry.js → p-34ff6606.system.entry.js} +2 -2
- package/dist/stzh-components/{p-46ccadd5.system.entry.js → p-3ab3a5a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-dd43141d.system.entry.js → p-3ceef7dd.system.entry.js} +2 -2
- package/dist/stzh-components/p-3df3f45c.entry.js +2 -0
- package/dist/stzh-components/p-3df3f45c.entry.js.map +1 -0
- package/dist/stzh-components/{p-e42dbd26.system.entry.js → p-42e25ae1.system.entry.js} +3 -3
- package/dist/stzh-components/p-42e25ae1.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-38ebb72d.system.entry.js → p-42f483f6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-508f6d3d.entry.js → p-488c5c8a.entry.js} +2 -2
- package/dist/stzh-components/{p-a5b55401.entry.js → p-4ad49ece.entry.js} +2 -2
- package/dist/stzh-components/{p-f8b5c7a8.entry.js → p-4c091b1b.entry.js} +2 -2
- package/dist/stzh-components/{p-66965853.entry.js → p-4cb041d5.entry.js} +2 -2
- package/dist/stzh-components/{p-9a22e78f.system.entry.js → p-509f90d0.system.entry.js} +2 -2
- package/dist/stzh-components/p-509f90d0.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-ff2029b6.entry.js → p-5342d3ae.entry.js} +2 -2
- package/dist/stzh-components/{p-ff2029b6.entry.js.map → p-5342d3ae.entry.js.map} +1 -1
- package/dist/stzh-components/{p-243f3d8c.system.entry.js → p-54a1fdcc.system.entry.js} +2 -2
- package/dist/stzh-components/p-54dbcd0e.system.entry.js +11 -0
- package/dist/stzh-components/p-54dbcd0e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-1f6fe9f1.entry.js → p-5cea16ad.entry.js} +2 -2
- package/dist/stzh-components/{p-1f6fe9f1.entry.js.map → p-5cea16ad.entry.js.map} +1 -1
- package/dist/stzh-components/{p-b218ae94.system.entry.js → p-5d02c5e0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-01436630.system.entry.js → p-5e861cb6.system.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js → p-64845b66.entry.js} +2 -2
- package/dist/stzh-components/{p-45e98de0.entry.js.map → p-64845b66.entry.js.map} +1 -1
- package/dist/stzh-components/{p-95e4bc28.entry.js → p-68feffea.entry.js} +2 -2
- package/dist/stzh-components/{p-a6938665.entry.js → p-6a91ac35.entry.js} +2 -2
- package/dist/stzh-components/p-6a91ac35.entry.js.map +1 -0
- package/dist/stzh-components/{p-93c73a62.entry.js → p-6b9b037a.entry.js} +2 -2
- package/dist/stzh-components/{p-93c73a62.entry.js.map → p-6b9b037a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-98357b67.system.entry.js → p-6e979c9c.system.entry.js} +2 -2
- package/dist/stzh-components/{p-98357b67.system.entry.js.map → p-6e979c9c.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-d5b2327f.system.entry.js → p-709514fc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-c9f0cf53.entry.js → p-73442cf1.entry.js} +2 -2
- package/dist/stzh-components/{p-fd41d303.entry.js → p-7873a639.entry.js} +2 -2
- package/dist/stzh-components/p-7c2aa5e8.entry.js +2 -0
- package/dist/stzh-components/{p-41b2f989.entry.js.map → p-7c2aa5e8.entry.js.map} +1 -1
- package/dist/stzh-components/{p-a7ef9c99.entry.js → p-80851e3d.entry.js} +2 -2
- package/dist/stzh-components/p-80f1f324.system.entry.js +2 -0
- package/dist/stzh-components/p-80f1f324.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-e1bada00.entry.js → p-83a216d7.entry.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js → p-84ae2651.system.js} +2 -2
- package/dist/stzh-components/{p-1e7376c9.system.js.map → p-84ae2651.system.js.map} +1 -1
- package/dist/stzh-components/{p-bd5b6832.system.entry.js → p-88adaf4b.system.entry.js} +2 -2
- package/dist/stzh-components/{p-34a359dd.entry.js → p-88e6248e.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js → p-8c1c75a7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e4e8b73a.system.entry.js.map → p-8c1c75a7.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-7e76c84a.entry.js → p-91e7dae0.entry.js} +2 -2
- package/dist/stzh-components/{p-a8c669b2.system.entry.js → p-97704eb0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js → p-98b60fb7.js} +2 -2
- package/dist/stzh-components/{p-a00db16c.js.map → p-98b60fb7.js.map} +1 -1
- package/dist/stzh-components/p-9d0fedfe.system.entry.js +2 -0
- package/dist/stzh-components/{p-8de3379f.system.entry.js.map → p-9d0fedfe.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-67a483cf.system.entry.js → p-a0b350c2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-a4c5ef8d.entry.js → p-a312a505.entry.js} +2 -2
- package/dist/stzh-components/p-a60e85c8.system.entry.js +2 -0
- package/dist/stzh-components/p-a60e85c8.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-99ec62a5.entry.js → p-a94dd79b.entry.js} +2 -2
- package/dist/stzh-components/{p-99ec62a5.entry.js.map → p-a94dd79b.entry.js.map} +1 -1
- package/dist/stzh-components/p-aa337ae2.entry.js +2 -0
- package/dist/stzh-components/p-aa337ae2.entry.js.map +1 -0
- package/dist/stzh-components/{p-80e08833.entry.js → p-abbcda3b.entry.js} +2 -2
- package/dist/stzh-components/p-ae8eaf99.entry.js +2 -0
- package/dist/stzh-components/p-ae8eaf99.entry.js.map +1 -0
- package/dist/stzh-components/{p-793a530d.entry.js → p-af33b013.entry.js} +2 -2
- package/dist/stzh-components/{p-19b7b131.entry.js → p-afb2885a.entry.js} +2 -2
- package/dist/stzh-components/p-b305ec22.entry.js +2 -0
- package/dist/stzh-components/p-b305ec22.entry.js.map +1 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js +2 -0
- package/dist/stzh-components/p-b6fed7ff.entry.js.map +1 -0
- package/dist/stzh-components/{p-cc10a5c5.system.entry.js → p-bb2fe16f.system.entry.js} +2 -2
- package/dist/stzh-components/p-bb2fe16f.system.entry.js.map +1 -0
- package/dist/stzh-components/p-bde8bb45.system.js +2 -0
- package/dist/stzh-components/{p-044b80d8.system.js.map → p-bde8bb45.system.js.map} +1 -1
- package/dist/stzh-components/{p-7a7eb40f.system.entry.js → p-c143a3f0.system.entry.js} +2 -2
- package/dist/stzh-components/{p-0a57145c.system.entry.js → p-c1ab5b6a.system.entry.js} +2 -2
- package/dist/stzh-components/p-c1ab5b6a.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-fb70c624.system.entry.js → p-c41d9fa7.system.entry.js} +2 -2
- package/dist/stzh-components/{p-ebd47e41.entry.js → p-c5a4865c.entry.js} +2 -2
- package/dist/stzh-components/{p-7007044a.entry.js → p-c7a068ee.entry.js} +2 -2
- package/dist/stzh-components/{p-ae44fab0.entry.js → p-cb906ad4.entry.js} +2 -2
- package/dist/stzh-components/{p-70461b7e.entry.js → p-cc260e20.entry.js} +2 -2
- package/dist/stzh-components/p-cc260e20.entry.js.map +1 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js +2 -0
- package/dist/stzh-components/p-cfd1eed9.system.entry.js.map +1 -0
- package/dist/stzh-components/p-cfdb06e4.js +2 -0
- package/dist/stzh-components/p-cfdb06e4.js.map +1 -0
- package/dist/stzh-components/{p-54c0340b.entry.js → p-d0678cbb.entry.js} +2 -2
- package/dist/stzh-components/p-d22fbf2e.system.entry.js +2 -0
- package/dist/stzh-components/p-d22fbf2e.system.entry.js.map +1 -0
- package/dist/stzh-components/{p-42138c55.entry.js → p-d362dc3a.entry.js} +2 -2
- package/dist/stzh-components/{p-3ac03d9a.entry.js → p-ded183e7.entry.js} +2 -2
- package/dist/stzh-components/{p-58a6ed19.system.entry.js → p-df322682.system.entry.js} +2 -2
- package/dist/stzh-components/{p-d50495d5.entry.js → p-e24cfa3e.entry.js} +2 -2
- package/dist/stzh-components/{p-ffe3fbab.entry.js → p-e3cd443b.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js → p-e61f6afc.system.entry.js} +2 -2
- package/dist/stzh-components/{p-e58d6819.system.entry.js.map → p-e61f6afc.system.entry.js.map} +1 -1
- package/dist/stzh-components/{p-f16e40f8.system.entry.js → p-e670eba0.system.entry.js} +2 -2
- package/dist/stzh-components/p-ed2896cd.entry.js +2 -0
- package/dist/stzh-components/p-ed2896cd.entry.js.map +1 -0
- package/dist/stzh-components/{p-3ccf5529.system.entry.js → p-f159a561.system.entry.js} +2 -2
- package/dist/stzh-components/p-f6662aa5.entry.js +2 -0
- package/dist/stzh-components/p-f6662aa5.entry.js.map +1 -0
- package/dist/stzh-components/p-f73af272.entry.js +8 -0
- package/dist/stzh-components/p-f73af272.entry.js.map +1 -0
- package/dist/stzh-components/{p-75beb9f8.system.entry.js → p-f8511c39.system.entry.js} +2 -2
- package/dist/stzh-components/{p-b1851b3e.entry.js → p-f91187c8.entry.js} +2 -2
- package/dist/stzh-components/p-f9cb0fcd.system.js +2 -0
- package/dist/stzh-components/p-f9cb0fcd.system.js.map +1 -0
- package/dist/stzh-components/{p-4e32ee7a.system.entry.js → p-ff1d24e2.system.entry.js} +2 -2
- package/dist/stzh-components/{p-61589824.system.entry.js → p-ff356dc8.system.entry.js} +2 -2
- package/dist/stzh-components/{p-9145f8d9.system.entry.js → p-ff9a0645.system.entry.js} +2 -2
- package/dist/stzh-components/p-ff9a0645.system.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components/stzh-accordion/stzh-accordion.d.ts +15 -0
- package/dist/types/components/stzh-accordion-item/stzh-accordion-item.d.ts +73 -0
- package/dist/types/components/stzh-actions/stzh-actions.d.ts +16 -0
- package/dist/types/components/stzh-actionset/stzh-actionset.d.ts +45 -0
- package/dist/types/components/stzh-amount/stzh-amount.d.ts +73 -0
- package/dist/types/components/stzh-appnav/stzh-appnav.d.ts +23 -0
- package/dist/types/components/stzh-appointments/stzh-appointments.d.ts +73 -0
- package/dist/types/components/stzh-audio/stzh-audio.d.ts +58 -0
- package/dist/types/components/stzh-button/stzh-button.d.ts +105 -0
- package/dist/types/components/stzh-buttongroup/stzh-buttongroup.d.ts +7 -0
- package/dist/types/components/stzh-calendar/stzh-calendar.d.ts +88 -0
- package/dist/types/components/stzh-card/stzh-card.d.ts +127 -0
- package/dist/types/components/stzh-card-list/stzh-card-list.d.ts +31 -0
- package/dist/types/components/stzh-carousel/stzh-carousel.d.ts +175 -0
- package/dist/types/components/stzh-chart/stzh-chart.d.ts +15 -0
- package/dist/types/components/stzh-checkbox/stzh-checkbox.d.ts +57 -0
- package/dist/types/components/stzh-checkboxgroup/stzh-checkboxgroup.d.ts +64 -0
- package/dist/types/components/stzh-chip/stzh-chip.d.ts +74 -0
- package/dist/types/components/stzh-chip-select/stzh-chip-select.d.ts +46 -0
- package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +49 -0
- package/dist/types/components/stzh-contact/stzh-contact.d.ts +54 -0
- package/dist/types/components/stzh-datalist/stzh-datalist.d.ts +51 -0
- package/dist/types/components/stzh-datalist-item/stzh-datalist-item.d.ts +62 -0
- package/dist/types/components/stzh-datamessagelist/stzh-datamessagelist.d.ts +6 -0
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +57 -0
- package/dist/types/components/stzh-datatable/stzh-datatable.d.ts +103 -0
- package/dist/types/components/stzh-datepicker/stzh-datepicker.d.ts +91 -0
- package/dist/types/components/stzh-details/stzh-details.d.ts +35 -0
- package/dist/types/components/stzh-dialog/stzh-dialog.d.ts +64 -0
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +173 -0
- package/dist/types/components/stzh-figure/stzh-figure.d.ts +21 -0
- package/dist/types/components/stzh-flyingfocus/stzh-flyingfocus.d.ts +35 -0
- package/dist/types/components/stzh-footer/stzh-footer.d.ts +27 -0
- package/dist/types/components/stzh-gallery/stzh-gallery.d.ts +54 -0
- package/dist/types/components/stzh-gallery/stzh-gallery.localization.d.ts +10 -0
- package/dist/types/components/stzh-ghettobox/stzh-ghettobox.d.ts +50 -0
- package/dist/types/components/stzh-header/stzh-header.d.ts +68 -0
- package/dist/types/components/stzh-hr/stzh-hr.d.ts +7 -0
- package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +60 -0
- package/dist/types/components/stzh-imagecomparison/stzh-imagecomparison.d.ts +29 -0
- package/dist/types/components/stzh-input/stzh-input.d.ts +104 -0
- package/dist/types/components/stzh-invert/stzh-invert.d.ts +7 -0
- package/dist/types/components/stzh-langnav/stzh-langnav.d.ts +19 -0
- package/dist/types/components/stzh-link/stzh-link.d.ts +88 -0
- package/dist/types/components/stzh-list/stzh-list.d.ts +9 -0
- package/dist/types/components/stzh-list-item/stzh-list-item.d.ts +7 -0
- package/dist/types/components/stzh-loader/stzh-loader.d.ts +13 -0
- package/dist/types/components/stzh-loadingbar/stzh-loadingbar.d.ts +12 -0
- package/dist/types/components/stzh-logo/stzh-logo.d.ts +9 -0
- package/dist/types/components/stzh-menu-item/stzh-menu-item.d.ts +50 -0
- package/dist/types/components/stzh-message/stzh-message.d.ts +37 -0
- package/dist/types/components/stzh-metanav/stzh-metanav.d.ts +11 -0
- package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.d.ts +33 -0
- package/dist/types/components/stzh-monthyearpicker/stzh-monthyearpicker.d.ts +98 -0
- package/dist/types/components/stzh-olmap/stzh-olmap.d.ts +124 -0
- package/dist/types/components/stzh-overlay/stzh-overlay.d.ts +34 -0
- package/dist/types/components/stzh-page-skiplinks/stzh-page-skiplinks.d.ts +11 -0
- package/dist/types/components/stzh-pagebottom/stzh-pagebottom.d.ts +29 -0
- package/dist/types/components/stzh-pagetitle/stzh-pagetitle.d.ts +15 -0
- package/dist/types/components/stzh-pagetitle-hero/stzh-pagetitle-hero.d.ts +25 -0
- package/dist/types/components/stzh-pagination/stzh-pagination.d.ts +52 -0
- package/dist/types/components/stzh-panorama/stzh-panorama.d.ts +74 -0
- package/dist/types/components/stzh-popover/stzh-popover.d.ts +73 -0
- package/dist/types/components/stzh-print/stzh-print.d.ts +12 -0
- package/dist/types/components/stzh-progressbar/stzh-progressbar.d.ts +49 -0
- package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +34 -0
- package/dist/types/components/stzh-radio/stzh-radio.d.ts +57 -0
- package/dist/types/components/stzh-radiogroup/stzh-radiogroup.d.ts +66 -0
- package/dist/types/components/stzh-ratio/stzh-ratio.d.ts +22 -0
- package/dist/types/components/stzh-readspeaker/stzh-readspeaker.d.ts +18 -0
- package/dist/types/components/stzh-richtext/stzh-richtext.d.ts +22 -0
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +28 -0
- package/dist/types/components/stzh-scrollup/stzh-scrollup.d.ts +12 -0
- package/dist/types/components/stzh-share/stzh-share.d.ts +21 -0
- package/dist/types/components/stzh-show/stzh-show.d.ts +22 -0
- package/dist/types/components/stzh-sitemap/stzh-sitemap.d.ts +14 -0
- package/dist/types/components/stzh-skiplink/stzh-skiplink.d.ts +38 -0
- package/dist/types/components/stzh-sortable/stzh-sortable.d.ts +59 -0
- package/dist/types/components/stzh-status/stzh-status.d.ts +14 -0
- package/dist/types/components/stzh-sticky/stzh-sticky.d.ts +58 -0
- package/dist/types/components/stzh-table/stzh-table.d.ts +43 -0
- package/dist/types/components/stzh-textandimage/stzh-textandimage.d.ts +14 -0
- package/dist/types/components/stzh-timeline/stzh-timeline.d.ts +23 -0
- package/dist/types/components/stzh-timeline-item/stzh-timeline-item.d.ts +78 -0
- package/dist/types/components/stzh-timepicker/stzh-timepicker.d.ts +62 -0
- package/dist/types/components/stzh-toast/stzh-toast.d.ts +39 -0
- package/dist/types/components/stzh-toastbar/stzh-toastbar.d.ts +41 -0
- package/dist/types/components/stzh-toggle/stzh-toggle.d.ts +59 -0
- package/dist/types/components/stzh-tooltip/stzh-tooltip.d.ts +80 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +236 -0
- package/dist/types/components/stzh-vbz-carousel/stzh-vbz-carousel.d.ts +14 -0
- package/dist/types/components/stzh-vbz-linechip/stzh-vbz-linechip.d.ts +37 -0
- package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.d.ts +41 -0
- package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.d.ts +34 -0
- package/dist/types/components/stzh-youtube/stzh-youtube.d.ts +30 -0
- package/dist/types/components.d.ts +101 -24
- package/dist/types/index.d.ts +899 -0
- package/dist/types/libraries/tom-select/types/constants.d.ts +12 -0
- package/dist/types/libraries/tom-select/types/contrib/highlight.d.ts +13 -0
- package/dist/types/libraries/tom-select/types/contrib/microevent.d.ts +20 -0
- package/dist/types/libraries/tom-select/types/contrib/microplugin.d.ts +71 -0
- package/dist/types/libraries/tom-select/types/defaults.d.ts +51 -0
- package/dist/types/libraries/tom-select/types/getSettings.d.ts +3 -0
- package/dist/types/libraries/tom-select/types/plugins/caret_position/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/change_listener/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/checkbox_options/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/clear_button/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/clear_button/types.d.ts +5 -0
- package/dist/types/libraries/tom-select/types/plugins/drag_drop/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_header/types.d.ts +8 -0
- package/dist/types/libraries/tom-select/types/plugins/dropdown_input/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/input_autogrow/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/no_active_items/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/no_backspace_delete/plugin.d.ts +15 -0
- package/dist/types/libraries/tom-select/types/plugins/optgroup_columns/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/plugins/remove_button/plugin.d.ts +17 -0
- package/dist/types/libraries/tom-select/types/plugins/remove_button/types.d.ts +6 -0
- package/dist/types/libraries/tom-select/types/plugins/restore_on_backspace/plugin.d.ts +21 -0
- package/dist/types/libraries/tom-select/types/plugins/virtual_scroll/plugin.d.ts +16 -0
- package/dist/types/libraries/tom-select/types/tom-select.complete.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/tom-select.d.ts +596 -0
- package/dist/types/libraries/tom-select/types/tom-select.popular.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/types/core.d.ts +48 -0
- package/dist/types/libraries/tom-select/types/types/index.d.ts +2 -0
- package/dist/types/libraries/tom-select/types/types/settings.d.ts +78 -0
- package/dist/types/libraries/tom-select/types/utils.d.ts +76 -0
- package/dist/types/libraries/tom-select/types/vanilla.d.ts +76 -0
- package/dist/types/types/svg.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +5 -0
- package/package.json +2 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +0 -40
- package/dist/cjs/stzh-figure.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-hspace.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-ratio.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-show.cjs.entry.js +0 -43
- package/dist/cjs/stzh-show.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-77bc0ea1.js.map +0 -1
- package/dist/esm/stzh-figure.entry.js +0 -36
- package/dist/esm/stzh-figure.entry.js.map +0 -1
- package/dist/esm/stzh-hspace.entry.js.map +0 -1
- package/dist/esm/stzh-ratio.entry.js.map +0 -1
- package/dist/esm/stzh-show.entry.js.map +0 -1
- package/dist/esm/utils-107fad0f.js.map +0 -1
- package/dist/esm-es5/stzh-figure.entry.js +0 -2
- package/dist/esm-es5/stzh-figure.entry.js.map +0 -1
- package/dist/esm-es5/stzh-hspace.entry.js +0 -2
- package/dist/esm-es5/stzh-hspace.entry.js.map +0 -1
- package/dist/esm-es5/stzh-ratio.entry.js +0 -2
- package/dist/esm-es5/stzh-ratio.entry.js.map +0 -1
- package/dist/esm-es5/stzh-show.entry.js +0 -2
- package/dist/esm-es5/stzh-show.entry.js.map +0 -1
- package/dist/esm-es5/utils-107fad0f.js +0 -2
- package/dist/esm-es5/utils-107fad0f.js.map +0 -1
- package/dist/stzh-components/p-004b3030.system.entry.js +0 -2
- package/dist/stzh-components/p-004b3030.system.entry.js.map +0 -1
- package/dist/stzh-components/p-044b80d8.system.js +0 -2
- package/dist/stzh-components/p-0a57145c.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0c8d651e.entry.js +0 -2
- package/dist/stzh-components/p-0c8d651e.entry.js.map +0 -1
- package/dist/stzh-components/p-0e5d39e2.system.entry.js +0 -2
- package/dist/stzh-components/p-0e5d39e2.system.entry.js.map +0 -1
- package/dist/stzh-components/p-0ed6eafb.system.entry.js +0 -2
- package/dist/stzh-components/p-0ed6eafb.system.entry.js.map +0 -1
- package/dist/stzh-components/p-168f0faa.entry.js +0 -8
- package/dist/stzh-components/p-168f0faa.entry.js.map +0 -1
- package/dist/stzh-components/p-18bf2b21.system.entry.js +0 -2
- package/dist/stzh-components/p-18bf2b21.system.entry.js.map +0 -1
- package/dist/stzh-components/p-2452dd71.system.entry.js +0 -2
- package/dist/stzh-components/p-2452dd71.system.entry.js.map +0 -1
- package/dist/stzh-components/p-330bdf15.system.entry.js +0 -2
- package/dist/stzh-components/p-330bdf15.system.entry.js.map +0 -1
- package/dist/stzh-components/p-341c1c6c.entry.js +0 -2
- package/dist/stzh-components/p-341c1c6c.entry.js.map +0 -1
- package/dist/stzh-components/p-41b2f989.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js +0 -2
- package/dist/stzh-components/p-52e9dbe5.entry.js.map +0 -1
- package/dist/stzh-components/p-53e44e89.system.js +0 -2
- package/dist/stzh-components/p-53e44e89.system.js.map +0 -1
- package/dist/stzh-components/p-645bbb42.entry.js +0 -2
- package/dist/stzh-components/p-645bbb42.entry.js.map +0 -1
- package/dist/stzh-components/p-70461b7e.entry.js.map +0 -1
- package/dist/stzh-components/p-74e07267.entry.js +0 -2
- package/dist/stzh-components/p-74e07267.entry.js.map +0 -1
- package/dist/stzh-components/p-7b044a55.entry.js +0 -2
- package/dist/stzh-components/p-7b044a55.entry.js.map +0 -1
- package/dist/stzh-components/p-7eaed674.system.entry.js +0 -2
- package/dist/stzh-components/p-7eaed674.system.entry.js.map +0 -1
- package/dist/stzh-components/p-8de3379f.system.entry.js +0 -2
- package/dist/stzh-components/p-9145f8d9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-9a22e78f.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a27c6c02.system.entry.js +0 -2
- package/dist/stzh-components/p-a27c6c02.system.entry.js.map +0 -1
- package/dist/stzh-components/p-a509436d.entry.js.map +0 -1
- package/dist/stzh-components/p-a6938665.entry.js.map +0 -1
- package/dist/stzh-components/p-a999bb48.entry.js +0 -2
- package/dist/stzh-components/p-a999bb48.entry.js.map +0 -1
- package/dist/stzh-components/p-af5151b6.entry.js.map +0 -1
- package/dist/stzh-components/p-ba8c574b.js +0 -2
- package/dist/stzh-components/p-ba8c574b.js.map +0 -1
- package/dist/stzh-components/p-c2fcd668.entry.js +0 -2
- package/dist/stzh-components/p-c2fcd668.entry.js.map +0 -1
- package/dist/stzh-components/p-cc10a5c5.system.entry.js.map +0 -1
- package/dist/stzh-components/p-d18665b6.system.entry.js +0 -2
- package/dist/stzh-components/p-d18665b6.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e42dbd26.system.entry.js.map +0 -1
- package/dist/stzh-components/p-e6f1bae9.system.entry.js +0 -2
- package/dist/stzh-components/p-e6f1bae9.system.entry.js.map +0 -1
- package/dist/stzh-components/p-ebaf8f26.entry.js +0 -2
- package/dist/stzh-components/p-ebaf8f26.entry.js.map +0 -1
- package/dist/stzh-components/p-ef274d0c.entry.js +0 -2
- package/dist/stzh-components/p-ef274d0c.entry.js.map +0 -1
- package/dist/vscode-data.json +0 -7422
- /package/dist/stzh-components/{p-6b9365fe.system.entry.js.map → p-0b4cba00.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1fbe1d1.system.entry.js.map → p-0b8a15cc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-9bd8613c.system.entry.js.map → p-0c2381f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-55a00af2.entry.js.map → p-10361297.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-26f37848.entry.js.map → p-11031613.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-062360a4.system.entry.js.map → p-153f8f3f.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fbf4ee43.system.entry.js.map → p-1834deba.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c1fa2872.system.entry.js.map → p-188dd49d.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-68e15c10.system.entry.js.map → p-1a49012e.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2565c905.entry.js.map → p-1c9eee3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-97b0b868.system.entry.js.map → p-2ff7c5db.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e0e5d06f.system.entry.js.map → p-3154e4da.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-754f37ee.entry.js.map → p-34add4af.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b28e5fd4.system.entry.js.map → p-34ff6606.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-46ccadd5.system.entry.js.map → p-3ab3a5a7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd43141d.system.entry.js.map → p-3ceef7dd.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-38ebb72d.system.entry.js.map → p-42f483f6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-508f6d3d.entry.js.map → p-488c5c8a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a5b55401.entry.js.map → p-4ad49ece.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f8b5c7a8.entry.js.map → p-4c091b1b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-66965853.entry.js.map → p-4cb041d5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-243f3d8c.system.entry.js.map → p-54a1fdcc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b218ae94.system.entry.js.map → p-5d02c5e0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-01436630.system.entry.js.map → p-5e861cb6.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-95e4bc28.entry.js.map → p-68feffea.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d5b2327f.system.entry.js.map → p-709514fc.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c9f0cf53.entry.js.map → p-73442cf1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fd41d303.entry.js.map → p-7873a639.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a7ef9c99.entry.js.map → p-80851e3d.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e1bada00.entry.js.map → p-83a216d7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-bd5b6832.system.entry.js.map → p-88adaf4b.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-34a359dd.entry.js.map → p-88e6248e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7e76c84a.entry.js.map → p-91e7dae0.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a8c669b2.system.entry.js.map → p-97704eb0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-67a483cf.system.entry.js.map → p-a0b350c2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a4c5ef8d.entry.js.map → p-a312a505.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-80e08833.entry.js.map → p-abbcda3b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-793a530d.entry.js.map → p-af33b013.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-19b7b131.entry.js.map → p-afb2885a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7a7eb40f.system.entry.js.map → p-c143a3f0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fb70c624.system.entry.js.map → p-c41d9fa7.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ebd47e41.entry.js.map → p-c5a4865c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-7007044a.entry.js.map → p-c7a068ee.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ae44fab0.entry.js.map → p-cb906ad4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-54c0340b.entry.js.map → p-d0678cbb.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-42138c55.entry.js.map → p-d362dc3a.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ac03d9a.entry.js.map → p-ded183e7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-58a6ed19.system.entry.js.map → p-df322682.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d50495d5.entry.js.map → p-e24cfa3e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ffe3fbab.entry.js.map → p-e3cd443b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f16e40f8.system.entry.js.map → p-e670eba0.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-3ccf5529.system.entry.js.map → p-f159a561.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-75beb9f8.system.entry.js.map → p-f8511c39.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b1851b3e.entry.js.map → p-f91187c8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4e32ee7a.system.entry.js.map → p-ff1d24e2.system.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-61589824.system.entry.js.map → p-ff356dc8.system.entry.js.map} +0 -0
|
@@ -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.
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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":
|
|
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,MAA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f,IAAI,CAAC,QAAQ,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;EACrC,CAAC;EAED,oBAAoB;IAClB,IAAI,IAAI,CAAC,QAAQ,EAAE;MACjB,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;KAC5B;EACH,CAAC;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,aAAa,EAAE,IAAI;MACnB,uBAAuB,EAAE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,aAAa;MAC9D,2BAA2B,EAAE,IAAI,CAAC,UAAU;MAC5C,8BAA8B,EAAE,IAAI,CAAC,aAAa;MAClD,0BAA0B,EAAE,IAAI,CAAC,QAAQ;KAC1C,CAAC;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,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,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;OAClD;MAED,IAAI,CAAC,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACxE,CAAC,CAAA;IAEO,iBAAY,GAAG,GAAG,EAAE;MAC1B,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;OAClD;MAED,IAAI,CAAC,cAAc,GAAG,qBAAqB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACxE,CAAC,CAAA;IAEO,wBAAmB,GAAG,GAAG,EAAE;MACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;QAClC,OAAO;OACR;MAED,IAAI,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"]}
|
|
@@ -7,75 +7,111 @@ import { CTA as Button_CTA } from '../stzh-button/stzh-button.stories';
|
|
|
7
7
|
const COMPONENT_NAME = 'stzh-sticky';
|
|
8
8
|
const story = createComponentStory(COMPONENT_NAME);
|
|
9
9
|
|
|
10
|
-
const TEMPLATE =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const TEMPLATE = (args) => {
|
|
11
|
+
return `
|
|
12
|
+
<div>
|
|
13
|
+
<stzh-text>
|
|
14
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
15
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
16
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
17
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
18
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
19
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
20
|
+
</stzh-text>
|
|
17
21
|
|
|
18
|
-
<stzh-
|
|
19
|
-
<stzh-text>
|
|
20
|
-
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
22
|
+
<stzh-vspace></stzh-vspace>
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
<stzh-row>
|
|
25
|
+
<stzh-cell span-small="4">
|
|
26
|
+
<stzh-text>
|
|
27
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
28
|
+
</stzh-text>
|
|
29
|
+
</stzh-cell>
|
|
23
30
|
|
|
24
|
-
|
|
31
|
+
<stzh-cell span-small="8" data-stzh-sticky-container>
|
|
32
|
+
<stzh-text>
|
|
33
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
25
34
|
|
|
26
|
-
|
|
35
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
27
36
|
|
|
28
|
-
|
|
37
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
<p>Dolor consectetur nisi reprehenderit nostrud eiusmod ex quis officia est qui. Mollit sint reprehenderit et tempor ut aute anim magna irure fugiat cillum elit. Est est sit enim irure adipisicing est nulla. Aliqua tempor mollit ex fugiat pariatur adipisicing. Duis sit dolore aliqua pariatur do mollit aliqua consequat ex veniam.</p>
|
|
31
40
|
|
|
32
|
-
|
|
41
|
+
<p>Nostrud amet laboris exercitation voluptate fugiat proident culpa consequat commodo minim ut officia dolor ad. Ut ipsum officia ipsum officia aute ad ullamco minim adipisicing commodo consectetur ut est aliqua. Magna est incididunt nisi labore ipsum minim occaecat consectetur labore nulla. Enim reprehenderit culpa excepteur enim esse ad.</p>
|
|
33
42
|
|
|
34
|
-
|
|
43
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
35
44
|
|
|
36
|
-
|
|
45
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
37
46
|
|
|
38
|
-
|
|
47
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
41
50
|
|
|
42
|
-
|
|
43
|
-
</stzh-text>
|
|
51
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
44
52
|
|
|
45
|
-
|
|
46
|
-
<stzh-actions variant="cta">
|
|
47
|
-
${Button_CTA.render({ ...Button_CTA.args, slot: 'primary' }).outerHTML}
|
|
48
|
-
</stzh-actions>
|
|
49
|
-
</stzh-sticky>
|
|
53
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
<p>Dolor consectetur nisi reprehenderit nostrud eiusmod ex quis officia est qui. Mollit sint reprehenderit et tempor ut aute anim magna irure fugiat cillum elit. Est est sit enim irure adipisicing est nulla. Aliqua tempor mollit ex fugiat pariatur adipisicing. Duis sit dolore aliqua pariatur do mollit aliqua consequat ex veniam.</p>
|
|
56
|
+
</stzh-text>
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
${!args._nested ? `
|
|
59
|
+
<stzh-sticky>
|
|
60
|
+
<stzh-actions variant="cta">
|
|
61
|
+
${Button_CTA.render({ ...Button_CTA.args, slot: 'primary' }).outerHTML}
|
|
62
|
+
</stzh-actions>
|
|
63
|
+
</stzh-sticky>
|
|
64
|
+
` : `
|
|
65
|
+
<div>
|
|
66
|
+
<stzh-sticky>
|
|
67
|
+
<stzh-actions variant="cta">
|
|
68
|
+
${Button_CTA.render({ ...Button_CTA.args, slot: 'primary' }).outerHTML}
|
|
69
|
+
</stzh-actions>
|
|
70
|
+
</stzh-sticky>
|
|
71
|
+
</div>
|
|
72
|
+
`}
|
|
55
73
|
|
|
56
|
-
<
|
|
74
|
+
<stzh-text>
|
|
75
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
57
76
|
|
|
58
|
-
|
|
77
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
59
78
|
|
|
60
|
-
|
|
79
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
61
80
|
|
|
62
|
-
|
|
81
|
+
<p>Dolor consectetur nisi reprehenderit nostrud eiusmod ex quis officia est qui. Mollit sint reprehenderit et tempor ut aute anim magna irure fugiat cillum elit. Est est sit enim irure adipisicing est nulla. Aliqua tempor mollit ex fugiat pariatur adipisicing. Duis sit dolore aliqua pariatur do mollit aliqua consequat ex veniam.</p>
|
|
63
82
|
|
|
64
|
-
|
|
83
|
+
<p>Nostrud amet laboris exercitation voluptate fugiat proident culpa consequat commodo minim ut officia dolor ad. Ut ipsum officia ipsum officia aute ad ullamco minim adipisicing commodo consectetur ut est aliqua. Magna est incididunt nisi labore ipsum minim occaecat consectetur labore nulla. Enim reprehenderit culpa excepteur enim esse ad.</p>
|
|
65
84
|
|
|
66
|
-
|
|
85
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
67
86
|
|
|
68
|
-
|
|
87
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
69
88
|
|
|
70
|
-
|
|
89
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
71
90
|
|
|
72
|
-
|
|
91
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
73
92
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
93
|
+
<p>Ipsum ea laborum consectetur amet enim voluptate in. Laboris deserunt duis irure mollit fugiat nisi elit anim elit. Sit incididunt eiusmod labore deserunt id ea aute nisi voluptate dolore non. Incididunt nostrud laboris magna Lorem non cupidatat ad in velit eiusmod non laborum minim occaecat. Adipisicing enim esse sint ex enim sunt duis excepteur. Quis ipsum ullamco nulla est incididunt fugiat laborum sit enim. Et tempor enim ut qui sint.</p>
|
|
94
|
+
|
|
95
|
+
<p>Incididunt nostrud amet ea nisi cupidatat. Elit esse incididunt tempor sint non deserunt qui excepteur consequat laborum excepteur adipisicing esse est. Consequat nulla enim cillum do anim mollit duis esse magna sint amet. Culpa in nulla enim adipisicing cillum non incididunt quis officia Lorem esse velit reprehenderit. Cupidatat ex exercitation officia nulla fugiat ex. Exercitation nisi proident duis sunt. Et minim cupidatat consectetur adipisicing irure enim.</p>
|
|
96
|
+
|
|
97
|
+
<p>Dolor consectetur nisi reprehenderit nostrud eiusmod ex quis officia est qui. Mollit sint reprehenderit et tempor ut aute anim magna irure fugiat cillum elit. Est est sit enim irure adipisicing est nulla. Aliqua tempor mollit ex fugiat pariatur adipisicing. Duis sit dolore aliqua pariatur do mollit aliqua consequat ex veniam.</p>
|
|
98
|
+
</stzh-text>
|
|
99
|
+
</stzh-cell>
|
|
100
|
+
</stzh-row>
|
|
101
|
+
|
|
102
|
+
<stzh-vspace></stzh-vspace>
|
|
103
|
+
|
|
104
|
+
<stzh-text>
|
|
105
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
106
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
107
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
108
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
109
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
110
|
+
<p>Laboris laborum aute id laboris culpa esse aliquip nisi anim velit. Minim sunt eiusmod do laborum amet ut magna. Labore dolore id nostrud enim Lorem pariatur ad dolore id eiusmod adipisicing laboris laborum minim. Reprehenderit deserunt ut occaecat sit sit ullamco laborum deserunt. Eu pariatur est exercitation ea ut tempor laborum. Amet veniam consectetur cupidatat Lorem eu ipsum.</p>
|
|
111
|
+
</stzh-text>
|
|
112
|
+
</div>
|
|
78
113
|
`;
|
|
114
|
+
}
|
|
79
115
|
|
|
80
116
|
export default {
|
|
81
117
|
title: 'Components/Sticky',
|
|
@@ -96,6 +132,14 @@ export default {
|
|
|
96
132
|
};
|
|
97
133
|
|
|
98
134
|
export const Default = {
|
|
99
|
-
render: (args) => story(args, TEMPLATE),
|
|
135
|
+
render: (args) => story(args, TEMPLATE(args)),
|
|
100
136
|
args: {}
|
|
101
137
|
}
|
|
138
|
+
|
|
139
|
+
export const NestedFixed = {
|
|
140
|
+
render: (args) => story(args, TEMPLATE(args)),
|
|
141
|
+
args: {
|
|
142
|
+
position: 'fixed',
|
|
143
|
+
_nested: true
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -151,6 +151,22 @@
|
|
|
151
151
|
:host ::slotted(* a):hover {
|
|
152
152
|
color: var(--stzh-link-hover-color);
|
|
153
153
|
}
|
|
154
|
+
:host ::slotted(b),
|
|
155
|
+
:host ::slotted(strong),
|
|
156
|
+
:host ::slotted(* b),
|
|
157
|
+
:host ::slotted(* strong) {
|
|
158
|
+
font-family: var(--stzh-font-family-heavy);
|
|
159
|
+
font-weight: var(--stzh-font-weight-heavy);
|
|
160
|
+
font-style: var(--stzh-font-style-heavy);
|
|
161
|
+
}
|
|
162
|
+
:host ::slotted(i),
|
|
163
|
+
:host ::slotted(em),
|
|
164
|
+
:host ::slotted(* i),
|
|
165
|
+
:host ::slotted(* em) {
|
|
166
|
+
font-family: var(--stzh-font-family-regular);
|
|
167
|
+
font-weight: var(--stzh-font-weight-regular);
|
|
168
|
+
font-style: var(--stzh-font-style-regular);
|
|
169
|
+
}
|
|
154
170
|
:host[lead]:not([lead=false]) {
|
|
155
171
|
--color: var(--stzh-base-lead-color);
|
|
156
172
|
}
|
|
@@ -220,6 +236,9 @@
|
|
|
220
236
|
font-weight: var(--stzh-font-weight-title);
|
|
221
237
|
font-style: var(--stzh-font-style-title);
|
|
222
238
|
}
|
|
239
|
+
.stzh-text--curve-none {
|
|
240
|
+
font-size: inherit;
|
|
241
|
+
}
|
|
223
242
|
.stzh-text--curve-caption {
|
|
224
243
|
font-size: var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));
|
|
225
244
|
line-height: var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));
|
|
@@ -69,7 +69,7 @@ export class StzhText {
|
|
|
69
69
|
"mutable": false,
|
|
70
70
|
"complexType": {
|
|
71
71
|
"original": "Font.Curves",
|
|
72
|
-
"resolved": "\"caption\" | \"default\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"hero\" | \"p1\" | \"p2\"",
|
|
72
|
+
"resolved": "\"caption\" | \"default\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"hero\" | \"none\" | \"p1\" | \"p2\"",
|
|
73
73
|
"references": {
|
|
74
74
|
"Font": {
|
|
75
75
|
"location": "import",
|