@carbon/ibmdotcom-web-components 1.37.0-rc.2 → 1.37.0-rc.3
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/custom-elements.json +141 -115
- package/dist/{20-d59d1252.js → 20-2de9f146.js} +8 -1
- package/dist/{20-0dd18a2a.js → 20-3aa01aab.js} +8 -1
- package/dist/{20-b13a7263.js → 20-654642bf.js} +8 -1
- package/dist/{20-db62d123.js → 20-e1b84375.js} +8 -1
- package/dist/cloud-masthead.js +55 -24
- package/dist/cloud-masthead.min.js +10 -3
- package/dist/cloud-masthead.rtl.js +55 -24
- package/dist/cloud-masthead.rtl.min.js +10 -3
- package/dist/dotcom-shell.js +9 -2
- package/dist/dotcom-shell.min.js +8 -1
- package/dist/dotcom-shell.rtl.js +9 -2
- package/dist/dotcom-shell.rtl.min.js +8 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +252 -170
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +27 -12
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +252 -170
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +27 -12
- package/dist/{left-nav-menu-e3475c54.js → left-nav-menu-0c606dc0.js} +8 -1
- package/dist/{left-nav-menu-9c991783.js → left-nav-menu-90492b23.js} +8 -1
- package/dist/{left-nav-menu-category-heading-f30c16b2.js → left-nav-menu-category-heading-3965c098.js} +8 -1
- package/dist/{left-nav-menu-category-heading-c408c797.js → left-nav-menu-category-heading-a1595fbe.js} +8 -1
- package/dist/{left-nav-menu-category-heading-c11a1c5a.js → left-nav-menu-category-heading-d4fb11a9.js} +8 -1
- package/dist/{left-nav-menu-category-heading-ea722d76.js → left-nav-menu-category-heading-decd4d83.js} +8 -1
- package/dist/{left-nav-menu-4d9029d3.js → left-nav-menu-ebbabdeb.js} +8 -1
- package/dist/{left-nav-menu-f949a3fc.js → left-nav-menu-fb76056e.js} +9 -2
- package/dist/left-nav-menu-item-0c324d91.js +78 -0
- package/dist/left-nav-menu-item-28c4baae.js +78 -0
- package/dist/{left-nav-menu-item-0c593619.js → left-nav-menu-item-b9ed3af7.js} +17 -1
- package/dist/{left-nav-menu-item-7a695a3a.js → left-nav-menu-item-d51991fb.js} +17 -1
- package/dist/{left-nav-menu-section-2b27f90c.js → left-nav-menu-section-104b952b.js} +9 -2
- package/dist/{left-nav-menu-section-9580fed9.js → left-nav-menu-section-35756914.js} +9 -2
- package/dist/{left-nav-menu-section-70361e96.js → left-nav-menu-section-7f96cd92.js} +8 -1
- package/dist/{left-nav-menu-section-723dabdb.js → left-nav-menu-section-ca7e49e9.js} +8 -1
- package/dist/{left-nav-overlay-23420664.js → left-nav-overlay-789e2c5b.js} +8 -1
- package/dist/{left-nav-overlay-4369f445.js → left-nav-overlay-84b5801a.js} +8 -1
- package/dist/{left-nav-overlay-213a2b93.js → left-nav-overlay-85a8a0da.js} +8 -1
- package/dist/{left-nav-overlay-39841e5b.js → left-nav-overlay-c549e901.js} +8 -1
- package/dist/{masthead-composite-306b9aa2.js → masthead-composite-0c8215ba.js} +25 -18
- package/dist/{masthead-composite-7be5e44a.js → masthead-composite-6e631d9f.js} +14 -7
- package/dist/{masthead-composite-549e469b.js → masthead-composite-728fb184.js} +335 -320
- package/dist/{masthead-composite-dfe1f02c.js → masthead-composite-e2535116.js} +335 -320
- package/dist/{megamenu-category-group-04d4c7b5.js → megamenu-category-group-18797750.js} +8 -1
- package/dist/{megamenu-category-group-72763c53.js → megamenu-category-group-6e7f9786.js} +8 -1
- package/dist/{megamenu-category-group-d91eb27d.js → megamenu-category-group-8a288ad7.js} +8 -1
- package/dist/{megamenu-category-group-ec20f1c0.js → megamenu-category-group-9778e30d.js} +8 -1
- package/dist/{megamenu-category-group-copy-b2e1f3b8.js → megamenu-category-group-copy-37aede70.js} +8 -1
- package/dist/{megamenu-category-group-copy-1734a927.js → megamenu-category-group-copy-70515553.js} +8 -1
- package/dist/{megamenu-category-group-copy-b388d655.js → megamenu-category-group-copy-7cc21eda.js} +8 -1
- package/dist/{megamenu-category-group-copy-f1dc57da.js → megamenu-category-group-copy-850e36c3.js} +8 -1
- package/dist/{megamenu-category-link-baa8ed55.js → megamenu-category-link-2161aebd.js} +8 -1
- package/dist/{megamenu-category-link-f7b52727.js → megamenu-category-link-46980387.js} +8 -1
- package/dist/{megamenu-category-link-43f181fe.js → megamenu-category-link-6eb6cb7d.js} +8 -1
- package/dist/{megamenu-category-link-7cdcb4db.js → megamenu-category-link-cb061552.js} +8 -1
- package/dist/{megamenu-left-navigation-024c2f3d.js → megamenu-left-navigation-21c9dd45.js} +8 -1
- package/dist/{megamenu-left-navigation-02cf4776.js → megamenu-left-navigation-7decd28c.js} +8 -1
- package/dist/{megamenu-left-navigation-c5935038.js → megamenu-left-navigation-86f2cf88.js} +8 -1
- package/dist/{megamenu-left-navigation-47ca8cc9.js → megamenu-left-navigation-d3e95498.js} +8 -1
- package/dist/{megamenu-overlay-02fda241.js → megamenu-overlay-01a8f76f.js} +8 -1
- package/dist/{megamenu-overlay-915d9eae.js → megamenu-overlay-1de034cf.js} +8 -1
- package/dist/{megamenu-overlay-2065230d.js → megamenu-overlay-96dbeb3f.js} +8 -1
- package/dist/{megamenu-overlay-f9f8e94a.js → megamenu-overlay-caa12c62.js} +8 -1
- package/es/component-mixins/callout/callout.js +1 -2
- package/es/component-mixins/callout/callout.js.map +1 -1
- package/es/component-mixins/cta/cta.js +4 -8
- package/es/component-mixins/cta/cta.js.map +1 -1
- package/es/component-mixins/cta/video.js +2 -4
- package/es/component-mixins/cta/video.js.map +1 -1
- package/es/component-mixins/media-query/media-query.js +1 -4
- package/es/component-mixins/media-query/media-query.js.map +1 -1
- package/es/component-mixins/parent-visibility/parent-visibility.js +3 -4
- package/es/component-mixins/parent-visibility/parent-visibility.js.map +1 -1
- package/es/components/back-to-top/__stories__/data/content.js +2 -4
- package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
- package/es/components/back-to-top/back-to-top.js +1 -2
- package/es/components/back-to-top/back-to-top.js.map +1 -1
- package/es/components/background-media/background-media.js +4 -5
- package/es/components/background-media/background-media.js.map +1 -1
- package/es/components/background-media/defs.js +0 -2
- package/es/components/background-media/defs.js.map +1 -1
- package/es/components/button/button.js +1 -2
- package/es/components/button/button.js.map +1 -1
- package/es/components/button/defs.js +0 -3
- package/es/components/button/defs.js.map +1 -1
- package/es/components/button-group/button-group-item.js +1 -2
- package/es/components/button-group/button-group-item.js.map +1 -1
- package/es/components/button-group/button-group.js +1 -2
- package/es/components/button-group/button-group.js.map +1 -1
- package/es/components/callout-quote/callout-link-with-icon.js +1 -2
- package/es/components/callout-quote/callout-link-with-icon.js.map +1 -1
- package/es/components/callout-quote/callout-quote.js +1 -2
- package/es/components/callout-quote/callout-quote.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-copy.js +1 -2
- package/es/components/callout-with-media/callout-with-media-copy.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-image.js +1 -2
- package/es/components/callout-with-media/callout-with-media-image.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media-video.js +1 -2
- package/es/components/callout-with-media/callout-with-media-video.js.map +1 -1
- package/es/components/callout-with-media/callout-with-media.js +1 -2
- package/es/components/callout-with-media/callout-with-media.js.map +1 -1
- package/es/components/card/card-eyebrow.js +1 -2
- package/es/components/card/card-eyebrow.js.map +1 -1
- package/es/components/card/card-footer.js +7 -8
- package/es/components/card/card-footer.js.map +1 -1
- package/es/components/card/card-heading.js +1 -2
- package/es/components/card/card-heading.js.map +1 -1
- package/es/components/card/card.js +2 -3
- package/es/components/card/card.js.map +1 -1
- package/es/components/card/defs.js +1 -3
- package/es/components/card/defs.js.map +1 -1
- package/es/components/card/image-logo.js +1 -2
- package/es/components/card/image-logo.js.map +1 -1
- package/es/components/card-group/card-group-card-link-item.js +1 -2
- package/es/components/card-group/card-group-card-link-item.js.map +1 -1
- package/es/components/card-group/card-group-item.js +1 -2
- package/es/components/card-group/card-group-item.js.map +1 -1
- package/es/components/card-group/card-group.js +3 -4
- package/es/components/card-group/card-group.js.map +1 -1
- package/es/components/card-group/defs.js +0 -1
- package/es/components/card-group/defs.js.map +1 -1
- package/es/components/card-in-card/card-in-card-image.js +1 -2
- package/es/components/card-in-card/card-in-card-image.js.map +1 -1
- package/es/components/card-in-card/card-in-card.js +6 -9
- package/es/components/card-in-card/card-in-card.js.map +1 -1
- package/es/components/card-link/card-link-heading.js +1 -2
- package/es/components/card-link/card-link-heading.js.map +1 -1
- package/es/components/card-link/card-link.js +1 -2
- package/es/components/card-link/card-link.js.map +1 -1
- package/es/components/card-section-carousel/card-section-carousel.js +1 -2
- package/es/components/card-section-carousel/card-section-carousel.js.map +1 -1
- package/es/components/card-section-images/card-section-images.js +1 -2
- package/es/components/card-section-images/card-section-images.js.map +1 -1
- package/es/components/card-section-offset/card-section-offset.js +1 -2
- package/es/components/card-section-offset/card-section-offset.js.map +1 -1
- package/es/components/card-section-simple/card-section-simple.js +1 -2
- package/es/components/card-section-simple/card-section-simple.js.map +1 -1
- package/es/components/carousel/carousel.js +6 -7
- package/es/components/carousel/carousel.js.map +1 -1
- package/es/components/content-block/content-block-complementary.js +1 -2
- package/es/components/content-block/content-block-complementary.js.map +1 -1
- package/es/components/content-block/content-block-copy.js +1 -2
- package/es/components/content-block/content-block-copy.js.map +1 -1
- package/es/components/content-block/content-block-heading.js +1 -2
- package/es/components/content-block/content-block-heading.js.map +1 -1
- package/es/components/content-block/content-block-paragraph.js +1 -2
- package/es/components/content-block/content-block-paragraph.js.map +1 -1
- package/es/components/content-block/content-block.js +1 -2
- package/es/components/content-block/content-block.js.map +1 -1
- package/es/components/content-block/defs.js +0 -2
- package/es/components/content-block/defs.js.map +1 -1
- package/es/components/content-block-card-static/content-block-card-static.js +2 -3
- package/es/components/content-block-card-static/content-block-card-static.js.map +1 -1
- package/es/components/content-block-cards/content-block-cards.js +1 -2
- package/es/components/content-block-cards/content-block-cards.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines-heading.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines-heading.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines-item.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines-item.js.map +1 -1
- package/es/components/content-block-headlines/content-block-headlines.js +1 -2
- package/es/components/content-block-headlines/content-block-headlines.js.map +1 -1
- package/es/components/content-block-horizontal/content-block-horizontal.js +1 -2
- package/es/components/content-block-horizontal/content-block-horizontal.js.map +1 -1
- package/es/components/content-block-media/content-block-media-content.js +1 -2
- package/es/components/content-block-media/content-block-media-content.js.map +1 -1
- package/es/components/content-block-media/content-block-media.js +1 -2
- package/es/components/content-block-media/content-block-media.js.map +1 -1
- package/es/components/content-block-mixed/content-block-mixed.js +1 -2
- package/es/components/content-block-mixed/content-block-mixed.js.map +1 -1
- package/es/components/content-block-segmented/content-block-segmented-item.js +1 -2
- package/es/components/content-block-segmented/content-block-segmented-item.js.map +1 -1
- package/es/components/content-block-segmented/content-block-segmented.js +3 -4
- package/es/components/content-block-segmented/content-block-segmented.js.map +1 -1
- package/es/components/content-block-simple/content-block-simple.css.js +1 -1
- package/es/components/content-block-simple/content-block-simple.js +1 -2
- package/es/components/content-block-simple/content-block-simple.js.map +1 -1
- package/es/components/content-block-simple/content-block-simple.rtl.css.js +1 -1
- package/es/components/content-group/content-group-copy.js +1 -2
- package/es/components/content-group/content-group-copy.js.map +1 -1
- package/es/components/content-group/content-group-heading.js +1 -2
- package/es/components/content-group/content-group-heading.js.map +1 -1
- package/es/components/content-group/content-group-paragraph.js +1 -2
- package/es/components/content-group/content-group-paragraph.js.map +1 -1
- package/es/components/content-group/content-group.js +1 -2
- package/es/components/content-group/content-group.js.map +1 -1
- package/es/components/content-group-banner/content-group-banner.js +1 -2
- package/es/components/content-group-banner/content-group-banner.js.map +1 -1
- package/es/components/content-group-cards/content-group-cards-item.js +1 -2
- package/es/components/content-group-cards/content-group-cards-item.js.map +1 -1
- package/es/components/content-group-cards/content-group-cards.js +1 -2
- package/es/components/content-group-cards/content-group-cards.js.map +1 -1
- package/es/components/content-group-horizontal/content-group-horizontal.js +1 -2
- package/es/components/content-group-horizontal/content-group-horizontal.js.map +1 -1
- package/es/components/content-group-pictograms/content-group-pictograms.js +1 -2
- package/es/components/content-group-pictograms/content-group-pictograms.js.map +1 -1
- package/es/components/content-group-simple/content-group-simple.js +1 -2
- package/es/components/content-group-simple/content-group-simple.js.map +1 -1
- package/es/components/content-group-simple/defs.js +0 -1
- package/es/components/content-group-simple/defs.js.map +1 -1
- package/es/components/content-item/content-item-copy.js +1 -2
- package/es/components/content-item/content-item-copy.js.map +1 -1
- package/es/components/content-item/content-item-heading.js +1 -2
- package/es/components/content-item/content-item-heading.js.map +1 -1
- package/es/components/content-item/content-item-paragraph.js +1 -2
- package/es/components/content-item/content-item-paragraph.js.map +1 -1
- package/es/components/content-item/content-item.js +1 -2
- package/es/components/content-item/content-item.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-eyebrow.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-featured.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media-video.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media-video.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal-thumbnail-copy.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal.js +1 -2
- package/es/components/content-item-horizontal/content-item-horizontal.js.map +1 -1
- package/es/components/content-item-horizontal/defs.js +0 -2
- package/es/components/content-item-horizontal/defs.js.map +1 -1
- package/es/components/content-section/content-section-copy.js +2 -3
- package/es/components/content-section/content-section-copy.js.map +1 -1
- package/es/components/content-section/content-section-heading.js +1 -2
- package/es/components/content-section/content-section-heading.js.map +1 -1
- package/es/components/content-section/content-section.js +1 -2
- package/es/components/content-section/content-section.js.map +1 -1
- package/es/components/cta/button-cta.js +1 -2
- package/es/components/cta/button-cta.js.map +1 -1
- package/es/components/cta/card-cta-footer.js +1 -2
- package/es/components/cta/card-cta-footer.js.map +1 -1
- package/es/components/cta/card-cta-image.js +1 -2
- package/es/components/cta/card-cta-image.js.map +1 -1
- package/es/components/cta/card-cta.js +1 -2
- package/es/components/cta/card-cta.js.map +1 -1
- package/es/components/cta/card-link-cta.js +1 -2
- package/es/components/cta/card-link-cta.js.map +1 -1
- package/es/components/cta/cta.js +5 -6
- package/es/components/cta/cta.js.map +1 -1
- package/es/components/cta/defs.js +0 -2
- package/es/components/cta/defs.js.map +1 -1
- package/es/components/cta/feature-cta-footer.js +1 -2
- package/es/components/cta/feature-cta-footer.js.map +1 -1
- package/es/components/cta/feature-cta.js +1 -2
- package/es/components/cta/feature-cta.js.map +1 -1
- package/es/components/cta/link-list-item-card-cta.js +1 -2
- package/es/components/cta/link-list-item-card-cta.js.map +1 -1
- package/es/components/cta/link-list-item-cta.js +1 -2
- package/es/components/cta/link-list-item-cta.js.map +1 -1
- package/es/components/cta/text-cta.js +1 -2
- package/es/components/cta/text-cta.js.map +1 -1
- package/es/components/cta/video-cta-composite.d.ts +1 -0
- package/es/components/cta/video-cta-composite.d.ts.map +1 -1
- package/es/components/cta/video-cta-composite.js +2 -3
- package/es/components/cta/video-cta-composite.js.map +1 -1
- package/es/components/cta/video-cta-container.js +1 -2
- package/es/components/cta/video-cta-container.js.map +1 -1
- package/es/components/cta-block/cta-block-item-row.js +1 -2
- package/es/components/cta-block/cta-block-item-row.js.map +1 -1
- package/es/components/cta-block/cta-block-item.js +1 -2
- package/es/components/cta-block/cta-block-item.js.map +1 -1
- package/es/components/cta-block/cta-block.js +2 -3
- package/es/components/cta-block/cta-block.js.map +1 -1
- package/es/components/cta-section/cta-section.js +1 -2
- package/es/components/cta-section/cta-section.js.map +1 -1
- package/es/components/dotcom-shell/__stories__/data/content.js +12 -24
- package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
- package/es/components/dotcom-shell/dotcom-shell-composite.d.ts.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-composite.js +5 -21
- package/es/components/dotcom-shell/dotcom-shell-composite.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell-container.js +17 -18
- package/es/components/dotcom-shell/dotcom-shell-container.js.map +1 -1
- package/es/components/dotcom-shell/dotcom-shell.js +1 -2
- package/es/components/dotcom-shell/dotcom-shell.js.map +1 -1
- package/es/components/expressive-modal/defs.js +0 -2
- package/es/components/expressive-modal/defs.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-body.js +1 -2
- package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.js +1 -2
- package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.js +1 -2
- package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-header.js +1 -2
- package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.js +1 -2
- package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal.js +7 -8
- package/es/components/expressive-modal/expressive-modal.js.map +1 -1
- package/es/components/feature-card/feature-card-footer.js +1 -2
- package/es/components/feature-card/feature-card-footer.js.map +1 -1
- package/es/components/feature-card/feature-card.js +1 -2
- package/es/components/feature-card/feature-card.js.map +1 -1
- package/es/components/feature-card-block-large/feature-card-block-large-footer.js +1 -2
- package/es/components/feature-card-block-large/feature-card-block-large-footer.js.map +1 -1
- package/es/components/feature-card-block-large/feature-card-block-large.js +1 -2
- package/es/components/feature-card-block-large/feature-card-block-large.js.map +1 -1
- package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js +1 -2
- package/es/components/feature-card-block-medium/feature-card-block-medium-block-heading.js.map +1 -1
- package/es/components/feature-card-block-medium/feature-card-block-medium.js +1 -2
- package/es/components/feature-card-block-medium/feature-card-block-medium.js.map +1 -1
- package/es/components/feature-section/defs.js +0 -1
- package/es/components/feature-section/defs.js.map +1 -1
- package/es/components/feature-section/feature-section-card-link.js +1 -2
- package/es/components/feature-section/feature-section-card-link.js.map +1 -1
- package/es/components/feature-section/feature-section.js +1 -2
- package/es/components/feature-section/feature-section.js.map +1 -1
- package/es/components/filter-panel/filter-group-item.js +1 -2
- package/es/components/filter-panel/filter-group-item.js.map +1 -1
- package/es/components/filter-panel/filter-group.js +1 -2
- package/es/components/filter-panel/filter-group.js.map +1 -1
- package/es/components/filter-panel/filter-modal-button.js +1 -2
- package/es/components/filter-panel/filter-modal-button.js.map +1 -1
- package/es/components/filter-panel/filter-modal-footer.js +1 -2
- package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
- package/es/components/filter-panel/filter-modal-heading.js +1 -2
- package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
- package/es/components/filter-panel/filter-panel-checkbox.js +1 -2
- package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.d.ts +366 -35
- package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.js +99 -84
- package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
- package/es/components/filter-panel/filter-panel-heading.js +1 -2
- package/es/components/filter-panel/filter-panel-heading.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts +4 -0
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.js +12 -2
- package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select.js +3 -4
- package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
- package/es/components/filter-panel/filter-panel-modal.js +1 -2
- package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
- package/es/components/filter-panel/filter-panel.css.js +1 -1
- package/es/components/filter-panel/filter-panel.js +1 -2
- package/es/components/filter-panel/filter-panel.js.map +1 -1
- package/es/components/filter-panel/filter-panel.rtl.css.js +1 -1
- package/es/components/footer/combo-box.d.ts +2 -2
- package/es/components/footer/combo-box.d.ts.map +1 -1
- package/es/components/footer/combo-box.js +6 -6
- package/es/components/footer/combo-box.js.map +1 -1
- package/es/components/footer/defs.js +1 -7
- package/es/components/footer/defs.js.map +1 -1
- package/es/components/footer/dropdown.js +1 -2
- package/es/components/footer/dropdown.js.map +1 -1
- package/es/components/footer/footer-composite.d.ts +13 -17
- package/es/components/footer/footer-composite.d.ts.map +1 -1
- package/es/components/footer/footer-composite.js +79 -48
- package/es/components/footer/footer-composite.js.map +1 -1
- package/es/components/footer/footer-container.js +3 -4
- package/es/components/footer/footer-container.js.map +1 -1
- package/es/components/footer/footer-logo.js +1 -2
- package/es/components/footer/footer-logo.js.map +1 -1
- package/es/components/footer/footer-nav-group.js +3 -4
- package/es/components/footer/footer-nav-group.js.map +1 -1
- package/es/components/footer/footer-nav-item.js +1 -2
- package/es/components/footer/footer-nav-item.js.map +1 -1
- package/es/components/footer/footer-nav.js +1 -2
- package/es/components/footer/footer-nav.js.map +1 -1
- package/es/components/footer/footer.js +1 -2
- package/es/components/footer/footer.js.map +1 -1
- package/es/components/footer/language-selector-desktop.d.ts +367 -0
- package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
- package/es/components/footer/language-selector-desktop.js +2 -5
- package/es/components/footer/language-selector-desktop.js.map +1 -1
- package/es/components/footer/language-selector-mobile.d.ts +14 -0
- package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
- package/es/components/footer/language-selector-mobile.js +1 -3
- package/es/components/footer/language-selector-mobile.js.map +1 -1
- package/es/components/footer/legal-nav-cookie-preferences-placeholder.js +1 -2
- package/es/components/footer/legal-nav-cookie-preferences-placeholder.js.map +1 -1
- package/es/components/footer/legal-nav-item.js +1 -2
- package/es/components/footer/legal-nav-item.js.map +1 -1
- package/es/components/footer/legal-nav.js +1 -2
- package/es/components/footer/legal-nav.js.map +1 -1
- package/es/components/footer/locale-button.js +1 -2
- package/es/components/footer/locale-button.js.map +1 -1
- package/es/components/horizontal-rule/defs.js +0 -4
- package/es/components/horizontal-rule/defs.js.map +1 -1
- package/es/components/horizontal-rule/horizontal-rule.js +1 -2
- package/es/components/horizontal-rule/horizontal-rule.js.map +1 -1
- package/es/components/image/image-item.js +1 -2
- package/es/components/image/image-item.js.map +1 -1
- package/es/components/image/image.d.ts +2 -3
- package/es/components/image/image.d.ts.map +1 -1
- package/es/components/image/image.js +1 -2
- package/es/components/image/image.js.map +1 -1
- package/es/components/image-with-caption/image-with-caption.js +1 -2
- package/es/components/image-with-caption/image-with-caption.js.map +1 -1
- package/es/components/leadspace/breadcrumb-item.js +1 -2
- package/es/components/leadspace/breadcrumb-item.js.map +1 -1
- package/es/components/leadspace/breadcrumb-link.js +1 -2
- package/es/components/leadspace/breadcrumb-link.js.map +1 -1
- package/es/components/leadspace/breadcrumb.js +1 -2
- package/es/components/leadspace/breadcrumb.js.map +1 -1
- package/es/components/leadspace/defs.js +0 -3
- package/es/components/leadspace/defs.js.map +1 -1
- package/es/components/leadspace/leadspace-heading.js +1 -2
- package/es/components/leadspace/leadspace-heading.js.map +1 -1
- package/es/components/leadspace/leadspace-image.js +1 -2
- package/es/components/leadspace/leadspace-image.js.map +1 -1
- package/es/components/leadspace/leadspace.js +1 -2
- package/es/components/leadspace/leadspace.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-content.js +1 -2
- package/es/components/leadspace-block/leadspace-block-content.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-cta.js +1 -2
- package/es/components/leadspace-block/leadspace-block-cta.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-heading.js +1 -2
- package/es/components/leadspace-block/leadspace-block-heading.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block-media.js +1 -2
- package/es/components/leadspace-block/leadspace-block-media.js.map +1 -1
- package/es/components/leadspace-block/leadspace-block.js +1 -2
- package/es/components/leadspace-block/leadspace-block.js.map +1 -1
- package/es/components/leadspace-with-search/defs.js +0 -1
- package/es/components/leadspace-with-search/defs.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content-copy.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content-heading.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-content.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-content.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search-heading.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search-heading.js.map +1 -1
- package/es/components/leadspace-with-search/leadspace-with-search.js +1 -2
- package/es/components/leadspace-with-search/leadspace-with-search.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +1 -0
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.js +4 -5
- package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-connect.js +3 -3
- package/es/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-container.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-container.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-supplemental.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.js +3 -4
- package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-media-viewer.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -0
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js +8 -9
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-video-player-container.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player.js +1 -2
- package/es/components/lightbox-media-viewer/lightbox-video-player.js.map +1 -1
- package/es/components/link-list/defs.js +0 -2
- package/es/components/link-list/defs.js.map +1 -1
- package/es/components/link-list/link-list-heading.js +1 -2
- package/es/components/link-list/link-list-heading.js.map +1 -1
- package/es/components/link-list/link-list-item-card.js +1 -2
- package/es/components/link-list/link-list-item-card.js.map +1 -1
- package/es/components/link-list/link-list-item.js +1 -2
- package/es/components/link-list/link-list-item.js.map +1 -1
- package/es/components/link-list/link-list.js +1 -3
- package/es/components/link-list/link-list.js.map +1 -1
- package/es/components/link-list-section/link-list-section.js +1 -2
- package/es/components/link-list-section/link-list-section.js.map +1 -1
- package/es/components/link-with-icon/link-with-icon.js +3 -4
- package/es/components/link-with-icon/link-with-icon.js.map +1 -1
- package/es/components/locale-modal/locale-item.js +1 -2
- package/es/components/locale-modal/locale-item.js.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.d.ts +337 -17
- package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.js +50 -28
- package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
- package/es/components/locale-modal/locale-modal-container.js +1 -2
- package/es/components/locale-modal/locale-modal-container.js.map +1 -1
- package/es/components/locale-modal/locale-modal.d.ts +13 -1
- package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal.js +102 -28
- package/es/components/locale-modal/locale-modal.js.map +1 -1
- package/es/components/locale-modal/locale-search.d.ts +3 -0
- package/es/components/locale-modal/locale-search.d.ts.map +1 -1
- package/es/components/locale-modal/locale-search.js +2 -5
- package/es/components/locale-modal/locale-search.js.map +1 -1
- package/es/components/locale-modal/region-item.js +1 -2
- package/es/components/locale-modal/region-item.js.map +1 -1
- package/es/components/locale-modal/regions.js +1 -2
- package/es/components/locale-modal/regions.js.map +1 -1
- package/es/components/logo-grid/logo-grid-item.js +1 -2
- package/es/components/logo-grid/logo-grid-item.js.map +1 -1
- package/es/components/logo-grid/logo-grid-link.js +1 -2
- package/es/components/logo-grid/logo-grid-link.js.map +1 -1
- package/es/components/logo-grid/logo-grid.js +1 -2
- package/es/components/logo-grid/logo-grid.js.map +1 -1
- package/es/components/markdown/markdown.js +1 -2
- package/es/components/markdown/markdown.js.map +1 -1
- package/es/components/masthead/cloud/cloud-button-cta.js +1 -2
- package/es/components/masthead/cloud/cloud-button-cta.js.map +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -2
- package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-composite.js +11 -12
- package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-container.js +9 -10
- package/es/components/masthead/cloud/cloud-masthead-container.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-global-bar.js +1 -2
- package/es/components/masthead/cloud/cloud-masthead-global-bar.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -2
- package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead.css.js +1 -1
- package/es/components/masthead/cloud/cloud-masthead.rtl.css.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-link-group.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-left-navigation.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-right-navigation.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu.js +1 -2
- package/es/components/masthead/cloud/cloud-megamenu.js.map +1 -1
- package/es/components/masthead/cloud/cloud-top-nav-name.js +1 -2
- package/es/components/masthead/cloud/cloud-top-nav-name.js.map +1 -1
- package/es/components/masthead/defs.js +0 -2
- package/es/components/masthead/defs.js.map +1 -1
- package/es/components/masthead/left-nav-item.js +1 -2
- package/es/components/masthead/left-nav-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-category-heading.js +1 -2
- package/es/components/masthead/left-nav-menu-category-heading.js.map +1 -1
- package/es/components/masthead/left-nav-menu-item.js +1 -2
- package/es/components/masthead/left-nav-menu-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-section.js +1 -2
- package/es/components/masthead/left-nav-menu-section.js.map +1 -1
- package/es/components/masthead/left-nav-menu.js +1 -2
- package/es/components/masthead/left-nav-menu.js.map +1 -1
- package/es/components/masthead/left-nav-name.js +1 -2
- package/es/components/masthead/left-nav-name.js.map +1 -1
- package/es/components/masthead/left-nav-overlay.js +1 -2
- package/es/components/masthead/left-nav-overlay.js.map +1 -1
- package/es/components/masthead/left-nav.js +7 -8
- package/es/components/masthead/left-nav.js.map +1 -1
- package/es/components/masthead/masthead-composite.js +22 -24
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/masthead/masthead-container.js +6 -7
- package/es/components/masthead/masthead-container.js.map +1 -1
- package/es/components/masthead/masthead-global-bar.js +1 -2
- package/es/components/masthead/masthead-global-bar.js.map +1 -1
- package/es/components/masthead/masthead-l1-name.js +1 -2
- package/es/components/masthead/masthead-l1-name.js.map +1 -1
- package/es/components/masthead/masthead-l1.js +1 -2
- package/es/components/masthead/masthead-l1.js.map +1 -1
- package/es/components/masthead/masthead-logo.js +1 -2
- package/es/components/masthead/masthead-logo.js.map +1 -1
- package/es/components/masthead/masthead-menu-button.js +1 -2
- package/es/components/masthead/masthead-menu-button.js.map +1 -1
- package/es/components/masthead/masthead-profile-item.js +2 -3
- package/es/components/masthead/masthead-profile-item.js.map +1 -1
- package/es/components/masthead/masthead-profile.js +1 -2
- package/es/components/masthead/masthead-profile.js.map +1 -1
- package/es/components/masthead/masthead.js +1 -2
- package/es/components/masthead/masthead.js.map +1 -1
- package/es/components/masthead/megamenu-category-group-copy.js +1 -2
- package/es/components/masthead/megamenu-category-group-copy.js.map +1 -1
- package/es/components/masthead/megamenu-category-group.js +1 -2
- package/es/components/masthead/megamenu-category-group.js.map +1 -1
- package/es/components/masthead/megamenu-category-link.js +1 -2
- package/es/components/masthead/megamenu-category-link.js.map +1 -1
- package/es/components/masthead/megamenu-left-navigation.js +1 -2
- package/es/components/masthead/megamenu-left-navigation.js.map +1 -1
- package/es/components/masthead/megamenu-link-with-icon.js +1 -2
- package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
- package/es/components/masthead/megamenu-overlay.js +1 -2
- package/es/components/masthead/megamenu-overlay.js.map +1 -1
- package/es/components/masthead/megamenu-right-navigation.js +1 -2
- package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
- package/es/components/masthead/megamenu-top-nav-menu.js +3 -4
- package/es/components/masthead/megamenu-top-nav-menu.js.map +1 -1
- package/es/components/masthead/megamenu.js +1 -2
- package/es/components/masthead/megamenu.js.map +1 -1
- package/es/components/masthead/skip-to-content.js +1 -2
- package/es/components/masthead/skip-to-content.js.map +1 -1
- package/es/components/masthead/top-nav-item.js +2 -3
- package/es/components/masthead/top-nav-item.js.map +1 -1
- package/es/components/masthead/top-nav-l1.js +1 -2
- package/es/components/masthead/top-nav-l1.js.map +1 -1
- package/es/components/masthead/top-nav-menu-item.js +2 -3
- package/es/components/masthead/top-nav-menu-item.js.map +1 -1
- package/es/components/masthead/top-nav-menu.js +2 -3
- package/es/components/masthead/top-nav-menu.js.map +1 -1
- package/es/components/masthead/top-nav-name.js +1 -2
- package/es/components/masthead/top-nav-name.js.map +1 -1
- package/es/components/masthead/top-nav.d.ts.map +1 -1
- package/es/components/masthead/top-nav.js +2 -3
- package/es/components/masthead/top-nav.js.map +1 -1
- package/es/components/notice-choice/cc-lc-map.js +1 -2
- package/es/components/notice-choice/cc-lc-map.js.map +1 -1
- package/es/components/notice-choice/country-settings.js +1 -2
- package/es/components/notice-choice/country-settings.js.map +1 -1
- package/es/components/notice-choice/notice-choice.d.ts +5 -1
- package/es/components/notice-choice/notice-choice.d.ts.map +1 -1
- package/es/components/notice-choice/notice-choice.js +38 -10
- package/es/components/notice-choice/notice-choice.js.map +1 -1
- package/es/components/notice-choice/utils.d.ts +1 -0
- package/es/components/notice-choice/utils.d.ts.map +1 -1
- package/es/components/notice-choice/utils.js +10 -4
- package/es/components/notice-choice/utils.js.map +1 -1
- package/es/components/notice-choice/world-wide-content.js +1 -2
- package/es/components/notice-choice/world-wide-content.js.map +1 -1
- package/es/components/pictogram-item/defs.js +0 -1
- package/es/components/pictogram-item/defs.js.map +1 -1
- package/es/components/pictogram-item/pictogram-item.js +1 -2
- package/es/components/pictogram-item/pictogram-item.js.map +1 -1
- package/es/components/pricing-table/defs.js +0 -1
- package/es/components/pricing-table/defs.js.map +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.js +1 -2
- package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
- package/es/components/pricing-table/pricing-table-body.js +1 -2
- package/es/components/pricing-table/pricing-table-body.js.map +1 -1
- package/es/components/pricing-table/pricing-table-cell-annotation.js +1 -2
- package/es/components/pricing-table/pricing-table-cell-annotation.js.map +1 -1
- package/es/components/pricing-table/pricing-table-cell.js +2 -3
- package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
- package/es/components/pricing-table/pricing-table-group.js +1 -2
- package/es/components/pricing-table/pricing-table-group.js.map +1 -1
- package/es/components/pricing-table/pricing-table-head.js +1 -2
- package/es/components/pricing-table/pricing-table-head.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-caption.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-caption.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-cta.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-cta.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-description.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-description.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-headline.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-headline.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell-tag.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell-tag.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-cell.js +1 -2
- package/es/components/pricing-table/pricing-table-header-cell.js.map +1 -1
- package/es/components/pricing-table/pricing-table-header-row.js +1 -2
- package/es/components/pricing-table/pricing-table-header-row.js.map +1 -1
- package/es/components/pricing-table/pricing-table-highlight-label.js +1 -2
- package/es/components/pricing-table/pricing-table-highlight-label.js.map +1 -1
- package/es/components/pricing-table/pricing-table-row.js +1 -2
- package/es/components/pricing-table/pricing-table-row.js.map +1 -1
- package/es/components/pricing-table/pricing-table.js +2 -3
- package/es/components/pricing-table/pricing-table.js.map +1 -1
- package/es/components/pricing-table/utils.js +5 -10
- package/es/components/pricing-table/utils.js.map +1 -1
- package/es/components/quote/defs.js +0 -2
- package/es/components/quote/defs.js.map +1 -1
- package/es/components/quote/index.d.ts +2 -2
- package/es/components/quote/index.d.ts.map +1 -1
- package/es/components/quote/index.js +1 -1
- package/es/components/quote/index.js.map +1 -1
- package/es/components/quote/quote-link-with-icon.js +1 -2
- package/es/components/quote/quote-link-with-icon.js.map +1 -1
- package/es/components/quote/quote-source-bottom-copy.js +1 -2
- package/es/components/quote/quote-source-bottom-copy.js.map +1 -1
- package/es/components/quote/quote-source-copy.js +1 -2
- package/es/components/quote/quote-source-copy.js.map +1 -1
- package/es/components/quote/quote-source-heading.js +1 -2
- package/es/components/quote/quote-source-heading.js.map +1 -1
- package/es/components/quote/quote.js +1 -2
- package/es/components/quote/quote.js.map +1 -1
- package/es/components/scroll-animations/defs.js +0 -1
- package/es/components/scroll-animations/defs.js.map +1 -1
- package/es/components/scroll-animations/scroll-animations.js +5 -6
- package/es/components/scroll-animations/scroll-animations.js.map +1 -1
- package/es/components/search/search.js +3 -4
- package/es/components/search/search.js.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +1 -2
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown.js +3 -4
- package/es/components/search-with-typeahead/scoped-search-dropdown.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead-item.js +1 -2
- package/es/components/search-with-typeahead/search-with-typeahead-item.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.js +16 -17
- package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
- package/es/components/structured-list/structured-list-body.js +1 -2
- package/es/components/structured-list/structured-list-body.js.map +1 -1
- package/es/components/structured-list/structured-list-cell.js +1 -2
- package/es/components/structured-list/structured-list-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-group.js +1 -2
- package/es/components/structured-list/structured-list-group.js.map +1 -1
- package/es/components/structured-list/structured-list-head.js +1 -2
- package/es/components/structured-list/structured-list-head.js.map +1 -1
- package/es/components/structured-list/structured-list-header-cell.js +1 -2
- package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-header-row.js +1 -2
- package/es/components/structured-list/structured-list-header-row.js.map +1 -1
- package/es/components/structured-list/structured-list-row.js +1 -2
- package/es/components/structured-list/structured-list-row.js.map +1 -1
- package/es/components/structured-list/structured-list.js +1 -2
- package/es/components/structured-list/structured-list.js.map +1 -1
- package/es/components/table-of-contents/defs.js +0 -1
- package/es/components/table-of-contents/defs.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +2 -3
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/tabs-extended/defs.js +0 -1
- package/es/components/tabs-extended/defs.js.map +1 -1
- package/es/components/tabs-extended/tab.js +3 -4
- package/es/components/tabs-extended/tab.js.map +1 -1
- package/es/components/tabs-extended/tabs-extended.js +3 -4
- package/es/components/tabs-extended/tabs-extended.js.map +1 -1
- package/es/components/tabs-extended-media/tabs-extended-media.js +1 -2
- package/es/components/tabs-extended-media/tabs-extended-media.js.map +1 -1
- package/es/components/tag-group/tag-group.js +3 -4
- package/es/components/tag-group/tag-group.js.map +1 -1
- package/es/components/tag-link/tag-link.js +1 -2
- package/es/components/tag-link/tag-link.js.map +1 -1
- package/es/components/universal-banner/universal-banner-copy.js +2 -3
- package/es/components/universal-banner/universal-banner-copy.js.map +1 -1
- package/es/components/universal-banner/universal-banner-heading.js +1 -2
- package/es/components/universal-banner/universal-banner-heading.js.map +1 -1
- package/es/components/universal-banner/universal-banner-image.js +1 -2
- package/es/components/universal-banner/universal-banner-image.js.map +1 -1
- package/es/components/universal-banner/universal-banner.js +1 -2
- package/es/components/universal-banner/universal-banner.js.map +1 -1
- package/es/components/video-player/defs.js +0 -2
- package/es/components/video-player/defs.js.map +1 -1
- package/es/components/video-player/video-player-composite.js +4 -5
- package/es/components/video-player/video-player-composite.js.map +1 -1
- package/es/components/video-player/video-player-container.js +6 -8
- package/es/components/video-player/video-player-container.js.map +1 -1
- package/es/components/video-player/video-player.d.ts.map +1 -1
- package/es/components/video-player/video-player.js +22 -5
- package/es/components/video-player/video-player.js.map +1 -1
- package/es/components-react/dotcom-shell/dotcom-shell-composite.d.ts +0 -4
- package/es/components-react/dotcom-shell/dotcom-shell-composite.js +0 -8
- package/es/components-react/filter-panel/filter-panel-composite.d.ts +2 -7
- package/es/components-react/filter-panel/filter-panel-composite.js +3 -10
- package/es/components-react/filter-panel/filter-panel-input-select-item.d.ts +4 -0
- package/es/components-react/filter-panel/filter-panel-input-select-item.js +5 -0
- package/es/components-react/locale-modal/locale-modal-composite.d.ts +4 -0
- package/es/components-react/locale-modal/locale-modal-composite.js +5 -0
- package/es/globals/defs.js +0 -2
- package/es/globals/defs.js.map +1 -1
- package/es/globals/internal/collection-helpers.js +5 -10
- package/es/globals/internal/collection-helpers.js.map +1 -1
- package/es/globals/internal/feature-flags.js +7 -14
- package/es/globals/internal/feature-flags.js.map +1 -1
- package/es/globals/internal/storybook-cdn.js +3 -6
- package/es/globals/internal/storybook-cdn.js.map +1 -1
- package/es/globals/mixins/connect.js +1 -2
- package/es/globals/mixins/connect.js.map +1 -1
- package/es/globals/mixins/hybrid-render.js +1 -2
- package/es/globals/mixins/hybrid-render.js.map +1 -1
- package/es/globals/mixins/modal-render.d.ts +6 -1
- package/es/globals/mixins/modal-render.d.ts.map +1 -1
- package/es/globals/mixins/modal-render.js +21 -4
- package/es/globals/mixins/modal-render.js.map +1 -1
- package/es/globals/mixins/stable-selector.js +3 -4
- package/es/globals/mixins/stable-selector.js.map +1 -1
- package/es/globals/mixins/throttled-input.js +2 -3
- package/es/globals/mixins/throttled-input.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +19 -19
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +3 -3
- package/es/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +6 -6
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/data-table/table-toolbar-search.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/file-uploader/drop-container.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts +4 -5
- package/es/internal/vendor/@carbon/web-components/components/input/input.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/input/input.js +16 -35
- package/es/internal/vendor/@carbon/web-components/components/input/input.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts +7 -15
- package/es/internal/vendor/@carbon/web-components/components/link/link.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/link/link.js +6 -6
- package/es/internal/vendor/@carbon/web-components/components/link/link.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu-body.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/overflow-menu/overflow-menu.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/pagination/page-sizes-select.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/slider/slider.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/slider/slider.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/structured-list/structured-list-row.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts +8 -0
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js +28 -4
- package/es/internal/vendor/@carbon/web-components/components/tabs/tab.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/tooltip/tooltip.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-link.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts +1 -0
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.d.ts.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js +11 -0
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu-item.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav-menu.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/ui-shell/side-nav.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components-react/input/input.d.ts +4 -4
- package/es/internal/vendor/@carbon/web-components/components-react/input/input.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.d.ts +4 -0
- package/es/internal/vendor/@carbon/web-components/components-react/tabs/tab.js +2 -0
- package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +2 -1
- package/es/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/lib/components/background-media/defs.js +2 -4
- package/lib/components/background-media/defs.js.map +1 -1
- package/lib/components/button/defs.js +3 -6
- package/lib/components/button/defs.js.map +1 -1
- package/lib/components/card/defs.js +2 -4
- package/lib/components/card/defs.js.map +1 -1
- package/lib/components/card-group/defs.js +1 -2
- package/lib/components/card-group/defs.js.map +1 -1
- package/lib/components/content-block/defs.js +2 -4
- package/lib/components/content-block/defs.js.map +1 -1
- package/lib/components/content-item-horizontal/defs.js +2 -4
- package/lib/components/content-item-horizontal/defs.js.map +1 -1
- package/lib/components/cta/defs.js +2 -4
- package/lib/components/cta/defs.js.map +1 -1
- package/lib/components/expressive-modal/defs.js +2 -4
- package/lib/components/expressive-modal/defs.js.map +1 -1
- package/lib/components/feature-section/defs.js +1 -2
- package/lib/components/feature-section/defs.js.map +1 -1
- package/lib/components/horizontal-rule/defs.js +4 -8
- package/lib/components/horizontal-rule/defs.js.map +1 -1
- package/lib/components/leadspace/defs.js +3 -6
- package/lib/components/leadspace/defs.js.map +1 -1
- package/lib/components/leadspace-with-search/defs.js +1 -2
- package/lib/components/leadspace-with-search/defs.js.map +1 -1
- package/lib/components/leaving-ibm/leaving-ibm-connect.js +3 -3
- package/lib/components/leaving-ibm/leaving-ibm-connect.js.map +1 -1
- package/lib/components/link-list/defs.js +2 -4
- package/lib/components/link-list/defs.js.map +1 -1
- package/lib/components/pictogram-item/defs.js +1 -2
- package/lib/components/pictogram-item/defs.js.map +1 -1
- package/lib/components/quote/defs.js +2 -4
- package/lib/components/quote/defs.js.map +1 -1
- package/lib/components/table-of-contents/defs.js +1 -2
- package/lib/components/table-of-contents/defs.js.map +1 -1
- package/lib/components/tabs-extended/defs.js +1 -2
- package/lib/components/tabs-extended/defs.js.map +1 -1
- package/lib/components/video-player/defs.js +2 -4
- package/lib/components/video-player/defs.js.map +1 -1
- package/lib/components-react-node/back-to-top/back-to-top.js +25 -45
- package/lib/components-react-node/background-media/background-media.js +5 -8
- package/lib/components-react-node/button/button.js +25 -45
- package/lib/components-react-node/button-group/button-group-item.js +7 -6
- package/lib/components-react-node/button-group/button-group.js +3 -6
- package/lib/components-react-node/callout-quote/callout-link-with-icon.js +7 -6
- package/lib/components-react-node/callout-quote/callout-quote.js +7 -6
- package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +7 -6
- package/lib/components-react-node/callout-with-media/callout-with-media-image.js +5 -8
- package/lib/components-react-node/callout-with-media/callout-with-media-video.js +10 -9
- package/lib/components-react-node/callout-with-media/callout-with-media.js +7 -6
- package/lib/components-react-node/card/card-eyebrow.js +5 -8
- package/lib/components-react-node/card/card-footer.js +40 -56
- package/lib/components-react-node/card/card-heading.js +5 -8
- package/lib/components-react-node/card/card.js +25 -45
- package/lib/components-react-node/card/image-logo.js +7 -6
- package/lib/components-react-node/card-group/card-group-card-link-item.js +38 -54
- package/lib/components-react-node/card-group/card-group-item.js +25 -45
- package/lib/components-react-node/card-group/card-group.js +25 -45
- package/lib/components-react-node/card-in-card/card-in-card-image.js +7 -6
- package/lib/components-react-node/card-in-card/card-in-card.js +7 -6
- package/lib/components-react-node/card-link/card-link-heading.js +7 -6
- package/lib/components-react-node/card-link/card-link.js +25 -45
- package/lib/components-react-node/card-section-carousel/card-section-carousel.js +7 -6
- package/lib/components-react-node/card-section-offset/card-section-offset.js +7 -6
- package/lib/components-react-node/card-section-simple/card-section-simple.js +7 -6
- package/lib/components-react-node/carousel/carousel.js +25 -45
- package/lib/components-react-node/content-block/content-block-complementary.js +5 -8
- package/lib/components-react-node/content-block/content-block-copy.js +5 -8
- package/lib/components-react-node/content-block/content-block-heading.js +5 -8
- package/lib/components-react-node/content-block/content-block-paragraph.js +3 -6
- package/lib/components-react-node/content-block/content-block.js +5 -8
- package/lib/components-react-node/content-block-cards/content-block-cards.js +7 -6
- package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +33 -49
- package/lib/components-react-node/content-block-media/content-block-media-content.js +7 -6
- package/lib/components-react-node/content-block-media/content-block-media.js +7 -6
- package/lib/components-react-node/content-block-mixed/content-block-mixed.js +7 -6
- package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +7 -6
- package/lib/components-react-node/content-block-segmented/content-block-segmented.js +7 -6
- package/lib/components-react-node/content-block-simple/content-block-simple.js +7 -6
- package/lib/components-react-node/content-group/content-group-copy.js +5 -8
- package/lib/components-react-node/content-group/content-group-heading.js +5 -8
- package/lib/components-react-node/content-group/content-group-paragraph.js +3 -6
- package/lib/components-react-node/content-group/content-group.js +7 -6
- package/lib/components-react-node/content-group-banner/content-group-banner.js +7 -6
- package/lib/components-react-node/content-group-cards/content-group-cards-item.js +3 -6
- package/lib/components-react-node/content-group-cards/content-group-cards.js +7 -6
- package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +7 -6
- package/lib/components-react-node/content-group-simple/content-group-simple.js +7 -6
- package/lib/components-react-node/content-item/content-item-copy.js +7 -6
- package/lib/components-react-node/content-item/content-item-heading.js +5 -8
- package/lib/components-react-node/content-item/content-item-paragraph.js +3 -6
- package/lib/components-react-node/content-item/content-item.js +3 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +5 -8
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +10 -9
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +10 -9
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +7 -6
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +32 -48
- package/lib/components-react-node/content-section/content-section-copy.js +5 -8
- package/lib/components-react-node/content-section/content-section-heading.js +5 -8
- package/lib/components-react-node/content-section/content-section.js +5 -8
- package/lib/components-react-node/cta/button-cta.js +48 -64
- package/lib/components-react-node/cta/card-cta-footer.js +46 -62
- package/lib/components-react-node/cta/card-cta-image.js +7 -6
- package/lib/components-react-node/cta/card-cta.js +25 -45
- package/lib/components-react-node/cta/card-link-cta.js +25 -45
- package/lib/components-react-node/cta/cta.js +5 -8
- package/lib/components-react-node/cta/feature-cta-footer.js +45 -61
- package/lib/components-react-node/cta/feature-cta.js +58 -74
- package/lib/components-react-node/cta/link-list-item-card-cta.js +7 -6
- package/lib/components-react-node/cta/link-list-item-cta.js +7 -6
- package/lib/components-react-node/cta/text-cta.js +48 -64
- package/lib/components-react-node/cta/video-cta-composite.js +5 -8
- package/lib/components-react-node/cta/video-cta-container.js +7 -6
- package/lib/components-react-node/cta-block/cta-block-item-row.js +25 -45
- package/lib/components-react-node/cta-block/cta-block-item.js +7 -6
- package/lib/components-react-node/cta-block/cta-block.js +33 -49
- package/lib/components-react-node/cta-section/cta-section.js +12 -11
- package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +25 -53
- package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +7 -6
- package/lib/components-react-node/dotcom-shell/dotcom-shell.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal-body.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-header.js +5 -8
- package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +3 -6
- package/lib/components-react-node/expressive-modal/expressive-modal.js +25 -45
- package/lib/components-react-node/feature-card/feature-card-footer.js +7 -6
- package/lib/components-react-node/feature-card/feature-card.js +5 -8
- package/lib/components-react-node/feature-section/feature-section-card-link.js +7 -6
- package/lib/components-react-node/feature-section/feature-section.js +12 -11
- package/lib/components-react-node/filter-panel/filter-group-item.js +25 -45
- package/lib/components-react-node/filter-panel/filter-group.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-button.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-footer.js +3 -6
- package/lib/components-react-node/filter-panel/filter-modal-heading.js +3 -6
- package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +5 -8
- package/lib/components-react-node/filter-panel/filter-panel-composite.js +28 -55
- package/lib/components-react-node/filter-panel/filter-panel-heading.js +5 -8
- package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +30 -45
- package/lib/components-react-node/filter-panel/filter-panel-input-select.js +25 -45
- package/lib/components-react-node/filter-panel/filter-panel-modal.js +41 -57
- package/lib/components-react-node/filter-panel/filter-panel.js +25 -45
- package/lib/components-react-node/footer/dropdown.js +5 -8
- package/lib/components-react-node/footer/footer-composite.js +25 -45
- package/lib/components-react-node/footer/footer-container.js +7 -6
- package/lib/components-react-node/horizontal-rule/horizontal-rule.js +5 -8
- package/lib/components-react-node/image/image-item.js +3 -6
- package/lib/components-react-node/image/image.js +25 -45
- package/lib/components-react-node/leadspace/breadcrumb-item.js +3 -6
- package/lib/components-react-node/leadspace/breadcrumb-link.js +3 -6
- package/lib/components-react-node/leadspace/breadcrumb.js +3 -6
- package/lib/components-react-node/leadspace/leadspace-heading.js +5 -8
- package/lib/components-react-node/leadspace/leadspace-image.js +7 -6
- package/lib/components-react-node/leadspace/leadspace.js +5 -8
- package/lib/components-react-node/leadspace-block/leadspace-block-content.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +7 -6
- package/lib/components-react-node/leadspace-block/leadspace-block-media.js +3 -6
- package/lib/components-react-node/leadspace-block/leadspace-block.js +3 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +10 -9
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +7 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +10 -9
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +7 -6
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +25 -45
- package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +25 -45
- package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +7 -6
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +5 -8
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +3 -6
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +5 -8
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +5 -8
- package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +15 -14
- package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer-body.js +2 -4
- package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +24 -23
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +45 -61
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +4 -7
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +40 -56
- package/lib/components-react-node/link-list/link-list-heading.js +5 -8
- package/lib/components-react-node/link-list/link-list-item-card.js +7 -6
- package/lib/components-react-node/link-list/link-list-item.js +33 -49
- package/lib/components-react-node/link-list/link-list.js +5 -8
- package/lib/components-react-node/link-list-section/link-list-section.js +7 -6
- package/lib/components-react-node/link-with-icon/link-with-icon.js +25 -45
- package/lib/components-react-node/locale-modal/locale-modal-composite.js +30 -45
- package/lib/components-react-node/locale-modal/locale-modal-container.js +7 -6
- package/lib/components-react-node/logo-grid/logo-grid-item.js +7 -6
- package/lib/components-react-node/logo-grid/logo-grid-link.js +5 -8
- package/lib/components-react-node/logo-grid/logo-grid.js +39 -55
- package/lib/components-react-node/markdown/markdown.js +5 -8
- package/lib/components-react-node/masthead/masthead-composite.js +25 -45
- package/lib/components-react-node/masthead/masthead-container.js +7 -6
- package/lib/components-react-node/masthead/masthead.js +3 -6
- package/lib/components-react-node/pictogram-item/pictogram-item.js +12 -11
- package/lib/components-react-node/quote/quote-link-with-icon.js +7 -6
- package/lib/components-react-node/quote/quote-source-bottom-copy.js +5 -8
- package/lib/components-react-node/quote/quote-source-copy.js +5 -8
- package/lib/components-react-node/quote/quote-source-heading.js +5 -8
- package/lib/components-react-node/quote/quote.js +5 -8
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +5 -8
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +5 -8
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +25 -45
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +25 -45
- package/lib/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-cell.js +5 -8
- package/lib/components-react-node/structured-list/structured-list-group.js +5 -8
- package/lib/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-header-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list-row.js +3 -6
- package/lib/components-react-node/structured-list/structured-list.js +3 -6
- package/lib/components-react-node/table-of-contents/table-of-contents.js +25 -45
- package/lib/components-react-node/tabs-extended/tab.js +25 -45
- package/lib/components-react-node/tabs-extended/tabs-extended.js +5 -8
- package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +12 -11
- package/lib/components-react-node/tag-group/tag-group.js +3 -6
- package/lib/components-react-node/tag-link/tag-link.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-copy.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-heading.js +5 -8
- package/lib/components-react-node/universal-banner/universal-banner-image.js +7 -6
- package/lib/components-react-node/universal-banner/universal-banner.js +25 -45
- package/lib/components-react-node/video-player/video-player-composite.js +25 -45
- package/lib/components-react-node/video-player/video-player-container.js +7 -6
- package/lib/components-react-node/video-player/video-player.js +25 -45
- package/lib/globals/defs.js +2 -4
- package/lib/globals/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +20 -21
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Analytics/Analytics.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/CloudAccountAuth/CloudAccountAuth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/DDO/DDO.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer.js +9 -10
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Locale/Locale.js +7 -8
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MarketingSearch/MarketingSearch.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/MastheadLogo/MastheadLogo.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Profile/Profile.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/SearchTypeahead/SearchTypeahead.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/Translation/Translation.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services/services/VideoPlayer/VideoPlayer.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/actions/searchAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/reducers/index.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/store.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js +2 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/cloudAccountAuthAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/kalturaPlayerAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/localeAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js +2 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/profileAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/searchAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-services-store/types/translateAPI.js.map +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/altlangs/altlangs.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/calculateTotalWidth/calculateTotalWidth.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/decodeString/decodeString.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/escaperegexp/escaperegexp.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/featureflag/featureflag.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/loadNonLatinPlex/loadNonLatinPlex.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/markdownToHtml/markdownToHtml.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/parseAspectRatio/parseAspectRatio.js +2 -3
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/removeHtmlTagEntities/removeHtmlTagEntities.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/sameHeight/sameHeight.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/serialize/serialize.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +3 -4
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/smoothScroll/smoothScroll.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/stripHTML/stripHTML.js +1 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/uniqueid/uniqueid.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/accordion/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/button/defs.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components/button/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/code-snippet/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/content-switcher/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js +5 -10
- package/lib/internal/vendor/@carbon/web-components/components/data-table/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/date-picker/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js +4 -8
- package/lib/internal/vendor/@carbon/web-components/components/dropdown/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/file-uploader/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js +4 -8
- package/lib/internal/vendor/@carbon/web-components/components/floating-menu/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/inline-loading/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/input/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/input/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/loading/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/modal/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/notification/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/number-input/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/overflow-menu/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/progress-indicator/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/radio-button/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/skeleton-text/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components/tabs/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/tag/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/components/toggle/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/tooltip/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components/ui-shell/defs.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/accordion/accordion.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-item.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-link.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb-overflow-menu.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/breadcrumb/breadcrumb.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button-skeleton.js +7 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/button/button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/checkbox/checkbox.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/code-snippet/code-snippet.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box-item.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/combo-box/combo-box.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/content-switcher/content-switcher.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/copy-button/copy-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-batch-actions.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-body.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell-skeleton.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expand-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-expanded-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-head.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell-skeleton.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-cell.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-expand-row.js +25 -20
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-header-row.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-content.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar-search.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table-toolbar.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/data-table/table.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/date-picker/date-picker.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/dropdown/dropdown.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/drop-container.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/file-uploader/file-uploader.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/floating-menu/floating-menu.js +2 -4
- package/lib/internal/vendor/@carbon/web-components/components-react-node/form/form-item.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/inline-loading/inline-loading.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/input/input.js +27 -47
- package/lib/internal/vendor/@carbon/web-components/components-react-node/link/link.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/list-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/ordered-list.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/list/unordered-list.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/loading/loading.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-body.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-close-button.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer-button.js +7 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-footer.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-header.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-heading.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal-label.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/modal/modal.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select-item.js +41 -53
- package/lib/internal/vendor/@carbon/web-components/components-react-node/multi-select/multi-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/inline-notification.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/notification/toast-notification.js +15 -10
- package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/number-input/number-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-body.js +45 -57
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/overflow-menu/overflow-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/page-sizes-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pages-select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/pagination/pagination.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-indicator.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step-skeleton.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/progress-indicator/progress-step.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-group.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/radio-button/radio-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search-skeleton.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/search/search.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item-group.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/select/select.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-placeholder/skeleton-placeholder.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skeleton-text/skeleton-text.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/skip-to-content/skip-to-content.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-input.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/slider/slider.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-body.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-head.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-cell.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-header-row.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list-row.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/structured-list/structured-list.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tab.js +41 -51
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tabs/tabs.js +39 -34
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/filter-tag.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tag/tag.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea-skeleton.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/textarea/textarea.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/clickable-tile.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/expandable-tile.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/radio-tile.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/selectable-tile.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile-group.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tile/tile.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/toggle/toggle.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-body.js +41 -53
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-definition.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-footer.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip-icon.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/tooltip/tooltip.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-button.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu-item.js +11 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-name.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav-item.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header-nav.js +5 -8
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/header.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-divider.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-items.js +3 -6
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-link.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu-item.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav-menu.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/components-react-node/ui-shell/side-nav.js +25 -45
- package/lib/internal/vendor/@carbon/web-components/globals/settings.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/globals/settings.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js +1 -2
- package/lib/internal/vendor/@carbon/web-components/globals/shared-enums.js.map +1 -1
- package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js +3 -4
- package/lib/internal/vendor/@carbon/web-components/globals/wrappers/createReactCustomElementType.js.map +1 -1
- package/package.json +17 -17
- package/dist/left-nav-menu-item-28b39f86.js +0 -71
- package/dist/left-nav-menu-item-38c7e8e5.js +0 -71
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
78
|
let process = { env: {} };
|
|
72
|
-
import { L as LitElement, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-
|
|
79
|
+
import { L as LitElement, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-728fb184.js';
|
|
73
80
|
|
|
74
81
|
let _ = t => t,
|
|
75
82
|
_t;
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -68,4 +75,4 @@
|
|
|
68
75
|
* https://www.npmjs.com/package/axios
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
|
-
import{L as e,h as r,as as t,d as i,e as n}from"./masthead-composite-
|
|
78
|
+
import{L as e,h as r,as as t,d as i,e as n}from"./masthead-composite-0c8215ba.js";let o,s=e=>e;function a(){a=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!d(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){var r;if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=String(e.kind);if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=u(e.key),i=String(e.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:p(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=p(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function l(e){var r,t=u(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function c(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function d(e){return e.decorators&&e.decorators.length}function f(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function p(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function u(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:h}=n;let y=function(e,r,t,i){var n=a();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,p.elements)}),t),p=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(f(o.descriptor)||f(n.descriptor)){if(d(o)||d(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(d(o)){if(d(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}c(o,n)}else r.push(o)}return r}(s.d.map(l)),e);return n.initializeClassElements(s.F,p.elements),n.runClassFinishers(s.F,p.finishers)}([i(`${h}-megamenu-left-navigation`)],(function(e,i){return{F:class extends i{constructor(...r){super(...r),e(this)}},d:[{kind:"method",key:"render",value:function(){return r(o||(o=s` <slot></slot> `))}},{kind:"field",static:!0,key:"styles",value:()=>t}]}}),e);export{y as default};
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -68,4 +75,4 @@
|
|
|
68
75
|
* https://www.npmjs.com/package/axios
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
|
-
import{L as e,p as r,h as t,as as i,d as n,e as o}from"./masthead-composite-
|
|
78
|
+
import{L as e,p as r,h as t,as as i,d as n,e as o}from"./masthead-composite-0c8215ba.js";let s,a=e=>e;function l(){l=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!f(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){var r;if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return h(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=String(e.kind);if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=m(e.key),i=String(e.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:u(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=u(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function c(e){var r,t=m(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function d(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function f(e){return e.decorators&&e.decorators.length}function p(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function u(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function m(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:y}=o;let v=function(e,r,t,i){var n=l();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,a.elements)}),t),a=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(p(o.descriptor)||p(n.descriptor)){if(f(o)||f(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(f(o)){if(f(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}d(o,n)}else r.push(o)}return r}(s.d.map(c)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([n(`${y}-megamenu-overlay`)],(function(e,n){return{F:class extends n{constructor(...r){super(...r),e(this)}},d:[{kind:"field",decorators:[r({type:Boolean,reflect:!0})],key:"active",value:()=>!1},{kind:"method",key:"render",value:function(){return t(s||(s=a` <slot></slot> `))}},{kind:"field",static:!0,key:"styles",value:()=>i}]}}),e);export{v as default};
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -68,4 +75,4 @@
|
|
|
68
75
|
* https://www.npmjs.com/package/axios
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
|
-
import{L as e,p as r,h as t,as as i,d as n,e as o}from"./masthead-composite-
|
|
78
|
+
import{L as e,p as r,h as t,as as i,d as n,e as o}from"./masthead-composite-6e631d9f.js";let s,a=e=>e;function l(){l=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var n=r.placement;if(r.kind===i&&("static"===n||"prototype"===n)){var o="static"===n?e:t;this.defineClassElement(o,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],n={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,n)}),this),e.forEach((function(e){if(!f(e))return t.push(e);var r=this.decorateElement(e,n);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var o=this.decorateConstructor(t,r);return i.push.apply(i,o.finishers),o.finishers=i,o},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],n=e.decorators,o=n.length-1;o>=0;o--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,n[o])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var d=0;d<c.length;d++)this.addElementPlacement(c[d],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var n=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[i])(n)||n);if(void 0!==o.finisher&&t.push(o.finisher),void 0!==o.elements){e=o.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){var r;if(void 0!==e)return(r=e,function(e){if(Array.isArray(e))return e}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,r){if(e){if("string"==typeof e)return h(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?h(e,r):void 0}}(r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=String(e.kind);if("method"!==r&&"field"!==r)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=m(e.key),i=String(e.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var n=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:t,placement:i,descriptor:Object.assign({},n)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(n,"get","The property descriptor of a field descriptor"),this.disallowProperty(n,"set","The property descriptor of a field descriptor"),this.disallowProperty(n,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:u(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if("class"!==r)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=u(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can't have a ."+r+" property.")}};return e}function c(e){var r,t=m(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function d(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function f(e){return e.decorators&&e.decorators.length}function p(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function u(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected '"+r+"' to be a function");return t}function m(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}function h(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}const{stablePrefix:y}=o;let v=function(e,r,t,i){var n=l();if(i)for(var o=0;o<i.length;o++)n=i[o](n);var s=r((function(e){n.initializeInstanceElements(e,a.elements)}),t),a=n.decorateClass(function(e){for(var r=[],t=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},i=0;i<e.length;i++){var n,o=e[i];if("method"===o.kind&&(n=r.find(t)))if(p(o.descriptor)||p(n.descriptor)){if(f(o)||f(n))throw new ReferenceError("Duplicated methods ("+o.key+") can't be decorated.");n.descriptor=o.descriptor}else{if(f(o)){if(f(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+o.key+").");n.decorators=o.decorators}d(o,n)}else r.push(o)}return r}(s.d.map(c)),e);return n.initializeClassElements(s.F,a.elements),n.runClassFinishers(s.F,a.finishers)}([n(`${y}-megamenu-overlay`)],(function(e,n){return{F:class extends n{constructor(...r){super(...r),e(this)}},d:[{kind:"field",decorators:[r({type:Boolean,reflect:!0})],key:"active",value:()=>!1},{kind:"method",key:"render",value:function(){return t(s||(s=a` <slot></slot> `))}},{kind:"field",static:!0,key:"styles",value:()=>i}]}}),e);export{v as default};
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
78
|
let process = { env: {} };
|
|
72
|
-
import { L as LitElement, p as property, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-
|
|
79
|
+
import { L as LitElement, p as property, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-e2535116.js';
|
|
73
80
|
|
|
74
81
|
let _ = t => t,
|
|
75
82
|
_t;
|
|
@@ -39,6 +39,13 @@
|
|
|
39
39
|
* subject to an additional IP rights grant found at
|
|
40
40
|
* http://polymer.github.io/PATENTS.txt
|
|
41
41
|
*
|
|
42
|
+
* @carbon/motion:
|
|
43
|
+
*
|
|
44
|
+
* Copyright IBM Corp. 2018, 2023
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*
|
|
42
49
|
* js-cookie:
|
|
43
50
|
*
|
|
44
51
|
* JavaScript Cookie v2.2.1
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
*/
|
|
70
77
|
|
|
71
78
|
let process = { env: {} };
|
|
72
|
-
import { L as LitElement, p as property, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-
|
|
79
|
+
import { L as LitElement, p as property, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-728fb184.js';
|
|
73
80
|
|
|
74
81
|
let _ = t => t,
|
|
75
82
|
_t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callout.js","names":["_litElement","require","_settings","_interopRequireDefault","_templateObject","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","DDSCalloutMixin","base","_base","_inherits2","_class","_super","_classCallCheck2","_createClass2","key","value","render","html","_taggedTemplateLiteral2","_get2","_default","exports"],"sources":["component-mixins/callout/callout.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport { Constructor } from '../../globals/defs';\n\nconst { prefix } = settings;\n\n/**\n * Callout.\n *\n * @mixin dds-callout\n */\nconst DDSCalloutMixin = <T extends Constructor<HTMLElement>>(base: T) => {\n return class extends base {\n render() {\n return html`\n <div class=\"${prefix}--callout__column\">\n <div class=\"${prefix}--callout__content\">\n ${\n /* Declaring this mixin as it extends \\`LitElement\\` seems to cause a TS error\n // @ts-ignore */\n super.render()\n }\n </div>\n </div>\n `;\n }\n };\n};\n\nexport default DDSCalloutMixin;\n"],"mappings":";;;;;;;;;;;;;;AAQA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAmE,IAAAG,eAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA,sBATnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA,IAAQC,MAAM,GAAKC,oBAAQ,CAAnBD,MAAM;;AAEd;AACA;AACA;AACA;AACA;AACA,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAwCC,IAAO,EAAK;EACvE,8BAAAC,KAAA;IAAA,IAAAC,UAAA,aAAAC,MAAA,EAAAF,KAAA;IAAA,IAAAG,MAAA,GAAA7B,YAAA,CAAA4B,MAAA;IAAA,SAAAA,OAAA;MAAA,IAAAE,gBAAA,mBAAAF,MAAA;MAAA,OAAAC,MAAA,CAAAhB,KAAA,OAAAD,SAAA;IAAA;IAAA,IAAAmB,aAAA,aAAAH,MAAA;MAAAI,GAAA;MAAAC,KAAA,EACE,SAAAC,OAAA,EAAS;QACP,WAAOC,gBAAI,EAAApC,eAAA,KAAAA,eAAA,OAAAqC,uBAAA,kLACKd,MAAM,EACJA,MAAM;QAEhB;AACd;QADc,IAAAe,KAAA,iBAAA/B,gBAAA,aAAAsB,MAAA,CAAAV,SAAA,mBAAAE,IAAA;MAOV;IAAC;IAAA,OAAAQ,MAAA;EAAA,EAbkBH,IAAI;AAe3B,CAAC;AAAC,IAAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"callout.js","names":["_litElement","require","_settings","_interopRequireDefault","_templateObject","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","DDSCalloutMixin","base","_base","_inherits2","_class","_super","_classCallCheck2","_createClass2","key","value","render","html","_taggedTemplateLiteral2","_get2","_default","exports"],"sources":["component-mixins/callout/callout.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport { Constructor } from '../../globals/defs';\n\nconst { prefix } = settings;\n\n/**\n * Callout.\n *\n * @mixin dds-callout\n */\nconst DDSCalloutMixin = <T extends Constructor<HTMLElement>>(base: T) => {\n return class extends base {\n render() {\n return html`\n <div class=\"${prefix}--callout__column\">\n <div class=\"${prefix}--callout__content\">\n ${\n /* Declaring this mixin as it extends \\`LitElement\\` seems to cause a TS error\n // @ts-ignore */\n super.render()\n }\n </div>\n </div>\n `;\n }\n };\n};\n\nexport default DDSCalloutMixin;\n"],"mappings":";;;;;;;;;;;;;;AAQA,IAA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EhB;AACd;QADc,IAAAe,KAAA,iBAAA/B,gBAAA,aAAAsB,MAAA,CAAAV,SAAA,mBAAAE,IAAA;MAOV;IAAC;IAAA,OAAAQ,MAAA;EAAA,EAbkBH,IAAI;AAe3B,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEaf,eAAe"}
|
|
@@ -46,21 +46,18 @@ var ddsPrefix = _settings2["default"].stablePrefix;
|
|
|
46
46
|
/**
|
|
47
47
|
* Icons to use, keyed by CTA type.
|
|
48
48
|
*/
|
|
49
|
-
var icons = (_icons = {}, (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.LOCAL, _2["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.DOWNLOAD, _3["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EXTERNAL, _4["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.NEW_TAB, _8["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.JUMP, _["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.VIDEO, _5["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.PDF, _7["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.BLOG, _6["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EMAIL, _11["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.SCHEDULE, _10["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.CHAT, _12["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.CALL, _9["default"]), _icons);
|
|
49
|
+
var icons = exports.icons = (_icons = {}, (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.LOCAL, _2["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.DOWNLOAD, _3["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EXTERNAL, _4["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.NEW_TAB, _8["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.JUMP, _["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.VIDEO, _5["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.PDF, _7["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.BLOG, _6["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EMAIL, _11["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.SCHEDULE, _10["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.CHAT, _12["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.CALL, _9["default"]), _icons);
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Aria Labels to use, keyed by CTA type.
|
|
53
53
|
*/
|
|
54
|
-
exports.
|
|
55
|
-
var
|
|
56
|
-
exports.ariaLabels = ariaLabels;
|
|
57
|
-
var types = _defs.CTA_TYPE;
|
|
54
|
+
var ariaLabels = exports.ariaLabels = (_ariaLabels = {}, (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.LOCAL, ''), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.DOWNLOAD, ' - This link downloads a file'), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.EXTERNAL, ' - This link opens in a new tab'), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.NEW_TAB, ' - This link opens in a new tab'), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.JUMP, ''), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.VIDEO, ' - This link plays a video'), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.PDF, ' - This link downloads a pdf'), (0, _defineProperty2["default"])(_ariaLabels, _defs.CTA_TYPE.BLOG, ''), _ariaLabels);
|
|
55
|
+
var types = exports.types = _defs.CTA_TYPE;
|
|
58
56
|
|
|
59
57
|
/**
|
|
60
58
|
* @param Base The base class.
|
|
61
59
|
* @returns A mix-in implementing the logic of handling link for CTA.
|
|
62
60
|
*/
|
|
63
|
-
exports.types = types;
|
|
64
61
|
var CTAMixin = function CTAMixin(Base) {
|
|
65
62
|
var CTAMixinImpl = /*#__PURE__*/function (_Base) {
|
|
66
63
|
(0, _inherits2["default"])(CTAMixinImpl, _Base);
|
|
@@ -182,6 +179,5 @@ var CTAMixin = function CTAMixin(Base) {
|
|
|
182
179
|
}(Base);
|
|
183
180
|
return CTAMixinImpl;
|
|
184
181
|
};
|
|
185
|
-
var _default = CTAMixin;
|
|
186
|
-
exports["default"] = _default;
|
|
182
|
+
var _default = exports["default"] = CTAMixin;
|
|
187
183
|
//# sourceMappingURL=cta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta.js","names":["_litElement","require","_settings","_interopRequireDefault","_","_2","_3","_4","_5","_6","_7","_8","_9","_10","_11","_12","_settings2","_defs","_icons","_ariaLabels","_templateObject","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","icons","_defineProperty2","CTA_TYPE","LOCAL","ArrowRight20","DOWNLOAD","Download20","EXTERNAL","Launch20","NEW_TAB","NewTab20","JUMP","ArrowDown20","VIDEO","PlayOutline20","PDF","DocumentPDF20","BLOG","Blog20","EMAIL","Email20","SCHEDULE","Calendar20","CHAT","Chat20","CALL","Phone20","exports","ariaLabels","types","CTAMixin","Base","CTAMixinImpl","_Base","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_handleClick","event","disabled","preventDefault","stopPropagation","_renderIcon","_icons$ctaType","ctaType","html","_taggedTemplateLiteral2","concat","updated","changedProperties","_get2","linkNode","_linkNode","has","_contactMethods","download","downloadTypes","includes","console","warn","contactMethods","Object","keys","dataset","ibmContact","nodeName","href","hrefValue","removeAttribute","setAttribute","target","newTabTypes","targetInEffect","hasAttribute","getAttribute","_default"],"sources":["component-mixins/cta/cta.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '../../internal/vendor/@carbon/web-components/icons/arrow--down/20.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20.js';\nimport Download20 from '../../internal/vendor/@carbon/web-components/icons/download/20.js';\nimport Launch20 from '../../internal/vendor/@carbon/web-components/icons/launch/20.js';\nimport PlayOutline20 from '../../internal/vendor/@carbon/web-components/icons/play--outline/20.js';\nimport Blog20 from '../../internal/vendor/@carbon/web-components/icons/blog/20.js';\nimport DocumentPDF20 from '../../internal/vendor/@carbon/web-components/icons/document--pdf/20.js';\nimport NewTab20 from '../../internal/vendor/@carbon/web-components/icons/new-tab/20.js';\nimport Phone20 from '../../internal/vendor/@carbon/web-components/icons/phone/20.js';\nimport Calendar20 from '../../internal/vendor/@carbon/web-components/icons/calendar/20.js';\nimport Email20 from '../../internal/vendor/@carbon/web-components/icons/email/20.js';\nimport Chat20 from '../../internal/vendor/@carbon/web-components/icons/chat/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { Constructor } from '../../globals/defs';\nimport { CTA_TYPE } from '../../components/cta/defs';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Icons to use, keyed by CTA type.\n */\nexport const icons = {\n [CTA_TYPE.LOCAL]: ArrowRight20,\n [CTA_TYPE.DOWNLOAD]: Download20,\n [CTA_TYPE.EXTERNAL]: Launch20,\n [CTA_TYPE.NEW_TAB]: NewTab20,\n [CTA_TYPE.JUMP]: ArrowDown20,\n [CTA_TYPE.VIDEO]: PlayOutline20,\n [CTA_TYPE.PDF]: DocumentPDF20,\n [CTA_TYPE.BLOG]: Blog20,\n [CTA_TYPE.EMAIL]: Email20,\n [CTA_TYPE.SCHEDULE]: Calendar20,\n [CTA_TYPE.CHAT]: Chat20,\n [CTA_TYPE.CALL]: Phone20,\n};\n\n/**\n * Aria Labels to use, keyed by CTA type.\n */\nexport const ariaLabels = {\n [CTA_TYPE.LOCAL]: '',\n [CTA_TYPE.DOWNLOAD]: ' - This link downloads a file',\n [CTA_TYPE.EXTERNAL]: ' - This link opens in a new tab',\n [CTA_TYPE.NEW_TAB]: ' - This link opens in a new tab',\n [CTA_TYPE.JUMP]: '',\n [CTA_TYPE.VIDEO]: ' - This link plays a video',\n [CTA_TYPE.PDF]: ' - This link downloads a pdf',\n [CTA_TYPE.BLOG]: '',\n};\n\nexport const types = CTA_TYPE;\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic of handling link for CTA.\n */\nconst CTAMixin = <T extends Constructor<HTMLElement>>(Base: T) => {\n abstract class CTAMixinImpl extends Base {\n /**\n * The `<a>`.\n *\n * @internal\n */\n abstract _linkNode;\n\n /**\n * Handles `click` event on the `<a>.\n *\n * @param event The event.\n */\n _handleClick(event: MouseEvent) {\n const { disabled } = this;\n if (disabled) {\n event.preventDefault(); // Stop following the link\n event.stopPropagation(); // Stop firing `onClick`\n }\n }\n\n /**\n * The CTA type.\n */\n abstract ctaType: CTA_TYPE;\n\n /**\n * `true` if the button should be disabled.\n */\n abstract disabled?: boolean;\n\n /**\n * The default file name.\n */\n abstract download?: string;\n\n /**\n * Link `href`.\n */\n abstract href?: string;\n\n /**\n * The link target.\n */\n abstract target?: string;\n\n /**\n * @returns The template for the icon.\n */\n _renderIcon() {\n const { ctaType } = this;\n return html`\n <slot name=\"icon\">\n <span class=\"bx--visually-hidden\">${ariaLabels[ctaType]}</span>\n ${icons[ctaType]?.({\n class: `${prefix}--card__cta ${ddsPrefix}-ce--cta__icon`,\n })}\n </slot>\n `;\n }\n\n /**\n * Handles `.updated()` method of `lit-element`.\n */\n updated(changedProperties) {\n // Declaring this mixin as it extends `LitElement` seems to cause a TS error\n // @ts-ignore\n super.updated(changedProperties);\n const { ctaType, _linkNode: linkNode } = this;\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('download')\n ) {\n const { download } = this;\n\n const downloadTypes = [CTA_TYPE.DOWNLOAD, CTA_TYPE.PDF];\n\n if (!downloadTypes.includes(ctaType) && download) {\n // eslint-disable-next-line no-console\n console.warn(\n `\\`download\\` property used with a CTA data item besides \\`type: download|pdf\\` (\\`type: ${ctaType}\\`).`\n );\n }\n\n const contactMethods = {\n [CTA_TYPE.EMAIL]: 'email-link',\n [CTA_TYPE.SCHEDULE]: 'scheduler-link',\n [CTA_TYPE.CHAT]: 'chat-link',\n [CTA_TYPE.CALL]: 'phone-link',\n };\n\n if (Object.keys(contactMethods).includes(ctaType)) {\n linkNode.dataset.ibmContact = contactMethods[ctaType];\n }\n }\n // TODO: See why `linkNode` can possibly be `null`\n if (linkNode && linkNode.nodeName === 'A') {\n if (changedProperties.has('ctaType') || changedProperties.has('href')) {\n const { href } = this;\n const hrefValue = ctaType !== CTA_TYPE.VIDEO ? href : '#';\n // If this CTA is of video, uses the link as the action button\n if (hrefValue == null) {\n linkNode.removeAttribute('href');\n } else {\n linkNode.setAttribute('href', hrefValue);\n }\n }\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('target')\n ) {\n // Default the target to `_blank` if this CTA is an external link and\n // target is not already set\n const { target } = this;\n\n const newTabTypes = [CTA_TYPE.EXTERNAL, CTA_TYPE.NEW_TAB];\n\n const targetInEffect =\n newTabTypes.includes(ctaType) && !target ? '_blank' : target;\n\n if (!targetInEffect) {\n linkNode.removeAttribute('target');\n } else {\n linkNode.setAttribute('target', targetInEffect);\n }\n }\n if (linkNode.hasAttribute('aria-label')) {\n linkNode.setAttribute(\n 'aria-label',\n linkNode.getAttribute('aria-label') +\n (ctaType ? ariaLabels[ctaType] : '')\n );\n }\n }\n }\n }\n\n return CTAMixinImpl;\n};\n\nexport type CTAMixinImpl = InstanceType<ReturnType<typeof CTAMixin>>;\n\nexport default CTAMixin;\n"],"mappings":";;;;;;;;;;;;;;;AASA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,EAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,EAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,EAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,EAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,EAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,EAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,EAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,GAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,GAAA,GAAAX,sBAAA,CAAAF,OAAA;AACA,IAAAc,GAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,UAAA,GAAAb,sBAAA,CAAAF,OAAA;AAEA,IAAAgB,KAAA,GAAAhB,OAAA;AAAqD,IAAAiB,MAAA,EAAAC,WAAA,EAAAC,eAAA;AAzBrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,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AAC;YAClC,CAAC,MAAM;cACLjB,QAAQ,CAACkB,YAAY,CAAC,MAAM,EAAEF,SAAS,CAAC;YAC1C;UACF;UACA,IACElB,iBAAiB,CAACI,GAAG,CAAC,SAAS,CAAC,IAChCJ,iBAAiB,CAACI,GAAG,CAAC,QAAQ,CAAC,EAC/B;YACA;YACA;YACA,IAAQiB,MAAM,GAAK,IAAI,CAAfA,MAAM;YAEd,IAAMC,WAAW,GAAG,CAACxE,cAAQ,CAACK,QAAQ,EAAEL,cAAQ,CAACO,OAAO,CAAC;YAEzD,IAAMkE,cAAc,GAClBD,WAAW,CAACd,QAAQ,CAACb,OAAO,CAAC,IAAI,CAAC0B,MAAM,GAAG,QAAQ,GAAGA,MAAM;YAE9D,IAAI,CAACE,cAAc,EAAE;cACnBrB,QAAQ,CAACiB,eAAe,CAAC,QAAQ,CAAC;YACpC,CAAC,MAAM;cACLjB,QAAQ,CAACkB,YAAY,CAAC,QAAQ,EAAEG,cAAc,CAAC;YACjD;UACF;UACA,IAAIrB,QAAQ,CAACsB,YAAY,CAAC,YAAY,CAAC,EAAE;YACvCtB,QAAQ,CAACkB,YAAY,CACnB,YAAY,EACZlB,QAAQ,CAACuB,YAAY,CAAC,YAAY,CAAC,IAChC9B,OAAO,GAAGnB,UAAU,CAACmB,OAAO,CAAC,GAAG,EAAE,CACvC,CAAC;UACH;QACF;MACF;IAAC;IAAA,OAAAf,YAAA;EAAA,EAtIiCD,IAAI;EAyIxC,OAAOC,YAAY;AACrB,CAAC;AAAC,IAAA8C,QAAA,GAIahD,QAAQ;AAAAH,OAAA,cAAAmD,QAAA"}
|
|
1
|
+
{"version":3,"file":"cta.js","names":["_litElement","require","_settings","_interopRequireDefault","_","_2","_3","_4","_5","_6","_7","_8","_9","_10","_11","_12","_settings2","_defs","_icons","_ariaLabels","_templateObject","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","prefix","settings","ddsPrefix","ddsSettings","stablePrefix","icons","exports","_defineProperty2","CTA_TYPE","LOCAL","ArrowRight20","DOWNLOAD","Download20","EXTERNAL","Launch20","NEW_TAB","NewTab20","JUMP","ArrowDown20","VIDEO","PlayOutline20","PDF","DocumentPDF20","BLOG","Blog20","EMAIL","Email20","SCHEDULE","Calendar20","CHAT","Chat20","CALL","Phone20","ariaLabels","types","CTAMixin","Base","CTAMixinImpl","_Base","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_handleClick","event","disabled","preventDefault","stopPropagation","_renderIcon","_icons$ctaType","ctaType","html","_taggedTemplateLiteral2","concat","updated","changedProperties","_get2","linkNode","_linkNode","has","_contactMethods","download","downloadTypes","includes","console","warn","contactMethods","Object","keys","dataset","ibmContact","nodeName","href","hrefValue","removeAttribute","setAttribute","target","newTabTypes","targetInEffect","hasAttribute","getAttribute","_default"],"sources":["component-mixins/cta/cta.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '../../internal/vendor/@carbon/web-components/icons/arrow--down/20.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20.js';\nimport Download20 from '../../internal/vendor/@carbon/web-components/icons/download/20.js';\nimport Launch20 from '../../internal/vendor/@carbon/web-components/icons/launch/20.js';\nimport PlayOutline20 from '../../internal/vendor/@carbon/web-components/icons/play--outline/20.js';\nimport Blog20 from '../../internal/vendor/@carbon/web-components/icons/blog/20.js';\nimport DocumentPDF20 from '../../internal/vendor/@carbon/web-components/icons/document--pdf/20.js';\nimport NewTab20 from '../../internal/vendor/@carbon/web-components/icons/new-tab/20.js';\nimport Phone20 from '../../internal/vendor/@carbon/web-components/icons/phone/20.js';\nimport Calendar20 from '../../internal/vendor/@carbon/web-components/icons/calendar/20.js';\nimport Email20 from '../../internal/vendor/@carbon/web-components/icons/email/20.js';\nimport Chat20 from '../../internal/vendor/@carbon/web-components/icons/chat/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { Constructor } from '../../globals/defs';\nimport { CTA_TYPE } from '../../components/cta/defs';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Icons to use, keyed by CTA type.\n */\nexport const icons = {\n [CTA_TYPE.LOCAL]: ArrowRight20,\n [CTA_TYPE.DOWNLOAD]: Download20,\n [CTA_TYPE.EXTERNAL]: Launch20,\n [CTA_TYPE.NEW_TAB]: NewTab20,\n [CTA_TYPE.JUMP]: ArrowDown20,\n [CTA_TYPE.VIDEO]: PlayOutline20,\n [CTA_TYPE.PDF]: DocumentPDF20,\n [CTA_TYPE.BLOG]: Blog20,\n [CTA_TYPE.EMAIL]: Email20,\n [CTA_TYPE.SCHEDULE]: Calendar20,\n [CTA_TYPE.CHAT]: Chat20,\n [CTA_TYPE.CALL]: Phone20,\n};\n\n/**\n * Aria Labels to use, keyed by CTA type.\n */\nexport const ariaLabels = {\n [CTA_TYPE.LOCAL]: '',\n [CTA_TYPE.DOWNLOAD]: ' - This link downloads a file',\n [CTA_TYPE.EXTERNAL]: ' - This link opens in a new tab',\n [CTA_TYPE.NEW_TAB]: ' - This link opens in a new tab',\n [CTA_TYPE.JUMP]: '',\n [CTA_TYPE.VIDEO]: ' - This link plays a video',\n [CTA_TYPE.PDF]: ' - This link downloads a pdf',\n [CTA_TYPE.BLOG]: '',\n};\n\nexport const types = CTA_TYPE;\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic of handling link for CTA.\n */\nconst CTAMixin = <T extends Constructor<HTMLElement>>(Base: T) => {\n abstract class CTAMixinImpl extends Base {\n /**\n * The `<a>`.\n *\n * @internal\n */\n abstract _linkNode;\n\n /**\n * Handles `click` event on the `<a>.\n *\n * @param event The event.\n */\n _handleClick(event: MouseEvent) {\n const { disabled } = this;\n if (disabled) {\n event.preventDefault(); // Stop following the link\n event.stopPropagation(); // Stop firing `onClick`\n }\n }\n\n /**\n * The CTA type.\n */\n abstract ctaType: CTA_TYPE;\n\n /**\n * `true` if the button should be disabled.\n */\n abstract disabled?: boolean;\n\n /**\n * The default file name.\n */\n abstract download?: string;\n\n /**\n * Link `href`.\n */\n abstract href?: string;\n\n /**\n * The link target.\n */\n abstract target?: string;\n\n /**\n * @returns The template for the icon.\n */\n _renderIcon() {\n const { ctaType } = this;\n return html`\n <slot name=\"icon\">\n <span class=\"bx--visually-hidden\">${ariaLabels[ctaType]}</span>\n ${icons[ctaType]?.({\n class: `${prefix}--card__cta ${ddsPrefix}-ce--cta__icon`,\n })}\n </slot>\n `;\n }\n\n /**\n * Handles `.updated()` method of `lit-element`.\n */\n updated(changedProperties) {\n // Declaring this mixin as it extends `LitElement` seems to cause a TS error\n // @ts-ignore\n super.updated(changedProperties);\n const { ctaType, _linkNode: linkNode } = this;\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('download')\n ) {\n const { download } = this;\n\n const downloadTypes = [CTA_TYPE.DOWNLOAD, CTA_TYPE.PDF];\n\n if (!downloadTypes.includes(ctaType) && download) {\n // eslint-disable-next-line no-console\n console.warn(\n `\\`download\\` property used with a CTA data item besides \\`type: download|pdf\\` (\\`type: ${ctaType}\\`).`\n );\n }\n\n const contactMethods = {\n [CTA_TYPE.EMAIL]: 'email-link',\n [CTA_TYPE.SCHEDULE]: 'scheduler-link',\n [CTA_TYPE.CHAT]: 'chat-link',\n [CTA_TYPE.CALL]: 'phone-link',\n };\n\n if (Object.keys(contactMethods).includes(ctaType)) {\n linkNode.dataset.ibmContact = contactMethods[ctaType];\n }\n }\n // TODO: See why `linkNode` can possibly be `null`\n if (linkNode && linkNode.nodeName === 'A') {\n if (changedProperties.has('ctaType') || changedProperties.has('href')) {\n const { href } = this;\n const hrefValue = ctaType !== CTA_TYPE.VIDEO ? href : '#';\n // If this CTA is of video, uses the link as the action button\n if (hrefValue == null) {\n linkNode.removeAttribute('href');\n } else {\n linkNode.setAttribute('href', hrefValue);\n }\n }\n if (\n changedProperties.has('ctaType') ||\n changedProperties.has('target')\n ) {\n // Default the target to `_blank` if this CTA is an external link and\n // target is not already set\n const { target } = this;\n\n const newTabTypes = [CTA_TYPE.EXTERNAL, CTA_TYPE.NEW_TAB];\n\n const targetInEffect =\n newTabTypes.includes(ctaType) && !target ? '_blank' : target;\n\n if (!targetInEffect) {\n linkNode.removeAttribute('target');\n } else {\n linkNode.setAttribute('target', targetInEffect);\n }\n }\n if (linkNode.hasAttribute('aria-label')) {\n linkNode.setAttribute(\n 'aria-label',\n linkNode.getAttribute('aria-label') +\n (ctaType ? ariaLabels[ctaType] : '')\n );\n }\n }\n }\n }\n\n return CTAMixinImpl;\n};\n\nexport type CTAMixinImpl = InstanceType<ReturnType<typeof CTAMixin>>;\n\nexport default CTAMixin;\n"],"mappings":";;;;;;;;;;;;;;;AASA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,EAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,EAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,EAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,EAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,EAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,EAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,EAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,EAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,GAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,GAAA,GAAAX,sBAAA,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,CAACmB,OAAO,CAAC,GAAG,EAAE,CACvC,CAAC;UACH;QACF;MACF;IAAC;IAAA,OAAAf,YAAA;EAAA,EAtIiCD,IAAI;EAyIxC,OAAOC,YAAY;AACrB,CAAC;AAAC,IAAA8C,QAAA,GAAA7E,OAAA,cAIa6B,QAAQ"}
|
|
@@ -36,13 +36,12 @@ var ddsPrefix = _settings["default"].stablePrefix;
|
|
|
36
36
|
/**
|
|
37
37
|
* Icons to use, keyed by CTA type.
|
|
38
38
|
*/
|
|
39
|
-
var icons = (_icons = {}, (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.LOCAL, _2["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.DOWNLOAD, _3["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EXTERNAL, _4["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.JUMP, _["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.VIDEO, _5["default"]), _icons);
|
|
39
|
+
var icons = exports.icons = (_icons = {}, (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.LOCAL, _2["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.DOWNLOAD, _3["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.EXTERNAL, _4["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.JUMP, _["default"]), (0, _defineProperty2["default"])(_icons, _defs.CTA_TYPE.VIDEO, _5["default"]), _icons);
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @param Base The base class.
|
|
43
43
|
* @returns A mix-in implementing the logic of handling link for CTA.
|
|
44
44
|
*/
|
|
45
|
-
exports.icons = icons;
|
|
46
45
|
var VideoCTAMixin = function VideoCTAMixin(Base) {
|
|
47
46
|
var VideoCTAMixinImpl = /*#__PURE__*/function (_Base) {
|
|
48
47
|
(0, _inherits2["default"])(VideoCTAMixinImpl, _Base);
|
|
@@ -206,6 +205,5 @@ var VideoCTAMixin = function VideoCTAMixin(Base) {
|
|
|
206
205
|
}(Base);
|
|
207
206
|
return VideoCTAMixinImpl;
|
|
208
207
|
};
|
|
209
|
-
var _default = VideoCTAMixin;
|
|
210
|
-
exports["default"] = _default;
|
|
208
|
+
var _default = exports["default"] = VideoCTAMixin;
|
|
211
209
|
//# sourceMappingURL=video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.js","names":["_","_interopRequireDefault","require","_2","_3","_4","_5","_settings","_defs","_KalturaPlayer","_icons","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ddsPrefix","ddsSettings","stablePrefix","icons","_defineProperty2","CTA_TYPE","LOCAL","ArrowRight20","DOWNLOAD","Download20","EXTERNAL","Launch20","JUMP","ArrowDown20","VIDEO","PlayOutline20","exports","VideoCTAMixin","Base","VideoCTAMixinImpl","_Base","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_handleClick","event","focus","ctaType","disabled","href","videoName","videoDescription","preventDefault","_ref","eventRunAction","dispatchEvent","CustomEvent","bubbles","cancelable","composed","detail","updated","changedProperties","_get2","videoDuration","_ref2","eventRequestVideoData","has","offsetWidth","_updateVideoThumbnailUrl","videoThumbnailUrl","KalturaPlayerAPI","getThumbnailUrl","mediaId","width","String","get","concat","_default"],"sources":["component-mixins/cta/video.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport ArrowDown20 from '../../internal/vendor/@carbon/web-components/icons/arrow--down/20.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20.js';\nimport Download20 from '../../internal/vendor/@carbon/web-components/icons/download/20.js';\nimport Launch20 from '../../internal/vendor/@carbon/web-components/icons/launch/20.js';\nimport PlayOutline20 from '../../internal/vendor/@carbon/web-components/icons/play--outline/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { Constructor } from '../../globals/defs';\nimport { CTA_TYPE } from '../../components/cta/defs';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Icons to use, keyed by CTA type.\n */\nexport const icons = {\n [CTA_TYPE.LOCAL]: ArrowRight20,\n [CTA_TYPE.DOWNLOAD]: Download20,\n [CTA_TYPE.EXTERNAL]: Launch20,\n [CTA_TYPE.JUMP]: ArrowDown20,\n [CTA_TYPE.VIDEO]: PlayOutline20,\n};\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic of handling link for CTA.\n */\nconst VideoCTAMixin = <T extends Constructor<HTMLElement>>(Base: T) => {\n abstract class VideoCTAMixinImpl extends Base {\n /**\n * Handles `click` event on the `<a>.\n *\n * @param event The event.\n */\n _handleClick(event: MouseEvent) {\n this.focus();\n const { ctaType, disabled, href, videoName, videoDescription } = this;\n if (ctaType === CTA_TYPE.VIDEO) {\n event.preventDefault(); // Stop following the link\n }\n if (!disabled) {\n const { eventRunAction } = this.constructor as typeof VideoCTAMixinImpl;\n this.dispatchEvent(\n new CustomEvent(eventRunAction, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n href,\n ctaType,\n videoName,\n videoDescription,\n },\n })\n );\n }\n }\n\n /**\n * The CTA type.\n */\n abstract ctaType: CTA_TYPE;\n\n /**\n * `true` if the button should be disabled.\n */\n abstract disabled?: boolean;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n abstract formatVideoCaption?:\n | never\n | (({ duration, name }: { duration?: string; name?: string }) => string);\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n abstract formatVideoDuration?:\n | never\n | (({ duration }: { duration?: number }) => string);\n\n /**\n * Link `href`.\n */\n abstract href?: string;\n\n /**\n * The video duration.\n */\n abstract videoDuration?: never | number;\n\n /**\n * The video name.\n */\n abstract videoName?: never | string;\n\n /**\n * The video custom description.\n */\n abstract videoDescription?: never | string;\n\n /**\n * The video thumbnail URL.\n */\n abstract videoThumbnailUrl?: never | string;\n\n /**\n * Handles `.updated()` method of `lit-element`.\n */\n updated(changedProperties) {\n // Declaring this mixin as it extends `LitElement` seems to cause a TS error\n // @ts-ignore\n super.updated(changedProperties);\n const { ctaType, videoName, videoDescription, href, videoDuration } =\n this;\n const { eventRequestVideoData } = this\n .constructor as typeof VideoCTAMixinImpl;\n if (changedProperties.has('ctaType') && ctaType === CTA_TYPE.VIDEO) {\n if (typeof videoDuration === 'undefined') {\n this.dispatchEvent(\n new CustomEvent(eventRequestVideoData, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n href,\n videoName,\n videoDescription,\n },\n })\n );\n }\n }\n\n if (\n (changedProperties.has('videoName') &&\n (videoName === null || videoName === 'null')) ||\n changedProperties.has('videoDescription')\n ) {\n this.dispatchEvent(\n new CustomEvent(eventRequestVideoData, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n videoName,\n videoDescription,\n href,\n },\n })\n );\n }\n\n if (ctaType === CTA_TYPE.VIDEO && this.offsetWidth > 0) {\n this._updateVideoThumbnailUrl();\n }\n }\n\n /**\n * Updates video thumbnail url to match card width.\n */\n _updateVideoThumbnailUrl() {\n this.videoThumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.href,\n width: String(this.offsetWidth),\n });\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRequestVideoData() {\n return `${ddsPrefix}-cta-request-video-data`;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRunAction() {\n return `${ddsPrefix}-cta-run-action`;\n }\n }\n\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EAGA,SAAAA,IAAA,EAA4B;QAC1B,UAAAC,MAAA,CAAU5D,SAAS;MACrB;IAAC;IAAA,OAAAmB,iBAAA;EAAA,EA3JsCD,IAAI;EA8J7C,OAAOC,iBAAiB;AAC1B,CAAC;AAAC,IAAA0C,QAAA,GAIa5C,aAAa;AAAAD,OAAA,cAAA6C,QAAA"}
|
|
1
|
+
{"version":3,"file":"video.js","names":["_","_interopRequireDefault","require","_2","_3","_4","_5","_settings","_defs","_KalturaPlayer","_icons","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ddsPrefix","ddsSettings","stablePrefix","icons","exports","_defineProperty2","CTA_TYPE","LOCAL","ArrowRight20","DOWNLOAD","Download20","EXTERNAL","Launch20","JUMP","ArrowDown20","VIDEO","PlayOutline20","VideoCTAMixin","Base","VideoCTAMixinImpl","_Base","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_handleClick","event","focus","ctaType","disabled","href","videoName","videoDescription","preventDefault","_ref","eventRunAction","dispatchEvent","CustomEvent","bubbles","cancelable","composed","detail","updated","changedProperties","_get2","videoDuration","_ref2","eventRequestVideoData","has","offsetWidth","_updateVideoThumbnailUrl","videoThumbnailUrl","KalturaPlayerAPI","getThumbnailUrl","mediaId","width","String","get","concat","_default"],"sources":["component-mixins/cta/video.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport ArrowDown20 from '../../internal/vendor/@carbon/web-components/icons/arrow--down/20.js';\nimport ArrowRight20 from '../../internal/vendor/@carbon/web-components/icons/arrow--right/20.js';\nimport Download20 from '../../internal/vendor/@carbon/web-components/icons/download/20.js';\nimport Launch20 from '../../internal/vendor/@carbon/web-components/icons/launch/20.js';\nimport PlayOutline20 from '../../internal/vendor/@carbon/web-components/icons/play--outline/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport { Constructor } from '../../globals/defs';\nimport { CTA_TYPE } from '../../components/cta/defs';\nimport KalturaPlayerAPI from '../../internal/vendor/@carbon/ibmdotcom-services/services/KalturaPlayer/KalturaPlayer';\n\nconst { stablePrefix: ddsPrefix } = ddsSettings;\n\n/**\n * Icons to use, keyed by CTA type.\n */\nexport const icons = {\n [CTA_TYPE.LOCAL]: ArrowRight20,\n [CTA_TYPE.DOWNLOAD]: Download20,\n [CTA_TYPE.EXTERNAL]: Launch20,\n [CTA_TYPE.JUMP]: ArrowDown20,\n [CTA_TYPE.VIDEO]: PlayOutline20,\n};\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic of handling link for CTA.\n */\nconst VideoCTAMixin = <T extends Constructor<HTMLElement>>(Base: T) => {\n abstract class VideoCTAMixinImpl extends Base {\n /**\n * Handles `click` event on the `<a>.\n *\n * @param event The event.\n */\n _handleClick(event: MouseEvent) {\n this.focus();\n const { ctaType, disabled, href, videoName, videoDescription } = this;\n if (ctaType === CTA_TYPE.VIDEO) {\n event.preventDefault(); // Stop following the link\n }\n if (!disabled) {\n const { eventRunAction } = this.constructor as typeof VideoCTAMixinImpl;\n this.dispatchEvent(\n new CustomEvent(eventRunAction, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n href,\n ctaType,\n videoName,\n videoDescription,\n },\n })\n );\n }\n }\n\n /**\n * The CTA type.\n */\n abstract ctaType: CTA_TYPE;\n\n /**\n * `true` if the button should be disabled.\n */\n abstract disabled?: boolean;\n\n /**\n * The formatter for the video caption, composed with the video name and the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n abstract formatVideoCaption?:\n | never\n | (({ duration, name }: { duration?: string; name?: string }) => string);\n\n /**\n * The formatter for the video duration.\n * Should be changed upon the locale the UI is rendered with.\n */\n abstract formatVideoDuration?:\n | never\n | (({ duration }: { duration?: number }) => string);\n\n /**\n * Link `href`.\n */\n abstract href?: string;\n\n /**\n * The video duration.\n */\n abstract videoDuration?: never | number;\n\n /**\n * The video name.\n */\n abstract videoName?: never | string;\n\n /**\n * The video custom description.\n */\n abstract videoDescription?: never | string;\n\n /**\n * The video thumbnail URL.\n */\n abstract videoThumbnailUrl?: never | string;\n\n /**\n * Handles `.updated()` method of `lit-element`.\n */\n updated(changedProperties) {\n // Declaring this mixin as it extends `LitElement` seems to cause a TS error\n // @ts-ignore\n super.updated(changedProperties);\n const { ctaType, videoName, videoDescription, href, videoDuration } =\n this;\n const { eventRequestVideoData } = this\n .constructor as typeof VideoCTAMixinImpl;\n if (changedProperties.has('ctaType') && ctaType === CTA_TYPE.VIDEO) {\n if (typeof videoDuration === 'undefined') {\n this.dispatchEvent(\n new CustomEvent(eventRequestVideoData, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n href,\n videoName,\n videoDescription,\n },\n })\n );\n }\n }\n\n if (\n (changedProperties.has('videoName') &&\n (videoName === null || videoName === 'null')) ||\n changedProperties.has('videoDescription')\n ) {\n this.dispatchEvent(\n new CustomEvent(eventRequestVideoData, {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: {\n videoName,\n videoDescription,\n href,\n },\n })\n );\n }\n\n if (ctaType === CTA_TYPE.VIDEO && this.offsetWidth > 0) {\n this._updateVideoThumbnailUrl();\n }\n }\n\n /**\n * Updates video thumbnail url to match card width.\n */\n _updateVideoThumbnailUrl() {\n this.videoThumbnailUrl = KalturaPlayerAPI.getThumbnailUrl({\n mediaId: this.href,\n width: String(this.offsetWidth),\n });\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRequestVideoData() {\n return `${ddsPrefix}-cta-request-video-data`;\n }\n\n /**\n * The name of the custom event fired when there is a user gesture to run the action.\n */\n static get eventRunAction() {\n return `${ddsPrefix}-cta-run-action`;\n }\n }\n\n return VideoCTAMixinImpl;\n};\n\nexport type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A,CAAU5D,SAAS;MACrB;IAAC;IAAA,OAAAmB,iBAAA;EAAA,EA3JsCD,IAAI;EA8J7C,OAAOC,iBAAiB;AAC1B,CAAC;AAAC,IAAA0C,QAAA,GAAAzD,OAAA,cAIaa,aAAa"}
|
|
@@ -25,7 +25,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
26
|
*/
|
|
27
27
|
var MQBreakpoints;
|
|
28
|
-
exports.MQBreakpoints = MQBreakpoints;
|
|
29
28
|
(function (MQBreakpoints) {
|
|
30
29
|
MQBreakpoints["SM"] = "sm";
|
|
31
30
|
MQBreakpoints["MD"] = "md";
|
|
@@ -39,7 +38,6 @@ var MQDirs;
|
|
|
39
38
|
* @returns A mix-in implementing the logic for performing actions when the
|
|
40
39
|
* viewport width crosses over configured Carbon breakpoints.
|
|
41
40
|
*/
|
|
42
|
-
exports.MQDirs = MQDirs;
|
|
43
41
|
(function (MQDirs) {
|
|
44
42
|
MQDirs["MIN"] = "min";
|
|
45
43
|
MQDirs["MAX"] = "max";
|
|
@@ -121,6 +119,5 @@ var MediaQueryMixin = function MediaQueryMixin(Base, config) {
|
|
|
121
119
|
}(Base);
|
|
122
120
|
return MediaQueryMixinImpl;
|
|
123
121
|
};
|
|
124
|
-
var _default = MediaQueryMixin;
|
|
125
|
-
exports["default"] = _default;
|
|
122
|
+
var _default = exports["default"] = MediaQueryMixin;
|
|
126
123
|
//# sourceMappingURL=media-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-query.js","names":["_layout","require","_windowOrGlobal","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","MQBreakpoints","exports","MQDirs","MediaQueryMixin","Base","config","MediaQueryMixinImpl","_Base","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_generateMediaQueriesByBreakpoint","_createClass2","key","value","_mqConfig","breakpoints","Object","keys","queries","forEach","bp","root","matchMedia","BXBreakpoints","width","_attachMediaQueryEventListeners","_this2","carbonBreakpoints","dir","MAX","toUpperCase","slice","funcName","addEventListener","bind","console","warn","nodeName","firstUpdated","_get2","_default"],"sources":["component-mixins/media-query/media-query.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Constructor } from '../../globals/defs';\nimport { breakpoints as BXBreakpoints } from '@carbon/layout';\nimport root from 'window-or-global';\n\nexport enum MQBreakpoints {\n SM = 'sm',\n MD = 'md',\n LG = 'lg',\n XLG = 'xlg',\n MAX = 'max',\n}\n\nexport enum MQDirs {\n MIN = 'min',\n MAX = 'max',\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic for performing actions when the\n * viewport width crosses over configured Carbon breakpoints.\n */\nconst MediaQueryMixin = <T extends Constructor<HTMLElement>>(\n Base: T,\n config: { [Property in MQBreakpoints]?: MQDirs }\n) => {\n abstract class MediaQueryMixinImpl extends Base {\n /**\n * Configuration passed as argument into MediaQueryMixin.\n */\n _mqConfig = config;\n\n /**\n * Generates a list of MediaQueryList objects keyed by breakpoint identifiers.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList\n */\n _generateMediaQueriesByBreakpoint(): { [index: string]: MediaQueryList } {\n const { _mqConfig: config } = this;\n\n const breakpoints = Object.keys(config) as MQBreakpoints[];\n const queries: { [Property in MQBreakpoints]?: MediaQueryList } = {};\n breakpoints.forEach((bp) => {\n queries[bp] = root.matchMedia(\n `(${config[bp]}-width: ${BXBreakpoints[bp].width})`\n );\n });\n return queries;\n }\n\n /**\n * A keyed list of MediaQueryList objects.\n */\n carbonBreakpoints = this._generateMediaQueriesByBreakpoint();\n\n /**\n * Sets up event listeners that fire any defined callback methods that\n * correspond to the breakpoint being crossed over.\n *\n * Example callback method names:\n * - mediaQueryCallbackSM\n * - mediaQueryCallbackLG\n * - mediaQueryCallbackMaxMD\n * - mediaQueryCallbackMaxMAX\n */\n _attachMediaQueryEventListeners() {\n const { _mqConfig: config, carbonBreakpoints } = this;\n\n Object.keys(carbonBreakpoints).forEach((bp) => {\n const dir =\n config[bp] === MQDirs.MAX\n ? `${config[bp][0].toUpperCase()}${config[bp].slice(1)}`\n : '';\n const funcName = `mediaQueryCallback${dir}${bp.toUpperCase()}`;\n if (typeof this[funcName] === 'function') {\n this.carbonBreakpoints[bp].addEventListener(\n 'change',\n this[funcName].bind(this)\n );\n } else {\n console.warn(\n `MediaQueryMixin: Element ${this.nodeName} has not defined a callback for the \"${bp}\" breakpoint. Please remove the breakpoint from the mixin configuration or implement the following method: ${funcName}`\n );\n }\n });\n }\n\n firstUpdated() {\n this._attachMediaQueryEventListeners();\n //@ts-ignore\n super.firstUpdated();\n }\n }\n\n return MediaQueryMixinImpl;\n};\n\nexport type MediaQueryMixinImpl = InstanceType<\n ReturnType<typeof MediaQueryMixin>\n>;\n\nexport default MediaQueryMixin;\n"],"mappings":";;;;;;;;;;;;;;;AAUA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAoC,SAAAG,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA,sBAXpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAaYC,aAAa;
|
|
1
|
+
{"version":3,"file":"media-query.js","names":["_layout","require","_windowOrGlobal","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","MQBreakpoints","exports","MQDirs","MediaQueryMixin","Base","config","MediaQueryMixinImpl","_Base","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_generateMediaQueriesByBreakpoint","_createClass2","key","value","_mqConfig","breakpoints","Object","keys","queries","forEach","bp","root","matchMedia","BXBreakpoints","width","_attachMediaQueryEventListeners","_this2","carbonBreakpoints","dir","MAX","toUpperCase","slice","funcName","addEventListener","bind","console","warn","nodeName","firstUpdated","_get2","_default"],"sources":["component-mixins/media-query/media-query.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { Constructor } from '../../globals/defs';\nimport { breakpoints as BXBreakpoints } from '@carbon/layout';\nimport root from 'window-or-global';\n\nexport enum MQBreakpoints {\n SM = 'sm',\n MD = 'md',\n LG = 'lg',\n XLG = 'xlg',\n MAX = 'max',\n}\n\nexport enum MQDirs {\n MIN = 'min',\n MAX = 'max',\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing the logic for performing actions when the\n * viewport width crosses over configured Carbon breakpoints.\n */\nconst MediaQueryMixin = <T extends Constructor<HTMLElement>>(\n Base: T,\n config: { [Property in MQBreakpoints]?: MQDirs }\n) => {\n abstract class MediaQueryMixinImpl extends Base {\n /**\n * Configuration passed as argument into MediaQueryMixin.\n */\n _mqConfig = config;\n\n /**\n * Generates a list of MediaQueryList objects keyed by breakpoint identifiers.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList\n */\n _generateMediaQueriesByBreakpoint(): { [index: string]: MediaQueryList } {\n const { _mqConfig: config } = this;\n\n const breakpoints = Object.keys(config) as MQBreakpoints[];\n const queries: { [Property in MQBreakpoints]?: MediaQueryList } = {};\n breakpoints.forEach((bp) => {\n queries[bp] = root.matchMedia(\n `(${config[bp]}-width: ${BXBreakpoints[bp].width})`\n );\n });\n return queries;\n }\n\n /**\n * A keyed list of MediaQueryList objects.\n */\n carbonBreakpoints = this._generateMediaQueriesByBreakpoint();\n\n /**\n * Sets up event listeners that fire any defined callback methods that\n * correspond to the breakpoint being crossed over.\n *\n * Example callback method names:\n * - mediaQueryCallbackSM\n * - mediaQueryCallbackLG\n * - mediaQueryCallbackMaxMD\n * - mediaQueryCallbackMaxMAX\n */\n _attachMediaQueryEventListeners() {\n const { _mqConfig: config, carbonBreakpoints } = this;\n\n Object.keys(carbonBreakpoints).forEach((bp) => {\n const dir =\n config[bp] === MQDirs.MAX\n ? `${config[bp][0].toUpperCase()}${config[bp].slice(1)}`\n : '';\n const funcName = `mediaQueryCallback${dir}${bp.toUpperCase()}`;\n if (typeof this[funcName] === 'function') {\n this.carbonBreakpoints[bp].addEventListener(\n 'change',\n this[funcName].bind(this)\n );\n } else {\n console.warn(\n `MediaQueryMixin: Element ${this.nodeName} has not defined a callback for the \"${bp}\" breakpoint. Please remove the breakpoint from the mixin configuration or implement the following method: ${funcName}`\n );\n }\n });\n }\n\n firstUpdated() {\n this._attachMediaQueryEventListeners();\n //@ts-ignore\n super.firstUpdated();\n }\n }\n\n return MediaQueryMixinImpl;\n};\n\n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;IAAC;IAAA,OAAAQ,mBAAA;EAAA,EAjEwCF,IAAI;EAoE/C,OAAOE,mBAAmB;AAC5B,CAAC;AAAC,IAAA4C,QAAA,GAAAjD,OAAA,cAMaE,eAAe"}
|
|
@@ -64,9 +64,9 @@ var ParentVisibilityMixin = function ParentVisibilityMixin(Base) {
|
|
|
64
64
|
event = _ref3[1];
|
|
65
65
|
var target = _this.closest(component);
|
|
66
66
|
while (target) {
|
|
67
|
-
var _target
|
|
67
|
+
var _target;
|
|
68
68
|
target.addEventListener(event, _this._onParentVisible.bind(_this));
|
|
69
|
-
target = (_target = target) === null || _target === void 0
|
|
69
|
+
target = (_target = target) === null || _target === void 0 || (_target = _target.parentElement) === null || _target === void 0 ? void 0 : _target.closest(component);
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -86,6 +86,5 @@ var ParentVisibilityMixin = function ParentVisibilityMixin(Base) {
|
|
|
86
86
|
}(Base);
|
|
87
87
|
return ParentVisibilityMixinImpl;
|
|
88
88
|
};
|
|
89
|
-
var _default = ParentVisibilityMixin;
|
|
90
|
-
exports["default"] = _default;
|
|
89
|
+
var _default = exports["default"] = ParentVisibilityMixin;
|
|
91
90
|
//# sourceMappingURL=parent-visibility.js.map
|