@content-blocks/js 0.3.2
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 +21 -0
- package/README.md +4 -0
- package/dist/cjs/BehaviorSubject-771fd78b.js +640 -0
- package/dist/cjs/BehaviorSubject-771fd78b.js.map +1 -0
- package/dist/cjs/Youtube-41424972.js +807 -0
- package/dist/cjs/Youtube-41424972.js.map +1 -0
- package/dist/cjs/content-accordion.cjs.entry.js +114 -0
- package/dist/cjs/content-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/content-blocks.cjs.js +25 -0
- package/dist/cjs/content-blocks.cjs.js.map +1 -0
- package/dist/cjs/content-button_4.cjs.entry.js +2165 -0
- package/dist/cjs/content-button_4.cjs.entry.js.map +1 -0
- package/dist/cjs/content-carousel-8b0e8962.js +1488 -0
- package/dist/cjs/content-carousel-8b0e8962.js.map +1 -0
- package/dist/cjs/content-carousel.cjs.entry.js +13 -0
- package/dist/cjs/content-carousel.cjs.entry.js.map +1 -0
- package/dist/cjs/content-grid-formatter.cjs.entry.js +50 -0
- package/dist/cjs/content-grid-formatter.cjs.entry.js.map +1 -0
- package/dist/cjs/content-hero-block.cjs.entry.js +46 -0
- package/dist/cjs/content-hero-block.cjs.entry.js.map +1 -0
- package/dist/cjs/content-image.cjs.entry.js +95 -0
- package/dist/cjs/content-image.cjs.entry.js.map +1 -0
- package/dist/cjs/content-navigation-block.cjs.entry.js +62 -0
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -0
- package/dist/cjs/content-split-block.cjs.entry.js +36 -0
- package/dist/cjs/content-split-block.cjs.entry.js.map +1 -0
- package/dist/cjs/content-tabs.cjs.entry.js +219 -0
- package/dist/cjs/content-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/content-text-block.cjs.entry.js +48 -0
- package/dist/cjs/content-text-block.cjs.entry.js.map +1 -0
- package/dist/cjs/content-tout-block.cjs.entry.js +32 -0
- package/dist/cjs/content-tout-block.cjs.entry.js.map +1 -0
- package/dist/cjs/content-video.cjs.entry.js +114 -0
- package/dist/cjs/content-video.cjs.entry.js.map +1 -0
- package/dist/cjs/index-a42fb1d0.js +2116 -0
- package/dist/cjs/index-a42fb1d0.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/swiper-8c9ab198.js +3612 -0
- package/dist/cjs/swiper-8c9ab198.js.map +1 -0
- package/dist/cjs/utils-6c985f2f.js +113 -0
- package/dist/cjs/utils-6c985f2f.js.map +1 -0
- package/dist/cjs/video.es-7d4d33f5.js +64206 -0
- package/dist/cjs/video.es-7d4d33f5.js.map +1 -0
- package/dist/cjs/window-resize-service-c9766178.js +35 -0
- package/dist/cjs/window-resize-service-c9766178.js.map +1 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +39 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +138 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -0
- package/dist/collection/blocks/content-hero-block/test/content-hero-block.e2e.js +10 -0
- package/dist/collection/blocks/content-hero-block/test/content-hero-block.e2e.js.map +1 -0
- package/dist/collection/blocks/content-hero-block/test/content-hero-block.spec.js +18 -0
- package/dist/collection/blocks/content-hero-block/test/content-hero-block.spec.js.map +1 -0
- package/dist/collection/blocks/content-split-block/content-split-block.css +18 -0
- package/dist/collection/blocks/content-split-block/content-split-block.js +125 -0
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -0
- package/dist/collection/blocks/content-split-block/test/content-split-block.e2e.js +10 -0
- package/dist/collection/blocks/content-split-block/test/content-split-block.e2e.js.map +1 -0
- package/dist/collection/blocks/content-split-block/test/content-split-block.spec.js +18 -0
- package/dist/collection/blocks/content-split-block/test/content-split-block.spec.js.map +1 -0
- package/dist/collection/blocks/content-text-block/content-text-block.css +47 -0
- package/dist/collection/blocks/content-text-block/content-text-block.js +192 -0
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -0
- package/dist/collection/blocks/content-text-block/test/content-text-block.e2e.js +10 -0
- package/dist/collection/blocks/content-text-block/test/content-text-block.e2e.js.map +1 -0
- package/dist/collection/blocks/content-text-block/test/content-text-block.spec.js +18 -0
- package/dist/collection/blocks/content-text-block/test/content-text-block.spec.js.map +1 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +35 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.js +74 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +1 -0
- package/dist/collection/blocks/content-tout-block/test/content-tout-block.e2e.js +10 -0
- package/dist/collection/blocks/content-tout-block/test/content-tout-block.e2e.js.map +1 -0
- package/dist/collection/blocks/content-tout-block/test/content-tout-block.spec.js +18 -0
- package/dist/collection/blocks/content-tout-block/test/content-tout-block.spec.js.map +1 -0
- package/dist/collection/collection-manifest.json +27 -0
- package/dist/collection/components/content-accordion/content-accordion.css +11 -0
- package/dist/collection/components/content-accordion/content-accordion.js +33 -0
- package/dist/collection/components/content-accordion/content-accordion.js.map +1 -0
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js +87 -0
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +1 -0
- package/dist/collection/components/content-accordion/test/content-accordion.e2e.js +10 -0
- package/dist/collection/components/content-accordion/test/content-accordion.e2e.js.map +1 -0
- package/dist/collection/components/content-accordion/test/content-accordion.spec.js +18 -0
- package/dist/collection/components/content-accordion/test/content-accordion.spec.js.map +1 -0
- package/dist/collection/components/content-carousel/content-carousel.css +21 -0
- package/dist/collection/components/content-carousel/content-carousel.js +152 -0
- package/dist/collection/components/content-carousel/content-carousel.js.map +1 -0
- package/dist/collection/components/content-carousel/test/content-carousel.e2e.js +10 -0
- package/dist/collection/components/content-carousel/test/content-carousel.e2e.js.map +1 -0
- package/dist/collection/components/content-carousel/test/content-carousel.spec.js +18 -0
- package/dist/collection/components/content-carousel/test/content-carousel.spec.js.map +1 -0
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +51 -0
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +146 -0
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -0
- package/dist/collection/components/content-navigation-block/test/content-navigation-block.e2e.js +10 -0
- package/dist/collection/components/content-navigation-block/test/content-navigation-block.e2e.js.map +1 -0
- package/dist/collection/components/content-navigation-block/test/content-navigation-block.spec.js +18 -0
- package/dist/collection/components/content-navigation-block/test/content-navigation-block.spec.js.map +1 -0
- package/dist/collection/components/content-overlay/content-overlay.css +103 -0
- package/dist/collection/components/content-overlay/content-overlay.js +384 -0
- package/dist/collection/components/content-overlay/content-overlay.js.map +1 -0
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js +356 -0
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +1 -0
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js +78 -0
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +1 -0
- package/dist/collection/components/content-overlay/test/content-overlay.e2e.js +10 -0
- package/dist/collection/components/content-overlay/test/content-overlay.e2e.js.map +1 -0
- package/dist/collection/components/content-overlay/test/content-overlay.spec.js +18 -0
- package/dist/collection/components/content-overlay/test/content-overlay.spec.js.map +1 -0
- package/dist/collection/components/content-tabs/content-tabs.css +19 -0
- package/dist/collection/components/content-tabs/content-tabs.js +27 -0
- package/dist/collection/components/content-tabs/content-tabs.js.map +1 -0
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js +223 -0
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +1 -0
- package/dist/collection/components/content-tabs/test/content-tabs.e2e.js +10 -0
- package/dist/collection/components/content-tabs/test/content-tabs.e2e.js.map +1 -0
- package/dist/collection/components/content-tabs/test/content-tabs.spec.js +18 -0
- package/dist/collection/components/content-tabs/test/content-tabs.spec.js.map +1 -0
- package/dist/collection/elements/content-button/content-button.css +37 -0
- package/dist/collection/elements/content-button/content-button.js +257 -0
- package/dist/collection/elements/content-button/content-button.js.map +1 -0
- package/dist/collection/elements/content-button/test/content-button.e2e.js +10 -0
- package/dist/collection/elements/content-button/test/content-button.e2e.js.map +1 -0
- package/dist/collection/elements/content-button/test/content-button.spec.js +18 -0
- package/dist/collection/elements/content-button/test/content-button.spec.js.map +1 -0
- package/dist/collection/elements/content-image/content-image.css +53 -0
- package/dist/collection/elements/content-image/content-image.js +305 -0
- package/dist/collection/elements/content-image/content-image.js.map +1 -0
- package/dist/collection/elements/content-image/test/content-image.e2e.js +10 -0
- package/dist/collection/elements/content-image/test/content-image.e2e.js.map +1 -0
- package/dist/collection/elements/content-image/test/content-image.spec.js +18 -0
- package/dist/collection/elements/content-image/test/content-image.spec.js.map +1 -0
- package/dist/collection/elements/content-line/content-line.css +18 -0
- package/dist/collection/elements/content-line/content-line.e2e.js +10 -0
- package/dist/collection/elements/content-line/content-line.e2e.js.map +1 -0
- package/dist/collection/elements/content-line/content-line.js +229 -0
- package/dist/collection/elements/content-line/content-line.js.map +1 -0
- package/dist/collection/elements/content-video/content-video.css +75 -0
- package/dist/collection/elements/content-video/content-video.js +391 -0
- package/dist/collection/elements/content-video/content-video.js.map +1 -0
- package/dist/collection/elements/content-video/test/content-video.e2e.js +10 -0
- package/dist/collection/elements/content-video/test/content-video.e2e.js.map +1 -0
- package/dist/collection/elements/content-video/test/content-video.spec.js +18 -0
- package/dist/collection/elements/content-video/test/content-video.spec.js.map +1 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +43 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +269 -0
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -0
- package/dist/collection/formatters/content-grid-formatter/test/content-grid-formatter.e2e.js +10 -0
- package/dist/collection/formatters/content-grid-formatter/test/content-grid-formatter.e2e.js.map +1 -0
- package/dist/collection/formatters/content-grid-formatter/test/content-grid-formatter.spec.js +18 -0
- package/dist/collection/formatters/content-grid-formatter/test/content-grid-formatter.spec.js.map +1 -0
- package/dist/collection/formatters/content-spacer/content-spacer.css +32 -0
- package/dist/collection/formatters/content-spacer/content-spacer.js +350 -0
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -0
- package/dist/collection/formatters/content-spacer/test/content-spacer.e2e.js +10 -0
- package/dist/collection/formatters/content-spacer/test/content-spacer.e2e.js.map +1 -0
- package/dist/collection/formatters/content-spacer/test/content-spacer.spec.js +18 -0
- package/dist/collection/formatters/content-spacer/test/content-spacer.spec.js.map +1 -0
- package/dist/collection/globalScript.js +15 -0
- package/dist/collection/globalScript.js.map +1 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/sass/_mixins.scss +249 -0
- package/dist/collection/sass/_variables.scss +18 -0
- package/dist/collection/services/content-events-service.js +23 -0
- package/dist/collection/services/content-events-service.js.map +1 -0
- package/dist/collection/services/window-resize-service.js +29 -0
- package/dist/collection/services/window-resize-service.js.map +1 -0
- package/dist/collection/utils/utils.js +88 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/collection/utils/utils.spec.js +1 -0
- package/dist/collection/utils/utils.spec.js.map +1 -0
- package/dist/components/BehaviorSubject.js +637 -0
- package/dist/components/BehaviorSubject.js.map +1 -0
- package/dist/components/Youtube.js +805 -0
- package/dist/components/Youtube.js.map +1 -0
- package/dist/components/content-accordion.d.ts +11 -0
- package/dist/components/content-accordion.js +127 -0
- package/dist/components/content-accordion.js.map +1 -0
- package/dist/components/content-button.d.ts +11 -0
- package/dist/components/content-button.js +88 -0
- package/dist/components/content-button.js.map +1 -0
- package/dist/components/content-carousel.d.ts +11 -0
- package/dist/components/content-carousel.js +1489 -0
- package/dist/components/content-carousel.js.map +1 -0
- package/dist/components/content-grid-formatter.d.ts +11 -0
- package/dist/components/content-grid-formatter.js +8 -0
- package/dist/components/content-grid-formatter.js.map +1 -0
- package/dist/components/content-grid-formatter2.js +68 -0
- package/dist/components/content-grid-formatter2.js.map +1 -0
- package/dist/components/content-hero-block.d.ts +11 -0
- package/dist/components/content-hero-block.js +63 -0
- package/dist/components/content-hero-block.js.map +1 -0
- package/dist/components/content-image.d.ts +11 -0
- package/dist/components/content-image.js +120 -0
- package/dist/components/content-image.js.map +1 -0
- package/dist/components/content-line.d.ts +11 -0
- package/dist/components/content-line.js +70 -0
- package/dist/components/content-line.js.map +1 -0
- package/dist/components/content-navigation-block.d.ts +11 -0
- package/dist/components/content-navigation-block.js +79 -0
- package/dist/components/content-navigation-block.js.map +1 -0
- package/dist/components/content-overlay.d.ts +11 -0
- package/dist/components/content-overlay.js +2048 -0
- package/dist/components/content-overlay.js.map +1 -0
- package/dist/components/content-spacer.d.ts +11 -0
- package/dist/components/content-spacer.js +76 -0
- package/dist/components/content-spacer.js.map +1 -0
- package/dist/components/content-split-block.d.ts +11 -0
- package/dist/components/content-split-block.js +58 -0
- package/dist/components/content-split-block.js.map +1 -0
- package/dist/components/content-tabs.d.ts +11 -0
- package/dist/components/content-tabs.js +232 -0
- package/dist/components/content-tabs.js.map +1 -0
- package/dist/components/content-text-block.d.ts +11 -0
- package/dist/components/content-text-block.js +66 -0
- package/dist/components/content-text-block.js.map +1 -0
- package/dist/components/content-tout-block.d.ts +11 -0
- package/dist/components/content-tout-block.js +46 -0
- package/dist/components/content-tout-block.js.map +1 -0
- package/dist/components/content-video.d.ts +11 -0
- package/dist/components/content-video.js +141 -0
- package/dist/components/content-video.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/swiper.js +3608 -0
- package/dist/components/swiper.js.map +1 -0
- package/dist/components/utils.js +106 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/components/video.es.js +64201 -0
- package/dist/components/video.es.js.map +1 -0
- package/dist/components/window-resize-service.js +33 -0
- package/dist/components/window-resize-service.js.map +1 -0
- package/dist/content-blocks/content-blocks.esm.js +2 -0
- package/dist/content-blocks/content-blocks.esm.js.map +1 -0
- package/dist/content-blocks/index.esm.js +2 -0
- package/dist/content-blocks/index.esm.js.map +1 -0
- package/dist/content-blocks/p-03ca48aa.js +2 -0
- package/dist/content-blocks/p-03ca48aa.js.map +1 -0
- package/dist/content-blocks/p-0ee5bbb6.entry.js +2 -0
- package/dist/content-blocks/p-0ee5bbb6.entry.js.map +1 -0
- package/dist/content-blocks/p-193fa2c0.entry.js +2 -0
- package/dist/content-blocks/p-193fa2c0.entry.js.map +1 -0
- package/dist/content-blocks/p-1b699607.js +2 -0
- package/dist/content-blocks/p-1b699607.js.map +1 -0
- package/dist/content-blocks/p-1efe0577.entry.js +2 -0
- package/dist/content-blocks/p-1efe0577.entry.js.map +1 -0
- package/dist/content-blocks/p-2357f07a.entry.js +2 -0
- package/dist/content-blocks/p-2357f07a.entry.js.map +1 -0
- package/dist/content-blocks/p-363e8357.entry.js +2 -0
- package/dist/content-blocks/p-363e8357.entry.js.map +1 -0
- package/dist/content-blocks/p-36793013.entry.js +10 -0
- package/dist/content-blocks/p-36793013.entry.js.map +1 -0
- package/dist/content-blocks/p-3a170c2c.entry.js +2 -0
- package/dist/content-blocks/p-3a170c2c.entry.js.map +1 -0
- package/dist/content-blocks/p-43a91cc7.js +29 -0
- package/dist/content-blocks/p-43a91cc7.js.map +1 -0
- package/dist/content-blocks/p-6d43a03c.js +2 -0
- package/dist/content-blocks/p-6d43a03c.js.map +1 -0
- package/dist/content-blocks/p-89fb0d8f.js +2 -0
- package/dist/content-blocks/p-89fb0d8f.js.map +1 -0
- package/dist/content-blocks/p-a7dfb547.entry.js +2 -0
- package/dist/content-blocks/p-a7dfb547.entry.js.map +1 -0
- package/dist/content-blocks/p-b27d54cb.entry.js +2 -0
- package/dist/content-blocks/p-b27d54cb.entry.js.map +1 -0
- package/dist/content-blocks/p-bf1cfb7b.js +3 -0
- package/dist/content-blocks/p-bf1cfb7b.js.map +1 -0
- package/dist/content-blocks/p-c5891e59.js +2 -0
- package/dist/content-blocks/p-c5891e59.js.map +1 -0
- package/dist/content-blocks/p-cd552ce2.js +2 -0
- package/dist/content-blocks/p-cd552ce2.js.map +1 -0
- package/dist/content-blocks/p-ce179781.entry.js +2 -0
- package/dist/content-blocks/p-ce179781.entry.js.map +1 -0
- package/dist/content-blocks/p-d3503dde.entry.js +2 -0
- package/dist/content-blocks/p-d3503dde.entry.js.map +1 -0
- package/dist/content-blocks/p-dca7ab2c.entry.js +2 -0
- package/dist/content-blocks/p-dca7ab2c.entry.js.map +1 -0
- package/dist/content-blocks/sass/_mixins.scss +249 -0
- package/dist/content-blocks/sass/_variables.scss +18 -0
- package/dist/esm/BehaviorSubject-bc7e0e99.js +637 -0
- package/dist/esm/BehaviorSubject-bc7e0e99.js.map +1 -0
- package/dist/esm/Youtube-6c271d8d.js +805 -0
- package/dist/esm/Youtube-6c271d8d.js.map +1 -0
- package/dist/esm/content-accordion.entry.js +110 -0
- package/dist/esm/content-accordion.entry.js.map +1 -0
- package/dist/esm/content-blocks.js +20 -0
- package/dist/esm/content-blocks.js.map +1 -0
- package/dist/esm/content-button_4.entry.js +2158 -0
- package/dist/esm/content-button_4.entry.js.map +1 -0
- package/dist/esm/content-carousel-cf7daf22.js +1469 -0
- package/dist/esm/content-carousel-cf7daf22.js.map +1 -0
- package/dist/esm/content-carousel.entry.js +5 -0
- package/dist/esm/content-carousel.entry.js.map +1 -0
- package/dist/esm/content-grid-formatter.entry.js +46 -0
- package/dist/esm/content-grid-formatter.entry.js.map +1 -0
- package/dist/esm/content-hero-block.entry.js +42 -0
- package/dist/esm/content-hero-block.entry.js.map +1 -0
- package/dist/esm/content-image.entry.js +91 -0
- package/dist/esm/content-image.entry.js.map +1 -0
- package/dist/esm/content-navigation-block.entry.js +58 -0
- package/dist/esm/content-navigation-block.entry.js.map +1 -0
- package/dist/esm/content-split-block.entry.js +32 -0
- package/dist/esm/content-split-block.entry.js.map +1 -0
- package/dist/esm/content-tabs.entry.js +215 -0
- package/dist/esm/content-tabs.entry.js.map +1 -0
- package/dist/esm/content-text-block.entry.js +44 -0
- package/dist/esm/content-text-block.entry.js.map +1 -0
- package/dist/esm/content-tout-block.entry.js +28 -0
- package/dist/esm/content-tout-block.entry.js.map +1 -0
- package/dist/esm/content-video.entry.js +110 -0
- package/dist/esm/content-video.entry.js.map +1 -0
- package/dist/esm/index-6701e2ba.js +2087 -0
- package/dist/esm/index-6701e2ba.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/swiper-977c310f.js +3610 -0
- package/dist/esm/swiper-977c310f.js.map +1 -0
- package/dist/esm/utils-27374a56.js +106 -0
- package/dist/esm/utils-27374a56.js.map +1 -0
- package/dist/esm/video.es-e4c3f886.js +64201 -0
- package/dist/esm/video.es-e4c3f886.js.map +1 -0
- package/dist/esm/window-resize-service-8a52f08c.js +33 -0
- package/dist/esm/window-resize-service-8a52f08c.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +33 -0
- package/dist/types/blocks/content-split-block/content-split-block.d.ts +27 -0
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +44 -0
- package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +22 -0
- package/dist/types/components/content-accordion/content-accordion.d.ts +12 -0
- package/dist/types/components/content-accordion/libraries/w3_disclosure_button.d.ts +4 -0
- package/dist/types/components/content-carousel/content-carousel.d.ts +36 -0
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +31 -0
- package/dist/types/components/content-overlay/content-overlay.d.ts +69 -0
- package/dist/types/components/content-overlay/libraries/aria-dialog.d.ts +5 -0
- package/dist/types/components/content-overlay/libraries/aria-utilities.d.ts +5 -0
- package/dist/types/components/content-tabs/content-tabs.d.ts +10 -0
- package/dist/types/components/content-tabs/libraries/w3_tabs.d.ts +4 -0
- package/dist/types/components.d.ts +994 -0
- package/dist/types/elements/content-button/content-button.d.ts +55 -0
- package/dist/types/elements/content-image/content-image.d.ts +56 -0
- package/dist/types/elements/content-line/content-line.d.ts +56 -0
- package/dist/types/elements/content-video/content-video.d.ts +77 -0
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +52 -0
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +73 -0
- package/dist/types/globalScript.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/services/content-events-service.d.ts +11 -0
- package/dist/types/services/window-resize-service.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1652 -0
- package/dist/types/typings.d.ts +11 -0
- package/dist/types/utils/utils.d.ts +13 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +65 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { WindowResizeService } from "../../services/window-resize-service";
|
|
3
|
+
/**
|
|
4
|
+
* @slot content - Inner contents of spacing wrapper, can be anything.
|
|
5
|
+
* @slot - Default slot, same as content slot.
|
|
6
|
+
*/
|
|
7
|
+
export class ContentSpacingWrapper {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.maxWidth = '100';
|
|
10
|
+
this.fullHeight = 'false';
|
|
11
|
+
this.textAlign = 'default';
|
|
12
|
+
this.horizontalPosition = undefined;
|
|
13
|
+
this.topOffset = '0';
|
|
14
|
+
this.bottomOffset = '0';
|
|
15
|
+
this.leftOffset = '0';
|
|
16
|
+
this.rightOffset = '0';
|
|
17
|
+
this.inlineStyle = {};
|
|
18
|
+
}
|
|
19
|
+
componentWillLoad() {
|
|
20
|
+
return Promise.allSettled([
|
|
21
|
+
WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => this.fullHeight = newValue),
|
|
22
|
+
WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.textAlign = newValue),
|
|
23
|
+
WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => this.horizontalPosition = newValue),
|
|
24
|
+
WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {
|
|
25
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'max-width': isNaN(newValue) ? newValue : newValue + '%' });
|
|
26
|
+
}),
|
|
27
|
+
WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {
|
|
28
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-top': isNaN(newValue) ? newValue : newValue + '%' });
|
|
29
|
+
}),
|
|
30
|
+
WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {
|
|
31
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-bottom': isNaN(newValue) ? newValue : newValue + '%' });
|
|
32
|
+
}),
|
|
33
|
+
WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {
|
|
34
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-left': isNaN(newValue) ? newValue : newValue + '%' });
|
|
35
|
+
}),
|
|
36
|
+
WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {
|
|
37
|
+
this.inlineStyle = Object.assign(Object.assign({}, this.inlineStyle), { 'padding-right': isNaN(newValue) ? newValue : newValue + '%' });
|
|
38
|
+
})
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return (h(Host, { style: this.inlineStyle }, h("slot", { name: "content" }), h("slot", null)));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "content-spacer"; }
|
|
45
|
+
static get originalStyleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["content-spacer.scss"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get styleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["content-spacer.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"maxWidth": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "ResponsiveNumber",
|
|
62
|
+
"resolved": "string",
|
|
63
|
+
"references": {
|
|
64
|
+
"ResponsiveNumber": {
|
|
65
|
+
"location": "import",
|
|
66
|
+
"path": "../../typings",
|
|
67
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [{
|
|
75
|
+
"name": "type",
|
|
76
|
+
"text": "String"
|
|
77
|
+
}, {
|
|
78
|
+
"name": "responsive",
|
|
79
|
+
"text": undefined
|
|
80
|
+
}],
|
|
81
|
+
"text": "Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\"."
|
|
82
|
+
},
|
|
83
|
+
"attribute": "max-width",
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"defaultValue": "'100'"
|
|
86
|
+
},
|
|
87
|
+
"fullHeight": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": true,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "ResponsiveBoolean",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {
|
|
94
|
+
"ResponsiveBoolean": {
|
|
95
|
+
"location": "import",
|
|
96
|
+
"path": "../../typings",
|
|
97
|
+
"id": "src/typings.d.ts::ResponsiveBoolean"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [{
|
|
105
|
+
"name": "type",
|
|
106
|
+
"text": "Boolean"
|
|
107
|
+
}, {
|
|
108
|
+
"name": "responsive",
|
|
109
|
+
"text": undefined
|
|
110
|
+
}],
|
|
111
|
+
"text": "Pipe separated boolean values for full height. Typically, this is used if you have a hero block and you want a footer that aligns with the text layer. This is a niche case, but a valid one."
|
|
112
|
+
},
|
|
113
|
+
"attribute": "full-height",
|
|
114
|
+
"reflect": true,
|
|
115
|
+
"defaultValue": "'false'"
|
|
116
|
+
},
|
|
117
|
+
"textAlign": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": true,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "ContentLineTextAlignOptions | ResponsiveString",
|
|
122
|
+
"resolved": "string",
|
|
123
|
+
"references": {
|
|
124
|
+
"ContentLineTextAlignOptions": {
|
|
125
|
+
"location": "import",
|
|
126
|
+
"path": "../../typings",
|
|
127
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
128
|
+
},
|
|
129
|
+
"ResponsiveString": {
|
|
130
|
+
"location": "import",
|
|
131
|
+
"path": "../../typings",
|
|
132
|
+
"id": "src/typings.d.ts::ResponsiveString"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [{
|
|
140
|
+
"name": "type",
|
|
141
|
+
"text": "Select"
|
|
142
|
+
}, {
|
|
143
|
+
"name": "options",
|
|
144
|
+
"text": "default"
|
|
145
|
+
}, {
|
|
146
|
+
"name": "options",
|
|
147
|
+
"text": "left"
|
|
148
|
+
}, {
|
|
149
|
+
"name": "options",
|
|
150
|
+
"text": "center"
|
|
151
|
+
}, {
|
|
152
|
+
"name": "options",
|
|
153
|
+
"text": "right"
|
|
154
|
+
}, {
|
|
155
|
+
"name": "responsive",
|
|
156
|
+
"text": undefined
|
|
157
|
+
}],
|
|
158
|
+
"text": "Pipe separated list of ContentLineTextAlignOptions for text alignment."
|
|
159
|
+
},
|
|
160
|
+
"attribute": "text-align",
|
|
161
|
+
"reflect": true,
|
|
162
|
+
"defaultValue": "'default'"
|
|
163
|
+
},
|
|
164
|
+
"horizontalPosition": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"mutable": true,
|
|
167
|
+
"complexType": {
|
|
168
|
+
"original": "ContentLineTextAlignOptions | ResponsiveString",
|
|
169
|
+
"resolved": "string",
|
|
170
|
+
"references": {
|
|
171
|
+
"ContentLineTextAlignOptions": {
|
|
172
|
+
"location": "import",
|
|
173
|
+
"path": "../../typings",
|
|
174
|
+
"id": "src/typings.d.ts::ContentLineTextAlignOptions"
|
|
175
|
+
},
|
|
176
|
+
"ResponsiveString": {
|
|
177
|
+
"location": "import",
|
|
178
|
+
"path": "../../typings",
|
|
179
|
+
"id": "src/typings.d.ts::ResponsiveString"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"optional": false,
|
|
185
|
+
"docs": {
|
|
186
|
+
"tags": [{
|
|
187
|
+
"name": "type",
|
|
188
|
+
"text": "Select"
|
|
189
|
+
}, {
|
|
190
|
+
"name": "options",
|
|
191
|
+
"text": "default"
|
|
192
|
+
}, {
|
|
193
|
+
"name": "options",
|
|
194
|
+
"text": "left"
|
|
195
|
+
}, {
|
|
196
|
+
"name": "options",
|
|
197
|
+
"text": "center"
|
|
198
|
+
}, {
|
|
199
|
+
"name": "options",
|
|
200
|
+
"text": "right"
|
|
201
|
+
}, {
|
|
202
|
+
"name": "responsive",
|
|
203
|
+
"text": undefined
|
|
204
|
+
}],
|
|
205
|
+
"text": "Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified."
|
|
206
|
+
},
|
|
207
|
+
"attribute": "horizontal-position",
|
|
208
|
+
"reflect": true
|
|
209
|
+
},
|
|
210
|
+
"topOffset": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "ResponsiveNumber",
|
|
215
|
+
"resolved": "string",
|
|
216
|
+
"references": {
|
|
217
|
+
"ResponsiveNumber": {
|
|
218
|
+
"location": "import",
|
|
219
|
+
"path": "../../typings",
|
|
220
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": false,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [{
|
|
228
|
+
"name": "type",
|
|
229
|
+
"text": "Number"
|
|
230
|
+
}, {
|
|
231
|
+
"name": "string",
|
|
232
|
+
"text": undefined
|
|
233
|
+
}, {
|
|
234
|
+
"name": "responsive",
|
|
235
|
+
"text": undefined
|
|
236
|
+
}],
|
|
237
|
+
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
238
|
+
},
|
|
239
|
+
"attribute": "top-offset",
|
|
240
|
+
"reflect": false,
|
|
241
|
+
"defaultValue": "'0'"
|
|
242
|
+
},
|
|
243
|
+
"bottomOffset": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "ResponsiveNumber",
|
|
248
|
+
"resolved": "string",
|
|
249
|
+
"references": {
|
|
250
|
+
"ResponsiveNumber": {
|
|
251
|
+
"location": "import",
|
|
252
|
+
"path": "../../typings",
|
|
253
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": false,
|
|
258
|
+
"optional": false,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [{
|
|
261
|
+
"name": "type",
|
|
262
|
+
"text": "Number"
|
|
263
|
+
}, {
|
|
264
|
+
"name": "string",
|
|
265
|
+
"text": undefined
|
|
266
|
+
}, {
|
|
267
|
+
"name": "responsive",
|
|
268
|
+
"text": undefined
|
|
269
|
+
}],
|
|
270
|
+
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
271
|
+
},
|
|
272
|
+
"attribute": "bottom-offset",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "'0'"
|
|
275
|
+
},
|
|
276
|
+
"leftOffset": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "ResponsiveNumber",
|
|
281
|
+
"resolved": "string",
|
|
282
|
+
"references": {
|
|
283
|
+
"ResponsiveNumber": {
|
|
284
|
+
"location": "import",
|
|
285
|
+
"path": "../../typings",
|
|
286
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [{
|
|
294
|
+
"name": "type",
|
|
295
|
+
"text": "Number"
|
|
296
|
+
}, {
|
|
297
|
+
"name": "string",
|
|
298
|
+
"text": undefined
|
|
299
|
+
}, {
|
|
300
|
+
"name": "responsive",
|
|
301
|
+
"text": undefined
|
|
302
|
+
}],
|
|
303
|
+
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
304
|
+
},
|
|
305
|
+
"attribute": "left-offset",
|
|
306
|
+
"reflect": false,
|
|
307
|
+
"defaultValue": "'0'"
|
|
308
|
+
},
|
|
309
|
+
"rightOffset": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "ResponsiveNumber",
|
|
314
|
+
"resolved": "string",
|
|
315
|
+
"references": {
|
|
316
|
+
"ResponsiveNumber": {
|
|
317
|
+
"location": "import",
|
|
318
|
+
"path": "../../typings",
|
|
319
|
+
"id": "src/typings.d.ts::ResponsiveNumber"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": false,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [{
|
|
327
|
+
"name": "type",
|
|
328
|
+
"text": "Number"
|
|
329
|
+
}, {
|
|
330
|
+
"name": "string",
|
|
331
|
+
"text": undefined
|
|
332
|
+
}, {
|
|
333
|
+
"name": "responsive",
|
|
334
|
+
"text": undefined
|
|
335
|
+
}],
|
|
336
|
+
"text": "Pipe separated numbers between 0 and 100. Units without values are assumed to be %."
|
|
337
|
+
},
|
|
338
|
+
"attribute": "right-offset",
|
|
339
|
+
"reflect": false,
|
|
340
|
+
"defaultValue": "'0'"
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
static get states() {
|
|
345
|
+
return {
|
|
346
|
+
"inlineStyle": {}
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
//# sourceMappingURL=content-spacer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-spacer.js","sourceRoot":"","sources":["../../../../src/formatters/content-spacer/content-spacer.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, h, Prop, State, Host } from '@stencil/core';\nimport { WindowResizeService } from '../../services/window-resize-service';\nimport { ContentLineTextAlignOptions, ResponsiveBoolean, ResponsiveNumber, ResponsiveString } from '../../typings';\n\n/**\n * @slot content - Inner contents of spacing wrapper, can be anything.\n * @slot - Default slot, same as content slot.\n */\n@Component({\n tag: 'content-spacer',\n styleUrls: ['content-spacer.scss'],\n shadow: false,\n})\nexport class ContentSpacingWrapper {\n /**\n * Pipe separated list of max width numbers. You can also use units such as \"px\" and \"vw\".\n * @type String\n * @responsive\n */\n @Prop() maxWidth: ResponsiveNumber = '100';\n\n /**\n * 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.\n * @type Boolean\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true\n }) fullHeight: ResponsiveBoolean = 'false';\n\n /**\n * Pipe separated list of ContentLineTextAlignOptions for text alignment.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true\n }) textAlign: ContentLineTextAlignOptions | ResponsiveString = 'default';\n \n /**\n * Pipe separated list of ContentLineTextAlignOptions for where to place text box when a max width is specified.\n * @type Select\n * @options default\n * @options left\n * @options center\n * @options right\n * @responsive\n */\n @Prop({\n reflect: true,\n mutable: true\n }) horizontalPosition: ContentLineTextAlignOptions | ResponsiveString;\n \n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() topOffset: ResponsiveNumber = '0';\n \n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() bottomOffset: ResponsiveNumber = '0';\n \n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() leftOffset: ResponsiveNumber = '0';\n \n /**\n * Pipe separated numbers between 0 and 100. Units without values are assumed to be %.\n * @type Number\n * @string\n * @responsive\n */\n @Prop() rightOffset: ResponsiveNumber = '0';\n\n @State() inlineStyle?: {[key: string]: string} = {};\n\n componentWillLoad() {\n return Promise.allSettled([\n WindowResizeService.registerProp(this.fullHeight).subscribe(newValue => this.fullHeight = newValue as string),\n WindowResizeService.registerProp(this.textAlign).subscribe(newValue => this.textAlign = newValue as string),\n WindowResizeService.registerProp(this.horizontalPosition).subscribe(newValue => this.horizontalPosition = newValue as string),\n WindowResizeService.registerProp(this.maxWidth).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'max-width': isNaN(newValue as any) ? newValue as string : newValue + '%' };\n }),\n WindowResizeService.registerProp(this.topOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-top': isNaN(newValue as any) ? newValue as string : newValue + '%' };\n }),\n WindowResizeService.registerProp(this.bottomOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-bottom': isNaN(newValue as any) ? newValue as string : newValue + '%' };\n }),\n WindowResizeService.registerProp(this.leftOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-left': isNaN(newValue as any) ? newValue as string : newValue + '%' };\n }),\n WindowResizeService.registerProp(this.rightOffset).subscribe(newValue => {\n this.inlineStyle = { ...this.inlineStyle, 'padding-right': isNaN(newValue as any) ? newValue as string : newValue + '%' };\n })\n ])\n }\n \n render() {\n return (\n <Host style={this.inlineStyle}>\n <slot name=\"content\"></slot>\n <slot></slot>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('content-spacer', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<content-spacer></content-spacer>');
|
|
6
|
+
const element = await page.find('content-spacer');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=content-spacer.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-spacer.e2e.js","sourceRoot":"","sources":["../../../../../src/formatters/content-spacer/test/content-spacer.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAClD,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('content-spacer', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<content-spacer></content-spacer>');\n\n const element = await page.find('content-spacer');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { ContentSpacingWrapper } from "../content-spacer";
|
|
3
|
+
describe('content-spacer', () => {
|
|
4
|
+
it('renders', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [ContentSpacingWrapper],
|
|
7
|
+
html: `<content-spacer></content-spacer>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toEqualHtml(`
|
|
10
|
+
<content-spacer>
|
|
11
|
+
<mock:shadow-root>
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</mock:shadow-root>
|
|
14
|
+
</content-spacer>
|
|
15
|
+
`);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=content-spacer.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-spacer.spec.js","sourceRoot":"","sources":["../../../../../src/formatters/content-spacer/test/content-spacer.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,qBAAqB,CAAC;MACnC,IAAI,EAAE,mCAAmC;KAC1C,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { ContentSpacingWrapper } from '../content-spacer';\n\ndescribe('content-spacer', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [ContentSpacingWrapper],\n html: `<content-spacer></content-spacer>`,\n });\n expect(page.root).toEqualHtml(`\n <content-spacer>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </content-spacer>\n `);\n });\n});\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// import { insertCssIntoHead } from "./utils/utils";
|
|
2
|
+
// if (typeof document !== 'undefined') {
|
|
3
|
+
// const SCRIPT_NAME = '/content-blocks.esm.js';
|
|
4
|
+
// let scriptPathFound = false;
|
|
5
|
+
// let scriptPath = '';
|
|
6
|
+
// let scripts = document.querySelectorAll('script[type="module"]');
|
|
7
|
+
// scripts.forEach(script => {
|
|
8
|
+
// if (!scriptPathFound && script['src'].includes(SCRIPT_NAME)) {
|
|
9
|
+
// scriptPathFound = true;
|
|
10
|
+
// scriptPath = script['src'].replace(SCRIPT_NAME, '');
|
|
11
|
+
// }
|
|
12
|
+
// });
|
|
13
|
+
// insertCssIntoHead(document, `${scriptPath}/global/content-blocks-reset.css`);
|
|
14
|
+
// }
|
|
15
|
+
//# sourceMappingURL=globalScript.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalScript.js","sourceRoot":"","sources":["../../src/globalScript.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,yCAAyC;AACzC,kDAAkD;AAClD,iCAAiC;AACjC,yBAAyB;AACzB,sEAAsE;AACtE,gCAAgC;AAChC,qEAAqE;AACrE,gCAAgC;AAChC,6DAA6D;AAC7D,QAAQ;AACR,QAAQ;AACR,kFAAkF;AAClF,IAAI","sourcesContent":["// import { insertCssIntoHead } from \"./utils/utils\";\n// if (typeof document !== 'undefined') {\n// const SCRIPT_NAME = '/content-blocks.esm.js';\n// let scriptPathFound = false;\n// let scriptPath = '';\n// let scripts = document.querySelectorAll('script[type=\"module\"]');\n// scripts.forEach(script => {\n// if (!scriptPathFound && script['src'].includes(SCRIPT_NAME)) {\n// scriptPathFound = true;\n// scriptPath = script['src'].replace(SCRIPT_NAME, '');\n// }\n// });\n// insertCssIntoHead(document, `${scriptPath}/global/content-blocks-reset.css`);\n// }"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,eAAe,CAAC","sourcesContent":["export type { Components, JSX } from './components';\nexport * as ResponsiveUtils from './utils/utils';"]}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
@mixin scaledProperty($property, $mobile: null, $tabletPortrait: null, $tabletLandscape: null, $desktop: null, $desktopLarge: null, $desktopWide: null) {
|
|
2
|
+
@if $mobile {
|
|
3
|
+
#{$property}: $mobile;
|
|
4
|
+
}
|
|
5
|
+
@if $tabletPortrait {
|
|
6
|
+
@media #{$tablet-portrait-up} {
|
|
7
|
+
#{$property}: $tabletPortrait;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
@if $tabletLandscape {
|
|
11
|
+
@media #{$tablet-landscape-up} {
|
|
12
|
+
#{$property}: $tabletLandscape;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@if desktop {
|
|
16
|
+
@media #{$tablet-desktop-up} {
|
|
17
|
+
#{$property}: $desktop;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@if $desktopLarge {
|
|
21
|
+
@media #{$desktop-large-up} {
|
|
22
|
+
#{$property}: $desktopLarge;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@if $desktopWide {
|
|
26
|
+
@media #{$desktop-wide-up} {
|
|
27
|
+
#{$property}: $desktopWide;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin allPercentRules($property) {
|
|
33
|
+
@for $i from 0 to 101 {
|
|
34
|
+
&-#{$i} {
|
|
35
|
+
#{$property}: #{1% * $i};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin allPercentRulesAllDevices($property) {
|
|
41
|
+
&-mobile {
|
|
42
|
+
@include allPercentRules($property);
|
|
43
|
+
}
|
|
44
|
+
&-tablet-portrait {
|
|
45
|
+
@media #{$tablet-portrait-up} {
|
|
46
|
+
@include allPercentRules($property);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&-tablet-landscape {
|
|
50
|
+
@media #{$tablet-landscape-up} {
|
|
51
|
+
@include allPercentRules($property);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&-desktop {
|
|
55
|
+
@media #{$tablet-desktop-up} {
|
|
56
|
+
@include allPercentRules($property);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&-large {
|
|
60
|
+
@media #{$desktop-large-up} {
|
|
61
|
+
@include allPercentRules($property);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&-desktop-wide {
|
|
65
|
+
@media #{$desktop-wide-up} {
|
|
66
|
+
@include allPercentRules($property);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@mixin allVerticalFlexAlignItems {
|
|
72
|
+
&-top {
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
}
|
|
75
|
+
&-center {
|
|
76
|
+
justify-content: center;
|
|
77
|
+
}
|
|
78
|
+
&-bottom {
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin allVerticalFlexAlignItemsAllDevices {
|
|
84
|
+
&-mobile {
|
|
85
|
+
@include allVerticalFlexAlignItems;
|
|
86
|
+
}
|
|
87
|
+
&-tablet-portrait {
|
|
88
|
+
@media #{$tablet-portrait-up} {
|
|
89
|
+
@include allVerticalFlexAlignItems;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&-tablet-landscape {
|
|
93
|
+
@media #{$tablet-landscape-up} {
|
|
94
|
+
@include allVerticalFlexAlignItems;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
&-desktop {
|
|
98
|
+
@media #{$tablet-desktop-up} {
|
|
99
|
+
@include allVerticalFlexAlignItems;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
&-large {
|
|
103
|
+
@media #{$desktop-large-up} {
|
|
104
|
+
@include allVerticalFlexAlignItems;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&-desktop-wide {
|
|
108
|
+
@media #{$desktop-wide-up} {
|
|
109
|
+
@include allVerticalFlexAlignItems;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@mixin allMaxWidthRules {
|
|
115
|
+
&-left {
|
|
116
|
+
margin-left: 0;
|
|
117
|
+
margin-right: auto;
|
|
118
|
+
}
|
|
119
|
+
&-center {
|
|
120
|
+
margin-left: auto;
|
|
121
|
+
margin-right: auto;
|
|
122
|
+
}
|
|
123
|
+
&-right {
|
|
124
|
+
margin-left: auto;
|
|
125
|
+
margin-right: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@mixin allMaxWidthRulesAllDevices {
|
|
129
|
+
&-mobile {
|
|
130
|
+
@include allMaxWidthRules;
|
|
131
|
+
}
|
|
132
|
+
&-tablet-portrait {
|
|
133
|
+
@media #{$tablet-portrait-up} {
|
|
134
|
+
@include allMaxWidthRules;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
&-tablet-landscape {
|
|
138
|
+
@media #{$tablet-landscape-up} {
|
|
139
|
+
@include allMaxWidthRules;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
&-desktop {
|
|
143
|
+
@media #{$tablet-desktop-up} {
|
|
144
|
+
@include allMaxWidthRules;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
&-large {
|
|
148
|
+
@media #{$desktop-large-up} {
|
|
149
|
+
@include allMaxWidthRules;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&-desktop-wide {
|
|
153
|
+
@media #{$desktop-wide-up} {
|
|
154
|
+
@include allMaxWidthRules;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin allTextAlignRules {
|
|
160
|
+
&-left {
|
|
161
|
+
text-align: left;
|
|
162
|
+
}
|
|
163
|
+
&-center {
|
|
164
|
+
text-align: center;
|
|
165
|
+
}
|
|
166
|
+
&-right {
|
|
167
|
+
text-align: right;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@mixin allHeroContentPlacementRules {
|
|
172
|
+
&-above {
|
|
173
|
+
.content-hero-block__inner {
|
|
174
|
+
display: grid;
|
|
175
|
+
grid-template-columns: 1fr;
|
|
176
|
+
}
|
|
177
|
+
.content-hero-block__media,
|
|
178
|
+
.content-hero-block__content {
|
|
179
|
+
grid-row-start: 1;
|
|
180
|
+
grid-column-start: 1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
&-below {
|
|
184
|
+
.content-hero-block__inner {
|
|
185
|
+
display: block;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
@mixin allHeroContentPlacementRulesAllDevices {
|
|
190
|
+
&-mobile {
|
|
191
|
+
@include allHeroContentPlacementRules;
|
|
192
|
+
}
|
|
193
|
+
&-tablet-portrait {
|
|
194
|
+
@media #{$tablet-portrait-up} {
|
|
195
|
+
@include allHeroContentPlacementRules;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
&-tablet-landscape {
|
|
199
|
+
@media #{$tablet-landscape-up} {
|
|
200
|
+
@include allHeroContentPlacementRules;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
&-desktop {
|
|
204
|
+
@media #{$tablet-desktop-up} {
|
|
205
|
+
@include allHeroContentPlacementRules;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
&-large {
|
|
209
|
+
@media #{$desktop-large-up} {
|
|
210
|
+
@include allHeroContentPlacementRules;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
&-desktop-wide {
|
|
214
|
+
@media #{$desktop-wide-up} {
|
|
215
|
+
@include allHeroContentPlacementRules;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@mixin responsiveProperty($settingKey) {
|
|
221
|
+
#{$settingKey}-mobile {
|
|
222
|
+
@content;
|
|
223
|
+
}
|
|
224
|
+
#{$settingKey}-tablet-portrait {
|
|
225
|
+
@media #{$tablet-portrait-up} {
|
|
226
|
+
@content;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
#{$settingKey}-tablet-landscape {
|
|
230
|
+
@media #{$tablet-landscape-up} {
|
|
231
|
+
@content;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
#{$settingKey}-desktop {
|
|
235
|
+
@media #{$tablet-desktop-up} {
|
|
236
|
+
@content;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
#{$settingKey}-desktop-large {
|
|
240
|
+
@media #{$desktop-large-up} {
|
|
241
|
+
@content;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
#{$settingKey}-desktop-wide {
|
|
245
|
+
@media #{$desktop-wide-up} {
|
|
246
|
+
@content;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|