@repobit/dex-system-design 3.1.2 → 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 +1067 -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,26 +1,43 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import "../icons/
|
|
6
|
-
import "../icons/
|
|
7
|
-
import "../
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import "./process-step.js";
|
|
5
|
+
import "../h/h.js";
|
|
6
|
+
import "../icons/close.js";
|
|
7
|
+
import "../icons/globe.js";
|
|
8
|
+
import "../icons/guide.js";
|
|
9
|
+
import "../img/img.js";
|
|
10
|
+
import "../p/p.js";
|
|
11
|
+
/**
|
|
12
|
+
* A dark band explaining a process: a title, a description, and a row of
|
|
13
|
+
* steps.
|
|
14
|
+
*
|
|
15
|
+
* <bd-process-steps>
|
|
16
|
+
* <bd-h slot="title" as="h2">Policy, guardrail, verdict</bd-h>
|
|
17
|
+
* <bd-p slot="description">AI Guardian works in three stages …</bd-p>
|
|
18
|
+
* <bd-process-step>…</bd-process-step>
|
|
19
|
+
* </bd-process-steps>
|
|
20
|
+
*
|
|
21
|
+
* The steps are the default slot, inside the grid. 3.x's `steps` slot sat
|
|
22
|
+
* after the grid, so a slotted step landed under the row rather than in it;
|
|
23
|
+
* it is gone.
|
|
24
|
+
*
|
|
25
|
+
* The section paints its own dark surface, so it names the band's ink with
|
|
26
|
+
* ink('inverse'): a bd-h sets its own colour inside its shadow root, and
|
|
27
|
+
* 3.x's inherited container colour never reached the headings -- measured
|
|
28
|
+
* near-black on the band, about 1.0:1, until color="inverse" was written on
|
|
29
|
+
* each. The hook reaches every heading and paragraph slotted into the band,
|
|
30
|
+
* the steps' included. The title takes the page-section h2 role at whatever
|
|
31
|
+
* level the page picks, and the description the band's muted ink. Each
|
|
32
|
+
* part's box is hidden while its slot is empty.
|
|
33
|
+
*/
|
|
34
|
+
export declare class BdProcessSteps extends LitElement {
|
|
14
35
|
static styles: import("lit").CSSResult[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
steps: ProcessStep[];
|
|
18
|
-
_renderIcon(icon: ProcessStep["icon"]): typeof nothing | TemplateResult;
|
|
19
|
-
render(): TemplateResult<1>;
|
|
36
|
+
_slots: SlotController<"" | "title" | "description">;
|
|
37
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
38
|
}
|
|
21
39
|
declare global {
|
|
22
40
|
interface HTMLElementTagNameMap {
|
|
23
|
-
"bd-process-steps":
|
|
41
|
+
"bd-process-steps": BdProcessSteps;
|
|
24
42
|
}
|
|
25
43
|
}
|
|
26
|
-
export {};
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../icons/close.js";import"../img/img.js";import"../icons/globe.js";import"../icons/guide.js";import"./process-step.js";import i from"./process-steps.css.js";import{LitElement as a,html as o}from"lit";var s=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:[`title`,`description`,``]})}static{this.styles=[r,i]}render(){return o`
|
|
2
2
|
<div class="bd-ensemble bd-processsteps-container">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</bd-h>
|
|
7
|
-
`:o}
|
|
8
|
-
|
|
9
|
-
${this.description?a`
|
|
10
|
-
<bd-p variant="regular" class="bd-processsteps-description">
|
|
11
|
-
<slot name="description">${this.description}</slot>
|
|
12
|
-
</bd-p>
|
|
13
|
-
`:o}
|
|
14
|
-
|
|
15
|
-
<div class="bd-processsteps-grid">
|
|
16
|
-
${this.steps.map(e=>a`
|
|
17
|
-
<div class="bd-processsteps-step">
|
|
18
|
-
<div class="bd-processsteps-divider"></div>
|
|
19
|
-
<div class="bd-processsteps-icon-wrap">${this._renderIcon(e.icon)}</div>
|
|
20
|
-
<bd-h as="h4" color="inverse" class="bd-processsteps-step-title">${e.title}</bd-h>
|
|
21
|
-
<bd-p variant="regular" class="bd-processsteps-step-description">${e.description}</bd-p>
|
|
22
|
-
</div>
|
|
23
|
-
`)}
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<slot name="steps"></slot>
|
|
3
|
+
<div class="bd-processsteps-title" ?hidden=${!this._slots.has(`title`)}><slot name="title"></slot></div>
|
|
4
|
+
<div class="bd-processsteps-description" ?hidden=${!this._slots.has(`description`)}><slot name="description"></slot></div>
|
|
5
|
+
<div class="bd-processsteps-grid" ?hidden=${!this._slots.has(``)}><slot></slot></div>
|
|
27
6
|
</div>
|
|
28
|
-
`}};
|
|
7
|
+
`}};s=t([e(`bd-process-steps`)],s);export{s as BdProcessSteps};
|
|
29
8
|
//# sourceMappingURL=process-steps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-steps.js","names":["processStepsCSS","_decorate","__decorate","process_steps_css_default","
|
|
1
|
+
{"version":3,"file":"process-steps.js","names":["processStepsCSS","_decorate","__decorate","process_steps_css_default","BdProcessSteps","LitElement","_args","SlotController","ensembleCSS","defineElement"],"sources":["../../../../src/components/process-steps/process-steps.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\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 \"./process-step.ts\";\n/* The atoms the page writes into the band's and its steps' slots. Neither\n renders them now, but 3.x's module registered them -- the three icons\n its steps were written with too -- and a page importing only this module\n still gets them. bd-img is what a 3.x step's image URL became. */\nimport \"#components/h/h.ts\";\nimport \"#components/icons/close.ts\";\nimport \"#components/icons/globe.ts\";\nimport \"#components/icons/guide.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/p/p.ts\";\nimport processStepsCSS from \"./process-steps.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * A dark band explaining a process: a title, a description, and a row of\n * steps.\n *\n * <bd-process-steps>\n * <bd-h slot=\"title\" as=\"h2\">Policy, guardrail, verdict</bd-h>\n * <bd-p slot=\"description\">AI Guardian works in three stages …</bd-p>\n * <bd-process-step>…</bd-process-step>\n * </bd-process-steps>\n *\n * The steps are the default slot, inside the grid. 3.x's `steps` slot sat\n * after the grid, so a slotted step landed under the row rather than in it;\n * it is gone.\n *\n * The section paints its own dark surface, so it names the band's ink with\n * ink('inverse'): a bd-h sets its own colour inside its shadow root, and\n * 3.x's inherited container colour never reached the headings -- measured\n * near-black on the band, about 1.0:1, until color=\"inverse\" was written on\n * each. The hook reaches every heading and paragraph slotted into the band,\n * the steps' included. The title takes the page-section h2 role at whatever\n * level the page picks, and the description the band's muted ink. Each\n * part's box is hidden while its slot is empty.\n */\n@defineElement(\"bd-process-steps\")\nexport class BdProcessSteps extends LitElement {\n static styles = [ensembleCSS, processStepsCSS];\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"\"] });\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-processsteps-container\">\n <div class=\"bd-processsteps-title\" ?hidden=${!this._slots.has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-processsteps-description\" ?hidden=${!this._slots.has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"bd-processsteps-grid\" ?hidden=${!this._slots.has(\"\")}><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-process-steps\": BdProcessSteps;\n }\n}\n"],"mappings":"A,8gBA2CO,IAAMI,EAAN,cAA6BC,CAAW,C,8BAGpC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,EAAE,CAAE,CAAC,C,QAFzD,KAAA,OAAA,CAACC,EAAaR,CAAe,C,CAI7C,QAAS,CACP,MAAO,EAAI;;qDAEsC,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;2DACpB,CAAC,KAAK,OAAO,IAAI,aAAa,EAAE;oDACvC,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;KAGvE,CACF,EAfC,EAAAC,EAAA,CAAAQ,EAAc,kBAAkB,CAAA,EAAAL,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{background:var(--color-surface-default);padding-top:var(--spacing-16);padding-bottom:var(--spacing-16);display:block}.bd-container [hidden]{display:none}::slotted([slot=media]){object-fit:cover;width:100%;height:100%;z-index:var(--z-base);border-radius:var(--shape-radius-2xl);display:block;position:relative}::slotted(bd-img[slot=media]){grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:stretch stretch;display:grid}.bd-container{gap:var(--spacing-64);grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;display:grid}.bd-header-left{padding-block:var(--spacing-24)}.bd-header-left,.bd-header-right{flex:1}.bd-header-right{justify-content:center;align-items:stretch;width:100%;display:flex;position:relative}.bd-product-name{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);color:var(--color-text-brand);margin-top:var(--spacing-0);margin-bottom:var(--spacing-16)}.bd-value-prop{margin:var(--spacing-0)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h1-fontSize);--bd-heading-font-weight:var(--typography-heading-h1-fontWeight);--bd-heading-line-height:var(--typography-heading-h1-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h1-letterSpacing);--bd-heading-font-family:var(--typography-heading-h1-fontFamily)}.bd-description{margin-top:var(--spacing-8);margin-bottom:var(--spacing-0)}::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-text-primary);--bd-paragraph-color:var(--color-text-primary)}.bd-price-zone-top{gap:var(--spacing-8);margin-top:var(--spacing-16);align-items:center;display:flex}.original-price{--bd-paragraph-margin-bottom:0;color:var(--color-text-muted)}.bd-price-zone-final{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);margin-bottom:var(--spacing-16);display:block}.bd-cta{gap:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-caption,.bd-small-print{font-size:var(--typography-body-xsmall-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);font-family:var(--typography-body-small-fontFamily);color:var(--color-text-muted);margin:var(--spacing-0)}.bd-caption{margin-top:var(--spacing-8)}.bd-small-print{--bd-link-color:var(--color-text-primary)}.bd-header-image-wrapper{border-radius:var(--shape-radius-2xl);--bd-header-mark-inset:var(--spacing-24);--bd-header-mark-height:var(--icon-lg-size);--bd-header-scrim-fade:var(--spacing-112);--bd-header-scrim-mid:var(--spacing-40);justify-content:center;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.bd-header-scrim{height:calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height) + var(--bd-header-scrim-fade));background:linear-gradient(to top, color-mix(in srgb, var(--color-brand-950) 60%, transparent) 0, color-mix(in srgb, var(--color-brand-950) 60%, transparent) calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height)), color-mix(in srgb, var(--color-brand-950) 22%, transparent) calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height) + var(--bd-header-scrim-mid)), transparent 100%);z-index:var(--z-raised);pointer-events:none;position:absolute;inset-block-end:0;inset-inline:0}.bd-header-signature{z-index:var(--z-raised);color:var(--color-text-inverse);pointer-events:none;position:absolute;inset-block-end:var(--bd-header-mark-inset);inset-inline-end:var(--bd-header-mark-inset)}@media (width<992px){.bd-container{row-gap:var(--spacing-32);grid-template-columns:1fr}}@media (width<768px){.bd-cta{flex-direction:column;align-items:stretch}.bd-cta bd-button:not([hidden]){display:grid}.bd-header-image-wrapper{--bd-header-mark-inset:var(--spacing-16);--bd-header-mark-height:var(--icon-sm-size);--bd-header-scrim-fade:var(--spacing-48);--bd-header-scrim-mid:var(--spacing-16)}.bd-header-signature{height:var(--icon-sm-size)}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=product-hero.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-hero.css.js","names":["product_hero_css_default"],"sources":["../../../../src/components/product-hero/product-hero.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* --color-surface-default, the role, not --color-neutral-0, the primitive\n it resolves to. Same value; the category is the point, and CLAUDE.md's\n \"same primitive value is not same semantic meaning\" section exists for\n exactly this. */\n background: var(--color-surface-default);\n /* Sixteen top and bottom, which is how Header / v2's chosen configuration\n pads the hero row. That is the line of headroom the height study bought\n to get the header under 600 -- \"drop the frame padding 24 -> 16, which\n lands 562px and leaves 38px\". The text column takes its own 24 back\n below (.bd-header-left), so the copy still breathes; what got thinner\n is the band around the media panel, which needed nothing. */\n padding-top: var(--spacing-16);\n padding-bottom: var(--spacing-16);\n }\n\n /* Each part's box is hidden while its slot is empty -- the picture's whole\n column with it -- and the attribute's selector outweighs the display a\n box sets below. The second button is hidden the same way until it has\n somewhere to go: an outer-tree rule beats the button's own :host. */\n .bd-container [hidden] {\n display: none;\n }\n\n /* A REAL COVER FILL, not a zoom. 3.x once said height: auto with\n transform: scale(1.35) translateY(-7%), which is how a wide photograph was\n made to fill a tall box before the column stretched: blow it up 135%,\n shove it up 7%, and let the wrapper's overflow: hidden crop whatever\n misses. That threw away a third of the image's resolution for nothing --\n object-fit: cover already crops, and crops without magnifying -- and the\n crop it landed on moved with the viewport.\n .\n height: 100% is available because .bd-container stretches both columns to\n the taller one, so the wrapper has a definite height to fill. Header / v2\n shows a plain 613-wide media panel filled edge to edge with no transform,\n which is what this is.\n .\n It also matters to the scrim: the band and the mark are positioned against\n the WRAPPER, while a transformed image is not where the wrapper is. */\n ::slotted([slot=\"media\"]) {\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n z-index: var(--z-base);\n position: relative;\n border-radius: var(--shape-radius-2xl);\n }\n\n /* bd-img's own <img> is out of reach and sizes itself from its image, so\n the panel would show the ground under a picture shorter than the copy\n beside it. As a grid item stretched both ways it fills the panel instead,\n and its fit (cover by default) keeps the picture's proportions -- the\n cover fill above, one shadow root down. bd-post-card fills its cover the\n same way. */\n ::slotted(bd-img[slot=\"media\"]) {\n display: grid;\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n justify-items: stretch;\n align-items: stretch;\n }\n\n .bd-container {\n display: grid;\n /* minmax(0, 1fr), not 1fr: a bare 1fr floors each column at its own\n min-content width, which held .bd-header-left at 201px however narrow\n the screen got and pushed the right-hand column 29px past a 320px\n viewport. The columns still share the space equally; they are simply\n allowed to go below their content's natural width, which is what lets\n the text inside wrap instead of the layout overflowing. With no\n picture the copy keeps its column: the second track stays, empty. */\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n /* --spacing-64, which is the 64px gap between the two 613px columns in\n Header / v2. */\n gap: var(--spacing-64);\n /* the page column (bd-ensemble), not a 240px gutter: a fixed gutter made the\n hero the one section whose content width depended on the viewport --\n 960 wide at 1440, 1440 wide at 1920 -- while every other module capped\n itself */\n align-items: stretch;\n }\n\n /* The content column's own inset, and the second half of the padding on\n :host. Header / v2 nests a 24-padded content frame inside a 16-padded\n row, so the copy sits 40 from the top of the section while the media panel\n sits 16 -- the image is meant to be the taller of the two. */\n .bd-header-left {\n padding-block: var(--spacing-24);\n }\n\n .bd-header-left,\n .bd-header-right {\n flex: 1;\n }\n\n .bd-header-right {\n display: flex;\n align-items: stretch;\n justify-content: center;\n width: 100%;\n position: relative;\n }\n\n /* ---- the vertical rhythm of the content column --------------------------\n Header / v2's chosen configuration nests four auto-layout frames, and the\n gaps below are theirs read top to bottom:\n\n content gap 16 product-name -> body\n body gap 16 copy -> price -> actions\n copy gap 8 headline -> description\n actions gap 8 CTA row -> caption\n\n The 16/8/8 triple is variant I from the height study, the one\n configuration that measured the same 578px in all four languages tested.\n\n These are margins rather than a flex/grid gap because the column is a\n plain block flow and the atoms carry their own flow margins; a gap would\n mean also cancelling those. The description's bd-p keeps the 16 below\n it that its --bd-paragraph-margin-bottom gives, collapsing through the\n box around it, and that is the copy -> price gap. */\n\n /* The kicker. Its slot takes words, so the box around it is a <p> and this\n stylesheet declares its type: the heading-h4 ROLE rather than four\n primitives -- 2xl / semibold / 130 / normal tracking, which is what\n Header / v2 gives the product name. The words inherit it.\n\n A heading role on a non-heading element is the right way round, not a\n compromise. The job here is \"the most prominent label on the section\" --\n there is no 24px label role, and picking body-lead at 20 because it is\n nearer the body would be choosing by number. What the element is NOT is a\n heading, and that is settled by the tag, not by the role's name. */\n .bd-product-name {\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 color: var(--color-text-brand);\n margin-top: var(--spacing-0);\n margin-bottom: var(--spacing-16);\n }\n\n /* The headline: heading-h1 at whatever level the page writes. 3.x pinned\n visual-level=\"h1\" on the bd-h it rendered, so heading-level could move\n the hero in the outline without repainting it -- unpinned, an h3 measured\n 32px at 1024 and 24px at 320 against 48 and 30. The hooks keep that\n promise for the page's own bd-h: its as is the outline, this is the size,\n and a visual-level or color= the page writes on it still wins.\n heading-h1 is fluid (CLAUDE.md, typography rule 13), 48 at lg and up and\n 30 at 320, so the headline steps down with the screen through the role\n rather than through a query here. */\n .bd-value-prop {\n margin: var(--spacing-0);\n }\n\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h1\"))}\n }\n\n .bd-description {\n margin-top: var(--spacing-8);\n margin-bottom: var(--spacing-0);\n }\n\n /* The paragraph 3.x drew as bd-p appearance=\"regular\" in primary ink: the\n body-regular role and the strong ink, through the hooks, so the page's\n bd-p is drawn as 3.x's was whatever appearance it carries. */\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n ${unsafeCSS(ink(\"strong\"))}\n }\n\n .bd-price-zone-top {\n display: flex;\n /* 8, which is the price-was frame's gap between the struck price and the\n discount badge. */\n gap: var(--spacing-8);\n align-items: center;\n /* the body frame's gap, 16. */\n margin-top: var(--spacing-16);\n }\n\n /* The struck price is <s> inside <bd-p appearance=\"regular\"> with the class\n .original-price, matching pricing-card.ts and pricing-card-pricing.ts:\n the role answers its size, <s> carries the strike natively, and bd-p's\n own :host sets the ink below.\n\n The one thing this rule has to do that is not typography: bd-p's inner\n <p> carries a 16px flow margin, and a bd-p in a flex row is a flex item,\n so it establishes a block formatting context and that margin cannot\n collapse through the host. Measured, the host rendered 37px where its\n text is 21px, which grew this zone from 28px to 37px and shifted the\n struck price 6px against the discount badge beside it. The atom takes\n --bd-paragraph-margin-bottom, so the margin is simply turned off. */\n .original-price {\n --bd-paragraph-margin-bottom: 0;\n /* text/muted, which is what Header / v2 gives the struck price. Colour on\n a bd-p host is LIVE (scripts/atom-inert-properties.json). A former\n price is the one number here that is deliberately not being offered --\n primary ink gave it the same weight in the eye as the price you can\n actually pay. */\n color: var(--color-text-muted);\n }\n\n /* .bd-discount is a bd-badge, so there is nothing left to declare; the\n class is kept only as a positioning hook. Header / v2 asks for the fill\n appearance -- a saturated status/success/fill ground with\n status/success/on-fill ink -- not the shade tint a hand-rolled span drew\n here before 3.x made it a badge. */\n\n .bd-price-zone-final {\n display: block;\n /* Header / v2 sets the final price at 36 Bold on a 1.25 leading, which is\n heading-h2 exactly (4xl / bold / tight / normal tracking) on all four\n axes. The role rather than the four primitives, so the size and the\n weight cannot drift apart. */\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 /* the body frame's gap to the actions frame below, 16. */\n margin-bottom: var(--spacing-16);\n }\n\n .bd-cta {\n display: flex;\n gap: var(--spacing-16);\n /* WRAP, because the alternative is not \"stays on one line\" -- it is\n \"shrinks\". Flex items shrink by default, and measured at a 312px column\n the two buttons went from 183/246 to 150/146 and both labels broke over\n three lines inside a box padded for one. Wrapping costs about 71px, and\n it happens on its own at whatever width runs out rather than at a\n breakpoint somebody picks. */\n flex-wrap: wrap;\n }\n\n /* ---- the caption and the small print -------------------------------------\n Header / v2 draws these as ONE text node of two lines at 12 Regular in\n text/muted. Each is the page's words in a box of this component's, so\n the box carries the type and the words inherit it: bd-p's xsmall step,\n which 3.x drew both lines in. body-xsmall is a size and nothing else, so\n the weight, leading and tracking are body-small's, as bd-p borrows them\n -- 12 on a 1.45 leading, 17.4px, where the file says 150%. Figma binds\n the size to a variable there and leaves the leading raw, so the role is\n spelled rather than the file's number.\n\n 3.x drew the caption as a bd-p with the slot inside it and an English\n fallback (\"Protection for 1 account & 5 PCs, Macs, tablets, or\n smartphones. Windows | macOS | Android | iOS\"), and the small print as a\n bd-p around three slots that made one sentence between them. Neither has\n a fallback now, and the small print is one run of the page's phrasing,\n its link an inline bd-link. */\n .bd-caption,\n .bd-small-print {\n font-size: var(--typography-body-xsmall-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n color: var(--color-text-muted);\n margin: var(--spacing-0);\n }\n\n /* the actions frame's gap, 8. Zero between the two lines: the design has\n them as two consecutive lines of one paragraph, not two blocks with air\n between them. */\n .bd-caption {\n margin-top: var(--spacing-8);\n }\n\n /* The small print's link, in the ink 3.x gave the link it slotted: primary\n text, where a bd-link's own resting ink is the brand's. Set as the link's\n resting-colour hook, so its hover and its focus ring are still its own,\n and a color= the page writes on it still wins. */\n .bd-small-print {\n --bd-link-color: var(--color-text-primary);\n }\n\n .bd-header-image-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n overflow: hidden;\n border-radius: var(--shape-radius-2xl);\n }\n\n /* ---- THE BRAND SIGNATURE AND ITS SCRIM ---------------------------------\n Figma: Header / v2, media-panel, children bottom-to-top\n media -> scrim -> brand-signature. Both rules below are that stack.\n\n The mark replaced a .bd-header-watermark div holding the words \"Trusted.\n Always.\" at 32px/700: type doing a mark's job (CLAUDE.md's icon rule),\n English hardcoded beside a stylesheet, and clipped -- measured at 320px\n it read \"rusted. lways.\". The mark is our own artwork, says nothing that\n needs translating, and is 182px wide.\n\n WHY THERE IS A SCRIM AT ALL. The mark is white and the image underneath\n is the page's. Rendered against a real photo with no scrim the worst\n pixel-neighbourhood under the mark measured 1.00:1, with 33.5% of its area\n under the 3:1 that WCAG 1.4.11 asks of a non-text graphic.\n\n WHY blue-950 AND NOT THE BRAND BLUE. White on --color-blue-500 is 4.53:1\n SOLID, so no partial coverage of it can ever guarantee the minimum.\n blue-950 at 60% holds white above 4.5:1 over any image including a white\n one. Measured over the test photo: worst 8.64:1, nothing under 4.5.\n\n THE GEOMETRY IS DERIVED, NOT DRAWN. The band is 48 + 112: 48 is the\n mark's own box -- a --spacing-24 inset plus the 24px the artwork is drawn\n at -- and 112 is the fade above it, so the plateau ends exactly on the\n mark's top edge by construction. That survives a reader enlarging their\n text: the inset is rem and the artwork is px, so at a 24px root the band is\n 240 with its plateau at 72 and the mark occupies 36-60. It does NOT survive\n a root SMALLER than 16px -- at 12px the mark's top edge sits about 6px into\n the ramp, where the scrim is still ~0.52 rather than 0.60.\n\n The first stop is the transparent keyword rather than blue-950 at 0%.\n Gradient interpolation is premultiplied, so that keyword does not fade\n through grey. */\n /* The lengths everything below is derived from. They live on the wrapper\n so the scrim and the mark, both its children, read the SAME inset. */\n .bd-header-image-wrapper {\n --bd-header-mark-inset: var(--spacing-24);\n /* the height the artwork is drawn at, and the step the atom defaults to */\n --bd-header-mark-height: var(--icon-lg-size);\n --bd-header-scrim-fade: var(--spacing-112);\n --bd-header-scrim-mid: var(--spacing-40);\n }\n\n /* LENGTH STOPS, NOT PERCENTAGES. Written as lengths from the bottom, the\n plateau IS the mark's box at any size, so the narrow version below is\n two smaller numbers rather than a second set of percentages. The stops\n resolve to Figma's exactly at desktop: plateau 0-48, 0.22 at 88, zero at\n 160. */\n .bd-header-scrim {\n position: absolute;\n inset-inline: 0;\n inset-block-end: 0;\n height: calc(\n var(--bd-header-mark-inset) + var(--bd-header-mark-height) +\n var(--bd-header-scrim-fade)\n );\n background: linear-gradient(\n to top,\n color-mix(in srgb, var(--color-brand-950) 60%, transparent) 0,\n color-mix(in srgb, var(--color-brand-950) 60%, transparent)\n calc(var(--bd-header-mark-inset) + var(--bd-header-mark-height)),\n color-mix(in srgb, var(--color-brand-950) 22%, transparent)\n calc(\n var(--bd-header-mark-inset) + var(--bd-header-mark-height) +\n var(--bd-header-scrim-mid)\n ),\n transparent 100%\n );\n z-index: var(--z-raised);\n pointer-events: none;\n }\n\n .bd-header-signature {\n position: absolute;\n /* the same property the scrim sizes its plateau from, so the band cannot\n stop covering the mark when the inset changes below md */\n inset-block-end: var(--bd-header-mark-inset);\n inset-inline-end: var(--bd-header-mark-inset);\n z-index: var(--z-raised);\n color: var(--color-text-inverse);\n pointer-events: none;\n }\n\n /* ---- RESPONSIVE ---------------------------------------------------------\n Three steps, each on the breakpoint scale in shared/token-scales.ts, and\n each one measured rather than guessed. There is no mobile frame in Figma:\n the height study was run at 1290 only, so every width below that is a\n decision taken here.\n\n WHY below('lg') IS THE STACKING POINT. The page column caps at\n --grid-container-max-* with --grid-padding-* either side, so the content\n width per step is fixed and so is the two-column arithmetic once the 64px\n gap comes out of it:\n\n xxxl 1372 - 80 = 1292 -> 614 per column\n xxl 1280 - 80 = 1200 -> 568\n xl 1140 - 80 = 1060 -> 498\n lg 960 - 80 = 880 -> 408\n md 720 - 64 = 656 -> 296\n sm 540 - 48 = 492 -> 214\n\n The CTA row is 446px wide. It fits at xl and above, wraps at lg, and at md\n there is less room than one button needs. lg is therefore the last step\n where two columns are even arguable: two columns at lg cost the\n description a fourth line, the CTA row a wrap, and the section 661px\n against the design's 566. Stacked at lg the copy gets one 880px column\n and then an 880px-wide photograph under it at its own 1.497 ratio, about\n 1100px of hero in a window 992-1199 wide. 661 beats that. Stacking is\n the answer below lg, not at it. */\n @media ${unsafeCSS(below('lg'))} {\n .bd-container {\n /* grid-template-columns, not flex-direction: the container is a grid */\n grid-template-columns: 1fr;\n /* row-gap only. 32 is the distance between the copy and the image once\n they are stacked; with no picture there is no second row and no\n gap. */\n row-gap: var(--spacing-32);\n }\n }\n\n /* Narrower than md. Separate from the stacking block above on purpose:\n stacking and the phone treatment are different decisions at different\n widths, and at md the column is 656px where a side-by-side CTA row still\n fits.\n\n THE CONTENT STAYS LEFT-ALIGNED AT EVERY WIDTH. Header / v2 is\n left-aligned and no frame in the file centres; six stacked blocks of very\n different widths share no edge when centred; and centring needed a patch\n (justify-content on the flex price row, which text-align cannot move) to\n stop looking broken, which is the argument against it. */\n @media ${unsafeCSS(below('md'))} {\n /* stretch, not center. The two labels are different lengths, so hugging\n gave a 183px button above a 246px one. Full-width they are the same\n object twice and the tap targets stop varying with the copy. */\n .bd-cta {\n flex-direction: column;\n align-items: stretch;\n }\n\n /* STRETCHING THE COLUMN IS NOT ENOUGH. With align-items: stretch the\n HOSTS go full width, but the anchor inside each one is inline-flex and\n hugs its label. The atom's own answer is its full-width attribute, which\n a media query cannot set, so this reaches the same computed result\n through the host's formatting context instead: an outer-tree rule beats\n the atom's :host, and a lone child of a single-column grid fills its\n track. Measured: hosts 492, anchors 183/246 -> 492/492.\n\n The coupling is worth knowing: this depends on the control being the\n button's only shadow child, which it is (a.button, or button.button\n for a secondary with no href). If the button ever wraps it, prefer\n full-width on the markup and the viewport state it needs.\n\n :not([hidden]), so the second button stays hidden while it has nowhere\n to go: this rule outweighs the [hidden] one above. */\n .bd-cta bd-button:not([hidden]) {\n display: grid;\n }\n }\n\n /* THE BAND STEPS WITH THE PANEL, and it steps at md rather than sm because\n that is where the panel stops being landscape. Measured with the band held\n at its desktop 160 all the way down: 37% of the panel at 768-991, then 49%\n at 600. The panel's height follows the copy beside it when the columns\n are side by side, and its own 1.497 ratio once they stack -- 311x208 at\n 375 and 256x171 at 320, which put a 160px band at 77% and 94% of it. So\n the band is re-proportioned rather than capped: the inset drops a step\n and the fade drops to 48, giving 40 + 48 = 88, 42% at 375 and 51% at 320,\n and the plateau still covers the mark exactly. */\n @media ${unsafeCSS(below('md'))} {\n .bd-header-image-wrapper {\n --bd-header-mark-inset: var(--spacing-16);\n --bd-header-mark-height: var(--icon-sm-size);\n --bd-header-scrim-fade: var(--spacing-48);\n --bd-header-scrim-mid: var(--spacing-16);\n }\n\n /* THE MARK STEPS DOWN A SIZE. At 320 the panel is 256 wide and the mark\n was 182 of it -- 71%, against 30% in the design -- so a corner\n signature became a caption laid across the picture. A height on the\n host rather than the atom's size attribute, because the size is a\n viewport question and the attribute is not reachable from a media\n query; the atom's own rule is :host { height: var(--bd-icon-size, ...) },\n and the outer tree wins. sm on the icon scale is 16px, so the mark\n renders 121 wide, and --bd-header-mark-height above follows it. */\n .bd-header-signature {\n height: var(--icon-sm-size);\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,0/I"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import "../button/button.js";
|
|
5
|
+
import "../badge/badge.js";
|
|
6
|
+
import "../icons/brand-signature.js";
|
|
7
|
+
import "../p/p.js";
|
|
8
|
+
import "../h/h.js";
|
|
9
|
+
import "../img/img.js";
|
|
10
|
+
import "../link/link.js";
|
|
11
|
+
type Slot = "product-name" | "title" | "description" | "caption" | "footer" | "media";
|
|
12
|
+
/**
|
|
13
|
+
* The product hero: the band that opens a product page, with the product's
|
|
14
|
+
* name, the promise, the store's live price and the buy button, and the
|
|
15
|
+
* product's picture beside them. Until 4.0 it was bd-header, which read as a
|
|
16
|
+
* banner landmark; it is not one, and there is one per page.
|
|
17
|
+
*
|
|
18
|
+
* <bd-product-hero product-id="ts_i" devices="5" subscription="1" cta-secondary-href="/plans">
|
|
19
|
+
* <span slot="product-name">Bitdefender Total Security</span>
|
|
20
|
+
* <bd-h slot="title" as="h1">Complete real-time data protection</bd-h>
|
|
21
|
+
* <bd-p slot="description">Award-winning cybersecurity for all your devices.</bd-p>
|
|
22
|
+
* <span slot="cta">Buy now</span>
|
|
23
|
+
* <span slot="cta-secondary">View more plans</span>
|
|
24
|
+
* <span slot="caption">Protection for 1 account & 5 PCs, Macs, tablets, or smartphones.</span>
|
|
25
|
+
* <span slot="footer">By purchasing you agree to our <bd-link href="/terms" inline underline>Terms of Service</bd-link>.</span>
|
|
26
|
+
* <bd-img slot="media" src="/hero.jpg" alt="" fetchpriority="high"></bd-img>
|
|
27
|
+
* </bd-product-hero>
|
|
28
|
+
*
|
|
29
|
+
* THE CONTROLS STAY HERE, AND ONLY THEIR WORDS ARE THE PAGE'S (plan, hard
|
|
30
|
+
* case 5). The buy button is a bd-button buy-link inside the
|
|
31
|
+
* <bd-context><bd-product><bd-option> this shadow root renders, and the store
|
|
32
|
+
* (@repobit/dex-store-elements) gives its anchor an href from that option.
|
|
33
|
+
* The store finds the anchor because this host reflects `shadow` and the
|
|
34
|
+
* button marks itself data-bd-watch-shadow -- the two halves of its
|
|
35
|
+
* '[shadow], [data-bd-watch-shadow]' opt-in -- and the anchor's context
|
|
36
|
+
* request bubbles up to the bd-option around it. A buy button the page wrote
|
|
37
|
+
* itself was rejected: its context request could run before this render put
|
|
38
|
+
* the bd-option above it, and the store has no ContextRoot to answer a late
|
|
39
|
+
* provider, so it would ship with no href and nothing would say so. So the
|
|
40
|
+
* `cta` slot is forwarded into the button -- <slot name="cta"> as the button's
|
|
41
|
+
* own content -- and names it through the flat tree, and `cta-secondary` does
|
|
42
|
+
* the same for the second button.
|
|
43
|
+
*
|
|
44
|
+
* The second button is drawn only while cta-secondary-href is set. A
|
|
45
|
+
* bd-button with no href is a <button>, which takes focus and does nothing
|
|
46
|
+
* when pressed; 3.x's was an <a> with no href, which did not even take focus.
|
|
47
|
+
* A control with nowhere to go is not drawn. The buy button needs no href:
|
|
48
|
+
* the store gives it one.
|
|
49
|
+
*
|
|
50
|
+
* Every part's box is hidden while its slot is empty, and nothing has a
|
|
51
|
+
* fallback: 3.x's "Buy now", "View more plans" and its disclaimer line are
|
|
52
|
+
* the page's words now. The picture's column, with the scrim and the brand
|
|
53
|
+
* signature over it, is drawn only while `media` has content.
|
|
54
|
+
*/
|
|
55
|
+
export declare class BdProductHero extends LitElement {
|
|
56
|
+
static styles: import("lit").CSSResult[];
|
|
57
|
+
productId: string;
|
|
58
|
+
devices: string;
|
|
59
|
+
subscription: string;
|
|
60
|
+
shadow: boolean;
|
|
61
|
+
dataLayerEvent: string;
|
|
62
|
+
ctaSecondaryHref: string;
|
|
63
|
+
_slots: SlotController<Slot>;
|
|
64
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
"bd-product-hero": BdProductHero;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../badge/badge.js";import"../button/button.js";import"../img/img.js";import"../icons/brand-signature.js";import i from"./product-hero.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends a{constructor(...e){super(...e),this.productId=`vsb`,this.devices=`5`,this.subscription=`1`,this.shadow=!0,this.dataLayerEvent=`info`,this.ctaSecondaryHref=``,this._slots=new n(this,{slots:[`product-name`,`title`,`description`,`caption`,`footer`,`media`]})}static{this.styles=[r,i]}render(){let e=e=>this._slots.has(e);return o`
|
|
2
|
+
<bd-context ignore-events-parent>
|
|
3
|
+
<bd-product product-id="${this.productId}">
|
|
4
|
+
<bd-option
|
|
5
|
+
devices="${this.devices}"
|
|
6
|
+
subscription="${this.subscription}"
|
|
7
|
+
data-layer-event="${this.dataLayerEvent}">
|
|
8
|
+
|
|
9
|
+
<div class="bd-ensemble bd-container">
|
|
10
|
+
<div class="bd-header-left">
|
|
11
|
+
<!-- ONE HEADING HERE, AND THE KICKER IS NOT IT.
|
|
12
|
+
|
|
13
|
+
3.x before 2026-09-17 drew the product name as="h2" and the
|
|
14
|
+
headline as="h4", in that order: a kicker announced as a
|
|
15
|
+
rung of the outline, above the actual promise two levels
|
|
16
|
+
below it. The headline is the page's main heading, so the
|
|
17
|
+
page writes it into "title" as <bd-h as="h1">; this hero is
|
|
18
|
+
the product hero and there is one per page, which is the
|
|
19
|
+
condition an h1 needs. Its level is the page's to pick -- the
|
|
20
|
+
SEO team sets the outline on this section -- and its size is
|
|
21
|
+
not: the title slot draws it at heading-h1, 48/700/1.25,
|
|
22
|
+
Header / v2's value-prop, at whatever level the page writes
|
|
23
|
+
(product-hero.css.ts). That is what 3.x's pinned
|
|
24
|
+
visual-level="h1" did beside heading-level; the hooks do it
|
|
25
|
+
now, so neither attribute is left.
|
|
26
|
+
|
|
27
|
+
The product name is a kicker -- a label naming the product,
|
|
28
|
+
and in Figma a plain text layer called product-name rather
|
|
29
|
+
than a heading. So its slot takes words, not a bd-h, and the
|
|
30
|
+
box around it is a <p>, out of the heading list entirely,
|
|
31
|
+
set in the heading-h4 ROLE, which is where a role on a
|
|
32
|
+
non-heading element belongs. A kicker in the outline is
|
|
33
|
+
worse than none: it adds a rung nobody navigates by and
|
|
34
|
+
pushes the real heading down. Words also take markup, so the
|
|
35
|
+
two-line name the design draws ("Bitdefender" over "Ultimate
|
|
36
|
+
Security") is the page's <br>, which one string attribute
|
|
37
|
+
could not hold.
|
|
38
|
+
|
|
39
|
+
THE ALTERNATIVE, and why not. The other accessible pattern
|
|
40
|
+
puts both inside the h1 --
|
|
41
|
+
<h1><span>Bitdefender Ultimate Security</span><span>Your
|
|
42
|
+
Ultimate Digital Protection</span></h1> -- which names the
|
|
43
|
+
heading with the product as well as the promise. Rejected:
|
|
44
|
+
every heading list, skip link and rotor entry would read the
|
|
45
|
+
whole run, and the h1 would be a run of two slots rather than
|
|
46
|
+
the page's one bd-h. The product is named by the document
|
|
47
|
+
title, the price block and the buy button; the heading does
|
|
48
|
+
not have to carry it. -->
|
|
49
|
+
<p class="bd-product-name" ?hidden=${!e(`product-name`)}><slot name="product-name"></slot></p>
|
|
50
|
+
<div class="bd-value-prop" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
51
|
+
<div class="bd-description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
52
|
+
|
|
53
|
+
<div class="bd-price-zone-top" data-store-hide="!it.option.price.discounted">
|
|
54
|
+
<!-- font-weight="medium", the atom's own attribute rather than a
|
|
55
|
+
declaration out in the stylesheet. Header / v2 sets the struck
|
|
56
|
+
price at 16 Medium, and a weight on a bd-p HOST is inert --
|
|
57
|
+
the atom sets all five type axes on its inner element -- so
|
|
58
|
+
the only way in from outside is the attribute. -->
|
|
59
|
+
<bd-p appearance="regular" font-weight="medium" class="original-price">
|
|
60
|
+
<s data-store-render data-store-price="full"></s>
|
|
61
|
+
</bd-p>
|
|
62
|
+
<!-- Header / v2's Badge at variant=success appearance=fill
|
|
63
|
+
size=lg: 8/12 padding, the control-label size, a full
|
|
64
|
+
radius. The store writes the percentage into it. -->
|
|
65
|
+
<bd-badge
|
|
66
|
+
variant="success"
|
|
67
|
+
appearance="fill"
|
|
68
|
+
size="lg"
|
|
69
|
+
class="bd-discount"
|
|
70
|
+
data-store-render
|
|
71
|
+
data-store-discount="percentage"
|
|
72
|
+
></bd-badge>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<span class="bd-price-zone-final" data-store-render data-store-price="discounted||full"></span>
|
|
76
|
+
|
|
77
|
+
<div class="bd-cta">
|
|
78
|
+
<!-- No size: the button's responsive default, lg from 992px and
|
|
79
|
+
md below it. Header / v2 draws both CTAs at 16/32 padding
|
|
80
|
+
with an 18px label in an 8px-radius box, which is
|
|
81
|
+
--button-large-* exactly.
|
|
82
|
+
|
|
83
|
+
THE WORDS ARE THE PAGE'S, THE BUTTONS ARE NOT. Each slot is
|
|
84
|
+
forwarded as the button's own content, so the page's words
|
|
85
|
+
are the button's label and its accessible name, read
|
|
86
|
+
through the flat tree; there is no label attribute to
|
|
87
|
+
duplicate them. The buy button stays here, inside
|
|
88
|
+
bd-option, where the store finds its anchor (see the class
|
|
89
|
+
comment). The store fills its href on a real page and in
|
|
90
|
+
Storybook, though not in the Vitest story tests, which run
|
|
91
|
+
without it, and never touches the second button.
|
|
92
|
+
|
|
93
|
+
The second button is drawn only with cta-secondary-href:
|
|
94
|
+
hidden, its slot still renders, so words the page wrote
|
|
95
|
+
before the href are assigned and wait for it. -->
|
|
96
|
+
<bd-button appearance="accent" part="buy-button" buy-link><slot name="cta"></slot></bd-button>
|
|
97
|
+
<bd-button
|
|
98
|
+
appearance="tertiary"
|
|
99
|
+
href="${this.ctaSecondaryHref}"
|
|
100
|
+
?hidden=${!this.ctaSecondaryHref}><slot name="cta-secondary"></slot></bd-button>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<p class="bd-caption" ?hidden=${!e(`caption`)}><slot name="caption"></slot></p>
|
|
104
|
+
<p class="bd-small-print" ?hidden=${!e(`footer`)}><slot name="footer"></slot></p>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<!-- The scrim is a blue-950 band and the mark is white: both are
|
|
108
|
+
only right over a picture. Over an empty column they would be a
|
|
109
|
+
wash of colour and a white mark on the page's white, so the
|
|
110
|
+
whole column is drawn only while "media" has content. -->
|
|
111
|
+
<div class="bd-header-right" ?hidden=${!e(`media`)}>
|
|
112
|
+
<div class="bd-header-image-wrapper">
|
|
113
|
+
<slot name="media"></slot>
|
|
114
|
+
<div class="bd-header-scrim" aria-hidden="true"></div>
|
|
115
|
+
<bd-icon name="brand-signature" class="bd-header-signature"></bd-icon>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</bd-option>
|
|
120
|
+
</bd-product>
|
|
121
|
+
</bd-context>
|
|
122
|
+
`}};t([s({type:String,attribute:`product-id`})],c.prototype,`productId`,void 0),t([s({type:String})],c.prototype,`devices`,void 0),t([s({type:String})],c.prototype,`subscription`,void 0),t([s({type:Boolean,reflect:!0})],c.prototype,`shadow`,void 0),t([s({type:String,attribute:`data-layer-event`})],c.prototype,`dataLayerEvent`,void 0),t([s({type:String,attribute:`cta-secondary-href`})],c.prototype,`ctaSecondaryHref`,void 0),c=t([e(`bd-product-hero`)],c);export{c as BdProductHero};
|
|
123
|
+
//# sourceMappingURL=product-hero.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-hero.js","names":["productHeroCSS","_decorate","__decorate","product_hero_css_default","BdProductHero","LitElement","_args","SlotController","ensembleCSS","has","name","property","defineElement"],"sources":["../../../../src/components/product-hero/product-hero.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\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 \"#components/button/button.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/icons/brand-signature.ts\";\nimport \"#components/p/p.ts\";\n/* The atoms the page writes into the hero's slots. The hero renders none of\n them now, but 3.x's module registered bd-h and bd-p, and a page importing\n only this module still gets every atom its slots are written with. */\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/link/link.ts\";\nimport productHeroCSS from \"./product-hero.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ntype Slot = \"product-name\" | \"title\" | \"description\" | \"caption\" | \"footer\" | \"media\";\n\n/**\n * The product hero: the band that opens a product page, with the product's\n * name, the promise, the store's live price and the buy button, and the\n * product's picture beside them. Until 4.0 it was bd-header, which read as a\n * banner landmark; it is not one, and there is one per page.\n *\n * <bd-product-hero product-id=\"ts_i\" devices=\"5\" subscription=\"1\" cta-secondary-href=\"/plans\">\n * <span slot=\"product-name\">Bitdefender Total Security</span>\n * <bd-h slot=\"title\" as=\"h1\">Complete real-time data protection</bd-h>\n * <bd-p slot=\"description\">Award-winning cybersecurity for all your devices.</bd-p>\n * <span slot=\"cta\">Buy now</span>\n * <span slot=\"cta-secondary\">View more plans</span>\n * <span slot=\"caption\">Protection for 1 account & 5 PCs, Macs, tablets, or smartphones.</span>\n * <span slot=\"footer\">By purchasing you agree to our <bd-link href=\"/terms\" inline underline>Terms of Service</bd-link>.</span>\n * <bd-img slot=\"media\" src=\"/hero.jpg\" alt=\"\" fetchpriority=\"high\"></bd-img>\n * </bd-product-hero>\n *\n * THE CONTROLS STAY HERE, AND ONLY THEIR WORDS ARE THE PAGE'S (plan, hard\n * case 5). The buy button is a bd-button buy-link inside the\n * <bd-context><bd-product><bd-option> this shadow root renders, and the store\n * (@repobit/dex-store-elements) gives its anchor an href from that option.\n * The store finds the anchor because this host reflects `shadow` and the\n * button marks itself data-bd-watch-shadow -- the two halves of its\n * '[shadow], [data-bd-watch-shadow]' opt-in -- and the anchor's context\n * request bubbles up to the bd-option around it. A buy button the page wrote\n * itself was rejected: its context request could run before this render put\n * the bd-option above it, and the store has no ContextRoot to answer a late\n * provider, so it would ship with no href and nothing would say so. So the\n * `cta` slot is forwarded into the button -- <slot name=\"cta\"> as the button's\n * own content -- and names it through the flat tree, and `cta-secondary` does\n * the same for the second button.\n *\n * The second button is drawn only while cta-secondary-href is set. A\n * bd-button with no href is a <button>, which takes focus and does nothing\n * when pressed; 3.x's was an <a> with no href, which did not even take focus.\n * A control with nowhere to go is not drawn. The buy button needs no href:\n * the store gives it one.\n *\n * Every part's box is hidden while its slot is empty, and nothing has a\n * fallback: 3.x's \"Buy now\", \"View more plans\" and its disclaimer line are\n * the page's words now. The picture's column, with the scrim and the brand\n * signature over it, is drawn only while `media` has content.\n */\n@defineElement(\"bd-product-hero\")\nexport class BdProductHero extends LitElement {\n static styles = [ensembleCSS, productHeroCSS];\n\n /* `product-id`, the spelling this component documents and the only one\n anything writes. Lit derives an observed attribute by lowercasing the\n property name rather than dash-casing it, so 3.x's undeclared `productId`\n listened for `productid` while every story wrote `product-id`: measured\n on Components/Header \"Different Product IDs\", all three headers handed\n the default \"vsb\" to <bd-product> whatever their markup asked for. */\n @property({ type: String, attribute: \"product-id\" })\n productId = \"vsb\";\n @property({ type: String })\n devices = \"5\";\n @property({ type: String })\n subscription = \"1\";\n /* NOT styling. It is the store's opt-in for walking a shadow root:\n @repobit/dex-store-elements' renders/index.ts selects shadow hosts with\n SHADOW_HOST_SELECTOR = '[shadow], [data-bd-watch-shadow]', so a host that\n does not reflect this attribute never has its shadow tree searched for\n [data-store-render] or [data-store-hide] nodes -- and every price zone\n here is inside the shadow root. Reflected and defaulting to true for that\n reason, and load-bearing: drop it and the prices silently stop rendering\n on a real page. The buy button opts itself in as well\n (data-bd-watch-shadow), because its anchor is one shadow root further\n down. */\n @property({ type: Boolean, reflect: true })\n shadow = true;\n /* The analytics event bd-option is handed. 3.x declared no attribute, so\n Lit observed `datalayerevent` and the `data-layer-event` every story\n wrote was inert (N5). */\n @property({ type: String, attribute: \"data-layer-event\" })\n dataLayerEvent = \"info\";\n /* Where the second button goes, and the switch that draws it. No default:\n a URL is content this package cannot invent. */\n @property({ type: String, attribute: \"cta-secondary-href\" })\n ctaSecondaryHref = \"\";\n\n /* The price zones are store-driven -- data-store-render with\n data-store-price / data-store-discount -- and the store computes the\n numbers from product-id, devices and subscription; it never reads a host\n property. 3.x's fullPrice, discount and finalPrice did nothing and went\n in 3.x; the price belongs to the store. */\n\n _slots = new SlotController<Slot>(this, {\n slots: [\"product-name\", \"title\", \"description\", \"caption\", \"footer\", \"media\"]\n });\n\n render() {\n const has = (name: Slot) => this._slots.has(name);\n return html`\n <bd-context ignore-events-parent>\n <bd-product product-id=\"${this.productId}\">\n <bd-option\n devices=\"${this.devices}\"\n subscription=\"${this.subscription}\"\n data-layer-event=\"${this.dataLayerEvent}\">\n\n <div class=\"bd-ensemble bd-container\">\n <div class=\"bd-header-left\">\n <!-- ONE HEADING HERE, AND THE KICKER IS NOT IT.\n\n 3.x before 2026-09-17 drew the product name as=\"h2\" and the\n headline as=\"h4\", in that order: a kicker announced as a\n rung of the outline, above the actual promise two levels\n below it. The headline is the page's main heading, so the\n page writes it into \"title\" as <bd-h as=\"h1\">; this hero is\n the product hero and there is one per page, which is the\n condition an h1 needs. Its level is the page's to pick -- the\n SEO team sets the outline on this section -- and its size is\n not: the title slot draws it at heading-h1, 48/700/1.25,\n Header / v2's value-prop, at whatever level the page writes\n (product-hero.css.ts). That is what 3.x's pinned\n visual-level=\"h1\" did beside heading-level; the hooks do it\n now, so neither attribute is left.\n\n The product name is a kicker -- a label naming the product,\n and in Figma a plain text layer called product-name rather\n than a heading. So its slot takes words, not a bd-h, and the\n box around it is a <p>, out of the heading list entirely,\n set in the heading-h4 ROLE, which is where a role on a\n non-heading element belongs. A kicker in the outline is\n worse than none: it adds a rung nobody navigates by and\n pushes the real heading down. Words also take markup, so the\n two-line name the design draws (\"Bitdefender\" over \"Ultimate\n Security\") is the page's <br>, which one string attribute\n could not hold.\n\n THE ALTERNATIVE, and why not. The other accessible pattern\n puts both inside the h1 --\n <h1><span>Bitdefender Ultimate Security</span><span>Your\n Ultimate Digital Protection</span></h1> -- which names the\n heading with the product as well as the promise. Rejected:\n every heading list, skip link and rotor entry would read the\n whole run, and the h1 would be a run of two slots rather than\n the page's one bd-h. The product is named by the document\n title, the price block and the buy button; the heading does\n not have to carry it. -->\n <p class=\"bd-product-name\" ?hidden=${!has(\"product-name\")}><slot name=\"product-name\"></slot></p>\n <div class=\"bd-value-prop\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n\n <div class=\"bd-price-zone-top\" data-store-hide=\"!it.option.price.discounted\">\n <!-- font-weight=\"medium\", the atom's own attribute rather than a\n declaration out in the stylesheet. Header / v2 sets the struck\n price at 16 Medium, and a weight on a bd-p HOST is inert --\n the atom sets all five type axes on its inner element -- so\n the only way in from outside is the attribute. -->\n <bd-p appearance=\"regular\" font-weight=\"medium\" class=\"original-price\">\n <s data-store-render data-store-price=\"full\"></s>\n </bd-p>\n <!-- Header / v2's Badge at variant=success appearance=fill\n size=lg: 8/12 padding, the control-label size, a full\n radius. The store writes the percentage into it. -->\n <bd-badge\n variant=\"success\"\n appearance=\"fill\"\n size=\"lg\"\n class=\"bd-discount\"\n data-store-render\n data-store-discount=\"percentage\"\n ></bd-badge>\n </div>\n\n <span class=\"bd-price-zone-final\" data-store-render data-store-price=\"discounted||full\"></span>\n\n <div class=\"bd-cta\">\n <!-- No size: the button's responsive default, lg from 992px and\n md below it. Header / v2 draws both CTAs at 16/32 padding\n with an 18px label in an 8px-radius box, which is\n --button-large-* exactly.\n\n THE WORDS ARE THE PAGE'S, THE BUTTONS ARE NOT. Each slot is\n forwarded as the button's own content, so the page's words\n are the button's label and its accessible name, read\n through the flat tree; there is no label attribute to\n duplicate them. The buy button stays here, inside\n bd-option, where the store finds its anchor (see the class\n comment). The store fills its href on a real page and in\n Storybook, though not in the Vitest story tests, which run\n without it, and never touches the second button.\n\n The second button is drawn only with cta-secondary-href:\n hidden, its slot still renders, so words the page wrote\n before the href are assigned and wait for it. -->\n <bd-button appearance=\"accent\" part=\"buy-button\" buy-link><slot name=\"cta\"></slot></bd-button>\n <bd-button\n appearance=\"tertiary\"\n href=\"${this.ctaSecondaryHref}\"\n ?hidden=${!this.ctaSecondaryHref}><slot name=\"cta-secondary\"></slot></bd-button>\n </div>\n\n <p class=\"bd-caption\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n <p class=\"bd-small-print\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></p>\n </div>\n\n <!-- The scrim is a blue-950 band and the mark is white: both are\n only right over a picture. Over an empty column they would be a\n wash of colour and a white mark on the page's white, so the\n whole column is drawn only while \"media\" has content. -->\n <div class=\"bd-header-right\" ?hidden=${!has(\"media\")}>\n <div class=\"bd-header-image-wrapper\">\n <slot name=\"media\"></slot>\n <div class=\"bd-header-scrim\" aria-hidden=\"true\"></div>\n <bd-icon name=\"brand-signature\" class=\"bd-header-signature\"></bd-icon>\n </div>\n </div>\n </div>\n </bd-option>\n </bd-product>\n </bd-context>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-product-hero\": BdProductHero;\n }\n}\n"],"mappings":"A,okBAiEO,IAAMI,EAAN,cAA4BC,CAAW,C,8BAUhC,KAAA,UAAA,MAEF,KAAA,QAAA,IAEK,KAAA,aAAA,IAYN,KAAA,OAAA,GAKQ,KAAA,eAAA,OAIE,KAAA,iBAAA,GAQV,KAAA,OAAA,IAAIE,EAAqB,KAAM,CACtC,MAAO,CAAC,eAAgB,QAAS,cAAe,UAAW,SAAU,OAAO,CAC9E,CAAC,C,QA5Ce,KAAA,OAAA,CAACC,EAAaR,CAAc,C,CA8C5C,QAAS,CACP,IAAMS,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAChD,MAAO,EAAI;;kCAEmB,KAAK,UAAU;;qBAE5B,KAAK,QAAQ;0BACR,KAAK,aAAa;8BACd,KAAK,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA0CD,CAACD,EAAI,cAAc,EAAE;iDACrB,CAACA,EAAI,OAAO,EAAE;kDACb,CAACA,EAAI,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgD9C,KAAK,iBAAiB;0BACpB,CAAC,KAAK,iBAAiB;;;4CAGL,CAACA,EAAI,SAAS,EAAE;gDACZ,CAACA,EAAI,QAAQ,EAAE;;;;;;;iDAOd,CAACA,EAAI,OAAO,EAAE;;;;;;;;;;;KAY7D,CACF,EAnKGR,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAP,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDH,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,eAAA,IAAA,EAAA,EAYzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,SAAA,IAAA,EAAA,EAKzCH,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,UAAW,kBAAmB,CAAC,CAAA,EAAAP,EAAA,UAAA,iBAAA,IAAA,EAAA,EAIxDH,EAAA,CAAAU,EAAS,CAAE,KAAM,OAAQ,UAAW,oBAAqB,CAAC,CAAA,EAAAP,EAAA,UAAA,mBAAA,IAAA,EAAA,EAnC5D,EAAAH,EAAA,CAAAW,EAAc,iBAAiB,CAAA,EAAAR,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.upsell [hidden]{display:none}.upsell{align-items:center;gap:var(--spacing-16);padding:var(--card-padding-compact);border-radius:var(--card-radius);background:var(--color-surface-subtle);text-align:center;flex-direction:column;display:flex}.copy{gap:var(--spacing-4);flex-direction:column;min-width:0;display:flex}.headline{font-family:var(--typography-fontFamily-sans-condensed);font-size:var(--typography-fontSize-base);font-weight:var(--typography-fontWeight-bold);line-height:var(--typography-lineHeight-normal);color:var(--color-text-primary);margin:0}.description{font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);color:var(--color-text-primary);margin:0}.actions{align-items:center;gap:var(--spacing-12);flex-direction:column;display:flex}.cta{box-sizing:border-box;min-height:var(--dimension-36);padding:var(--spacing-8) var(--spacing-16);border:var(--border-width-1) solid var(--color-action-primary);border-radius:var(--shape-radius-sm);background:var(--color-action-primary);cursor:pointer;font-family:var(--typography-control-label-default-fontFamily);font-size:var(--typography-control-label-default-fontSize);font-weight:var(--typography-control-label-default-fontWeight);line-height:var(--typography-control-label-default-lineHeight);letter-spacing:var(--typography-letterSpacing-normal);color:var(--color-brand-on-fill);text-align:center;transition:background-color var(--transition-duration-normal) var(--transition-easing-smooth), border-color var(--transition-duration-normal) var(--transition-easing-smooth);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.cta:hover{background:var(--color-action-primary-hover);border-color:var(--color-action-primary-hover)}.cta:active{background:var(--color-action-primary-active);border-color:var(--color-action-primary-active)}.cta:focus-visible{outline:var(--focus-outline-traditional);outline-offset:var(--focus-outline-offset)}@media (prefers-reduced-motion:reduce){.cta{transition:none}}.social{font-family:var(--typography-caption-default-fontFamily);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-caption-default-fontWeight);line-height:var(--typography-caption-default-lineHeight);color:var(--color-text-muted);text-align:center;margin:0}@container (width>=576px){.upsell{text-align:start;flex-direction:row}.actions{flex:none}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=product-upsell.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-upsell.css.js","names":["product_upsell_css_default"],"sources":["../../../../src/components/product-upsell/product-upsell.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The upsell as the shipped blog draws it (www-blog-csg's blocks/csg/promo,\n .promo-card): the subtle ground at the card's corner and its compact\n inset, the brand's action fill on the link. Figma's csg_blog does not\n draw it, so this is the look the v4 blog's bd-blog-product-upsell had, read from\n the package's roles where the blog read --blog-*. */\nexport default css`\n /* The upsell lays itself out by its own width, so it is a size container;\n it takes its column's whole width (shared/fill-width.css.ts), which a\n container would not ask for itself. */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .upsell [hidden] {\n display: none;\n }\n\n .upsell {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-16);\n padding: var(--card-padding-compact);\n border-radius: var(--card-radius);\n background: var(--color-surface-subtle);\n text-align: center;\n }\n\n .copy {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n min-width: 0;\n }\n\n /* The line that asks: words, not a heading (see product-upsell.ts), in\n 3.x's 16 bold condensed. */\n .headline {\n margin: 0;\n font-family: var(--typography-fontFamily-sans-condensed);\n font-size: var(--typography-fontSize-base); /* no role: 3.x's 16 bold condensed line, which no role sets in bold */\n font-weight: var(--typography-fontWeight-bold); /* no role: as above */\n line-height: var(--typography-lineHeight-normal); /* no role: as above */\n color: var(--color-text-primary);\n }\n\n .description {\n margin: 0;\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n }\n\n .actions {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-12);\n }\n\n /* The link, drawn as the brand's action fill in its states with the\n brand's own ink on it. */\n .cta {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-height: var(--dimension-36);\n padding: var(--spacing-8) var(--spacing-16);\n border: var(--border-width-1) solid var(--color-action-primary);\n border-radius: var(--shape-radius-sm);\n background: var(--color-action-primary);\n cursor: pointer;\n font-family: var(--typography-control-label-default-fontFamily);\n font-size: var(--typography-control-label-default-fontSize);\n font-weight: var(--typography-control-label-default-fontWeight);\n line-height: var(--typography-control-label-default-lineHeight);\n letter-spacing: var(--typography-letterSpacing-normal);\n color: var(--color-brand-on-fill);\n text-align: center;\n text-decoration: none;\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth),\n border-color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n .cta:hover {\n background: var(--color-action-primary-hover);\n border-color: var(--color-action-primary-hover);\n }\n\n .cta:active {\n background: var(--color-action-primary-active);\n border-color: var(--color-action-primary-active);\n }\n\n .cta:focus-visible {\n outline: var(--focus-outline-traditional);\n outline-offset: var(--focus-outline-offset);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .cta {\n transition: none;\n }\n }\n\n .social {\n margin: 0;\n font-family: var(--typography-caption-default-fontFamily);\n font-size: var(--typography-caption-default-fontSize);\n font-weight: var(--typography-caption-default-fontWeight);\n line-height: var(--typography-caption-default-lineHeight);\n color: var(--color-text-muted);\n text-align: center;\n }\n\n /* The copy beside the link once the upsell is sm wide. 3.x switched at\n the lg screen; the upsell asks its own width now, so it is a row\n wherever it has room for one, the article's hero at 1280 included. */\n @container ${unsafeCSS(above(\"sm\"))} {\n .upsell {\n flex-direction: row;\n text-align: start;\n }\n\n .actions {\n flex: none;\n }\n }\n`;\n"],"mappings":"A,gGASA,IAAAA,EAAe,CAAG,6vF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
type Part = "title" | "description" | "cta" | "caption";
|
|
5
|
+
/**
|
|
6
|
+
* In-article product upsell: a line that asks, a line that answers, the
|
|
7
|
+
* product's link and the social proof under it.
|
|
8
|
+
*
|
|
9
|
+
* <bd-product-upsell cta-href="/total-security">
|
|
10
|
+
* <span slot="title">Want stronger protection against scams and online fraud?</span>
|
|
11
|
+
* <span slot="description">Bitdefender helps block phishing, malicious links, and identity threats across your devices. Try it free for 30 days.</span>
|
|
12
|
+
* <span slot="cta">Get Bitdefender Total Security</span>
|
|
13
|
+
* <span slot="caption">★ 4.8 · Trusted by millions worldwide</span>
|
|
14
|
+
* </bd-product-upsell>
|
|
15
|
+
*
|
|
16
|
+
* It was the blog's bd-blog-product-upsell until the blog's components
|
|
17
|
+
* became the package's own (DEX-29414); its markup and slots are that
|
|
18
|
+
* element's. Every word is the page's: 3.x's headline, description,
|
|
19
|
+
* social-proof and cta-label, each with an English default, are slots, and
|
|
20
|
+
* `cta-href` has no default.
|
|
21
|
+
*
|
|
22
|
+
* THE TITLE IS TEXT, NOT A HEADING. 3.x drew its headline as a <p>, and the
|
|
23
|
+
* article places the upsell inside its header, between the abstract and the
|
|
24
|
+
* featured image (bd-article's `promo`), where a heading would enter the
|
|
25
|
+
* outline before the article's first h2. So the title is words the upsell
|
|
26
|
+
* draws in its own box, at 3.x's size, and the aside is named by them.
|
|
27
|
+
*
|
|
28
|
+
* THE LINK STAYS HERE, AND ONLY ITS WORDS ARE THE PAGE'S. Its look is the
|
|
29
|
+
* upsell's button, so the `cta` slot sits inside the upsell's own <a> and
|
|
30
|
+
* names it. A link with nowhere to go is not drawn: it shows only while
|
|
31
|
+
* `cta-href` is set and `cta` has words.
|
|
32
|
+
*
|
|
33
|
+
* The copy sits beside the link once the upsell is sm wide, and above it
|
|
34
|
+
* below that. Every part's box is hidden while its slot is empty, so a bare
|
|
35
|
+
* upsell draws no word of its own.
|
|
36
|
+
*/
|
|
37
|
+
export declare class BdProductUpsell extends LitElement {
|
|
38
|
+
static styles: import("lit").CSSResult[];
|
|
39
|
+
/** Where the product link goes. Without it the link is not drawn. */
|
|
40
|
+
ctaHref: string;
|
|
41
|
+
_slots: SlotController<Part>;
|
|
42
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
"bd-product-upsell": BdProductUpsell;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import r from"./product-upsell.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.ctaHref=``,this._slots=new n(this,{slots:[`title`,`description`,`cta`,`caption`]})}static{this.styles=[r]}render(){let e=e=>this._slots.has(e),t=!!this.ctaHref&&e(`cta`);return a`
|
|
2
|
+
<aside class="upsell" part="upsell" aria-labelledby=${e(`title`)?`title`:o}>
|
|
3
|
+
<div class="copy" part="copy" ?hidden=${!e(`title`)&&!e(`description`)}>
|
|
4
|
+
<p class="headline" id="title" part="headline" ?hidden=${!e(`title`)}><slot name="title"></slot></p>
|
|
5
|
+
<p class="description" part="description" ?hidden=${!e(`description`)}><slot name="description"></slot></p>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div class="actions" part="actions" ?hidden=${!t&&!e(`caption`)}>
|
|
9
|
+
<a class="cta" part="cta" href=${this.ctaHref||o} ?hidden=${!t}><slot name="cta"></slot></a>
|
|
10
|
+
<p class="social" part="social" ?hidden=${!e(`caption`)}><slot name="caption"></slot></p>
|
|
11
|
+
</div>
|
|
12
|
+
</aside>
|
|
13
|
+
`}};t([s({type:String,attribute:`cta-href`})],c.prototype,`ctaHref`,void 0),c=t([e(`bd-product-upsell`)],c);export{c as BdProductUpsell};
|
|
14
|
+
//# sourceMappingURL=product-upsell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-upsell.js","names":["productUpsellCSS","_decorate","__decorate","product_upsell_css_default","BdProductUpsell","LitElement","_args","SlotController","has","part","cta","nothing","property","defineElement"],"sources":["../../../../src/components/product-upsell/product-upsell.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\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 productUpsellCSS from \"./product-upsell.css.ts\";\n\ntype Part = \"title\" | \"description\" | \"cta\" | \"caption\";\n\n/**\n * In-article product upsell: a line that asks, a line that answers, the\n * product's link and the social proof under it.\n *\n * <bd-product-upsell cta-href=\"/total-security\">\n * <span slot=\"title\">Want stronger protection against scams and online fraud?</span>\n * <span slot=\"description\">Bitdefender helps block phishing, malicious links, and identity threats across your devices. Try it free for 30 days.</span>\n * <span slot=\"cta\">Get Bitdefender Total Security</span>\n * <span slot=\"caption\">★ 4.8 · Trusted by millions worldwide</span>\n * </bd-product-upsell>\n *\n * It was the blog's bd-blog-product-upsell until the blog's components\n * became the package's own (DEX-29414); its markup and slots are that\n * element's. Every word is the page's: 3.x's headline, description,\n * social-proof and cta-label, each with an English default, are slots, and\n * `cta-href` has no default.\n *\n * THE TITLE IS TEXT, NOT A HEADING. 3.x drew its headline as a <p>, and the\n * article places the upsell inside its header, between the abstract and the\n * featured image (bd-article's `promo`), where a heading would enter the\n * outline before the article's first h2. So the title is words the upsell\n * draws in its own box, at 3.x's size, and the aside is named by them.\n *\n * THE LINK STAYS HERE, AND ONLY ITS WORDS ARE THE PAGE'S. Its look is the\n * upsell's button, so the `cta` slot sits inside the upsell's own <a> and\n * names it. A link with nowhere to go is not drawn: it shows only while\n * `cta-href` is set and `cta` has words.\n *\n * The copy sits beside the link once the upsell is sm wide, and above it\n * below that. Every part's box is hidden while its slot is empty, so a bare\n * upsell draws no word of its own.\n */\n@defineElement(\"bd-product-upsell\")\nexport class BdProductUpsell extends LitElement {\n static styles = [productUpsellCSS];\n\n /** Where the product link goes. Without it the link is not drawn. */\n @property({ type: String, attribute: \"cta-href\" })\n ctaHref = \"\";\n\n _slots = new SlotController<Part>(this, { slots: [\"title\", \"description\", \"cta\", \"caption\"] });\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n const cta = !!this.ctaHref && has(\"cta\");\n return html`\n <aside class=\"upsell\" part=\"upsell\" aria-labelledby=${has(\"title\") ? \"title\" : nothing}>\n <div class=\"copy\" part=\"copy\" ?hidden=${!has(\"title\") && !has(\"description\")}>\n <p class=\"headline\" id=\"title\" part=\"headline\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></p>\n <p class=\"description\" part=\"description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></p>\n </div>\n\n <div class=\"actions\" part=\"actions\" ?hidden=${!cta && !has(\"caption\")}>\n <a class=\"cta\" part=\"cta\" href=${this.ctaHref || nothing} ?hidden=${!cta}><slot name=\"cta\"></slot></a>\n <p class=\"social\" part=\"social\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n </div>\n </aside>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-product-upsell\": BdProductUpsell;\n }\n}\n"],"mappings":"A,+WA2CO,IAAMI,EAAN,cAA8BC,CAAW,C,8BAKpC,KAAA,QAAA,GAED,KAAA,OAAA,IAAIE,EAAqB,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,MAAO,SAAS,CAAE,CAAC,C,QAN7E,KAAA,OAAA,CAACP,CAAgB,C,CAQjC,QAAS,CACP,IAAMQ,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAM,CAAC,CAAC,KAAK,SAAWF,EAAI,KAAK,EACvC,MAAO,EAAI;4DAC6CA,EAAI,OAAO,EAAI,QAAUG,EAAQ;gDAC7C,CAACH,EAAI,OAAO,GAAK,CAACA,EAAI,aAAa,EAAE;mEAClB,CAACA,EAAI,OAAO,EAAE;8DACnB,CAACA,EAAI,aAAa,EAAE;;;sDAG5B,CAACE,GAAO,CAACF,EAAI,SAAS,EAAE;2CACnC,KAAK,SAAWG,EAAQ,WAAW,CAACD,EAAI;oDAC/B,CAACF,EAAI,SAAS,EAAE;;;KAIlE,CACF,EAtBGP,EAAA,CAAAW,EAAS,CAAE,KAAM,OAAQ,UAAW,UAAW,CAAC,CAAA,EAAAR,EAAA,UAAA,UAAA,IAAA,EAAA,EALlD,EAAAH,EAAA,CAAAY,EAAc,mBAAmB,CAAA,EAAAT,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{--bd-progress-fill:var(--status-info-accent);display:block}.track{width:100%;height:var(--spacing-8);appearance:none;background:var(--color-surface-muted);border-radius:var(--radius-full);border:none;display:block;overflow:clip}.track::-webkit-progress-bar{background:0 0}.track::-webkit-progress-value{background:var(--bd-progress-fill);border-radius:var(--radius-full);transition:inline-size var(--transition-duration-slow) var(--transition-easing-smooth)}.track::-moz-progress-bar{background:var(--bd-progress-fill);border-radius:var(--radius-full)}:host([variant=info]){--bd-progress-fill:var(--status-info-accent)}:host([variant=success]){--bd-progress-fill:var(--status-success-accent)}:host([variant=error]){--bd-progress-fill:var(--status-error-accent)}.label{margin-bottom:var(--spacing-4);font-family:var(--typography-caption-default-fontFamily);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-caption-default-fontWeight);line-height:var(--typography-caption-default-lineHeight);letter-spacing:var(--typography-caption-default-letterSpacing);color:var(--typography-caption-default-color);justify-content:space-between;display:flex}.label[hidden]{display:none}@media (prefers-reduced-motion:reduce){.track::-webkit-progress-value{transition:none}}@media (forced-colors:active){.track{forced-color-adjust:none;border:var(--border-width-1) solid CanvasText;background:canvas}.track::-webkit-progress-value{background:highlight}.track::-moz-progress-bar{background:highlight}}`;export{t as default,t as progressBarCSS};
|
|
2
|
+
//# sourceMappingURL=progress-bar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-bar.css.js","names":["progressBarCSS"],"sources":["../../../../src/components/progress-bar/progress-bar.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const progressBarCSS = css`\n :host {\n display: block;\n /* the fill's colour, which the variants below set: each engine's fill\n pseudo-element is written once, and reads it from here */\n --bd-progress-fill: var(--status-info-accent);\n }\n\n /* A native <progress>, fully restyled: appearance: none is what lets the\n track and the fill take these rules at all, and the border reset clears\n the UA's. The track is the element; the fill is ::-webkit-progress-value\n in Blink and WebKit and ::-moz-progress-bar in Gecko, each in a rule of\n its own -- a selector list naming both is invalid in every engine and is\n dropped whole. Same box as the two divs it replaced: full width, 8 high,\n a full round. */\n .track {\n display: block;\n width: 100%;\n height: var(--spacing-8);\n appearance: none;\n border: none;\n background: var(--color-surface-muted);\n border-radius: var(--radius-full);\n overflow: clip;\n }\n\n .track::-webkit-progress-bar {\n background: transparent;\n }\n\n /* Gecko sizes its fill in layout and ignores the transition, harmlessly. */\n .track::-webkit-progress-value {\n background: var(--bd-progress-fill);\n border-radius: var(--radius-full);\n transition: inline-size var(--transition-duration-slow) var(--transition-easing-smooth);\n }\n\n .track::-moz-progress-bar {\n background: var(--bd-progress-fill);\n border-radius: var(--radius-full);\n }\n\n /* The variants come from the shared status roles, so a progress bar and a\n bd-callout icon or a bd-badge dot of the same variant are the same colour by\n construction. They were not: this atom spelled all three out in palette\n steps that happened to match, so retinting --status-success-accent moved\n alert, badge and tag and left the bar green.\n\n Measured against the track the fill sits in, not the page: the bar is a\n graphic whose colour carries the meaning, so 1.4.11 wants 3:1 there.\n On the track the default blue is 3.52 and error red-600 is 4.23, but\n success at green-600 was only 2.49. green-700 — which is the step\n --status-success-accent names — is 3.69. */\n /* info has its own rule even though :host above already resolves to the same\n token, and the duplication is the point. It used to work by OMISSION --\n there was no info rule, so variant=\"info\" fell through to the default fill,\n which happened to be --status-info-accent. Nothing rendered wrong, and\n nothing ever would have caught it: Figma and the Code Connect template\n both offer info as a meaning, the manifest offered \"default\" instead, and the\n stories only ever exercised success and error, so the info path had never\n been rendered anywhere.\n .\n Two things stay separate now. The bare :host is what a bd-progress-bar with NO\n variant attribute looks like; this rule is what variant=\"info\" MEANS. They agree\n today. If somebody later changes the untoned default, info keeps its\n meaning instead of silently following it. */\n :host([variant='info']) { --bd-progress-fill: var(--status-info-accent); }\n :host([variant='success']) { --bd-progress-fill: var(--status-success-accent); }\n :host([variant='error']) { --bd-progress-fill: var(--status-error-accent); }\n\n /* The caption role, all five axes from the role rather than one from it and\n the rest from nowhere. This box holds the label and the percentage, so it\n owns their typography -- and it declared a family, a size and a colour and\n never declared a line-height, leaving IBM Plex Sans's own \"normal\" metric\n to decide. Measured before: 12px text in a 15px box, a leading nobody\n chose, and one that stops being 1.25 the moment the font falls back.\n\n The colour is the same value it already used: --typography-caption-default-color\n resolves to --color-text-muted. It is named through the role here so that\n retinting captions moves this label with them.\n\n Neither gate could see it. lint:tokens has nothing to scan when a leading\n is absent rather than wrong, and typography coverage fails on multi-line\n text a component renders with no role -- these two spans are single-line. */\n .label {\n display: flex;\n justify-content: space-between;\n margin-bottom: var(--spacing-4);\n font-family: var(--typography-caption-default-fontFamily);\n font-size: var(--typography-caption-default-fontSize);\n font-weight: var(--typography-caption-default-fontWeight);\n line-height: var(--typography-caption-default-lineHeight);\n letter-spacing: var(--typography-caption-default-letterSpacing);\n color: var(--typography-caption-default-color);\n }\n\n /* The caption row shows only while the label slot holds something. */\n .label[hidden] {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .track::-webkit-progress-value { transition: none; }\n }\n\n /* Forced colours repaint every background as Canvas, so the track and the\n fill both vanished there -- the divs this replaced did the same. The bar\n opts out and states the system colours itself: a CanvasText edge round\n the track and a Highlight fill, which every forced palette keeps apart. */\n @media (forced-colors: active) {\n .track {\n forced-color-adjust: none;\n border: var(--border-width-1) solid CanvasText;\n background: Canvas;\n }\n\n .track::-webkit-progress-value {\n background: Highlight;\n }\n\n .track::-moz-progress-bar {\n background: Highlight;\n }\n }\n`;\n\nexport default progressBarCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAiB,CAAG,q/C"}
|