@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
|
@@ -1,48 +1,72 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveComponent } from "../../utils/responsive-component";
|
|
3
3
|
/**
|
|
4
|
+
* Adds space around its content and limits its width, with its padding and maximum width set per breakpoint.
|
|
5
|
+
*
|
|
4
6
|
* @slot content - Inner contents of spacing wrapper, can be anything.
|
|
5
7
|
* @slot - Default slot, same as content slot.
|
|
6
8
|
*/
|
|
7
|
-
export class ContentSpacingWrapper {
|
|
9
|
+
export class ContentSpacingWrapper extends ResponsiveComponent {
|
|
8
10
|
constructor() {
|
|
9
|
-
|
|
10
|
-
this.classString = undefined;
|
|
11
|
-
this.maxWidth = '100';
|
|
12
|
-
this.fullHeight = 'false';
|
|
13
|
-
this.textAlign = 'default';
|
|
14
|
-
this.horizontal = 'default';
|
|
15
|
-
this.vertical = '';
|
|
16
|
-
this.topOffset = '0';
|
|
17
|
-
this.bottomOffset = '0';
|
|
18
|
-
this.leftOffset = '0';
|
|
19
|
-
this.rightOffset = '0';
|
|
20
|
-
this.inlineStyle = {};
|
|
11
|
+
super();
|
|
21
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw".
|
|
15
|
+
* @type String
|
|
16
|
+
* @responsive
|
|
17
|
+
*/
|
|
18
|
+
maxWidth = '100';
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
* @type Boolean
|
|
22
|
+
* @responsive
|
|
23
|
+
*/
|
|
24
|
+
fullHeight = 'false';
|
|
25
|
+
/**
|
|
26
|
+
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
27
|
+
* @type Select
|
|
28
|
+
* @options default
|
|
29
|
+
* @options left
|
|
30
|
+
* @options center
|
|
31
|
+
* @options right
|
|
32
|
+
* @responsive
|
|
33
|
+
*/
|
|
34
|
+
textAlign = 'default';
|
|
35
|
+
/**
|
|
36
|
+
* Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.
|
|
37
|
+
* @type Select
|
|
38
|
+
* @options default
|
|
39
|
+
* @options left
|
|
40
|
+
* @options center
|
|
41
|
+
* @options right
|
|
42
|
+
* @responsive
|
|
43
|
+
*/
|
|
44
|
+
horizontal = 'default';
|
|
45
|
+
/**
|
|
46
|
+
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
47
|
+
* @type Select
|
|
48
|
+
* @options top
|
|
49
|
+
* @options center
|
|
50
|
+
* @options bottom
|
|
51
|
+
* @options default
|
|
52
|
+
* @responsive
|
|
53
|
+
*/
|
|
54
|
+
vertical = '';
|
|
55
|
+
inlineStyle = {};
|
|
22
56
|
componentWillLoad() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
57
|
+
// Unitless numbers are percentages.
|
|
58
|
+
const percent = (value) => (isNaN(Number(value)) ? value : value + '%');
|
|
59
|
+
const style = (property) => (value) => (this.inlineStyle = { ...this.inlineStyle, [property]: percent(value) });
|
|
60
|
+
this.responsive({
|
|
61
|
+
fullHeight: true,
|
|
62
|
+
textAlign: true,
|
|
63
|
+
horizontal: true,
|
|
64
|
+
vertical: true,
|
|
65
|
+
maxWidth: style('max-width'),
|
|
29
66
|
});
|
|
30
|
-
WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {
|
|
31
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-top': isNaN(newValue) ? newValue : newValue + '%' });
|
|
32
|
-
});
|
|
33
|
-
WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {
|
|
34
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-bottom': isNaN(newValue) ? newValue : newValue + '%' });
|
|
35
|
-
});
|
|
36
|
-
WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {
|
|
37
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-left': isNaN(newValue) ? newValue : newValue + '%' });
|
|
38
|
-
});
|
|
39
|
-
WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {
|
|
40
|
-
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-right': isNaN(newValue) ? newValue : newValue + '%' });
|
|
41
|
-
});
|
|
42
|
-
WindowResizeService.registerProp(this.classes).subscribe(newValue => (this.classString = newValue));
|
|
43
67
|
}
|
|
44
68
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
69
|
+
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' }))));
|
|
46
70
|
}
|
|
47
71
|
static get is() { return "content-spacer"; }
|
|
48
72
|
static get originalStyleUrls() {
|
|
@@ -57,38 +81,9 @@ export class ContentSpacingWrapper {
|
|
|
57
81
|
}
|
|
58
82
|
static get properties() {
|
|
59
83
|
return {
|
|
60
|
-
"classes": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"mutable": false,
|
|
63
|
-
"complexType": {
|
|
64
|
-
"original": "ResponsiveString",
|
|
65
|
-
"resolved": "string",
|
|
66
|
-
"references": {
|
|
67
|
-
"ResponsiveString": {
|
|
68
|
-
"location": "import",
|
|
69
|
-
"path": "../../typings",
|
|
70
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"required": false,
|
|
75
|
-
"optional": false,
|
|
76
|
-
"docs": {
|
|
77
|
-
"tags": [{
|
|
78
|
-
"name": "type",
|
|
79
|
-
"text": "String"
|
|
80
|
-
}, {
|
|
81
|
-
"name": "responsive",
|
|
82
|
-
"text": undefined
|
|
83
|
-
}],
|
|
84
|
-
"text": ""
|
|
85
|
-
},
|
|
86
|
-
"attribute": "classes",
|
|
87
|
-
"reflect": false
|
|
88
|
-
},
|
|
89
84
|
"maxWidth": {
|
|
90
85
|
"type": "string",
|
|
91
|
-
"mutable":
|
|
86
|
+
"mutable": true,
|
|
92
87
|
"complexType": {
|
|
93
88
|
"original": "ResponsiveNumber",
|
|
94
89
|
"resolved": "string",
|
|
@@ -96,7 +91,8 @@ export class ContentSpacingWrapper {
|
|
|
96
91
|
"ResponsiveNumber": {
|
|
97
92
|
"location": "import",
|
|
98
93
|
"path": "../../typings",
|
|
99
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
94
|
+
"id": "src/typings.d.ts::ResponsiveNumber",
|
|
95
|
+
"referenceLocation": "ResponsiveNumber"
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
98
|
},
|
|
@@ -112,8 +108,10 @@ export class ContentSpacingWrapper {
|
|
|
112
108
|
}],
|
|
113
109
|
"text": "Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\"."
|
|
114
110
|
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": true,
|
|
115
114
|
"attribute": "max-width",
|
|
116
|
-
"reflect": false,
|
|
117
115
|
"defaultValue": "'100'"
|
|
118
116
|
},
|
|
119
117
|
"fullHeight": {
|
|
@@ -126,7 +124,8 @@ export class ContentSpacingWrapper {
|
|
|
126
124
|
"ResponsiveBoolean": {
|
|
127
125
|
"location": "import",
|
|
128
126
|
"path": "../../typings",
|
|
129
|
-
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
127
|
+
"id": "src/typings.d.ts::ResponsiveBoolean",
|
|
128
|
+
"referenceLocation": "ResponsiveBoolean"
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
131
|
},
|
|
@@ -142,8 +141,10 @@ export class ContentSpacingWrapper {
|
|
|
142
141
|
}],
|
|
143
142
|
"text": "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."
|
|
144
143
|
},
|
|
145
|
-
"
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
146
146
|
"reflect": true,
|
|
147
|
+
"attribute": "full-height",
|
|
147
148
|
"defaultValue": "'false'"
|
|
148
149
|
},
|
|
149
150
|
"textAlign": {
|
|
@@ -156,7 +157,8 @@ export class ContentSpacingWrapper {
|
|
|
156
157
|
"ContentLineTextAlignOptions": {
|
|
157
158
|
"location": "import",
|
|
158
159
|
"path": "../../typings",
|
|
159
|
-
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
160
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions",
|
|
161
|
+
"referenceLocation": "ContentLineTextAlignOptions"
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
},
|
|
@@ -184,8 +186,10 @@ export class ContentSpacingWrapper {
|
|
|
184
186
|
}],
|
|
185
187
|
"text": "Pipe separated list of ContentLineTextAlignOptions for text alignment."
|
|
186
188
|
},
|
|
187
|
-
"
|
|
189
|
+
"getter": false,
|
|
190
|
+
"setter": false,
|
|
188
191
|
"reflect": true,
|
|
192
|
+
"attribute": "text-align",
|
|
189
193
|
"defaultValue": "'default'"
|
|
190
194
|
},
|
|
191
195
|
"horizontal": {
|
|
@@ -198,7 +202,8 @@ export class ContentSpacingWrapper {
|
|
|
198
202
|
"ContentLineTextAlignOptions": {
|
|
199
203
|
"location": "import",
|
|
200
204
|
"path": "../../typings",
|
|
201
|
-
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
205
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions",
|
|
206
|
+
"referenceLocation": "ContentLineTextAlignOptions"
|
|
202
207
|
}
|
|
203
208
|
}
|
|
204
209
|
},
|
|
@@ -226,8 +231,10 @@ export class ContentSpacingWrapper {
|
|
|
226
231
|
}],
|
|
227
232
|
"text": "Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified."
|
|
228
233
|
},
|
|
229
|
-
"
|
|
234
|
+
"getter": false,
|
|
235
|
+
"setter": false,
|
|
230
236
|
"reflect": true,
|
|
237
|
+
"attribute": "horizontal",
|
|
231
238
|
"defaultValue": "'default'"
|
|
232
239
|
},
|
|
233
240
|
"vertical": {
|
|
@@ -240,12 +247,14 @@ export class ContentSpacingWrapper {
|
|
|
240
247
|
"ResponsiveString": {
|
|
241
248
|
"location": "import",
|
|
242
249
|
"path": "../../typings",
|
|
243
|
-
"id": "src/typings.d.ts::ResponsiveString"
|
|
250
|
+
"id": "src/typings.d.ts::ResponsiveString",
|
|
251
|
+
"referenceLocation": "ResponsiveString"
|
|
244
252
|
},
|
|
245
253
|
"ContentVerticalAlignments": {
|
|
246
254
|
"location": "import",
|
|
247
255
|
"path": "../../typings",
|
|
248
|
-
"id": "src/typings.d.ts::ContentVerticalAlignments"
|
|
256
|
+
"id": "src/typings.d.ts::ContentVerticalAlignments",
|
|
257
|
+
"referenceLocation": "ContentVerticalAlignments"
|
|
249
258
|
}
|
|
250
259
|
}
|
|
251
260
|
},
|
|
@@ -273,149 +282,17 @@ export class ContentSpacingWrapper {
|
|
|
273
282
|
}],
|
|
274
283
|
"text": "Pipe separated list of ContentVerticalAlignments for text box placement."
|
|
275
284
|
},
|
|
276
|
-
"
|
|
285
|
+
"getter": false,
|
|
286
|
+
"setter": false,
|
|
277
287
|
"reflect": true,
|
|
288
|
+
"attribute": "vertical",
|
|
278
289
|
"defaultValue": "''"
|
|
279
|
-
},
|
|
280
|
-
"topOffset": {
|
|
281
|
-
"type": "string",
|
|
282
|
-
"mutable": false,
|
|
283
|
-
"complexType": {
|
|
284
|
-
"original": "ResponsiveNumber",
|
|
285
|
-
"resolved": "string",
|
|
286
|
-
"references": {
|
|
287
|
-
"ResponsiveNumber": {
|
|
288
|
-
"location": "import",
|
|
289
|
-
"path": "../../typings",
|
|
290
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"required": false,
|
|
295
|
-
"optional": false,
|
|
296
|
-
"docs": {
|
|
297
|
-
"tags": [{
|
|
298
|
-
"name": "type",
|
|
299
|
-
"text": "Number"
|
|
300
|
-
}, {
|
|
301
|
-
"name": "string",
|
|
302
|
-
"text": undefined
|
|
303
|
-
}, {
|
|
304
|
-
"name": "responsive",
|
|
305
|
-
"text": undefined
|
|
306
|
-
}],
|
|
307
|
-
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
308
|
-
},
|
|
309
|
-
"attribute": "top-offset",
|
|
310
|
-
"reflect": false,
|
|
311
|
-
"defaultValue": "'0'"
|
|
312
|
-
},
|
|
313
|
-
"bottomOffset": {
|
|
314
|
-
"type": "string",
|
|
315
|
-
"mutable": false,
|
|
316
|
-
"complexType": {
|
|
317
|
-
"original": "ResponsiveNumber",
|
|
318
|
-
"resolved": "string",
|
|
319
|
-
"references": {
|
|
320
|
-
"ResponsiveNumber": {
|
|
321
|
-
"location": "import",
|
|
322
|
-
"path": "../../typings",
|
|
323
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"required": false,
|
|
328
|
-
"optional": false,
|
|
329
|
-
"docs": {
|
|
330
|
-
"tags": [{
|
|
331
|
-
"name": "type",
|
|
332
|
-
"text": "Number"
|
|
333
|
-
}, {
|
|
334
|
-
"name": "string",
|
|
335
|
-
"text": undefined
|
|
336
|
-
}, {
|
|
337
|
-
"name": "responsive",
|
|
338
|
-
"text": undefined
|
|
339
|
-
}],
|
|
340
|
-
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
341
|
-
},
|
|
342
|
-
"attribute": "bottom-offset",
|
|
343
|
-
"reflect": false,
|
|
344
|
-
"defaultValue": "'0'"
|
|
345
|
-
},
|
|
346
|
-
"leftOffset": {
|
|
347
|
-
"type": "string",
|
|
348
|
-
"mutable": false,
|
|
349
|
-
"complexType": {
|
|
350
|
-
"original": "ResponsiveNumber",
|
|
351
|
-
"resolved": "string",
|
|
352
|
-
"references": {
|
|
353
|
-
"ResponsiveNumber": {
|
|
354
|
-
"location": "import",
|
|
355
|
-
"path": "../../typings",
|
|
356
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
"required": false,
|
|
361
|
-
"optional": false,
|
|
362
|
-
"docs": {
|
|
363
|
-
"tags": [{
|
|
364
|
-
"name": "type",
|
|
365
|
-
"text": "Number"
|
|
366
|
-
}, {
|
|
367
|
-
"name": "string",
|
|
368
|
-
"text": undefined
|
|
369
|
-
}, {
|
|
370
|
-
"name": "responsive",
|
|
371
|
-
"text": undefined
|
|
372
|
-
}],
|
|
373
|
-
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
374
|
-
},
|
|
375
|
-
"attribute": "left-offset",
|
|
376
|
-
"reflect": false,
|
|
377
|
-
"defaultValue": "'0'"
|
|
378
|
-
},
|
|
379
|
-
"rightOffset": {
|
|
380
|
-
"type": "string",
|
|
381
|
-
"mutable": false,
|
|
382
|
-
"complexType": {
|
|
383
|
-
"original": "ResponsiveNumber",
|
|
384
|
-
"resolved": "string",
|
|
385
|
-
"references": {
|
|
386
|
-
"ResponsiveNumber": {
|
|
387
|
-
"location": "import",
|
|
388
|
-
"path": "../../typings",
|
|
389
|
-
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"required": false,
|
|
394
|
-
"optional": false,
|
|
395
|
-
"docs": {
|
|
396
|
-
"tags": [{
|
|
397
|
-
"name": "type",
|
|
398
|
-
"text": "Number"
|
|
399
|
-
}, {
|
|
400
|
-
"name": "string",
|
|
401
|
-
"text": undefined
|
|
402
|
-
}, {
|
|
403
|
-
"name": "responsive",
|
|
404
|
-
"text": undefined
|
|
405
|
-
}],
|
|
406
|
-
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
407
|
-
},
|
|
408
|
-
"attribute": "right-offset",
|
|
409
|
-
"reflect": false,
|
|
410
|
-
"defaultValue": "'0'"
|
|
411
290
|
}
|
|
412
291
|
};
|
|
413
292
|
}
|
|
414
293
|
static get states() {
|
|
415
294
|
return {
|
|
416
|
-
"classString": {},
|
|
417
295
|
"inlineStyle": {}
|
|
418
296
|
};
|
|
419
297
|
}
|
|
420
298
|
}
|
|
421
|
-
//# sourceMappingURL=content-spacer.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
/* No default margins, and headings take the body text's font until the page styles them. A heading's
|
|
5
|
+
level is for the page outline; its look comes from the page's own styles. */
|
|
6
|
+
body,
|
|
7
|
+
h1,
|
|
8
|
+
h2,
|
|
9
|
+
h3,
|
|
10
|
+
h4,
|
|
11
|
+
h5,
|
|
12
|
+
h6,
|
|
13
|
+
p,
|
|
14
|
+
blockquote,
|
|
15
|
+
figure,
|
|
16
|
+
dl,
|
|
17
|
+
dd {
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
h1,
|
|
22
|
+
h2,
|
|
23
|
+
h3,
|
|
24
|
+
h4,
|
|
25
|
+
h5,
|
|
26
|
+
h6 {
|
|
27
|
+
font: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* HTML5 display-role reset for older browsers */
|
|
31
|
+
article,
|
|
32
|
+
aside,
|
|
33
|
+
details,
|
|
34
|
+
figcaption,
|
|
35
|
+
figure,
|
|
36
|
+
footer,
|
|
37
|
+
header,
|
|
38
|
+
hgroup,
|
|
39
|
+
menu,
|
|
40
|
+
nav,
|
|
41
|
+
section {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
body {
|
|
45
|
+
line-height: 1;
|
|
46
|
+
}
|
|
47
|
+
ol,
|
|
48
|
+
ul {
|
|
49
|
+
list-style: none;
|
|
50
|
+
}
|
|
51
|
+
blockquote,
|
|
52
|
+
q {
|
|
53
|
+
quotes: none;
|
|
54
|
+
}
|
|
55
|
+
blockquote:before,
|
|
56
|
+
blockquote:after,
|
|
57
|
+
q:before,
|
|
58
|
+
q:after {
|
|
59
|
+
content: '';
|
|
60
|
+
content: none;
|
|
61
|
+
}
|
|
62
|
+
table {
|
|
63
|
+
border-collapse: collapse;
|
|
64
|
+
border-spacing: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Hide components until their script has registered them. Without this, the first paint shows
|
|
68
|
+
their raw text, and it then vanishes when Stencil hides components that haven't rendered yet. */
|
|
69
|
+
:not(:defined) {
|
|
70
|
+
visibility: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* A navigation block's links take no space until it has rendered. Until then a menu that is closed on
|
|
74
|
+
phones would show as a full list, and the page would jump when it closed. */
|
|
75
|
+
content-navigation-block:not(.hydrated) [slot='content'] {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
package/dist/collection/index.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@mixin allPercentRules($property) {
|
|
33
33
|
@for $i from 0 to 101 {
|
|
34
34
|
&-#{$i} {
|
|
35
|
-
#{$property}: #{1% * $i};
|
|
35
|
+
#{$property}: #{1% * $i};
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
@media #{$desktop-wide-up} {
|
|
154
154
|
@include allMaxWidthRules;
|
|
155
155
|
}
|
|
156
|
-
}
|
|
156
|
+
}
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
@mixin allTextAlignRules {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
@media #{$desktop-wide-up} {
|
|
215
215
|
@include allHeroContentPlacementRules;
|
|
216
216
|
}
|
|
217
|
-
}
|
|
217
|
+
}
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
@mixin responsiveProperty($settingKey) {
|
|
@@ -245,9 +245,25 @@
|
|
|
245
245
|
@media #{$desktop-wide-up} {
|
|
246
246
|
@content;
|
|
247
247
|
}
|
|
248
|
-
}
|
|
248
|
+
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
* {
|
|
252
252
|
box-sizing: border-box;
|
|
253
|
-
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Columns laid out with flexbox. --columns sets how many fit on a row, and the rest wrap onto new rows.
|
|
256
|
+
// Shared by content-grid-formatter (type="flex") and content-split-block, so the layout is written once.
|
|
257
|
+
// $column selects the columns. Keep the result more specific than a single tag, so a column's own
|
|
258
|
+
// width (content-text-block sets width: 100% on itself) cannot override it.
|
|
259
|
+
@mixin flex-columns($column: '*') {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-wrap: wrap;
|
|
262
|
+
> #{$column} {
|
|
263
|
+
// Let a column shrink below the width of its content, such as a wide carousel. overflow: auto did
|
|
264
|
+
// this too, but gave any child whose text reached past its box a scrollbar.
|
|
265
|
+
min-width: 0;
|
|
266
|
+
flex: 0 0 auto;
|
|
267
|
+
width: calc(100% / var(--columns));
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
$mobile-only:
|
|
2
|
-
$tablet-portrait-up:
|
|
3
|
-
$tablet-portrait-down:
|
|
1
|
+
$mobile-only: 'screen and (max-width: 767px)';
|
|
2
|
+
$tablet-portrait-up: 'screen and (min-width: 768px)';
|
|
3
|
+
$tablet-portrait-down: 'screen and (max-width: 768px)';
|
|
4
4
|
|
|
5
|
-
$mobile-tablet-portrait-only:
|
|
6
|
-
$tablet-portrait-only:
|
|
7
|
-
$tablet-landscape-up:
|
|
8
|
-
$tablet-landscape-down:
|
|
5
|
+
$mobile-tablet-portrait-only: 'screen and (max-width: 1023px)';
|
|
6
|
+
$tablet-portrait-only: 'screen and (min-width: 768px) and (max-width: 1023px)';
|
|
7
|
+
$tablet-landscape-up: 'screen and (min-width: 1024px)';
|
|
8
|
+
$tablet-landscape-down: 'screen and (min-width: 1024px)';
|
|
9
9
|
|
|
10
|
-
$mobile-tablet-portrait-landscape-desktop-only:
|
|
11
|
-
$tablet-portrait-landscape-only:
|
|
12
|
-
$tablet-portrait-landscape-pro-only:
|
|
13
|
-
$tablet-landscape-pro-only:
|
|
14
|
-
$tablet-landscape-pro-down:
|
|
15
|
-
$tablet-desktop-up:
|
|
10
|
+
$mobile-tablet-portrait-landscape-desktop-only: 'screen and (max-width: 1366px)';
|
|
11
|
+
$tablet-portrait-landscape-only: 'screen and (min-width: 768px) and (max-width: 1024px)';
|
|
12
|
+
$tablet-portrait-landscape-pro-only: 'screen and (min-width: 768px) and (max-width: 1366px)';
|
|
13
|
+
$tablet-landscape-pro-only: 'screen and (min-width: 1024px) and (max-width: 1366px)';
|
|
14
|
+
$tablet-landscape-pro-down: 'screen and (max-width: 1366px)';
|
|
15
|
+
$tablet-desktop-up: 'screen and (min-width: 1280px)';
|
|
16
16
|
|
|
17
|
-
$desktop-large-up:
|
|
18
|
-
$desktop-wide-up:
|
|
17
|
+
$desktop-large-up: 'screen and (min-width: 1440px)';
|
|
18
|
+
$desktop-wide-up: 'screen and (min-width: 1920px)';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Each <template data-example> becomes a live preview followed by the markup that produced it.
|
|
2
|
+
// The markup is printed from the parsed template rather than its source text, because production
|
|
3
|
+
// builds minify this page and would leave every example on one line.
|
|
4
|
+
const voidElements = new Set(['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr']);
|
|
5
|
+
|
|
6
|
+
function attributes(element) {
|
|
7
|
+
return [...element.attributes]
|
|
8
|
+
.map(({ name, value }) => {
|
|
9
|
+
return value.includes('"') ? ` ${name}='${value.replace(/'/g, ''')}'` : ` ${name}="${value.replace(/&/g, '&')}"`;
|
|
10
|
+
})
|
|
11
|
+
.join('');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function format(nodes, depth = 0) {
|
|
15
|
+
const indent = ' '.repeat(depth);
|
|
16
|
+
const lines = [];
|
|
17
|
+
for (const node of nodes) {
|
|
18
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
19
|
+
const text = node.textContent.replace(/\s+/g, ' ').trim();
|
|
20
|
+
if (text) lines.push(indent + text);
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (node.nodeType !== Node.ELEMENT_NODE) continue;
|
|
24
|
+
const tag = node.localName;
|
|
25
|
+
const open = `<${tag}${attributes(node)}>`;
|
|
26
|
+
if (voidElements.has(tag)) {
|
|
27
|
+
lines.push(indent + open);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
// A text/template script holds markup, so print that markup nested inside it.
|
|
31
|
+
let children = [...node.childNodes];
|
|
32
|
+
if (tag === 'script' && node.type === 'text/template') {
|
|
33
|
+
const inner = document.createElement('template');
|
|
34
|
+
inner.innerHTML = node.textContent;
|
|
35
|
+
children = [...inner.content.childNodes];
|
|
36
|
+
}
|
|
37
|
+
const onlyText = children.every(child => child.nodeType === Node.TEXT_NODE);
|
|
38
|
+
if (onlyText) {
|
|
39
|
+
lines.push(`${indent}${open}${node.textContent.replace(/\s+/g, ' ').trim()}</${tag}>`);
|
|
40
|
+
} else {
|
|
41
|
+
lines.push(indent + open, ...format(children, depth + 1), `${indent}</${tag}>`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return lines;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
for (const template of document.querySelectorAll('template[data-example]')) {
|
|
48
|
+
const figure = document.createElement('figure');
|
|
49
|
+
figure.className = 'example';
|
|
50
|
+
|
|
51
|
+
const preview = document.createElement('div');
|
|
52
|
+
preview.className = 'example__preview';
|
|
53
|
+
preview.append(template.content.cloneNode(true));
|
|
54
|
+
|
|
55
|
+
const details = document.createElement('details');
|
|
56
|
+
details.className = 'example__code';
|
|
57
|
+
const summary = document.createElement('summary');
|
|
58
|
+
summary.textContent = 'HTML';
|
|
59
|
+
const pre = document.createElement('pre');
|
|
60
|
+
const code = document.createElement('code');
|
|
61
|
+
code.textContent = format(template.content.childNodes).join('\n');
|
|
62
|
+
pre.append(code);
|
|
63
|
+
details.append(summary, pre);
|
|
64
|
+
|
|
65
|
+
figure.append(preview, details);
|
|
66
|
+
template.replaceWith(figure);
|
|
67
|
+
}
|