@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
|
@@ -5,55 +5,66 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { ContentLineTextAlignOptions
|
|
9
|
-
|
|
10
|
-
import { HeroContentPlacementOptions } from "./blocks/content-hero-block/content-hero-block";
|
|
11
|
-
import { ContentLineTagOptions, ContentLineTextAlignOptions } from "./elements/content-line/content-line";
|
|
12
|
-
import { SupportedVideoMethods } from "./elements/content-video/content-video";
|
|
13
|
-
export { ContentLineTextAlignOptions as ContentLineTextAlignOptions1, ContentVerticalAlignments, FLEX_JUSTIFY_OPTIONS, GRID_TYPES, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from "./typings";
|
|
14
|
-
export { InitMethodType } from "./components/content-carousel/content-carousel";
|
|
15
|
-
export { HeroContentPlacementOptions } from "./blocks/content-hero-block/content-hero-block";
|
|
16
|
-
export { ContentLineTagOptions, ContentLineTextAlignOptions } from "./elements/content-line/content-line";
|
|
17
|
-
export { SupportedVideoMethods } from "./elements/content-video/content-video";
|
|
8
|
+
import { ContentLineTagOptions, ContentLineTextAlignOptions, ContentVerticalAlignments, FLEX_JUSTIFY_OPTIONS, GRID_TYPES, HeroContentPlacementOptions, InitMethodType, ResponsiveBoolean, ResponsiveNumber, ResponsiveString, SupportedVideoMethods } from "./typings";
|
|
9
|
+
export { ContentLineTagOptions, ContentLineTextAlignOptions, ContentVerticalAlignments, FLEX_JUSTIFY_OPTIONS, GRID_TYPES, HeroContentPlacementOptions, InitMethodType, ResponsiveBoolean, ResponsiveNumber, ResponsiveString, SupportedVideoMethods } from "./typings";
|
|
18
10
|
export namespace Components {
|
|
11
|
+
/**
|
|
12
|
+
* A button that shows and hides the content below it, such as an answer in a list of questions.
|
|
13
|
+
*/
|
|
19
14
|
interface ContentAccordion {
|
|
20
15
|
/**
|
|
21
16
|
* The ending animation class in case you want to control content styling.
|
|
22
17
|
* @type String
|
|
18
|
+
* @default 'animation-end'
|
|
23
19
|
*/
|
|
24
20
|
"animationEnd": string;
|
|
25
21
|
/**
|
|
26
22
|
* The starting animation class in case you want to control content styling.
|
|
27
23
|
* @type String
|
|
24
|
+
* @default 'animation-start'
|
|
28
25
|
*/
|
|
29
26
|
"animationStart": string;
|
|
30
27
|
/**
|
|
31
28
|
* The amount of time in milliseconds to run the closing animation, before the class is removed
|
|
32
29
|
* @type Number
|
|
30
|
+
* @default 0
|
|
33
31
|
*/
|
|
34
32
|
"animationTime": number;
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
35
|
+
* @type String
|
|
37
36
|
* @responsive
|
|
38
37
|
*/
|
|
38
|
+
"classes": ResponsiveString;
|
|
39
|
+
/**
|
|
40
|
+
* @type Boolean
|
|
41
|
+
* @responsive
|
|
42
|
+
* @default 'false'
|
|
43
|
+
*/
|
|
39
44
|
"open": ResponsiveBoolean;
|
|
45
|
+
/**
|
|
46
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
47
|
+
* @type String
|
|
48
|
+
* @responsive
|
|
49
|
+
*/
|
|
50
|
+
"padding": ResponsiveString;
|
|
40
51
|
/**
|
|
41
52
|
* The class to be applied to the trigger button element.
|
|
42
53
|
* @type String
|
|
54
|
+
* @default ''
|
|
43
55
|
*/
|
|
44
56
|
"triggerClass": string;
|
|
45
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* A link or button. Wrapped around block content, such as a card, it makes the whole area clickable, and opens a content-overlay when its href points at one.
|
|
60
|
+
*/
|
|
46
61
|
interface ContentButton {
|
|
47
62
|
/**
|
|
48
|
-
*
|
|
63
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
49
64
|
* @type String
|
|
50
65
|
* @responsive
|
|
51
66
|
*/
|
|
52
|
-
"classes":
|
|
53
|
-
/**
|
|
54
|
-
* @type Boolean
|
|
55
|
-
*/
|
|
56
|
-
"clickableBlock": boolean;
|
|
67
|
+
"classes": ResponsiveString;
|
|
57
68
|
/**
|
|
58
69
|
* /** Aria-controls value
|
|
59
70
|
* @type Target
|
|
@@ -77,50 +88,120 @@ export namespace Components {
|
|
|
77
88
|
* @responsive
|
|
78
89
|
*/
|
|
79
90
|
"linkLabel": ResponsiveString;
|
|
91
|
+
/**
|
|
92
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
93
|
+
* @type String
|
|
94
|
+
* @responsive
|
|
95
|
+
*/
|
|
96
|
+
"padding": ResponsiveString;
|
|
80
97
|
/**
|
|
81
98
|
* @type String
|
|
82
99
|
*/
|
|
83
100
|
"target": string;
|
|
84
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Slides that move sideways, built on Swiper, with labelled controls and a pause button when they move on their own.
|
|
104
|
+
*/
|
|
85
105
|
interface ContentCarousel {
|
|
106
|
+
/**
|
|
107
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
108
|
+
* @type String
|
|
109
|
+
* @responsive
|
|
110
|
+
*/
|
|
111
|
+
"classes": ResponsiveString;
|
|
86
112
|
/**
|
|
87
113
|
* @type Select
|
|
88
114
|
* @options load
|
|
89
115
|
* @options init
|
|
116
|
+
* @default 'load'
|
|
90
117
|
*/
|
|
91
118
|
"initMethod": InitMethodType;
|
|
119
|
+
/**
|
|
120
|
+
* The accessible name of the carousel, read by screen readers when they reach it.
|
|
121
|
+
* @type String
|
|
122
|
+
* @default 'Carousel'
|
|
123
|
+
*/
|
|
124
|
+
"label": string;
|
|
125
|
+
/**
|
|
126
|
+
* The accessible name of the next slide button.
|
|
127
|
+
* @type String
|
|
128
|
+
* @default 'Next slide'
|
|
129
|
+
*/
|
|
130
|
+
"nextLabel": string;
|
|
131
|
+
/**
|
|
132
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
133
|
+
* @type String
|
|
134
|
+
* @responsive
|
|
135
|
+
*/
|
|
136
|
+
"padding": ResponsiveString;
|
|
137
|
+
/**
|
|
138
|
+
* The accessible name of the button that stops slides that move on their own.
|
|
139
|
+
* @type String
|
|
140
|
+
* @default 'Pause the slides'
|
|
141
|
+
*/
|
|
142
|
+
"pauseLabel": string;
|
|
143
|
+
/**
|
|
144
|
+
* The accessible name of the button that starts the slides moving again.
|
|
145
|
+
* @type String
|
|
146
|
+
* @default 'Play the slides'
|
|
147
|
+
*/
|
|
148
|
+
"playLabel": string;
|
|
149
|
+
/**
|
|
150
|
+
* The accessible name of the previous slide button.
|
|
151
|
+
* @type String
|
|
152
|
+
* @default 'Previous slide'
|
|
153
|
+
*/
|
|
154
|
+
"prevLabel": string;
|
|
92
155
|
/**
|
|
93
156
|
* @type JSON
|
|
94
157
|
* @schema Swiper Options
|
|
158
|
+
* @default '{"slidesPerView": 1, "slidesPerGroup": 1, "autoplay": true, "loop": false}'
|
|
95
159
|
*/
|
|
96
160
|
"swiperOptions": string;
|
|
97
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Lays its children out in a grid or a row, with the number of columns, gaps and alignment set per breakpoint.
|
|
164
|
+
*/
|
|
98
165
|
interface ContentGridFormatter {
|
|
99
166
|
/**
|
|
167
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
100
168
|
* @type String
|
|
101
169
|
* @responsive
|
|
102
170
|
*/
|
|
103
171
|
"classes": ResponsiveString;
|
|
104
172
|
/**
|
|
105
173
|
* @type Number
|
|
106
|
-
* @responsive
|
|
174
|
+
* @responsive
|
|
175
|
+
* @default '0'
|
|
107
176
|
*/
|
|
108
177
|
"columnGap": ResponsiveNumber;
|
|
109
178
|
/**
|
|
110
179
|
* @type Number
|
|
111
|
-
* @responsive
|
|
180
|
+
* @responsive
|
|
181
|
+
* @default '1'
|
|
112
182
|
*/
|
|
113
183
|
"columns": ResponsiveNumber;
|
|
184
|
+
/**
|
|
185
|
+
* For type flex: lay the children out in a row or a column. With columns="auto", children in a column keep their own width, so a list of links stacks on phones and sits in a row on larger screens.
|
|
186
|
+
* @type Select
|
|
187
|
+
* @options row
|
|
188
|
+
* @options column
|
|
189
|
+
* @responsive
|
|
190
|
+
* @default 'row'
|
|
191
|
+
*/
|
|
192
|
+
"direction": ResponsiveString;
|
|
114
193
|
/**
|
|
115
194
|
* 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.
|
|
116
195
|
* @type Boolean
|
|
117
|
-
* @responsive
|
|
196
|
+
* @responsive
|
|
197
|
+
* @default 'false'
|
|
118
198
|
*/
|
|
119
199
|
"flexGrow": ResponsiveBoolean;
|
|
120
200
|
/**
|
|
121
201
|
* 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.
|
|
122
202
|
* @type Boolean
|
|
123
|
-
* @responsive
|
|
203
|
+
* @responsive
|
|
204
|
+
* @default 'false'
|
|
124
205
|
*/
|
|
125
206
|
"flexShrink": ResponsiveBoolean;
|
|
126
207
|
/**
|
|
@@ -130,13 +211,21 @@ export namespace Components {
|
|
|
130
211
|
* @options space-between
|
|
131
212
|
* @options center
|
|
132
213
|
* @options space-evenly
|
|
133
|
-
* @responsive
|
|
214
|
+
* @responsive
|
|
215
|
+
* @default 'space-between'
|
|
134
216
|
*/
|
|
135
217
|
"horizontal": FLEX_JUSTIFY_OPTIONS;
|
|
136
218
|
/**
|
|
137
|
-
*
|
|
219
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
220
|
+
* @type String
|
|
138
221
|
* @responsive
|
|
139
222
|
*/
|
|
223
|
+
"padding": ResponsiveString;
|
|
224
|
+
/**
|
|
225
|
+
* @type Number
|
|
226
|
+
* @responsive
|
|
227
|
+
* @default '0'
|
|
228
|
+
*/
|
|
140
229
|
"rowGap": ResponsiveNumber;
|
|
141
230
|
/**
|
|
142
231
|
* Flex or grid
|
|
@@ -144,7 +233,8 @@ export namespace Components {
|
|
|
144
233
|
* @options none
|
|
145
234
|
* @options flex
|
|
146
235
|
* @options grid
|
|
147
|
-
* @responsive
|
|
236
|
+
* @responsive
|
|
237
|
+
* @default 'flex'
|
|
148
238
|
*/
|
|
149
239
|
"type": GRID_TYPES | ResponsiveString;
|
|
150
240
|
/**
|
|
@@ -154,25 +244,40 @@ export namespace Components {
|
|
|
154
244
|
* @options space-between
|
|
155
245
|
* @options center
|
|
156
246
|
* @options space-evenly
|
|
157
|
-
* @responsive
|
|
247
|
+
* @responsive
|
|
248
|
+
* @default 'space-between'
|
|
158
249
|
*/
|
|
159
250
|
"vertical": FLEX_JUSTIFY_OPTIONS;
|
|
160
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* A full width section with an image or video behind, or above, its text. Usually the first block on a page.
|
|
254
|
+
*/
|
|
161
255
|
interface ContentHeroBlock {
|
|
162
256
|
/**
|
|
257
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
163
258
|
* @type String
|
|
164
259
|
* @responsive
|
|
165
260
|
*/
|
|
166
261
|
"classes": ResponsiveString;
|
|
167
262
|
/**
|
|
168
|
-
*
|
|
263
|
+
* Where the content sits: above, over the media, or below it. Over the media by default. Use pipes to change it per breakpoint, such as below|above for the text below the media on phones and over it from tablets.
|
|
169
264
|
* @type Select
|
|
170
265
|
* @options below
|
|
171
266
|
* @options above
|
|
172
|
-
* @responsive
|
|
267
|
+
* @responsive
|
|
268
|
+
* @default 'above'
|
|
173
269
|
*/
|
|
174
270
|
"contentPosition": ResponsiveString | HeroContentPlacementOptions;
|
|
271
|
+
/**
|
|
272
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
273
|
+
* @type String
|
|
274
|
+
* @responsive
|
|
275
|
+
*/
|
|
276
|
+
"padding": ResponsiveString;
|
|
175
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* A responsive image or muted looping video per breakpoint with native lazy loading.
|
|
280
|
+
*/
|
|
176
281
|
interface ContentImage {
|
|
177
282
|
/**
|
|
178
283
|
* @type String
|
|
@@ -185,23 +290,42 @@ export namespace Components {
|
|
|
185
290
|
*/
|
|
186
291
|
"aspectRatio": ResponsiveString;
|
|
187
292
|
/**
|
|
293
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
188
294
|
* @type String
|
|
189
295
|
* @responsive
|
|
190
296
|
*/
|
|
191
297
|
"classes": ResponsiveString;
|
|
298
|
+
/**
|
|
299
|
+
* How soon the browser should download the image compared with other files. Use "high" for the main image of the page.
|
|
300
|
+
* @type Select
|
|
301
|
+
* @options auto
|
|
302
|
+
* @options high
|
|
303
|
+
* @options low
|
|
304
|
+
*/
|
|
305
|
+
"fetchPriority"?: 'high' | 'low' | 'auto';
|
|
192
306
|
/**
|
|
193
307
|
* @type Number
|
|
194
|
-
* @responsive
|
|
308
|
+
* @responsive
|
|
309
|
+
* @default '9'
|
|
195
310
|
*/
|
|
196
311
|
"height": ResponsiveNumber;
|
|
197
312
|
/**
|
|
313
|
+
* Images use the browser's native lazy loading. Set to false for images that are visible when the page opens, such as a hero, so they download straight away.
|
|
198
314
|
* @type Boolean
|
|
315
|
+
* @default true
|
|
199
316
|
*/
|
|
200
317
|
"lazyLoad": boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
320
|
+
* @type String
|
|
321
|
+
* @responsive
|
|
322
|
+
*/
|
|
323
|
+
"padding": ResponsiveString;
|
|
201
324
|
/**
|
|
202
325
|
* If true, the content in the mediaContent slot will be visible.
|
|
203
326
|
* @type Boolean
|
|
204
|
-
* @responsive
|
|
327
|
+
* @responsive
|
|
328
|
+
* @default 'false|true'
|
|
205
329
|
*/
|
|
206
330
|
"showContent": ResponsiveBoolean;
|
|
207
331
|
/**
|
|
@@ -213,32 +337,45 @@ export namespace Components {
|
|
|
213
337
|
* @type Select
|
|
214
338
|
* @options image
|
|
215
339
|
* @options video
|
|
340
|
+
* @default 'image'
|
|
216
341
|
*/
|
|
217
342
|
"type"?: 'image' | 'video';
|
|
218
343
|
/**
|
|
219
344
|
* @type Select
|
|
220
345
|
* @options video/mp4
|
|
346
|
+
* @default 'video/mp4'
|
|
221
347
|
*/
|
|
222
348
|
"videoType"?: string;
|
|
223
349
|
/**
|
|
224
350
|
* @type Number
|
|
225
|
-
* @responsive
|
|
351
|
+
* @responsive
|
|
352
|
+
* @default '16'
|
|
226
353
|
*/
|
|
227
354
|
"width": ResponsiveNumber;
|
|
228
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* One line of text, such as a heading or a paragraph, with its tag, alignment and maximum width set per breakpoint.
|
|
358
|
+
*/
|
|
229
359
|
interface ContentLine {
|
|
230
360
|
/**
|
|
231
|
-
*
|
|
361
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
232
362
|
* @type String
|
|
233
363
|
* @responsive
|
|
234
364
|
*/
|
|
235
|
-
"classes":
|
|
365
|
+
"classes": ResponsiveString;
|
|
236
366
|
/**
|
|
237
367
|
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw". If no unit is provided, defaults to percentage.
|
|
238
368
|
* @type String
|
|
239
|
-
* @responsive
|
|
369
|
+
* @responsive
|
|
370
|
+
* @default '100%'
|
|
240
371
|
*/
|
|
241
372
|
"maxWidth": ResponsiveNumber;
|
|
373
|
+
/**
|
|
374
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
375
|
+
* @type String
|
|
376
|
+
* @responsive
|
|
377
|
+
*/
|
|
378
|
+
"padding": ResponsiveString;
|
|
242
379
|
/**
|
|
243
380
|
* The element tag to use.
|
|
244
381
|
* @type Select
|
|
@@ -253,6 +390,7 @@ export namespace Components {
|
|
|
253
390
|
* @options span
|
|
254
391
|
* @options section
|
|
255
392
|
* @options article
|
|
393
|
+
* @default 'div'
|
|
256
394
|
*/
|
|
257
395
|
"tag": ContentLineTagOptions;
|
|
258
396
|
/**
|
|
@@ -262,16 +400,27 @@ export namespace Components {
|
|
|
262
400
|
* @options left
|
|
263
401
|
* @options center
|
|
264
402
|
* @options right
|
|
265
|
-
* @responsive
|
|
403
|
+
* @responsive
|
|
404
|
+
* @default 'default'
|
|
266
405
|
*/
|
|
267
406
|
"textAlign": ContentLineTextAlignOptions;
|
|
268
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Site navigation that collapses into a menu button on the breakpoints you choose, with a skip link for keyboard users.
|
|
410
|
+
*/
|
|
269
411
|
interface ContentNavigationBlock {
|
|
270
412
|
/**
|
|
413
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
271
414
|
* @type String
|
|
272
415
|
* @responsive
|
|
273
416
|
*/
|
|
274
417
|
"classes": ResponsiveString;
|
|
418
|
+
/**
|
|
419
|
+
* The accessible name of the default close button.
|
|
420
|
+
* @type String
|
|
421
|
+
* @default 'Close menu'
|
|
422
|
+
*/
|
|
423
|
+
"closeLabel": string;
|
|
275
424
|
/**
|
|
276
425
|
* @type Select
|
|
277
426
|
* @responsive
|
|
@@ -280,11 +429,28 @@ export namespace Components {
|
|
|
280
429
|
* @options sticky
|
|
281
430
|
* @options static
|
|
282
431
|
* @options none
|
|
432
|
+
* @default 'fixed|none'
|
|
283
433
|
*/
|
|
284
434
|
"hamburger": ResponsiveString;
|
|
435
|
+
/**
|
|
436
|
+
* The accessible name of the default menu button.
|
|
437
|
+
* @type String
|
|
438
|
+
* @default 'Open menu'
|
|
439
|
+
*/
|
|
440
|
+
"openLabel": string;
|
|
441
|
+
/**
|
|
442
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
443
|
+
* @type String
|
|
444
|
+
* @responsive
|
|
445
|
+
*/
|
|
446
|
+
"padding": ResponsiveString;
|
|
285
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* A dialog that opens over the page, or inside another element, and keeps keyboard focus inside it while open.
|
|
450
|
+
*/
|
|
286
451
|
interface ContentOverlay {
|
|
287
452
|
/**
|
|
453
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
288
454
|
* @type String
|
|
289
455
|
* @responsive
|
|
290
456
|
*/
|
|
@@ -293,11 +459,20 @@ export namespace Components {
|
|
|
293
459
|
/**
|
|
294
460
|
* Title attribute value for the close button.
|
|
295
461
|
* @type String
|
|
462
|
+
* @default 'Close Overlay'
|
|
296
463
|
*/
|
|
297
464
|
"closeTitle": string;
|
|
465
|
+
/**
|
|
466
|
+
* What the overlay covers. "body", the default, covers the whole screen. A CSS selector, such as "#hero", covers that element instead: the overlay moves into it when it opens. Use pipes to cover the screen on phones and an element on wider screens: fill="body|#hero".
|
|
467
|
+
* @type String
|
|
468
|
+
* @responsive
|
|
469
|
+
* @default 'body'
|
|
470
|
+
*/
|
|
471
|
+
"fill": ResponsiveString;
|
|
298
472
|
/**
|
|
299
473
|
* @type Boolean
|
|
300
|
-
* @responsive
|
|
474
|
+
* @responsive
|
|
475
|
+
* @default 'true'
|
|
301
476
|
*/
|
|
302
477
|
"fullScreen": ResponsiveBoolean;
|
|
303
478
|
/**
|
|
@@ -307,47 +482,44 @@ export namespace Components {
|
|
|
307
482
|
* @options left
|
|
308
483
|
* @options center
|
|
309
484
|
* @options right
|
|
310
|
-
* @responsive
|
|
485
|
+
* @responsive
|
|
486
|
+
* @default 'center'
|
|
487
|
+
*/
|
|
488
|
+
"horizontal": ContentLineTextAlignOptions;
|
|
489
|
+
/**
|
|
490
|
+
* The accessible name of the dialog. Only needed when there is no header slot, which names it otherwise.
|
|
491
|
+
* @type String
|
|
311
492
|
*/
|
|
312
|
-
"
|
|
493
|
+
"label": string;
|
|
313
494
|
/**
|
|
314
495
|
* @type Boolean
|
|
315
|
-
* @responsive
|
|
496
|
+
* @responsive
|
|
497
|
+
* @default 'false'
|
|
316
498
|
*/
|
|
317
499
|
"open": ResponsiveBoolean;
|
|
318
500
|
"openOverlay": () => Promise<void>;
|
|
319
501
|
/**
|
|
320
|
-
*
|
|
321
|
-
* @type Select
|
|
322
|
-
* @options absolute
|
|
323
|
-
* @options fixed
|
|
324
|
-
* @options static
|
|
325
|
-
* @options sticky
|
|
326
|
-
*/
|
|
327
|
-
"position": ResponsiveString;
|
|
328
|
-
/**
|
|
502
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
329
503
|
* @type String
|
|
330
504
|
* @responsive
|
|
331
505
|
*/
|
|
332
|
-
"
|
|
506
|
+
"padding": ResponsiveString;
|
|
333
507
|
/**
|
|
334
508
|
* A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.
|
|
335
509
|
* @type Select
|
|
336
510
|
* @options top
|
|
337
511
|
* @options center
|
|
338
512
|
* @options bottom
|
|
513
|
+
* @default 'center'
|
|
339
514
|
*/
|
|
340
515
|
"vertical": ContentVerticalAlignments;
|
|
341
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Adds space around its content and limits its width, with its padding and maximum width set per breakpoint.
|
|
519
|
+
*/
|
|
342
520
|
interface ContentSpacer {
|
|
343
521
|
/**
|
|
344
|
-
*
|
|
345
|
-
* @type Number
|
|
346
|
-
* @string
|
|
347
|
-
* @responsive
|
|
348
|
-
*/
|
|
349
|
-
"bottomOffset": ResponsiveNumber;
|
|
350
|
-
/**
|
|
522
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
351
523
|
* @type String
|
|
352
524
|
* @responsive
|
|
353
525
|
*/
|
|
@@ -355,7 +527,8 @@ export namespace Components {
|
|
|
355
527
|
/**
|
|
356
528
|
* 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.
|
|
357
529
|
* @type Boolean
|
|
358
|
-
* @responsive
|
|
530
|
+
* @responsive
|
|
531
|
+
* @default 'false'
|
|
359
532
|
*/
|
|
360
533
|
"fullHeight": ResponsiveBoolean;
|
|
361
534
|
/**
|
|
@@ -365,29 +538,23 @@ export namespace Components {
|
|
|
365
538
|
* @options left
|
|
366
539
|
* @options center
|
|
367
540
|
* @options right
|
|
368
|
-
* @responsive
|
|
369
|
-
|
|
370
|
-
"horizontal": ContentLineTextAlignOptions1;
|
|
371
|
-
/**
|
|
372
|
-
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
373
|
-
* @type Number
|
|
374
|
-
* @string
|
|
375
|
-
* @responsive
|
|
541
|
+
* @responsive
|
|
542
|
+
* @default 'default'
|
|
376
543
|
*/
|
|
377
|
-
"
|
|
544
|
+
"horizontal": ContentLineTextAlignOptions;
|
|
378
545
|
/**
|
|
379
546
|
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw".
|
|
380
547
|
* @type String
|
|
381
|
-
* @responsive
|
|
548
|
+
* @responsive
|
|
549
|
+
* @default '100'
|
|
382
550
|
*/
|
|
383
551
|
"maxWidth": ResponsiveNumber;
|
|
384
552
|
/**
|
|
385
|
-
*
|
|
386
|
-
* @type
|
|
387
|
-
* @string
|
|
553
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
554
|
+
* @type String
|
|
388
555
|
* @responsive
|
|
389
556
|
*/
|
|
390
|
-
"
|
|
557
|
+
"padding": ResponsiveString;
|
|
391
558
|
/**
|
|
392
559
|
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
393
560
|
* @type Select
|
|
@@ -395,16 +562,10 @@ export namespace Components {
|
|
|
395
562
|
* @options left
|
|
396
563
|
* @options center
|
|
397
564
|
* @options right
|
|
398
|
-
* @responsive
|
|
399
|
-
|
|
400
|
-
"textAlign": ContentLineTextAlignOptions1;
|
|
401
|
-
/**
|
|
402
|
-
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
403
|
-
* @type Number
|
|
404
|
-
* @string
|
|
405
|
-
* @responsive
|
|
565
|
+
* @responsive
|
|
566
|
+
* @default 'default'
|
|
406
567
|
*/
|
|
407
|
-
"
|
|
568
|
+
"textAlign": ContentLineTextAlignOptions;
|
|
408
569
|
/**
|
|
409
570
|
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
410
571
|
* @type Select
|
|
@@ -412,44 +573,71 @@ export namespace Components {
|
|
|
412
573
|
* @options center
|
|
413
574
|
* @options bottom
|
|
414
575
|
* @options default
|
|
415
|
-
* @responsive
|
|
576
|
+
* @responsive
|
|
577
|
+
* @default ''
|
|
416
578
|
*/
|
|
417
579
|
"vertical": ResponsiveString | ContentVerticalAlignments;
|
|
418
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Two columns side by side, such as an image next to text, that stack on smaller screens.
|
|
583
|
+
*/
|
|
419
584
|
interface ContentSplitBlock {
|
|
420
585
|
/**
|
|
586
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
421
587
|
* @type String
|
|
422
588
|
* @responsive
|
|
423
589
|
*/
|
|
424
590
|
"classes": ResponsiveString;
|
|
425
591
|
/**
|
|
426
592
|
* @type Number
|
|
427
|
-
* @responsive
|
|
593
|
+
* @responsive
|
|
594
|
+
* @default '1|2'
|
|
428
595
|
*/
|
|
429
596
|
"columns": string;
|
|
430
597
|
/**
|
|
431
|
-
*
|
|
598
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
599
|
+
* @type String
|
|
432
600
|
* @responsive
|
|
433
601
|
*/
|
|
602
|
+
"padding": ResponsiveString;
|
|
603
|
+
/**
|
|
604
|
+
* @type Boolean
|
|
605
|
+
* @responsive
|
|
606
|
+
* @default false
|
|
607
|
+
*/
|
|
434
608
|
"reverse": ResponsiveBoolean | boolean;
|
|
435
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* Accessible tabs: a tablist of buttons and the panels they show, with arrow key support.
|
|
612
|
+
*/
|
|
436
613
|
interface ContentTabs {
|
|
437
614
|
/**
|
|
615
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
438
616
|
* @type String
|
|
439
617
|
* @responsive
|
|
440
618
|
*/
|
|
441
619
|
"classes": ResponsiveString;
|
|
620
|
+
/**
|
|
621
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
622
|
+
* @type String
|
|
623
|
+
* @responsive
|
|
624
|
+
*/
|
|
625
|
+
"padding": ResponsiveString;
|
|
442
626
|
}
|
|
627
|
+
/**
|
|
628
|
+
* A block of text with its alignment, vertical position and minimum height set per breakpoint.
|
|
629
|
+
*/
|
|
443
630
|
interface ContentTextBlock {
|
|
444
631
|
/**
|
|
445
|
-
*
|
|
632
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
446
633
|
* @type String
|
|
447
634
|
* @responsive
|
|
448
635
|
*/
|
|
449
636
|
"classes": ResponsiveString;
|
|
450
637
|
/**
|
|
451
638
|
* @type Boolean
|
|
452
|
-
* @responsive
|
|
639
|
+
* @responsive
|
|
640
|
+
* @default 'false'
|
|
453
641
|
*/
|
|
454
642
|
"fullHeight": ResponsiveString;
|
|
455
643
|
/**
|
|
@@ -458,6 +646,12 @@ export namespace Components {
|
|
|
458
646
|
* @responsive
|
|
459
647
|
*/
|
|
460
648
|
"minHeight": ResponsiveString;
|
|
649
|
+
/**
|
|
650
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
651
|
+
* @type String
|
|
652
|
+
* @responsive
|
|
653
|
+
*/
|
|
654
|
+
"padding": ResponsiveString;
|
|
461
655
|
/**
|
|
462
656
|
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
463
657
|
* @type Select
|
|
@@ -465,21 +659,27 @@ export namespace Components {
|
|
|
465
659
|
* @options left
|
|
466
660
|
* @options center
|
|
467
661
|
* @options right
|
|
468
|
-
* @responsive
|
|
662
|
+
* @responsive
|
|
663
|
+
* @default 'default'
|
|
469
664
|
*/
|
|
470
|
-
"textAlign":
|
|
665
|
+
"textAlign": ContentLineTextAlignOptions;
|
|
471
666
|
/**
|
|
472
667
|
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
473
668
|
* @type Select
|
|
474
669
|
* @options top
|
|
475
670
|
* @options center
|
|
476
671
|
* @options bottom
|
|
477
|
-
* @responsive
|
|
672
|
+
* @responsive
|
|
673
|
+
* @default 'top'
|
|
478
674
|
*/
|
|
479
675
|
"vertical": ContentVerticalAlignments;
|
|
480
676
|
}
|
|
677
|
+
/**
|
|
678
|
+
* A card that promotes something: an image or video with text below it, and an optional layer over the media that can show on hover.
|
|
679
|
+
*/
|
|
481
680
|
interface ContentToutBlock {
|
|
482
681
|
/**
|
|
682
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
483
683
|
* @type String
|
|
484
684
|
* @responsive
|
|
485
685
|
*/
|
|
@@ -487,60 +687,93 @@ export namespace Components {
|
|
|
487
687
|
/**
|
|
488
688
|
* If true, the media content will show only on hover
|
|
489
689
|
* @type Boolean
|
|
490
|
-
* @responsive
|
|
690
|
+
* @responsive
|
|
691
|
+
* @default 'false|true'
|
|
491
692
|
*/
|
|
492
693
|
"hover": ResponsiveBoolean;
|
|
694
|
+
/**
|
|
695
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
696
|
+
* @type String
|
|
697
|
+
* @responsive
|
|
698
|
+
*/
|
|
699
|
+
"padding": ResponsiveString;
|
|
493
700
|
}
|
|
701
|
+
/**
|
|
702
|
+
* A video player for YouTube or self hosted files, built on Video.js.
|
|
703
|
+
*/
|
|
494
704
|
interface ContentVideo {
|
|
495
705
|
/**
|
|
496
706
|
* If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.
|
|
497
707
|
* @type Boolean
|
|
708
|
+
* @default false
|
|
498
709
|
*/
|
|
499
710
|
"autoplay": boolean;
|
|
500
711
|
/**
|
|
712
|
+
* Sets whether or not an autoplaying video should be muted. By default autoplay videos will be muted.
|
|
713
|
+
* @type Boolean
|
|
714
|
+
* @default true
|
|
715
|
+
*/
|
|
716
|
+
"autoplayMute": boolean;
|
|
717
|
+
/**
|
|
718
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
501
719
|
* @type String
|
|
502
720
|
* @responsive
|
|
503
721
|
*/
|
|
504
722
|
"classes": ResponsiveString;
|
|
505
723
|
/**
|
|
506
724
|
* @type Boolean
|
|
725
|
+
* @default true
|
|
507
726
|
*/
|
|
508
727
|
"controls": boolean;
|
|
509
728
|
/**
|
|
510
729
|
* Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.
|
|
511
730
|
* @responsive
|
|
512
731
|
* @type String
|
|
732
|
+
* @default 'false'
|
|
513
733
|
*/
|
|
514
734
|
"fitContainer": ResponsiveString;
|
|
515
735
|
/**
|
|
516
736
|
* @type Number
|
|
737
|
+
* @default 9
|
|
517
738
|
*/
|
|
518
739
|
"height": number;
|
|
519
740
|
/**
|
|
520
741
|
* @type Select
|
|
521
742
|
* @options youtube
|
|
522
743
|
* @options html5
|
|
744
|
+
* @default 'youtube'
|
|
523
745
|
*/
|
|
524
746
|
"method": SupportedVideoMethods;
|
|
525
747
|
/**
|
|
748
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
526
749
|
* @type String
|
|
750
|
+
* @responsive
|
|
751
|
+
*/
|
|
752
|
+
"padding": ResponsiveString;
|
|
753
|
+
/**
|
|
754
|
+
* @type String
|
|
755
|
+
* @default 'Play'
|
|
527
756
|
*/
|
|
528
757
|
"playButtonAriaLabel": string;
|
|
529
758
|
/**
|
|
530
759
|
* @type String
|
|
760
|
+
* @default 'metadata'
|
|
531
761
|
*/
|
|
532
762
|
"preload": string;
|
|
533
763
|
/**
|
|
534
764
|
* Supports YouTube and self hosted URLs.
|
|
535
765
|
* @type String
|
|
766
|
+
* @default ''
|
|
536
767
|
*/
|
|
537
768
|
"src": string;
|
|
538
769
|
/**
|
|
539
770
|
* @type String
|
|
771
|
+
* @default 'video/mp4'
|
|
540
772
|
*/
|
|
541
773
|
"type": string;
|
|
542
774
|
/**
|
|
543
775
|
* @type Number
|
|
776
|
+
* @default 16
|
|
544
777
|
*/
|
|
545
778
|
"width": number;
|
|
546
779
|
}
|
|
@@ -550,48 +783,72 @@ export interface ContentOverlayCustomEvent<T> extends CustomEvent<T> {
|
|
|
550
783
|
target: HTMLContentOverlayElement;
|
|
551
784
|
}
|
|
552
785
|
declare global {
|
|
786
|
+
/**
|
|
787
|
+
* A button that shows and hides the content below it, such as an answer in a list of questions.
|
|
788
|
+
*/
|
|
553
789
|
interface HTMLContentAccordionElement extends Components.ContentAccordion, HTMLStencilElement {
|
|
554
790
|
}
|
|
555
791
|
var HTMLContentAccordionElement: {
|
|
556
792
|
prototype: HTMLContentAccordionElement;
|
|
557
793
|
new (): HTMLContentAccordionElement;
|
|
558
794
|
};
|
|
795
|
+
/**
|
|
796
|
+
* A link or button. Wrapped around block content, such as a card, it makes the whole area clickable, and opens a content-overlay when its href points at one.
|
|
797
|
+
*/
|
|
559
798
|
interface HTMLContentButtonElement extends Components.ContentButton, HTMLStencilElement {
|
|
560
799
|
}
|
|
561
800
|
var HTMLContentButtonElement: {
|
|
562
801
|
prototype: HTMLContentButtonElement;
|
|
563
802
|
new (): HTMLContentButtonElement;
|
|
564
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Slides that move sideways, built on Swiper, with labelled controls and a pause button when they move on their own.
|
|
806
|
+
*/
|
|
565
807
|
interface HTMLContentCarouselElement extends Components.ContentCarousel, HTMLStencilElement {
|
|
566
808
|
}
|
|
567
809
|
var HTMLContentCarouselElement: {
|
|
568
810
|
prototype: HTMLContentCarouselElement;
|
|
569
811
|
new (): HTMLContentCarouselElement;
|
|
570
812
|
};
|
|
813
|
+
/**
|
|
814
|
+
* Lays its children out in a grid or a row, with the number of columns, gaps and alignment set per breakpoint.
|
|
815
|
+
*/
|
|
571
816
|
interface HTMLContentGridFormatterElement extends Components.ContentGridFormatter, HTMLStencilElement {
|
|
572
817
|
}
|
|
573
818
|
var HTMLContentGridFormatterElement: {
|
|
574
819
|
prototype: HTMLContentGridFormatterElement;
|
|
575
820
|
new (): HTMLContentGridFormatterElement;
|
|
576
821
|
};
|
|
822
|
+
/**
|
|
823
|
+
* A full width section with an image or video behind, or above, its text. Usually the first block on a page.
|
|
824
|
+
*/
|
|
577
825
|
interface HTMLContentHeroBlockElement extends Components.ContentHeroBlock, HTMLStencilElement {
|
|
578
826
|
}
|
|
579
827
|
var HTMLContentHeroBlockElement: {
|
|
580
828
|
prototype: HTMLContentHeroBlockElement;
|
|
581
829
|
new (): HTMLContentHeroBlockElement;
|
|
582
830
|
};
|
|
831
|
+
/**
|
|
832
|
+
* A responsive image or muted looping video per breakpoint with native lazy loading.
|
|
833
|
+
*/
|
|
583
834
|
interface HTMLContentImageElement extends Components.ContentImage, HTMLStencilElement {
|
|
584
835
|
}
|
|
585
836
|
var HTMLContentImageElement: {
|
|
586
837
|
prototype: HTMLContentImageElement;
|
|
587
838
|
new (): HTMLContentImageElement;
|
|
588
839
|
};
|
|
840
|
+
/**
|
|
841
|
+
* One line of text, such as a heading or a paragraph, with its tag, alignment and maximum width set per breakpoint.
|
|
842
|
+
*/
|
|
589
843
|
interface HTMLContentLineElement extends Components.ContentLine, HTMLStencilElement {
|
|
590
844
|
}
|
|
591
845
|
var HTMLContentLineElement: {
|
|
592
846
|
prototype: HTMLContentLineElement;
|
|
593
847
|
new (): HTMLContentLineElement;
|
|
594
848
|
};
|
|
849
|
+
/**
|
|
850
|
+
* Site navigation that collapses into a menu button on the breakpoints you choose, with a skip link for keyboard users.
|
|
851
|
+
*/
|
|
595
852
|
interface HTMLContentNavigationBlockElement extends Components.ContentNavigationBlock, HTMLStencilElement {
|
|
596
853
|
}
|
|
597
854
|
var HTMLContentNavigationBlockElement: {
|
|
@@ -600,7 +857,11 @@ declare global {
|
|
|
600
857
|
};
|
|
601
858
|
interface HTMLContentOverlayElementEventMap {
|
|
602
859
|
"contentOverlayActivated": HTMLElement;
|
|
860
|
+
"contentOverlayDeactivated": HTMLElement;
|
|
603
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* A dialog that opens over the page, or inside another element, and keeps keyboard focus inside it while open.
|
|
864
|
+
*/
|
|
604
865
|
interface HTMLContentOverlayElement extends Components.ContentOverlay, HTMLStencilElement {
|
|
605
866
|
addEventListener<K extends keyof HTMLContentOverlayElementEventMap>(type: K, listener: (this: HTMLContentOverlayElement, ev: ContentOverlayCustomEvent<HTMLContentOverlayElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
606
867
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -615,36 +876,54 @@ declare global {
|
|
|
615
876
|
prototype: HTMLContentOverlayElement;
|
|
616
877
|
new (): HTMLContentOverlayElement;
|
|
617
878
|
};
|
|
879
|
+
/**
|
|
880
|
+
* Adds space around its content and limits its width, with its padding and maximum width set per breakpoint.
|
|
881
|
+
*/
|
|
618
882
|
interface HTMLContentSpacerElement extends Components.ContentSpacer, HTMLStencilElement {
|
|
619
883
|
}
|
|
620
884
|
var HTMLContentSpacerElement: {
|
|
621
885
|
prototype: HTMLContentSpacerElement;
|
|
622
886
|
new (): HTMLContentSpacerElement;
|
|
623
887
|
};
|
|
888
|
+
/**
|
|
889
|
+
* Two columns side by side, such as an image next to text, that stack on smaller screens.
|
|
890
|
+
*/
|
|
624
891
|
interface HTMLContentSplitBlockElement extends Components.ContentSplitBlock, HTMLStencilElement {
|
|
625
892
|
}
|
|
626
893
|
var HTMLContentSplitBlockElement: {
|
|
627
894
|
prototype: HTMLContentSplitBlockElement;
|
|
628
895
|
new (): HTMLContentSplitBlockElement;
|
|
629
896
|
};
|
|
897
|
+
/**
|
|
898
|
+
* Accessible tabs: a tablist of buttons and the panels they show, with arrow key support.
|
|
899
|
+
*/
|
|
630
900
|
interface HTMLContentTabsElement extends Components.ContentTabs, HTMLStencilElement {
|
|
631
901
|
}
|
|
632
902
|
var HTMLContentTabsElement: {
|
|
633
903
|
prototype: HTMLContentTabsElement;
|
|
634
904
|
new (): HTMLContentTabsElement;
|
|
635
905
|
};
|
|
906
|
+
/**
|
|
907
|
+
* A block of text with its alignment, vertical position and minimum height set per breakpoint.
|
|
908
|
+
*/
|
|
636
909
|
interface HTMLContentTextBlockElement extends Components.ContentTextBlock, HTMLStencilElement {
|
|
637
910
|
}
|
|
638
911
|
var HTMLContentTextBlockElement: {
|
|
639
912
|
prototype: HTMLContentTextBlockElement;
|
|
640
913
|
new (): HTMLContentTextBlockElement;
|
|
641
914
|
};
|
|
915
|
+
/**
|
|
916
|
+
* A card that promotes something: an image or video with text below it, and an optional layer over the media that can show on hover.
|
|
917
|
+
*/
|
|
642
918
|
interface HTMLContentToutBlockElement extends Components.ContentToutBlock, HTMLStencilElement {
|
|
643
919
|
}
|
|
644
920
|
var HTMLContentToutBlockElement: {
|
|
645
921
|
prototype: HTMLContentToutBlockElement;
|
|
646
922
|
new (): HTMLContentToutBlockElement;
|
|
647
923
|
};
|
|
924
|
+
/**
|
|
925
|
+
* A video player for YouTube or self hosted files, built on Video.js.
|
|
926
|
+
*/
|
|
648
927
|
interface HTMLContentVideoElement extends Components.ContentVideo, HTMLStencilElement {
|
|
649
928
|
}
|
|
650
929
|
var HTMLContentVideoElement: {
|
|
@@ -670,44 +949,65 @@ declare global {
|
|
|
670
949
|
}
|
|
671
950
|
}
|
|
672
951
|
declare namespace LocalJSX {
|
|
952
|
+
type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K]?: never };
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* A button that shows and hides the content below it, such as an answer in a list of questions.
|
|
956
|
+
*/
|
|
673
957
|
interface ContentAccordion {
|
|
674
958
|
/**
|
|
675
959
|
* The ending animation class in case you want to control content styling.
|
|
676
960
|
* @type String
|
|
961
|
+
* @default 'animation-end'
|
|
677
962
|
*/
|
|
678
963
|
"animationEnd"?: string;
|
|
679
964
|
/**
|
|
680
965
|
* The starting animation class in case you want to control content styling.
|
|
681
966
|
* @type String
|
|
967
|
+
* @default 'animation-start'
|
|
682
968
|
*/
|
|
683
969
|
"animationStart"?: string;
|
|
684
970
|
/**
|
|
685
971
|
* The amount of time in milliseconds to run the closing animation, before the class is removed
|
|
686
972
|
* @type Number
|
|
973
|
+
* @default 0
|
|
687
974
|
*/
|
|
688
975
|
"animationTime"?: number;
|
|
689
976
|
/**
|
|
690
|
-
*
|
|
977
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
978
|
+
* @type String
|
|
691
979
|
* @responsive
|
|
692
980
|
*/
|
|
981
|
+
"classes"?: ResponsiveString;
|
|
982
|
+
/**
|
|
983
|
+
* @type Boolean
|
|
984
|
+
* @responsive
|
|
985
|
+
* @default 'false'
|
|
986
|
+
*/
|
|
693
987
|
"open"?: ResponsiveBoolean;
|
|
988
|
+
/**
|
|
989
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
990
|
+
* @type String
|
|
991
|
+
* @responsive
|
|
992
|
+
*/
|
|
993
|
+
"padding"?: ResponsiveString;
|
|
694
994
|
/**
|
|
695
995
|
* The class to be applied to the trigger button element.
|
|
696
996
|
* @type String
|
|
997
|
+
* @default ''
|
|
697
998
|
*/
|
|
698
999
|
"triggerClass"?: string;
|
|
699
1000
|
}
|
|
1001
|
+
/**
|
|
1002
|
+
* A link or button. Wrapped around block content, such as a card, it makes the whole area clickable, and opens a content-overlay when its href points at one.
|
|
1003
|
+
*/
|
|
700
1004
|
interface ContentButton {
|
|
701
1005
|
/**
|
|
702
|
-
*
|
|
1006
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
703
1007
|
* @type String
|
|
704
1008
|
* @responsive
|
|
705
1009
|
*/
|
|
706
|
-
"classes"?:
|
|
707
|
-
/**
|
|
708
|
-
* @type Boolean
|
|
709
|
-
*/
|
|
710
|
-
"clickableBlock"?: boolean;
|
|
1010
|
+
"classes"?: ResponsiveString;
|
|
711
1011
|
/**
|
|
712
1012
|
* /** Aria-controls value
|
|
713
1013
|
* @type Target
|
|
@@ -731,50 +1031,120 @@ declare namespace LocalJSX {
|
|
|
731
1031
|
* @responsive
|
|
732
1032
|
*/
|
|
733
1033
|
"linkLabel"?: ResponsiveString;
|
|
1034
|
+
/**
|
|
1035
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1036
|
+
* @type String
|
|
1037
|
+
* @responsive
|
|
1038
|
+
*/
|
|
1039
|
+
"padding"?: ResponsiveString;
|
|
734
1040
|
/**
|
|
735
1041
|
* @type String
|
|
736
1042
|
*/
|
|
737
1043
|
"target"?: string;
|
|
738
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Slides that move sideways, built on Swiper, with labelled controls and a pause button when they move on their own.
|
|
1047
|
+
*/
|
|
739
1048
|
interface ContentCarousel {
|
|
1049
|
+
/**
|
|
1050
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1051
|
+
* @type String
|
|
1052
|
+
* @responsive
|
|
1053
|
+
*/
|
|
1054
|
+
"classes"?: ResponsiveString;
|
|
740
1055
|
/**
|
|
741
1056
|
* @type Select
|
|
742
1057
|
* @options load
|
|
743
1058
|
* @options init
|
|
1059
|
+
* @default 'load'
|
|
744
1060
|
*/
|
|
745
1061
|
"initMethod"?: InitMethodType;
|
|
1062
|
+
/**
|
|
1063
|
+
* The accessible name of the carousel, read by screen readers when they reach it.
|
|
1064
|
+
* @type String
|
|
1065
|
+
* @default 'Carousel'
|
|
1066
|
+
*/
|
|
1067
|
+
"label"?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* The accessible name of the next slide button.
|
|
1070
|
+
* @type String
|
|
1071
|
+
* @default 'Next slide'
|
|
1072
|
+
*/
|
|
1073
|
+
"nextLabel"?: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1076
|
+
* @type String
|
|
1077
|
+
* @responsive
|
|
1078
|
+
*/
|
|
1079
|
+
"padding"?: ResponsiveString;
|
|
1080
|
+
/**
|
|
1081
|
+
* The accessible name of the button that stops slides that move on their own.
|
|
1082
|
+
* @type String
|
|
1083
|
+
* @default 'Pause the slides'
|
|
1084
|
+
*/
|
|
1085
|
+
"pauseLabel"?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* The accessible name of the button that starts the slides moving again.
|
|
1088
|
+
* @type String
|
|
1089
|
+
* @default 'Play the slides'
|
|
1090
|
+
*/
|
|
1091
|
+
"playLabel"?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The accessible name of the previous slide button.
|
|
1094
|
+
* @type String
|
|
1095
|
+
* @default 'Previous slide'
|
|
1096
|
+
*/
|
|
1097
|
+
"prevLabel"?: string;
|
|
746
1098
|
/**
|
|
747
1099
|
* @type JSON
|
|
748
1100
|
* @schema Swiper Options
|
|
1101
|
+
* @default '{"slidesPerView": 1, "slidesPerGroup": 1, "autoplay": true, "loop": false}'
|
|
749
1102
|
*/
|
|
750
1103
|
"swiperOptions"?: string;
|
|
751
1104
|
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Lays its children out in a grid or a row, with the number of columns, gaps and alignment set per breakpoint.
|
|
1107
|
+
*/
|
|
752
1108
|
interface ContentGridFormatter {
|
|
753
1109
|
/**
|
|
1110
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
754
1111
|
* @type String
|
|
755
1112
|
* @responsive
|
|
756
1113
|
*/
|
|
757
1114
|
"classes"?: ResponsiveString;
|
|
758
1115
|
/**
|
|
759
1116
|
* @type Number
|
|
760
|
-
* @responsive
|
|
1117
|
+
* @responsive
|
|
1118
|
+
* @default '0'
|
|
761
1119
|
*/
|
|
762
1120
|
"columnGap"?: ResponsiveNumber;
|
|
763
1121
|
/**
|
|
764
1122
|
* @type Number
|
|
765
|
-
* @responsive
|
|
1123
|
+
* @responsive
|
|
1124
|
+
* @default '1'
|
|
766
1125
|
*/
|
|
767
1126
|
"columns"?: ResponsiveNumber;
|
|
1127
|
+
/**
|
|
1128
|
+
* For type flex: lay the children out in a row or a column. With columns="auto", children in a column keep their own width, so a list of links stacks on phones and sits in a row on larger screens.
|
|
1129
|
+
* @type Select
|
|
1130
|
+
* @options row
|
|
1131
|
+
* @options column
|
|
1132
|
+
* @responsive
|
|
1133
|
+
* @default 'row'
|
|
1134
|
+
*/
|
|
1135
|
+
"direction"?: ResponsiveString;
|
|
768
1136
|
/**
|
|
769
1137
|
* 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.
|
|
770
1138
|
* @type Boolean
|
|
771
|
-
* @responsive
|
|
1139
|
+
* @responsive
|
|
1140
|
+
* @default 'false'
|
|
772
1141
|
*/
|
|
773
1142
|
"flexGrow"?: ResponsiveBoolean;
|
|
774
1143
|
/**
|
|
775
1144
|
* 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.
|
|
776
1145
|
* @type Boolean
|
|
777
|
-
* @responsive
|
|
1146
|
+
* @responsive
|
|
1147
|
+
* @default 'false'
|
|
778
1148
|
*/
|
|
779
1149
|
"flexShrink"?: ResponsiveBoolean;
|
|
780
1150
|
/**
|
|
@@ -784,13 +1154,21 @@ declare namespace LocalJSX {
|
|
|
784
1154
|
* @options space-between
|
|
785
1155
|
* @options center
|
|
786
1156
|
* @options space-evenly
|
|
787
|
-
* @responsive
|
|
1157
|
+
* @responsive
|
|
1158
|
+
* @default 'space-between'
|
|
788
1159
|
*/
|
|
789
1160
|
"horizontal"?: FLEX_JUSTIFY_OPTIONS;
|
|
790
1161
|
/**
|
|
791
|
-
*
|
|
1162
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1163
|
+
* @type String
|
|
792
1164
|
* @responsive
|
|
793
1165
|
*/
|
|
1166
|
+
"padding"?: ResponsiveString;
|
|
1167
|
+
/**
|
|
1168
|
+
* @type Number
|
|
1169
|
+
* @responsive
|
|
1170
|
+
* @default '0'
|
|
1171
|
+
*/
|
|
794
1172
|
"rowGap"?: ResponsiveNumber;
|
|
795
1173
|
/**
|
|
796
1174
|
* Flex or grid
|
|
@@ -798,7 +1176,8 @@ declare namespace LocalJSX {
|
|
|
798
1176
|
* @options none
|
|
799
1177
|
* @options flex
|
|
800
1178
|
* @options grid
|
|
801
|
-
* @responsive
|
|
1179
|
+
* @responsive
|
|
1180
|
+
* @default 'flex'
|
|
802
1181
|
*/
|
|
803
1182
|
"type"?: GRID_TYPES | ResponsiveString;
|
|
804
1183
|
/**
|
|
@@ -808,25 +1187,40 @@ declare namespace LocalJSX {
|
|
|
808
1187
|
* @options space-between
|
|
809
1188
|
* @options center
|
|
810
1189
|
* @options space-evenly
|
|
811
|
-
* @responsive
|
|
1190
|
+
* @responsive
|
|
1191
|
+
* @default 'space-between'
|
|
812
1192
|
*/
|
|
813
1193
|
"vertical"?: FLEX_JUSTIFY_OPTIONS;
|
|
814
1194
|
}
|
|
1195
|
+
/**
|
|
1196
|
+
* A full width section with an image or video behind, or above, its text. Usually the first block on a page.
|
|
1197
|
+
*/
|
|
815
1198
|
interface ContentHeroBlock {
|
|
816
1199
|
/**
|
|
1200
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
817
1201
|
* @type String
|
|
818
1202
|
* @responsive
|
|
819
1203
|
*/
|
|
820
1204
|
"classes"?: ResponsiveString;
|
|
821
1205
|
/**
|
|
822
|
-
*
|
|
1206
|
+
* Where the content sits: above, over the media, or below it. Over the media by default. Use pipes to change it per breakpoint, such as below|above for the text below the media on phones and over it from tablets.
|
|
823
1207
|
* @type Select
|
|
824
1208
|
* @options below
|
|
825
1209
|
* @options above
|
|
826
|
-
* @responsive
|
|
1210
|
+
* @responsive
|
|
1211
|
+
* @default 'above'
|
|
827
1212
|
*/
|
|
828
1213
|
"contentPosition"?: ResponsiveString | HeroContentPlacementOptions;
|
|
1214
|
+
/**
|
|
1215
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1216
|
+
* @type String
|
|
1217
|
+
* @responsive
|
|
1218
|
+
*/
|
|
1219
|
+
"padding"?: ResponsiveString;
|
|
829
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* A responsive image or muted looping video per breakpoint with native lazy loading.
|
|
1223
|
+
*/
|
|
830
1224
|
interface ContentImage {
|
|
831
1225
|
/**
|
|
832
1226
|
* @type String
|
|
@@ -839,23 +1233,42 @@ declare namespace LocalJSX {
|
|
|
839
1233
|
*/
|
|
840
1234
|
"aspectRatio"?: ResponsiveString;
|
|
841
1235
|
/**
|
|
1236
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
842
1237
|
* @type String
|
|
843
1238
|
* @responsive
|
|
844
1239
|
*/
|
|
845
1240
|
"classes"?: ResponsiveString;
|
|
1241
|
+
/**
|
|
1242
|
+
* How soon the browser should download the image compared with other files. Use "high" for the main image of the page.
|
|
1243
|
+
* @type Select
|
|
1244
|
+
* @options auto
|
|
1245
|
+
* @options high
|
|
1246
|
+
* @options low
|
|
1247
|
+
*/
|
|
1248
|
+
"fetchPriority"?: 'high' | 'low' | 'auto';
|
|
846
1249
|
/**
|
|
847
1250
|
* @type Number
|
|
848
|
-
* @responsive
|
|
1251
|
+
* @responsive
|
|
1252
|
+
* @default '9'
|
|
849
1253
|
*/
|
|
850
1254
|
"height"?: ResponsiveNumber;
|
|
851
1255
|
/**
|
|
1256
|
+
* Images use the browser's native lazy loading. Set to false for images that are visible when the page opens, such as a hero, so they download straight away.
|
|
852
1257
|
* @type Boolean
|
|
1258
|
+
* @default true
|
|
853
1259
|
*/
|
|
854
1260
|
"lazyLoad"?: boolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1263
|
+
* @type String
|
|
1264
|
+
* @responsive
|
|
1265
|
+
*/
|
|
1266
|
+
"padding"?: ResponsiveString;
|
|
855
1267
|
/**
|
|
856
1268
|
* If true, the content in the mediaContent slot will be visible.
|
|
857
1269
|
* @type Boolean
|
|
858
|
-
* @responsive
|
|
1270
|
+
* @responsive
|
|
1271
|
+
* @default 'false|true'
|
|
859
1272
|
*/
|
|
860
1273
|
"showContent"?: ResponsiveBoolean;
|
|
861
1274
|
/**
|
|
@@ -867,32 +1280,45 @@ declare namespace LocalJSX {
|
|
|
867
1280
|
* @type Select
|
|
868
1281
|
* @options image
|
|
869
1282
|
* @options video
|
|
1283
|
+
* @default 'image'
|
|
870
1284
|
*/
|
|
871
1285
|
"type"?: 'image' | 'video';
|
|
872
1286
|
/**
|
|
873
1287
|
* @type Select
|
|
874
1288
|
* @options video/mp4
|
|
1289
|
+
* @default 'video/mp4'
|
|
875
1290
|
*/
|
|
876
1291
|
"videoType"?: string;
|
|
877
1292
|
/**
|
|
878
1293
|
* @type Number
|
|
879
|
-
* @responsive
|
|
1294
|
+
* @responsive
|
|
1295
|
+
* @default '16'
|
|
880
1296
|
*/
|
|
881
1297
|
"width"?: ResponsiveNumber;
|
|
882
1298
|
}
|
|
1299
|
+
/**
|
|
1300
|
+
* One line of text, such as a heading or a paragraph, with its tag, alignment and maximum width set per breakpoint.
|
|
1301
|
+
*/
|
|
883
1302
|
interface ContentLine {
|
|
884
1303
|
/**
|
|
885
|
-
*
|
|
1304
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
886
1305
|
* @type String
|
|
887
1306
|
* @responsive
|
|
888
1307
|
*/
|
|
889
|
-
"classes"?:
|
|
1308
|
+
"classes"?: ResponsiveString;
|
|
890
1309
|
/**
|
|
891
1310
|
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw". If no unit is provided, defaults to percentage.
|
|
892
1311
|
* @type String
|
|
893
|
-
* @responsive
|
|
1312
|
+
* @responsive
|
|
1313
|
+
* @default '100%'
|
|
894
1314
|
*/
|
|
895
1315
|
"maxWidth"?: ResponsiveNumber;
|
|
1316
|
+
/**
|
|
1317
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1318
|
+
* @type String
|
|
1319
|
+
* @responsive
|
|
1320
|
+
*/
|
|
1321
|
+
"padding"?: ResponsiveString;
|
|
896
1322
|
/**
|
|
897
1323
|
* The element tag to use.
|
|
898
1324
|
* @type Select
|
|
@@ -907,6 +1333,7 @@ declare namespace LocalJSX {
|
|
|
907
1333
|
* @options span
|
|
908
1334
|
* @options section
|
|
909
1335
|
* @options article
|
|
1336
|
+
* @default 'div'
|
|
910
1337
|
*/
|
|
911
1338
|
"tag"?: ContentLineTagOptions;
|
|
912
1339
|
/**
|
|
@@ -916,16 +1343,27 @@ declare namespace LocalJSX {
|
|
|
916
1343
|
* @options left
|
|
917
1344
|
* @options center
|
|
918
1345
|
* @options right
|
|
919
|
-
* @responsive
|
|
1346
|
+
* @responsive
|
|
1347
|
+
* @default 'default'
|
|
920
1348
|
*/
|
|
921
1349
|
"textAlign"?: ContentLineTextAlignOptions;
|
|
922
1350
|
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Site navigation that collapses into a menu button on the breakpoints you choose, with a skip link for keyboard users.
|
|
1353
|
+
*/
|
|
923
1354
|
interface ContentNavigationBlock {
|
|
924
1355
|
/**
|
|
1356
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
925
1357
|
* @type String
|
|
926
1358
|
* @responsive
|
|
927
1359
|
*/
|
|
928
1360
|
"classes"?: ResponsiveString;
|
|
1361
|
+
/**
|
|
1362
|
+
* The accessible name of the default close button.
|
|
1363
|
+
* @type String
|
|
1364
|
+
* @default 'Close menu'
|
|
1365
|
+
*/
|
|
1366
|
+
"closeLabel"?: string;
|
|
929
1367
|
/**
|
|
930
1368
|
* @type Select
|
|
931
1369
|
* @responsive
|
|
@@ -934,11 +1372,28 @@ declare namespace LocalJSX {
|
|
|
934
1372
|
* @options sticky
|
|
935
1373
|
* @options static
|
|
936
1374
|
* @options none
|
|
1375
|
+
* @default 'fixed|none'
|
|
937
1376
|
*/
|
|
938
1377
|
"hamburger"?: ResponsiveString;
|
|
1378
|
+
/**
|
|
1379
|
+
* The accessible name of the default menu button.
|
|
1380
|
+
* @type String
|
|
1381
|
+
* @default 'Open menu'
|
|
1382
|
+
*/
|
|
1383
|
+
"openLabel"?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1386
|
+
* @type String
|
|
1387
|
+
* @responsive
|
|
1388
|
+
*/
|
|
1389
|
+
"padding"?: ResponsiveString;
|
|
939
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* A dialog that opens over the page, or inside another element, and keeps keyboard focus inside it while open.
|
|
1393
|
+
*/
|
|
940
1394
|
interface ContentOverlay {
|
|
941
1395
|
/**
|
|
1396
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
942
1397
|
* @type String
|
|
943
1398
|
* @responsive
|
|
944
1399
|
*/
|
|
@@ -946,11 +1401,20 @@ declare namespace LocalJSX {
|
|
|
946
1401
|
/**
|
|
947
1402
|
* Title attribute value for the close button.
|
|
948
1403
|
* @type String
|
|
1404
|
+
* @default 'Close Overlay'
|
|
949
1405
|
*/
|
|
950
1406
|
"closeTitle"?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* What the overlay covers. "body", the default, covers the whole screen. A CSS selector, such as "#hero", covers that element instead: the overlay moves into it when it opens. Use pipes to cover the screen on phones and an element on wider screens: fill="body|#hero".
|
|
1409
|
+
* @type String
|
|
1410
|
+
* @responsive
|
|
1411
|
+
* @default 'body'
|
|
1412
|
+
*/
|
|
1413
|
+
"fill"?: ResponsiveString;
|
|
951
1414
|
/**
|
|
952
1415
|
* @type Boolean
|
|
953
|
-
* @responsive
|
|
1416
|
+
* @responsive
|
|
1417
|
+
* @default 'true'
|
|
954
1418
|
*/
|
|
955
1419
|
"fullScreen"?: ResponsiveBoolean;
|
|
956
1420
|
/**
|
|
@@ -960,47 +1424,45 @@ declare namespace LocalJSX {
|
|
|
960
1424
|
* @options left
|
|
961
1425
|
* @options center
|
|
962
1426
|
* @options right
|
|
963
|
-
* @responsive
|
|
1427
|
+
* @responsive
|
|
1428
|
+
* @default 'center'
|
|
964
1429
|
*/
|
|
965
|
-
"horizontal"?:
|
|
1430
|
+
"horizontal"?: ContentLineTextAlignOptions;
|
|
1431
|
+
/**
|
|
1432
|
+
* The accessible name of the dialog. Only needed when there is no header slot, which names it otherwise.
|
|
1433
|
+
* @type String
|
|
1434
|
+
*/
|
|
1435
|
+
"label"?: string;
|
|
966
1436
|
"onContentOverlayActivated"?: (event: ContentOverlayCustomEvent<HTMLElement>) => void;
|
|
1437
|
+
"onContentOverlayDeactivated"?: (event: ContentOverlayCustomEvent<HTMLElement>) => void;
|
|
967
1438
|
/**
|
|
968
1439
|
* @type Boolean
|
|
969
|
-
* @responsive
|
|
1440
|
+
* @responsive
|
|
1441
|
+
* @default 'false'
|
|
970
1442
|
*/
|
|
971
1443
|
"open"?: ResponsiveBoolean;
|
|
972
1444
|
/**
|
|
973
|
-
*
|
|
974
|
-
* @type Select
|
|
975
|
-
* @options absolute
|
|
976
|
-
* @options fixed
|
|
977
|
-
* @options static
|
|
978
|
-
* @options sticky
|
|
979
|
-
*/
|
|
980
|
-
"position"?: ResponsiveString;
|
|
981
|
-
/**
|
|
1445
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
982
1446
|
* @type String
|
|
983
1447
|
* @responsive
|
|
984
1448
|
*/
|
|
985
|
-
"
|
|
1449
|
+
"padding"?: ResponsiveString;
|
|
986
1450
|
/**
|
|
987
1451
|
* A pipe delimited setting for vertical alignment. This only applies when fullscreen mode is activated.
|
|
988
1452
|
* @type Select
|
|
989
1453
|
* @options top
|
|
990
1454
|
* @options center
|
|
991
1455
|
* @options bottom
|
|
1456
|
+
* @default 'center'
|
|
992
1457
|
*/
|
|
993
1458
|
"vertical"?: ContentVerticalAlignments;
|
|
994
1459
|
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Adds space around its content and limits its width, with its padding and maximum width set per breakpoint.
|
|
1462
|
+
*/
|
|
995
1463
|
interface ContentSpacer {
|
|
996
1464
|
/**
|
|
997
|
-
*
|
|
998
|
-
* @type Number
|
|
999
|
-
* @string
|
|
1000
|
-
* @responsive
|
|
1001
|
-
*/
|
|
1002
|
-
"bottomOffset"?: ResponsiveNumber;
|
|
1003
|
-
/**
|
|
1465
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1004
1466
|
* @type String
|
|
1005
1467
|
* @responsive
|
|
1006
1468
|
*/
|
|
@@ -1008,7 +1470,8 @@ declare namespace LocalJSX {
|
|
|
1008
1470
|
/**
|
|
1009
1471
|
* 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.
|
|
1010
1472
|
* @type Boolean
|
|
1011
|
-
* @responsive
|
|
1473
|
+
* @responsive
|
|
1474
|
+
* @default 'false'
|
|
1012
1475
|
*/
|
|
1013
1476
|
"fullHeight"?: ResponsiveBoolean;
|
|
1014
1477
|
/**
|
|
@@ -1018,29 +1481,23 @@ declare namespace LocalJSX {
|
|
|
1018
1481
|
* @options left
|
|
1019
1482
|
* @options center
|
|
1020
1483
|
* @options right
|
|
1021
|
-
* @responsive
|
|
1022
|
-
|
|
1023
|
-
"horizontal"?: ContentLineTextAlignOptions1;
|
|
1024
|
-
/**
|
|
1025
|
-
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
1026
|
-
* @type Number
|
|
1027
|
-
* @string
|
|
1028
|
-
* @responsive
|
|
1484
|
+
* @responsive
|
|
1485
|
+
* @default 'default'
|
|
1029
1486
|
*/
|
|
1030
|
-
"
|
|
1487
|
+
"horizontal"?: ContentLineTextAlignOptions;
|
|
1031
1488
|
/**
|
|
1032
1489
|
* Pipe separated list of max width numbers. You can also use units such as "px" and "vw".
|
|
1033
1490
|
* @type String
|
|
1034
|
-
* @responsive
|
|
1491
|
+
* @responsive
|
|
1492
|
+
* @default '100'
|
|
1035
1493
|
*/
|
|
1036
1494
|
"maxWidth"?: ResponsiveNumber;
|
|
1037
1495
|
/**
|
|
1038
|
-
*
|
|
1039
|
-
* @type
|
|
1040
|
-
* @string
|
|
1496
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1497
|
+
* @type String
|
|
1041
1498
|
* @responsive
|
|
1042
1499
|
*/
|
|
1043
|
-
"
|
|
1500
|
+
"padding"?: ResponsiveString;
|
|
1044
1501
|
/**
|
|
1045
1502
|
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
1046
1503
|
* @type Select
|
|
@@ -1048,16 +1505,10 @@ declare namespace LocalJSX {
|
|
|
1048
1505
|
* @options left
|
|
1049
1506
|
* @options center
|
|
1050
1507
|
* @options right
|
|
1051
|
-
* @responsive
|
|
1052
|
-
|
|
1053
|
-
"textAlign"?: ContentLineTextAlignOptions1;
|
|
1054
|
-
/**
|
|
1055
|
-
* Pipe separated numbers between 0 and 100. Units without values are assumed to be %.
|
|
1056
|
-
* @type Number
|
|
1057
|
-
* @string
|
|
1058
|
-
* @responsive
|
|
1508
|
+
* @responsive
|
|
1509
|
+
* @default 'default'
|
|
1059
1510
|
*/
|
|
1060
|
-
"
|
|
1511
|
+
"textAlign"?: ContentLineTextAlignOptions;
|
|
1061
1512
|
/**
|
|
1062
1513
|
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
1063
1514
|
* @type Select
|
|
@@ -1065,44 +1516,71 @@ declare namespace LocalJSX {
|
|
|
1065
1516
|
* @options center
|
|
1066
1517
|
* @options bottom
|
|
1067
1518
|
* @options default
|
|
1068
|
-
* @responsive
|
|
1519
|
+
* @responsive
|
|
1520
|
+
* @default ''
|
|
1069
1521
|
*/
|
|
1070
1522
|
"vertical"?: ResponsiveString | ContentVerticalAlignments;
|
|
1071
1523
|
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Two columns side by side, such as an image next to text, that stack on smaller screens.
|
|
1526
|
+
*/
|
|
1072
1527
|
interface ContentSplitBlock {
|
|
1073
1528
|
/**
|
|
1529
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1074
1530
|
* @type String
|
|
1075
1531
|
* @responsive
|
|
1076
1532
|
*/
|
|
1077
1533
|
"classes"?: ResponsiveString;
|
|
1078
1534
|
/**
|
|
1079
1535
|
* @type Number
|
|
1080
|
-
* @responsive
|
|
1536
|
+
* @responsive
|
|
1537
|
+
* @default '1|2'
|
|
1081
1538
|
*/
|
|
1082
1539
|
"columns"?: string;
|
|
1083
1540
|
/**
|
|
1084
|
-
*
|
|
1541
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1542
|
+
* @type String
|
|
1085
1543
|
* @responsive
|
|
1086
1544
|
*/
|
|
1545
|
+
"padding"?: ResponsiveString;
|
|
1546
|
+
/**
|
|
1547
|
+
* @type Boolean
|
|
1548
|
+
* @responsive
|
|
1549
|
+
* @default false
|
|
1550
|
+
*/
|
|
1087
1551
|
"reverse"?: ResponsiveBoolean | boolean;
|
|
1088
1552
|
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Accessible tabs: a tablist of buttons and the panels they show, with arrow key support.
|
|
1555
|
+
*/
|
|
1089
1556
|
interface ContentTabs {
|
|
1090
1557
|
/**
|
|
1558
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1091
1559
|
* @type String
|
|
1092
1560
|
* @responsive
|
|
1093
1561
|
*/
|
|
1094
1562
|
"classes"?: ResponsiveString;
|
|
1563
|
+
/**
|
|
1564
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1565
|
+
* @type String
|
|
1566
|
+
* @responsive
|
|
1567
|
+
*/
|
|
1568
|
+
"padding"?: ResponsiveString;
|
|
1095
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* A block of text with its alignment, vertical position and minimum height set per breakpoint.
|
|
1572
|
+
*/
|
|
1096
1573
|
interface ContentTextBlock {
|
|
1097
1574
|
/**
|
|
1098
|
-
*
|
|
1575
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1099
1576
|
* @type String
|
|
1100
1577
|
* @responsive
|
|
1101
1578
|
*/
|
|
1102
1579
|
"classes"?: ResponsiveString;
|
|
1103
1580
|
/**
|
|
1104
1581
|
* @type Boolean
|
|
1105
|
-
* @responsive
|
|
1582
|
+
* @responsive
|
|
1583
|
+
* @default 'false'
|
|
1106
1584
|
*/
|
|
1107
1585
|
"fullHeight"?: ResponsiveString;
|
|
1108
1586
|
/**
|
|
@@ -1111,6 +1589,12 @@ declare namespace LocalJSX {
|
|
|
1111
1589
|
* @responsive
|
|
1112
1590
|
*/
|
|
1113
1591
|
"minHeight"?: ResponsiveString;
|
|
1592
|
+
/**
|
|
1593
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1594
|
+
* @type String
|
|
1595
|
+
* @responsive
|
|
1596
|
+
*/
|
|
1597
|
+
"padding"?: ResponsiveString;
|
|
1114
1598
|
/**
|
|
1115
1599
|
* Pipe separated list of ContentLineTextAlignOptions for text alignment.
|
|
1116
1600
|
* @type Select
|
|
@@ -1118,21 +1602,27 @@ declare namespace LocalJSX {
|
|
|
1118
1602
|
* @options left
|
|
1119
1603
|
* @options center
|
|
1120
1604
|
* @options right
|
|
1121
|
-
* @responsive
|
|
1605
|
+
* @responsive
|
|
1606
|
+
* @default 'default'
|
|
1122
1607
|
*/
|
|
1123
|
-
"textAlign"?:
|
|
1608
|
+
"textAlign"?: ContentLineTextAlignOptions;
|
|
1124
1609
|
/**
|
|
1125
1610
|
* Pipe separated list of ContentVerticalAlignments for text box placement.
|
|
1126
1611
|
* @type Select
|
|
1127
1612
|
* @options top
|
|
1128
1613
|
* @options center
|
|
1129
1614
|
* @options bottom
|
|
1130
|
-
* @responsive
|
|
1615
|
+
* @responsive
|
|
1616
|
+
* @default 'top'
|
|
1131
1617
|
*/
|
|
1132
1618
|
"vertical"?: ContentVerticalAlignments;
|
|
1133
1619
|
}
|
|
1620
|
+
/**
|
|
1621
|
+
* A card that promotes something: an image or video with text below it, and an optional layer over the media that can show on hover.
|
|
1622
|
+
*/
|
|
1134
1623
|
interface ContentToutBlock {
|
|
1135
1624
|
/**
|
|
1625
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1136
1626
|
* @type String
|
|
1137
1627
|
* @responsive
|
|
1138
1628
|
*/
|
|
@@ -1140,100 +1630,314 @@ declare namespace LocalJSX {
|
|
|
1140
1630
|
/**
|
|
1141
1631
|
* If true, the media content will show only on hover
|
|
1142
1632
|
* @type Boolean
|
|
1143
|
-
* @responsive
|
|
1633
|
+
* @responsive
|
|
1634
|
+
* @default 'false|true'
|
|
1144
1635
|
*/
|
|
1145
1636
|
"hover"?: ResponsiveBoolean;
|
|
1637
|
+
/**
|
|
1638
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1639
|
+
* @type String
|
|
1640
|
+
* @responsive
|
|
1641
|
+
*/
|
|
1642
|
+
"padding"?: ResponsiveString;
|
|
1146
1643
|
}
|
|
1644
|
+
/**
|
|
1645
|
+
* A video player for YouTube or self hosted files, built on Video.js.
|
|
1646
|
+
*/
|
|
1147
1647
|
interface ContentVideo {
|
|
1148
1648
|
/**
|
|
1149
1649
|
* If you're using this inside a content-overlay for example, you may want the video to play immediately on launch.
|
|
1150
1650
|
* @type Boolean
|
|
1651
|
+
* @default false
|
|
1151
1652
|
*/
|
|
1152
1653
|
"autoplay"?: boolean;
|
|
1153
1654
|
/**
|
|
1655
|
+
* Sets whether or not an autoplaying video should be muted. By default autoplay videos will be muted.
|
|
1656
|
+
* @type Boolean
|
|
1657
|
+
* @default true
|
|
1658
|
+
*/
|
|
1659
|
+
"autoplayMute"?: boolean;
|
|
1660
|
+
/**
|
|
1661
|
+
* Classes to add to the component. Use pipes for different classes per breakpoint, by name or in order: classes="stacked|laptop=side-by-side".
|
|
1154
1662
|
* @type String
|
|
1155
1663
|
* @responsive
|
|
1156
1664
|
*/
|
|
1157
1665
|
"classes"?: ResponsiveString;
|
|
1158
1666
|
/**
|
|
1159
1667
|
* @type Boolean
|
|
1668
|
+
* @default true
|
|
1160
1669
|
*/
|
|
1161
1670
|
"controls"?: boolean;
|
|
1162
1671
|
/**
|
|
1163
1672
|
* Fit the container this video is placed in. When the video is used in an overlay or another place where the video will takeover the existing height, it is recommended to enable this option.
|
|
1164
1673
|
* @responsive
|
|
1165
1674
|
* @type String
|
|
1675
|
+
* @default 'false'
|
|
1166
1676
|
*/
|
|
1167
1677
|
"fitContainer"?: ResponsiveString;
|
|
1168
1678
|
/**
|
|
1169
1679
|
* @type Number
|
|
1680
|
+
* @default 9
|
|
1170
1681
|
*/
|
|
1171
1682
|
"height"?: number;
|
|
1172
1683
|
/**
|
|
1173
1684
|
* @type Select
|
|
1174
1685
|
* @options youtube
|
|
1175
1686
|
* @options html5
|
|
1687
|
+
* @default 'youtube'
|
|
1176
1688
|
*/
|
|
1177
1689
|
"method"?: SupportedVideoMethods;
|
|
1178
1690
|
/**
|
|
1691
|
+
* Padding around the component, written as CSS padding. Use pipes for different padding per breakpoint, by name or in order: padding="1rem|tablet=2rem 4rem" or padding="1rem|2rem 4rem|3rem 5rem 4rem".
|
|
1179
1692
|
* @type String
|
|
1693
|
+
* @responsive
|
|
1694
|
+
*/
|
|
1695
|
+
"padding"?: ResponsiveString;
|
|
1696
|
+
/**
|
|
1697
|
+
* @type String
|
|
1698
|
+
* @default 'Play'
|
|
1180
1699
|
*/
|
|
1181
1700
|
"playButtonAriaLabel"?: string;
|
|
1182
1701
|
/**
|
|
1183
1702
|
* @type String
|
|
1703
|
+
* @default 'metadata'
|
|
1184
1704
|
*/
|
|
1185
1705
|
"preload"?: string;
|
|
1186
1706
|
/**
|
|
1187
1707
|
* Supports YouTube and self hosted URLs.
|
|
1188
1708
|
* @type String
|
|
1709
|
+
* @default ''
|
|
1189
1710
|
*/
|
|
1190
1711
|
"src"?: string;
|
|
1191
1712
|
/**
|
|
1192
1713
|
* @type String
|
|
1714
|
+
* @default 'video/mp4'
|
|
1193
1715
|
*/
|
|
1194
1716
|
"type"?: string;
|
|
1195
1717
|
/**
|
|
1196
1718
|
* @type Number
|
|
1719
|
+
* @default 16
|
|
1197
1720
|
*/
|
|
1198
1721
|
"width"?: number;
|
|
1199
1722
|
}
|
|
1723
|
+
|
|
1724
|
+
interface ContentAccordionAttributes {
|
|
1725
|
+
"classes": ResponsiveString;
|
|
1726
|
+
"padding": ResponsiveString;
|
|
1727
|
+
"open": ResponsiveBoolean;
|
|
1728
|
+
"animationStart": string;
|
|
1729
|
+
"animationEnd": string;
|
|
1730
|
+
"triggerClass": string;
|
|
1731
|
+
"animationTime": number;
|
|
1732
|
+
}
|
|
1733
|
+
interface ContentButtonAttributes {
|
|
1734
|
+
"classes": ResponsiveString;
|
|
1735
|
+
"padding": ResponsiveString;
|
|
1736
|
+
"href": string;
|
|
1737
|
+
"target": string;
|
|
1738
|
+
"expanded": string;
|
|
1739
|
+
"controls": string;
|
|
1740
|
+
"linkLabel": ResponsiveString;
|
|
1741
|
+
"linkClass": ResponsiveString;
|
|
1742
|
+
}
|
|
1743
|
+
interface ContentCarouselAttributes {
|
|
1744
|
+
"classes": ResponsiveString;
|
|
1745
|
+
"padding": ResponsiveString;
|
|
1746
|
+
"initMethod": InitMethodType;
|
|
1747
|
+
"swiperOptions": string;
|
|
1748
|
+
"label": string;
|
|
1749
|
+
"prevLabel": string;
|
|
1750
|
+
"nextLabel": string;
|
|
1751
|
+
"pauseLabel": string;
|
|
1752
|
+
"playLabel": string;
|
|
1753
|
+
}
|
|
1754
|
+
interface ContentGridFormatterAttributes {
|
|
1755
|
+
"classes": ResponsiveString;
|
|
1756
|
+
"padding": ResponsiveString;
|
|
1757
|
+
"type": GRID_TYPES | ResponsiveString;
|
|
1758
|
+
"flexGrow": ResponsiveBoolean;
|
|
1759
|
+
"flexShrink": ResponsiveBoolean;
|
|
1760
|
+
"vertical": FLEX_JUSTIFY_OPTIONS;
|
|
1761
|
+
"horizontal": FLEX_JUSTIFY_OPTIONS;
|
|
1762
|
+
"columns": ResponsiveNumber;
|
|
1763
|
+
"direction": ResponsiveString;
|
|
1764
|
+
"columnGap": ResponsiveNumber;
|
|
1765
|
+
"rowGap": ResponsiveNumber;
|
|
1766
|
+
}
|
|
1767
|
+
interface ContentHeroBlockAttributes {
|
|
1768
|
+
"classes": ResponsiveString;
|
|
1769
|
+
"padding": ResponsiveString;
|
|
1770
|
+
"contentPosition": ResponsiveString | HeroContentPlacementOptions;
|
|
1771
|
+
}
|
|
1772
|
+
interface ContentImageAttributes {
|
|
1773
|
+
"classes": ResponsiveString;
|
|
1774
|
+
"padding": ResponsiveString;
|
|
1775
|
+
"lazyLoad": boolean;
|
|
1776
|
+
"fetchPriority": 'high' | 'low' | 'auto';
|
|
1777
|
+
"src": ResponsiveString;
|
|
1778
|
+
"alt": ResponsiveString;
|
|
1779
|
+
"width": ResponsiveNumber;
|
|
1780
|
+
"height": ResponsiveNumber;
|
|
1781
|
+
"aspectRatio": ResponsiveString;
|
|
1782
|
+
"type": 'image' | 'video';
|
|
1783
|
+
"videoType": string;
|
|
1784
|
+
"showContent": ResponsiveBoolean;
|
|
1785
|
+
}
|
|
1786
|
+
interface ContentLineAttributes {
|
|
1787
|
+
"classes": ResponsiveString;
|
|
1788
|
+
"padding": ResponsiveString;
|
|
1789
|
+
"tag": ContentLineTagOptions;
|
|
1790
|
+
"textAlign": ContentLineTextAlignOptions;
|
|
1791
|
+
"maxWidth": ResponsiveNumber;
|
|
1792
|
+
}
|
|
1793
|
+
interface ContentNavigationBlockAttributes {
|
|
1794
|
+
"classes": ResponsiveString;
|
|
1795
|
+
"padding": ResponsiveString;
|
|
1796
|
+
"hamburger": ResponsiveString;
|
|
1797
|
+
"openLabel": string;
|
|
1798
|
+
"closeLabel": string;
|
|
1799
|
+
}
|
|
1800
|
+
interface ContentOverlayAttributes {
|
|
1801
|
+
"classes": ResponsiveString;
|
|
1802
|
+
"padding": ResponsiveString;
|
|
1803
|
+
"fill": ResponsiveString;
|
|
1804
|
+
"open": ResponsiveBoolean;
|
|
1805
|
+
"fullScreen": ResponsiveBoolean;
|
|
1806
|
+
"horizontal": ContentLineTextAlignOptions;
|
|
1807
|
+
"vertical": ContentVerticalAlignments;
|
|
1808
|
+
"closeTitle": string;
|
|
1809
|
+
"label": string;
|
|
1810
|
+
}
|
|
1811
|
+
interface ContentSpacerAttributes {
|
|
1812
|
+
"classes": ResponsiveString;
|
|
1813
|
+
"padding": ResponsiveString;
|
|
1814
|
+
"maxWidth": ResponsiveNumber;
|
|
1815
|
+
"fullHeight": ResponsiveBoolean;
|
|
1816
|
+
"textAlign": ContentLineTextAlignOptions;
|
|
1817
|
+
"horizontal": ContentLineTextAlignOptions;
|
|
1818
|
+
"vertical": ResponsiveString | ContentVerticalAlignments;
|
|
1819
|
+
}
|
|
1820
|
+
interface ContentSplitBlockAttributes {
|
|
1821
|
+
"classes": ResponsiveString;
|
|
1822
|
+
"padding": ResponsiveString;
|
|
1823
|
+
"reverse": string;
|
|
1824
|
+
"columns": string;
|
|
1825
|
+
}
|
|
1826
|
+
interface ContentTabsAttributes {
|
|
1827
|
+
"classes": ResponsiveString;
|
|
1828
|
+
"padding": ResponsiveString;
|
|
1829
|
+
}
|
|
1830
|
+
interface ContentTextBlockAttributes {
|
|
1831
|
+
"classes": ResponsiveString;
|
|
1832
|
+
"padding": ResponsiveString;
|
|
1833
|
+
"minHeight": ResponsiveString;
|
|
1834
|
+
"vertical": ContentVerticalAlignments;
|
|
1835
|
+
"fullHeight": ResponsiveString;
|
|
1836
|
+
"textAlign": ContentLineTextAlignOptions;
|
|
1837
|
+
}
|
|
1838
|
+
interface ContentToutBlockAttributes {
|
|
1839
|
+
"classes": ResponsiveString;
|
|
1840
|
+
"padding": ResponsiveString;
|
|
1841
|
+
"hover": ResponsiveBoolean;
|
|
1842
|
+
}
|
|
1843
|
+
interface ContentVideoAttributes {
|
|
1844
|
+
"classes": ResponsiveString;
|
|
1845
|
+
"padding": ResponsiveString;
|
|
1846
|
+
"method": SupportedVideoMethods;
|
|
1847
|
+
"autoplay": boolean;
|
|
1848
|
+
"autoplayMute": boolean;
|
|
1849
|
+
"src": string;
|
|
1850
|
+
"width": number;
|
|
1851
|
+
"height": number;
|
|
1852
|
+
"type": string;
|
|
1853
|
+
"playButtonAriaLabel": string;
|
|
1854
|
+
"controls": boolean;
|
|
1855
|
+
"preload": string;
|
|
1856
|
+
"fitContainer": ResponsiveString;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1200
1859
|
interface IntrinsicElements {
|
|
1201
|
-
"content-accordion": ContentAccordion;
|
|
1202
|
-
"content-button": ContentButton;
|
|
1203
|
-
"content-carousel": ContentCarousel;
|
|
1204
|
-
"content-grid-formatter": ContentGridFormatter;
|
|
1205
|
-
"content-hero-block": ContentHeroBlock;
|
|
1206
|
-
"content-image": ContentImage
|
|
1207
|
-
"content-line": ContentLine;
|
|
1208
|
-
"content-navigation-block": ContentNavigationBlock;
|
|
1209
|
-
"content-overlay": ContentOverlay;
|
|
1210
|
-
"content-spacer": ContentSpacer;
|
|
1211
|
-
"content-split-block": ContentSplitBlock;
|
|
1212
|
-
"content-tabs": ContentTabs;
|
|
1213
|
-
"content-text-block": ContentTextBlock;
|
|
1214
|
-
"content-tout-block": ContentToutBlock;
|
|
1215
|
-
"content-video": ContentVideo;
|
|
1860
|
+
"content-accordion": Omit<ContentAccordion, keyof ContentAccordionAttributes> & { [K in keyof ContentAccordion & keyof ContentAccordionAttributes]?: ContentAccordion[K] } & { [K in keyof ContentAccordion & keyof ContentAccordionAttributes as `attr:${K}`]?: ContentAccordionAttributes[K] } & { [K in keyof ContentAccordion & keyof ContentAccordionAttributes as `prop:${K}`]?: ContentAccordion[K] };
|
|
1861
|
+
"content-button": Omit<ContentButton, keyof ContentButtonAttributes> & { [K in keyof ContentButton & keyof ContentButtonAttributes]?: ContentButton[K] } & { [K in keyof ContentButton & keyof ContentButtonAttributes as `attr:${K}`]?: ContentButtonAttributes[K] } & { [K in keyof ContentButton & keyof ContentButtonAttributes as `prop:${K}`]?: ContentButton[K] };
|
|
1862
|
+
"content-carousel": Omit<ContentCarousel, keyof ContentCarouselAttributes> & { [K in keyof ContentCarousel & keyof ContentCarouselAttributes]?: ContentCarousel[K] } & { [K in keyof ContentCarousel & keyof ContentCarouselAttributes as `attr:${K}`]?: ContentCarouselAttributes[K] } & { [K in keyof ContentCarousel & keyof ContentCarouselAttributes as `prop:${K}`]?: ContentCarousel[K] };
|
|
1863
|
+
"content-grid-formatter": Omit<ContentGridFormatter, keyof ContentGridFormatterAttributes> & { [K in keyof ContentGridFormatter & keyof ContentGridFormatterAttributes]?: ContentGridFormatter[K] } & { [K in keyof ContentGridFormatter & keyof ContentGridFormatterAttributes as `attr:${K}`]?: ContentGridFormatterAttributes[K] } & { [K in keyof ContentGridFormatter & keyof ContentGridFormatterAttributes as `prop:${K}`]?: ContentGridFormatter[K] };
|
|
1864
|
+
"content-hero-block": Omit<ContentHeroBlock, keyof ContentHeroBlockAttributes> & { [K in keyof ContentHeroBlock & keyof ContentHeroBlockAttributes]?: ContentHeroBlock[K] } & { [K in keyof ContentHeroBlock & keyof ContentHeroBlockAttributes as `attr:${K}`]?: ContentHeroBlockAttributes[K] } & { [K in keyof ContentHeroBlock & keyof ContentHeroBlockAttributes as `prop:${K}`]?: ContentHeroBlock[K] };
|
|
1865
|
+
"content-image": Omit<ContentImage, keyof ContentImageAttributes> & { [K in keyof ContentImage & keyof ContentImageAttributes]?: ContentImage[K] } & { [K in keyof ContentImage & keyof ContentImageAttributes as `attr:${K}`]?: ContentImageAttributes[K] } & { [K in keyof ContentImage & keyof ContentImageAttributes as `prop:${K}`]?: ContentImage[K] } & OneOf<"src", ContentImage["src"], ContentImageAttributes["src"]>;
|
|
1866
|
+
"content-line": Omit<ContentLine, keyof ContentLineAttributes> & { [K in keyof ContentLine & keyof ContentLineAttributes]?: ContentLine[K] } & { [K in keyof ContentLine & keyof ContentLineAttributes as `attr:${K}`]?: ContentLineAttributes[K] } & { [K in keyof ContentLine & keyof ContentLineAttributes as `prop:${K}`]?: ContentLine[K] };
|
|
1867
|
+
"content-navigation-block": Omit<ContentNavigationBlock, keyof ContentNavigationBlockAttributes> & { [K in keyof ContentNavigationBlock & keyof ContentNavigationBlockAttributes]?: ContentNavigationBlock[K] } & { [K in keyof ContentNavigationBlock & keyof ContentNavigationBlockAttributes as `attr:${K}`]?: ContentNavigationBlockAttributes[K] } & { [K in keyof ContentNavigationBlock & keyof ContentNavigationBlockAttributes as `prop:${K}`]?: ContentNavigationBlock[K] };
|
|
1868
|
+
"content-overlay": Omit<ContentOverlay, keyof ContentOverlayAttributes> & { [K in keyof ContentOverlay & keyof ContentOverlayAttributes]?: ContentOverlay[K] } & { [K in keyof ContentOverlay & keyof ContentOverlayAttributes as `attr:${K}`]?: ContentOverlayAttributes[K] } & { [K in keyof ContentOverlay & keyof ContentOverlayAttributes as `prop:${K}`]?: ContentOverlay[K] };
|
|
1869
|
+
"content-spacer": Omit<ContentSpacer, keyof ContentSpacerAttributes> & { [K in keyof ContentSpacer & keyof ContentSpacerAttributes]?: ContentSpacer[K] } & { [K in keyof ContentSpacer & keyof ContentSpacerAttributes as `attr:${K}`]?: ContentSpacerAttributes[K] } & { [K in keyof ContentSpacer & keyof ContentSpacerAttributes as `prop:${K}`]?: ContentSpacer[K] };
|
|
1870
|
+
"content-split-block": Omit<ContentSplitBlock, keyof ContentSplitBlockAttributes> & { [K in keyof ContentSplitBlock & keyof ContentSplitBlockAttributes]?: ContentSplitBlock[K] } & { [K in keyof ContentSplitBlock & keyof ContentSplitBlockAttributes as `attr:${K}`]?: ContentSplitBlockAttributes[K] } & { [K in keyof ContentSplitBlock & keyof ContentSplitBlockAttributes as `prop:${K}`]?: ContentSplitBlock[K] };
|
|
1871
|
+
"content-tabs": Omit<ContentTabs, keyof ContentTabsAttributes> & { [K in keyof ContentTabs & keyof ContentTabsAttributes]?: ContentTabs[K] } & { [K in keyof ContentTabs & keyof ContentTabsAttributes as `attr:${K}`]?: ContentTabsAttributes[K] } & { [K in keyof ContentTabs & keyof ContentTabsAttributes as `prop:${K}`]?: ContentTabs[K] };
|
|
1872
|
+
"content-text-block": Omit<ContentTextBlock, keyof ContentTextBlockAttributes> & { [K in keyof ContentTextBlock & keyof ContentTextBlockAttributes]?: ContentTextBlock[K] } & { [K in keyof ContentTextBlock & keyof ContentTextBlockAttributes as `attr:${K}`]?: ContentTextBlockAttributes[K] } & { [K in keyof ContentTextBlock & keyof ContentTextBlockAttributes as `prop:${K}`]?: ContentTextBlock[K] };
|
|
1873
|
+
"content-tout-block": Omit<ContentToutBlock, keyof ContentToutBlockAttributes> & { [K in keyof ContentToutBlock & keyof ContentToutBlockAttributes]?: ContentToutBlock[K] } & { [K in keyof ContentToutBlock & keyof ContentToutBlockAttributes as `attr:${K}`]?: ContentToutBlockAttributes[K] } & { [K in keyof ContentToutBlock & keyof ContentToutBlockAttributes as `prop:${K}`]?: ContentToutBlock[K] };
|
|
1874
|
+
"content-video": Omit<ContentVideo, keyof ContentVideoAttributes> & { [K in keyof ContentVideo & keyof ContentVideoAttributes]?: ContentVideo[K] } & { [K in keyof ContentVideo & keyof ContentVideoAttributes as `attr:${K}`]?: ContentVideoAttributes[K] } & { [K in keyof ContentVideo & keyof ContentVideoAttributes as `prop:${K}`]?: ContentVideo[K] };
|
|
1216
1875
|
}
|
|
1217
1876
|
}
|
|
1218
1877
|
export { LocalJSX as JSX };
|
|
1219
1878
|
declare module "@stencil/core" {
|
|
1220
1879
|
export namespace JSX {
|
|
1221
1880
|
interface IntrinsicElements {
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
"content-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
"content-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
"content-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1881
|
+
/**
|
|
1882
|
+
* A button that shows and hides the content below it, such as an answer in a list of questions.
|
|
1883
|
+
*/
|
|
1884
|
+
"content-accordion": LocalJSX.IntrinsicElements["content-accordion"] & JSXBase.HTMLAttributes<HTMLContentAccordionElement>;
|
|
1885
|
+
/**
|
|
1886
|
+
* A link or button. Wrapped around block content, such as a card, it makes the whole area clickable, and opens a content-overlay when its href points at one.
|
|
1887
|
+
*/
|
|
1888
|
+
"content-button": LocalJSX.IntrinsicElements["content-button"] & JSXBase.HTMLAttributes<HTMLContentButtonElement>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Slides that move sideways, built on Swiper, with labelled controls and a pause button when they move on their own.
|
|
1891
|
+
*/
|
|
1892
|
+
"content-carousel": LocalJSX.IntrinsicElements["content-carousel"] & JSXBase.HTMLAttributes<HTMLContentCarouselElement>;
|
|
1893
|
+
/**
|
|
1894
|
+
* Lays its children out in a grid or a row, with the number of columns, gaps and alignment set per breakpoint.
|
|
1895
|
+
*/
|
|
1896
|
+
"content-grid-formatter": LocalJSX.IntrinsicElements["content-grid-formatter"] & JSXBase.HTMLAttributes<HTMLContentGridFormatterElement>;
|
|
1897
|
+
/**
|
|
1898
|
+
* A full width section with an image or video behind, or above, its text. Usually the first block on a page.
|
|
1899
|
+
*/
|
|
1900
|
+
"content-hero-block": LocalJSX.IntrinsicElements["content-hero-block"] & JSXBase.HTMLAttributes<HTMLContentHeroBlockElement>;
|
|
1901
|
+
/**
|
|
1902
|
+
* A responsive image or muted looping video per breakpoint with native lazy loading.
|
|
1903
|
+
*/
|
|
1904
|
+
"content-image": LocalJSX.IntrinsicElements["content-image"] & JSXBase.HTMLAttributes<HTMLContentImageElement>;
|
|
1905
|
+
/**
|
|
1906
|
+
* One line of text, such as a heading or a paragraph, with its tag, alignment and maximum width set per breakpoint.
|
|
1907
|
+
*/
|
|
1908
|
+
"content-line": LocalJSX.IntrinsicElements["content-line"] & JSXBase.HTMLAttributes<HTMLContentLineElement>;
|
|
1909
|
+
/**
|
|
1910
|
+
* Site navigation that collapses into a menu button on the breakpoints you choose, with a skip link for keyboard users.
|
|
1911
|
+
*/
|
|
1912
|
+
"content-navigation-block": LocalJSX.IntrinsicElements["content-navigation-block"] & JSXBase.HTMLAttributes<HTMLContentNavigationBlockElement>;
|
|
1913
|
+
/**
|
|
1914
|
+
* A dialog that opens over the page, or inside another element, and keeps keyboard focus inside it while open.
|
|
1915
|
+
*/
|
|
1916
|
+
"content-overlay": LocalJSX.IntrinsicElements["content-overlay"] & JSXBase.HTMLAttributes<HTMLContentOverlayElement>;
|
|
1917
|
+
/**
|
|
1918
|
+
* Adds space around its content and limits its width, with its padding and maximum width set per breakpoint.
|
|
1919
|
+
*/
|
|
1920
|
+
"content-spacer": LocalJSX.IntrinsicElements["content-spacer"] & JSXBase.HTMLAttributes<HTMLContentSpacerElement>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Two columns side by side, such as an image next to text, that stack on smaller screens.
|
|
1923
|
+
*/
|
|
1924
|
+
"content-split-block": LocalJSX.IntrinsicElements["content-split-block"] & JSXBase.HTMLAttributes<HTMLContentSplitBlockElement>;
|
|
1925
|
+
/**
|
|
1926
|
+
* Accessible tabs: a tablist of buttons and the panels they show, with arrow key support.
|
|
1927
|
+
*/
|
|
1928
|
+
"content-tabs": LocalJSX.IntrinsicElements["content-tabs"] & JSXBase.HTMLAttributes<HTMLContentTabsElement>;
|
|
1929
|
+
/**
|
|
1930
|
+
* A block of text with its alignment, vertical position and minimum height set per breakpoint.
|
|
1931
|
+
*/
|
|
1932
|
+
"content-text-block": LocalJSX.IntrinsicElements["content-text-block"] & JSXBase.HTMLAttributes<HTMLContentTextBlockElement>;
|
|
1933
|
+
/**
|
|
1934
|
+
* A card that promotes something: an image or video with text below it, and an optional layer over the media that can show on hover.
|
|
1935
|
+
*/
|
|
1936
|
+
"content-tout-block": LocalJSX.IntrinsicElements["content-tout-block"] & JSXBase.HTMLAttributes<HTMLContentToutBlockElement>;
|
|
1937
|
+
/**
|
|
1938
|
+
* A video player for YouTube or self hosted files, built on Video.js.
|
|
1939
|
+
*/
|
|
1940
|
+
"content-video": LocalJSX.IntrinsicElements["content-video"] & JSXBase.HTMLAttributes<HTMLContentVideoElement>;
|
|
1237
1941
|
}
|
|
1238
1942
|
}
|
|
1239
1943
|
}
|