@carbon/ibmdotcom-web-components 1.26.0-rc.1 → 1.26.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/es/component-mixins/cta/cta.d.ts.map +1 -1
- package/es/component-mixins/cta/cta.js +12 -12
- package/es/component-mixins/cta/cta.js.map +1 -1
- package/es/component-mixins/cta/video.d.ts.map +1 -1
- package/es/component-mixins/cta/video.js +5 -5
- package/es/component-mixins/cta/video.js.map +1 -1
- package/es/components/back-to-top/__stories__/data/content.d.ts.map +1 -1
- package/es/components/back-to-top/__stories__/data/content.js +1 -1
- package/es/components/back-to-top/__stories__/data/content.js.map +1 -1
- package/es/components/back-to-top/back-to-top.d.ts +1 -1
- package/es/components/back-to-top/back-to-top.d.ts.map +1 -1
- package/es/components/back-to-top/back-to-top.js +3 -3
- package/es/components/back-to-top/back-to-top.js.map +1 -1
- package/es/components/background-media/background-media.d.ts.map +1 -1
- package/es/components/background-media/background-media.js +2 -2
- package/es/components/background-media/background-media.js.map +1 -1
- package/es/components/button/button.d.ts +1 -4
- package/es/components/button/button.d.ts.map +1 -1
- package/es/components/button/button.js +3 -3
- package/es/components/button/button.js.map +1 -1
- package/es/components/button-group/button-group.d.ts.map +1 -1
- package/es/components/button-group/button-group.js +1 -1
- package/es/components/button-group/button-group.js.map +1 -1
- package/es/components/card/card.d.ts +1 -1
- package/es/components/card/card.d.ts.map +1 -1
- package/es/components/card/card.js +1 -1
- package/es/components/card/card.js.map +1 -1
- package/es/components/card-in-card/card-in-card.d.ts.map +1 -1
- package/es/components/card-in-card/card-in-card.js +1 -1
- package/es/components/card-in-card/card-in-card.js.map +1 -1
- package/es/components/carousel/carousel.d.ts +10 -1
- package/es/components/carousel/carousel.d.ts.map +1 -1
- package/es/components/carousel/carousel.js +6 -6
- package/es/components/carousel/carousel.js.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts +3 -9
- package/es/components/content-item-horizontal/content-item-horizontal-media.d.ts.map +1 -1
- package/es/components/content-item-horizontal/content-item-horizontal-media.js +2 -2
- package/es/components/content-item-horizontal/content-item-horizontal-media.js.map +1 -1
- package/es/components/cta/card-cta.d.ts.map +1 -1
- package/es/components/cta/card-cta.js +1 -1
- package/es/components/cta/card-cta.js.map +1 -1
- package/es/components/cta/feature-cta.d.ts +4 -1
- package/es/components/cta/feature-cta.d.ts.map +1 -1
- package/es/components/cta/feature-cta.js +1 -1
- package/es/components/cta/feature-cta.js.map +1 -1
- package/es/components/cta/video-cta-composite.d.ts +9 -6
- package/es/components/cta/video-cta-composite.d.ts.map +1 -1
- package/es/components/cta/video-cta-composite.js +3 -3
- package/es/components/cta/video-cta-composite.js.map +1 -1
- package/es/components/dotcom-shell/__stories__/data/content.d.ts.map +1 -1
- package/es/components/dotcom-shell/__stories__/data/content.js +1 -1
- package/es/components/dotcom-shell/__stories__/data/content.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-body.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-body.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal-body.js +1 -1
- package/es/components/expressive-modal/expressive-modal-body.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.js +1 -1
- package/es/components/expressive-modal/expressive-modal-close-button.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.js +1 -1
- package/es/components/expressive-modal/expressive-modal-footer.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-header.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-header.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal-header.js +1 -1
- package/es/components/expressive-modal/expressive-modal-header.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.d.ts +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.js +1 -1
- package/es/components/expressive-modal/expressive-modal-heading.js.map +1 -1
- package/es/components/expressive-modal/expressive-modal.d.ts +5 -10
- package/es/components/expressive-modal/expressive-modal.d.ts.map +1 -1
- package/es/components/expressive-modal/expressive-modal.js +3 -3
- package/es/components/expressive-modal/expressive-modal.js.map +1 -1
- package/es/components/filter-panel/filter-group-item.d.ts +2 -4
- package/es/components/filter-panel/filter-group-item.d.ts.map +1 -1
- package/es/components/filter-panel/filter-group-item.js +1 -1
- package/es/components/filter-panel/filter-group-item.js.map +1 -1
- package/es/components/filter-panel/filter-group.d.ts +1 -1
- package/es/components/filter-panel/filter-group.d.ts.map +1 -1
- package/es/components/filter-panel/filter-group.js +1 -1
- package/es/components/filter-panel/filter-group.js.map +1 -1
- package/es/components/filter-panel/filter-modal-button.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-button.d.ts.map +1 -1
- package/es/components/filter-panel/filter-modal-button.js +1 -1
- package/es/components/filter-panel/filter-modal-button.js.map +1 -1
- package/es/components/filter-panel/filter-modal-footer.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-footer.d.ts.map +1 -1
- package/es/components/filter-panel/filter-modal-footer.js +1 -1
- package/es/components/filter-panel/filter-modal-footer.js.map +1 -1
- package/es/components/filter-panel/filter-modal-heading.d.ts +1 -1
- package/es/components/filter-panel/filter-modal-heading.d.ts.map +1 -1
- package/es/components/filter-panel/filter-modal-heading.js +1 -1
- package/es/components/filter-panel/filter-modal-heading.js.map +1 -1
- package/es/components/filter-panel/filter-panel-checkbox.d.ts +2 -2
- package/es/components/filter-panel/filter-panel-checkbox.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-checkbox.js +3 -3
- package/es/components/filter-panel/filter-panel-checkbox.js.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.d.ts +20 -12
- package/es/components/filter-panel/filter-panel-composite.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-composite.js +4 -4
- package/es/components/filter-panel/filter-panel-composite.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select-item.d.ts +0 -3
- 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 +2 -2
- package/es/components/filter-panel/filter-panel-input-select-item.js.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select.d.ts +5 -1
- package/es/components/filter-panel/filter-panel-input-select.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-input-select.js +2 -2
- package/es/components/filter-panel/filter-panel-input-select.js.map +1 -1
- package/es/components/filter-panel/filter-panel-modal.d.ts +4 -6
- package/es/components/filter-panel/filter-panel-modal.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel-modal.js +3 -3
- package/es/components/filter-panel/filter-panel-modal.js.map +1 -1
- package/es/components/filter-panel/filter-panel.d.ts +4 -2
- package/es/components/filter-panel/filter-panel.d.ts.map +1 -1
- package/es/components/filter-panel/filter-panel.js +2 -2
- package/es/components/filter-panel/filter-panel.js.map +1 -1
- package/es/components/footer/combo-box.d.ts +1 -1
- package/es/components/footer/combo-box.d.ts.map +1 -1
- package/es/components/footer/combo-box.js +1 -1
- package/es/components/footer/combo-box.js.map +1 -1
- package/es/components/footer/defs.d.ts +1 -1
- package/es/components/footer/defs.d.ts.map +1 -1
- package/es/components/footer/defs.js +1 -1
- package/es/components/footer/defs.js.map +1 -1
- package/es/components/footer/dropdown.d.ts +1 -1
- package/es/components/footer/dropdown.d.ts.map +1 -1
- package/es/components/footer/dropdown.js +3 -3
- package/es/components/footer/dropdown.js.map +1 -1
- package/es/components/footer/footer-composite.d.ts +3 -8
- package/es/components/footer/footer-composite.d.ts.map +1 -1
- package/es/components/footer/footer-composite.js +5 -5
- package/es/components/footer/footer-composite.js.map +1 -1
- package/es/components/footer/footer-logo.d.ts.map +1 -1
- package/es/components/footer/footer-logo.js +2 -2
- package/es/components/footer/footer-logo.js.map +1 -1
- package/es/components/footer/footer-nav-group.d.ts.map +1 -1
- package/es/components/footer/footer-nav-group.js +1 -1
- package/es/components/footer/footer-nav-group.js.map +1 -1
- package/es/components/footer/footer-nav-item.d.ts +1 -1
- package/es/components/footer/footer-nav-item.d.ts.map +1 -1
- package/es/components/footer/footer-nav-item.js +1 -1
- package/es/components/footer/footer-nav-item.js.map +1 -1
- package/es/components/footer/language-selector-desktop.d.ts.map +1 -1
- package/es/components/footer/language-selector-desktop.js +2 -2
- package/es/components/footer/language-selector-desktop.js.map +1 -1
- package/es/components/footer/language-selector-mobile.d.ts.map +1 -1
- package/es/components/footer/language-selector-mobile.js +2 -2
- package/es/components/footer/language-selector-mobile.js.map +1 -1
- package/es/components/footer/locale-button.d.ts +3 -1
- package/es/components/footer/locale-button.d.ts.map +1 -1
- package/es/components/footer/locale-button.js +3 -3
- package/es/components/footer/locale-button.js.map +1 -1
- package/es/components/image/image.d.ts +5 -1
- package/es/components/image/image.d.ts.map +1 -1
- package/es/components/image/image.js +3 -3
- package/es/components/image/image.js.map +1 -1
- package/es/components/image-with-caption/image-with-caption.d.ts.map +1 -1
- package/es/components/image-with-caption/image-with-caption.js +3 -3
- package/es/components/image-with-caption/image-with-caption.js.map +1 -1
- package/es/components/leadspace/breadcrumb-item.d.ts +1 -1
- package/es/components/leadspace/breadcrumb-item.d.ts.map +1 -1
- package/es/components/leadspace/breadcrumb-item.js +1 -1
- package/es/components/leadspace/breadcrumb-item.js.map +1 -1
- package/es/components/leadspace/breadcrumb-link.d.ts +1 -1
- package/es/components/leadspace/breadcrumb-link.d.ts.map +1 -1
- package/es/components/leadspace/breadcrumb-link.js +1 -1
- package/es/components/leadspace/breadcrumb-link.js.map +1 -1
- package/es/components/leadspace/breadcrumb.d.ts +1 -1
- package/es/components/leadspace/breadcrumb.d.ts.map +1 -1
- package/es/components/leadspace/breadcrumb.js +1 -1
- package/es/components/leadspace/breadcrumb.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts +8 -6
- package/es/components/leaving-ibm/leaving-ibm-composite.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-composite.js +7 -7
- package/es/components/leaving-ibm/leaving-ibm-composite.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts +2 -2
- package/es/components/leaving-ibm/leaving-ibm-modal-body.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js +3 -3
- package/es/components/leaving-ibm/leaving-ibm-modal-body.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal-heading.js.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.d.ts +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.d.ts.map +1 -1
- package/es/components/leaving-ibm/leaving-ibm-modal.js +2 -2
- package/es/components/leaving-ibm/leaving-ibm-modal.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.d.ts.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
- package/es/components/lightbox-media-viewer/lightbox-image-viewer.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts +3 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.d.ts.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js +1 -1
- package/es/components/lightbox-media-viewer/lightbox-media-viewer-body.js.map +1 -1
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.d.ts +1 -3
- 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 +2 -2
- package/es/components/lightbox-media-viewer/lightbox-video-player-composite.js.map +1 -1
- package/es/components/link-with-icon/link-with-icon.d.ts +1 -1
- package/es/components/link-with-icon/link-with-icon.d.ts.map +1 -1
- package/es/components/link-with-icon/link-with-icon.js +1 -1
- package/es/components/link-with-icon/link-with-icon.js.map +1 -1
- package/es/components/locale-modal/locale-item.d.ts +1 -1
- package/es/components/locale-modal/locale-item.d.ts.map +1 -1
- package/es/components/locale-modal/locale-item.js +1 -1
- package/es/components/locale-modal/locale-item.js.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal-composite.js +1 -1
- package/es/components/locale-modal/locale-modal-composite.js.map +1 -1
- package/es/components/locale-modal/locale-modal.d.ts.map +1 -1
- package/es/components/locale-modal/locale-modal.js +5 -5
- package/es/components/locale-modal/locale-modal.js.map +1 -1
- package/es/components/locale-modal/locale-search.d.ts.map +1 -1
- package/es/components/locale-modal/locale-search.js +1 -1
- package/es/components/locale-modal/locale-search.js.map +1 -1
- package/es/components/locale-modal/region-item.d.ts +1 -1
- package/es/components/locale-modal/region-item.d.ts.map +1 -1
- package/es/components/locale-modal/region-item.js +3 -3
- package/es/components/locale-modal/region-item.js.map +1 -1
- package/es/components/locale-modal/regions.d.ts +1 -1
- package/es/components/locale-modal/regions.d.ts.map +1 -1
- package/es/components/locale-modal/regions.js +1 -1
- package/es/components/locale-modal/regions.js.map +1 -1
- package/es/components/markdown/markdown.d.ts +4 -4
- package/es/components/markdown/markdown.d.ts.map +1 -1
- package/es/components/markdown/markdown.js +4 -4
- package/es/components/markdown/markdown.js.map +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.d.ts +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.js +1 -1
- package/es/components/masthead/cloud/cloud-left-nav-item.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-composite.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-composite.js +1 -1
- package/es/components/masthead/cloud/cloud-masthead-composite.js.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-profile.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-masthead-profile.js +1 -1
- package/es/components/masthead/cloud/cloud-masthead-profile.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-heading.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-category-link.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tab.js.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.d.ts.map +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js +1 -1
- package/es/components/masthead/cloud/cloud-megamenu-tabs.js.map +1 -1
- package/es/components/masthead/left-nav-item.d.ts +1 -1
- package/es/components/masthead/left-nav-item.d.ts.map +1 -1
- package/es/components/masthead/left-nav-item.js +1 -1
- package/es/components/masthead/left-nav-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-item.d.ts +1 -1
- package/es/components/masthead/left-nav-menu-item.d.ts.map +1 -1
- package/es/components/masthead/left-nav-menu-item.js +1 -1
- package/es/components/masthead/left-nav-menu-item.js.map +1 -1
- package/es/components/masthead/left-nav-menu-section.d.ts +11 -12
- package/es/components/masthead/left-nav-menu-section.d.ts.map +1 -1
- package/es/components/masthead/left-nav-menu-section.js +6 -6
- package/es/components/masthead/left-nav-menu-section.js.map +1 -1
- package/es/components/masthead/left-nav-menu.d.ts +3 -0
- package/es/components/masthead/left-nav-menu.d.ts.map +1 -1
- package/es/components/masthead/left-nav-menu.js +2 -2
- package/es/components/masthead/left-nav-menu.js.map +1 -1
- package/es/components/masthead/left-nav-name.d.ts +1 -1
- package/es/components/masthead/left-nav-name.d.ts.map +1 -1
- package/es/components/masthead/left-nav-name.js +2 -2
- package/es/components/masthead/left-nav-name.js.map +1 -1
- package/es/components/masthead/left-nav.d.ts +1 -1
- package/es/components/masthead/left-nav.d.ts.map +1 -1
- package/es/components/masthead/left-nav.js +3 -3
- package/es/components/masthead/left-nav.js.map +1 -1
- package/es/components/masthead/masthead-composite.d.ts.map +1 -1
- package/es/components/masthead/masthead-composite.js +2 -2
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/masthead/masthead-global-bar.d.ts +7 -4
- package/es/components/masthead/masthead-global-bar.d.ts.map +1 -1
- package/es/components/masthead/masthead-global-bar.js +3 -3
- package/es/components/masthead/masthead-global-bar.js.map +1 -1
- package/es/components/masthead/masthead-logo.d.ts +7 -12
- package/es/components/masthead/masthead-logo.d.ts.map +1 -1
- package/es/components/masthead/masthead-logo.js +4 -4
- package/es/components/masthead/masthead-logo.js.map +1 -1
- package/es/components/masthead/masthead-menu-button.d.ts +2 -2
- package/es/components/masthead/masthead-menu-button.d.ts.map +1 -1
- package/es/components/masthead/masthead-menu-button.js +3 -3
- package/es/components/masthead/masthead-menu-button.js.map +1 -1
- package/es/components/masthead/masthead-profile-item.d.ts +1 -1
- package/es/components/masthead/masthead-profile-item.d.ts.map +1 -1
- package/es/components/masthead/masthead-profile-item.js +1 -1
- package/es/components/masthead/masthead-profile-item.js.map +1 -1
- package/es/components/masthead/masthead-profile.d.ts +1 -1
- package/es/components/masthead/masthead-profile.d.ts.map +1 -1
- package/es/components/masthead/masthead-profile.js +5 -5
- package/es/components/masthead/masthead-profile.js.map +1 -1
- package/es/components/masthead/megamenu-category-group.d.ts.map +1 -1
- package/es/components/masthead/megamenu-category-group.js +2 -2
- package/es/components/masthead/megamenu-category-group.js.map +1 -1
- package/es/components/masthead/megamenu-category-link.d.ts +1 -1
- package/es/components/masthead/megamenu-category-link.d.ts.map +1 -1
- package/es/components/masthead/megamenu-category-link.js +1 -1
- package/es/components/masthead/megamenu-category-link.js.map +1 -1
- package/es/components/masthead/megamenu-link-with-icon.d.ts +1 -1
- package/es/components/masthead/megamenu-link-with-icon.d.ts.map +1 -1
- package/es/components/masthead/megamenu-link-with-icon.js +1 -1
- package/es/components/masthead/megamenu-link-with-icon.js.map +1 -1
- package/es/components/masthead/megamenu-right-navigation.d.ts.map +1 -1
- package/es/components/masthead/megamenu-right-navigation.js +1 -1
- package/es/components/masthead/megamenu-right-navigation.js.map +1 -1
- package/es/components/masthead/skip-to-content.d.ts +1 -1
- package/es/components/masthead/skip-to-content.d.ts.map +1 -1
- package/es/components/masthead/skip-to-content.js +1 -1
- package/es/components/masthead/skip-to-content.js.map +1 -1
- package/es/components/masthead/top-nav-item.d.ts +1 -1
- package/es/components/masthead/top-nav-item.d.ts.map +1 -1
- package/es/components/masthead/top-nav-item.js +1 -1
- package/es/components/masthead/top-nav-item.js.map +1 -1
- package/es/components/masthead/top-nav-menu-item.d.ts +1 -1
- package/es/components/masthead/top-nav-menu-item.d.ts.map +1 -1
- package/es/components/masthead/top-nav-menu-item.js +1 -1
- package/es/components/masthead/top-nav-menu-item.js.map +1 -1
- package/es/components/masthead/top-nav-menu.d.ts +1 -1
- package/es/components/masthead/top-nav-menu.d.ts.map +1 -1
- package/es/components/masthead/top-nav-menu.js +1 -1
- package/es/components/masthead/top-nav-menu.js.map +1 -1
- package/es/components/masthead/top-nav-name.d.ts.map +1 -1
- package/es/components/masthead/top-nav-name.js +1 -1
- package/es/components/masthead/top-nav-name.js.map +1 -1
- package/es/components/masthead/top-nav.d.ts +2 -11
- package/es/components/masthead/top-nav.d.ts.map +1 -1
- package/es/components/masthead/top-nav.js +6 -6
- package/es/components/masthead/top-nav.js.map +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.d.ts.map +1 -1
- package/es/components/pricing-table/pricing-table-annotation-toggle.js +2 -2
- package/es/components/pricing-table/pricing-table-annotation-toggle.js.map +1 -1
- package/es/components/pricing-table/pricing-table-cell.d.ts +1 -1
- package/es/components/pricing-table/pricing-table-cell.d.ts.map +1 -1
- package/es/components/pricing-table/pricing-table-cell.js +2 -2
- package/es/components/pricing-table/pricing-table-cell.js.map +1 -1
- package/es/components/pricing-table/pricing-table.d.ts +5 -8
- package/es/components/pricing-table/pricing-table.d.ts.map +1 -1
- package/es/components/pricing-table/pricing-table.js +2 -2
- package/es/components/pricing-table/pricing-table.js.map +1 -1
- package/es/components/search/search.d.ts +2 -2
- package/es/components/search/search.d.ts.map +1 -1
- package/es/components/search/search.js +2 -2
- package/es/components/search/search.js.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.d.ts.map +1 -1
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js +4 -4
- package/es/components/search-with-typeahead/scoped-search-dropdown-mobile.js.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.d.ts +10 -16
- package/es/components/search-with-typeahead/search-with-typeahead.d.ts.map +1 -1
- package/es/components/search-with-typeahead/search-with-typeahead.js +6 -6
- package/es/components/search-with-typeahead/search-with-typeahead.js.map +1 -1
- package/es/components/structured-list/index.d.ts +2 -2
- package/es/components/structured-list/index.d.ts.map +1 -1
- package/es/components/structured-list/index.js +2 -2
- package/es/components/structured-list/index.js.map +1 -1
- package/es/components/structured-list/structured-list-body.d.ts +1 -1
- package/es/components/structured-list/structured-list-body.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-body.js +1 -1
- package/es/components/structured-list/structured-list-body.js.map +1 -1
- package/es/components/structured-list/structured-list-cell.d.ts +1 -1
- package/es/components/structured-list/structured-list-cell.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-cell.js +4 -4
- package/es/components/structured-list/structured-list-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-head.d.ts +1 -1
- package/es/components/structured-list/structured-list-head.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-head.js +1 -1
- package/es/components/structured-list/structured-list-head.js.map +1 -1
- package/es/components/structured-list/structured-list-header-cell.d.ts +1 -1
- package/es/components/structured-list/structured-list-header-cell.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-header-cell.js +1 -1
- package/es/components/structured-list/structured-list-header-cell.js.map +1 -1
- package/es/components/structured-list/structured-list-header-row.d.ts +1 -1
- package/es/components/structured-list/structured-list-header-row.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-header-row.js +1 -1
- package/es/components/structured-list/structured-list-header-row.js.map +1 -1
- package/es/components/structured-list/structured-list-row.d.ts +1 -1
- package/es/components/structured-list/structured-list-row.d.ts.map +1 -1
- package/es/components/structured-list/structured-list-row.js +1 -1
- package/es/components/structured-list/structured-list-row.js.map +1 -1
- package/es/components/table-of-contents/table-of-contents.d.ts +24 -6
- package/es/components/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/es/components/table-of-contents/table-of-contents.js +5 -5
- package/es/components/table-of-contents/table-of-contents.js.map +1 -1
- package/es/components/tabs-extended/tabs-extended.d.ts.map +1 -1
- package/es/components/tabs-extended/tabs-extended.js +1 -1
- package/es/components/tabs-extended/tabs-extended.js.map +1 -1
- package/es/components/tag-link/tag-link.d.ts.map +1 -1
- package/es/components/tag-link/tag-link.js +1 -1
- package/es/components/tag-link/tag-link.js.map +1 -1
- package/es/components/video-player/video-player-composite.d.ts +7 -2
- package/es/components/video-player/video-player-composite.d.ts.map +1 -1
- package/es/components/video-player/video-player-composite.js +3 -3
- package/es/components/video-player/video-player-composite.js.map +1 -1
- package/es/components/video-player/video-player.d.ts +6 -0
- package/es/components/video-player/video-player.d.ts.map +1 -1
- package/es/components/video-player/video-player.js +2 -2
- package/es/components/video-player/video-player.js.map +1 -1
- package/es/components-react/back-to-top/back-to-top.js +1 -1
- package/es/components-react/background-media/background-media.js +1 -1
- package/es/components-react/button/button.js +2 -2
- package/es/components-react/button-group/button-group-item.js +1 -1
- package/es/components-react/button-group/button-group.js +1 -1
- package/es/components-react/callout-quote/callout-link-with-icon.js +1 -1
- package/es/components-react/callout-quote/callout-quote.js +1 -1
- package/es/components-react/callout-with-media/callout-with-media-copy.js +1 -1
- package/es/components-react/callout-with-media/callout-with-media-image.js +1 -1
- package/es/components-react/callout-with-media/callout-with-media-video.js +1 -1
- package/es/components-react/callout-with-media/callout-with-media.js +1 -1
- package/es/components-react/card/card-eyebrow.js +1 -1
- package/es/components-react/card/card-footer.js +1 -1
- package/es/components-react/card/card-heading.js +1 -1
- package/es/components-react/card/card.js +3 -3
- package/es/components-react/card/image-logo.js +1 -1
- package/es/components-react/card-group/card-group-card-link-item.js +1 -1
- package/es/components-react/card-group/card-group-item.js +1 -1
- package/es/components-react/card-group/card-group.js +1 -1
- package/es/components-react/card-in-card/card-in-card-image.js +1 -1
- package/es/components-react/card-in-card/card-in-card.js +1 -1
- package/es/components-react/card-link/card-link-heading.js +1 -1
- package/es/components-react/card-link/card-link.js +1 -1
- package/es/components-react/card-section-carousel/card-section-carousel.js +1 -1
- package/es/components-react/card-section-offset/card-section-offset.js +1 -1
- package/es/components-react/card-section-simple/card-section-simple.js +1 -1
- package/es/components-react/carousel/carousel.js +1 -1
- package/es/components-react/content-block/content-block-complementary.js +1 -1
- package/es/components-react/content-block/content-block-copy.js +1 -1
- package/es/components-react/content-block/content-block-heading.js +1 -1
- package/es/components-react/content-block/content-block-paragraph.js +1 -1
- package/es/components-react/content-block/content-block.js +1 -1
- package/es/components-react/content-block-cards/content-block-cards.js +1 -1
- package/es/components-react/content-block-horizontal/content-block-horizontal.js +1 -1
- package/es/components-react/content-block-media/content-block-media-content.js +1 -1
- package/es/components-react/content-block-media/content-block-media.js +1 -1
- package/es/components-react/content-block-mixed/content-block-mixed.js +1 -1
- package/es/components-react/content-block-segmented/content-block-segmented-item.js +1 -1
- package/es/components-react/content-block-segmented/content-block-segmented.js +1 -1
- package/es/components-react/content-block-simple/content-block-simple.js +1 -1
- package/es/components-react/content-group/content-group-copy.js +1 -1
- package/es/components-react/content-group/content-group-heading.js +1 -1
- package/es/components-react/content-group/content-group-paragraph.js +1 -1
- package/es/components-react/content-group/content-group.js +1 -1
- package/es/components-react/content-group-banner/content-group-banner.js +1 -1
- package/es/components-react/content-group-cards/content-group-cards-item.js +1 -1
- package/es/components-react/content-group-cards/content-group-cards.js +1 -1
- package/es/components-react/content-group-pictograms/content-group-pictograms.js +1 -1
- package/es/components-react/content-group-simple/content-group-simple.js +1 -1
- package/es/components-react/content-item/content-item-copy.js +1 -1
- package/es/components-react/content-item/content-item-heading.js +1 -1
- package/es/components-react/content-item/content-item-paragraph.js +1 -1
- package/es/components-react/content-item/content-item.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-copy.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-media.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
- package/es/components-react/content-item-horizontal/content-item-horizontal.js +1 -1
- package/es/components-react/content-section/content-section-copy.js +1 -1
- package/es/components-react/content-section/content-section-heading.js +1 -1
- package/es/components-react/content-section/content-section.js +1 -1
- package/es/components-react/cta/button-cta.js +1 -1
- package/es/components-react/cta/card-cta-footer.js +1 -1
- package/es/components-react/cta/card-cta-image.js +1 -1
- package/es/components-react/cta/card-cta.js +1 -1
- package/es/components-react/cta/card-link-cta.js +1 -1
- package/es/components-react/cta/feature-cta-footer.js +1 -1
- package/es/components-react/cta/feature-cta.js +1 -1
- package/es/components-react/cta/link-list-item-card-cta.js +1 -1
- package/es/components-react/cta/link-list-item-cta.js +1 -1
- package/es/components-react/cta/text-cta.js +1 -1
- package/es/components-react/cta/video-cta-composite.js +1 -1
- package/es/components-react/cta/video-cta-container.js +1 -1
- package/es/components-react/cta-block/cta-block-item-row.js +1 -1
- package/es/components-react/cta-block/cta-block-item.js +1 -1
- package/es/components-react/cta-block/cta-block.js +1 -1
- package/es/components-react/cta-section/cta-section.js +1 -1
- package/es/components-react/dotcom-shell/dotcom-shell-composite.js +1 -1
- package/es/components-react/dotcom-shell/dotcom-shell-container.js +1 -1
- package/es/components-react/dotcom-shell/dotcom-shell.js +1 -1
- package/es/components-react/expressive-modal/expressive-modal-body.js +3 -3
- package/es/components-react/expressive-modal/expressive-modal-close-button.js +3 -3
- package/es/components-react/expressive-modal/expressive-modal-footer.js +3 -3
- package/es/components-react/expressive-modal/expressive-modal-header.js +3 -3
- package/es/components-react/expressive-modal/expressive-modal-heading.js +3 -3
- package/es/components-react/expressive-modal/expressive-modal.js +1 -1
- package/es/components-react/feature-card/feature-card-footer.js +1 -1
- package/es/components-react/feature-card/feature-card.js +1 -1
- package/es/components-react/feature-section/feature-section-card-link.js +1 -1
- package/es/components-react/feature-section/feature-section.js +1 -1
- package/es/components-react/filter-panel/filter-group-item.js +3 -3
- package/es/components-react/filter-panel/filter-group.js +3 -3
- package/es/components-react/filter-panel/filter-modal-button.js +3 -3
- package/es/components-react/filter-panel/filter-modal-footer.js +3 -3
- package/es/components-react/filter-panel/filter-modal-heading.js +3 -3
- package/es/components-react/filter-panel/filter-panel-checkbox.js +3 -3
- package/es/components-react/filter-panel/filter-panel-composite.js +1 -1
- package/es/components-react/filter-panel/filter-panel-heading.js +1 -1
- package/es/components-react/filter-panel/filter-panel-input-select-item.js +1 -1
- package/es/components-react/filter-panel/filter-panel-input-select.js +1 -1
- package/es/components-react/filter-panel/filter-panel-modal.js +3 -3
- package/es/components-react/filter-panel/filter-panel.js +1 -1
- package/es/components-react/footer/dropdown.js +3 -3
- package/es/components-react/footer/footer-composite.js +1 -1
- package/es/components-react/footer/footer-container.js +1 -1
- package/es/components-react/horizontal-rule/horizontal-rule.js +1 -1
- package/es/components-react/image/image-item.js +1 -1
- package/es/components-react/image/image.js +1 -1
- package/es/components-react/leadspace/breadcrumb-item.js +3 -3
- package/es/components-react/leadspace/breadcrumb-link.js +3 -3
- package/es/components-react/leadspace/breadcrumb.js +3 -3
- package/es/components-react/leadspace/leadspace-heading.js +1 -1
- package/es/components-react/leadspace/leadspace-image.js +1 -1
- package/es/components-react/leadspace/leadspace.js +1 -1
- package/es/components-react/leadspace-block/leadspace-block-content.js +1 -1
- package/es/components-react/leadspace-block/leadspace-block-cta.js +1 -1
- package/es/components-react/leadspace-block/leadspace-block-heading.js +1 -1
- package/es/components-react/leadspace-block/leadspace-block-media.js +1 -1
- package/es/components-react/leadspace-block/leadspace-block.js +1 -1
- package/es/components-react/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
- package/es/components-react/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
- package/es/components-react/leadspace-with-search/leadspace-with-search-content.js +1 -1
- package/es/components-react/leadspace-with-search/leadspace-with-search-heading.js +1 -1
- package/es/components-react/leadspace-with-search/leadspace-with-search.js +1 -1
- package/es/components-react/leaving-ibm/leaving-ibm-composite.js +1 -1
- package/es/components-react/leaving-ibm/leaving-ibm-container.js +1 -1
- package/es/components-react/leaving-ibm/leaving-ibm-modal-body.js +3 -3
- package/es/components-react/leaving-ibm/leaving-ibm-modal-heading.js +3 -3
- package/es/components-react/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
- package/es/components-react/leaving-ibm/leaving-ibm-modal.js +3 -3
- package/es/components-react/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
- package/es/components-react/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
- package/es/components-react/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
- package/es/components-react/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
- package/es/components-react/lightbox-media-viewer/lightbox-video-player.js +1 -1
- package/es/components-react/link-list/link-list-heading.js +1 -1
- package/es/components-react/link-list/link-list-item-card.js +1 -1
- package/es/components-react/link-list/link-list-item.js +1 -1
- package/es/components-react/link-list/link-list.js +1 -1
- package/es/components-react/link-list-section/link-list-section.js +1 -1
- package/es/components-react/link-with-icon/link-with-icon.js +3 -3
- package/es/components-react/locale-modal/locale-modal-composite.js +1 -1
- package/es/components-react/locale-modal/locale-modal-container.js +1 -1
- package/es/components-react/logo-grid/logo-grid-item.js +1 -1
- package/es/components-react/logo-grid/logo-grid-link.js +1 -1
- package/es/components-react/logo-grid/logo-grid.js +1 -1
- package/es/components-react/markdown/markdown.js +1 -1
- package/es/components-react/masthead/masthead-composite.js +1 -1
- package/es/components-react/masthead/masthead-container.js +1 -1
- package/es/components-react/masthead/masthead.js +1 -1
- package/es/components-react/pictogram-item/pictogram-item.js +1 -1
- package/es/components-react/quote/quote-link-with-icon.js +1 -1
- package/es/components-react/quote/quote-source-bottom-copy.js +1 -1
- package/es/components-react/quote/quote-source-copy.js +1 -1
- package/es/components-react/quote/quote-source-heading.js +1 -1
- package/es/components-react/quote/quote.js +1 -1
- package/es/components-react/search-with-typeahead/scoped-search-dropdown-mobile.js +3 -3
- package/es/components-react/search-with-typeahead/scoped-search-dropdown.js +1 -1
- package/es/components-react/search-with-typeahead/search-with-typeahead-item.js +1 -1
- package/es/components-react/search-with-typeahead/search-with-typeahead.js +3 -3
- package/es/components-react/structured-list/structured-list-body.js +3 -3
- package/es/components-react/structured-list/structured-list-cell.js +3 -3
- package/es/components-react/structured-list/structured-list-group.js +1 -1
- package/es/components-react/structured-list/structured-list-head.js +3 -3
- package/es/components-react/structured-list/structured-list-header-cell.js +3 -3
- package/es/components-react/structured-list/structured-list-header-row.js +3 -3
- package/es/components-react/structured-list/structured-list-row.js +3 -3
- package/es/components-react/structured-list/structured-list.js +1 -1
- package/es/components-react/table-of-contents/table-of-contents.js +1 -1
- package/es/components-react/tabs-extended/tab.js +1 -1
- package/es/components-react/tabs-extended/tabs-extended.js +1 -1
- package/es/components-react/tabs-extended-media/tabs-extended-media.js +1 -1
- package/es/components-react/tag-group/tag-group.js +1 -1
- package/es/components-react/tag-link/tag-link.js +1 -1
- package/es/components-react/universal-banner/universal-banner-copy.js +1 -1
- package/es/components-react/universal-banner/universal-banner-heading.js +1 -1
- package/es/components-react/universal-banner/universal-banner-image.js +1 -1
- package/es/components-react/universal-banner/universal-banner.js +1 -1
- package/es/components-react/video-player/video-player-composite.js +1 -1
- package/es/components-react/video-player/video-player-container.js +1 -1
- package/es/components-react/video-player/video-player.js +1 -1
- package/es/icons/IBM-8bar-logo--h23.js +1 -1
- package/es/icons/IBM-8bar-logo--h65-white.js +1 -1
- package/es/icons/play-video.js +1 -1
- package/lib/components-react-node/back-to-top/back-to-top.js +1 -1
- package/lib/components-react-node/background-media/background-media.js +1 -1
- package/lib/components-react-node/button/button.js +2 -2
- package/lib/components-react-node/button-group/button-group-item.js +1 -1
- package/lib/components-react-node/button-group/button-group.js +1 -1
- package/lib/components-react-node/callout-quote/callout-link-with-icon.js +1 -1
- package/lib/components-react-node/callout-quote/callout-quote.js +1 -1
- package/lib/components-react-node/callout-with-media/callout-with-media-copy.js +1 -1
- package/lib/components-react-node/callout-with-media/callout-with-media-image.js +1 -1
- package/lib/components-react-node/callout-with-media/callout-with-media-video.js +1 -1
- package/lib/components-react-node/callout-with-media/callout-with-media.js +1 -1
- package/lib/components-react-node/card/card-eyebrow.js +1 -1
- package/lib/components-react-node/card/card-footer.js +1 -1
- package/lib/components-react-node/card/card-heading.js +1 -1
- package/lib/components-react-node/card/card.js +2 -2
- package/lib/components-react-node/card/image-logo.js +1 -1
- package/lib/components-react-node/card-group/card-group-card-link-item.js +1 -1
- package/lib/components-react-node/card-group/card-group-item.js +1 -1
- package/lib/components-react-node/card-group/card-group.js +1 -1
- package/lib/components-react-node/card-in-card/card-in-card-image.js +1 -1
- package/lib/components-react-node/card-in-card/card-in-card.js +1 -1
- package/lib/components-react-node/card-link/card-link-heading.js +1 -1
- package/lib/components-react-node/card-link/card-link.js +1 -1
- package/lib/components-react-node/card-section-carousel/card-section-carousel.js +1 -1
- package/lib/components-react-node/card-section-offset/card-section-offset.js +1 -1
- package/lib/components-react-node/card-section-simple/card-section-simple.js +1 -1
- package/lib/components-react-node/carousel/carousel.js +1 -1
- package/lib/components-react-node/content-block/content-block-complementary.js +1 -1
- package/lib/components-react-node/content-block/content-block-copy.js +1 -1
- package/lib/components-react-node/content-block/content-block-heading.js +1 -1
- package/lib/components-react-node/content-block/content-block-paragraph.js +1 -1
- package/lib/components-react-node/content-block/content-block.js +1 -1
- package/lib/components-react-node/content-block-cards/content-block-cards.js +1 -1
- package/lib/components-react-node/content-block-horizontal/content-block-horizontal.js +1 -1
- package/lib/components-react-node/content-block-media/content-block-media-content.js +1 -1
- package/lib/components-react-node/content-block-media/content-block-media.js +1 -1
- package/lib/components-react-node/content-block-mixed/content-block-mixed.js +1 -1
- package/lib/components-react-node/content-block-segmented/content-block-segmented-item.js +1 -1
- package/lib/components-react-node/content-block-segmented/content-block-segmented.js +1 -1
- package/lib/components-react-node/content-block-simple/content-block-simple.js +1 -1
- package/lib/components-react-node/content-group/content-group-copy.js +1 -1
- package/lib/components-react-node/content-group/content-group-heading.js +1 -1
- package/lib/components-react-node/content-group/content-group-paragraph.js +1 -1
- package/lib/components-react-node/content-group/content-group.js +1 -1
- package/lib/components-react-node/content-group-banner/content-group-banner.js +1 -1
- package/lib/components-react-node/content-group-cards/content-group-cards-item.js +1 -1
- package/lib/components-react-node/content-group-cards/content-group-cards.js +1 -1
- package/lib/components-react-node/content-group-pictograms/content-group-pictograms.js +1 -1
- package/lib/components-react-node/content-group-simple/content-group-simple.js +1 -1
- package/lib/components-react-node/content-item/content-item-copy.js +1 -1
- package/lib/components-react-node/content-item/content-item-heading.js +1 -1
- package/lib/components-react-node/content-item/content-item-paragraph.js +1 -1
- package/lib/components-react-node/content-item/content-item.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-copy.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-eyebrow.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-copy.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-featured.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media-video.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-media.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal-thumbnail-copy.js +1 -1
- package/lib/components-react-node/content-item-horizontal/content-item-horizontal.js +1 -1
- package/lib/components-react-node/content-section/content-section-copy.js +1 -1
- package/lib/components-react-node/content-section/content-section-heading.js +1 -1
- package/lib/components-react-node/content-section/content-section.js +1 -1
- package/lib/components-react-node/cta/button-cta.js +1 -1
- package/lib/components-react-node/cta/card-cta-footer.js +1 -1
- package/lib/components-react-node/cta/card-cta-image.js +1 -1
- package/lib/components-react-node/cta/card-cta.js +1 -1
- package/lib/components-react-node/cta/card-link-cta.js +1 -1
- package/lib/components-react-node/cta/feature-cta-footer.js +1 -1
- package/lib/components-react-node/cta/feature-cta.js +1 -1
- package/lib/components-react-node/cta/link-list-item-card-cta.js +1 -1
- package/lib/components-react-node/cta/link-list-item-cta.js +1 -1
- package/lib/components-react-node/cta/text-cta.js +1 -1
- package/lib/components-react-node/cta/video-cta-composite.js +1 -1
- package/lib/components-react-node/cta/video-cta-container.js +1 -1
- package/lib/components-react-node/cta-block/cta-block-item-row.js +1 -1
- package/lib/components-react-node/cta-block/cta-block-item.js +1 -1
- package/lib/components-react-node/cta-block/cta-block.js +1 -1
- package/lib/components-react-node/cta-section/cta-section.js +1 -1
- package/lib/components-react-node/dotcom-shell/dotcom-shell-composite.js +1 -1
- package/lib/components-react-node/dotcom-shell/dotcom-shell-container.js +1 -1
- package/lib/components-react-node/dotcom-shell/dotcom-shell.js +1 -1
- package/lib/components-react-node/expressive-modal/expressive-modal-body.js +2 -2
- package/lib/components-react-node/expressive-modal/expressive-modal-close-button.js +2 -2
- package/lib/components-react-node/expressive-modal/expressive-modal-footer.js +2 -2
- package/lib/components-react-node/expressive-modal/expressive-modal-header.js +2 -2
- package/lib/components-react-node/expressive-modal/expressive-modal-heading.js +2 -2
- package/lib/components-react-node/expressive-modal/expressive-modal.js +1 -1
- package/lib/components-react-node/feature-card/feature-card-footer.js +1 -1
- package/lib/components-react-node/feature-card/feature-card.js +1 -1
- package/lib/components-react-node/feature-section/feature-section-card-link.js +1 -1
- package/lib/components-react-node/feature-section/feature-section.js +1 -1
- package/lib/components-react-node/filter-panel/filter-group-item.js +2 -2
- package/lib/components-react-node/filter-panel/filter-group.js +2 -2
- package/lib/components-react-node/filter-panel/filter-modal-button.js +2 -2
- package/lib/components-react-node/filter-panel/filter-modal-footer.js +2 -2
- package/lib/components-react-node/filter-panel/filter-modal-heading.js +2 -2
- package/lib/components-react-node/filter-panel/filter-panel-checkbox.js +2 -2
- package/lib/components-react-node/filter-panel/filter-panel-composite.js +1 -1
- package/lib/components-react-node/filter-panel/filter-panel-heading.js +1 -1
- package/lib/components-react-node/filter-panel/filter-panel-input-select-item.js +1 -1
- package/lib/components-react-node/filter-panel/filter-panel-input-select.js +1 -1
- package/lib/components-react-node/filter-panel/filter-panel-modal.js +2 -2
- package/lib/components-react-node/filter-panel/filter-panel.js +1 -1
- package/lib/components-react-node/footer/dropdown.js +2 -2
- package/lib/components-react-node/footer/footer-composite.js +1 -1
- package/lib/components-react-node/footer/footer-container.js +1 -1
- package/lib/components-react-node/horizontal-rule/horizontal-rule.js +1 -1
- package/lib/components-react-node/image/image-item.js +1 -1
- package/lib/components-react-node/image/image.js +1 -1
- package/lib/components-react-node/leadspace/breadcrumb-item.js +2 -2
- package/lib/components-react-node/leadspace/breadcrumb-link.js +2 -2
- package/lib/components-react-node/leadspace/breadcrumb.js +2 -2
- package/lib/components-react-node/leadspace/leadspace-heading.js +1 -1
- package/lib/components-react-node/leadspace/leadspace-image.js +1 -1
- package/lib/components-react-node/leadspace/leadspace.js +1 -1
- package/lib/components-react-node/leadspace-block/leadspace-block-content.js +1 -1
- package/lib/components-react-node/leadspace-block/leadspace-block-cta.js +1 -1
- package/lib/components-react-node/leadspace-block/leadspace-block-heading.js +1 -1
- package/lib/components-react-node/leadspace-block/leadspace-block-media.js +1 -1
- package/lib/components-react-node/leadspace-block/leadspace-block.js +1 -1
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-copy.js +1 -1
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content-heading.js +1 -1
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-content.js +1 -1
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search-heading.js +1 -1
- package/lib/components-react-node/leadspace-with-search/leadspace-with-search.js +1 -1
- package/lib/components-react-node/leaving-ibm/leaving-ibm-composite.js +1 -1
- package/lib/components-react-node/leaving-ibm/leaving-ibm-container.js +1 -1
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-body.js +2 -2
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-heading.js +2 -2
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal-supplemental.js +1 -1
- package/lib/components-react-node/leaving-ibm/leaving-ibm-modal.js +2 -2
- package/lib/components-react-node/lightbox-media-viewer/lightbox-image-viewer.js +1 -1
- package/lib/components-react-node/lightbox-media-viewer/lightbox-media-viewer.js +1 -1
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-composite.js +1 -1
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player-container.js +1 -1
- package/lib/components-react-node/lightbox-media-viewer/lightbox-video-player.js +1 -1
- package/lib/components-react-node/link-list/link-list-heading.js +1 -1
- package/lib/components-react-node/link-list/link-list-item-card.js +1 -1
- package/lib/components-react-node/link-list/link-list-item.js +1 -1
- package/lib/components-react-node/link-list/link-list.js +1 -1
- package/lib/components-react-node/link-list-section/link-list-section.js +1 -1
- package/lib/components-react-node/link-with-icon/link-with-icon.js +2 -2
- package/lib/components-react-node/locale-modal/locale-modal-composite.js +1 -1
- package/lib/components-react-node/locale-modal/locale-modal-container.js +1 -1
- package/lib/components-react-node/logo-grid/logo-grid-item.js +1 -1
- package/lib/components-react-node/logo-grid/logo-grid-link.js +1 -1
- package/lib/components-react-node/logo-grid/logo-grid.js +1 -1
- package/lib/components-react-node/markdown/markdown.js +1 -1
- package/lib/components-react-node/masthead/masthead-composite.js +1 -1
- package/lib/components-react-node/masthead/masthead-container.js +1 -1
- package/lib/components-react-node/masthead/masthead.js +1 -1
- package/lib/components-react-node/pictogram-item/pictogram-item.js +1 -1
- package/lib/components-react-node/quote/quote-link-with-icon.js +1 -1
- package/lib/components-react-node/quote/quote-source-bottom-copy.js +1 -1
- package/lib/components-react-node/quote/quote-source-copy.js +1 -1
- package/lib/components-react-node/quote/quote-source-heading.js +1 -1
- package/lib/components-react-node/quote/quote.js +1 -1
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown-mobile.js +2 -2
- package/lib/components-react-node/search-with-typeahead/scoped-search-dropdown.js +1 -1
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead-item.js +1 -1
- package/lib/components-react-node/search-with-typeahead/search-with-typeahead.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-body.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-cell.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-group.js +1 -1
- package/lib/components-react-node/structured-list/structured-list-head.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-header-cell.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-header-row.js +2 -2
- package/lib/components-react-node/structured-list/structured-list-row.js +2 -2
- package/lib/components-react-node/structured-list/structured-list.js +1 -1
- package/lib/components-react-node/table-of-contents/table-of-contents.js +1 -1
- package/lib/components-react-node/tabs-extended/tab.js +1 -1
- package/lib/components-react-node/tabs-extended/tabs-extended.js +1 -1
- package/lib/components-react-node/tabs-extended-media/tabs-extended-media.js +1 -1
- package/lib/components-react-node/tag-group/tag-group.js +1 -1
- package/lib/components-react-node/tag-link/tag-link.js +1 -1
- package/lib/components-react-node/universal-banner/universal-banner-copy.js +1 -1
- package/lib/components-react-node/universal-banner/universal-banner-heading.js +1 -1
- package/lib/components-react-node/universal-banner/universal-banner-image.js +1 -1
- package/lib/components-react-node/universal-banner/universal-banner.js +1 -1
- package/lib/components-react-node/video-player/video-player-composite.js +1 -1
- package/lib/components-react-node/video-player/video-player-container.js +1 -1
- package/lib/components-react-node/video-player/video-player.js +1 -1
- package/package.json +4 -4
- package/scss/components/background-media/background-media.scss +1 -1
- package/scss/components/button/button.scss +1 -1
- package/scss/components/expressive-modal/expressive-modal.scss +1 -1
- package/scss/components/filter-panel/filter-panel.scss +1 -1
- package/scss/components/leadspace/leadspace.scss +1 -1
- package/scss/components/leaving-ibm/leaving-ibm.scss +1 -1
- package/scss/components/masthead/masthead.scss +3 -3
- package/scss/components/search/search.scss +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["component-mixins/cta/cta.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiBH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKrD;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAajB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,KAAK,iBAAW,CAAC;AAE9B;;;GAGG;AACH,QAAA,MAAM,QAAQ;IAEV;;;;OAIG;;IAGH;;;;OAIG;wBACiB,UAAU;IAQ9B;;OAEG;aACe,QAAQ;IAE1B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAaH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2EN,CAAC;AAEF,oBAAY,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAErE,eAAe,QAAQ,CAAC","file":"cta.d.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 */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '@carbon/
|
|
1
|
+
{"version":3,"sources":["component-mixins/cta/cta.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiBH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKrD;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAajB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,KAAK,iBAAW,CAAC;AAE9B;;;GAGG;AACH,QAAA,MAAM,QAAQ;IAEV;;;;OAIG;;IAGH;;;;OAIG;wBACiB,UAAU;IAQ9B;;OAEG;aACe,QAAQ;IAE1B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAaH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2EN,CAAC;AAEF,oBAAY,YAAY,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAErE,eAAe,QAAQ,CAAC","file":"cta.d.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 */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';\nimport Download20 from '@carbon/web-components/es/icons/download/20.js';\nimport Launch20 from '@carbon/web-components/es/icons/launch/20.js';\nimport PlayOutline20 from '@carbon/web-components/es/icons/play--outline/20.js';\nimport Blog20 from '@carbon/web-components/es/icons/blog/20.js';\nimport DocumentPDF20 from '@carbon/web-components/es/icons/document--pdf/20.js';\nimport NewTab20 from '@carbon/web-components/es/icons/new-tab/20.js';\nimport Phone20 from '@carbon/web-components/es/icons/phone/20.js';\nimport Calendar20 from '@carbon/web-components/es/icons/calendar/20.js';\nimport Email20 from '@carbon/web-components/es/icons/email/20.js';\nimport Chat20 from '@carbon/web-components/es/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"]}
|
|
@@ -11,18 +11,18 @@ let _ = t => t,
|
|
|
11
11
|
|
|
12
12
|
import { html } from 'lit-element';
|
|
13
13
|
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
14
|
-
import ArrowDown20 from '@carbon/
|
|
15
|
-
import ArrowRight20 from '@carbon/
|
|
16
|
-
import Download20 from '@carbon/
|
|
17
|
-
import Launch20 from '@carbon/
|
|
18
|
-
import PlayOutline20 from '@carbon/
|
|
19
|
-
import Blog20 from '@carbon/
|
|
20
|
-
import DocumentPDF20 from '@carbon/
|
|
21
|
-
import NewTab20 from '@carbon/
|
|
22
|
-
import Phone20 from '@carbon/
|
|
23
|
-
import Calendar20 from '@carbon/
|
|
24
|
-
import Email20 from '@carbon/
|
|
25
|
-
import Chat20 from '@carbon/
|
|
14
|
+
import ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';
|
|
15
|
+
import ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';
|
|
16
|
+
import Download20 from '@carbon/web-components/es/icons/download/20.js';
|
|
17
|
+
import Launch20 from '@carbon/web-components/es/icons/launch/20.js';
|
|
18
|
+
import PlayOutline20 from '@carbon/web-components/es/icons/play--outline/20.js';
|
|
19
|
+
import Blog20 from '@carbon/web-components/es/icons/blog/20.js';
|
|
20
|
+
import DocumentPDF20 from '@carbon/web-components/es/icons/document--pdf/20.js';
|
|
21
|
+
import NewTab20 from '@carbon/web-components/es/icons/new-tab/20.js';
|
|
22
|
+
import Phone20 from '@carbon/web-components/es/icons/phone/20.js';
|
|
23
|
+
import Calendar20 from '@carbon/web-components/es/icons/calendar/20.js';
|
|
24
|
+
import Email20 from '@carbon/web-components/es/icons/email/20.js';
|
|
25
|
+
import Chat20 from '@carbon/web-components/es/icons/chat/20.js';
|
|
26
26
|
import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
|
|
27
27
|
import { CTA_TYPE } from "../../components/cta/defs.js";
|
|
28
28
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta.js","names":["html","settings","ArrowDown20","ArrowRight20","Download20","Launch20","PlayOutline20","Blog20","DocumentPDF20","NewTab20","Phone20","Calendar20","Email20","Chat20","ddsSettings","CTA_TYPE","prefix","stablePrefix","ddsPrefix","icons","LOCAL","DOWNLOAD","EXTERNAL","NEW_TAB","JUMP","VIDEO","PDF","BLOG","EMAIL","SCHEDULE","CHAT","CALL","ariaLabels","types","CTAMixin","Base","CTAMixinImpl","_handleClick","event","disabled","preventDefault","stopPropagation","_renderIcon","ctaType","class","updated","changedProperties","_linkNode","linkNode","has","download","downloadTypes","includes","console","warn","contactMethods","Object","keys","dataset","ibmContact","nodeName","href","hrefValue","removeAttribute","setAttribute","target","newTabTypes","targetInEffect","hasAttribute","getAttribute"],"sources":["component-mixins/cta/cta.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 */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '@carbon/carbon-web-components/es/icons/arrow--down/20.js';\nimport ArrowRight20 from '@carbon/carbon-web-components/es/icons/arrow--right/20.js';\nimport Download20 from '@carbon/carbon-web-components/es/icons/download/20.js';\nimport Launch20 from '@carbon/carbon-web-components/es/icons/launch/20.js';\nimport PlayOutline20 from '@carbon/carbon-web-components/es/icons/play--outline/20.js';\nimport Blog20 from '@carbon/carbon-web-components/es/icons/blog/20.js';\nimport DocumentPDF20 from '@carbon/carbon-web-components/es/icons/document--pdf/20.js';\nimport NewTab20 from '@carbon/carbon-web-components/es/icons/new-tab/20.js';\nimport Phone20 from '@carbon/carbon-web-components/es/icons/phone/20.js';\nimport Calendar20 from '@carbon/carbon-web-components/es/icons/calendar/20.js';\nimport Email20 from '@carbon/carbon-web-components/es/icons/email/20.js';\nimport Chat20 from '@carbon/carbon-web-components/es/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":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,aAAa;AAClC,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,WAAW,MAAM,0DAA0D;AAClF,OAAOC,YAAY,MAAM,2DAA2D;AACpF,OAAOC,UAAU,MAAM,uDAAuD;AAC9E,OAAOC,QAAQ,MAAM,qDAAqD;AAC1E,OAAOC,aAAa,MAAM,4DAA4D;AACtF,OAAOC,MAAM,MAAM,mDAAmD;AACtE,OAAOC,aAAa,MAAM,4DAA4D;AACtF,OAAOC,QAAQ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AAI;UAEvB,MAAMC,WAAW,GAAG,CAACnD,QAAQ,CAACO,QAAQ,EAAEP,QAAQ,CAACQ,OAAO,CAAC;UAEzD,MAAM4C,cAAc,GAClBD,WAAW,CAACd,QAAQ,CAACT,OAAO,CAAC,IAAI,CAACsB,MAAM,GAAG,QAAQ,GAAGA,MAAM;UAE9D,IAAI,CAACE,cAAc,EAAE;YACnBnB,QAAQ,CAACe,eAAe,CAAC,QAAQ,CAAC;UACpC,CAAC,MAAM;YACLf,QAAQ,CAACgB,YAAY,CAAC,QAAQ,EAAEG,cAAc,CAAC;UACjD;QACF;QACA,IAAInB,QAAQ,CAACoB,YAAY,CAAC,YAAY,CAAC,EAAE;UACvCpB,QAAQ,CAACgB,YAAY,CACnB,YAAY,EACZhB,QAAQ,CAACqB,YAAY,CAAC,YAAY,CAAC,IAChC1B,OAAO,GAAGX,UAAU,CAACW,OAAO,CAAC,GAAG,EAAE,CAAC,CACvC;QACH;MACF;IACF;EACF;EAEA,OAAOP,YAAY;AACrB,CAAC;AAID,eAAeF,QAAQ"}
|
|
1
|
+
{"version":3,"file":"cta.js","names":["html","settings","ArrowDown20","ArrowRight20","Download20","Launch20","PlayOutline20","Blog20","DocumentPDF20","NewTab20","Phone20","Calendar20","Email20","Chat20","ddsSettings","CTA_TYPE","prefix","stablePrefix","ddsPrefix","icons","LOCAL","DOWNLOAD","EXTERNAL","NEW_TAB","JUMP","VIDEO","PDF","BLOG","EMAIL","SCHEDULE","CHAT","CALL","ariaLabels","types","CTAMixin","Base","CTAMixinImpl","_handleClick","event","disabled","preventDefault","stopPropagation","_renderIcon","ctaType","class","updated","changedProperties","_linkNode","linkNode","has","download","downloadTypes","includes","console","warn","contactMethods","Object","keys","dataset","ibmContact","nodeName","href","hrefValue","removeAttribute","setAttribute","target","newTabTypes","targetInEffect","hasAttribute","getAttribute"],"sources":["component-mixins/cta/cta.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 */\n\nimport { html } from 'lit-element';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';\nimport Download20 from '@carbon/web-components/es/icons/download/20.js';\nimport Launch20 from '@carbon/web-components/es/icons/launch/20.js';\nimport PlayOutline20 from '@carbon/web-components/es/icons/play--outline/20.js';\nimport Blog20 from '@carbon/web-components/es/icons/blog/20.js';\nimport DocumentPDF20 from '@carbon/web-components/es/icons/document--pdf/20.js';\nimport NewTab20 from '@carbon/web-components/es/icons/new-tab/20.js';\nimport Phone20 from '@carbon/web-components/es/icons/phone/20.js';\nimport Calendar20 from '@carbon/web-components/es/icons/calendar/20.js';\nimport Email20 from '@carbon/web-components/es/icons/email/20.js';\nimport Chat20 from '@carbon/web-components/es/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":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,aAAa;AAClC,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,WAAW,MAAM,mDAAmD;A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AEG;aACe,QAAQ;IAE1B;;OAEG;;IAGH;;;OAGG;;;;UAGgE,MAAM;IAEzE;;;OAGG;;;UAG2C,MAAM;IAEpD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CH;;OAEG;;IAKH;;OAEG;;MAON,CAAC;AAEF,oBAAY,iBAAiB,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AAE/E,eAAe,aAAa,CAAC","file":"video.d.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 */\n\nimport ArrowDown20 from '@carbon/
|
|
1
|
+
{"version":3,"sources":["component-mixins/cta/video.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIrD;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CAMjB,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,aAAa;IAEf;;;;OAIG;wBACiB,UAAU;IAwB9B;;OAEG;aACe,QAAQ;IAE1B;;OAEG;;IAGH;;;OAGG;;;;UAGgE,MAAM;IAEzE;;;OAGG;;;UAG2C,MAAM;IAEpD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8CH;;OAEG;;IAKH;;OAEG;;MAON,CAAC;AAEF,oBAAY,iBAAiB,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC;AAE/E,eAAe,aAAa,CAAC","file":"video.d.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 */\n\nimport ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';\nimport Download20 from '@carbon/web-components/es/icons/download/20.js';\nimport Launch20 from '@carbon/web-components/es/icons/launch/20.js';\nimport PlayOutline20 from '@carbon/web-components/es/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';\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\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 VideoCTAMixinImpl = InstanceType<ReturnType<typeof VideoCTAMixin>>;\n\nexport default VideoCTAMixin;\n"]}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import ArrowDown20 from '@carbon/
|
|
11
|
-
import ArrowRight20 from '@carbon/
|
|
12
|
-
import Download20 from '@carbon/
|
|
13
|
-
import Launch20 from '@carbon/
|
|
14
|
-
import PlayOutline20 from '@carbon/
|
|
10
|
+
import ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';
|
|
11
|
+
import ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';
|
|
12
|
+
import Download20 from '@carbon/web-components/es/icons/download/20.js';
|
|
13
|
+
import Launch20 from '@carbon/web-components/es/icons/launch/20.js';
|
|
14
|
+
import PlayOutline20 from '@carbon/web-components/es/icons/play--outline/20.js';
|
|
15
15
|
import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
|
|
16
16
|
import { CTA_TYPE } from "../../components/cta/defs.js";
|
|
17
17
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.js","names":["ArrowDown20","ArrowRight20","Download20","Launch20","PlayOutline20","ddsSettings","CTA_TYPE","stablePrefix","ddsPrefix","icons","LOCAL","DOWNLOAD","EXTERNAL","JUMP","VIDEO","VideoCTAMixin","Base","VideoCTAMixinImpl","_handleClick","event","focus","ctaType","disabled","href","videoName","videoDescription","preventDefault","eventRunAction","constructor","dispatchEvent","CustomEvent","bubbles","cancelable","composed","detail","updated","changedProperties","videoDuration","eventRequestVideoData","has"],"sources":["component-mixins/cta/video.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 */\n\nimport ArrowDown20 from '@carbon/
|
|
1
|
+
{"version":3,"file":"video.js","names":["ArrowDown20","ArrowRight20","Download20","Launch20","PlayOutline20","ddsSettings","CTA_TYPE","stablePrefix","ddsPrefix","icons","LOCAL","DOWNLOAD","EXTERNAL","JUMP","VIDEO","VideoCTAMixin","Base","VideoCTAMixinImpl","_handleClick","event","focus","ctaType","disabled","href","videoName","videoDescription","preventDefault","eventRunAction","constructor","dispatchEvent","CustomEvent","bubbles","cancelable","composed","detail","updated","changedProperties","videoDuration","eventRequestVideoData","has"],"sources":["component-mixins/cta/video.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 */\n\nimport ArrowDown20 from '@carbon/web-components/es/icons/arrow--down/20.js';\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20.js';\nimport Download20 from '@carbon/web-components/es/icons/download/20.js';\nimport Launch20 from '@carbon/web-components/es/icons/launch/20.js';\nimport PlayOutline20 from '@carbon/web-components/es/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';\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\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 VideoCTAMixinImpl = InstanceType<ReturnType<typeof VideoCTAMixin>>;\n\nexport default VideoCTAMixin;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,WAAW,MAAM,mDAAmD;AAC3E,OAAOC,YAAY,MAAM,oDAAoD;AAC7E,OAAOC,UAAU,MAAM,gDAAgD;AACvE,OAAOC,QAAQ,MAAM,8CAA8C;AACnE,OAAOC,aAAa,MAAM,qDAAqD;A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__stories__/data/content.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,0BAA0B,CAAC;AAClC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,6BAA6B,CAAC;AACrC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAW5B,QAAA,MAAM,YAAY,4CAwWf,CAAC;AACJ,eAAe,YAAY,CAAC","file":"content.d.ts","sourcesContent":["/**\n * Copyright IBM Corp. 2016, 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 */\n\nimport { html } from 'lit-element';\nimport '../../../leadspace/index';\nimport '../../../content-block-simple/index';\nimport '../../../content-group-simple/index';\nimport '../../../feature-card/index';\nimport '../../../card-section-simple/index';\nimport '../../../cta-section/index';\nimport '../../../link-list/index';\nimport '../../../cta/index';\n\nimport ArrowRight20 from '@carbon/carbon-web-components/es/icons/arrow--right/20';\nimport imgLg1x1 from '../../../../../../storybook-images/assets/960/fpo--1x1--960x960--006.jpg';\nimport leadspaceImg from '../../../../../../storybook-images/assets/leadspace/leadspaceMax2.jpg';\n\nconst copy = `Many organizations are engaging in open source technology to optimize their Linux environment.\nThe ability to integrate open systems with traditional or hybrid cloud IT infrastructure has a profound effect\non driving innovation and a growing number of IT professionals are actively participating in open source\ncommunities as a way to stay at the forefront of development.`;\n\nconst StoryContent = () =>\n html`\n <dds-leadspace\n size=\"medium\"\n gradient-style-scheme=\"\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--leadspace\"\n >\n <dds-leadspace-heading role=\"heading\" aria-level=\"1\" slot=\"heading\"\n >Linux servers and operating systems</dds-leadspace-heading\n >\n Optimize your IT infrastructure — on-premises and in the cloud — with the\n flexibility and control that comes with open source development\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-leadspace-image\n slot=\"image\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--image\"\n >\n <dds-image-item\n media=\"(min-width: 672px)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n <dds-image-item\n media=\"(min-width: 0)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n </dds-leadspace-image>\n </dds-leadspace>\n <main>\n <div class=\"bx--grid bx--grid--narrow\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple complementary-style-scheme=\"with-border\">\n <dds-content-block-heading\n >Flexibility and control are the key to open source Linux\n development</dds-content-block-heading\n >\n <dds-content-block-copy allowHTML=\"false\" size=\"sm\"\n >${copy}</dds-content-block-copy\n >\n <dds-text-cta\n slot=\"footer\"\n cta-type=\"local\"\n href=\"https://example.com\"\n >\n Explore supply chain consulting services\n </dds-text-cta>\n </dds-content-block-simple>\n </div>\n </div>\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple>\n <dds-content-block-heading\n >What sets IBM Linux servers apart?</dds-content-block-heading\n >\n <dds-link-list type=\"default\" slot=\"complementary\">\n <dds-link-list-heading>Resources</dds-link-list-heading>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"local\"\n >\n <p>Read the solution brief</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"external\"\n >\n <p>What is LinuxOne?</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n </dds-link-list>\n <dds-content-block-copy>\n <dds-content-item>\n <dds-content-item-heading\n >Industry-leading performance</dds-content-item-heading\n >\n <dds-content-item-copy\n >Potential for 30% improvement in transactional response\n time with fast data retrieval and queries, plus disk space\n compression.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Advanced protection</dds-content-item-heading\n >\n <dds-content-item-copy\n >Sophisticated authorization, encryption at rest and in\n transit, and comprehensive security controls for managing\n GDPR compliance.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Continuous availability</dds-content-item-heading\n >\n <dds-content-item-copy\n >Auto resynchronization and recovery plus clustering with\n IBM pureScale® to keep your business running\n 24x7.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Automated administration and\n tooling</dds-content-item-heading\n >\n <dds-content-item-copy\n >Automatic setup, optimization, diagnostics and management\n of the database environment to save administration time and\n cut maintenance costs.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Multiple data types and languages</dds-content-item-heading\n >\n <dds-content-item-copy\n >Integration with multiple platforms to build robust apps.\n Supports NoSQL, pureXML, Graph and JSON, Java, .Net, Ruby,\n Python, Perl and more.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading>Scaling</dds-content-item-heading>\n <dds-content-item-copy\n >Elastic scaling of up to 128 machines in multicloud and\n hybrid environments to reduce storage costs, plus data\n federation to eliminate data silos.</dds-content-item-copy\n >\n </dds-content-item>\n </dds-content-block-copy>\n </dds-content-block-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-8 bx--offset-lg-4\">\n <dds-content-group-simple>\n <dds-content-group-heading\n >See how it works</dds-content-group-heading\n >\n <dds-feature-card href=\"https://example.com\">\n <dds-image\n slot=\"image\"\n alt=\"Feature card image\"\n default-src=\"${imgLg1x1}\"\n ></dds-image>\n <dds-card-heading\n >Discover how innovative companies are using open source\n technology to ignite collaboration</dds-card-heading\n >\n <dds-feature-card-footer>\n ${ArrowRight20({ slot: 'icon' })}\n </dds-feature-card-footer>\n </dds-feature-card>\n </dds-content-group-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-card-section-simple>\n <dds-content-section-heading\n >Linux operating systems</dds-content-section-heading\n >\n <dds-card-group>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on mainframes</dds-card-heading>\n Linux on IBM mainframes lets you transform your application\n and data portfolio with data privacy, security, and cyber\n resiliency.\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on LinuxONE</dds-card-heading>\n <p>\n Transform your application and data portfolio with\n innovative data privacy, security and cyber resiliency\n capabilities, plus minimal downtime.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on Power Systems</dds-card-heading>\n <p>\n Process massive amounts of data quickly, efficiently and\n cost-effectively on an open, scalable infrastructure with\n built-in acceleration.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n </dds-card-group>\n </dds-card-section-simple>\n </div>\n </div>\n </div>\n\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-cta-section>\n <dds-cta-block no-border>\n <dds-content-block-heading\n >Take the next step</dds-content-block-heading\n >\n <dds-content-block-copy\n >Get started with Linux servers and operating systems at the\n foundation of your IT infrastructure.</dds-content-block-copy\n >\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-link-list slot=\"link-list\" type=\"end\">\n <dds-link-list-heading\n >More ways to explore Linux servers</dds-link-list-heading\n >\n <dds-link-list-item href=\"https://example.com\">\n Products ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Blogs ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Latest research ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Key concepts ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Client stories ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Training ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Analyst insights ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Events ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Partners ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n </dds-link-list>\n </dds-cta-block>\n </dds-cta-section>\n </div>\n </div>\n </div>\n </main>\n `;\nexport default StoryContent;\n"]}
|
|
1
|
+
{"version":3,"sources":["components/back-to-top/__stories__/data/content.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,0BAA0B,CAAC;AAClC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,qCAAqC,CAAC;AAC7C,OAAO,6BAA6B,CAAC;AACrC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oBAAoB,CAAC;AAW5B,QAAA,MAAM,YAAY,4CAwWf,CAAC;AACJ,eAAe,YAAY,CAAC","file":"content.d.ts","sourcesContent":["/**\n * Copyright IBM Corp. 2016, 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 */\n\nimport { html } from 'lit-element';\nimport '../../../leadspace/index';\nimport '../../../content-block-simple/index';\nimport '../../../content-group-simple/index';\nimport '../../../feature-card/index';\nimport '../../../card-section-simple/index';\nimport '../../../cta-section/index';\nimport '../../../link-list/index';\nimport '../../../cta/index';\n\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20';\nimport imgLg1x1 from '../../../../../../storybook-images/assets/960/fpo--1x1--960x960--006.jpg';\nimport leadspaceImg from '../../../../../../storybook-images/assets/leadspace/leadspaceMax2.jpg';\n\nconst copy = `Many organizations are engaging in open source technology to optimize their Linux environment.\nThe ability to integrate open systems with traditional or hybrid cloud IT infrastructure has a profound effect\non driving innovation and a growing number of IT professionals are actively participating in open source\ncommunities as a way to stay at the forefront of development.`;\n\nconst StoryContent = () =>\n html`\n <dds-leadspace\n size=\"medium\"\n gradient-style-scheme=\"\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--leadspace\"\n >\n <dds-leadspace-heading role=\"heading\" aria-level=\"1\" slot=\"heading\"\n >Linux servers and operating systems</dds-leadspace-heading\n >\n Optimize your IT infrastructure — on-premises and in the cloud — with the\n flexibility and control that comes with open source development\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-leadspace-image\n slot=\"image\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--image\"\n >\n <dds-image-item\n media=\"(min-width: 672px)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n <dds-image-item\n media=\"(min-width: 0)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n </dds-leadspace-image>\n </dds-leadspace>\n <main>\n <div class=\"bx--grid bx--grid--narrow\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple complementary-style-scheme=\"with-border\">\n <dds-content-block-heading\n >Flexibility and control are the key to open source Linux\n development</dds-content-block-heading\n >\n <dds-content-block-copy allowHTML=\"false\" size=\"sm\"\n >${copy}</dds-content-block-copy\n >\n <dds-text-cta\n slot=\"footer\"\n cta-type=\"local\"\n href=\"https://example.com\"\n >\n Explore supply chain consulting services\n </dds-text-cta>\n </dds-content-block-simple>\n </div>\n </div>\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple>\n <dds-content-block-heading\n >What sets IBM Linux servers apart?</dds-content-block-heading\n >\n <dds-link-list type=\"default\" slot=\"complementary\">\n <dds-link-list-heading>Resources</dds-link-list-heading>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"local\"\n >\n <p>Read the solution brief</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"external\"\n >\n <p>What is LinuxOne?</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n </dds-link-list>\n <dds-content-block-copy>\n <dds-content-item>\n <dds-content-item-heading\n >Industry-leading performance</dds-content-item-heading\n >\n <dds-content-item-copy\n >Potential for 30% improvement in transactional response\n time with fast data retrieval and queries, plus disk space\n compression.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Advanced protection</dds-content-item-heading\n >\n <dds-content-item-copy\n >Sophisticated authorization, encryption at rest and in\n transit, and comprehensive security controls for managing\n GDPR compliance.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Continuous availability</dds-content-item-heading\n >\n <dds-content-item-copy\n >Auto resynchronization and recovery plus clustering with\n IBM pureScale® to keep your business running\n 24x7.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Automated administration and\n tooling</dds-content-item-heading\n >\n <dds-content-item-copy\n >Automatic setup, optimization, diagnostics and management\n of the database environment to save administration time and\n cut maintenance costs.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Multiple data types and languages</dds-content-item-heading\n >\n <dds-content-item-copy\n >Integration with multiple platforms to build robust apps.\n Supports NoSQL, pureXML, Graph and JSON, Java, .Net, Ruby,\n Python, Perl and more.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading>Scaling</dds-content-item-heading>\n <dds-content-item-copy\n >Elastic scaling of up to 128 machines in multicloud and\n hybrid environments to reduce storage costs, plus data\n federation to eliminate data silos.</dds-content-item-copy\n >\n </dds-content-item>\n </dds-content-block-copy>\n </dds-content-block-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-8 bx--offset-lg-4\">\n <dds-content-group-simple>\n <dds-content-group-heading\n >See how it works</dds-content-group-heading\n >\n <dds-feature-card href=\"https://example.com\">\n <dds-image\n slot=\"image\"\n alt=\"Feature card image\"\n default-src=\"${imgLg1x1}\"\n ></dds-image>\n <dds-card-heading\n >Discover how innovative companies are using open source\n technology to ignite collaboration</dds-card-heading\n >\n <dds-feature-card-footer>\n ${ArrowRight20({ slot: 'icon' })}\n </dds-feature-card-footer>\n </dds-feature-card>\n </dds-content-group-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-card-section-simple>\n <dds-content-section-heading\n >Linux operating systems</dds-content-section-heading\n >\n <dds-card-group>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on mainframes</dds-card-heading>\n Linux on IBM mainframes lets you transform your application\n and data portfolio with data privacy, security, and cyber\n resiliency.\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on LinuxONE</dds-card-heading>\n <p>\n Transform your application and data portfolio with\n innovative data privacy, security and cyber resiliency\n capabilities, plus minimal downtime.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on Power Systems</dds-card-heading>\n <p>\n Process massive amounts of data quickly, efficiently and\n cost-effectively on an open, scalable infrastructure with\n built-in acceleration.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n </dds-card-group>\n </dds-card-section-simple>\n </div>\n </div>\n </div>\n\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-cta-section>\n <dds-cta-block no-border>\n <dds-content-block-heading\n >Take the next step</dds-content-block-heading\n >\n <dds-content-block-copy\n >Get started with Linux servers and operating systems at the\n foundation of your IT infrastructure.</dds-content-block-copy\n >\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-link-list slot=\"link-list\" type=\"end\">\n <dds-link-list-heading\n >More ways to explore Linux servers</dds-link-list-heading\n >\n <dds-link-list-item href=\"https://example.com\">\n Products ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Blogs ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Latest research ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Key concepts ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Client stories ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Training ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Analyst insights ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Events ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Partners ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n </dds-link-list>\n </dds-cta-block>\n </dds-cta-section>\n </div>\n </div>\n </div>\n </main>\n `;\nexport default StoryContent;\n"]}
|
|
@@ -16,7 +16,7 @@ import "../../../card-section-simple/index.js";
|
|
|
16
16
|
import "../../../cta-section/index.js";
|
|
17
17
|
import "../../../link-list/index.js";
|
|
18
18
|
import "../../../cta/index.js";
|
|
19
|
-
import ArrowRight20 from '@carbon/
|
|
19
|
+
import ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20';
|
|
20
20
|
import imgLg1x1 from '../../../../../../storybook-images/assets/960/fpo--1x1--960x960--006.jpg';
|
|
21
21
|
import leadspaceImg from '../../../../../../storybook-images/assets/leadspace/leadspaceMax2.jpg';
|
|
22
22
|
const copy = `Many organizations are engaging in open source technology to optimize their Linux environment.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","names":["html","ArrowRight20","imgLg1x1","leadspaceImg","copy","StoryContent","slot"],"sources":["components/back-to-top/__stories__/data/content.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2016, 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 */\n\nimport { html } from 'lit-element';\nimport '../../../leadspace/index';\nimport '../../../content-block-simple/index';\nimport '../../../content-group-simple/index';\nimport '../../../feature-card/index';\nimport '../../../card-section-simple/index';\nimport '../../../cta-section/index';\nimport '../../../link-list/index';\nimport '../../../cta/index';\n\nimport ArrowRight20 from '@carbon/carbon-web-components/es/icons/arrow--right/20';\nimport imgLg1x1 from '../../../../../../storybook-images/assets/960/fpo--1x1--960x960--006.jpg';\nimport leadspaceImg from '../../../../../../storybook-images/assets/leadspace/leadspaceMax2.jpg';\n\nconst copy = `Many organizations are engaging in open source technology to optimize their Linux environment.\nThe ability to integrate open systems with traditional or hybrid cloud IT infrastructure has a profound effect\non driving innovation and a growing number of IT professionals are actively participating in open source\ncommunities as a way to stay at the forefront of development.`;\n\nconst StoryContent = () =>\n html`\n <dds-leadspace\n size=\"medium\"\n gradient-style-scheme=\"\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--leadspace\"\n >\n <dds-leadspace-heading role=\"heading\" aria-level=\"1\" slot=\"heading\"\n >Linux servers and operating systems</dds-leadspace-heading\n >\n Optimize your IT infrastructure — on-premises and in the cloud — with the\n flexibility and control that comes with open source development\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-leadspace-image\n slot=\"image\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--image\"\n >\n <dds-image-item\n media=\"(min-width: 672px)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n <dds-image-item\n media=\"(min-width: 0)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n </dds-leadspace-image>\n </dds-leadspace>\n <main>\n <div class=\"bx--grid bx--grid--narrow\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple complementary-style-scheme=\"with-border\">\n <dds-content-block-heading\n >Flexibility and control are the key to open source Linux\n development</dds-content-block-heading\n >\n <dds-content-block-copy allowHTML=\"false\" size=\"sm\"\n >${copy}</dds-content-block-copy\n >\n <dds-text-cta\n slot=\"footer\"\n cta-type=\"local\"\n href=\"https://example.com\"\n >\n Explore supply chain consulting services\n </dds-text-cta>\n </dds-content-block-simple>\n </div>\n </div>\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple>\n <dds-content-block-heading\n >What sets IBM Linux servers apart?</dds-content-block-heading\n >\n <dds-link-list type=\"default\" slot=\"complementary\">\n <dds-link-list-heading>Resources</dds-link-list-heading>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"local\"\n >\n <p>Read the solution brief</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"external\"\n >\n <p>What is LinuxOne?</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n </dds-link-list>\n <dds-content-block-copy>\n <dds-content-item>\n <dds-content-item-heading\n >Industry-leading performance</dds-content-item-heading\n >\n <dds-content-item-copy\n >Potential for 30% improvement in transactional response\n time with fast data retrieval and queries, plus disk space\n compression.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Advanced protection</dds-content-item-heading\n >\n <dds-content-item-copy\n >Sophisticated authorization, encryption at rest and in\n transit, and comprehensive security controls for managing\n GDPR compliance.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Continuous availability</dds-content-item-heading\n >\n <dds-content-item-copy\n >Auto resynchronization and recovery plus clustering with\n IBM pureScale® to keep your business running\n 24x7.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Automated administration and\n tooling</dds-content-item-heading\n >\n <dds-content-item-copy\n >Automatic setup, optimization, diagnostics and management\n of the database environment to save administration time and\n cut maintenance costs.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Multiple data types and languages</dds-content-item-heading\n >\n <dds-content-item-copy\n >Integration with multiple platforms to build robust apps.\n Supports NoSQL, pureXML, Graph and JSON, Java, .Net, Ruby,\n Python, Perl and more.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading>Scaling</dds-content-item-heading>\n <dds-content-item-copy\n >Elastic scaling of up to 128 machines in multicloud and\n hybrid environments to reduce storage costs, plus data\n federation to eliminate data silos.</dds-content-item-copy\n >\n </dds-content-item>\n </dds-content-block-copy>\n </dds-content-block-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-8 bx--offset-lg-4\">\n <dds-content-group-simple>\n <dds-content-group-heading\n >See how it works</dds-content-group-heading\n >\n <dds-feature-card href=\"https://example.com\">\n <dds-image\n slot=\"image\"\n alt=\"Feature card image\"\n default-src=\"${imgLg1x1}\"\n ></dds-image>\n <dds-card-heading\n >Discover how innovative companies are using open source\n technology to ignite collaboration</dds-card-heading\n >\n <dds-feature-card-footer>\n ${ArrowRight20({ slot: 'icon' })}\n </dds-feature-card-footer>\n </dds-feature-card>\n </dds-content-group-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-card-section-simple>\n <dds-content-section-heading\n >Linux operating systems</dds-content-section-heading\n >\n <dds-card-group>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on mainframes</dds-card-heading>\n Linux on IBM mainframes lets you transform your application\n and data portfolio with data privacy, security, and cyber\n resiliency.\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on LinuxONE</dds-card-heading>\n <p>\n Transform your application and data portfolio with\n innovative data privacy, security and cyber resiliency\n capabilities, plus minimal downtime.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on Power Systems</dds-card-heading>\n <p>\n Process massive amounts of data quickly, efficiently and\n cost-effectively on an open, scalable infrastructure with\n built-in acceleration.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n </dds-card-group>\n </dds-card-section-simple>\n </div>\n </div>\n </div>\n\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-cta-section>\n <dds-cta-block no-border>\n <dds-content-block-heading\n >Take the next step</dds-content-block-heading\n >\n <dds-content-block-copy\n >Get started with Linux servers and operating systems at the\n foundation of your IT infrastructure.</dds-content-block-copy\n >\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-link-list slot=\"link-list\" type=\"end\">\n <dds-link-list-heading\n >More ways to explore Linux servers</dds-link-list-heading\n >\n <dds-link-list-item href=\"https://example.com\">\n Products ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Blogs ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Latest research ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Key concepts ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Client stories ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Training ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Analyst insights ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Events ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Partners ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n </dds-link-list>\n </dds-cta-block>\n </dds-cta-section>\n </div>\n </div>\n </div>\n </main>\n `;\nexport default StoryContent;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,aAAa;AAClC,OAAO,6BAA0B;AACjC,OAAO,wCAAqC;AAC5C,OAAO,wCAAqC;AAC5C,OAAO,gCAA6B;AACpC,OAAO,uCAAoC;AAC3C,OAAO,+BAA4B;AACnC,OAAO,6BAA0B;AACjC,OAAO,uBAAoB;AAE3B,OAAOC,YAAY,MAAM,wDAAwD;AACjF,OAAOC,QAAQ,MAAM,0EAA0E;AAC/F,OAAOC,YAAY,MAAM,uEAAuE;AAEhG,MAAMC,IAAI,GAAI;AACd;AACA;AACA,8DAA8D;AAE9D,MAAMC,YAAY,GAAG,MACnBL,IAAI,cAAC;AACP;AACA;AACA;AACA;AACA,qBAAmB,CAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAqB,CAAe;AACpC;AACA;AACA;AACA;AACA,oBAAkB,CAAe;AACjC;AACA;AACA;AACA,oBAAkB,CAAe;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAiB,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAA+B,CAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,oBAAkB,CAAiC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA6B,CAAiC;AAC9D;AACA;AACA,4BAA0B,CAAiC;AAC3D;AACA;AACA,sCAAoC,CAAiC;AACrE;AACA;AACA,mCAAiC,CAAiC;AAClE;AACA;AACA,qCAAmC,CAAiC;AACpE;AACA;AACA,+BAA6B,CAAiC;AAC9D;AACA;AACA,uCAAqC,CAAiC;AACtE;AACA;AACA,6BAA2B,CAAiC;AAC5D;AACA;AACA,+BAA6B,CAAiC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAE,GAlWmBG,YAAY,EA6DVA,YAAY,EAKfA,YAAY,EAIZA,YAAY,EAcbC,IAAI,EA+GUF,QAAQ,EAOrBD,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAqB5BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAW9BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAW9BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EA4ErBL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGjCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGpBL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGjCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAG5BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGpCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGtBL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGxCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAG5BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,CAS1D;AACH,eAAeD,YAAY"}
|
|
1
|
+
{"version":3,"file":"content.js","names":["html","ArrowRight20","imgLg1x1","leadspaceImg","copy","StoryContent","slot"],"sources":["components/back-to-top/__stories__/data/content.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2016, 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 */\n\nimport { html } from 'lit-element';\nimport '../../../leadspace/index';\nimport '../../../content-block-simple/index';\nimport '../../../content-group-simple/index';\nimport '../../../feature-card/index';\nimport '../../../card-section-simple/index';\nimport '../../../cta-section/index';\nimport '../../../link-list/index';\nimport '../../../cta/index';\n\nimport ArrowRight20 from '@carbon/web-components/es/icons/arrow--right/20';\nimport imgLg1x1 from '../../../../../../storybook-images/assets/960/fpo--1x1--960x960--006.jpg';\nimport leadspaceImg from '../../../../../../storybook-images/assets/leadspace/leadspaceMax2.jpg';\n\nconst copy = `Many organizations are engaging in open source technology to optimize their Linux environment.\nThe ability to integrate open systems with traditional or hybrid cloud IT infrastructure has a profound effect\non driving innovation and a growing number of IT professionals are actively participating in open source\ncommunities as a way to stay at the forefront of development.`;\n\nconst StoryContent = () =>\n html`\n <dds-leadspace\n size=\"medium\"\n gradient-style-scheme=\"\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--leadspace\"\n >\n <dds-leadspace-heading role=\"heading\" aria-level=\"1\" slot=\"heading\"\n >Linux servers and operating systems</dds-leadspace-heading\n >\n Optimize your IT infrastructure — on-premises and in the cloud — with the\n flexibility and control that comes with open source development\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-leadspace-image\n slot=\"image\"\n alt=\"Image alt text\"\n default-src=\"${leadspaceImg}\"\n data-autoid=\"dds--image\"\n >\n <dds-image-item\n media=\"(min-width: 672px)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n <dds-image-item\n media=\"(min-width: 0)\"\n srcset=\"${leadspaceImg}\"\n ></dds-image-item>\n </dds-leadspace-image>\n </dds-leadspace>\n <main>\n <div class=\"bx--grid bx--grid--narrow\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple complementary-style-scheme=\"with-border\">\n <dds-content-block-heading\n >Flexibility and control are the key to open source Linux\n development</dds-content-block-heading\n >\n <dds-content-block-copy allowHTML=\"false\" size=\"sm\"\n >${copy}</dds-content-block-copy\n >\n <dds-text-cta\n slot=\"footer\"\n cta-type=\"local\"\n href=\"https://example.com\"\n >\n Explore supply chain consulting services\n </dds-text-cta>\n </dds-content-block-simple>\n </div>\n </div>\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-12 bx--offset-lg-4\">\n <dds-content-block-simple>\n <dds-content-block-heading\n >What sets IBM Linux servers apart?</dds-content-block-heading\n >\n <dds-link-list type=\"default\" slot=\"complementary\">\n <dds-link-list-heading>Resources</dds-link-list-heading>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"local\"\n >\n <p>Read the solution brief</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n <dds-link-list-item-card-cta\n href=\"https://example.com\"\n cta-type=\"external\"\n >\n <p>What is LinuxOne?</p>\n <dds-card-cta-footer></dds-card-cta-footer>\n </dds-link-list-item-card-cta>\n </dds-link-list>\n <dds-content-block-copy>\n <dds-content-item>\n <dds-content-item-heading\n >Industry-leading performance</dds-content-item-heading\n >\n <dds-content-item-copy\n >Potential for 30% improvement in transactional response\n time with fast data retrieval and queries, plus disk space\n compression.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Advanced protection</dds-content-item-heading\n >\n <dds-content-item-copy\n >Sophisticated authorization, encryption at rest and in\n transit, and comprehensive security controls for managing\n GDPR compliance.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Continuous availability</dds-content-item-heading\n >\n <dds-content-item-copy\n >Auto resynchronization and recovery plus clustering with\n IBM pureScale® to keep your business running\n 24x7.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Automated administration and\n tooling</dds-content-item-heading\n >\n <dds-content-item-copy\n >Automatic setup, optimization, diagnostics and management\n of the database environment to save administration time and\n cut maintenance costs.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading\n >Multiple data types and languages</dds-content-item-heading\n >\n <dds-content-item-copy\n >Integration with multiple platforms to build robust apps.\n Supports NoSQL, pureXML, Graph and JSON, Java, .Net, Ruby,\n Python, Perl and more.</dds-content-item-copy\n >\n </dds-content-item>\n <dds-content-item>\n <dds-content-item-heading>Scaling</dds-content-item-heading>\n <dds-content-item-copy\n >Elastic scaling of up to 128 machines in multicloud and\n hybrid environments to reduce storage costs, plus data\n federation to eliminate data silos.</dds-content-item-copy\n >\n </dds-content-item>\n </dds-content-block-copy>\n </dds-content-block-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-8 bx--offset-lg-4\">\n <dds-content-group-simple>\n <dds-content-group-heading\n >See how it works</dds-content-group-heading\n >\n <dds-feature-card href=\"https://example.com\">\n <dds-image\n slot=\"image\"\n alt=\"Feature card image\"\n default-src=\"${imgLg1x1}\"\n ></dds-image>\n <dds-card-heading\n >Discover how innovative companies are using open source\n technology to ignite collaboration</dds-card-heading\n >\n <dds-feature-card-footer>\n ${ArrowRight20({ slot: 'icon' })}\n </dds-feature-card-footer>\n </dds-feature-card>\n </dds-content-group-simple>\n </div>\n </div>\n </div>\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-card-section-simple>\n <dds-content-section-heading\n >Linux operating systems</dds-content-section-heading\n >\n <dds-card-group>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on mainframes</dds-card-heading>\n Linux on IBM mainframes lets you transform your application\n and data portfolio with data privacy, security, and cyber\n resiliency.\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on LinuxONE</dds-card-heading>\n <p>\n Transform your application and data portfolio with\n innovative data privacy, security and cyber resiliency\n capabilities, plus minimal downtime.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n <dds-card-group-item href=\"https://example.com\">\n <dds-card-heading>Linux OS on Power Systems</dds-card-heading>\n <p>\n Process massive amounts of data quickly, efficiently and\n cost-effectively on an open, scalable infrastructure with\n built-in acceleration.\n </p>\n <dds-card-cta-footer slot=\"footer\">\n ${ArrowRight20({ slot: 'icon' })}\n </dds-card-cta-footer>\n </dds-card-group-item>\n </dds-card-group>\n </dds-card-section-simple>\n </div>\n </div>\n </div>\n\n <div class=\"bx--grid bx--no-gutter\">\n <div class=\"bx--row\">\n <div class=\"bx--col-sm-4 bx--col-md-8 bx--col-lg-16\">\n <dds-cta-section>\n <dds-cta-block no-border>\n <dds-content-block-heading\n >Take the next step</dds-content-block-heading\n >\n <dds-content-block-copy\n >Get started with Linux servers and operating systems at the\n foundation of your IT infrastructure.</dds-content-block-copy\n >\n <dds-button-group\n slot=\"action\"\n role=\"list\"\n style=\"--dds--button-group--item-count:2;\"\n >\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"tertiary\"\n size=\"\"\n >Try it on premises<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n <dds-button-group-item\n aria-label=\"\"\n href=\"https://example.com\"\n role=\"listitem\"\n icon-layout=\"\"\n kind=\"primary\"\n size=\"\"\n >Try it on cloud<svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n slot=\"icon\"\n >\n <path\n d=\"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z\"\n ></path></svg\n ></dds-button-group-item>\n </dds-button-group>\n <dds-link-list slot=\"link-list\" type=\"end\">\n <dds-link-list-heading\n >More ways to explore Linux servers</dds-link-list-heading\n >\n <dds-link-list-item href=\"https://example.com\">\n Products ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Blogs ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Latest research ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Key concepts ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Client stories ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Training ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Analyst insights ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Events ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n <dds-link-list-item href=\"https://example.com\">\n Partners ${ArrowRight20({ slot: 'icon' })}\n </dds-link-list-item>\n </dds-link-list>\n </dds-cta-block>\n </dds-cta-section>\n </div>\n </div>\n </div>\n </main>\n `;\nexport default StoryContent;\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,aAAa;AAClC,OAAO,6BAA0B;AACjC,OAAO,wCAAqC;AAC5C,OAAO,wCAAqC;AAC5C,OAAO,gCAA6B;AACpC,OAAO,uCAAoC;AAC3C,OAAO,+BAA4B;AACnC,OAAO,6BAA0B;AACjC,OAAO,uBAAoB;AAE3B,OAAOC,YAAY,MAAM,iDAAiD;AAC1E,OAAOC,QAAQ,MAAM,0EAA0E;AAC/F,OAAOC,YAAY,MAAM,uEAAuE;AAEhG,MAAMC,IAAI,GAAI;AACd;AACA;AACA,8DAA8D;AAE9D,MAAMC,YAAY,GAAG,MACnBL,IAAI,cAAC;AACP;AACA;AACA;AACA;AACA,qBAAmB,CAAe;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAqB,CAAe;AACpC;AACA;AACA;AACA;AACA,oBAAkB,CAAe;AACjC;AACA;AACA;AACA,oBAAkB,CAAe;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAiB,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAA+B,CAAW;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA,oBAAkB,CAAiC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAoB,CAAiC;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AI,EAAE;AAAO,CAAC,CAAC,EAGpCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGtBL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAGxCL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,EAG5BL,YAAY,CAAC;EAAEK,IAAI,EAAE;AAAO,CAAC,CAAC,CAS1D;AACH,eAAeD,YAAY"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { LitElement } from 'lit-element';
|
|
10
10
|
declare const DDSBackToTop_base: {
|
|
11
11
|
new (...args: any[]): {
|
|
12
|
-
_handles: Set<import("@carbon/
|
|
12
|
+
_handles: Set<import("@carbon/web-components/es/globals/internal/handle").default>;
|
|
13
13
|
connectedCallback(): void;
|
|
14
14
|
disconnectedCallback(): void;
|
|
15
15
|
accessKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["components/back-to-top/back-to-top.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBxE;;;;GAIG;AACH,cACM,YAAa,SAAQ,iBAAkD;IAC3E;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAoB;IAE/C;;OAEG;IACH,OAAO,CAAC,WAAW,CAAU;IAE7B;;OAEG;IACH,OAAO,CAAC,aAAa,CAAU;IAE/B;;OAEG;IACH,OAAO,CAAC,eAAe,CAChB;IAEP;;OAEG;IACH,OAAO,CAAC,cAAc;IAOtB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;;;;OAKG;IACH,OAAO,CAAC,6BAA6B;IAarC,OAAO,CAAC,kBAAkB,CAExB;IAEF;;OAEG;IACH,OAAO,CAAC,cAAc;IAMtB;;OAEG;IAEH,MAAM,UAAQ;IAEd;;OAEG;IAEH,sBAAsB,SAAiB;IAIvC,OAAO,CAAC,aAAa,CAEnB;IAEF,iBAAiB;IAQjB,oBAAoB;IASpB,YAAY;IAIZ,MAAM;IAaN,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,YAAY,CAAC","file":"back-to-top.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport HostListener from '@carbon/
|
|
1
|
+
{"version":3,"sources":["components/back-to-top/back-to-top.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAiC,UAAU,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EnB;IAEF,iBAAiB;IAQjB,oBAAoB;IASpB,YAAY;IAIZ,MAAM;IAaN,MAAM,KAAK,cAAc,WAExB;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAGD,eAAe,YAAY,CAAC","file":"back-to-top.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport throttle from 'lodash-es/throttle.js';\nimport UpToTop20 from '@carbon/web-components/es/icons/up-to-top/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './back-to-top.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * Back to top\n *\n * @element dds-back-to-top\n */\n@customElement(`${ddsPrefix}-back-to-top`)\nclass DDSBackToTop extends HostListenerMixin(StableSelectorMixin(LitElement)) {\n /**\n * The observer for the resize of the document body.\n */\n private _observerResizeBody: any | null = null; // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n\n /**\n * The document height\n */\n private _bodyHeight!: number;\n\n /**\n * The viewport height\n */\n private _windowHeight!: number;\n\n /**\n * The handler for throttled scrolling\n */\n private _throttleScroll: (((event: Event) => void) & Cancelable) | null =\n null;\n\n /**\n * Button click scrolls to top\n */\n private _handleOnClick() {\n this.ownerDocument!.defaultView!.scrollTo({ top: 0, behavior: 'smooth' });\n this.ownerDocument.body.tabIndex = 0;\n this.ownerDocument.body.focus({ preventScroll: true });\n this.ownerDocument.body.removeAttribute('tabindex');\n }\n\n /**\n * Button visible when one full page length is scrolled if _showBackToTop is true\n */\n private _handleOnScroll() {\n if (this._showBackToTop()) {\n this.hidden =\n this.ownerDocument!.scrollingElement!.scrollTop <= this._windowHeight;\n }\n }\n\n /**\n * Cleans-up and creats the resize observer for the scrolling container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new resize observer.\n */\n private _cleanAndCreateObserverResize({ create }: { create?: boolean } = {}) {\n if (this._observerResizeBody) {\n this._observerResizeBody.disconnect();\n this._observerResizeBody = null;\n }\n if (create) {\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n this._observerResizeBody = new ResizeObserver(this._observeResizeBody);\n this._observerResizeBody.observe(this.ownerDocument!.body);\n }\n }\n\n private _observeResizeBody = (entries) => {\n this._bodyHeight = entries[entries.length - 1].target.scrollHeight;\n };\n\n /**\n * Show button only when document height is 3x greater than viewport\n */\n private _showBackToTop() {\n // @ts-ignore\n this._windowHeight = this.ownerDocument.defaultView?.innerHeight;\n return this._bodyHeight > this._windowHeight * 3;\n }\n\n /**\n * `false` if the button should be visible\n */\n @property({ type: Boolean, reflect: true })\n hidden = true;\n\n /**\n * Assistive text for back to top button.\n */\n @property({ attribute: 'back-to-top-assistive-text' })\n backToTopAssistiveText = 'Back to top';\n\n @HostListener('window:scroll')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleScroll = (event: Event) => {\n this._throttleScroll!(event);\n };\n\n connectedCallback() {\n super.connectedCallback();\n this._cleanAndCreateObserverResize({ create: true });\n if (!this._throttleScroll) {\n this._throttleScroll = throttle(this._handleOnScroll, 250);\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._cleanAndCreateObserverResize();\n if (this._throttleScroll) {\n this._throttleScroll.cancel();\n this._throttleScroll = null;\n }\n }\n\n firstUpdated() {\n this._cleanAndCreateObserverResize({ create: true });\n }\n\n render() {\n const { backToTopAssistiveText, _handleOnClick: handleOnClick } = this;\n return html`\n <button\n class=\"${prefix}--btn ${prefix}--btn--secondary ${prefix}--btn--icon-only ${prefix}--back-to-top__btn\"\n aria-label=\"${backToTopAssistiveText}\"\n @click=\"${handleOnClick}\"\n >\n ${UpToTop20()}\n </button>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--back-to-top`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSBackToTop;\n"]}
|
|
@@ -13,11 +13,11 @@ let _ = t => t,
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { html, property, customElement, LitElement } from 'lit-element';
|
|
16
|
-
import HostListener from '@carbon/
|
|
17
|
-
import HostListenerMixin from '@carbon/
|
|
16
|
+
import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
|
|
17
|
+
import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
|
|
18
18
|
import settings from 'carbon-components/es/globals/js/settings.js';
|
|
19
19
|
import throttle from 'lodash-es/throttle.js';
|
|
20
|
-
import UpToTop20 from '@carbon/
|
|
20
|
+
import UpToTop20 from '@carbon/web-components/es/icons/up-to-top/20.js';
|
|
21
21
|
import ddsSettings from "../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js";
|
|
22
22
|
import styles from "././back-to-top.css.js";
|
|
23
23
|
import StableSelectorMixin from "../../globals/mixins/stable-selector.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back-to-top.js","names":["html","property","customElement","LitElement","HostListener","HostListenerMixin","settings","throttle","UpToTop20","ddsSettings","styles","StableSelectorMixin","prefix","stablePrefix","ddsPrefix","DDSBackToTop","ownerDocument","defaultView","scrollTo","top","behavior","body","tabIndex","focus","preventScroll","removeAttribute","_showBackToTop","hidden","scrollingElement","scrollTop","_windowHeight","create","_observerResizeBody","disconnect","ResizeObserver","_observeResizeBody","observe","entries","_bodyHeight","length","target","scrollHeight","innerHeight","type","Boolean","reflect","attribute","event","_throttleScroll","_cleanAndCreateObserverResize","_handleOnScroll","cancel","backToTopAssistiveText","_handleOnClick","handleOnClick"],"sources":["components/back-to-top/back-to-top.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport HostListener from '@carbon/
|
|
1
|
+
{"version":3,"file":"back-to-top.js","names":["html","property","customElement","LitElement","HostListener","HostListenerMixin","settings","throttle","UpToTop20","ddsSettings","styles","StableSelectorMixin","prefix","stablePrefix","ddsPrefix","DDSBackToTop","ownerDocument","defaultView","scrollTo","top","behavior","body","tabIndex","focus","preventScroll","removeAttribute","_showBackToTop","hidden","scrollingElement","scrollTop","_windowHeight","create","_observerResizeBody","disconnect","ResizeObserver","_observeResizeBody","observe","entries","_bodyHeight","length","target","scrollHeight","innerHeight","type","Boolean","reflect","attribute","event","_throttleScroll","_cleanAndCreateObserverResize","_handleOnScroll","cancel","backToTopAssistiveText","_handleOnClick","handleOnClick"],"sources":["components/back-to-top/back-to-top.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2021, 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 */\n\nimport { html, property, customElement, LitElement } from 'lit-element';\nimport HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';\nimport HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';\nimport settings from 'carbon-components/es/globals/js/settings.js';\nimport throttle from 'lodash-es/throttle.js';\nimport UpToTop20 from '@carbon/web-components/es/icons/up-to-top/20.js';\nimport ddsSettings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';\nimport styles from './back-to-top.scss';\nimport StableSelectorMixin from '../../globals/mixins/stable-selector';\n\nconst { prefix } = settings;\nconst { stablePrefix: ddsPrefix } = ddsSettings;\ninterface Cancelable {\n cancel(): void;\n}\n\n/**\n * Back to top\n *\n * @element dds-back-to-top\n */\n@customElement(`${ddsPrefix}-back-to-top`)\nclass DDSBackToTop extends HostListenerMixin(StableSelectorMixin(LitElement)) {\n /**\n * The observer for the resize of the document body.\n */\n private _observerResizeBody: any | null = null; // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n\n /**\n * The document height\n */\n private _bodyHeight!: number;\n\n /**\n * The viewport height\n */\n private _windowHeight!: number;\n\n /**\n * The handler for throttled scrolling\n */\n private _throttleScroll: (((event: Event) => void) & Cancelable) | null =\n null;\n\n /**\n * Button click scrolls to top\n */\n private _handleOnClick() {\n this.ownerDocument!.defaultView!.scrollTo({ top: 0, behavior: 'smooth' });\n this.ownerDocument.body.tabIndex = 0;\n this.ownerDocument.body.focus({ preventScroll: true });\n this.ownerDocument.body.removeAttribute('tabindex');\n }\n\n /**\n * Button visible when one full page length is scrolled if _showBackToTop is true\n */\n private _handleOnScroll() {\n if (this._showBackToTop()) {\n this.hidden =\n this.ownerDocument!.scrollingElement!.scrollTop <= this._windowHeight;\n }\n }\n\n /**\n * Cleans-up and creats the resize observer for the scrolling container.\n *\n * @param [options] The options.\n * @param [options.create] `true` to create the new resize observer.\n */\n private _cleanAndCreateObserverResize({ create }: { create?: boolean } = {}) {\n if (this._observerResizeBody) {\n this._observerResizeBody.disconnect();\n this._observerResizeBody = null;\n }\n if (create) {\n // TODO: Wait for `.d.ts` update to support `ResizeObserver`\n // @ts-ignore\n this._observerResizeBody = new ResizeObserver(this._observeResizeBody);\n this._observerResizeBody.observe(this.ownerDocument!.body);\n }\n }\n\n private _observeResizeBody = (entries) => {\n this._bodyHeight = entries[entries.length - 1].target.scrollHeight;\n };\n\n /**\n * Show button only when document height is 3x greater than viewport\n */\n private _showBackToTop() {\n // @ts-ignore\n this._windowHeight = this.ownerDocument.defaultView?.innerHeight;\n return this._bodyHeight > this._windowHeight * 3;\n }\n\n /**\n * `false` if the button should be visible\n */\n @property({ type: Boolean, reflect: true })\n hidden = true;\n\n /**\n * Assistive text for back to top button.\n */\n @property({ attribute: 'back-to-top-assistive-text' })\n backToTopAssistiveText = 'Back to top';\n\n @HostListener('window:scroll')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleScroll = (event: Event) => {\n this._throttleScroll!(event);\n };\n\n connectedCallback() {\n super.connectedCallback();\n this._cleanAndCreateObserverResize({ create: true });\n if (!this._throttleScroll) {\n this._throttleScroll = throttle(this._handleOnScroll, 250);\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._cleanAndCreateObserverResize();\n if (this._throttleScroll) {\n this._throttleScroll.cancel();\n this._throttleScroll = null;\n }\n }\n\n firstUpdated() {\n this._cleanAndCreateObserverResize({ create: true });\n }\n\n render() {\n const { backToTopAssistiveText, _handleOnClick: handleOnClick } = this;\n return html`\n <button\n class=\"${prefix}--btn ${prefix}--btn--secondary ${prefix}--btn--icon-only ${prefix}--back-to-top__btn\"\n aria-label=\"${backToTopAssistiveText}\"\n @click=\"${handleOnClick}\"\n >\n ${UpToTop20()}\n </button>\n `;\n }\n\n static get stableSelector() {\n return `${ddsPrefix}--back-to-top`;\n }\n\n static styles = styles;\n}\n\n/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */\nexport default DDSBackToTop;\n"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,UAAU,QAAQ,aAAa;AACvE,OAAOC,YAAY,MAAM,+DAA+D;AACxF,OAAOC,iBAAiB,MAAM,2DAA2D;AACzF,OAAOC,QAAQ,MAAM,6CAA6C;AAClE,OAAOC,QAAQ,MAAM,uBAAuB;AAC5C,OAAOC,SAAS,MAAM,iDAAiD;AACvE,OAAOC,WAAW,MAAM,kFAA+E;AACvG,OAAOC,MAAM,MAAM,wBAAoB;AACvC,OAAOC,mBAAmB,MAAM,yCAAsC;AAEtE,MAAM;EAAEC;AAAO,CAAC,GAAGN,QAAQ;AAC3B,MAAM;EAAEO,Y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