@content-blocks/js 0.7.7 → 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} +14541 -12905
- 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 +123 -73
- 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 +14605 -11951
- 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} +14516 -12868
- 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 +892 -198
- 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 +6 -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 +74 -64
- 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-398760b3.entry.js +0 -26
- package/dist/content-blocks/p-398760b3.entry.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-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
|
@@ -1,54 +1,99 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
3
|
/**
|
|
4
|
+
* Lays its children out in a grid or a row, with the number of columns, gaps and alignment set per breakpoint.
|
|
5
|
+
*
|
|
4
6
|
* @slot media - This slot can either be a video or image component.
|
|
5
7
|
* @slot content - This slot will usually serve a content text block.
|
|
6
8
|
*/
|
|
7
|
-
export class ContentGridFormatter {
|
|
9
|
+
export class ContentGridFormatter extends ResponsiveComponent {
|
|
8
10
|
constructor() {
|
|
9
|
-
|
|
10
|
-
this.classString = undefined;
|
|
11
|
-
this.type = 'flex';
|
|
12
|
-
this.flexGrow = 'false';
|
|
13
|
-
this.flexShrink = 'false';
|
|
14
|
-
this.vertical = 'space-between';
|
|
15
|
-
this.horizontal = 'space-between';
|
|
16
|
-
this.columns = '1';
|
|
17
|
-
this.columnGap = '0';
|
|
18
|
-
this.rowGap = '0';
|
|
19
|
-
this.activeClassString = undefined;
|
|
20
|
-
this.inlineStyle = {};
|
|
11
|
+
super();
|
|
21
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Flex or grid
|
|
15
|
+
* @type Select
|
|
16
|
+
* @options none
|
|
17
|
+
* @options flex
|
|
18
|
+
* @options grid
|
|
19
|
+
* @responsive
|
|
20
|
+
*/
|
|
21
|
+
type = 'flex';
|
|
22
|
+
/**
|
|
23
|
+
* Setting this true to will grow all children. Alternatively, add the attribute [flex-grow="true"] to a specific grid child and that child will grow.
|
|
24
|
+
* @type Boolean
|
|
25
|
+
* @responsive
|
|
26
|
+
*/
|
|
27
|
+
flexGrow = 'false';
|
|
28
|
+
/**
|
|
29
|
+
* Setting this true to will shrink all children. Alternatively, add the attribute [flex-shrink="true"] to a specific grid child and that child will shrink.
|
|
30
|
+
* @type Boolean
|
|
31
|
+
* @responsive
|
|
32
|
+
*/
|
|
33
|
+
flexShrink = 'false';
|
|
34
|
+
/**
|
|
35
|
+
* Vertical axis alignment
|
|
36
|
+
* @type Select
|
|
37
|
+
* @options flex-start
|
|
38
|
+
* @options space-between
|
|
39
|
+
* @options center
|
|
40
|
+
* @options space-evenly
|
|
41
|
+
* @responsive
|
|
42
|
+
*/
|
|
43
|
+
vertical = 'space-between';
|
|
44
|
+
/**
|
|
45
|
+
* Horizontal axis alignment
|
|
46
|
+
* @type Select
|
|
47
|
+
* @options flex-start
|
|
48
|
+
* @options space-between
|
|
49
|
+
* @options center
|
|
50
|
+
* @options space-evenly
|
|
51
|
+
* @responsive
|
|
52
|
+
*/
|
|
53
|
+
horizontal = 'space-between';
|
|
54
|
+
/**
|
|
55
|
+
* @type Number
|
|
56
|
+
* @responsive
|
|
57
|
+
*/
|
|
58
|
+
columns = '1';
|
|
59
|
+
/**
|
|
60
|
+
* For type flex: lay the children out in a row or a column. With columns="auto", children in a column
|
|
61
|
+
* keep their own width, so a list of links stacks on phones and sits in a row on larger screens.
|
|
62
|
+
* @type Select
|
|
63
|
+
* @options row
|
|
64
|
+
* @options column
|
|
65
|
+
* @responsive
|
|
66
|
+
*/
|
|
67
|
+
direction = 'row';
|
|
68
|
+
/**
|
|
69
|
+
* @type Number
|
|
70
|
+
* @responsive
|
|
71
|
+
*/
|
|
72
|
+
columnGap = '0';
|
|
73
|
+
/**
|
|
74
|
+
* @type Number
|
|
75
|
+
* @responsive
|
|
76
|
+
*/
|
|
77
|
+
rowGap = '0';
|
|
78
|
+
hostElement;
|
|
79
|
+
activeClassString;
|
|
80
|
+
inlineStyle = {};
|
|
22
81
|
componentWillLoad() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
WindowResizeService.registerProp(this.columns).subscribe(newValue => {
|
|
36
|
-
this.columns = newValue;
|
|
37
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--columns': newValue });
|
|
38
|
-
}),
|
|
39
|
-
WindowResizeService.registerProp(this.columnGap).subscribe(newValue => {
|
|
40
|
-
this.columnGap = newValue;
|
|
41
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--column-gap': newValue });
|
|
42
|
-
}),
|
|
43
|
-
WindowResizeService.registerProp(this.rowGap).subscribe(newValue => {
|
|
44
|
-
this.rowGap = newValue;
|
|
45
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { '--row-gap': newValue });
|
|
46
|
-
}),
|
|
47
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue)),
|
|
48
|
-
]);
|
|
82
|
+
const style = (property) => (value) => (this.inlineStyle = { ...this.inlineStyle, [property]: value });
|
|
83
|
+
this.responsive({
|
|
84
|
+
type: true,
|
|
85
|
+
flexGrow: true,
|
|
86
|
+
flexShrink: true,
|
|
87
|
+
vertical: style('--align-items'),
|
|
88
|
+
horizontal: style('--justify-content'),
|
|
89
|
+
columns: style('--columns'),
|
|
90
|
+
direction: style('--flex-direction'),
|
|
91
|
+
columnGap: style('--column-gap'),
|
|
92
|
+
rowGap: style('--row-gap'),
|
|
93
|
+
});
|
|
49
94
|
}
|
|
50
95
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '119fb2e499c3b512e4fa8fa65fa5a6b090a799ab', class: this.classes, style: this.inlineStyle }, h("slot", { key: '9a70373969a35fc20ce24b2e812f93118f895c78' })));
|
|
52
97
|
}
|
|
53
98
|
static get is() { return "content-grid-formatter"; }
|
|
54
99
|
static get originalStyleUrls() {
|
|
@@ -63,35 +108,6 @@ export class ContentGridFormatter {
|
|
|
63
108
|
}
|
|
64
109
|
static get properties() {
|
|
65
110
|
return {
|
|
66
|
-
"classes": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "ResponsiveString",
|
|
71
|
-
"resolved": "string",
|
|
72
|
-
"references": {
|
|
73
|
-
"ResponsiveString": {
|
|
74
|
-
"location": "import",
|
|
75
|
-
"path": "../../typings",
|
|
76
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": false,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [{
|
|
84
|
-
"name": "type",
|
|
85
|
-
"text": "String"
|
|
86
|
-
}, {
|
|
87
|
-
"name": "responsive",
|
|
88
|
-
"text": undefined
|
|
89
|
-
}],
|
|
90
|
-
"text": ""
|
|
91
|
-
},
|
|
92
|
-
"attribute": "classes",
|
|
93
|
-
"reflect": false
|
|
94
|
-
},
|
|
95
111
|
"type": {
|
|
96
112
|
"type": "string",
|
|
97
113
|
"mutable": true,
|
|
@@ -102,12 +118,14 @@ export class ContentGridFormatter {
|
|
|
102
118
|
"GRID_TYPES": {
|
|
103
119
|
"location": "import",
|
|
104
120
|
"path": "../../typings",
|
|
105
|
-
"id": "src/typings.d.ts::GRID_TYPES"
|
|
121
|
+
"id": "src/typings.d.ts::GRID_TYPES",
|
|
122
|
+
"referenceLocation": "GRID_TYPES"
|
|
106
123
|
},
|
|
107
124
|
"ResponsiveString": {
|
|
108
125
|
"location": "import",
|
|
109
126
|
"path": "../../typings",
|
|
110
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
127
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
128
|
+
"referenceLocation": "ResponsiveString"
|
|
111
129
|
}
|
|
112
130
|
}
|
|
113
131
|
},
|
|
@@ -132,8 +150,10 @@ export class ContentGridFormatter {
|
|
|
132
150
|
}],
|
|
133
151
|
"text": "Flex or grid"
|
|
134
152
|
},
|
|
135
|
-
"
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
136
155
|
"reflect": true,
|
|
156
|
+
"attribute": "type",
|
|
137
157
|
"defaultValue": "'flex'"
|
|
138
158
|
},
|
|
139
159
|
"flexGrow": {
|
|
@@ -146,7 +166,8 @@ export class ContentGridFormatter {
|
|
|
146
166
|
"ResponsiveBoolean": {
|
|
147
167
|
"location": "import",
|
|
148
168
|
"path": "../../typings",
|
|
149
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
169
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
170
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
150
171
|
}
|
|
151
172
|
}
|
|
152
173
|
},
|
|
@@ -162,8 +183,10 @@ export class ContentGridFormatter {
|
|
|
162
183
|
}],
|
|
163
184
|
"text": "Setting this true to will grow all children. Alternatively, add the attribute [flex-grow=\"true\"] to a specific grid child and that child will grow."
|
|
164
185
|
},
|
|
165
|
-
"
|
|
186
|
+
"getter": false,
|
|
187
|
+
"setter": false,
|
|
166
188
|
"reflect": true,
|
|
189
|
+
"attribute": "flex-grow",
|
|
167
190
|
"defaultValue": "'false'"
|
|
168
191
|
},
|
|
169
192
|
"flexShrink": {
|
|
@@ -176,7 +199,8 @@ export class ContentGridFormatter {
|
|
|
176
199
|
"ResponsiveBoolean": {
|
|
177
200
|
"location": "import",
|
|
178
201
|
"path": "../../typings",
|
|
179
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
202
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
203
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
180
204
|
}
|
|
181
205
|
}
|
|
182
206
|
},
|
|
@@ -192,8 +216,10 @@ export class ContentGridFormatter {
|
|
|
192
216
|
}],
|
|
193
217
|
"text": "Setting this true to will shrink all children. Alternatively, add the attribute [flex-shrink=\"true\"] to a specific grid child and that child will shrink."
|
|
194
218
|
},
|
|
195
|
-
"
|
|
219
|
+
"getter": false,
|
|
220
|
+
"setter": false,
|
|
196
221
|
"reflect": true,
|
|
222
|
+
"attribute": "flex-shrink",
|
|
197
223
|
"defaultValue": "'false'"
|
|
198
224
|
},
|
|
199
225
|
"vertical": {
|
|
@@ -206,7 +232,8 @@ export class ContentGridFormatter {
|
|
|
206
232
|
"FLEX_JUSTIFY_OPTIONS": {
|
|
207
233
|
"location": "import",
|
|
208
234
|
"path": "../../typings",
|
|
209
|
-
"id": "src/typings.d.ts::FLEX_JUSTIFY_OPTIONS"
|
|
235
|
+
"id": "src/typings.d.ts::FLEX_JUSTIFY_OPTIONS",
|
|
236
|
+
"referenceLocation": "FLEX_JUSTIFY_OPTIONS"
|
|
210
237
|
}
|
|
211
238
|
}
|
|
212
239
|
},
|
|
@@ -234,8 +261,10 @@ export class ContentGridFormatter {
|
|
|
234
261
|
}],
|
|
235
262
|
"text": "Vertical axis alignment"
|
|
236
263
|
},
|
|
237
|
-
"
|
|
264
|
+
"getter": false,
|
|
265
|
+
"setter": false,
|
|
238
266
|
"reflect": true,
|
|
267
|
+
"attribute": "vertical",
|
|
239
268
|
"defaultValue": "'space-between'"
|
|
240
269
|
},
|
|
241
270
|
"horizontal": {
|
|
@@ -248,7 +277,8 @@ export class ContentGridFormatter {
|
|
|
248
277
|
"FLEX_JUSTIFY_OPTIONS": {
|
|
249
278
|
"location": "import",
|
|
250
279
|
"path": "../../typings",
|
|
251
|
-
"id": "src/typings.d.ts::FLEX_JUSTIFY_OPTIONS"
|
|
280
|
+
"id": "src/typings.d.ts::FLEX_JUSTIFY_OPTIONS",
|
|
281
|
+
"referenceLocation": "FLEX_JUSTIFY_OPTIONS"
|
|
252
282
|
}
|
|
253
283
|
}
|
|
254
284
|
},
|
|
@@ -276,8 +306,10 @@ export class ContentGridFormatter {
|
|
|
276
306
|
}],
|
|
277
307
|
"text": "Horizontal axis alignment"
|
|
278
308
|
},
|
|
279
|
-
"
|
|
309
|
+
"getter": false,
|
|
310
|
+
"setter": false,
|
|
280
311
|
"reflect": true,
|
|
312
|
+
"attribute": "horizontal",
|
|
281
313
|
"defaultValue": "'space-between'"
|
|
282
314
|
},
|
|
283
315
|
"columns": {
|
|
@@ -290,7 +322,8 @@ export class ContentGridFormatter {
|
|
|
290
322
|
"ResponsiveNumber": {
|
|
291
323
|
"location": "import",
|
|
292
324
|
"path": "../../typings",
|
|
293
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
325
|
+
"id": "src/typings.d.ts::ResponsiveNumber",
|
|
326
|
+
"referenceLocation": "ResponsiveNumber"
|
|
294
327
|
}
|
|
295
328
|
}
|
|
296
329
|
},
|
|
@@ -306,10 +339,51 @@ export class ContentGridFormatter {
|
|
|
306
339
|
}],
|
|
307
340
|
"text": ""
|
|
308
341
|
},
|
|
309
|
-
"
|
|
342
|
+
"getter": false,
|
|
343
|
+
"setter": false,
|
|
310
344
|
"reflect": true,
|
|
345
|
+
"attribute": "columns",
|
|
311
346
|
"defaultValue": "'1'"
|
|
312
347
|
},
|
|
348
|
+
"direction": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"mutable": true,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "ResponsiveString",
|
|
353
|
+
"resolved": "string",
|
|
354
|
+
"references": {
|
|
355
|
+
"ResponsiveString": {
|
|
356
|
+
"location": "import",
|
|
357
|
+
"path": "../../typings",
|
|
358
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
359
|
+
"referenceLocation": "ResponsiveString"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [{
|
|
367
|
+
"name": "type",
|
|
368
|
+
"text": "Select"
|
|
369
|
+
}, {
|
|
370
|
+
"name": "options",
|
|
371
|
+
"text": "row"
|
|
372
|
+
}, {
|
|
373
|
+
"name": "options",
|
|
374
|
+
"text": "column"
|
|
375
|
+
}, {
|
|
376
|
+
"name": "responsive",
|
|
377
|
+
"text": undefined
|
|
378
|
+
}],
|
|
379
|
+
"text": "For type flex: lay the children out in a row or a column. With columns=\"auto\", children in a column\nkeep their own width, so a list of links stacks on phones and sits in a row on larger screens."
|
|
380
|
+
},
|
|
381
|
+
"getter": false,
|
|
382
|
+
"setter": false,
|
|
383
|
+
"reflect": true,
|
|
384
|
+
"attribute": "direction",
|
|
385
|
+
"defaultValue": "'row'"
|
|
386
|
+
},
|
|
313
387
|
"columnGap": {
|
|
314
388
|
"type": "string",
|
|
315
389
|
"mutable": true,
|
|
@@ -320,7 +394,8 @@ export class ContentGridFormatter {
|
|
|
320
394
|
"ResponsiveNumber": {
|
|
321
395
|
"location": "import",
|
|
322
396
|
"path": "../../typings",
|
|
323
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
397
|
+
"id": "src/typings.d.ts::ResponsiveNumber",
|
|
398
|
+
"referenceLocation": "ResponsiveNumber"
|
|
324
399
|
}
|
|
325
400
|
}
|
|
326
401
|
},
|
|
@@ -336,8 +411,10 @@ export class ContentGridFormatter {
|
|
|
336
411
|
}],
|
|
337
412
|
"text": ""
|
|
338
413
|
},
|
|
339
|
-
"
|
|
414
|
+
"getter": false,
|
|
415
|
+
"setter": false,
|
|
340
416
|
"reflect": true,
|
|
417
|
+
"attribute": "column-gap",
|
|
341
418
|
"defaultValue": "'0'"
|
|
342
419
|
},
|
|
343
420
|
"rowGap": {
|
|
@@ -350,7 +427,8 @@ export class ContentGridFormatter {
|
|
|
350
427
|
"ResponsiveNumber": {
|
|
351
428
|
"location": "import",
|
|
352
429
|
"path": "../../typings",
|
|
353
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
430
|
+
"id": "src/typings.d.ts::ResponsiveNumber",
|
|
431
|
+
"referenceLocation": "ResponsiveNumber"
|
|
354
432
|
}
|
|
355
433
|
}
|
|
356
434
|
},
|
|
@@ -366,19 +444,19 @@ export class ContentGridFormatter {
|
|
|
366
444
|
}],
|
|
367
445
|
"text": ""
|
|
368
446
|
},
|
|
369
|
-
"
|
|
447
|
+
"getter": false,
|
|
448
|
+
"setter": false,
|
|
370
449
|
"reflect": true,
|
|
450
|
+
"attribute": "row-gap",
|
|
371
451
|
"defaultValue": "'0'"
|
|
372
452
|
}
|
|
373
453
|
};
|
|
374
454
|
}
|
|
375
455
|
static get states() {
|
|
376
456
|
return {
|
|
377
|
-
"classString": {},
|
|
378
457
|
"activeClassString": {},
|
|
379
458
|
"inlineStyle": {}
|
|
380
459
|
};
|
|
381
460
|
}
|
|
382
461
|
static get elementRef() { return "hostElement"; }
|
|
383
462
|
}
|
|
384
|
-
//# sourceMappingURL=content-grid-formatter.js.map
|