@repobit/dex-system-design 3.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1074 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -1,31 +1,63 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
1
|
+
import{below as e,matchesBelow as t}from"../shared/token-scales.js";import{defineElement as n}from"../shared/define-element.js";import{DEFAULT_THEME as r}from"../../tokens/themes/index.js";import"../../tokens/tokens.js";import i from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as a}from"../shared/controller.slot.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as o}from"../shared/ensemble.css.js";import"../icons/close.js";import"../icons/arrow-down.js";import"../icons/arrow-up.js";import"../img/img.js";import{MediaQueryController as s}from"../shared/controller.media-query.js";import"../divider/divider.js";import"./footer-group.js";import{localeMap as c}from"./localeMap.js";import{localeFromPath as l,toggleImpressum as u}from"./footer-locale.js";import"./footer-nav.js";import d from"./footer.css.js";import"../grid/grid.js";import"../icons/globe.js";import{LitElement as f,html as p,nothing as m}from"lit";import{property as h,state as g}from"lit/decorators.js";var _={"zh-HK":{place:`en`,language:`en`},"zh-TW":{place:`en`}},v=[`logo`,`masterbrand`,`nav`,`quick-links`,`social-links`,`secondary-nav`,`address`,`copyright`,`anpc`,`country-label`],y=class extends f{constructor(...n){super(...n),this._country=``,this.currentLocale=`en`,this.maxColumnsPerRow=2,this.withoutCountryPicker=!1,this.closeLabel=``,this._isMobile=t(`md`),this._viewport=new s(this,e(`md`),e=>{this._isMobile=e}),this._slots=new a(this,{slots:v,text:[`country-label`]})}connectedCallback(){super.connectedCallback(),this.setAttribute(`data-brand`,r),this._localeExplicit=this.hasAttribute(`current-locale`)||this.currentLocale!==`en`,this._initLocaleFromUrl()}updated(e){e.has(`currentLocale`)&&this._toggleImpressumVisibility()}get _maxColumns(){let e=Math.floor(Number(this.maxColumnsPerRow));return Number.isFinite(e)&&e>=1?e:2}_toggleImpressumVisibility(){u(this.shadowRoot.querySelector(`slot[name="secondary-nav"]`),this.locale)}_scrollToCountries(){this.shadowRoot.querySelector(`.footer-countries-container`)?.scrollIntoView({behavior:this._scrollBehavior,block:`start`})}_scrollToTop(){this.scrollIntoView({behavior:this._scrollBehavior,block:`start`})}get _scrollBehavior(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`}_initLocaleFromUrl(){if(this._localeExplicit)return;let e=l(window.location.pathname);e&&([this.currentLocale,this._country]=e)}_onCountriesToggle(e){e.target.open?this._scrollToCountries():this._closingInPlace||this._scrollToTop(),this._closingInPlace=!1}_closeCountries(e){let t=e.currentTarget.closest(`details`);this._closingInPlace=this._isMobile,t.open=!1,t.querySelector(`summary`).focus({preventScroll:!0})}getCountriesList(){return Object.entries(c).map(([e,t])=>({locale:e,label:t}))}_labelLang({locale:e}){return{place:e,language:e,..._[e]}}_renderCountryLabel(e){let{place:t,language:n}=this._labelLang(e),[r,i]=e.label.split(` - `);return t===n||i===void 0?e.label:p`<span lang="${t}">${r}</span> - ${i}`}_isCurrentCountry({locale:e,label:t}){return this._country===t||e.toLowerCase()===this.locale}get locale(){return(this.currentLocale||`en`).toLowerCase()}_renderPicker(){let e=this.getCountriesList(),t=Math.ceil(e.length/3),n=[e.slice(0,t),e.slice(t,t*2),e.slice(t*2)],r=this._slots.text(`country-label`);return p`
|
|
2
|
+
<!-- The list is the summary's own content, so it opens under the
|
|
3
|
+
toggle in the same row; the stylesheet runs it the row's full width.
|
|
4
|
+
Its links are plain anchors: a reader who picks a country follows a
|
|
5
|
+
link: hreflang says which language it leads to, lang which one its
|
|
6
|
+
label is in. -->
|
|
7
|
+
<!-- No icon here has a colour of its own: each takes its summary's or
|
|
8
|
+
button's, so forced colours repaint it (footer.css.ts). -->
|
|
9
|
+
<details class="footer-countries-toggle" @toggle="${this._onCountriesToggle}">
|
|
10
|
+
<summary class="country-toggle">
|
|
11
|
+
<span class="country-toggle-row">
|
|
12
|
+
<bd-icon name="globe" size="md"></bd-icon>
|
|
13
|
+
<span class="country-toggle-label"><span class="country-label" ?hidden=${!!this._country}><slot name="country-label"></slot></span>${this._country}</span>
|
|
14
|
+
<bd-icon name="arrow-down" class="when-closed" size="md"></bd-icon>
|
|
15
|
+
<bd-icon name="arrow-up" class="when-open" size="md"></bd-icon>
|
|
16
|
+
</span>
|
|
17
|
+
</summary>
|
|
18
|
+
<div class="footer-countries-container">
|
|
19
|
+
<!-- The icon is the only content and an unlabelled bd-icon's svg is
|
|
20
|
+
aria-hidden, so the button is named by close-label: on the
|
|
21
|
+
control, never on the icon, since naming both announces it
|
|
22
|
+
twice. WCAG 2.2 SC 4.1.2. -->
|
|
23
|
+
<button
|
|
24
|
+
class="close-countries-button"
|
|
25
|
+
aria-label="${this.closeLabel||m}"
|
|
26
|
+
@click="${this._closeCountries}"
|
|
27
|
+
>
|
|
28
|
+
<bd-icon name="close" size="md"></bd-icon>
|
|
29
|
+
</button>
|
|
30
|
+
${n.map(e=>p`
|
|
31
|
+
<bd-footer-group>
|
|
32
|
+
${e===n[0]&&r?p`<bd-h slot="title" as="h6">${r}</bd-h>`:m}
|
|
33
|
+
${e.map(e=>p`<a
|
|
34
|
+
href="/${e.locale.toLowerCase()}/"
|
|
35
|
+
hreflang="${e.locale}"
|
|
36
|
+
lang="${this._labelLang(e).language}"
|
|
37
|
+
aria-current="${this._isCurrentCountry(e)?`true`:m}"
|
|
38
|
+
>${this._renderCountryLabel(e)}</a>`)}
|
|
39
|
+
</bd-footer-group>
|
|
40
|
+
`)}
|
|
41
|
+
</div>
|
|
42
|
+
</details>
|
|
43
|
+
`}render(){let e=e=>this._slots.has(e),t=e(`logo`)||e(`masterbrand`),n=e(`nav`),r=e(`quick-links`),i=e(`social-links`),a=r||i,o=e(`secondary-nav`),s=e(`address`),c=o||s,l=this.locale.startsWith(`ro`)&&e(`anpc`),u=!this.withoutCountryPicker,d=e(`copyright`)||l||u,f=e=>p`<bd-divider orientation="horizontal" class="${e??m}" width="100%" color="on-brand" opacity="0.25"></bd-divider>`;return p`
|
|
44
|
+
<div class="footer-top-bleed" ?hidden=${!t}>
|
|
3
45
|
<div class="bd-ensemble container">
|
|
4
46
|
<div class="footer-top">
|
|
5
|
-
<div class="footer-logo">
|
|
6
|
-
|
|
7
|
-
<span>${c}</span>
|
|
8
|
-
</slot>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="footer-top-right">
|
|
11
|
-
<slot name="top-right">
|
|
12
|
-
<div slot="top-right">
|
|
13
|
-
<span slot="logo">${l}</span>
|
|
14
|
-
</div>
|
|
15
|
-
</slot>
|
|
16
|
-
</div>
|
|
47
|
+
<div class="footer-logo" ?hidden=${!e(`logo`)}><slot name="logo"></slot></div>
|
|
48
|
+
<div class="footer-top-right" ?hidden=${!e(`masterbrand`)}><slot name="masterbrand"></slot></div>
|
|
17
49
|
</div>
|
|
18
50
|
</div>
|
|
19
51
|
</div>
|
|
20
52
|
|
|
21
53
|
<footer class="bd-ensemble container">
|
|
22
|
-
<div class="footer-nav-main-container">
|
|
54
|
+
<div class="footer-nav-main-container" ?hidden=${!n}>
|
|
23
55
|
<slot name="nav"></slot>
|
|
24
56
|
</div>
|
|
25
|
-
|
|
57
|
+
${n&&(a||c)?f():m}
|
|
26
58
|
|
|
27
|
-
<div class="footer-links">
|
|
28
|
-
<div class="footer-links-left">
|
|
59
|
+
<div class="footer-links" ?hidden=${!a}>
|
|
60
|
+
<div class="footer-links-left" ?hidden=${!r}>
|
|
29
61
|
<bd-grid
|
|
30
62
|
cols="1"
|
|
31
63
|
cols-sm="1"
|
|
@@ -39,95 +71,41 @@ import{defineElement as e}from"../shared/define-element.js";import{DEFAULT_THEME
|
|
|
39
71
|
<slot name="quick-links"></slot>
|
|
40
72
|
</bd-grid>
|
|
41
73
|
</div>
|
|
42
|
-
|
|
43
|
-
${this._isMobile?
|
|
74
|
+
${r&&i?f(`tablet-divider`):m}
|
|
75
|
+
${this._isMobile&&r&&i?f():m}
|
|
44
76
|
|
|
45
|
-
<div class="footer-links-right social-icons">
|
|
46
|
-
<slot name="social-links">
|
|
47
|
-
<bd-link href="https://www.facebook.com/bitdefender" target="_blank" variant="secondary" class="bd-facebook">Facebook</bd-link>
|
|
48
|
-
<bd-link href="https://twitter.com/bitdefender" target="_blank" variant="secondary" class="bd-twitter">Twitter</bd-link>
|
|
49
|
-
<bd-link href="https://www.linkedin.com/company/bitdefender" target="_blank" variant="secondary" class="bd-linkedin">LinkedIn</bd-link>
|
|
50
|
-
<bd-link href="https://www.youtube.com/c/Bitdefender" target="_blank" variant="secondary" class="bd-youtube">YouTube</bd-link>
|
|
51
|
-
<bd-link href="https://www.instagram.com/bitdefender/" target="_blank" variant="secondary" class="bd-instagram">Instagram</bd-link>
|
|
52
|
-
<bd-link href="https://www.tiktok.com/@bitdefender" target="_blank" variant="secondary" class="bd-tiktok">TikTok</bd-link>
|
|
53
|
-
</slot>
|
|
77
|
+
<div class="footer-links-right social-icons" ?hidden=${!i}>
|
|
78
|
+
<slot name="social-links"></slot>
|
|
54
79
|
</div>
|
|
55
80
|
</div>
|
|
56
81
|
|
|
57
|
-
${this._isMobile
|
|
82
|
+
${!this._isMobile&&a&&c?f(`links-divider`):m}
|
|
58
83
|
|
|
59
|
-
<div class="footer-middle-line">
|
|
60
|
-
<div class="secondary-nav-container">
|
|
84
|
+
<div class="footer-middle-line" ?hidden=${!c}>
|
|
85
|
+
<div class="secondary-nav-container" ?hidden=${!o}>
|
|
61
86
|
<slot name="secondary-nav"></slot>
|
|
62
|
-
${this._isMobile?
|
|
87
|
+
${this._isMobile&&s?f():m}
|
|
63
88
|
</div>
|
|
64
|
-
<div class="footer-address">
|
|
65
|
-
<slot name="address">
|
|
66
|
-
<div>
|
|
67
|
-
111 W. Houston Street, Suite 2105, Frost Tower Building<br />
|
|
68
|
-
San Antonio, Texas 78205
|
|
69
|
-
</div>
|
|
70
|
-
</slot>
|
|
89
|
+
<div class="footer-address" ?hidden=${!s}>
|
|
90
|
+
<slot name="address"></slot>
|
|
71
91
|
</div>
|
|
72
92
|
</div>
|
|
73
93
|
|
|
74
|
-
|
|
94
|
+
${(n||a||c)&&d?f():m}
|
|
75
95
|
|
|
76
|
-
<div class="footer-extra">
|
|
77
|
-
<div class="footer-copy">
|
|
78
|
-
<slot name="copyright">
|
|
79
|
-
Copyright © 1997 - ${e} Bitdefender
|
|
80
|
-
</slot>
|
|
96
|
+
<div class="footer-extra" ?hidden=${!d}>
|
|
97
|
+
<div class="footer-copy" ?hidden=${!e(`copyright`)}>
|
|
98
|
+
<slot name="copyright"></slot>
|
|
81
99
|
</div>
|
|
82
100
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
101
|
+
<!-- Romanian pages only, as 3.x drew it: the slot is always rendered,
|
|
102
|
+
its box hidden everywhere else. -->
|
|
103
|
+
<div class="footer-anpc" ?hidden=${!l}>
|
|
104
|
+
<slot name="anpc"></slot>
|
|
105
|
+
</div>
|
|
88
106
|
|
|
89
|
-
|
|
90
|
-
toggle in the same row; the stylesheet runs it the row's full width.
|
|
91
|
-
Its links are plain anchors: a reader who picks a country follows a
|
|
92
|
-
link: hreflang says which language it leads to, lang which one its
|
|
93
|
-
label is in. -->
|
|
94
|
-
<!-- No icon here has a colour of its own: each takes its summary's or
|
|
95
|
-
button's, so forced colours repaint it (footer.css.ts). -->
|
|
96
|
-
<details class="footer-countries-toggle" @toggle="${this._onCountriesToggle}">
|
|
97
|
-
<summary class="country-toggle">
|
|
98
|
-
<span class="country-toggle-row">
|
|
99
|
-
<bd-globe-icon size="20"></bd-globe-icon>
|
|
100
|
-
<span class="country-toggle-label">${this.selectedCountry}</span>
|
|
101
|
-
<bd-arrow-down-icon class="when-closed" size="20"></bd-arrow-down-icon>
|
|
102
|
-
<bd-arrow-up-icon class="when-open" size="20"></bd-arrow-up-icon>
|
|
103
|
-
</span>
|
|
104
|
-
</summary>
|
|
105
|
-
<div class="footer-countries-container">
|
|
106
|
-
<!-- The icon is the only content and bd-close-icon's svg is aria-hidden,
|
|
107
|
-
so without a label this button had no accessible name at all: a
|
|
108
|
-
screen reader announced "button" and nothing else. WCAG 2.2 SC
|
|
109
|
-
4.1.2. The name goes on the control, never on the icon -- naming
|
|
110
|
-
both makes it announce twice. -->
|
|
111
|
-
<button
|
|
112
|
-
class="close-countries-button"
|
|
113
|
-
aria-label="Close country list"
|
|
114
|
-
@click="${this._closeCountries}"
|
|
115
|
-
>
|
|
116
|
-
<bd-close-icon size="18"></bd-close-icon>
|
|
117
|
-
</button>
|
|
118
|
-
${i.map(e=>h`
|
|
119
|
-
<bd-footer-links-group title="${e===i[0]?`Choose your country`:``}">
|
|
120
|
-
${e.map(e=>h`<a
|
|
121
|
-
href="/${e.locale.toLowerCase()}/"
|
|
122
|
-
hreflang="${e.locale}"
|
|
123
|
-
lang="${this._labelLang(e).language}"
|
|
124
|
-
aria-current="${this._isCurrentCountry(e)?`true`:g}"
|
|
125
|
-
>${this._renderCountryLabel(e)}</a>`)}
|
|
126
|
-
</bd-footer-links-group>
|
|
127
|
-
`)}
|
|
128
|
-
</div>
|
|
129
|
-
</details>
|
|
107
|
+
${u?this._renderPicker():m}
|
|
130
108
|
</div>
|
|
131
109
|
</footer>
|
|
132
|
-
`}static{this.styles=[
|
|
110
|
+
`}static{this.styles=[o,d]}};i([g()],y.prototype,`_country`,void 0),i([h({type:String,attribute:`current-locale`})],y.prototype,`currentLocale`,void 0),i([h({type:Number,attribute:`max-columns-per-row`})],y.prototype,`maxColumnsPerRow`,void 0),i([h({type:Boolean,attribute:`without-country-picker`})],y.prototype,`withoutCountryPicker`,void 0),i([h({type:String,attribute:`close-label`})],y.prototype,`closeLabel`,void 0),i([g()],y.prototype,`_isMobile`,void 0),y=i([n(`bd-footer`)],y);export{y as BdFooter};
|
|
133
111
|
//# sourceMappingURL=footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","names":["footerCSS","_decorate","__decorate","footer_css_default","LABEL_LANG","BdFooter","LitElement","_args","matchesBelow","MediaQueryController","below","mobile","DEFAULT_THEME","changedProps","n","toggleImpressum","resolved","localeFromPath","details","localeMap","locale","country","c","name","tongue","place","language","label","year","showAnpc","countriesList","chunkSize","countryChunks","quickLinksElements","linksGroups","el","child","footerLogo","footerMasterbrand","footerAnpc","chunk","nothing","ensembleCSS","state","property","defineElement"],"sources":["../../../../src/components/footer/footer.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport { MediaQueryController } from '#shared/controller.media-query.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { DEFAULT_THEME } from '#tokens/themes/index.ts';\n/* The md boundary comes from the shared breakpoint source so the CSS and the\n JS cannot drift apart again: bd-footer switched at 767 while bd-footer-lp,\n sharing footer-nav-menu.css.ts, switched at 768 — so at exactly 768px the\n LP footer rendered its mobile markup under the desktop stylesheet. */\nimport { below, matchesBelow } from '#shared/token-scales.ts';\nimport '#components/divider/divider-horizontal.ts';\nimport '#components/divider/divider-vertical.ts';\nimport '#components/footer/footer-links-group.ts';\nimport '#components/footer/footer-nav-menu.ts';\nimport '#components/grid/grid.ts';\nimport '#components/link/link.ts';\nimport \"#components/icons/arrow-down-icon.ts\";\nimport \"#components/icons/arrow-up-icon.ts\";\nimport \"#components/icons/close-icon.ts\";\nimport \"#components/icons/globe-icon.ts\";\nimport footerCSS from './footer.css.ts';\nimport { ensembleCSS } from '#shared/ensemble.css.ts';\nimport { localeMap } from './localeMap.ts';\nimport { DEFAULT_LOCALE, localeFromPath, toggleImpressum } from './footer-locale.ts';\nimport { footerAnpc, footerLogo, footerMasterbrand } from './footer-images.ts';\n\n/* The labels in localeMap not written in their locale's language. A label is\n \"<place> - <language>\", and these two were read in a Chinese voice: Hong\n Kong's is English throughout, and Taiwan's place name is English beside\n 台灣. */\nconst LABEL_LANG: Record<string, { place?: string; language?: string }> = {\n 'zh-HK': { place: 'en', language: 'en' },\n 'zh-TW': { place: 'en' }\n};\n\ninterface Country {\n locale: string;\n label : string;\n}\n\n@defineElement('bd-footer')\nexport class BdFooter extends LitElement {\n @state()\n selectedCountry = 'Choose your country';\n /* `current-locale` and `max-columns-per-row`, both documented dash-cased\n and both previously inert for the same reason as bd-header above: Lit\n lowercases a property name to get its observed attribute, so these were\n listening for `currentlocale` and `maxcolumnsperrow`.\n\n current-locale is the consequential one, and it did not merely fail --\n it failed into nonsense. The attribute was ignored, so the locale fell\n through to URL detection, and under Storybook the path is /iframe.html:\n measured on Components/Footer Default, Romanian Locale and German\n Locale, all three reported currentLocale \"iframe.html\" while their\n markup asked for \"en\", \"ro\" and \"de\". Twelve usages in footer.stories.ts\n write it, including the documented usage example.\n\n max-columns-per-row has a single usage, in the playground, and it passes\n 2 -- which is already the default -- so repairing it changes no rendered\n output today. It is fixed with the other one because it is the same\n defect in the same declaration block, not because it was visible.\n\n Zero consumers of either working lowercase spelling across src, schemas\n and docs, and no property bindings, so naming the attributes is safe. */\n @property({ type: String, attribute: \"current-locale\" })\n currentLocale = DEFAULT_LOCALE;\n @property({ type: Number, attribute: \"max-columns-per-row\" })\n maxColumnsPerRow = 2;\n @state()\n _isMobile = matchesBelow('md');\n\n _localeExplicit?: boolean;\n _closingInPlace?: boolean;\n\n /* The viewport, as one media query's change event. It was a window resize\n listener, removed with a fresh .bind(this) that matched nothing, so every\n footer ever disconnected kept its listener and kept running. */\n _viewport = new MediaQueryController(this, below('md'), mobile => { this._isMobile = mobile; });\n\n connectedCallback() {\n super.connectedCallback();\n /* The footer is Bitdefender's on every page, a co-branded one included,\n wherever the page puts a partner's data-brand. Pinning it to the\n default theme reuses that theme's generated block, which restates every\n themable token, so nothing a partner changed reaches in here. The host's\n attributes are normally the page's; this one is the exception, because\n the requirement is absolute, not a default the page may override. */\n this.setAttribute('data-brand', DEFAULT_THEME);\n /* Whether the consuming page asked for a locale, captured before inference\n runs. An attribute in the markup counts, and so does a property assigned\n before the element connects -- both are the page stating its intent. A\n page that explicitly asks for 'en' is indistinguishable from one that\n said nothing, and that costs nothing: it asked for the value it gets. */\n this._localeExplicit =\n this.hasAttribute('current-locale') || this.currentLocale !== DEFAULT_LOCALE;\n this._initLocaleFromUrl();\n }\n\n firstUpdated(changedProps: PropertyValues<this>) {\n super.firstUpdated(changedProps);\n }\n\n updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('currentLocale')) {\n this._toggleImpressumVisibility();\n }\n }\n\n /* maxColumnsPerRow, finally read. The property has been declared here with\n a default of 2 since it was written, the manifest claims it, and\n footer.stories.ts documents it as \"Max columns per row in the quick-links\n grid\" -- and nothing ever looked at it. P7H.1 made the attribute reach the\n property; this makes the property reach the layout.\n\n It drives the grid the documentation names, through the cols-* attributes\n bd-grid observes since P7H. Mobile and sm stay at one column because the\n footer stacks there regardless of the cap, and md is capped at 2 because\n that is what md has always shown -- the property raises the ceiling at the\n widest breakpoint rather than redesigning the ladder.\n\n The default therefore renders exactly what it rendered before:\n min(2, 2) = 2 at md and 2 at lg, which is the pair that was hard-coded.\n Verified by measurement, not by reading.\n\n Clamped because the attribute is public: a 0, a negative or a fractional\n value would otherwise reach grid-template-columns as\n `repeat(0, 1fr)`. */\n get _maxColumns() {\n const n = Math.floor(Number(this.maxColumnsPerRow));\n return Number.isFinite(n) && n >= 1 ? n : 2;\n }\n\n _toggleImpressumVisibility() {\n toggleImpressum(this.shadowRoot!.querySelector<HTMLSlotElement>('slot[name=\"secondary-nav\"]'), this.locale);\n }\n\n /* Smooth only for a reader who has not asked for reduced motion. */\n _scrollToCountries() {\n this.shadowRoot!.querySelector('.footer-countries-container')\n ?.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n _scrollToTop() {\n this.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n get _scrollBehavior() {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth';\n }\n\n /* Locale precedence, and it is a precedence rather than a sequence of\n assignments -- which is what went wrong.\n\n 1. the country selector, when a reader picks one (see _selectCountry)\n 2. an explicit current-locale attribute or currentLocale property\n 3. a locale inferred from the first path segment, IF it resolves to a\n supported locale\n 4. DEFAULT_LOCALE\n\n Two defects sat in the old version, both in its closing lines. It ended\n with an unconditional `this.currentLocale = originalKey || urlLocale`,\n so:\n\n - an explicit input was silently overwritten by the environment. Measured:\n <bd-footer current-locale=\"ro\"> served from /de/ reported \"de\".\n - any first path segment became the locale verbatim, supported or not.\n Measured: /iframe.html reported currentLocale \"iframe.html\", and /zz-zz/\n reported \"zz-zz\".\n\n The second is why Storybook showed \"iframe.html\" as a locale, and the fix\n is not a Storybook exception -- there is none here. A segment that does\n not resolve against localeMap is simply not a locale, on any host. The\n resolution itself is localeFromPath (footer-locale.ts), which bd-footer-lp\n shares; only its authority is decided here. */\n _initLocaleFromUrl() {\n if (this._localeExplicit) return;\n\n const resolved = localeFromPath(window.location.pathname);\n\n /* Nothing resolved: the segment is not a locale, so neither the locale nor\n the country is touched. This is the line that used to assign the raw\n path segment. */\n if (!resolved) return;\n\n [this.currentLocale, this.selectedCountry] = resolved;\n }\n\n /* The country list is a <details>, so the browser keeps its state, its\n expanded/collapsed announcement and its keyboard, and finds a country in\n it with Ctrl+F while it is shut. What is left here is where the page\n scrolls: to the list when it opens, back to the footer when it shuts --\n except from the list's own close button on a phone, where the reader is\n already where they want to be. */\n _onCountriesToggle(e: Event) {\n if ((e.target as HTMLDetailsElement).open) this._scrollToCountries();\n else if (!this._closingInPlace) this._scrollToTop();\n this._closingInPlace = false;\n }\n\n /* Focus goes back to the summary, which is what opened the list: the\n button that had it is inside the list, and closing it hides it. */\n _closeCountries(e: MouseEvent) {\n const details = (e.currentTarget as HTMLButtonElement).closest('details')!;\n this._closingInPlace = this._isMobile;\n details.open = false;\n details.querySelector('summary')!.focus({ preventScroll: true });\n }\n\n getCountriesList(): Country[] {\n return Object.entries(localeMap).map(([locale, country]) => ({\n locale,\n label: country\n }));\n }\n\n /* The languages a country's label is written in: its place, and the\n language after the dash. lang is how the label is read aloud, and\n hreflang, not lang, says what the link leads to, so a label written in\n another language than its locale's says so (LABEL_LANG). */\n _labelLang({ locale }: Country) {\n return { place: locale, language: locale, ...LABEL_LANG[locale] };\n }\n\n /* The place in a lang of its own only when it differs from the rest. No\n whitespace is added: the label reads as localeMap spells it. */\n _renderCountryLabel(c: Country) {\n const { place, language } = this._labelLang(c);\n const [name, tongue] = c.label.split(' - ');\n if (place === language || tongue === undefined) return c.label;\n return html`<span lang=\"${place}\">${name}</span> - ${tongue}`;\n }\n\n /* The country the page is in: the one picked from the URL, or the one an\n explicit current-locale names exactly. */\n _isCurrentCountry({ locale, label }: Country) {\n return this.selectedCountry === label || locale.toLowerCase() === this.locale;\n }\n\n get locale() {\n const val = (this.currentLocale || 'en').toLowerCase();\n return val;\n }\n\n /* No _updateNavLinks. It queried '.footer-nav-main bd-link' inside this\n shadow root and wrote a locale into the href of everything it found, and it\n could never find anything: .footer-nav-main is rendered by bd-footer-nav\n into bd-footer-nav's own shadow root, and this template has only\n .footer-nav-main-container, the box its slot sits in. Measured 0 matches\n across the 22 built footer stories.\n\n So the four locale-aware nav hrefs it promised -- consumer,\n small-business, business, partners -- were never written, and no story\n depended on them. Localising slotted navigation is real work with a real\n API question (whose hrefs are they, and does a component rewrite markup it\n does not own); it is not this, and leaving this here made it look\n answered. */\n\n render() {\n const year = new Date().getFullYear();\n const showAnpc = this.locale.startsWith('ro');\n const countriesList = this.getCountriesList();\n\n const chunkSize = Math.ceil(countriesList.length / 3);\n const countryChunks = [\n countriesList.slice(0, chunkSize),\n countriesList.slice(chunkSize, chunkSize * 2),\n countriesList.slice(chunkSize * 2)\n ];\n\n const quickLinksSlot = this.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=\"quick-links\"]');\n const quickLinksElements = quickLinksSlot?.assignedElements({ flatten: true }) || [];\n\n const linksGroups: Element[] = [];\n quickLinksElements.forEach(el => {\n if (el.tagName === 'BD-FOOTER-LINKS-GROUP') {\n linksGroups.push(el);\n } else {\n const children = el.querySelectorAll ? el.querySelectorAll('bd-footer-links-group') : [];\n children.forEach(child => linksGroups.push(child));\n }\n });\n\n return html`\n <div class=\"footer-top-bleed\">\n <div class=\"bd-ensemble container\">\n <div class=\"footer-top\">\n <div class=\"footer-logo\">\n <slot name=\"logo\">\n <span>${footerLogo}</span>\n </slot>\n </div>\n <div class=\"footer-top-right\">\n <slot name=\"top-right\">\n <div slot=\"top-right\">\n <span slot=\"logo\">${footerMasterbrand}</span>\n </div>\n </slot>\n </div>\n </div>\n </div>\n </div>\n\n <footer class=\"bd-ensemble container\">\n <div class=\"footer-nav-main-container\">\n <slot name=\"nav\"></slot>\n </div>\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-links\">\n <div class=\"footer-links-left\">\n <bd-grid\n cols=\"1\"\n cols-sm=\"1\"\n cols-md=\"${Math.min(2, this._maxColumns)}\"\n cols-lg=\"${this._maxColumns}\"\n gap=\"lg\"\n align=\"start\"\n justify=\"start\"\n padding=\"none\"\n >\n <slot name=\"quick-links\"></slot>\n </bd-grid>\n </div>\n <bd-divider-horizontal class=\"tablet-divider\" width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-links-right social-icons\">\n <slot name=\"social-links\">\n <bd-link href=\"https://www.facebook.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-facebook\">Facebook</bd-link>\n <bd-link href=\"https://twitter.com/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-twitter\">Twitter</bd-link>\n <bd-link href=\"https://www.linkedin.com/company/bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-linkedin\">LinkedIn</bd-link>\n <bd-link href=\"https://www.youtube.com/c/Bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-youtube\">YouTube</bd-link>\n <bd-link href=\"https://www.instagram.com/bitdefender/\" target=\"_blank\" variant=\"secondary\" class=\"bd-instagram\">Instagram</bd-link>\n <bd-link href=\"https://www.tiktok.com/@bitdefender\" target=\"_blank\" variant=\"secondary\" class=\"bd-tiktok\">TikTok</bd-link>\n </slot>\n </div>\n </div>\n\n ${!this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n\n <div class=\"footer-middle-line\">\n <div class=\"secondary-nav-container\">\n <slot name=\"secondary-nav\"></slot>\n ${this._isMobile\n ? html`<bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>`\n : ''}\n </div>\n <div class=\"footer-address\">\n <slot name=\"address\">\n <div>\n 111 W. Houston Street, Suite 2105, Frost Tower Building<br />\n San Antonio, Texas 78205\n </div>\n </slot>\n </div>\n </div>\n\n <bd-divider-horizontal width=\"100%\" color=\"inverse\" opacity=\"0.25\"></bd-divider-horizontal>\n\n <div class=\"footer-extra\">\n <div class=\"footer-copy\">\n <slot name=\"copyright\">\n Copyright © 1997 - ${year} Bitdefender\n </slot>\n </div>\n\n ${showAnpc\n ? html`\n <div class=\"footer-anpc\">\n <slot name=\"anpc\">${footerAnpc}</slot>\n </div>\n `\n : null}\n\n <!-- The list is the summary's own content, so it opens under the\n toggle in the same row; the stylesheet runs it the row's full width.\n Its links are plain anchors: a reader who picks a country follows a\n link: hreflang says which language it leads to, lang which one its\n label is in. -->\n <!-- No icon here has a colour of its own: each takes its summary's or\n button's, so forced colours repaint it (footer.css.ts). -->\n <details class=\"footer-countries-toggle\" @toggle=\"${this._onCountriesToggle}\">\n <summary class=\"country-toggle\">\n <span class=\"country-toggle-row\">\n <bd-globe-icon size=\"20\"></bd-globe-icon>\n <span class=\"country-toggle-label\">${this.selectedCountry}</span>\n <bd-arrow-down-icon class=\"when-closed\" size=\"20\"></bd-arrow-down-icon>\n <bd-arrow-up-icon class=\"when-open\" size=\"20\"></bd-arrow-up-icon>\n </span>\n </summary>\n <div class=\"footer-countries-container\">\n <!-- The icon is the only content and bd-close-icon's svg is aria-hidden,\n so without a label this button had no accessible name at all: a\n screen reader announced \"button\" and nothing else. WCAG 2.2 SC\n 4.1.2. The name goes on the control, never on the icon -- naming\n both makes it announce twice. -->\n <button\n class=\"close-countries-button\"\n aria-label=\"Close country list\"\n @click=\"${this._closeCountries}\"\n >\n <bd-close-icon size=\"18\"></bd-close-icon>\n </button>\n ${countryChunks.map(chunk => html`\n <bd-footer-links-group title=\"${chunk === countryChunks[0] ? 'Choose your country' : ''}\">\n ${chunk.map(c => html`<a\n href=\"/${c.locale.toLowerCase()}/\"\n hreflang=\"${c.locale}\"\n lang=\"${this._labelLang(c).language}\"\n aria-current=\"${this._isCurrentCountry(c) ? 'true' : nothing}\"\n >${this._renderCountryLabel(c)}</a>`)}\n </bd-footer-links-group>\n `)}\n </div>\n </details>\n </div>\n </footer>\n`;\n }\n\n static styles = [ensembleCSS, footerCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-footer': BdFooter;\n }\n}\n"],"mappings":"A,okCAgCA,IAAMI,EAAoE,CACxE,QAAS,CAAE,MAAO,KAAM,SAAU,IAAK,EACvC,QAAS,CAAE,MAAO,IAAK,CACzB,EAQaC,EAAN,cAAuBC,CAAW,C,8BAErB,KAAA,gBAAA,sBAsBF,KAAA,cAAA,KAEG,KAAA,iBAAA,EAEP,KAAA,UAAAE,EAAa,IAAI,EAQjB,KAAA,UAAA,IAAIC,EAAqB,KAAMC,EAAM,IAAI,EAAG,GAAU,CAAE,KAAK,UAAYC,CAAQ,CAAC,C,CAE9F,mBAAoB,CAClB,MAAM,kBAAkB,EAOxB,KAAK,aAAa,aAAcC,CAAa,EAM7C,KAAK,gBACH,KAAK,aAAa,gBAAgB,GAAK,KAAK,gBAAA,KAC9C,KAAK,mBAAmB,CAC1B,CAEA,aAAa,EAAoC,CAC/C,MAAM,aAAaC,CAAY,CACjC,CAEA,QAAQ,EAAoC,CACtCA,EAAa,IAAI,eAAe,GAClC,KAAK,2BAA2B,CAEpC,CAqBA,IAAI,aAAc,CAChB,IAAMC,EAAI,KAAK,MAAM,OAAO,KAAK,gBAAgB,CAAC,EAClD,OAAO,OAAO,SAASA,CAAC,GAAKA,GAAK,EAAIA,EAAI,CAC5C,CAEA,4BAA6B,CAC3BC,EAAgB,KAAK,WAAY,cAA+B,4BAA4B,EAAG,KAAK,MAAM,CAC5G,CAGA,oBAAqB,CACnB,KAAK,WAAY,cAAc,6BAA6B,CAAC,EACzD,eAAe,CAAE,SAAU,KAAK,gBAAiB,MAAO,OAAQ,CAAC,CACvE,CAEA,cAAe,CACb,KAAK,eAAe,CAAE,SAAU,KAAK,gBAAiB,MAAO,OAAQ,CAAC,CACxE,CAEA,IAAI,iBAAkB,CACpB,OAAO,OAAO,WAAW,kCAAkC,CAAC,CAAC,QAAU,OAAS,QAClF,CA0BA,oBAAqB,CACnB,GAAI,KAAK,gBAAiB,OAE1B,IAAMC,EAAWC,EAAe,OAAO,SAAS,QAAQ,EAKnDD,IAEL,CAAC,KAAK,cAAe,KAAK,iBAAmBA,EAC/C,CAQA,mBAAmB,EAAU,CACtB,EAAE,OAA8B,KAAM,KAAK,mBAAmB,EACzD,KAAK,iBAAiB,KAAK,aAAa,EAClD,KAAK,gBAAkB,EACzB,CAIA,gBAAgB,EAAe,CAC7B,IAAME,EAAW,EAAE,cAAoC,QAAQ,SAAS,EACxE,KAAK,gBAAkB,KAAK,UAC5B,EAAQ,KAAO,GACfA,EAAQ,cAAc,SAAS,CAAC,CAAE,MAAM,CAAE,cAAe,EAAK,CAAC,CACjE,CAEA,kBAA8B,CAC5B,OAAO,OAAO,QAAQC,CAAS,CAAC,CAAC,KAAK,CAACC,EAAQC,MAAc,CAC3D,SACA,MAAOA,CACT,EAAE,CACJ,CAMA,WAAW,CAAE,UAAmB,CAC9B,MAAO,CAAE,MAAOD,EAAQ,SAAUA,EAAQ,GAAGhB,EAAWgB,EAAQ,CAClE,CAIA,oBAAoB,EAAY,CAC9B,GAAM,CAAE,QAAO,YAAa,KAAK,WAAWE,CAAC,EACvC,CAACC,EAAMC,GAAUF,EAAE,MAAM,MAAM,KAAK,EAE1C,OADIG,IAAUC,GAAYF,IAAW,IAAA,GAAkBF,EAAE,MAClD,CAAI,eAAeG,EAAM,IAAIF,EAAK,YAAYC,GACvD,CAIA,kBAAkB,CAAE,SAAQ,SAAkB,CAC5C,OAAO,KAAK,kBAAoBG,GAASP,EAAO,YAAY,IAAM,KAAK,MACzE,CAEA,IAAI,QAAS,CAEX,OADa,KAAK,eAAiB,KAAA,CAAM,YAClC,CACT,CAgBA,QAAS,CACP,IAAMQ,mBAAO,IAAI,KAAK,EAAA,CAAE,YAAY,EAC9BC,EAAW,KAAK,OAAO,WAAW,IAAI,EACtCC,EAAgB,KAAK,iBAAiB,EAEtCC,EAAY,KAAK,KAAKD,EAAc,OAAS,CAAC,EAC9CE,EAAgB,CACpBF,EAAc,MAAM,EAAGC,CAAS,EAChCD,EAAc,MAAMC,EAAWA,EAAY,CAAC,EAC5CD,EAAc,MAAMC,EAAY,CAAC,CACnC,EAGME,GADiB,KAAK,YAAY,cAA+B,0BAA0B,EAAA,EACtD,iBAAiB,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAE7EC,EAAyB,CAAC,EAUhC,OATAD,EAAmB,QAAQ,GAAM,CAC3BE,EAAG,UAAY,wBACjBD,EAAY,KAAKC,CAAE,GAEFA,EAAG,iBAAmBA,EAAG,iBAAiB,uBAAuB,EAAI,CAAC,EAAA,CAC9E,QAAQ,GAASD,EAAY,KAAKE,CAAK,CAAC,CAErD,CAAC,EAEM,CAAI;;;;;;oBAMKC,EAAW;;;;;;kCAMGC,EAAkB;;;;;;;;;;;;;;;;;;;qBAmB/B,KAAK,IAAI,EAAG,KAAK,WAAW,EAAE;qBAC9B,KAAK,YAAY;;;;;;;;;;QAU9B,KAAK,UACH,CAAI,8FACJ,GAAG;;;;;;;;;;;;;;MAcN,KAAK,UAEJ,GADA,CAAI,8FACD;;;;;UAKD,KAAK,UACH,CAAI,8FACJ,GAAG;;;;;;;;;;;;;;;;;+BAiBgBV,EAAK;;;;QAI5BC,EACE,CAAI;;gCAEkBU,EAAW;;UAGjC,KAAK;;;;;;;;;0DAS2C,KAAK,mBAAmB;;;;iDAIjC,KAAK,gBAAgB;;;;;;;;;;;;;;sBAchD,KAAK,gBAAgB;;;;YAI/BP,EAAc,IAAI,GAAS,CAAI;4CACCQ,IAAUR,EAAc,GAAK,sBAAwB,GAAG;gBACpFQ,EAAM,IAAI,GAAK,CAAI;2BACRlB,EAAE,OAAO,YAAY,EAAE;8BACpBA,EAAE,OAAO;0BACb,KAAK,WAAWA,CAAC,CAAC,CAAC,SAAS;kCACpB,KAAK,kBAAkBA,CAAC,EAAI,OAASmB,EAAQ;mBAC5D,KAAK,oBAAoBnB,CAAC,EAAE,KAAK,EAAE;;WAE3C,EAAE;;;;;CAMX,C,OAEgB,KAAA,OAAA,CAACoB,EAAa1C,CAAS,C,CACzC,EA/XGC,EAAA,CAAA0C,EAAM,CAAA,EAAAtC,EAAA,UAAA,kBAAA,IAAA,EAAA,EAsBNJ,EAAA,CAAA2C,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAvC,EAAA,UAAA,gBAAA,IAAA,EAAA,EAEtDJ,EAAA,CAAA2C,EAAS,CAAE,KAAM,OAAQ,UAAW,qBAAsB,CAAC,CAAA,EAAAvC,EAAA,UAAA,mBAAA,IAAA,EAAA,EAE3DJ,EAAA,CAAA0C,EAAM,CAAA,EAAAtC,EAAA,UAAA,YAAA,IAAA,EAAA,EA5BR,EAAAJ,EAAA,CAAA4C,EAAc,WAAW,CAAA,EAAAxC,CAAA,E"}
|
|
1
|
+
{"version":3,"file":"footer.js","names":["footerCSS","_decorate","__decorate","footer_css_default","LABEL_LANG","SLOTS","BdFooter","LitElement","_args","matchesBelow","MediaQueryController","below","mobile","SlotController","DEFAULT_THEME","changedProps","n","toggleImpressum","resolved","localeFromPath","details","localeMap","locale","country","c","name","tongue","place","language","label","countriesList","chunkSize","countryChunks","heading","nothing","chunk","has","masthead","nav","quick","social","links","secondary","address","middle","anpc","picker","extra","divider","cls","ensembleCSS","state","property","defineElement"],"sources":["../../../../src/components/footer/footer.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\nimport { MediaQueryController } from '#shared/controller.media-query.ts';\nimport { SlotController } from '#shared/controller.slot.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { DEFAULT_THEME } from '#tokens/themes/index.ts';\n/* The md boundary comes from the shared breakpoint source so the CSS and the\n JS cannot drift apart again: bd-footer switched at 767 while 3.x's\n bd-footer-lp, sharing the nav's stylesheet, switched at 768 -- so at\n exactly 768px the LP footer rendered its mobile markup under the desktop\n stylesheet. */\nimport { below, matchesBelow } from '#shared/token-scales.ts';\nimport '#components/divider/divider.ts';\nimport '#components/grid/grid.ts';\nimport '#components/h/h.ts';\n/* The family, and the atoms the page writes into the slots: bd-img for the\n logo, bd-link in the groups and navs. ./footer registers all three tags. */\nimport './footer-group.ts';\nimport './footer-nav.ts';\nimport '#components/img/img.ts';\nimport '#components/link/link.ts';\nimport \"#components/icons/arrow-down.ts\";\nimport \"#components/icons/arrow-up.ts\";\nimport \"#components/icons/close.ts\";\nimport \"#components/icons/globe.ts\";\nimport footerCSS from './footer.css.ts';\nimport { ensembleCSS } from '#shared/ensemble.css.ts';\nimport { localeMap } from './localeMap.ts';\nimport { DEFAULT_LOCALE, localeFromPath, toggleImpressum } from './footer-locale.ts';\n\n/* The labels in localeMap not written in their locale's language. A label is\n \"<place> - <language>\", and these two were read in a Chinese voice: Hong\n Kong's is English throughout, and Taiwan's place name is English beside\n 台灣. */\nconst LABEL_LANG: Record<string, { place?: string; language?: string }> = {\n 'zh-HK': { place: 'en', language: 'en' },\n 'zh-TW': { place: 'en' }\n};\n\ninterface Country {\n locale: string;\n label : string;\n}\n\nconst SLOTS = [\n 'logo', 'masterbrand', 'nav', 'quick-links', 'social-links', 'secondary-nav',\n 'address', 'copyright', 'anpc', 'country-label'\n] as const;\ntype FooterSlot = typeof SLOTS[number];\n\n/**\n * Bitdefender's footer: the masthead band (the logo and the masterbrand),\n * the navigation, the quick-link groups and the social links, the secondary\n * nav and the address, then the copyright, the Romanian ANPC badge and the\n * country picker.\n *\n * <bd-footer current-locale=\"en\" close-label=\"Close country list\">\n * <bd-img slot=\"logo\" src=\"/assets/BD_logo.png\" alt=\"Bitdefender\" width=\"174\" height=\"24\"></bd-img>\n * <bd-footer-group slot=\"quick-links\">\n * <bd-h slot=\"title\" as=\"h6\">Products</bd-h>\n * <bd-link href=\"/antivirus\" surface=\"brand\">Antivirus</bd-link>\n * </bd-footer-group>\n * <span slot=\"copyright\">Copyright © 1997 - 2026 Bitdefender</span>\n * <span slot=\"country-label\">Choose your country</span>\n * </bd-footer>\n *\n * Every word and image is the page's: no slot has a fallback. 3.x drew\n * Bitdefender's logo, masterbrand, six social links, address, copyright and\n * picker words whenever a page gave none. Each part's box is hidden while\n * its slot is empty, and a divider is drawn only between two parts that are\n * drawn, so `without-country-picker` with 3.x bd-footer-lp's slots draws\n * what bd-footer-lp drew. The footer pins itself to Bitdefender's brand.\n */\n@defineElement('bd-footer')\nexport class BdFooter extends LitElement {\n /* The country the path names (localeFromPath), which the picker shows in\n place of the page's country-label. Empty until a path resolves. */\n @state()\n _country = '';\n /* `current-locale` and `max-columns-per-row`, both documented dash-cased\n and both previously inert for the same reason as bd-header above: Lit\n lowercases a property name to get its observed attribute, so these were\n listening for `currentlocale` and `maxcolumnsperrow`.\n\n current-locale is the consequential one, and it did not merely fail --\n it failed into nonsense. The attribute was ignored, so the locale fell\n through to URL detection, and under Storybook the path is /iframe.html:\n measured on Components/Footer Default, Romanian Locale and German\n Locale, all three reported currentLocale \"iframe.html\" while their\n markup asked for \"en\", \"ro\" and \"de\". Twelve usages in footer.stories.ts\n write it, including the documented usage example.\n\n max-columns-per-row has a single usage, in the playground, and it passes\n 2 -- which is already the default -- so repairing it changes no rendered\n output today. It is fixed with the other one because it is the same\n defect in the same declaration block, not because it was visible.\n\n Zero consumers of either working lowercase spelling across src, schemas\n and docs, and no property bindings, so naming the attributes is safe. */\n @property({ type: String, attribute: \"current-locale\" })\n currentLocale = DEFAULT_LOCALE;\n @property({ type: Number, attribute: \"max-columns-per-row\" })\n maxColumnsPerRow = 2;\n /* What 3.x's bd-footer-lp was: this footer without its country picker\n (N5: without-* removes a default part). The LP's other differences were\n parts it had no slot for, and an empty slot draws nothing now. */\n @property({ type: Boolean, attribute: \"without-country-picker\" })\n withoutCountryPicker = false;\n /* Accessible name only: the picker's close button, an icon with no words.\n No default; 3.x's \"Close country list\" is the page's to write, in its\n own language. */\n @property({ type: String, attribute: \"close-label\" })\n closeLabel = \"\";\n @state()\n _isMobile = matchesBelow('md');\n\n _localeExplicit?: boolean;\n _closingInPlace?: boolean;\n\n /* The viewport, as one media query's change event. It was a window resize\n listener, removed with a fresh .bind(this) that matched nothing, so every\n footer ever disconnected kept its listener and kept running. */\n _viewport = new MediaQueryController(this, below('md'), mobile => { this._isMobile = mobile; });\n\n /* country-label's words are followed as well as its presence, because the\n country list's heading is a copy of them (_renderPicker). */\n _slots = new SlotController<FooterSlot>(this, { slots: SLOTS, text: ['country-label'] });\n\n connectedCallback() {\n super.connectedCallback();\n /* The footer is Bitdefender's on every page, a co-branded one included,\n wherever the page puts a partner's data-brand. Pinning it to the\n default theme reuses that theme's generated block, which restates every\n themable token, so nothing a partner changed reaches in here. The host's\n attributes are normally the page's; this one is the exception, because\n the requirement is absolute, not a default the page may override. */\n this.setAttribute('data-brand', DEFAULT_THEME);\n /* Whether the consuming page asked for a locale, captured before inference\n runs. An attribute in the markup counts, and so does a property assigned\n before the element connects -- both are the page stating its intent. A\n page that explicitly asks for 'en' is indistinguishable from one that\n said nothing, and that costs nothing: it asked for the value it gets. */\n this._localeExplicit =\n this.hasAttribute('current-locale') || this.currentLocale !== DEFAULT_LOCALE;\n this._initLocaleFromUrl();\n }\n\n updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('currentLocale')) {\n this._toggleImpressumVisibility();\n }\n }\n\n /* maxColumnsPerRow, finally read. The property has been declared here with\n a default of 2 since it was written, the manifest claims it, and\n footer.stories.ts documents it as \"Max columns per row in the quick-links\n grid\" -- and nothing ever looked at it. P7H.1 made the attribute reach the\n property; this makes the property reach the layout.\n\n It drives the grid the documentation names, through the cols-* attributes\n bd-grid observes since P7H. Mobile and sm stay at one column because the\n footer stacks there regardless of the cap, and md is capped at 2 because\n that is what md has always shown -- the property raises the ceiling at the\n widest breakpoint rather than redesigning the ladder.\n\n The default therefore renders exactly what it rendered before:\n min(2, 2) = 2 at md and 2 at lg, which is the pair that was hard-coded.\n Verified by measurement, not by reading.\n\n Clamped because the attribute is public: a 0, a negative or a fractional\n value would otherwise reach grid-template-columns as\n `repeat(0, 1fr)`. */\n get _maxColumns() {\n const n = Math.floor(Number(this.maxColumnsPerRow));\n return Number.isFinite(n) && n >= 1 ? n : 2;\n }\n\n _toggleImpressumVisibility() {\n toggleImpressum(this.shadowRoot!.querySelector<HTMLSlotElement>('slot[name=\"secondary-nav\"]'), this.locale);\n }\n\n /* Smooth only for a reader who has not asked for reduced motion. */\n _scrollToCountries() {\n this.shadowRoot!.querySelector('.footer-countries-container')\n ?.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n _scrollToTop() {\n this.scrollIntoView({ behavior: this._scrollBehavior, block: 'start' });\n }\n\n get _scrollBehavior() {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth';\n }\n\n /* Locale precedence, and it is a precedence rather than a sequence of\n assignments -- which is what went wrong.\n\n 1. an explicit current-locale attribute or currentLocale property\n 2. a locale inferred from the first path segment, IF it resolves to a\n supported locale\n 3. DEFAULT_LOCALE\n\n Two defects sat in the old version, both in its closing lines. It ended\n with an unconditional `this.currentLocale = originalKey || urlLocale`,\n so:\n\n - an explicit input was silently overwritten by the environment. Measured:\n <bd-footer current-locale=\"ro\"> served from /de/ reported \"de\".\n - any first path segment became the locale verbatim, supported or not.\n Measured: /iframe.html reported currentLocale \"iframe.html\", and /zz-zz/\n reported \"zz-zz\".\n\n The second is why Storybook showed \"iframe.html\" as a locale, and the fix\n is not a Storybook exception -- there is none here. A segment that does\n not resolve against localeMap is simply not a locale, on any host. The\n resolution itself is localeFromPath (footer-locale.ts); only its\n authority is decided here. */\n _initLocaleFromUrl() {\n if (this._localeExplicit) return;\n\n const resolved = localeFromPath(window.location.pathname);\n\n /* Nothing resolved: the segment is not a locale, so neither the locale nor\n the country is touched. This is the line that used to assign the raw\n path segment. */\n if (!resolved) return;\n\n [this.currentLocale, this._country] = resolved;\n }\n\n /* The country list is a <details>, so the browser keeps its state, its\n expanded/collapsed announcement and its keyboard, and finds a country in\n it with Ctrl+F while it is shut. What is left here is where the page\n scrolls: to the list when it opens, back to the footer when it shuts --\n except from the list's own close button on a phone, where the reader is\n already where they want to be. */\n _onCountriesToggle(e: Event) {\n if ((e.target as HTMLDetailsElement).open) this._scrollToCountries();\n else if (!this._closingInPlace) this._scrollToTop();\n this._closingInPlace = false;\n }\n\n /* Focus goes back to the summary, which is what opened the list: the\n button that had it is inside the list, and closing it hides it. */\n _closeCountries(e: MouseEvent) {\n const details = (e.currentTarget as HTMLButtonElement).closest('details')!;\n this._closingInPlace = this._isMobile;\n details.open = false;\n details.querySelector('summary')!.focus({ preventScroll: true });\n }\n\n getCountriesList(): Country[] {\n return Object.entries(localeMap).map(([locale, country]) => ({\n locale,\n label: country\n }));\n }\n\n /* The languages a country's label is written in: its place, and the\n language after the dash. lang is how the label is read aloud, and\n hreflang, not lang, says what the link leads to, so a label written in\n another language than its locale's says so (LABEL_LANG). */\n _labelLang({ locale }: Country) {\n return { place: locale, language: locale, ...LABEL_LANG[locale] };\n }\n\n /* The place in a lang of its own only when it differs from the rest. No\n whitespace is added: the label reads as localeMap spells it. */\n _renderCountryLabel(c: Country) {\n const { place, language } = this._labelLang(c);\n const [name, tongue] = c.label.split(' - ');\n if (place === language || tongue === undefined) return c.label;\n return html`<span lang=\"${place}\">${name}</span> - ${tongue}`;\n }\n\n /* The country the page is in: the one picked from the URL, or the one an\n explicit current-locale names exactly. */\n _isCurrentCountry({ locale, label }: Country) {\n return this._country === label || locale.toLowerCase() === this.locale;\n }\n\n get locale() {\n const val = (this.currentLocale || 'en').toLowerCase();\n return val;\n }\n\n /* No _updateNavLinks. It queried '.footer-nav-main bd-link' inside this\n shadow root and wrote a locale into the href of everything it found, and it\n could never find anything: .footer-nav-main is rendered by bd-footer-nav\n into bd-footer-nav's own shadow root, and this template has only\n .footer-nav-main-container, the box its slot sits in. Measured 0 matches\n across the 22 built footer stories.\n\n So the four locale-aware nav hrefs it promised -- consumer,\n small-business, business, partners -- were never written, and no story\n depended on them. Localising slotted navigation is real work with a real\n API question (whose hrefs are they, and does a component rewrite markup it\n does not own); it is not this, and leaving this here made it look\n answered. */\n\n /* The picker: a <details> whose summary shows the page's country-label\n until the path names a country, over a list of every localeMap country in\n three groups. The first group's heading is the same words. A slot shows\n in one place, and the page's own words go on the control, so the heading\n is a copy (SlotController.text) in a bd-h of this root's own, at the h6\n level 3.x gave it. */\n _renderPicker() {\n const countriesList = this.getCountriesList();\n const chunkSize = Math.ceil(countriesList.length / 3);\n const countryChunks = [\n countriesList.slice(0, chunkSize),\n countriesList.slice(chunkSize, chunkSize * 2),\n countriesList.slice(chunkSize * 2)\n ];\n const heading = this._slots.text('country-label');\n\n return html`\n <!-- The list is the summary's own content, so it opens under the\n toggle in the same row; the stylesheet runs it the row's full width.\n Its links are plain anchors: a reader who picks a country follows a\n link: hreflang says which language it leads to, lang which one its\n label is in. -->\n <!-- No icon here has a colour of its own: each takes its summary's or\n button's, so forced colours repaint it (footer.css.ts). -->\n <details class=\"footer-countries-toggle\" @toggle=\"${this._onCountriesToggle}\">\n <summary class=\"country-toggle\">\n <span class=\"country-toggle-row\">\n <bd-icon name=\"globe\" size=\"md\"></bd-icon>\n <span class=\"country-toggle-label\"><span class=\"country-label\" ?hidden=${!!this._country}><slot name=\"country-label\"></slot></span>${this._country}</span>\n <bd-icon name=\"arrow-down\" class=\"when-closed\" size=\"md\"></bd-icon>\n <bd-icon name=\"arrow-up\" class=\"when-open\" size=\"md\"></bd-icon>\n </span>\n </summary>\n <div class=\"footer-countries-container\">\n <!-- The icon is the only content and an unlabelled bd-icon's svg is\n aria-hidden, so the button is named by close-label: on the\n control, never on the icon, since naming both announces it\n twice. WCAG 2.2 SC 4.1.2. -->\n <button\n class=\"close-countries-button\"\n aria-label=\"${this.closeLabel || nothing}\"\n @click=\"${this._closeCountries}\"\n >\n <bd-icon name=\"close\" size=\"md\"></bd-icon>\n </button>\n ${countryChunks.map(chunk => html`\n <bd-footer-group>\n ${chunk === countryChunks[0] && heading ? html`<bd-h slot=\"title\" as=\"h6\">${heading}</bd-h>` : nothing}\n ${chunk.map(c => html`<a\n href=\"/${c.locale.toLowerCase()}/\"\n hreflang=\"${c.locale}\"\n lang=\"${this._labelLang(c).language}\"\n aria-current=\"${this._isCurrentCountry(c) ? 'true' : nothing}\"\n >${this._renderCountryLabel(c)}</a>`)}\n </bd-footer-group>\n `)}\n </div>\n </details>\n `;\n }\n\n render() {\n const has = (name: FooterSlot) => this._slots.has(name);\n const masthead = has('logo') || has('masterbrand');\n const nav = has('nav');\n const quick = has('quick-links');\n const social = has('social-links');\n const links = quick || social;\n const secondary = has('secondary-nav');\n const address = has('address');\n const middle = secondary || address;\n const anpc = this.locale.startsWith('ro') && has('anpc');\n const picker = !this.withoutCountryPicker;\n const extra = has('copyright') || anpc || picker;\n\n /* A divider separates two parts that are drawn, so each one below says\n which; 3.x drew every one whatever was slotted, under an empty nav box\n too. The tablet and mobile ones inside a part are 3.x's own. */\n const divider = (cls?: string) => html`<bd-divider orientation=\"horizontal\" class=\"${cls ?? nothing}\" width=\"100%\" color=\"on-brand\" opacity=\"0.25\"></bd-divider>`;\n\n return html`\n <div class=\"footer-top-bleed\" ?hidden=${!masthead}>\n <div class=\"bd-ensemble container\">\n <div class=\"footer-top\">\n <div class=\"footer-logo\" ?hidden=${!has('logo')}><slot name=\"logo\"></slot></div>\n <div class=\"footer-top-right\" ?hidden=${!has('masterbrand')}><slot name=\"masterbrand\"></slot></div>\n </div>\n </div>\n </div>\n\n <footer class=\"bd-ensemble container\">\n <div class=\"footer-nav-main-container\" ?hidden=${!nav}>\n <slot name=\"nav\"></slot>\n </div>\n ${nav && (links || middle) ? divider() : nothing}\n\n <div class=\"footer-links\" ?hidden=${!links}>\n <div class=\"footer-links-left\" ?hidden=${!quick}>\n <bd-grid\n cols=\"1\"\n cols-sm=\"1\"\n cols-md=\"${Math.min(2, this._maxColumns)}\"\n cols-lg=\"${this._maxColumns}\"\n gap=\"lg\"\n align=\"start\"\n justify=\"start\"\n padding=\"none\"\n >\n <slot name=\"quick-links\"></slot>\n </bd-grid>\n </div>\n ${quick && social ? divider('tablet-divider') : nothing}\n ${this._isMobile && quick && social ? divider() : nothing}\n\n <div class=\"footer-links-right social-icons\" ?hidden=${!social}>\n <slot name=\"social-links\"></slot>\n </div>\n </div>\n\n ${!this._isMobile && links && middle ? divider('links-divider') : nothing}\n\n <div class=\"footer-middle-line\" ?hidden=${!middle}>\n <div class=\"secondary-nav-container\" ?hidden=${!secondary}>\n <slot name=\"secondary-nav\"></slot>\n ${this._isMobile && address ? divider() : nothing}\n </div>\n <div class=\"footer-address\" ?hidden=${!address}>\n <slot name=\"address\"></slot>\n </div>\n </div>\n\n ${(nav || links || middle) && extra ? divider() : nothing}\n\n <div class=\"footer-extra\" ?hidden=${!extra}>\n <div class=\"footer-copy\" ?hidden=${!has('copyright')}>\n <slot name=\"copyright\"></slot>\n </div>\n\n <!-- Romanian pages only, as 3.x drew it: the slot is always rendered,\n its box hidden everywhere else. -->\n <div class=\"footer-anpc\" ?hidden=${!anpc}>\n <slot name=\"anpc\"></slot>\n </div>\n\n ${picker ? this._renderPicker() : nothing}\n </div>\n </footer>\n`;\n }\n\n static styles = [ensembleCSS, footerCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-footer': BdFooter;\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{space as e}from"../shared/token-scales.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import r from"./grid.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends i{constructor(...e){super(...e),this.cols=1,this.colsSm=1,this.colsMd=2,this.colsLg=3,this.gap=`md`,this.gapSm=``,this.gapMd=``,this.gapLg=``,this.align=`stretch`,this.justify=`start`,this.padding=`none`,this.minColWidth=0,this.itemRows=0}static{this.styles=[r]}render(){return a`
|
|
2
2
|
<div
|
|
3
3
|
class="grid ${this.minColWidth>0?`grid--fit`:``} ${this.itemRows>0?`grid--rows`:``}"
|
|
4
4
|
style="
|
|
@@ -6,18 +6,18 @@ import{defineElement as e}from"../shared/define-element.js";import"../../tokens/
|
|
|
6
6
|
--grid-cols-sm: ${this.colsSm};
|
|
7
7
|
--grid-cols-md: ${this.colsMd};
|
|
8
8
|
--grid-cols-lg: ${this.colsLg};
|
|
9
|
-
${
|
|
10
|
-
--grid-gap-sm: ${
|
|
11
|
-
--grid-gap-md: ${
|
|
12
|
-
--grid-gap-lg: ${
|
|
9
|
+
${e(this.gap)?`--grid-gap: ${e(this.gap)};`:``}
|
|
10
|
+
--grid-gap-sm: ${e(this.gapSm)||`var(--grid-gap)`};
|
|
11
|
+
--grid-gap-md: ${e(this.gapMd)||`var(--grid-gap-sm)`};
|
|
12
|
+
--grid-gap-lg: ${e(this.gapLg)||`var(--grid-gap-md)`};
|
|
13
13
|
align-items: ${this.align};
|
|
14
14
|
justify-items: ${this.justify};
|
|
15
|
-
padding: ${
|
|
15
|
+
padding: ${e(this.padding)};
|
|
16
16
|
${this.minColWidth>0?`--grid-min-col-width: ${this.minColWidth/16}rem;`:``}
|
|
17
17
|
${this.itemRows>0?`--grid-item-rows: ${Math.round(this.itemRows)};`:``}
|
|
18
18
|
"
|
|
19
19
|
>
|
|
20
20
|
<slot></slot>
|
|
21
21
|
</div>
|
|
22
|
-
`}};n([o({type:Number})],s.prototype,`cols`,void 0),n([o({type:Number,attribute:`cols-sm`})],s.prototype,`colsSm`,void 0),n([o({type:Number,attribute:`cols-md`})],s.prototype,`colsMd`,void 0),n([o({type:Number,attribute:`cols-lg`})],s.prototype,`colsLg`,void 0),n([o({type:String})],s.prototype,`gap`,void 0),n([o({type:String,attribute:`gap-sm`})],s.prototype,`gapSm`,void 0),n([o({type:String,attribute:`gap-md`})],s.prototype,`gapMd`,void 0),n([o({type:String,attribute:`gap-lg`})],s.prototype,`gapLg`,void 0),n([o({type:String})],s.prototype,`align`,void 0),n([o({type:String})],s.prototype,`justify`,void 0),n([o({type:String})],s.prototype,`padding`,void 0),n([o({type:Number,attribute:`min-col-width`})],s.prototype,`minColWidth`,void 0),n([o({type:Number,attribute:`item-rows`})],s.prototype,`itemRows`,void 0),s=n([
|
|
22
|
+
`}};n([o({type:Number})],s.prototype,`cols`,void 0),n([o({type:Number,attribute:`cols-sm`})],s.prototype,`colsSm`,void 0),n([o({type:Number,attribute:`cols-md`})],s.prototype,`colsMd`,void 0),n([o({type:Number,attribute:`cols-lg`})],s.prototype,`colsLg`,void 0),n([o({type:String})],s.prototype,`gap`,void 0),n([o({type:String,attribute:`gap-sm`})],s.prototype,`gapSm`,void 0),n([o({type:String,attribute:`gap-md`})],s.prototype,`gapMd`,void 0),n([o({type:String,attribute:`gap-lg`})],s.prototype,`gapLg`,void 0),n([o({type:String})],s.prototype,`align`,void 0),n([o({type:String})],s.prototype,`justify`,void 0),n([o({type:String})],s.prototype,`padding`,void 0),n([o({type:Number,attribute:`min-col-width`})],s.prototype,`minColWidth`,void 0),n([o({type:Number,attribute:`item-rows`})],s.prototype,`itemRows`,void 0),s=n([t(`bd-grid`)],s);
|
|
23
23
|
//# sourceMappingURL=grid.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{--bd-heading-font-size:initial;--bd-heading-font-weight:initial;--bd-heading-line-height:initial;--bd-heading-letter-spacing:initial;--bd-heading-font-family:initial;display:block}@layer bd-components{.bd-heading{color:var(--bd-heading-color,var(--color-text-primary));text-wrap:balance;margin:0;padding:0}.bd-heading.h1{font-size:var(--bd-heading-font-size,var(--typography-heading-h1-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h1-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h1-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h1-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h1-fontFamily))}.bd-heading.h2{font-size:var(--bd-heading-font-size,var(--typography-heading-h2-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h2-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h2-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h2-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h2-fontFamily))}.bd-heading.h3{font-size:var(--bd-heading-font-size,var(--typography-heading-h3-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h3-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h3-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h3-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h3-fontFamily))}.bd-heading.h4{font-size:var(--bd-heading-font-size,var(--typography-heading-h4-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h4-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h4-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h4-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h4-fontFamily))}.bd-heading.h5{font-size:var(--bd-heading-font-size,var(--typography-heading-h5-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h5-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h5-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h5-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h5-fontFamily))}.bd-heading.h6{font-size:var(--bd-heading-font-size,var(--typography-heading-h6-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-heading-h6-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-heading-h6-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-heading-h6-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-heading-h6-fontFamily))}.bd-heading.pinned.h1{font-size:var(--typography-heading-h1-fontSize);font-weight:var(--typography-heading-h1-fontWeight);line-height:var(--typography-heading-h1-lineHeight);letter-spacing:var(--typography-heading-h1-letterSpacing);font-family:var(--typography-heading-h1-fontFamily)}.bd-heading.pinned.h2{font-size:var(--typography-heading-h2-fontSize);font-weight:var(--typography-heading-h2-fontWeight);line-height:var(--typography-heading-h2-lineHeight);letter-spacing:var(--typography-heading-h2-letterSpacing);font-family:var(--typography-heading-h2-fontFamily)}.bd-heading.pinned.h3{font-size:var(--typography-heading-h3-fontSize);font-weight:var(--typography-heading-h3-fontWeight);line-height:var(--typography-heading-h3-lineHeight);letter-spacing:var(--typography-heading-h3-letterSpacing);font-family:var(--typography-heading-h3-fontFamily)}.bd-heading.pinned.h4{font-size:var(--typography-heading-h4-fontSize);font-weight:var(--typography-heading-h4-fontWeight);line-height:var(--typography-heading-h4-lineHeight);letter-spacing:var(--typography-heading-h4-letterSpacing);font-family:var(--typography-heading-h4-fontFamily)}.bd-heading.pinned.h5{font-size:var(--typography-heading-h5-fontSize);font-weight:var(--typography-heading-h5-fontWeight);line-height:var(--typography-heading-h5-lineHeight);letter-spacing:var(--typography-heading-h5-letterSpacing);font-family:var(--typography-heading-h5-fontFamily)}.bd-heading.pinned.h6{font-size:var(--typography-heading-h6-fontSize);font-weight:var(--typography-heading-h6-fontWeight);line-height:var(--typography-heading-h6-lineHeight);letter-spacing:var(--typography-heading-h6-letterSpacing);font-family:var(--typography-heading-h6-fontFamily)}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=h.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h.css.js","names":["h_css_default"],"sources":["../../../../src/components/h/h.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n /* The type hooks a container sets on a bd-h it is given -- the page\n writes <bd-h slot=\"title\" as=\"h4\">, the container writes\n ::slotted(bd-h[slot=\"title\"]) { headingRole('heading-h2') }, see\n shared/token-scales.ts -- reset here, so a hook applies only on the\n element it is set on. A rule from outside that matches this host beats\n this one, because the outer tree wins for normal declarations; a value\n inherited from an ancestor does not, so a section's title size never\n reaches a heading nested in a card below it. initial is the\n guaranteed-invalid value, so each level rule's var() takes its\n fallback, the role its level names.\n\n --bd-heading-color is not reset. Ink belongs to the ground the text sits\n on, and everything inside a brand band sits on that band, which is how\n --bd-paragraph-color has always behaved. */\n --bd-heading-font-size: initial;\n --bd-heading-font-weight: initial;\n --bd-heading-line-height: initial;\n --bd-heading-letter-spacing: initial;\n --bd-heading-font-family: initial;\n }\n @layer bd-components {\n /* No vertical margin. A heading's spacing depends on what it sits above\n and below, which this element cannot see, so it is the caller's to set —\n through the padding and padding-bottom attributes, which resolve to spacing\n steps in shared/token-scales.ts. Six commented-out margin pairs used to\n stand here recording an earlier answer; they were written with a //\n prefix, which CSS does not recognise as a comment, so the parser was\n discarding them through error recovery rather than honouring them.\n\n The colour is set rather than inherited. Left to inherit, a heading took\n whatever ink the page happened to carry, which is how bd-h, bd-display,\n bd-p and bd-li ended up with four different blacks between them. The\n hook is the one inherited ink it takes: a container that puts its\n heading on a band names the band's ink with ink() in token-scales.ts.\n The color prop is an inline style here, so it still beats the hook. */\n .bd-heading {\n margin: 0;\n padding: 0;\n color: var(--bd-heading-color, var(--color-text-primary));\n }\n\n /* A heading that wraps shares its words between its lines rather than\n leaving one on the last. text-wrap is inherited, so slotted copy and\n every component titled through bd-h -- bd-section-header among them --\n balances too. balance is Baseline Newly available (2024-05-13), so it\n needs no guard. */\n .bd-heading {\n text-wrap: balance;\n }\n\n /* Each level reads the container's hook first and its own role after it,\n so a bd-h nobody sets a hook on renders exactly as it did before the\n hooks existed. */\n\n /* h1 */\n .bd-heading.h1 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h1-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h1-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h1-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h1-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h1-fontFamily));\n }\n\n /* h2 */\n .bd-heading.h2 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h2-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h2-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h2-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h2-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h2-fontFamily));\n }\n\n /* h3 */\n .bd-heading.h3 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h3-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h3-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h3-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h3-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h3-fontFamily));\n }\n\n /* h4 */\n .bd-heading.h4 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h4-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h4-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h4-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h4-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h4-fontFamily));\n }\n\n /* h5 */\n .bd-heading.h5 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h5-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h5-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h5-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h5-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h5-fontFamily));\n }\n\n /* h6 */\n .bd-heading.h6 {\n font-size: var(--bd-heading-font-size, var(--typography-heading-h6-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-heading-h6-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-heading-h6-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-heading-h6-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-heading-h6-fontFamily));\n }\n\n /* An explicit visual-level is the author choosing the size, so it beats\n the container's hook: h.ts adds .pinned only when visual-level\n names a level, and these rules read the role directly. One more class\n than the level rules above, so they win on specificity wherever both\n match. Only the five type axes: a pinned heading still sits on the\n container's ground and takes its ink. */\n .bd-heading.pinned.h1 {\n font-size: var(--typography-heading-h1-fontSize);\n font-weight: var(--typography-heading-h1-fontWeight);\n line-height: var(--typography-heading-h1-lineHeight);\n letter-spacing: var(--typography-heading-h1-letterSpacing);\n font-family: var(--typography-heading-h1-fontFamily);\n }\n\n .bd-heading.pinned.h2 {\n font-size: var(--typography-heading-h2-fontSize);\n font-weight: var(--typography-heading-h2-fontWeight);\n line-height: var(--typography-heading-h2-lineHeight);\n letter-spacing: var(--typography-heading-h2-letterSpacing);\n font-family: var(--typography-heading-h2-fontFamily);\n }\n\n .bd-heading.pinned.h3 {\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n font-family: var(--typography-heading-h3-fontFamily);\n }\n\n .bd-heading.pinned.h4 {\n font-size: var(--typography-heading-h4-fontSize);\n font-weight: var(--typography-heading-h4-fontWeight);\n line-height: var(--typography-heading-h4-lineHeight);\n letter-spacing: var(--typography-heading-h4-letterSpacing);\n font-family: var(--typography-heading-h4-fontFamily);\n }\n\n .bd-heading.pinned.h5 {\n font-size: var(--typography-heading-h5-fontSize);\n font-weight: var(--typography-heading-h5-fontWeight);\n line-height: var(--typography-heading-h5-lineHeight);\n letter-spacing: var(--typography-heading-h5-letterSpacing);\n font-family: var(--typography-heading-h5-fontFamily);\n }\n\n .bd-heading.pinned.h6 {\n font-size: var(--typography-heading-h6-fontSize);\n font-weight: var(--typography-heading-h6-fontWeight);\n line-height: var(--typography-heading-h6-lineHeight);\n letter-spacing: var(--typography-heading-h6-letterSpacing);\n font-family: var(--typography-heading-h6-fontFamily);\n }\n }\n`;\n"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,4+I"}
|
|
@@ -15,6 +15,9 @@ export declare class BdH extends LitElement {
|
|
|
15
15
|
* have shrunk from 5xl to 4xl at the same time. Level is what the outline
|
|
16
16
|
* reads; size is what the page looks like, and they are not the same
|
|
17
17
|
* question. Accepts h1-h6 or 1-6.
|
|
18
|
+
*
|
|
19
|
+
* Set, it also beats the size a container gives a slotted heading through
|
|
20
|
+
* the --bd-heading-* hooks; unset, the container decides.
|
|
18
21
|
*/
|
|
19
22
|
visualLevel: HeadingLevel | "";
|
|
20
23
|
ariaLevel: string | null;
|
|
@@ -22,6 +25,17 @@ export declare class BdH extends LitElement {
|
|
|
22
25
|
paddingBottom: SpacingStep | "";
|
|
23
26
|
fontWeight: FontWeightStep | "";
|
|
24
27
|
color: ColorRole | "";
|
|
28
|
+
/**
|
|
29
|
+
* The heading sits inside a control that is itself the heading: an
|
|
30
|
+
* accordion item renders `div[role=heading][aria-level] > button` (the WAI-ARIA
|
|
31
|
+
* accordion pattern) and slots this element into the button. Set, the `hN`
|
|
32
|
+
* renders as role="none", so the words are announced once, as the button's
|
|
33
|
+
* name inside the item's heading, and not a second time as a heading nested
|
|
34
|
+
* in the button. The element, its level and its look are unchanged; only the
|
|
35
|
+
* role it reports goes. bd-accordion-item writes it on the bd-h in its
|
|
36
|
+
* `title` slot and takes it away when the heading leaves the slot.
|
|
37
|
+
*/
|
|
38
|
+
inControl: boolean;
|
|
25
39
|
_isValidHeadingTag(tag: string): boolean;
|
|
26
40
|
/** Accepts h1-h6 or a bare 1-6, and returns "" for anything else. */
|
|
27
41
|
_normaliseLevel(value: unknown): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{color as e,fontWeight as t,spacing as n,spacingShorthand as r}from"../shared/token-scales.js";import{defineElement as i}from"../shared/define-element.js";import"../../tokens/tokens.js";import a from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import o from"./h.css.js";import{LitElement as s,nothing as c}from"lit";import{property as l}from"lit/decorators.js";import{html as u,unsafeStatic as d}from"lit/static-html.js";var f=class extends s{constructor(...e){super(...e),this.as=`h1`,this.visualLevel=``,this.ariaLevel=null,this.padding=``,this.paddingBottom=``,this.fontWeight=``,this.color=``,this.inControl=!1}_isValidHeadingTag(e){return[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(e)}_normaliseLevel(e){let t=String(e??``).trim().toLowerCase();return this._isValidHeadingTag(t)?t:/^[1-6]$/.test(t)?`h${t}`:``}_computeStyles(){return[[`padding`,r(this.padding)],[`padding-bottom`,n(this.paddingBottom)],[`font-weight`,t(this.fontWeight)],[`color`,e(this.color)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t};`).join(` `)}render(){let e=this._normaliseLevel(this.as)||`h2`,t=this._normaliseLevel(this.visualLevel),n=t||e,r=d(e);return u`<${r}
|
|
2
|
+
class="bd-heading ${n}${t?` pinned`:``}"
|
|
3
|
+
role=${this.inControl?`none`:c}
|
|
4
|
+
aria-level=${!this.inControl&&this.ariaLevel||c}
|
|
5
|
+
style=${this._computeStyles()||c}
|
|
6
|
+
><slot></slot></${r}>`}static{this.styles=[o]}};a([l({type:String,attribute:`as`,reflect:!0})],f.prototype,`as`,void 0),a([l({type:String,attribute:`visual-level`,reflect:!0})],f.prototype,`visualLevel`,void 0),a([l({type:Number,attribute:`aria-level`})],f.prototype,`ariaLevel`,void 0),a([l({type:String,attribute:`padding`})],f.prototype,`padding`,void 0),a([l({type:String,attribute:`padding-bottom`})],f.prototype,`paddingBottom`,void 0),a([l({type:String,attribute:`font-weight`})],f.prototype,`fontWeight`,void 0),a([l({type:String,attribute:`color`})],f.prototype,`color`,void 0),a([l({type:Boolean,attribute:`in-control`})],f.prototype,`inControl`,void 0),f=a([i(`bd-h`)],f);export{f as BdH};
|
|
7
|
+
//# sourceMappingURL=h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h.js","names":["headingCSS","_decorate","__decorate","h_css_default","html$1","BdH","LitElement","_args","tag","v","value","spacingShorthand","spacing","fontWeight","color","property","level","pinned","visual","unsafeStatic","nothing","defineElement"],"sources":["../../../../src/components/h/h.ts"],"sourcesContent":["import { LitElement, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { html, unsafeStatic } from \"lit/static-html.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport headingCSS from \"./h.css.ts\";\nimport {\n spacingShorthand, spacing, fontWeight, color,\n type SpacingStep, type FontWeightStep, type ColorRole\n} from \"#shared/token-scales.ts\";\n\ntype HeadingTag = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\ntype HeadingLevel = HeadingTag | \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\";\n\n@defineElement(\"bd-h\")\nexport class BdH extends LitElement {\n @property({ type: String, attribute: \"as\", reflect: true })\n as: HeadingLevel = \"h1\";\n /**\n * Which step of the heading type scale to render, when that has to differ\n * from the semantic level. Defaults to following `as`, so passing nothing\n * behaves exactly as before.\n *\n * The two were one axis: the tag chose the element AND the type scale, so\n * a section that had to stop being an h1 for the document outline would\n * have shrunk from 5xl to 4xl at the same time. Level is what the outline\n * reads; size is what the page looks like, and they are not the same\n * question. Accepts h1-h6 or 1-6.\n *\n * Set, it also beats the size a container gives a slotted heading through\n * the --bd-heading-* hooks; unset, the container decides.\n */\n @property({ type: String, attribute: \"visual-level\", reflect: true })\n visualLevel: HeadingLevel | \"\" = \"\";\n @property({ type: Number, attribute: \"aria-level\" })\n ariaLevel: string | null = null;\n @property({ type: String, attribute: \"padding\" })\n padding = \"\";\n @property({ type: String, attribute: \"padding-bottom\" })\n paddingBottom: SpacingStep | \"\" = \"\";\n /* `font-weight`, as bd-p has always spelled it. 3.x observed the\n lowercased property name, `fontweight`. */\n @property({ type: String, attribute: \"font-weight\" })\n fontWeight: FontWeightStep | \"\" = \"\";\n @property({ type: String, attribute: \"color\" })\n color: ColorRole | \"\" = \"\";\n /**\n * The heading sits inside a control that is itself the heading: an\n * accordion item renders `div[role=heading][aria-level] > button` (the WAI-ARIA\n * accordion pattern) and slots this element into the button. Set, the `hN`\n * renders as role=\"none\", so the words are announced once, as the button's\n * name inside the item's heading, and not a second time as a heading nested\n * in the button. The element, its level and its look are unchanged; only the\n * role it reports goes. bd-accordion-item writes it on the bd-h in its\n * `title` slot and takes it away when the heading leaves the slot.\n */\n @property({ type: Boolean, attribute: \"in-control\" })\n inControl = false;\n\n _isValidHeadingTag(tag: string) {\n return [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"].includes(tag);\n }\n\n /** Accepts h1-h6 or a bare 1-6, and returns \"\" for anything else. */\n _normaliseLevel(value: unknown) {\n const v = String(value ?? \"\").trim()\n .toLowerCase();\n if (this._isValidHeadingTag(v)) return v;\n return /^[1-6]$/.test(v) ? `h${v}` : \"\";\n }\n\n /**\n * Each prop is a step name, resolved to a token reference by\n * shared/token-scales.ts. A value that is not on its scale is dropped, so\n * the heading keeps the styling its own CSS gives it.\n */\n _computeStyles() {\n const declarations = [\n [\"padding\", spacingShorthand(this.padding)],\n [\"padding-bottom\", spacing(this.paddingBottom)],\n [\"font-weight\", fontWeight(this.fontWeight)],\n [\"color\", color(this.color)]\n ];\n\n return declarations\n .filter(([, value]) => value)\n .map(([property, value]) => `${property}: ${value};`)\n .join(\" \");\n }\n\n\n render() {\n /* An unrecognised `as` used to fall back to h1, so a typo produced a\n page-level heading in a component that had no business owning one --\n the loudest possible thing to get wrong silently. It falls back to h2\n now: still a heading, never the page's. A missing `as` is unaffected,\n because the property defaults to h1 and h1 is valid. */\n const level = this._normaliseLevel(this.as) || \"h2\";\n /* A visual-level that names a level pins the size: the .pinned rules in\n h.css.ts read the role directly and ignore a container's\n --bd-heading-* hooks. One that does not name a level is dropped, like\n any off-scale value, so the heading follows its `as` and stays\n unpinned. */\n const pinned = this._normaliseLevel(this.visualLevel);\n const visual = pinned || level;\n /* The tag is part of the template, so Lit keeps one heading element and\n updates it, and builds a new one only when the level changes. It used\n to be document.createElement on every render, which swapped the\n heading and its slot on every update -- a slotchange, a lost text\n selection and new layout each time a prop moved. unsafeStatic is safe\n here: _normaliseLevel returns h1-h6 or nothing. */\n const tag = unsafeStatic(level);\n /* In a control, the control's heading carries the level (inControl above),\n so the element reports no role and no level of its own. */\n return html`<${tag}\n class=\"bd-heading ${visual}${pinned ? \" pinned\" : \"\"}\"\n role=${this.inControl ? \"none\" : nothing}\n aria-level=${(!this.inControl && this.ariaLevel) || nothing}\n style=${this._computeStyles() || nothing}\n ><slot></slot></${tag}>`;\n }\n\n\n static styles = [headingCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-h\": BdH;\n }\n}\n"],"mappings":"A,2bAgBO,IAAMK,EAAN,cAAkBC,CAAW,C,8BAEf,KAAA,GAAA,KAgBc,KAAA,YAAA,GAEN,KAAA,UAAA,KAEjB,KAAA,QAAA,GAEwB,KAAA,cAAA,GAIA,KAAA,WAAA,GAEV,KAAA,MAAA,GAYZ,KAAA,UAAA,E,CAEZ,mBAAmB,EAAa,CAC9B,MAAO,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,IAAI,CAAC,CAAC,SAASE,CAAG,CAC1D,CAGA,gBAAgB,EAAgB,CAC9B,IAAMC,EAAI,OAAOC,GAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CACjC,YAAY,EAEf,OADI,KAAK,mBAAmBD,CAAC,EAAUA,EAChC,UAAU,KAAKA,CAAC,EAAI,IAAIA,IAAM,EACvC,CAOA,gBAAiB,CAQf,MAAO,CANL,CAAC,UAAkBE,EAAiB,KAAK,OAAO,CAAC,EACjD,CAAC,iBAAkBC,EAAQ,KAAK,aAAa,CAAC,EAC9C,CAAC,cAAkBC,EAAW,KAAK,UAAU,CAAC,EAC9C,CAAC,QAAkBC,EAAM,KAAK,KAAK,CAAC,CAG/B,CAAA,CACJ,QAAQ,EAAGJ,KAAWA,CAAK,CAAC,CAC5B,KAAK,CAACK,EAAUL,KAAW,GAAGK,EAAS,IAAIL,EAAM,EAAE,CAAC,CACpD,KAAK,GAAG,CACb,CAGA,QAAS,CAMP,IAAMM,EAAQ,KAAK,gBAAgB,KAAK,EAAE,GAAK,KAMzCC,EAAS,KAAK,gBAAgB,KAAK,WAAW,EAC9CC,EAASD,GAAUD,EAOnBR,EAAMW,EAAaH,CAAK,EAG9B,MAAO,EAAI,IAAIR,EAAI;0BACGU,IAASD,EAAS,UAAY,GAAG;aAC9C,KAAK,UAAY,OAASG,EAAQ;mBAC3B,CAAC,KAAK,WAAa,KAAK,WAAcA,EAAQ;cACpD,KAAK,eAAe,GAAKA,EAAQ;sBACzBZ,EAAI,EACxB,C,OAGgB,KAAA,OAAA,CAACR,CAAU,C,CAC7B,EA5GGC,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,KAAM,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,KAAA,IAAA,EAAA,EAgBzDJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,QAAS,EAAK,CAAC,CAAA,EAAAV,EAAA,UAAA,cAAA,IAAA,EAAA,EAEnEJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAV,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,SAAU,CAAC,CAAA,EAAAV,EAAA,UAAA,UAAA,IAAA,EAAA,EAE/CJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAV,EAAA,UAAA,gBAAA,IAAA,EAAA,EAItDJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAV,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDJ,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,OAAQ,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAY7CJ,EAAA,CAAAc,EAAS,CAAE,KAAM,QAAS,UAAW,YAAa,CAAC,CAAA,EAAAV,EAAA,UAAA,YAAA,IAAA,EAAA,EA1CrD,EAAAJ,EAAA,CAAAoB,EAAc,MAAM,CAAA,EAAAhB,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.band{background:var(--color-surface-brand);padding-block-end:var(--spacing-40);position:relative;overflow:hidden}.stage{height:360px;position:relative;container-type:size}.media{object-fit:cover;object-position:var(--bd-hero-media-position,74% 50%);width:100%;height:100%;display:block}::slotted([slot=media]){width:108cqh;margin-block-start:-61cqh;margin-inline-start:-54cqh;position:absolute;inset-block-start:50%;inset-inline-start:50%}.fade{background:linear-gradient(to bottom, color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%, color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 45%, color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 80%, var(--color-surface-brand) 100%);pointer-events:none;height:64%;position:absolute;inset-block-end:0;inset-inline:0}.column{position:relative}.copy{align-items:center;gap:var(--spacing-8);text-align:center;color:var(--color-brand-on-fill);flex-direction:column;margin-block-start:calc(-1 * var(--spacing-80));display:flex;position:relative}.
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.band{background:var(--color-surface-brand);padding-block-end:var(--spacing-40);position:relative;overflow:hidden}.stage{height:360px;position:relative;container-type:size}.media{object-fit:cover;object-position:var(--bd-hero-media-position,74% 50%);width:100%;height:100%;display:block}::slotted([slot=media]){width:108cqh;margin-block-start:-61cqh;margin-inline-start:-54cqh;position:absolute;inset-block-start:50%;inset-inline-start:50%}.fade{background:linear-gradient(to bottom, color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%, color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 45%, color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 80%, var(--color-surface-brand) 100%);pointer-events:none;height:64%;position:absolute;inset-block-end:0;inset-inline:0}.column{position:relative}.copy{align-items:center;gap:var(--spacing-8);text-align:center;color:var(--color-brand-on-fill);flex-direction:column;margin-block-start:calc(-1 * var(--spacing-80));display:flex;position:relative}.copy [hidden]{display:none}.eyebrow{font-family:var(--typography-heading-h4-fontFamily);font-size:var(--typography-heading-h4-fontSize);font-weight:var(--typography-heading-h4-fontWeight);line-height:var(--typography-heading-h4-lineHeight);letter-spacing:var(--typography-heading-h4-letterSpacing)}.title{overflow-wrap:break-word}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-display-sm-fontSize);--bd-heading-font-weight:var(--typography-display-sm-fontWeight);--bd-heading-line-height:var(--typography-display-sm-lineHeight);--bd-heading-letter-spacing:var(--typography-display-sm-letterSpacing);--bd-heading-font-family:var(--typography-display-sm-fontFamily);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill)}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill);--bd-paragraph-margin-bottom:0}.toggle{z-index:var(--z-raised);position:absolute;inset-block-start:var(--spacing-16);inset-inline-end:var(--spacing-16)}.cards-band{z-index:var(--z-base);background:var(--color-surface-brand);padding-block-end:var(--spacing-24);position:relative}.cards-band[hidden],.glow{display:none}@media (width>=768px){.copy{margin-block-start:calc(-1 * var(--spacing-64))}.cards-band{padding-block-end:var(--spacing-32)}::slotted([slot=media]){width:120cqh;margin-block-start:-60cqh;margin-inline-start:-60cqh}.eyebrow{font-family:var(--typography-heading-h3-fontFamily);font-size:var(--typography-heading-h3-fontSize);font-weight:var(--typography-heading-h3-fontWeight);line-height:var(--typography-heading-h3-lineHeight);letter-spacing:var(--typography-heading-h3-letterSpacing)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-display-md-fontSize);--bd-heading-font-weight:var(--typography-display-md-fontWeight);--bd-heading-line-height:var(--typography-display-md-lineHeight);--bd-heading-letter-spacing:var(--typography-display-md-letterSpacing);--bd-heading-font-family:var(--typography-display-md-fontFamily)}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing)}}@media (width>=992px){.band{padding-block:var(--spacing-64) var(--spacing-40)}.stage{height:auto;position:absolute;inset:0}.media{object-position:var(--bd-hero-media-position-lg,50% 50%)}.stage{--bd-hero-column:var(--grid-container-max-lg)}::slotted([slot=media]){width:100cqh;margin-block-start:-56cqh;margin-inline-start:0;inset-inline-start:auto;inset-inline-end:calc((100% - var(--bd-hero-column)) / 2 + var(--grid-padding-lg) - 11cqh)}.fade{background:linear-gradient(to bottom, color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%, color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 31.8%, color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 56.6%, var(--color-surface-brand) 70.7%);height:348px}.copy{text-align:start;align-items:flex-start;gap:var(--spacing-16);max-width:588px;margin-block-start:0}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-display-xl-fontSize);--bd-heading-font-weight:var(--typography-display-xl-fontWeight);--bd-heading-line-height:var(--typography-display-xl-lineHeight);--bd-heading-letter-spacing:var(--typography-display-xl-letterSpacing);--bd-heading-font-family:var(--typography-display-xl-fontFamily)}.toggle{inset-block-start:var(--spacing-24);inset-inline-end:var(--spacing-24)}.has-cards .band{padding-block-end:calc(var(--spacing-40) + var(--spacing-128))}.cards-band{background:0 0;margin-block-start:calc(-1 * var(--spacing-128));padding-block-end:0}.root{isolation:isolate;overflow-x:clip}.glow{z-index:var(--z-below);filter:blur(100px);height:0;display:block;position:relative}.glow:before{content:"";background:color-mix(in srgb, var(--color-surface-brand) 10%, transparent);width:1550px;height:666px;clip-path:path("M1006 130C873.7 -68.8 419.4 3.8 208.7 65C-292.1 216 208.7 594.4 659.6 656.8C1110.5 719.1 1600.4 449.6 1545.8 334.6C1491.2 219.5 1171.4 378.5 1006 130Z");pointer-events:none;margin-inline-start:-775px;position:absolute;inset-block-start:-434px;inset-inline-start:50%}}@media (width>=1200px){.stage{--bd-hero-column:var(--grid-container-max-xl)}}@media (width>=1400px){.stage{--bd-hero-column:var(--grid-container-max-xxl)}}@media (width>=1600px){.stage{--bd-hero-column:var(--grid-container-max-xxxl)}}@media (prefers-reduced-motion:reduce){.toggle{display:none}}`;export{t as heroCSS};
|
|
2
2
|
//# sourceMappingURL=hero.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.css.js","names":["heroCSS"],"sources":["../../../../src/components/hero/hero.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* Mobile first, in the three frames the Figma Hero draws.\n below md the video on top, the copy centred under it and rising 80 into\n its fade; the cards follow the band on the page\n md to lg the same, the copy rising 64\n lg and up the video fills the band, the copy sits left over it, and the\n cards rise 128 into the band's lower edge\n All ink on the band is the brand's own (--color-brand-on-fill), so a light\n partner brand takes dark copy. */\nexport const heroCSS = css`\n :host {\n display: block;\n }\n\n .band {\n position: relative;\n overflow: hidden;\n background: var(--color-surface-brand);\n padding-block-end: var(--spacing-40);\n }\n\n .stage {\n position: relative;\n /* no token: the video's box on a phone and a tablet, 360 tall in both\n frames; the dimension scale stops at 64 */\n height: 360px;\n /* the slotted art sizes itself from the stage's height */\n container-type: size;\n }\n\n /* Below lg the box is narrower than the art, so the crop follows its\n subject: --bd-hero-media-position lets a page say where that is in its\n own video. The default holds the homepage sphere, right of centre. */\n .media {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: var(--bd-hero-media-position, 74% 50%);\n }\n\n /* Slotted art (bd-motion-art) is square and sizes itself from its own\n width, so the stage gives it one. The sphere fills 78% of the art. The\n phone frame draws it about 300 across, centred 156 down the 360 stage,\n so the B sits clear above the copy rising into the stage: 108% of the\n stage's height, raised 7% of it. The tablet frame draws it about 340\n across and centred (120% from md, below). The glow runs off the stage's\n edges. Margins, not a translate, so it centres in RTL too. */\n ::slotted([slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 108cqh;\n margin-block-start: -61cqh;\n margin-inline-start: -54cqh;\n }\n\n /* The frames' video-fade: the video fades into the band so the copy has a\n solid ground under it, the brand at 0, 60, 95 and 100% at 0, 45, 80 and\n 100% of the fade. The phone and tablet frames draw it 230 tall at the\n foot of the 360 stage, 64% of it. No token: four stops of a gradient,\n mixed from the brand surface so a partner brand fades into its own. */\n .fade {\n position: absolute;\n inset-inline: 0;\n inset-block-end: 0;\n height: 64%;\n background: linear-gradient(\n to bottom,\n color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%,\n color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 45%,\n color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 80%,\n var(--color-surface-brand) 100%\n );\n pointer-events: none;\n }\n\n .column {\n position: relative;\n }\n\n .copy {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n margin-block-start: calc(-1 * var(--spacing-80));\n text-align: center;\n color: var(--color-brand-on-fill);\n }\n\n .eyebrow,\n .heading,\n .lead {\n margin: 0;\n color: inherit;\n }\n\n /* The eyebrow is a heading role without being a heading: only \"Cybersecurity\n for the AI Era.\" is the h1. h4 on a phone, h3 from md. */\n .eyebrow {\n font-family: var(--typography-heading-h4-fontFamily);\n font-size: var(--typography-heading-h4-fontSize);\n font-weight: var(--typography-heading-h4-fontWeight);\n line-height: var(--typography-heading-h4-lineHeight);\n letter-spacing: var(--typography-heading-h4-letterSpacing);\n }\n\n .heading {\n font-family: var(--typography-display-sm-fontFamily);\n font-size: var(--typography-display-sm-fontSize);\n font-weight: var(--typography-display-sm-fontWeight);\n line-height: var(--typography-display-sm-lineHeight);\n letter-spacing: var(--typography-display-sm-letterSpacing);\n overflow-wrap: break-word;\n }\n\n .lead {\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n }\n\n /* the pause button sits in the video's top corner at every width */\n .toggle {\n position: absolute;\n z-index: var(--z-raised);\n inset-block-start: var(--spacing-16);\n inset-inline-end: var(--spacing-16);\n }\n\n /* Below lg the cards follow the band on its own ground, full-bleed, so\n the section is one brand block: the phone frame closes it 24 under the\n cards, the tablet frame 32. The column inside keeps the cards on the\n page's edges. */\n .cards-band {\n position: relative;\n z-index: var(--z-base);\n background: var(--color-surface-brand);\n padding-block-end: var(--spacing-24);\n }\n\n .cards-band[hidden] {\n display: none;\n }\n\n /* The glow under the band: only the desktop frame draws it, so it waits\n for lg (below lg the cards sit on the band's own ground). */\n .glow {\n display: none;\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n .copy {\n margin-block-start: calc(-1 * var(--spacing-64));\n }\n\n .cards-band {\n padding-block-end: var(--spacing-32);\n }\n\n ::slotted([slot=\"media\"]) {\n width: 120cqh;\n margin-block-start: -60cqh;\n margin-inline-start: -60cqh;\n }\n\n .eyebrow {\n font-family: var(--typography-heading-h3-fontFamily);\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n }\n\n .heading {\n font-family: var(--typography-display-md-fontFamily);\n font-size: var(--typography-display-md-fontSize);\n font-weight: var(--typography-display-md-fontWeight);\n line-height: var(--typography-display-md-lineHeight);\n letter-spacing: var(--typography-display-md-letterSpacing);\n }\n\n .lead {\n font-size: var(--typography-body-large-fontSize);\n font-weight: var(--typography-body-large-fontWeight);\n line-height: var(--typography-body-large-lineHeight);\n letter-spacing: var(--typography-body-large-letterSpacing);\n }\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .band {\n padding-block: var(--spacing-64) var(--spacing-40);\n }\n\n /* the video fills the whole band behind the copy */\n .stage {\n position: absolute;\n inset: 0;\n height: auto;\n }\n\n .media {\n object-position: var(--bd-hero-media-position-lg, 50% 50%);\n }\n\n /* The art sits right of the copy, as tall as the band and raised 6% of\n it, with the sphere ending on the page column's content edge, as the\n desktop frame draws it, at every width. The stage is the band's full\n width, so the edge is worked out from the column's own steps\n (--bd-hero-column, set per breakpoint below, and --grid-padding-lg);\n the sphere ends 11% short of the art's own edge. */\n .stage {\n --bd-hero-column: var(--grid-container-max-lg);\n }\n\n ::slotted([slot=\"media\"]) {\n inset-inline-start: auto;\n inset-inline-end: calc((100% - var(--bd-hero-column)) / 2 + var(--grid-padding-lg) - 11cqh);\n width: 100cqh;\n margin-block-start: -56cqh;\n margin-inline-start: 0;\n }\n\n /* The desktop frame's video-fade: 246 tall, ending 102 above the band's\n lower edge, so it lies over the lower half of the sphere, with solid\n brand under it to the band's edge (behind the rising cards). The same\n stops, laid over the first 246 of a 348 box: 246 / 348 = 70.7%, and\n 45 and 80% of that. */\n .fade {\n /* no token: the frame's fade and its reach; the dimension scale stops\n at 64 */\n height: 348px;\n /* no token: a gradient's stops */\n background: linear-gradient(\n to bottom,\n color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%,\n color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 31.8%,\n color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 56.6%,\n var(--color-surface-brand) 70.7%\n );\n }\n\n .copy {\n align-items: flex-start;\n margin-block-start: 0;\n text-align: start;\n /* not the column: the copy's measure, the left half of the page that\n the design keeps clear of the sphere on the right.\n no token: 588 is a measure, and the dimension scale stops at 64 */\n max-width: 588px;\n gap: var(--spacing-16);\n }\n\n .heading {\n font-family: var(--typography-display-xl-fontFamily);\n font-size: var(--typography-display-xl-fontSize);\n font-weight: var(--typography-display-xl-fontWeight);\n line-height: var(--typography-display-xl-lineHeight);\n letter-spacing: var(--typography-display-xl-letterSpacing);\n }\n\n .toggle {\n inset-block-start: var(--spacing-24);\n inset-inline-end: var(--spacing-24);\n }\n\n /* the cards rise into the band's lower edge */\n .has-cards .band {\n padding-block-end: calc(var(--spacing-40) + var(--spacing-128));\n }\n\n /* from lg the cards rise into the band over the page, as the desktop\n frame draws them */\n .cards-band {\n margin-block-start: calc(-1 * var(--spacing-128));\n padding-block-end: 0;\n background: none;\n }\n\n /* The desktop frame's glow (Vector 3): a brand shape at 10%, blurred\n 200 in Figma (a Gaussian of 100), 1550 by 666, centred on the page\n and starting 434 above the band's lower edge, so it spills out under\n the band, behind the cards and on past them. The element sits between\n the band and the cards and takes no room; its ::before is the shape,\n clipped to the frame's own path, and the element blurs it. Behind the\n band (the root isolates it), so a partner brand's band keeps its own\n hue and the haze shows only where the band ends. The root clips it\n sideways, where it is wider than the page. */\n .root {\n isolation: isolate;\n overflow-x: clip;\n }\n\n .glow {\n display: block;\n position: relative;\n z-index: var(--z-below);\n height: 0;\n /* no token: the frame's layer blur */\n filter: blur(100px);\n }\n\n .glow::before {\n content: \"\";\n position: absolute;\n inset-inline-start: 50%;\n /* no token: the shape's place and size in the desktop frame; the\n dimension scale stops at 64 */\n inset-block-start: -434px;\n /* no token: the shape's width in the frame */\n width: 1550px;\n /* no token: the shape's height in the frame */\n height: 666px;\n margin-inline-start: -775px;\n background: color-mix(in srgb, var(--color-surface-brand) 10%, transparent);\n /* no token: the frame's path */\n clip-path: path(\"M1006 130C873.7 -68.8 419.4 3.8 208.7 65C-292.1 216 208.7 594.4 659.6 656.8C1110.5 719.1 1600.4 449.6 1545.8 334.6C1491.2 219.5 1171.4 378.5 1006 130Z\");\n pointer-events: none;\n }\n }\n\n /* the column's cap at each step from lg, for the art's edge above */\n @media ${unsafeCSS(above(\"xl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xl);\n }\n }\n\n @media ${unsafeCSS(above(\"xxl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xxl);\n }\n }\n\n @media ${unsafeCSS(above(\"xxxl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xxxl);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .toggle {\n display: none;\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. */\n .eyebrow,\n .heading,\n .lead {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,4DAWA,IAAaA,EAAU,CAAG,00K"}
|
|
1
|
+
{"version":3,"file":"hero.css.js","names":["heroCSS"],"sources":["../../../../src/components/hero/hero.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\n/* Mobile first, in the three frames the Figma Hero draws.\n below md the video on top, the copy centred under it and rising 80 into\n its fade; the cards follow the band on the page\n md to lg the same, the copy rising 64\n lg and up the video fills the band, the copy sits left over it, and the\n cards rise 128 into the band's lower edge\n All ink on the band is the brand's own (--color-brand-on-fill), so a light\n partner brand takes dark copy. */\nexport const heroCSS = css`\n :host {\n display: block;\n }\n\n .band {\n position: relative;\n overflow: hidden;\n background: var(--color-surface-brand);\n padding-block-end: var(--spacing-40);\n }\n\n .stage {\n position: relative;\n /* no token: the video's box on a phone and a tablet, 360 tall in both\n frames; the dimension scale stops at 64 */\n height: 360px;\n /* the slotted art sizes itself from the stage's height */\n container-type: size;\n }\n\n /* Below lg the box is narrower than the art, so the crop follows its\n subject: --bd-hero-media-position lets a page say where that is in its\n own video. The default holds the homepage sphere, right of centre. */\n .media {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: var(--bd-hero-media-position, 74% 50%);\n }\n\n /* Slotted art (bd-motion-art) is square and sizes itself from its own\n width, so the stage gives it one. The sphere fills 78% of the art. The\n phone frame draws it about 300 across, centred 156 down the 360 stage,\n so the B sits clear above the copy rising into the stage: 108% of the\n stage's height, raised 7% of it. The tablet frame draws it about 340\n across and centred (120% from md, below). The glow runs off the stage's\n edges. Margins, not a translate, so it centres in RTL too. */\n ::slotted([slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 108cqh;\n margin-block-start: -61cqh;\n margin-inline-start: -54cqh;\n }\n\n /* The frames' video-fade: the video fades into the band so the copy has a\n solid ground under it, the brand at 0, 60, 95 and 100% at 0, 45, 80 and\n 100% of the fade. The phone and tablet frames draw it 230 tall at the\n foot of the 360 stage, 64% of it. No token: four stops of a gradient,\n mixed from the brand surface so a partner brand fades into its own. */\n .fade {\n position: absolute;\n inset-inline: 0;\n inset-block-end: 0;\n height: 64%;\n background: linear-gradient(\n to bottom,\n color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%,\n color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 45%,\n color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 80%,\n var(--color-surface-brand) 100%\n );\n pointer-events: none;\n }\n\n .column {\n position: relative;\n }\n\n .copy {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n margin-block-start: calc(-1 * var(--spacing-80));\n text-align: center;\n color: var(--color-brand-on-fill);\n }\n\n /* Each part's box is left out while its slot is empty; the attribute's\n selector outweighs the display a box sets. */\n .copy [hidden] {\n display: none;\n }\n\n /* The eyebrow is a heading role without being a heading: only \"Cybersecurity\n for the AI Era.\" is the h1. Its slot takes text, which takes the role\n from here: h4 on a phone, h3 from md. */\n .eyebrow {\n font-family: var(--typography-heading-h4-fontFamily);\n font-size: var(--typography-heading-h4-fontSize);\n font-weight: var(--typography-heading-h4-fontWeight);\n line-height: var(--typography-heading-h4-lineHeight);\n letter-spacing: var(--typography-heading-h4-letterSpacing);\n }\n\n /* A display word can be wider than a phone. overflow-wrap inherits into\n the slotted heading, so it wraps inside the column, as 3.x's h1 did. */\n .title {\n overflow-wrap: break-word;\n }\n\n /* The page's one h1, at whatever level it writes: display-sm on a phone,\n display-md from md and display-xl from lg (below), in the brand's ink. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"display-sm\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n /* The lead: body-regular, body-large from md, in the brand's ink. Its own\n flow margin goes, as 3.x's <p> had none: the copy's gap spaces it. */\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n ${unsafeCSS(ink(\"on-brand\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* the pause button sits in the video's top corner at every width */\n .toggle {\n position: absolute;\n z-index: var(--z-raised);\n inset-block-start: var(--spacing-16);\n inset-inline-end: var(--spacing-16);\n }\n\n /* Below lg the cards follow the band on its own ground, full-bleed, so\n the section is one brand block: the phone frame closes it 24 under the\n cards, the tablet frame 32. The column inside keeps the cards on the\n page's edges. */\n .cards-band {\n position: relative;\n z-index: var(--z-base);\n background: var(--color-surface-brand);\n padding-block-end: var(--spacing-24);\n }\n\n .cards-band[hidden] {\n display: none;\n }\n\n /* The glow under the band: only the desktop frame draws it, so it waits\n for lg (below lg the cards sit on the band's own ground). */\n .glow {\n display: none;\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n .copy {\n margin-block-start: calc(-1 * var(--spacing-64));\n }\n\n .cards-band {\n padding-block-end: var(--spacing-32);\n }\n\n ::slotted([slot=\"media\"]) {\n width: 120cqh;\n margin-block-start: -60cqh;\n margin-inline-start: -60cqh;\n }\n\n .eyebrow {\n font-family: var(--typography-heading-h3-fontFamily);\n font-size: var(--typography-heading-h3-fontSize);\n font-weight: var(--typography-heading-h3-fontWeight);\n line-height: var(--typography-heading-h3-lineHeight);\n letter-spacing: var(--typography-heading-h3-letterSpacing);\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"display-md\"))}\n }\n\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n }\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .band {\n padding-block: var(--spacing-64) var(--spacing-40);\n }\n\n /* the video fills the whole band behind the copy */\n .stage {\n position: absolute;\n inset: 0;\n height: auto;\n }\n\n .media {\n object-position: var(--bd-hero-media-position-lg, 50% 50%);\n }\n\n /* The art sits right of the copy, as tall as the band and raised 6% of\n it, with the sphere ending on the page column's content edge, as the\n desktop frame draws it, at every width. The stage is the band's full\n width, so the edge is worked out from the column's own steps\n (--bd-hero-column, set per breakpoint below, and --grid-padding-lg);\n the sphere ends 11% short of the art's own edge. */\n .stage {\n --bd-hero-column: var(--grid-container-max-lg);\n }\n\n ::slotted([slot=\"media\"]) {\n inset-inline-start: auto;\n inset-inline-end: calc((100% - var(--bd-hero-column)) / 2 + var(--grid-padding-lg) - 11cqh);\n width: 100cqh;\n margin-block-start: -56cqh;\n margin-inline-start: 0;\n }\n\n /* The desktop frame's video-fade: 246 tall, ending 102 above the band's\n lower edge, so it lies over the lower half of the sphere, with solid\n brand under it to the band's edge (behind the rising cards). The same\n stops, laid over the first 246 of a 348 box: 246 / 348 = 70.7%, and\n 45 and 80% of that. */\n .fade {\n /* no token: the frame's fade and its reach; the dimension scale stops\n at 64 */\n height: 348px;\n /* no token: a gradient's stops */\n background: linear-gradient(\n to bottom,\n color-mix(in srgb, var(--color-surface-brand) 0%, transparent) 0%,\n color-mix(in srgb, var(--color-surface-brand) 60%, transparent) 31.8%,\n color-mix(in srgb, var(--color-surface-brand) 95%, transparent) 56.6%,\n var(--color-surface-brand) 70.7%\n );\n }\n\n .copy {\n align-items: flex-start;\n margin-block-start: 0;\n text-align: start;\n /* not the column: the copy's measure, the left half of the page that\n the design keeps clear of the sphere on the right.\n no token: 588 is a measure, and the dimension scale stops at 64 */\n max-width: 588px;\n gap: var(--spacing-16);\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"display-xl\"))}\n }\n\n .toggle {\n inset-block-start: var(--spacing-24);\n inset-inline-end: var(--spacing-24);\n }\n\n /* the cards rise into the band's lower edge */\n .has-cards .band {\n padding-block-end: calc(var(--spacing-40) + var(--spacing-128));\n }\n\n /* from lg the cards rise into the band over the page, as the desktop\n frame draws them */\n .cards-band {\n margin-block-start: calc(-1 * var(--spacing-128));\n padding-block-end: 0;\n background: none;\n }\n\n /* The desktop frame's glow (Vector 3): a brand shape at 10%, blurred\n 200 in Figma (a Gaussian of 100), 1550 by 666, centred on the page\n and starting 434 above the band's lower edge, so it spills out under\n the band, behind the cards and on past them. The element sits between\n the band and the cards and takes no room; its ::before is the shape,\n clipped to the frame's own path, and the element blurs it. Behind the\n band (the root isolates it), so a partner brand's band keeps its own\n hue and the haze shows only where the band ends. The root clips it\n sideways, where it is wider than the page. */\n .root {\n isolation: isolate;\n overflow-x: clip;\n }\n\n .glow {\n display: block;\n position: relative;\n z-index: var(--z-below);\n height: 0;\n /* no token: the frame's layer blur */\n filter: blur(100px);\n }\n\n .glow::before {\n content: \"\";\n position: absolute;\n inset-inline-start: 50%;\n /* no token: the shape's place and size in the desktop frame; the\n dimension scale stops at 64 */\n inset-block-start: -434px;\n /* no token: the shape's width in the frame */\n width: 1550px;\n /* no token: the shape's height in the frame */\n height: 666px;\n margin-inline-start: -775px;\n background: color-mix(in srgb, var(--color-surface-brand) 10%, transparent);\n /* no token: the frame's path */\n clip-path: path(\"M1006 130C873.7 -68.8 419.4 3.8 208.7 65C-292.1 216 208.7 594.4 659.6 656.8C1110.5 719.1 1600.4 449.6 1545.8 334.6C1491.2 219.5 1171.4 378.5 1006 130Z\");\n pointer-events: none;\n }\n }\n\n /* the column's cap at each step from lg, for the art's edge above */\n @media ${unsafeCSS(above(\"xl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xl);\n }\n }\n\n @media ${unsafeCSS(above(\"xxl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xxl);\n }\n }\n\n @media ${unsafeCSS(above(\"xxxl\"))} {\n .stage {\n --bd-hero-column: var(--grid-container-max-xxxl);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .toggle {\n display: none;\n }\n }\n`;\n"],"mappings":"A,4DAWA,IAAaA,EAAU,CAAG,g8L"}
|