@content-blocks/js 0.7.6 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +111 -3
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -2
- package/dist/cjs/content-accordion.cjs.entry.js +87 -0
- package/dist/cjs/content-blocks.cjs.js +35 -11
- package/dist/cjs/content-button.cjs.entry.js +113 -0
- package/dist/cjs/content-carousel.cjs.entry.js +153 -47
- package/dist/cjs/content-grid-formatter.cjs.entry.js +102 -0
- package/dist/cjs/content-hero-block.cjs.entry.js +45 -0
- package/dist/cjs/content-image.cjs.entry.js +153 -0
- package/dist/cjs/content-line.cjs.entry.js +61 -0
- package/dist/cjs/content-navigation-block.cjs.entry.js +51 -34
- package/dist/cjs/content-overlay.cjs.entry.js +641 -0
- package/dist/cjs/content-spacer.cjs.entry.js +75 -0
- package/dist/cjs/content-split-block.cjs.entry.js +22 -19
- package/dist/cjs/content-tabs.cjs.entry.js +38 -21
- package/dist/cjs/content-text-block.cjs.entry.js +63 -0
- package/dist/cjs/content-tout-block.cjs.entry.js +34 -0
- package/dist/cjs/{content-accordion_11.cjs.entry.js → content-video.cjs.entry.js} +14560 -12927
- package/dist/cjs/{focus-trap.esm-7bc384a0.js → focus-trap.esm-ZwN-anf1.js} +484 -190
- package/dist/cjs/{index-2e0ce692.js → index-B1U6Gweq.js} +348 -246
- package/dist/cjs/index-ClnpH9XB.js +2170 -0
- package/dist/cjs/index-CyalvZJn.js +1719 -0
- package/dist/cjs/index-DUvWvBDN.js +290 -0
- package/dist/cjs/index-voGY4Tkl.js +4705 -0
- package/dist/cjs/index.cjs.js +2 -5
- package/dist/cjs/loader.cjs.js +3 -8
- package/dist/cjs/responsive-component-C5eJS82z.js +171 -0
- package/dist/cjs/responsive-component-DMdnQIPV.js +171 -0
- package/dist/cjs/swiper-KLYbvU1K.js +3931 -0
- package/dist/cjs/{swiper-8221f4e8.js → swiper-_Z8Y4IJI.js} +269 -236
- package/dist/cjs/utils-BCHaRGm_.js +462 -0
- package/dist/cjs/{utils-df044337.js → utils-C3gXIS2t.js} +51 -49
- package/dist/cjs/utils-DUvWvBDN.js +290 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +33 -48
- package/dist/collection/blocks/content-split-block/content-split-block.css +16 -5
- package/dist/collection/blocks/content-split-block/content-split-block.js +29 -48
- package/dist/collection/blocks/content-text-block/content-text-block.js +65 -59
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +3 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.js +22 -47
- package/dist/collection/collection-manifest.json +8 -5
- package/dist/collection/components/content-accordion/content-accordion.css +20 -1
- package/dist/collection/components/content-accordion/content-accordion.js +67 -33
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js +0 -1
- package/dist/collection/components/content-carousel/content-carousel.css +60 -4
- package/dist/collection/components/content-carousel/content-carousel.js +294 -44
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +15 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +86 -42
- package/dist/collection/components/content-overlay/content-overlay.css +36 -5
- package/dist/collection/components/content-overlay/content-overlay.js +181 -120
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js +7 -49
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js +0 -1
- package/dist/collection/elements/content-button/content-button.css +8 -7
- package/dist/collection/elements/content-button/content-button.js +103 -84
- package/dist/collection/elements/content-image/content-image.css +3 -1
- package/dist/collection/elements/content-image/content-image.js +176 -95
- package/dist/collection/elements/content-line/content-line.js +63 -54
- package/dist/collection/elements/content-video/content-video.css +1 -1
- package/dist/collection/elements/content-video/content-video.js +165 -92
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +8 -2
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +167 -89
- package/dist/collection/formatters/content-spacer/content-spacer.js +86 -209
- package/dist/collection/global/content-blocks-reset.css +77 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/sass/_mixins.scss +21 -5
- package/dist/collection/sass/_variables.scss +15 -15
- package/dist/collection/setupFiles.js +0 -1
- package/dist/collection/site/site.js +67 -0
- package/dist/collection/utils/breakpoints.js +162 -0
- package/dist/collection/utils/responsive-component.js +249 -0
- package/dist/collection/utils/utils.js +32 -42
- package/dist/components/content-accordion.js +65 -44
- package/dist/components/content-button.js +89 -43
- package/dist/components/content-carousel.js +172 -55
- package/dist/components/content-grid-formatter.js +127 -3
- package/dist/components/content-hero-block.js +33 -26
- package/dist/components/content-image.js +127 -71
- package/dist/components/content-line.js +56 -35
- package/dist/components/content-navigation-block.js +62 -39
- package/dist/components/content-overlay.js +128 -67
- package/dist/components/content-spacer.js +70 -54
- package/dist/components/content-split-block.js +33 -32
- package/dist/components/content-tabs.js +46 -25
- package/dist/components/content-text-block.js +55 -35
- package/dist/components/content-tout-block.js +29 -27
- package/dist/components/content-video.js +14624 -11972
- package/dist/{esm/focus-trap.esm-8fb54175.js → components/focus-trap.esm.js} +484 -190
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +3 -3
- package/dist/components/{p-5a91aa1b.js → index2.js} +348 -246
- package/dist/components/p-BWRCeMvO.js +1 -0
- package/dist/components/p-CYF5GU_q.js +1 -0
- package/dist/components/p-DXUoPIwl.js +10 -0
- package/dist/components/p-D_Ll4QNj.js +1 -0
- package/dist/components/p-DhIoW7H3.js +1 -0
- package/dist/components/responsive-component.js +168 -0
- package/dist/components/{p-e5dc4ea4.js → swiper.js} +268 -235
- package/dist/components/utils.js +4969 -0
- package/dist/{esm/utils-1c9f0ec1.js → components/utils2.js} +51 -50
- package/dist/content-blocks/content-accordion.entry.js +85 -0
- package/dist/content-blocks/content-blocks.esm.js +47 -2
- package/dist/content-blocks/content-button.entry.js +111 -0
- package/dist/content-blocks/content-carousel.entry.js +188 -0
- package/dist/content-blocks/content-grid-formatter.entry.js +100 -0
- package/dist/content-blocks/content-hero-block.entry.js +43 -0
- package/dist/content-blocks/content-image.entry.js +151 -0
- package/dist/content-blocks/content-line.entry.js +59 -0
- package/dist/content-blocks/content-navigation-block.entry.js +105 -0
- package/dist/content-blocks/content-overlay.entry.js +639 -0
- package/dist/content-blocks/content-spacer.entry.js +73 -0
- package/dist/content-blocks/content-split-block.entry.js +34 -0
- package/dist/content-blocks/content-tabs.entry.js +245 -0
- package/dist/content-blocks/content-text-block.entry.js +61 -0
- package/dist/content-blocks/content-tout-block.entry.js +32 -0
- package/dist/{esm/content-accordion_11.entry.js → content-blocks/content-video.entry.js} +14535 -12890
- package/dist/{components/p-a2fedf8a.js → content-blocks/focus-trap.esm-DXUoPIwl.js} +484 -190
- package/dist/content-blocks/global/content-blocks-reset.css +77 -0
- package/dist/content-blocks/index-BFDJMblF.js +4690 -0
- package/dist/{esm/index-f45a9c45.js → content-blocks/index-P1YnSd-O.js} +348 -246
- package/dist/content-blocks/index.esm.js +1 -2
- package/dist/content-blocks/p-008457f0.entry.js +1 -0
- package/dist/content-blocks/p-052692f1.entry.js +1 -0
- package/dist/content-blocks/p-0f71bd32.entry.js +1 -0
- package/dist/content-blocks/p-1f154617.entry.js +1 -0
- package/dist/content-blocks/p-2554ebd8.entry.js +1 -0
- package/dist/content-blocks/p-4afd6511.entry.js +1 -0
- package/dist/content-blocks/p-78d5de9f.entry.js +1 -0
- package/dist/content-blocks/p-7bcf7e7e.entry.js +1 -0
- package/dist/content-blocks/p-9058031c.entry.js +1 -0
- package/dist/content-blocks/p-9c41ac23.entry.js +17 -0
- package/dist/content-blocks/p-CLwOzPEO.js +3 -0
- package/dist/content-blocks/p-CYF5GU_q.js +1 -0
- package/dist/content-blocks/p-CjR_4mPu.js +1 -0
- package/dist/content-blocks/p-DQuL1Twl.js +1 -0
- package/dist/content-blocks/p-DXUoPIwl.js +10 -0
- package/dist/content-blocks/p-D_Ll4QNj.js +1 -0
- package/dist/content-blocks/p-DhIoW7H3.js +1 -0
- package/dist/content-blocks/p-DzYwy_62.js +1 -0
- package/dist/content-blocks/p-b2e6358a.entry.js +1 -0
- package/dist/content-blocks/p-c783bc68.entry.js +1 -0
- package/dist/content-blocks/p-e3d81e15.entry.js +1 -0
- package/dist/content-blocks/p-f23b4aae.entry.js +1 -0
- package/dist/content-blocks/p-f75c9094.entry.js +1 -0
- package/dist/content-blocks/responsive-component-BsLrcKbS.js +169 -0
- package/dist/content-blocks/sass/_mixins.scss +21 -5
- package/dist/content-blocks/sass/_variables.scss +15 -15
- package/dist/{esm/swiper-e9621adb.js → content-blocks/swiper-nBv069TB.js} +268 -235
- package/dist/{components/p-b85cfa86.js → content-blocks/utils--SDsQnWS.js} +51 -50
- package/dist/content-blocks/utils-Bak__24s.js +280 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +5312 -0
- package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -2
- package/dist/esm/content-accordion.entry.js +85 -0
- package/dist/esm/content-blocks.js +33 -8
- package/dist/esm/content-button.entry.js +111 -0
- package/dist/esm/content-carousel.entry.js +153 -45
- package/dist/esm/content-grid-formatter.entry.js +100 -0
- package/dist/esm/content-hero-block.entry.js +43 -0
- package/dist/esm/content-image.entry.js +151 -0
- package/dist/esm/content-line.entry.js +59 -0
- package/dist/esm/content-navigation-block.entry.js +51 -32
- package/dist/esm/content-overlay.entry.js +639 -0
- package/dist/esm/content-spacer.entry.js +73 -0
- package/dist/esm/content-split-block.entry.js +22 -17
- package/dist/esm/content-tabs.entry.js +38 -19
- package/dist/esm/content-text-block.entry.js +61 -0
- package/dist/esm/content-tout-block.entry.js +32 -0
- package/dist/esm/content-video.entry.js +72033 -0
- package/dist/esm/focus-trap.esm-DXUoPIwl.js +1801 -0
- package/dist/esm/index-BASCLGuP.js +1713 -0
- package/dist/esm/index-BFDJMblF.js +4690 -0
- package/dist/esm/index-CLwOzPEO.js +2161 -0
- package/dist/esm/index-CjR_4mPu.js +280 -0
- package/dist/esm/index-P1YnSd-O.js +5397 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/responsive-component-BsLrcKbS.js +169 -0
- package/dist/esm/responsive-component-D7dJHMp0.js +169 -0
- package/dist/esm/swiper-CtypHPwF.js +3928 -0
- package/dist/esm/swiper-nBv069TB.js +3941 -0
- package/dist/esm/utils--SDsQnWS.js +460 -0
- package/dist/esm/utils-Bak__24s.js +280 -0
- package/dist/esm/utils-CYF5GU_q.js +438 -0
- package/dist/node_modules/video.js/dist/video-js.min.css +1 -0
- package/dist/test/axe.js +60 -0
- package/dist/types/Users/shahrukceo/Developer/content-blocks/packages/js/.stencil/test/axe.d.ts +16 -0
- package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +7 -11
- package/dist/types/blocks/content-split-block/content-split-block.d.ts +5 -9
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +4 -9
- package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +5 -10
- package/dist/types/components/content-accordion/content-accordion.d.ts +4 -3
- package/dist/types/components/content-accordion/libraries/w3_disclosure_button.d.ts +0 -1
- package/dist/types/components/content-carousel/content-carousel.d.ts +44 -7
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +14 -8
- package/dist/types/components/content-overlay/content-overlay.d.ts +15 -16
- package/dist/types/components/content-overlay/libraries/aria-dialog.d.ts +0 -1
- package/dist/types/components/content-overlay/libraries/aria-utilities.d.ts +0 -1
- package/dist/types/components/content-tabs/content-tabs.d.ts +4 -10
- package/dist/types/components/content-tabs/libraries/w3_tabs.d.ts +0 -1
- package/dist/types/components.d.ts +900 -196
- package/dist/types/elements/content-button/content-button.d.ts +8 -13
- package/dist/types/elements/content-image/content-image.d.ts +15 -9
- package/dist/types/elements/content-line/content-line.d.ts +5 -12
- package/dist/types/elements/content-video/content-video.d.ts +12 -11
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +14 -9
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +4 -36
- package/dist/types/index.d.ts +3 -1
- package/dist/types/setupFiles.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +265 -60
- package/dist/types/typings.d.ts +10 -0
- package/dist/types/utils/breakpoints.d.ts +57 -0
- package/dist/types/utils/responsive-component.d.ts +49 -0
- package/dist/types/utils/utils.d.ts +11 -8
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +75 -65
- package/dist/cjs/BehaviorSubject-12116537.js +0 -655
- package/dist/cjs/BehaviorSubject-12116537.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +0 -1
- package/dist/cjs/content-blocks.cjs.js.map +0 -1
- package/dist/cjs/content-carousel.cjs.entry.js.map +0 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-split-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/focus-trap.esm-7bc384a0.js.map +0 -1
- package/dist/cjs/index-2e0ce692.js.map +0 -1
- package/dist/cjs/index-8af2820a.js +0 -1650
- package/dist/cjs/index-8af2820a.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/swiper-8221f4e8.js.map +0 -1
- package/dist/cjs/utils-df044337.js.map +0 -1
- package/dist/cjs/utils-f8ccab0a.js +0 -126
- package/dist/cjs/utils-f8ccab0a.js.map +0 -1
- package/dist/cjs/window-resize-service-65a5a370.js +0 -37
- package/dist/cjs/window-resize-service-65a5a370.js.map +0 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +0 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +0 -1
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +0 -1
- package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +0 -1
- package/dist/collection/components/content-accordion/content-accordion.js.map +0 -1
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +0 -1
- package/dist/collection/components/content-carousel/content-carousel.js.map +0 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +0 -1
- package/dist/collection/components/content-overlay/content-overlay.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js.map +0 -1
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +0 -1
- package/dist/collection/elements/content-button/content-button.js.map +0 -1
- package/dist/collection/elements/content-image/content-image.js.map +0 -1
- package/dist/collection/elements/content-line/content-line.js.map +0 -1
- package/dist/collection/elements/content-video/content-video.js.map +0 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +0 -1
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +0 -1
- package/dist/collection/globalScript.js +0 -15
- package/dist/collection/globalScript.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/content-events-service.js +0 -23
- package/dist/collection/services/content-events-service.js.map +0 -1
- package/dist/collection/services/window-resize-service.js +0 -31
- package/dist/collection/services/window-resize-service.js.map +0 -1
- package/dist/collection/setupFiles.js.map +0 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +0 -51
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +0 -33
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentSpacer.stories.js +0 -20
- package/dist/collection/stories/ContentSpacer.stories.js.map +0 -1
- package/dist/collection/stories/ContentTextBlock.stories.js +0 -17
- package/dist/collection/stories/ContentTextBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentToutBlock.stories.js +0 -17
- package/dist/collection/stories/ContentToutBlock.stories.js.map +0 -1
- package/dist/collection/stories/FullPageExample.stories.js +0 -432
- package/dist/collection/stories/FullPageExample.stories.js.map +0 -1
- package/dist/collection/stories/assets/accessibility.svg +0 -5
- package/dist/collection/stories/assets/discord.svg +0 -15
- package/dist/collection/stories/assets/github.svg +0 -3
- package/dist/collection/stories/assets/tutorials.svg +0 -12
- package/dist/collection/stories/assets/youtube.svg +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/content-accordion.js.map +0 -1
- package/dist/components/content-button.js.map +0 -1
- package/dist/components/content-carousel.js.map +0 -1
- package/dist/components/content-grid-formatter.js.map +0 -1
- package/dist/components/content-hero-block.js.map +0 -1
- package/dist/components/content-image.js.map +0 -1
- package/dist/components/content-line.js.map +0 -1
- package/dist/components/content-navigation-block.js.map +0 -1
- package/dist/components/content-overlay.js.map +0 -1
- package/dist/components/content-spacer.js.map +0 -1
- package/dist/components/content-split-block.js.map +0 -1
- package/dist/components/content-tabs.js.map +0 -1
- package/dist/components/content-text-block.js.map +0 -1
- package/dist/components/content-tout-block.js.map +0 -1
- package/dist/components/content-video.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-26483b46.js +0 -35
- package/dist/components/p-26483b46.js.map +0 -1
- package/dist/components/p-5a91aa1b.js.map +0 -1
- package/dist/components/p-74be971f.js +0 -652
- package/dist/components/p-74be971f.js.map +0 -1
- package/dist/components/p-7a436263.js +0 -122
- package/dist/components/p-7a436263.js.map +0 -1
- package/dist/components/p-a2fedf8a.js.map +0 -1
- package/dist/components/p-b85cfa86.js.map +0 -1
- package/dist/components/p-e28db040.js +0 -1452
- package/dist/components/p-e28db040.js.map +0 -1
- package/dist/components/p-e5dc4ea4.js.map +0 -1
- package/dist/components/p-e9bce2ab.js +0 -88
- package/dist/components/p-e9bce2ab.js.map +0 -1
- package/dist/content-blocks/content-blocks.esm.js.map +0 -1
- package/dist/content-blocks/index.esm.js.map +0 -1
- package/dist/content-blocks/p-13c3cc4f.js +0 -3
- package/dist/content-blocks/p-13c3cc4f.js.map +0 -1
- package/dist/content-blocks/p-5422c25b.entry.js +0 -2
- package/dist/content-blocks/p-5422c25b.entry.js.map +0 -1
- package/dist/content-blocks/p-5a91aa1b.js +0 -2
- package/dist/content-blocks/p-5a91aa1b.js.map +0 -1
- package/dist/content-blocks/p-650d1757.js +0 -2
- package/dist/content-blocks/p-650d1757.js.map +0 -1
- package/dist/content-blocks/p-74be971f.js +0 -2
- package/dist/content-blocks/p-74be971f.js.map +0 -1
- package/dist/content-blocks/p-8deb755c.entry.js +0 -26
- package/dist/content-blocks/p-8deb755c.entry.js.map +0 -1
- package/dist/content-blocks/p-a2fedf8a.js +0 -10
- package/dist/content-blocks/p-a2fedf8a.js.map +0 -1
- package/dist/content-blocks/p-b305392e.entry.js +0 -2
- package/dist/content-blocks/p-b305392e.entry.js.map +0 -1
- package/dist/content-blocks/p-b85cfa86.js +0 -2
- package/dist/content-blocks/p-b85cfa86.js.map +0 -1
- package/dist/content-blocks/p-cc7397cf.js +0 -2
- package/dist/content-blocks/p-cc7397cf.js.map +0 -1
- package/dist/content-blocks/p-d62775d7.entry.js +0 -2
- package/dist/content-blocks/p-d62775d7.entry.js.map +0 -1
- package/dist/content-blocks/p-e1255160.js +0 -2
- package/dist/content-blocks/p-e1255160.js.map +0 -1
- package/dist/content-blocks/p-e5dc4ea4.js +0 -2
- package/dist/content-blocks/p-e5dc4ea4.js.map +0 -1
- package/dist/content-blocks/p-f73f934a.entry.js +0 -2
- package/dist/content-blocks/p-f73f934a.entry.js.map +0 -1
- package/dist/esm/BehaviorSubject-f7a12fd8.js +0 -652
- package/dist/esm/BehaviorSubject-f7a12fd8.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/content-accordion_11.entry.js.map +0 -1
- package/dist/esm/content-blocks.js.map +0 -1
- package/dist/esm/content-carousel.entry.js.map +0 -1
- package/dist/esm/content-navigation-block.entry.js.map +0 -1
- package/dist/esm/content-split-block.entry.js.map +0 -1
- package/dist/esm/content-tabs.entry.js.map +0 -1
- package/dist/esm/focus-trap.esm-8fb54175.js.map +0 -1
- package/dist/esm/index-ec24af7a.js +0 -1621
- package/dist/esm/index-ec24af7a.js.map +0 -1
- package/dist/esm/index-f45a9c45.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/swiper-e9621adb.js.map +0 -1
- package/dist/esm/utils-1c9f0ec1.js.map +0 -1
- package/dist/esm/utils-9a901aa9.js +0 -122
- package/dist/esm/utils-9a901aa9.js.map +0 -1
- package/dist/esm/window-resize-service-354f2ac5.js +0 -35
- package/dist/esm/window-resize-service-354f2ac5.js.map +0 -1
- package/dist/types/globalScript.d.ts +0 -1
- package/dist/types/old-components.d.ts +0 -1239
- package/dist/types/services/content-events-service.d.ts +0 -11
- package/dist/types/services/window-resize-service.d.ts +0 -11
- package/dist/types/stories/ContentHeroBlock.stories.d.ts +0 -11
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentSpacer.stories.d.ts +0 -15
- package/dist/types/stories/ContentTextBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentToutBlock.stories.d.ts +0 -9
- package/dist/types/stories/FullPageExample.stories.d.ts +0 -10
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-BFDJMblF.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component-BsLrcKbS.js';
|
|
3
|
+
import './utils-Bak__24s.js';
|
|
4
|
+
|
|
5
|
+
const contentSpacerCss = () => `*{box-sizing:border-box}content-spacer{display:block;width:100%;height:auto}content-spacer .content-spacer__content{width:100%}content-spacer[full-height=true]{height:100%}content-spacer[text-align=left]{text-align:left}content-spacer[text-align=center]{text-align:center}content-spacer[text-align=right]{text-align:right}content-spacer[horizontal=left]{margin-left:0;margin-right:auto}content-spacer[horizontal=center]{margin-left:auto;margin-right:auto}content-spacer[horizontal=right]{margin-left:auto;margin-right:0}content-spacer[vertical]{display:flex}content-spacer[vertical=top]{align-items:flex-start}content-spacer[vertical=center]{align-items:center}content-spacer[vertical=bottom]{align-items:flex-end}`;
|
|
6
|
+
|
|
7
|
+
const ContentSpacingWrapper = class extends ResponsiveComponent {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
super();
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw".
|
|
14
|
+
* @type String
|
|
15
|
+
* @responsive
|
|
16
|
+
*/
|
|
17
|
+
maxWidth = '100';
|
|
18
|
+
/**
|
|
19
|
+
* Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one.
|
|
20
|
+
* @type Boolean
|
|
21
|
+
* @responsive
|
|
22
|
+
*/
|
|
23
|
+
fullHeight = 'false';
|
|
24
|
+
/**
|
|
25
|
+
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
26
|
+
* @type Select
|
|
27
|
+
* @options default
|
|
28
|
+
* @options left
|
|
29
|
+
* @options center
|
|
30
|
+
* @options right
|
|
31
|
+
* @responsive
|
|
32
|
+
*/
|
|
33
|
+
textAlign = 'default';
|
|
34
|
+
/**
|
|
35
|
+
* Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.
|
|
36
|
+
* @type Select
|
|
37
|
+
* @options default
|
|
38
|
+
* @options left
|
|
39
|
+
* @options center
|
|
40
|
+
* @options right
|
|
41
|
+
* @responsive
|
|
42
|
+
*/
|
|
43
|
+
horizontal = 'default';
|
|
44
|
+
/**
|
|
45
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
46
|
+
* @type Select
|
|
47
|
+
* @options top
|
|
48
|
+
* @options center
|
|
49
|
+
* @options bottom
|
|
50
|
+
* @options default
|
|
51
|
+
* @responsive
|
|
52
|
+
*/
|
|
53
|
+
vertical = '';
|
|
54
|
+
inlineStyle = {};
|
|
55
|
+
componentWillLoad() {
|
|
56
|
+
// Unitless numbers are percentages.
|
|
57
|
+
const percent = (value) => (isNaN(Number(value)) ? value : value + '%');
|
|
58
|
+
const style = (property) => (value) => (this.inlineStyle = { ...this.inlineStyle, [property]: percent(value) });
|
|
59
|
+
this.responsive({
|
|
60
|
+
fullHeight: true,
|
|
61
|
+
textAlign: true,
|
|
62
|
+
horizontal: true,
|
|
63
|
+
vertical: true,
|
|
64
|
+
maxWidth: style('max-width'),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
return (h(Host, { key: 'b038211cd15eaf1875f04f6914a91ffc12a11cd4', class: this.classes, style: this.inlineStyle }, h("div", { key: '9ba99da788f6a2478936ebe8e59793eb53cde227', class: "content-spacer__content" }, h("slot", { key: '07abb4f5a5ab3dda47884d112c3971a9f3846d05', name: "content" }), h("slot", { key: '4acd8926c54c62a894906ee6baa8262eeefc6e3b' }))));
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
ContentSpacingWrapper.style = contentSpacerCss();
|
|
72
|
+
|
|
73
|
+
export { ContentSpacingWrapper as content_spacer };
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import {
|
|
3
|
-
import './utils-
|
|
4
|
-
import './BehaviorSubject-f7a12fd8.js';
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-BFDJMblF.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component-BsLrcKbS.js';
|
|
3
|
+
import './utils-Bak__24s.js';
|
|
5
4
|
|
|
6
|
-
const contentSplitBlockCss =
|
|
7
|
-
const ContentSplitBlockStyle0 = contentSplitBlockCss;
|
|
5
|
+
const contentSplitBlockCss = () => `*{box-sizing:border-box}content-split-block{display:flex;flex-wrap:wrap}content-split-block>[slot]{min-width:0;flex:0 0 auto;width:calc(100% / var(--columns))}content-split-block{width:100%}content-split-block>[slot]{flex-grow:1;flex-shrink:1}content-split-block[reverse=true]>[slot=column1]{order:2}content-split-block[reverse=true]>[slot=column2]{order:1}`;
|
|
8
6
|
|
|
9
|
-
const ContentSplitBlock = class {
|
|
7
|
+
const ContentSplitBlock = class extends ResponsiveComponent {
|
|
10
8
|
constructor(hostRef) {
|
|
9
|
+
super();
|
|
11
10
|
registerInstance(this, hostRef);
|
|
12
|
-
this.reverse = false;
|
|
13
|
-
this.columns = '1|2';
|
|
14
|
-
this.classes = undefined;
|
|
15
|
-
this.classString = undefined;
|
|
16
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @type Boolean
|
|
14
|
+
* @responsive
|
|
15
|
+
*/
|
|
16
|
+
reverse = false;
|
|
17
|
+
/**
|
|
18
|
+
* @type Number
|
|
19
|
+
* @responsive
|
|
20
|
+
*/
|
|
21
|
+
columns = '1|2';
|
|
17
22
|
componentWillLoad() {
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
this.responsive({
|
|
24
|
+
columns: true,
|
|
25
|
+
reverse: true,
|
|
26
|
+
});
|
|
20
27
|
}
|
|
21
28
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '9e3fefcfbb031aa20922d1865b349e254d066aa0', class: this.classes, reverse: this.reverse, style: { '--columns': this.columns } }, h("slot", { key: '1a3d8b391b6f5623a9e980f40914f748bb88ed01', name: "column1" }), h("slot", { key: 'ba2fcb58ca2819315ecd11d4023a307bcd04a625', name: "column2" })));
|
|
23
30
|
}
|
|
24
31
|
};
|
|
25
|
-
ContentSplitBlock.style =
|
|
32
|
+
ContentSplitBlock.style = contentSplitBlockCss();
|
|
26
33
|
|
|
27
34
|
export { ContentSplitBlock as content_split_block };
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=content-split-block.entry.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import {
|
|
3
|
-
import './utils-
|
|
4
|
-
import './BehaviorSubject-f7a12fd8.js';
|
|
1
|
+
import { r as registerInstance, a as getElement, h, d as Host } from './index-BFDJMblF.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component-BsLrcKbS.js';
|
|
3
|
+
import './utils-Bak__24s.js';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
* This content is licensed according to the W3C Software License at
|
|
@@ -17,6 +16,7 @@ class W3Tabs {
|
|
|
17
16
|
tabs = stencilElement.querySelectorAll('[role="tab"]');
|
|
18
17
|
panels = stencilElement.querySelectorAll('[role="tabpanel"]');
|
|
19
18
|
}
|
|
19
|
+
;
|
|
20
20
|
// For easy reference
|
|
21
21
|
var keys = {
|
|
22
22
|
end: 35,
|
|
@@ -40,6 +40,7 @@ class W3Tabs {
|
|
|
40
40
|
for (var i = 0; i < tabs.length; ++i) {
|
|
41
41
|
addListeners(i);
|
|
42
42
|
}
|
|
43
|
+
;
|
|
43
44
|
function addListeners(index) {
|
|
44
45
|
tabs[index].addEventListener('click', clickEventListener);
|
|
45
46
|
tabs[index].addEventListener('keydown', keydownEventListener);
|
|
@@ -47,12 +48,14 @@ class W3Tabs {
|
|
|
47
48
|
// Build an array with all tabs (<button>s) in it
|
|
48
49
|
tabs[index].index = index;
|
|
49
50
|
}
|
|
51
|
+
;
|
|
50
52
|
// When a tab is clicked, activateTab is fired to activate it
|
|
51
53
|
function clickEventListener(event) {
|
|
52
54
|
let tab = event.target.closest('button');
|
|
53
55
|
event.preventDefault();
|
|
54
56
|
activateTab(tab, false);
|
|
55
57
|
}
|
|
58
|
+
;
|
|
56
59
|
// Handle keydown on tabs
|
|
57
60
|
function keydownEventListener(event) {
|
|
58
61
|
var key = event.keyCode;
|
|
@@ -74,7 +77,9 @@ class W3Tabs {
|
|
|
74
77
|
determineOrientation(event);
|
|
75
78
|
break;
|
|
76
79
|
}
|
|
80
|
+
;
|
|
77
81
|
}
|
|
82
|
+
;
|
|
78
83
|
// Handle keyup on tabs
|
|
79
84
|
function keyupEventListener(event) {
|
|
80
85
|
var key = event.keyCode;
|
|
@@ -92,7 +97,9 @@ class W3Tabs {
|
|
|
92
97
|
activateTab(event.target);
|
|
93
98
|
break;
|
|
94
99
|
}
|
|
100
|
+
;
|
|
95
101
|
}
|
|
102
|
+
;
|
|
96
103
|
// When a tablist’s aria-orientation is set to vertical,
|
|
97
104
|
// only up and down arrow should function.
|
|
98
105
|
// In all other cases only left and right arrow function.
|
|
@@ -105,16 +112,21 @@ class W3Tabs {
|
|
|
105
112
|
event.preventDefault();
|
|
106
113
|
proceed = true;
|
|
107
114
|
}
|
|
115
|
+
;
|
|
108
116
|
}
|
|
109
117
|
else {
|
|
110
118
|
if (key === keys.left || key === keys.right) {
|
|
111
119
|
proceed = true;
|
|
112
120
|
}
|
|
121
|
+
;
|
|
113
122
|
}
|
|
123
|
+
;
|
|
114
124
|
if (proceed) {
|
|
115
125
|
switchTabOnArrowPress(event);
|
|
116
126
|
}
|
|
127
|
+
;
|
|
117
128
|
}
|
|
129
|
+
;
|
|
118
130
|
// Either focus the next, previous, first, or last tab
|
|
119
131
|
// depending on key pressed
|
|
120
132
|
function switchTabOnArrowPress(event) {
|
|
@@ -131,9 +143,13 @@ class W3Tabs {
|
|
|
131
143
|
else if (pressed === keys.right || pressed == keys.down) {
|
|
132
144
|
focusFirstTab();
|
|
133
145
|
}
|
|
146
|
+
;
|
|
134
147
|
}
|
|
148
|
+
;
|
|
135
149
|
}
|
|
150
|
+
;
|
|
136
151
|
}
|
|
152
|
+
;
|
|
137
153
|
// Activates any given tab panel
|
|
138
154
|
function activateTab(tab, setFocus) {
|
|
139
155
|
setFocus = setFocus || true;
|
|
@@ -151,25 +167,32 @@ class W3Tabs {
|
|
|
151
167
|
if (setFocus) {
|
|
152
168
|
tab.focus();
|
|
153
169
|
}
|
|
170
|
+
;
|
|
154
171
|
}
|
|
172
|
+
;
|
|
155
173
|
// Deactivate all tabs and tab panels
|
|
156
174
|
function deactivateTabs() {
|
|
157
175
|
for (var t = 0; t < tabs.length; t++) {
|
|
158
176
|
tabs[t].setAttribute('tabindex', '-1');
|
|
159
177
|
tabs[t].setAttribute('aria-selected', 'false');
|
|
160
178
|
}
|
|
179
|
+
;
|
|
161
180
|
for (var p = 0; p < panels.length; p++) {
|
|
162
181
|
panels[p].setAttribute('hidden', 'hidden');
|
|
163
182
|
}
|
|
183
|
+
;
|
|
164
184
|
}
|
|
185
|
+
;
|
|
165
186
|
// Make a guess
|
|
166
187
|
function focusFirstTab() {
|
|
167
188
|
tabs[0].focus();
|
|
168
189
|
}
|
|
190
|
+
;
|
|
169
191
|
// Make a guess
|
|
170
192
|
function focusLastTab() {
|
|
171
193
|
tabs[tabs.length - 1].focus();
|
|
172
194
|
}
|
|
195
|
+
;
|
|
173
196
|
// Detect if a tab is deletable
|
|
174
197
|
function determineDeletable(event) {
|
|
175
198
|
var target = event.target;
|
|
@@ -185,8 +208,11 @@ class W3Tabs {
|
|
|
185
208
|
else {
|
|
186
209
|
activateTab(tabs[target.index - 1]);
|
|
187
210
|
}
|
|
211
|
+
;
|
|
188
212
|
}
|
|
213
|
+
;
|
|
189
214
|
}
|
|
215
|
+
;
|
|
190
216
|
// Deletes a tab and its panel
|
|
191
217
|
function deleteTab(event) {
|
|
192
218
|
var target = event.target;
|
|
@@ -194,33 +220,26 @@ class W3Tabs {
|
|
|
194
220
|
target.parentElement.removeChild(target);
|
|
195
221
|
panel.parentElement.removeChild(panel);
|
|
196
222
|
}
|
|
223
|
+
;
|
|
197
224
|
}
|
|
198
225
|
}
|
|
226
|
+
;
|
|
199
227
|
|
|
200
|
-
const contentTabsCss =
|
|
201
|
-
const ContentTabsStyle0 = contentTabsCss;
|
|
228
|
+
const contentTabsCss = () => `*{box-sizing:border-box}content-tabs{display:block}content-tabs button[role=tab]{padding:0;border:none;font:inherit;color:inherit;background-color:inherit;cursor:pointer;border-bottom:1px solid transparent}content-tabs button[role=tab][aria-selected=true]{border-bottom:1px solid black}`;
|
|
202
229
|
|
|
203
|
-
const ContentTabs = class {
|
|
230
|
+
const ContentTabs = class extends ResponsiveComponent {
|
|
204
231
|
constructor(hostRef) {
|
|
232
|
+
super();
|
|
205
233
|
registerInstance(this, hostRef);
|
|
206
|
-
this.classes = undefined;
|
|
207
|
-
this.classString = undefined;
|
|
208
|
-
}
|
|
209
|
-
componentWillLoad() {
|
|
210
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => {
|
|
211
|
-
this.classString = newValue;
|
|
212
|
-
});
|
|
213
234
|
}
|
|
235
|
+
get element() { return getElement(this); }
|
|
214
236
|
componentDidLoad() {
|
|
215
237
|
new W3Tabs(this.element);
|
|
216
238
|
}
|
|
217
239
|
render() {
|
|
218
|
-
return (h(Host, { key: '
|
|
240
|
+
return (h(Host, { key: 'bd85bef7d6aaa5f55cf810a79e4c3d14f9c31867', class: this.classes }, h("slot", { key: '0ee8f5c74bd7cb8c7db1ca0a9a67d837211572b1', name: "content" }), h("slot", { key: '737c4b0067b16f4c5167545d8b167dd8eeb1c058' })));
|
|
219
241
|
}
|
|
220
|
-
get element() { return getElement(this); }
|
|
221
242
|
};
|
|
222
|
-
ContentTabs.style =
|
|
243
|
+
ContentTabs.style = contentTabsCss();
|
|
223
244
|
|
|
224
245
|
export { ContentTabs as content_tabs };
|
|
225
|
-
|
|
226
|
-
//# sourceMappingURL=content-tabs.entry.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, d as Host } from './index-BFDJMblF.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component-BsLrcKbS.js';
|
|
3
|
+
import './utils-Bak__24s.js';
|
|
4
|
+
|
|
5
|
+
const contentTextBlockCss = () => `*{box-sizing:border-box}content-text-block{display:block;width:100%;text-align:initial}content-text-block[full-height=true]{height:100%}content-text-block>*[slot=footer]{margin-top:auto;margin-bottom:0;width:100%;padding-top:1rem;height:auto}content-text-block[vertical=bottom]>[slot=footer]{position:static;height:auto}content-text-block[vertical]{display:flex;flex-direction:column}content-text-block[vertical=top]{justify-content:flex-start}content-text-block[vertical=center]{justify-content:center}content-text-block[vertical=center][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical=bottom]{justify-content:flex-end}content-text-block[vertical=bottom][footer=true] .content-text-block__content{margin-top:auto;margin-bottom:0}content-text-block[vertical=bottom][footer=true]>[slot=footer]{margin-top:0}content-text-block[text-align=left]{text-align:left}content-text-block[text-align=center]{text-align:center}content-text-block[text-align=right]{text-align:right}`;
|
|
6
|
+
|
|
7
|
+
const ContentTextBlock = class extends ResponsiveComponent {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
super();
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* This is a pipe separated string representing the minimum height. Units without values default to pixels.
|
|
14
|
+
* @type String
|
|
15
|
+
* @responsive
|
|
16
|
+
*/
|
|
17
|
+
minHeight;
|
|
18
|
+
/**
|
|
19
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
20
|
+
* @type Select
|
|
21
|
+
* @options top
|
|
22
|
+
* @options center
|
|
23
|
+
* @options bottom
|
|
24
|
+
* @responsive
|
|
25
|
+
*/
|
|
26
|
+
vertical = 'top';
|
|
27
|
+
/**
|
|
28
|
+
* @type Boolean
|
|
29
|
+
* @responsive
|
|
30
|
+
*/
|
|
31
|
+
fullHeight = 'false';
|
|
32
|
+
/**
|
|
33
|
+
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
34
|
+
* @type Select
|
|
35
|
+
* @options default
|
|
36
|
+
* @options left
|
|
37
|
+
* @options center
|
|
38
|
+
* @options right
|
|
39
|
+
* @responsive
|
|
40
|
+
*/
|
|
41
|
+
textAlign = 'default';
|
|
42
|
+
get hostElement() { return getElement(this); }
|
|
43
|
+
inlineStyle = {};
|
|
44
|
+
componentWillLoad() {
|
|
45
|
+
if (this.hostElement.querySelector('[slot="footer"]')) {
|
|
46
|
+
this.hostElement.setAttribute('footer', 'true');
|
|
47
|
+
}
|
|
48
|
+
this.responsive({
|
|
49
|
+
minHeight: value => (this.inlineStyle = { ...this.inlineStyle, 'min-height': isNaN(Number(value)) ? value : value + 'px' }),
|
|
50
|
+
textAlign: true,
|
|
51
|
+
vertical: true,
|
|
52
|
+
fullHeight: true,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
return (h(Host, { key: '4286dd2330e7c34e4ba64d11e648b4fd6c90ee27', class: this.classes, style: this.inlineStyle }, h("div", { key: 'bdfc50b3cef4ab0ca14d76be6b03589ab62ba33a', class: "content-text-block__content" }, h("slot", { key: '88e7e85b24bf9f8a0a1a24500bb05fb27611e5eb', name: "content" }), h("slot", { key: 'aa1f339a9fcc63e42dbae2d3e69a836678cbe615' })), h("slot", { key: 'aa31dea6c4ebd2524070c0afbb00024e10ed224a', name: "footer" })));
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
ContentTextBlock.style = contentTextBlockCss();
|
|
60
|
+
|
|
61
|
+
export { ContentTextBlock as content_text_block };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as registerInstance, a as getElement, h, d as Host } from './index-BFDJMblF.js';
|
|
2
|
+
import { R as ResponsiveComponent } from './responsive-component-BsLrcKbS.js';
|
|
3
|
+
import './utils-Bak__24s.js';
|
|
4
|
+
|
|
5
|
+
const contentToutBlockCss = () => `*{box-sizing:border-box}content-tout-block{display:block}content-tout-block .content-tout-block__media{position:relative}content-tout-block .content-tout-block__media-content{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;align-items:center;justify-content:center;overflow:hidden}content-tout-block .content-tout-block__media-content [slot=mediaContent]{height:100%;width:100%}content-tout-block[hover=true] .content-tout-block__media-content{transition:opacity 0.3s}@media (hover: hover){content-tout-block[hover=true] .content-tout-block__media-content{opacity:0}content-tout-block[hover=true] .content-tout-block__media-content:hover,content-tout-block[hover=true] .content-tout-block__media-content:focus,content-tout-block[hover=true] .content-tout-block__media-content:focus-within{opacity:1}}`;
|
|
6
|
+
|
|
7
|
+
const ContentToutBlock = class extends ResponsiveComponent {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
super();
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* If true, the media content will show only on hover
|
|
14
|
+
* @type Boolean
|
|
15
|
+
* @responsive
|
|
16
|
+
*/
|
|
17
|
+
hover = 'false|true';
|
|
18
|
+
get hostElement() { return getElement(this); }
|
|
19
|
+
hasMediaContent;
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.hasMediaContent = !!this.hostElement.querySelector('[slot="mediaContent"]');
|
|
22
|
+
this.responsive({
|
|
23
|
+
hover: true,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(Host, { key: 'daf8dc23e57db671addb64f6657db314495ccf52', class: this.classes }, h("div", { key: '802323ef3da3ea324a5c561bf95543c6d08f08f6', class: "content-tout-block__media" }, h("slot", { key: '484ca3548182144beee232d6dca161d39473f091', name: "media" }), this.hasMediaContent && (h("div", { key: '7cb362006c05713cddc4fc5ff8a9560c44a77920', class: "content-tout-block__media-content" }, h("slot", { key: '104316c5faf74b7d72bfb4b51d1e4440dec7387e', name: "mediaContent" })))), h("div", { key: '6e2ec37165656a6cc473c49d4ab59bebe60fc344', class: "content-tout-block__content" }, h("slot", { key: 'b1c8225ac696bf19e940379f690e0077bb0962bc', name: "content" }), h("slot", { key: '8048bdefcd621919c640558c416b35d11946ede6' }))));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
ContentToutBlock.style = contentToutBlockCss();
|
|
31
|
+
|
|
32
|
+
export { ContentToutBlock as content_tout_block };
|