@content-blocks/js 0.7.7 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +111 -3
- package/THIRD-PARTY-NOTICES.md +21 -0
- package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -2
- package/dist/cjs/content-accordion.cjs.entry.js +87 -0
- package/dist/cjs/content-blocks.cjs.js +35 -11
- package/dist/cjs/content-button.cjs.entry.js +113 -0
- package/dist/cjs/content-carousel.cjs.entry.js +153 -47
- package/dist/cjs/content-grid-formatter.cjs.entry.js +102 -0
- package/dist/cjs/content-hero-block.cjs.entry.js +45 -0
- package/dist/cjs/content-image.cjs.entry.js +153 -0
- package/dist/cjs/content-line.cjs.entry.js +61 -0
- package/dist/cjs/content-navigation-block.cjs.entry.js +51 -34
- package/dist/cjs/content-overlay.cjs.entry.js +641 -0
- package/dist/cjs/content-spacer.cjs.entry.js +75 -0
- package/dist/cjs/content-split-block.cjs.entry.js +22 -19
- package/dist/cjs/content-tabs.cjs.entry.js +38 -21
- package/dist/cjs/content-text-block.cjs.entry.js +63 -0
- package/dist/cjs/content-tout-block.cjs.entry.js +34 -0
- package/dist/cjs/{content-accordion_11.cjs.entry.js → content-video.cjs.entry.js} +14541 -12905
- package/dist/cjs/{focus-trap.esm-7bc384a0.js → focus-trap.esm-ZwN-anf1.js} +484 -190
- package/dist/cjs/{index-2e0ce692.js → index-B1U6Gweq.js} +348 -246
- package/dist/cjs/index-ClnpH9XB.js +2170 -0
- package/dist/cjs/index-CyalvZJn.js +1719 -0
- package/dist/cjs/index-DUvWvBDN.js +290 -0
- package/dist/cjs/index-voGY4Tkl.js +4705 -0
- package/dist/cjs/index.cjs.js +2 -5
- package/dist/cjs/loader.cjs.js +3 -8
- package/dist/cjs/responsive-component-C5eJS82z.js +171 -0
- package/dist/cjs/responsive-component-DMdnQIPV.js +171 -0
- package/dist/cjs/swiper-KLYbvU1K.js +3931 -0
- package/dist/cjs/{swiper-8221f4e8.js → swiper-_Z8Y4IJI.js} +269 -236
- package/dist/cjs/utils-BCHaRGm_.js +462 -0
- package/dist/cjs/{utils-df044337.js → utils-C3gXIS2t.js} +51 -49
- package/dist/cjs/utils-DUvWvBDN.js +290 -0
- package/dist/collection/blocks/content-hero-block/content-hero-block.css +1 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js +33 -48
- package/dist/collection/blocks/content-split-block/content-split-block.css +16 -5
- package/dist/collection/blocks/content-split-block/content-split-block.js +29 -48
- package/dist/collection/blocks/content-text-block/content-text-block.js +65 -59
- package/dist/collection/blocks/content-tout-block/content-tout-block.css +3 -0
- package/dist/collection/blocks/content-tout-block/content-tout-block.js +22 -47
- package/dist/collection/collection-manifest.json +8 -5
- package/dist/collection/components/content-accordion/content-accordion.css +20 -1
- package/dist/collection/components/content-accordion/content-accordion.js +67 -33
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js +0 -1
- package/dist/collection/components/content-carousel/content-carousel.css +60 -4
- package/dist/collection/components/content-carousel/content-carousel.js +294 -44
- package/dist/collection/components/content-navigation-block/content-navigation-block.css +15 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js +86 -42
- package/dist/collection/components/content-overlay/content-overlay.css +36 -5
- package/dist/collection/components/content-overlay/content-overlay.js +181 -120
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js +7 -49
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js +0 -1
- package/dist/collection/elements/content-button/content-button.css +8 -7
- package/dist/collection/elements/content-button/content-button.js +103 -84
- package/dist/collection/elements/content-image/content-image.css +3 -1
- package/dist/collection/elements/content-image/content-image.js +176 -95
- package/dist/collection/elements/content-line/content-line.js +63 -54
- package/dist/collection/elements/content-video/content-video.css +1 -1
- package/dist/collection/elements/content-video/content-video.js +123 -73
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +8 -2
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +167 -89
- package/dist/collection/formatters/content-spacer/content-spacer.js +86 -209
- package/dist/collection/global/content-blocks-reset.css +77 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/sass/_mixins.scss +21 -5
- package/dist/collection/sass/_variables.scss +15 -15
- package/dist/collection/setupFiles.js +0 -1
- package/dist/collection/site/site.js +67 -0
- package/dist/collection/utils/breakpoints.js +162 -0
- package/dist/collection/utils/responsive-component.js +249 -0
- package/dist/collection/utils/utils.js +32 -42
- package/dist/components/content-accordion.js +65 -44
- package/dist/components/content-button.js +89 -43
- package/dist/components/content-carousel.js +172 -55
- package/dist/components/content-grid-formatter.js +127 -3
- package/dist/components/content-hero-block.js +33 -26
- package/dist/components/content-image.js +127 -71
- package/dist/components/content-line.js +56 -35
- package/dist/components/content-navigation-block.js +62 -39
- package/dist/components/content-overlay.js +128 -67
- package/dist/components/content-spacer.js +70 -54
- package/dist/components/content-split-block.js +33 -32
- package/dist/components/content-tabs.js +46 -25
- package/dist/components/content-text-block.js +55 -35
- package/dist/components/content-tout-block.js +29 -27
- package/dist/components/content-video.js +14605 -11951
- package/dist/{esm/focus-trap.esm-8fb54175.js → components/focus-trap.esm.js} +484 -190
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +3 -3
- package/dist/components/{p-5a91aa1b.js → index2.js} +348 -246
- package/dist/components/p-BWRCeMvO.js +1 -0
- package/dist/components/p-CYF5GU_q.js +1 -0
- package/dist/components/p-DXUoPIwl.js +10 -0
- package/dist/components/p-D_Ll4QNj.js +1 -0
- package/dist/components/p-DhIoW7H3.js +1 -0
- package/dist/components/responsive-component.js +168 -0
- package/dist/components/{p-e5dc4ea4.js → swiper.js} +268 -235
- package/dist/components/utils.js +4969 -0
- package/dist/{esm/utils-1c9f0ec1.js → components/utils2.js} +51 -50
- package/dist/content-blocks/content-accordion.entry.js +85 -0
- package/dist/content-blocks/content-blocks.esm.js +47 -2
- package/dist/content-blocks/content-button.entry.js +111 -0
- package/dist/content-blocks/content-carousel.entry.js +188 -0
- package/dist/content-blocks/content-grid-formatter.entry.js +100 -0
- package/dist/content-blocks/content-hero-block.entry.js +43 -0
- package/dist/content-blocks/content-image.entry.js +151 -0
- package/dist/content-blocks/content-line.entry.js +59 -0
- package/dist/content-blocks/content-navigation-block.entry.js +105 -0
- package/dist/content-blocks/content-overlay.entry.js +639 -0
- package/dist/content-blocks/content-spacer.entry.js +73 -0
- package/dist/content-blocks/content-split-block.entry.js +34 -0
- package/dist/content-blocks/content-tabs.entry.js +245 -0
- package/dist/content-blocks/content-text-block.entry.js +61 -0
- package/dist/content-blocks/content-tout-block.entry.js +32 -0
- package/dist/{esm/content-accordion_11.entry.js → content-blocks/content-video.entry.js} +14516 -12868
- package/dist/{components/p-a2fedf8a.js → content-blocks/focus-trap.esm-DXUoPIwl.js} +484 -190
- package/dist/content-blocks/global/content-blocks-reset.css +77 -0
- package/dist/content-blocks/index-BFDJMblF.js +4690 -0
- package/dist/{esm/index-f45a9c45.js → content-blocks/index-P1YnSd-O.js} +348 -246
- package/dist/content-blocks/index.esm.js +1 -2
- package/dist/content-blocks/p-008457f0.entry.js +1 -0
- package/dist/content-blocks/p-052692f1.entry.js +1 -0
- package/dist/content-blocks/p-0f71bd32.entry.js +1 -0
- package/dist/content-blocks/p-1f154617.entry.js +1 -0
- package/dist/content-blocks/p-2554ebd8.entry.js +1 -0
- package/dist/content-blocks/p-4afd6511.entry.js +1 -0
- package/dist/content-blocks/p-78d5de9f.entry.js +1 -0
- package/dist/content-blocks/p-7bcf7e7e.entry.js +1 -0
- package/dist/content-blocks/p-9058031c.entry.js +1 -0
- package/dist/content-blocks/p-9c41ac23.entry.js +17 -0
- package/dist/content-blocks/p-CLwOzPEO.js +3 -0
- package/dist/content-blocks/p-CYF5GU_q.js +1 -0
- package/dist/content-blocks/p-CjR_4mPu.js +1 -0
- package/dist/content-blocks/p-DQuL1Twl.js +1 -0
- package/dist/content-blocks/p-DXUoPIwl.js +10 -0
- package/dist/content-blocks/p-D_Ll4QNj.js +1 -0
- package/dist/content-blocks/p-DhIoW7H3.js +1 -0
- package/dist/content-blocks/p-DzYwy_62.js +1 -0
- package/dist/content-blocks/p-b2e6358a.entry.js +1 -0
- package/dist/content-blocks/p-c783bc68.entry.js +1 -0
- package/dist/content-blocks/p-e3d81e15.entry.js +1 -0
- package/dist/content-blocks/p-f23b4aae.entry.js +1 -0
- package/dist/content-blocks/p-f75c9094.entry.js +1 -0
- package/dist/content-blocks/responsive-component-BsLrcKbS.js +169 -0
- package/dist/content-blocks/sass/_mixins.scss +21 -5
- package/dist/content-blocks/sass/_variables.scss +15 -15
- package/dist/{esm/swiper-e9621adb.js → content-blocks/swiper-nBv069TB.js} +268 -235
- package/dist/{components/p-b85cfa86.js → content-blocks/utils--SDsQnWS.js} +51 -50
- package/dist/content-blocks/utils-Bak__24s.js +280 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +5312 -0
- package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -2
- package/dist/esm/content-accordion.entry.js +85 -0
- package/dist/esm/content-blocks.js +33 -8
- package/dist/esm/content-button.entry.js +111 -0
- package/dist/esm/content-carousel.entry.js +153 -45
- package/dist/esm/content-grid-formatter.entry.js +100 -0
- package/dist/esm/content-hero-block.entry.js +43 -0
- package/dist/esm/content-image.entry.js +151 -0
- package/dist/esm/content-line.entry.js +59 -0
- package/dist/esm/content-navigation-block.entry.js +51 -32
- package/dist/esm/content-overlay.entry.js +639 -0
- package/dist/esm/content-spacer.entry.js +73 -0
- package/dist/esm/content-split-block.entry.js +22 -17
- package/dist/esm/content-tabs.entry.js +38 -19
- package/dist/esm/content-text-block.entry.js +61 -0
- package/dist/esm/content-tout-block.entry.js +32 -0
- package/dist/esm/content-video.entry.js +72033 -0
- package/dist/esm/focus-trap.esm-DXUoPIwl.js +1801 -0
- package/dist/esm/index-BASCLGuP.js +1713 -0
- package/dist/esm/index-BFDJMblF.js +4690 -0
- package/dist/esm/index-CLwOzPEO.js +2161 -0
- package/dist/esm/index-CjR_4mPu.js +280 -0
- package/dist/esm/index-P1YnSd-O.js +5397 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/loader.js +3 -6
- package/dist/esm/responsive-component-BsLrcKbS.js +169 -0
- package/dist/esm/responsive-component-D7dJHMp0.js +169 -0
- package/dist/esm/swiper-CtypHPwF.js +3928 -0
- package/dist/esm/swiper-nBv069TB.js +3941 -0
- package/dist/esm/utils--SDsQnWS.js +460 -0
- package/dist/esm/utils-Bak__24s.js +280 -0
- package/dist/esm/utils-CYF5GU_q.js +438 -0
- package/dist/node_modules/video.js/dist/video-js.min.css +1 -0
- package/dist/test/axe.js +60 -0
- package/dist/types/Users/shahrukceo/Developer/content-blocks/packages/js/.stencil/test/axe.d.ts +16 -0
- package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +7 -11
- package/dist/types/blocks/content-split-block/content-split-block.d.ts +5 -9
- package/dist/types/blocks/content-text-block/content-text-block.d.ts +4 -9
- package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +5 -10
- package/dist/types/components/content-accordion/content-accordion.d.ts +4 -3
- package/dist/types/components/content-accordion/libraries/w3_disclosure_button.d.ts +0 -1
- package/dist/types/components/content-carousel/content-carousel.d.ts +44 -7
- package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +14 -8
- package/dist/types/components/content-overlay/content-overlay.d.ts +15 -16
- package/dist/types/components/content-overlay/libraries/aria-dialog.d.ts +0 -1
- package/dist/types/components/content-overlay/libraries/aria-utilities.d.ts +0 -1
- package/dist/types/components/content-tabs/content-tabs.d.ts +4 -10
- package/dist/types/components/content-tabs/libraries/w3_tabs.d.ts +0 -1
- package/dist/types/components.d.ts +892 -198
- package/dist/types/elements/content-button/content-button.d.ts +8 -13
- package/dist/types/elements/content-image/content-image.d.ts +15 -9
- package/dist/types/elements/content-line/content-line.d.ts +5 -12
- package/dist/types/elements/content-video/content-video.d.ts +6 -11
- package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +14 -9
- package/dist/types/formatters/content-spacer/content-spacer.d.ts +4 -36
- package/dist/types/index.d.ts +3 -1
- package/dist/types/setupFiles.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +265 -60
- package/dist/types/typings.d.ts +10 -0
- package/dist/types/utils/breakpoints.d.ts +57 -0
- package/dist/types/utils/responsive-component.d.ts +49 -0
- package/dist/types/utils/utils.d.ts +11 -8
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +74 -64
- package/dist/cjs/BehaviorSubject-12116537.js +0 -655
- package/dist/cjs/BehaviorSubject-12116537.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/content-accordion_11.cjs.entry.js.map +0 -1
- package/dist/cjs/content-blocks.cjs.js.map +0 -1
- package/dist/cjs/content-carousel.cjs.entry.js.map +0 -1
- package/dist/cjs/content-navigation-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-split-block.cjs.entry.js.map +0 -1
- package/dist/cjs/content-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/focus-trap.esm-7bc384a0.js.map +0 -1
- package/dist/cjs/index-2e0ce692.js.map +0 -1
- package/dist/cjs/index-8af2820a.js +0 -1650
- package/dist/cjs/index-8af2820a.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/swiper-8221f4e8.js.map +0 -1
- package/dist/cjs/utils-df044337.js.map +0 -1
- package/dist/cjs/utils-f8ccab0a.js +0 -126
- package/dist/cjs/utils-f8ccab0a.js.map +0 -1
- package/dist/cjs/window-resize-service-65a5a370.js +0 -37
- package/dist/cjs/window-resize-service-65a5a370.js.map +0 -1
- package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +0 -1
- package/dist/collection/blocks/content-split-block/content-split-block.js.map +0 -1
- package/dist/collection/blocks/content-text-block/content-text-block.js.map +0 -1
- package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +0 -1
- package/dist/collection/components/content-accordion/content-accordion.js.map +0 -1
- package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +0 -1
- package/dist/collection/components/content-carousel/content-carousel.js.map +0 -1
- package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +0 -1
- package/dist/collection/components/content-overlay/content-overlay.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +0 -1
- package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +0 -1
- package/dist/collection/components/content-tabs/content-tabs.js.map +0 -1
- package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +0 -1
- package/dist/collection/elements/content-button/content-button.js.map +0 -1
- package/dist/collection/elements/content-image/content-image.js.map +0 -1
- package/dist/collection/elements/content-line/content-line.js.map +0 -1
- package/dist/collection/elements/content-video/content-video.js.map +0 -1
- package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +0 -1
- package/dist/collection/formatters/content-spacer/content-spacer.js.map +0 -1
- package/dist/collection/globalScript.js +0 -15
- package/dist/collection/globalScript.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/content-events-service.js +0 -23
- package/dist/collection/services/content-events-service.js.map +0 -1
- package/dist/collection/services/window-resize-service.js +0 -31
- package/dist/collection/services/window-resize-service.js.map +0 -1
- package/dist/collection/setupFiles.js.map +0 -1
- package/dist/collection/stories/ContentHeroBlock.stories.js +0 -51
- package/dist/collection/stories/ContentHeroBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentNavigationBlock.stories.js +0 -33
- package/dist/collection/stories/ContentNavigationBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentSpacer.stories.js +0 -20
- package/dist/collection/stories/ContentSpacer.stories.js.map +0 -1
- package/dist/collection/stories/ContentTextBlock.stories.js +0 -17
- package/dist/collection/stories/ContentTextBlock.stories.js.map +0 -1
- package/dist/collection/stories/ContentToutBlock.stories.js +0 -17
- package/dist/collection/stories/ContentToutBlock.stories.js.map +0 -1
- package/dist/collection/stories/FullPageExample.stories.js +0 -432
- package/dist/collection/stories/FullPageExample.stories.js.map +0 -1
- package/dist/collection/stories/assets/accessibility.svg +0 -5
- package/dist/collection/stories/assets/discord.svg +0 -15
- package/dist/collection/stories/assets/github.svg +0 -3
- package/dist/collection/stories/assets/tutorials.svg +0 -12
- package/dist/collection/stories/assets/youtube.svg +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/content-accordion.js.map +0 -1
- package/dist/components/content-button.js.map +0 -1
- package/dist/components/content-carousel.js.map +0 -1
- package/dist/components/content-grid-formatter.js.map +0 -1
- package/dist/components/content-hero-block.js.map +0 -1
- package/dist/components/content-image.js.map +0 -1
- package/dist/components/content-line.js.map +0 -1
- package/dist/components/content-navigation-block.js.map +0 -1
- package/dist/components/content-overlay.js.map +0 -1
- package/dist/components/content-spacer.js.map +0 -1
- package/dist/components/content-split-block.js.map +0 -1
- package/dist/components/content-tabs.js.map +0 -1
- package/dist/components/content-text-block.js.map +0 -1
- package/dist/components/content-tout-block.js.map +0 -1
- package/dist/components/content-video.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-26483b46.js +0 -35
- package/dist/components/p-26483b46.js.map +0 -1
- package/dist/components/p-5a91aa1b.js.map +0 -1
- package/dist/components/p-74be971f.js +0 -652
- package/dist/components/p-74be971f.js.map +0 -1
- package/dist/components/p-7a436263.js +0 -122
- package/dist/components/p-7a436263.js.map +0 -1
- package/dist/components/p-a2fedf8a.js.map +0 -1
- package/dist/components/p-b85cfa86.js.map +0 -1
- package/dist/components/p-e28db040.js +0 -1452
- package/dist/components/p-e28db040.js.map +0 -1
- package/dist/components/p-e5dc4ea4.js.map +0 -1
- package/dist/components/p-e9bce2ab.js +0 -88
- package/dist/components/p-e9bce2ab.js.map +0 -1
- package/dist/content-blocks/content-blocks.esm.js.map +0 -1
- package/dist/content-blocks/index.esm.js.map +0 -1
- package/dist/content-blocks/p-13c3cc4f.js +0 -3
- package/dist/content-blocks/p-13c3cc4f.js.map +0 -1
- package/dist/content-blocks/p-398760b3.entry.js +0 -26
- package/dist/content-blocks/p-398760b3.entry.js.map +0 -1
- package/dist/content-blocks/p-5422c25b.entry.js +0 -2
- package/dist/content-blocks/p-5422c25b.entry.js.map +0 -1
- package/dist/content-blocks/p-5a91aa1b.js +0 -2
- package/dist/content-blocks/p-5a91aa1b.js.map +0 -1
- package/dist/content-blocks/p-650d1757.js +0 -2
- package/dist/content-blocks/p-650d1757.js.map +0 -1
- package/dist/content-blocks/p-74be971f.js +0 -2
- package/dist/content-blocks/p-74be971f.js.map +0 -1
- package/dist/content-blocks/p-a2fedf8a.js +0 -10
- package/dist/content-blocks/p-a2fedf8a.js.map +0 -1
- package/dist/content-blocks/p-b305392e.entry.js +0 -2
- package/dist/content-blocks/p-b305392e.entry.js.map +0 -1
- package/dist/content-blocks/p-b85cfa86.js +0 -2
- package/dist/content-blocks/p-b85cfa86.js.map +0 -1
- package/dist/content-blocks/p-cc7397cf.js +0 -2
- package/dist/content-blocks/p-cc7397cf.js.map +0 -1
- package/dist/content-blocks/p-d62775d7.entry.js +0 -2
- package/dist/content-blocks/p-d62775d7.entry.js.map +0 -1
- package/dist/content-blocks/p-e1255160.js +0 -2
- package/dist/content-blocks/p-e1255160.js.map +0 -1
- package/dist/content-blocks/p-e5dc4ea4.js +0 -2
- package/dist/content-blocks/p-e5dc4ea4.js.map +0 -1
- package/dist/content-blocks/p-f73f934a.entry.js +0 -2
- package/dist/content-blocks/p-f73f934a.entry.js.map +0 -1
- package/dist/esm/BehaviorSubject-f7a12fd8.js +0 -652
- package/dist/esm/BehaviorSubject-f7a12fd8.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/content-accordion_11.entry.js.map +0 -1
- package/dist/esm/content-blocks.js.map +0 -1
- package/dist/esm/content-carousel.entry.js.map +0 -1
- package/dist/esm/content-navigation-block.entry.js.map +0 -1
- package/dist/esm/content-split-block.entry.js.map +0 -1
- package/dist/esm/content-tabs.entry.js.map +0 -1
- package/dist/esm/focus-trap.esm-8fb54175.js.map +0 -1
- package/dist/esm/index-ec24af7a.js +0 -1621
- package/dist/esm/index-ec24af7a.js.map +0 -1
- package/dist/esm/index-f45a9c45.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/swiper-e9621adb.js.map +0 -1
- package/dist/esm/utils-1c9f0ec1.js.map +0 -1
- package/dist/esm/utils-9a901aa9.js +0 -122
- package/dist/esm/utils-9a901aa9.js.map +0 -1
- package/dist/esm/window-resize-service-354f2ac5.js +0 -35
- package/dist/esm/window-resize-service-354f2ac5.js.map +0 -1
- package/dist/types/globalScript.d.ts +0 -1
- package/dist/types/old-components.d.ts +0 -1239
- package/dist/types/services/content-events-service.d.ts +0 -11
- package/dist/types/services/window-resize-service.d.ts +0 -11
- package/dist/types/stories/ContentHeroBlock.stories.d.ts +0 -11
- package/dist/types/stories/ContentNavigationBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentSpacer.stories.d.ts +0 -15
- package/dist/types/stories/ContentTextBlock.stories.d.ts +0 -9
- package/dist/types/stories/ContentToutBlock.stories.d.ts +0 -9
- package/dist/types/stories/FullPageExample.stories.d.ts +0 -10
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
type CustomMethodDecorator<T> = (target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
2
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
3
|
+
type MixinInstance<F> = F extends (base: MixedInCtor) => MixedInCtor<infer I> ? I : never;
|
|
2
4
|
export interface ComponentDecorator {
|
|
3
5
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
6
|
}
|
|
@@ -61,6 +63,12 @@ export interface ShadowRootOptions {
|
|
|
61
63
|
* focusable part is given focus, and the shadow host is given any available `:focus` styling.
|
|
62
64
|
*/
|
|
63
65
|
delegatesFocus?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the slot assignment mode for the shadow root. When set to `'manual'`, enables imperative
|
|
68
|
+
* slotting using the `HTMLSlotElement.assign()` method. Defaults to `'named'` for standard
|
|
69
|
+
* declarative slotting behavior.
|
|
70
|
+
*/
|
|
71
|
+
slotAssignment?: 'manual' | 'named';
|
|
64
72
|
}
|
|
65
73
|
export interface ModeStyles {
|
|
66
74
|
[modeName: string]: string | string[];
|
|
@@ -117,12 +125,34 @@ export interface EventOptions {
|
|
|
117
125
|
*/
|
|
118
126
|
composed?: boolean;
|
|
119
127
|
}
|
|
128
|
+
export interface AttachInternalsOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Initial custom states to set on the ElementInternals.states CustomStateSet.
|
|
131
|
+
* Each key is the state name and the value is the initial boolean state.
|
|
132
|
+
*
|
|
133
|
+
* These states can be targeted with the CSS `:state()` pseudo-class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```tsx
|
|
137
|
+
* @AttachInternals({ states: { open: true, active: false } })
|
|
138
|
+
* internals: ElementInternals;
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
|
|
142
|
+
*/
|
|
143
|
+
states?: {
|
|
144
|
+
[stateName: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
120
147
|
export interface AttachInternalsDecorator {
|
|
121
|
-
(): PropertyDecorator;
|
|
148
|
+
(opts?: AttachInternalsOptions): PropertyDecorator;
|
|
122
149
|
}
|
|
123
150
|
export interface ListenDecorator {
|
|
124
151
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
125
152
|
}
|
|
153
|
+
export interface ResolveVarFunction {
|
|
154
|
+
<T>(variable: T): string;
|
|
155
|
+
}
|
|
126
156
|
export interface ListenOptions {
|
|
127
157
|
/**
|
|
128
158
|
* Handlers can also be registered for an event other than the host itself.
|
|
@@ -151,7 +181,15 @@ export interface StateDecorator {
|
|
|
151
181
|
(): PropertyDecorator;
|
|
152
182
|
}
|
|
153
183
|
export interface WatchDecorator {
|
|
154
|
-
(propName:
|
|
184
|
+
(propName: any, watchOptions?: {
|
|
185
|
+
immediate?: boolean;
|
|
186
|
+
}): CustomMethodDecorator<(newValue?: any, oldValue?: any, propName?: any, ...args: any[]) => any | void>;
|
|
187
|
+
}
|
|
188
|
+
export interface PropSerializeDecorator {
|
|
189
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => string | null>;
|
|
190
|
+
}
|
|
191
|
+
export interface AttrDeserializeDecorator {
|
|
192
|
+
(propName: any): CustomMethodDecorator<(newValue?: any, propName?: string, ...args: any[]) => any>;
|
|
155
193
|
}
|
|
156
194
|
export interface UserBuildConditionals {
|
|
157
195
|
isDev: boolean;
|
|
@@ -200,6 +238,24 @@ export declare const AttachInternals: AttachInternalsDecorator;
|
|
|
200
238
|
* https://stenciljs.com/docs/events#listen-decorator
|
|
201
239
|
*/
|
|
202
240
|
export declare const Listen: ListenDecorator;
|
|
241
|
+
/**
|
|
242
|
+
* The `resolveVar()` function is a compile-time utility that resolves const variables
|
|
243
|
+
* and object properties to their string literal values. This allows variables to be
|
|
244
|
+
* used in `@Listen` and `@Event` decorators instead of hardcoded strings.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* const MY_EVENT = 'myEvent';
|
|
249
|
+
* @Listen(resolveVar(MY_EVENT))
|
|
250
|
+
* ```
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* ```ts
|
|
254
|
+
* const EVENTS = { MY_EVENT: 'myEvent' } as const;
|
|
255
|
+
* @Event({ eventName: resolveVar(EVENTS.MY_EVENT) })
|
|
256
|
+
* ```
|
|
257
|
+
*/
|
|
258
|
+
export declare const resolveVar: ResolveVarFunction;
|
|
203
259
|
/**
|
|
204
260
|
* The `@Method()` decorator is used to expose methods on the public API.
|
|
205
261
|
* Class methods decorated with the @Method() decorator can be called directly
|
|
@@ -233,6 +289,14 @@ export declare const State: StateDecorator;
|
|
|
233
289
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
234
290
|
*/
|
|
235
291
|
export declare const Watch: WatchDecorator;
|
|
292
|
+
/**
|
|
293
|
+
* Decorator to serialize a property to an attribute string.
|
|
294
|
+
*/
|
|
295
|
+
export declare const PropSerialize: PropSerializeDecorator;
|
|
296
|
+
/**
|
|
297
|
+
* Decorator to deserialize an attribute string to a property.
|
|
298
|
+
*/
|
|
299
|
+
export declare const AttrDeserialize: AttrDeserializeDecorator;
|
|
236
300
|
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
237
301
|
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
238
302
|
/**
|
|
@@ -260,6 +324,25 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
260
324
|
* @returns the base path
|
|
261
325
|
*/
|
|
262
326
|
export declare function getAssetPath(path: string): string;
|
|
327
|
+
/**
|
|
328
|
+
* Method to render a virtual DOM tree to a container element.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```tsx
|
|
332
|
+
* import { render } from '@stencil/core';
|
|
333
|
+
*
|
|
334
|
+
* const vnode = (
|
|
335
|
+
* <div>
|
|
336
|
+
* <h1>Hello, world!</h1>
|
|
337
|
+
* </div>
|
|
338
|
+
* );
|
|
339
|
+
* render(vnode, document.body);
|
|
340
|
+
* ```
|
|
341
|
+
*
|
|
342
|
+
* @param vnode - The virtual DOM tree to render
|
|
343
|
+
* @param container - The container element to render the virtual DOM tree to
|
|
344
|
+
*/
|
|
345
|
+
export declare function render(vnode: VNode, container: Element): void;
|
|
263
346
|
/**
|
|
264
347
|
* Used to manually set the base path where assets can be found. For lazy-loaded
|
|
265
348
|
* builds the asset path is automatically set and assets copied to the correct
|
|
@@ -330,6 +413,58 @@ export declare function readTask(task: RafCallback): void;
|
|
|
330
413
|
* Unhandled exception raised while rendering, during event handling, or lifecycles will trigger the custom event handler.
|
|
331
414
|
*/
|
|
332
415
|
export declare const setErrorHandler: (handler: ErrorHandler) => void;
|
|
416
|
+
export type TagTransformer = (tag: string) => string;
|
|
417
|
+
/**
|
|
418
|
+
* Sets a tag transformer to be used when rendering your custom elements.
|
|
419
|
+
* ```ts
|
|
420
|
+
* setTagTransformer((tag) => {
|
|
421
|
+
* if (tag.startsWith('my-')) return `new-${tag}`
|
|
422
|
+
* return tag;
|
|
423
|
+
* });
|
|
424
|
+
* ```
|
|
425
|
+
* Will mean all your components that start with `my-` are defined instead with `new-my-` prefix.
|
|
426
|
+
*
|
|
427
|
+
* @param transformer the transformer function to use which must return a string.
|
|
428
|
+
*/
|
|
429
|
+
export declare function setTagTransformer(transformer: TagTransformer): void;
|
|
430
|
+
/**
|
|
431
|
+
* Transforms a tag name using a transformer set via `setTagTransformer`
|
|
432
|
+
*
|
|
433
|
+
* @param tag - the tag to transform e.g. `my-tag`
|
|
434
|
+
* @returns the transformed tag e.g. `new-my-tag`
|
|
435
|
+
*/
|
|
436
|
+
export declare function transformTag(tag: string): string;
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated - Use `MixedInCtor` instead:
|
|
439
|
+
* ```ts
|
|
440
|
+
* import { MixedInCtor } from '@stencil/core';
|
|
441
|
+
*
|
|
442
|
+
* const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
export type MixinFactory = (base: MixedInCtor) => MixedInCtor;
|
|
446
|
+
export type MixedInCtor<T = {}> = new (...args: any[]) => T;
|
|
447
|
+
/**
|
|
448
|
+
* Compose multiple mixin classes into a single constructor.
|
|
449
|
+
* The resulting class has the combined instance types of all mixed-in classes.
|
|
450
|
+
*
|
|
451
|
+
* Example:
|
|
452
|
+
* ```ts
|
|
453
|
+
* import { Mixin, MixedInCtor } from '@stencil/core';
|
|
454
|
+
*
|
|
455
|
+
* const AWrap = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
456
|
+
* const BWrap = <B extends MixedInCtor>(Base: B) => {class B extends Base { propB = B }; return B;}
|
|
457
|
+
* const CWrap = <B extends MixedInCtor>(Base: B) => {class C extends Base { propC = C }; return C;}
|
|
458
|
+
*
|
|
459
|
+
* class X extends Mixin(AWrap, BWrap, CWrap) {
|
|
460
|
+
* render() { return <div>{this.propA} {this.propB} {this.propC}</div>; }
|
|
461
|
+
* }
|
|
462
|
+
* ```
|
|
463
|
+
*
|
|
464
|
+
* @param mixinFactories mixin factory functions that return a class which extends from the provided class.
|
|
465
|
+
* @returns a class that is composed from extending each of the provided classes in the order they were provided.
|
|
466
|
+
*/
|
|
467
|
+
export declare function Mixin<const TMixins extends readonly MixinFactory[]>(...mixinFactories: TMixins): abstract new (...args: any[]) => UnionToIntersection<MixinInstance<TMixins[number]>>;
|
|
333
468
|
/**
|
|
334
469
|
* This file gets copied to all distributions of stencil component collections.
|
|
335
470
|
* - no imports
|
|
@@ -502,7 +637,7 @@ export interface FunctionalUtilities {
|
|
|
502
637
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
503
638
|
}
|
|
504
639
|
export interface FunctionalComponent<T = {}> {
|
|
505
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
640
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
|
|
506
641
|
}
|
|
507
642
|
/**
|
|
508
643
|
* A Child VDOM node
|
|
@@ -544,6 +679,7 @@ export declare namespace h {
|
|
|
544
679
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
545
680
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
546
681
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
+
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
547
683
|
namespace JSX {
|
|
548
684
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
549
685
|
[tagName: string]: any;
|
|
@@ -558,6 +694,36 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
558
694
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
559
695
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
560
696
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
697
|
+
export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
698
|
+
/**
|
|
699
|
+
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
700
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
701
|
+
* @param type type of node
|
|
702
|
+
* @param props properties of node
|
|
703
|
+
* @param key optional key for the node
|
|
704
|
+
* @returns a jsx vnode
|
|
705
|
+
*/
|
|
706
|
+
export declare function jsx(type: any, props: any, key?: string): VNode;
|
|
707
|
+
/**
|
|
708
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
|
|
709
|
+
* @param type type of node
|
|
710
|
+
* @param props properties of node
|
|
711
|
+
* @param key optional key for the node
|
|
712
|
+
* @returns a jsx vnode
|
|
713
|
+
*/
|
|
714
|
+
export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
715
|
+
/**
|
|
716
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
|
|
717
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
|
|
718
|
+
* @param type type of node
|
|
719
|
+
* @param props properties of node
|
|
720
|
+
* @param key optional key for the node
|
|
721
|
+
* @param isStaticChildren indicates if the children are static
|
|
722
|
+
* @param source source information
|
|
723
|
+
* @param self reference to the component instance
|
|
724
|
+
* @returns a jsx vnode
|
|
725
|
+
*/
|
|
726
|
+
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
561
727
|
/**
|
|
562
728
|
* A virtual DOM node
|
|
563
729
|
*/
|
|
@@ -586,8 +752,8 @@ declare namespace LocalJSX {
|
|
|
586
752
|
}
|
|
587
753
|
export { LocalJSX as JSX };
|
|
588
754
|
export declare namespace JSXBase {
|
|
589
|
-
interface IntrinsicElements {
|
|
590
|
-
slot: JSXBase.SlotAttributes
|
|
755
|
+
export interface IntrinsicElements {
|
|
756
|
+
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
591
757
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
592
758
|
abbr: JSXBase.HTMLAttributes;
|
|
593
759
|
address: JSXBase.HTMLAttributes;
|
|
@@ -757,12 +923,12 @@ export declare namespace JSXBase {
|
|
|
757
923
|
use: JSXBase.SVGAttributes;
|
|
758
924
|
view: JSXBase.SVGAttributes;
|
|
759
925
|
}
|
|
760
|
-
interface SlotAttributes extends JSXAttributes {
|
|
926
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
761
927
|
name?: string;
|
|
762
928
|
slot?: string;
|
|
763
929
|
onSlotchange?: (event: Event) => void;
|
|
764
930
|
}
|
|
765
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
931
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
766
932
|
download?: any;
|
|
767
933
|
href?: string;
|
|
768
934
|
hrefLang?: string;
|
|
@@ -773,9 +939,9 @@ export declare namespace JSXBase {
|
|
|
773
939
|
target?: string;
|
|
774
940
|
referrerPolicy?: ReferrerPolicy;
|
|
775
941
|
}
|
|
776
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
942
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
777
943
|
}
|
|
778
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
944
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
779
945
|
alt?: string;
|
|
780
946
|
coords?: string;
|
|
781
947
|
download?: any;
|
|
@@ -787,14 +953,14 @@ export declare namespace JSXBase {
|
|
|
787
953
|
shape?: string;
|
|
788
954
|
target?: string;
|
|
789
955
|
}
|
|
790
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
956
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
791
957
|
href?: string;
|
|
792
958
|
target?: string;
|
|
793
959
|
}
|
|
794
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
960
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
795
961
|
cite?: string;
|
|
796
962
|
}
|
|
797
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
963
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
798
964
|
disabled?: boolean;
|
|
799
965
|
form?: string;
|
|
800
966
|
formAction?: string;
|
|
@@ -813,44 +979,49 @@ export declare namespace JSXBase {
|
|
|
813
979
|
popoverTargetAction?: string;
|
|
814
980
|
popoverTargetElement?: Element | null;
|
|
815
981
|
popoverTarget?: string;
|
|
982
|
+
command?: string;
|
|
983
|
+
commandFor?: string;
|
|
984
|
+
commandfor?: string;
|
|
816
985
|
}
|
|
817
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
986
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
818
987
|
height?: number | string;
|
|
819
988
|
width?: number | string;
|
|
820
989
|
}
|
|
821
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
822
991
|
span?: number;
|
|
823
992
|
}
|
|
824
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
993
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
825
994
|
span?: number;
|
|
826
995
|
}
|
|
827
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
996
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
828
997
|
open?: boolean;
|
|
829
|
-
|
|
998
|
+
name?: string;
|
|
999
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
830
1000
|
}
|
|
831
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1001
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
832
1002
|
cite?: string;
|
|
833
1003
|
dateTime?: string;
|
|
834
1004
|
datetime?: string;
|
|
835
1005
|
}
|
|
836
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1006
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
837
1007
|
onCancel?: (event: Event) => void;
|
|
838
1008
|
onClose?: (event: Event) => void;
|
|
839
1009
|
open?: boolean;
|
|
840
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
841
1012
|
}
|
|
842
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
843
1014
|
height?: number | string;
|
|
844
1015
|
src?: string;
|
|
845
1016
|
type?: string;
|
|
846
1017
|
width?: number | string;
|
|
847
1018
|
}
|
|
848
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1019
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
849
1020
|
disabled?: boolean;
|
|
850
1021
|
form?: string;
|
|
851
1022
|
name?: string;
|
|
852
1023
|
}
|
|
853
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1024
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
854
1025
|
acceptCharset?: string;
|
|
855
1026
|
acceptcharset?: string;
|
|
856
1027
|
action?: string;
|
|
@@ -864,10 +1035,10 @@ export declare namespace JSXBase {
|
|
|
864
1035
|
novalidate?: boolean | string;
|
|
865
1036
|
target?: string;
|
|
866
1037
|
}
|
|
867
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1038
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
868
1039
|
manifest?: string;
|
|
869
1040
|
}
|
|
870
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1041
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
871
1042
|
allow?: string;
|
|
872
1043
|
allowFullScreen?: boolean;
|
|
873
1044
|
allowfullScreen?: string | boolean;
|
|
@@ -875,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
875
1046
|
allowtransparency?: string | boolean;
|
|
876
1047
|
frameBorder?: number | string;
|
|
877
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
878
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
879
1052
|
height?: number | string;
|
|
880
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -892,14 +1065,17 @@ export declare namespace JSXBase {
|
|
|
892
1065
|
srcdoc?: string;
|
|
893
1066
|
width?: number | string;
|
|
894
1067
|
}
|
|
895
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1068
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
896
1069
|
alt?: string;
|
|
897
1070
|
crossOrigin?: string;
|
|
898
1071
|
crossorigin?: string;
|
|
899
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
900
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
901
1076
|
height?: number | string;
|
|
902
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
1078
|
+
referrerPolicy?: ReferrerPolicy;
|
|
903
1079
|
sizes?: string;
|
|
904
1080
|
src?: string;
|
|
905
1081
|
srcSet?: string;
|
|
@@ -908,12 +1084,12 @@ export declare namespace JSXBase {
|
|
|
908
1084
|
usemap?: string;
|
|
909
1085
|
width?: number | string;
|
|
910
1086
|
}
|
|
911
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1087
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
912
1088
|
cite?: string;
|
|
913
1089
|
dateTime?: string;
|
|
914
1090
|
datetime?: string;
|
|
915
1091
|
}
|
|
916
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1092
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
917
1093
|
accept?: string;
|
|
918
1094
|
allowdirs?: boolean;
|
|
919
1095
|
alt?: string;
|
|
@@ -976,7 +1152,7 @@ export declare namespace JSXBase {
|
|
|
976
1152
|
popoverTargetElement?: Element | null;
|
|
977
1153
|
popoverTarget?: string;
|
|
978
1154
|
}
|
|
979
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1155
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
980
1156
|
challenge?: string;
|
|
981
1157
|
disabled?: boolean;
|
|
982
1158
|
form?: string;
|
|
@@ -986,15 +1162,17 @@ export declare namespace JSXBase {
|
|
|
986
1162
|
keyparams?: string;
|
|
987
1163
|
name?: string;
|
|
988
1164
|
}
|
|
989
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
1166
|
form?: string;
|
|
991
1167
|
htmlFor?: string;
|
|
992
1168
|
}
|
|
993
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1169
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
1170
|
value?: string | string[] | number;
|
|
995
1171
|
}
|
|
996
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1172
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
997
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
998
1176
|
href?: string;
|
|
999
1177
|
hrefLang?: string;
|
|
1000
1178
|
hreflang?: string;
|
|
@@ -1005,16 +1183,18 @@ export declare namespace JSXBase {
|
|
|
1005
1183
|
sizes?: string;
|
|
1006
1184
|
type?: string;
|
|
1007
1185
|
}
|
|
1008
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1186
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1009
1187
|
name?: string;
|
|
1010
1188
|
}
|
|
1011
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1189
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1012
1190
|
type?: string;
|
|
1013
1191
|
}
|
|
1014
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1192
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1015
1193
|
autoPlay?: boolean;
|
|
1016
1194
|
autoplay?: boolean | string;
|
|
1017
1195
|
controls?: boolean;
|
|
1196
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1197
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1018
1198
|
crossOrigin?: string;
|
|
1019
1199
|
crossorigin?: string;
|
|
1020
1200
|
loop?: boolean;
|
|
@@ -1049,7 +1229,7 @@ export declare namespace JSXBase {
|
|
|
1049
1229
|
onVolumeChange?: (event: Event) => void;
|
|
1050
1230
|
onWaiting?: (event: Event) => void;
|
|
1051
1231
|
}
|
|
1052
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1232
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1053
1233
|
charSet?: string;
|
|
1054
1234
|
charset?: string;
|
|
1055
1235
|
content?: string;
|
|
@@ -1057,7 +1237,7 @@ export declare namespace JSXBase {
|
|
|
1057
1237
|
httpequiv?: string;
|
|
1058
1238
|
name?: string;
|
|
1059
1239
|
}
|
|
1060
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1240
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1061
1241
|
form?: string;
|
|
1062
1242
|
high?: number;
|
|
1063
1243
|
low?: number;
|
|
@@ -1066,10 +1246,10 @@ export declare namespace JSXBase {
|
|
|
1066
1246
|
optimum?: number;
|
|
1067
1247
|
value?: string | string[] | number;
|
|
1068
1248
|
}
|
|
1069
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1249
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1070
1250
|
cite?: string;
|
|
1071
1251
|
}
|
|
1072
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1252
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1073
1253
|
classID?: string;
|
|
1074
1254
|
classid?: string;
|
|
1075
1255
|
data?: string;
|
|
@@ -1082,47 +1262,49 @@ export declare namespace JSXBase {
|
|
|
1082
1262
|
width?: number | string;
|
|
1083
1263
|
wmode?: string;
|
|
1084
1264
|
}
|
|
1085
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1265
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1086
1266
|
reversed?: boolean;
|
|
1087
1267
|
start?: number;
|
|
1088
1268
|
}
|
|
1089
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1269
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1090
1270
|
disabled?: boolean;
|
|
1091
1271
|
label?: string;
|
|
1092
1272
|
}
|
|
1093
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1273
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1094
1274
|
disabled?: boolean;
|
|
1095
1275
|
label?: string;
|
|
1096
1276
|
selected?: boolean;
|
|
1097
1277
|
value?: string | string[] | number;
|
|
1098
1278
|
}
|
|
1099
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1279
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1100
1280
|
form?: string;
|
|
1101
1281
|
htmlFor?: string;
|
|
1102
1282
|
name?: string;
|
|
1103
1283
|
}
|
|
1104
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1284
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1105
1285
|
name?: string;
|
|
1106
1286
|
value?: string | string[] | number;
|
|
1107
1287
|
}
|
|
1108
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1288
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1109
1289
|
max?: number | string;
|
|
1110
1290
|
value?: string | string[] | number;
|
|
1111
1291
|
}
|
|
1112
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1292
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1113
1293
|
async?: boolean;
|
|
1114
1294
|
charSet?: string;
|
|
1115
1295
|
charset?: string;
|
|
1116
1296
|
crossOrigin?: string;
|
|
1117
1297
|
crossorigin?: string;
|
|
1118
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1119
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1120
1302
|
integrity?: string;
|
|
1121
1303
|
nonce?: string;
|
|
1122
1304
|
src?: string;
|
|
1123
1305
|
type?: string;
|
|
1124
1306
|
}
|
|
1125
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1307
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1126
1308
|
disabled?: boolean;
|
|
1127
1309
|
form?: string;
|
|
1128
1310
|
multiple?: boolean;
|
|
@@ -1132,7 +1314,7 @@ export declare namespace JSXBase {
|
|
|
1132
1314
|
autoComplete?: string;
|
|
1133
1315
|
autocomplete?: string;
|
|
1134
1316
|
}
|
|
1135
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1317
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1136
1318
|
height?: number;
|
|
1137
1319
|
media?: string;
|
|
1138
1320
|
sizes?: string;
|
|
@@ -1141,20 +1323,20 @@ export declare namespace JSXBase {
|
|
|
1141
1323
|
type?: string;
|
|
1142
1324
|
width?: number;
|
|
1143
1325
|
}
|
|
1144
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1326
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1145
1327
|
media?: string;
|
|
1146
1328
|
nonce?: string;
|
|
1147
1329
|
scoped?: boolean;
|
|
1148
1330
|
type?: string;
|
|
1149
1331
|
}
|
|
1150
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1332
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1151
1333
|
cellPadding?: number | string;
|
|
1152
1334
|
cellpadding?: number | string;
|
|
1153
1335
|
cellSpacing?: number | string;
|
|
1154
1336
|
cellspacing?: number | string;
|
|
1155
1337
|
summary?: string;
|
|
1156
1338
|
}
|
|
1157
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1339
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1158
1340
|
autoComplete?: string;
|
|
1159
1341
|
autocomplete?: string;
|
|
1160
1342
|
cols?: number;
|
|
@@ -1175,12 +1357,12 @@ export declare namespace JSXBase {
|
|
|
1175
1357
|
value?: string | string[] | number;
|
|
1176
1358
|
wrap?: string;
|
|
1177
1359
|
}
|
|
1178
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1360
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1179
1361
|
colSpan?: number;
|
|
1180
1362
|
headers?: string;
|
|
1181
1363
|
rowSpan?: number;
|
|
1182
1364
|
}
|
|
1183
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1365
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1184
1366
|
abbr?: string;
|
|
1185
1367
|
colSpan?: number;
|
|
1186
1368
|
headers?: string;
|
|
@@ -1188,10 +1370,10 @@ export declare namespace JSXBase {
|
|
|
1188
1370
|
rowspan?: number | string;
|
|
1189
1371
|
scope?: string;
|
|
1190
1372
|
}
|
|
1191
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1373
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1192
1374
|
dateTime?: string;
|
|
1193
1375
|
}
|
|
1194
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1376
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1195
1377
|
default?: boolean;
|
|
1196
1378
|
kind?: string;
|
|
1197
1379
|
label?: string;
|
|
@@ -1199,14 +1381,14 @@ export declare namespace JSXBase {
|
|
|
1199
1381
|
srcLang?: string;
|
|
1200
1382
|
srclang?: string;
|
|
1201
1383
|
}
|
|
1202
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1384
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1203
1385
|
height?: number | string;
|
|
1204
1386
|
playsInline?: boolean;
|
|
1205
1387
|
playsinline?: boolean | string;
|
|
1206
1388
|
poster?: string;
|
|
1207
1389
|
width?: number | string;
|
|
1208
1390
|
}
|
|
1209
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1391
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1210
1392
|
innerHTML?: string;
|
|
1211
1393
|
accessKey?: string;
|
|
1212
1394
|
autoFocus?: boolean;
|
|
@@ -1231,7 +1413,10 @@ export declare namespace JSXBase {
|
|
|
1231
1413
|
tabIndex?: number;
|
|
1232
1414
|
tabindex?: number | string;
|
|
1233
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1234
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1419
|
+
focusgroupstart?: boolean;
|
|
1235
1420
|
inputMode?: string;
|
|
1236
1421
|
inputmode?: string;
|
|
1237
1422
|
enterKeyHint?: string;
|
|
@@ -1269,7 +1454,7 @@ export declare namespace JSXBase {
|
|
|
1269
1454
|
security?: string;
|
|
1270
1455
|
unselectable?: boolean;
|
|
1271
1456
|
}
|
|
1272
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1457
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1273
1458
|
class?: string | {
|
|
1274
1459
|
[className: string]: boolean;
|
|
1275
1460
|
};
|
|
@@ -1530,7 +1715,20 @@ export declare namespace JSXBase {
|
|
|
1530
1715
|
z?: number | string;
|
|
1531
1716
|
zoomAndPan?: string;
|
|
1532
1717
|
}
|
|
1533
|
-
|
|
1718
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1719
|
+
export interface ToggleEvent extends Event {
|
|
1720
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1721
|
+
readonly newState: string;
|
|
1722
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1723
|
+
readonly oldState: string;
|
|
1724
|
+
}
|
|
1725
|
+
type AriaIDLPropertyName = {
|
|
1726
|
+
[K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never;
|
|
1727
|
+
}[keyof ARIAMixin];
|
|
1728
|
+
type JSXAriaProperties = {
|
|
1729
|
+
[K in AriaIDLPropertyName]?: string | boolean | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1534
1732
|
slot?: string;
|
|
1535
1733
|
part?: string;
|
|
1536
1734
|
exportparts?: string;
|
|
@@ -1546,6 +1744,10 @@ export declare namespace JSXBase {
|
|
|
1546
1744
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1547
1745
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1548
1746
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1747
|
+
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1748
|
+
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1749
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
1750
|
+
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1549
1751
|
onFocus?: (event: FocusEvent) => void;
|
|
1550
1752
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1551
1753
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1575,7 +1777,7 @@ export declare namespace JSXBase {
|
|
|
1575
1777
|
onKeyUp?: (event: KeyboardEvent) => void;
|
|
1576
1778
|
onKeyUpCapture?: (event: KeyboardEvent) => void;
|
|
1577
1779
|
onAuxClick?: (event: MouseEvent) => void;
|
|
1578
|
-
onClick?: (event:
|
|
1780
|
+
onClick?: (event: PointerEvent) => void;
|
|
1579
1781
|
onClickCapture?: (event: MouseEvent) => void;
|
|
1580
1782
|
onContextMenu?: (event: MouseEvent) => void;
|
|
1581
1783
|
onContextMenuCapture?: (event: MouseEvent) => void;
|
|
@@ -1655,7 +1857,9 @@ export declare namespace JSXBase {
|
|
|
1655
1857
|
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1656
1858
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1657
1859
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1860
|
+
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1658
1861
|
}
|
|
1862
|
+
export {};
|
|
1659
1863
|
}
|
|
1660
1864
|
export interface JSXAttributes<T = Element> {
|
|
1661
1865
|
key?: string | number;
|
|
@@ -1665,6 +1869,7 @@ export interface CustomElementsDefineOptions {
|
|
|
1665
1869
|
exclude?: string[];
|
|
1666
1870
|
resourcesUrl?: string;
|
|
1667
1871
|
syncQueue?: boolean;
|
|
1872
|
+
/** @deprecated in-favour of `setTagTransformer` and `transformTag` */
|
|
1668
1873
|
transformTagName?: (tagName: string) => string;
|
|
1669
1874
|
jmp?: (c: Function) => any;
|
|
1670
1875
|
raf?: (c: FrameRequestCallback) => number;
|