@repobit/dex-system-design 3.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1074 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{above as e}from"../shared/token-scales.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import"../abstract/abstract.js";import{ObserverController as r}from"../shared/controller.observer.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import"../img/img.js";import{adoptStyles as a}from"../shared/adopt-styles.js";import{MediaQueryController as o}from"../shared/controller.media-query.js";import{articleCSS as s,articleProseCSS as c}from"./article.css.js";import"../tag/tag.js";import"../authors/authors.js";import"../blockquote/blockquote.js";import"../caption/caption.js";import"../code/code.js";import"../key-takeaways/key-takeaways.js";import"../meta/meta.js";import"../newsletter-signup/newsletter-signup.js";import"../picture/picture.js";import"../product-upsell/product-upsell.js";import"../related-articles/related-articles.js";import"../report-promo/report-promo.js";import"../table-of-contents/table-of-contents.js";import{LitElement as l,html as u}from"lit";import{state as d}from"lit/decorators.js";var f=[`eyebrow`,`title`,`authors`,`description`,`promo`,`media`,`toc`,`newsletter`,`footer`,`related`],p=e=>f.includes(e),m=[`authors`,`toc`],h=`bd-h`,g=`bd-key-takeaways`,_=e=>{let t=e.getAttribute(`as`);if(t===null)return`h1`;let n=t.trim().toLowerCase();return/^h[1-6]$/.test(n)?n:/^[1-6]$/.test(n)?`h${n}`:`h2`},v=e=>e.nodeType===Node.ELEMENT_NODE&&e.localName===h&&_(e)===`h2`,y=e(`lg`),b=class extends l{constructor(...e){super(...e),this._wide=!1,this._media=new o(this,y,e=>{this._wide=e}),this._children=new r(this,()=>new MutationObserver(e=>{e.some(e=>e.target===this||e.target.parentNode===this)&&this.requestUpdate()}),e=>e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`slot`,`as`]})),this._resize=new r(this,()=>new ResizeObserver(()=>this._syncSidebarLayout()),e=>{for(let t of this.renderRoot.querySelectorAll(`.article-hero, .article-layout__preamble, .article-layout__sections-main`))e.observe(t)}),this._plan=null}static{this.shadowRootOptions={...l.shadowRootOptions,slotAssignment:`manual`}}static{this.styles=[i,s]}connectedCallback(){super.connectedCallback(),a(this,`bd-article`,c),this.hasUpdated&&this.requestUpdate()}updated(){this._route(),this._syncSidebarLayout()}_read(){let e=new Map(f.map(e=>[e,[]])),t=[];for(let n of this.childNodes)if(n.nodeType===Node.ELEMENT_NODE){let r=n;r.slot?p(r.slot)&&e.get(r.slot).push(r):t.push(r)}else n.nodeType===Node.TEXT_NODE&&n.data.trim()!==``&&t.push(n);let n=t.findIndex(v),r=n===-1?t:t.slice(0,n);return{named:e,preamble:r,sections:n===-1?[]:t.slice(n),firstSubhead:n===-1?null:t[n],takeaways:r.find(e=>e.localName===g)??null}}_route(){let e=e=>this.renderRoot.querySelector(e);if(!e(`slot[name="title"]`))return;let t=this._plan??this._read();for(let n of f)m.includes(n)||e(`slot[name="${n}"]`).assign(...t.named.get(n));for(let n of m){let r=t.named.get(n);e(`slot[name="${n}"]`).assign(...this._wide?[]:r),e(`slot.sidebar-${n}`).assign(...this._wide?r:[])}e(`slot.preamble`).assign(...t.preamble),e(`slot.sections`).assign(...t.sections)}_syncSidebarLayout(){if(!this._wide)return;let e=this.renderRoot.querySelector(`.article-sidebar`),{takeaways:t,firstSubhead:n}=this._plan??this._read();if(!e)return;let r=e.getBoundingClientRect().top;if(!n){e.style.removeProperty(`--bd-article-authors-zone-height`),e.style.removeProperty(`--bd-article-toc-gap-height`);return}let i=n.getBoundingClientRect().top;if(t){let n=t.getBoundingClientRect().bottom;e.style.setProperty(`--bd-article-authors-zone-height`,`${Math.max(0,n-r)}px`),e.style.setProperty(`--bd-article-toc-gap-height`,`${Math.max(0,i-n)}px`)}else e.style.setProperty(`--bd-article-authors-zone-height`,`0px`),e.style.setProperty(`--bd-article-toc-gap-height`,`${Math.max(0,i-r)}px`)}render(){let e=this._plan=this._read(),t=t=>e.named.get(t).length>0,n=t(`related`);return u`
|
|
2
|
+
<article class="article bd-ensemble">
|
|
3
|
+
<div class="article-layout">
|
|
4
|
+
<header class="article-hero">
|
|
5
|
+
<div class="article-meta" ?hidden=${!t(`eyebrow`)}><slot name="eyebrow"></slot></div>
|
|
6
|
+
<div class="article-hero__title" ?hidden=${!t(`title`)}><slot name="title"></slot></div>
|
|
7
|
+
<div class="article-hero__authors" ?hidden=${this._wide||!t(`authors`)}><slot name="authors"></slot></div>
|
|
8
|
+
<hr class="article-hero-divider" />
|
|
9
|
+
<div class="article-hero__description" ?hidden=${!t(`description`)}><slot name="description"></slot></div>
|
|
10
|
+
<div class="article-hero__featured" ?hidden=${!t(`media`)}><slot name="media"></slot></div>
|
|
11
|
+
</header>
|
|
12
|
+
|
|
13
|
+
<div class="article-layout__preamble" ?hidden=${!e.preamble.length}><slot class="prose body preamble"></slot></div>
|
|
14
|
+
|
|
15
|
+
<div class="article-toc--inline" ?hidden=${this._wide||!t(`toc`)}><slot name="toc"></slot></div>
|
|
16
|
+
|
|
17
|
+
<div class="article-layout__sections-main" ?hidden=${!e.sections.length&&!t(`promo`)}>
|
|
18
|
+
<slot class="prose body sections"></slot>
|
|
19
|
+
<div class="article-promo" ?hidden=${!t(`promo`)}><slot name="promo"></slot></div>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="article-sidebar" ?hidden=${!this._wide}>
|
|
23
|
+
<div class="article-sidebar__authors-zone">
|
|
24
|
+
<div class="article-sidebar__authors"><slot class="sidebar-authors"></slot></div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="article-sidebar__toc-gap"></div>
|
|
27
|
+
<div class="article-sidebar__toc"><slot class="sidebar-toc"></slot></div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="article-newsletter" ?hidden=${!t(`newsletter`)}><slot name="newsletter"></slot></div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<footer class="article-tags" ?hidden=${!t(`footer`)}><slot name="footer"></slot></footer>
|
|
34
|
+
|
|
35
|
+
<hr class="article-divider" ?hidden=${!n} />
|
|
36
|
+
<div class="article-related" ?hidden=${!n}><slot name="related" class="prose"></slot></div>
|
|
37
|
+
</article>
|
|
38
|
+
`}};n([d()],b.prototype,`_wide`,void 0),b=n([t(`bd-article`)],b);export{b as BdArticle};
|
|
39
|
+
//# sourceMappingURL=article.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"article.js","names":["_decorate","__decorate","NAMED","isNamed","name","MOVING","HEADING","TAKEAWAYS","levelOf","as","el","v","isSectionStart","node","WIDE","above","BdArticle","LitElement","_args","MediaQueryController","wide","ObserverController","records","r","observer","ensembleCSS","articleCSS","adoptStyles","articleProseCSS","named","body","split","preamble","slot","selector","plan","nodes","sidebar","sidebarTop","firstSubhead","subheadTop","takeaways","takeawaysBottom","has","hasRelated","state","defineElement"],"sources":["../../../../src/components/article/article.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { state } from 'lit/decorators.js';\nimport { adoptStyles } from '#shared/adopt-styles.ts';\nimport { MediaQueryController } from '#shared/controller.media-query.ts';\nimport { ObserverController } from '#shared/controller.observer.ts';\nimport { defineElement } from '#shared/define-element.ts';\nimport { ensembleCSS } from '#shared/ensemble.css.ts';\nimport { above } from '#shared/token-scales.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\n/* What the page writes into the article: its parts, and the atoms of the\n body, so a page importing only this module gets them -- the promos, the\n newsletter and the related links included, as bd-blog-article imported\n its own. */\nimport '#components/abstract/abstract.ts';\nimport '#components/authors/authors.ts';\nimport '#components/blockquote/blockquote.ts';\nimport '#components/caption/caption.ts';\nimport '#components/code/code.ts';\nimport '#components/h/h.ts';\nimport '#components/img/img.ts';\nimport '#components/key-takeaways/key-takeaways.ts';\nimport '#components/link/link.ts';\nimport '#components/meta/meta.ts';\nimport '#components/newsletter-signup/newsletter-signup.ts';\nimport '#components/p/p.ts';\nimport '#components/picture/picture.ts';\nimport '#components/product-upsell/product-upsell.ts';\nimport '#components/related-articles/related-articles.ts';\nimport '#components/report-promo/report-promo.ts';\nimport '#components/table-of-contents/table-of-contents.ts';\nimport '#components/tag/tag.ts';\nimport { articleCSS, articleProseCSS } from './article.css.ts';\n\n/* The slots a child names itself into. Every other child is the body. */\nconst NAMED = [\n 'eyebrow', 'title', 'authors', 'description', 'promo', 'media',\n 'toc', 'newsletter', 'footer', 'related'\n] as const;\ntype Named = typeof NAMED[number];\nconst isNamed = (name: string): name is Named => (NAMED as readonly string[]).includes(name);\n\n/* The two named parts the article moves between two places. */\nconst MOVING = ['authors', 'toc'] as const;\n\nconst HEADING = 'bd-h';\nconst TAKEAWAYS = 'bd-key-takeaways';\n\n/* The level a bd-h renders, as bd-h decides it: h1 without `as`, its `as`\n when that names h1 to h6 or 1 to 6, and h2 for anything else. */\nconst levelOf = (el: Element) => {\n const as = el.getAttribute('as');\n if (as === null) return 'h1';\n const v = as.trim().toLowerCase();\n if (/^h[1-6]$/.test(v)) return v;\n return /^[1-6]$/.test(v) ? `h${v}` : 'h2';\n};\n\n/* Where the body splits: the first bd-h that is an h2 starts the sections,\n beside which the sidebar's table of contents stands, as REAL's post.ts\n splits the body at its first <h2>. */\nconst isSectionStart = (node: Node) => node.nodeType === Node.ELEMENT_NODE\n && (node as Element).localName === HEADING\n && levelOf(node as Element) === 'h2';\n\n/* The lg query, the one the layout switches at. */\nconst WIDE = above('lg');\n\n/* What the page's children come to: each named slot's elements, and the\n body cut in two at its first section heading. */\ninterface Plan {\n named : Map<Named, Element[]>;\n preamble : Node[];\n sections : Node[];\n firstSubhead: Element | null;\n takeaways : Element | null;\n}\n\n/**\n * The article: the page's article, laid out in the page column.\n *\n * <bd-article>\n * <bd-meta slot=\"eyebrow\" type=\"date\" datetime=\"2026-06-17\">17 June 2026</bd-meta>\n * <bd-h slot=\"title\" as=\"h1\">…</bd-h>\n * <bd-authors slot=\"authors\">…</bd-authors>\n * <bd-abstract slot=\"description\">…</bd-abstract>\n * <bd-img slot=\"media\" src=\"…\" alt=\"…\" fetchpriority=\"high\"></bd-img>\n * <bd-table-of-contents slot=\"toc\" collapsible>…</bd-table-of-contents>\n * <bd-key-takeaways>…</bd-key-takeaways>\n * <bd-h as=\"h2\" id=\"how-the-scam-works\">How the scam works</bd-h>\n * <bd-p>…</bd-p>\n * …\n * <bd-product-upsell slot=\"promo\">…</bd-product-upsell>\n * <bd-newsletter-signup slot=\"newsletter\">…</bd-newsletter-signup>\n * <bd-tag slot=\"footer\" appearance=\"chip\" variant=\"brand\">Scams</bd-tag>\n * </bd-article>\n *\n * The page writes the article and this lays out what it is given: nothing\n * here draws a word. The copy is the package's atoms -- bd-h, bd-p, bd-link,\n * bd-img, bd-caption -- and the article gives them its look through the\n * container hooks on what it slots (article.css.ts): the title, the\n * section headings, the paragraphs and their links, the images' corners.\n *\n * bd-blog-article until the blog folded into the package's components\n * (DEX-29414). It drew the blog's own prose atoms -- bd-blog-title,\n * -subhead, -paragraph, -link, -image -- and sat in bd-blog-page-layout's\n * column; it is the page column's own section now (ensembleCSS).\n *\n * ## Where each part goes\n *\n * The hero, in the page's order: the byline (`eyebrow`), the `title`, the\n * `authors`, a divider, the abstract (`description`) and the featured image\n * (`media`). The divider is always drawn, as REAL's\n * post.ts draws its hr.post-hero-divider: it closes the byline, under the\n * authors below lg and under the title once they are in the sidebar. Then\n * the body -- every child with no `slot` -- cut at its first section\n * heading, a bd-h at h2, as REAL cuts its body at the first <h2>: what\n * comes before it (the key takeaways, and an h3 or h4 if the page wrote one\n * there) is the preamble, and the sections start at it. The product card\n * (`promo`) closes the article's text, after its last section -- or after\n * the preamble, with no section heading -- as REAL's placePromo puts it\n * since DEX-29412 (SEO feedback: no card between the abstract and the hero\n * image). REAL puts it before the article's FAQ when there is one; once the\n * package has an FAQ (DEX-29514) the article does the same, and until then\n * a FAQ the page writes in the body comes before the card. The `newsletter`\n * closes the main column; the tags (`footer`) and, after a divider, the\n * `related` links follow the whole layout. A report promo goes where the\n * page puts it in the body.\n *\n * From lg the layout is a grid: the hero, the preamble, the sections and\n * the newsletter down the main column, and beside the first three a sidebar\n * holding the authors -- in a zone as tall as the distance to the\n * takeaways' bottom, so they stick there and scroll away with them -- then a\n * gap down to the first section heading, and the table of contents, sticky,\n * level with that heading (_syncSidebarLayout measures the page's takeaways\n * and heading for both). Below lg it is one column, the authors under the\n * title and the contents between the preamble and the sections.\n *\n * ## One node in each place\n *\n * 3.x drew the authors and the contents twice, a copy in the hero or the body\n * and another in the sidebar, and hid one per width. The page writes each\n * once, and the article moves the one node: its shadow root assigns its\n * slots by hand (slotAssignment: \"manual\", as bd-tab-group's does), each\n * child by its `slot`, the body split at the first section heading, and\n * `authors` and `toc` to their hero and inline places below lg and to the\n * sidebar from it, again whenever the lg query changes. A child added,\n * removed or given another `slot`, or a heading given another `as`, is\n * routed again. A table of contents written without `slot=\"toc\"` is part of\n * the body and stays where the page put it.\n *\n * The space between list items, and the corners of an image in a <figure>,\n * are adopted into the page's tree (articleProseCSS): no rule in the\n * article's shadow root reaches past the slotted list or figure. The\n * sidebar is a div: 3.x's `<aside aria-label=\"Article sidebar\">`, and its\n * \"Authors\" and \"Table of contents\" labels, were English of the article's\n * own, and the contents' nav is named by its own heading.\n */\n@defineElement('bd-article')\nexport class BdArticle extends LitElement {\n static shadowRootOptions: ShadowRootInit = { ...LitElement.shadowRootOptions, slotAssignment: 'manual' };\n\n static styles = [ensembleCSS, articleCSS];\n\n /** From lg: the sidebar holds the authors and the contents. */\n @state()\n _wide = false;\n\n _media = new MediaQueryController(this, WIDE, wide => {\n this._wide = wide;\n });\n\n /* A child added or removed, a child's slot changed or a heading's level,\n which decides where the body splits, routes everything again. A slot\n set inside a child -- an author's eyebrow -- is that child's business. */\n _children = new ObserverController(this,\n () => new MutationObserver(records => {\n if (records.some(r => r.target === this || r.target.parentNode === this)) this.requestUpdate();\n }),\n observer => observer.observe(this, { childList: true, subtree: true, attributes: true, attributeFilter: ['slot', 'as'] }));\n\n /* The main column's boxes, whose heights decide where the sidebar's zones end. */\n _resize = new ObserverController(this,\n () => new ResizeObserver(() => this._syncSidebarLayout()),\n observer => {\n for (const el of this.renderRoot.querySelectorAll('.article-hero, .article-layout__preamble, .article-layout__sections-main')) observer.observe(el);\n });\n\n _plan: Plan | null = null;\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, 'bd-article', articleProseCSS);\n /* Nothing reports what changed while the article was out of the page. */\n if (this.hasUpdated) this.requestUpdate();\n }\n\n updated() {\n this._route();\n this._syncSidebarLayout();\n }\n\n /** The page's children, by where each goes. */\n _read(): Plan {\n const named = new Map<Named, Element[]>(NAMED.map(name => [name, []]));\n const body: Node[] = [];\n for (const node of this.childNodes) {\n if (node.nodeType === Node.ELEMENT_NODE) {\n const el = node as Element;\n if (!el.slot) body.push(el);\n else if (isNamed(el.slot)) named.get(el.slot)!.push(el);\n // a slot name the article has not is in no slot, as with any named slot\n } else if (node.nodeType === Node.TEXT_NODE && (node as Text).data.trim() !== '') {\n body.push(node);\n }\n }\n const split = body.findIndex(isSectionStart);\n const preamble = split === -1 ? body : body.slice(0, split);\n return {\n named,\n preamble,\n sections : split === -1 ? [] : body.slice(split),\n firstSubhead: split === -1 ? null : body[split] as Element,\n takeaways : (preamble.find(node => (node as Element).localName === TAKEAWAYS) as Element | undefined) ?? null\n };\n }\n\n /* Each child into its slot; the authors and the contents to the sidebar\n from lg. Nothing is rendered before the first update, so there is\n nothing to assign to until then. */\n _route() {\n const slot = (selector: string) => this.renderRoot.querySelector<HTMLSlotElement>(selector);\n if (!slot('slot[name=\"title\"]')) return;\n const plan = this._plan ?? this._read();\n for (const name of NAMED) {\n if ((MOVING as readonly string[]).includes(name)) continue;\n slot(`slot[name=\"${name}\"]`)!.assign(...plan.named.get(name)!);\n }\n for (const name of MOVING) {\n const nodes = plan.named.get(name)!;\n slot(`slot[name=\"${name}\"]`)!.assign(...(this._wide ? [] : nodes));\n slot(`slot.sidebar-${name}`)!.assign(...(this._wide ? nodes : []));\n }\n slot('slot.preamble')!.assign(...plan.preamble as (Element | Text)[]);\n slot('slot.sections')!.assign(...plan.sections as (Element | Text)[]);\n }\n\n /** Size the sidebar's zones so the authors scroll away at the takeaways' bottom and the contents stand level with the first section heading. */\n _syncSidebarLayout() {\n if (!this._wide) return;\n\n const sidebar = this.renderRoot.querySelector<HTMLElement>('.article-sidebar');\n const { takeaways, firstSubhead } = this._plan ?? this._read();\n\n if (!sidebar) return;\n\n const sidebarTop = sidebar.getBoundingClientRect().top;\n\n if (!firstSubhead) {\n sidebar.style.removeProperty('--bd-article-authors-zone-height');\n sidebar.style.removeProperty('--bd-article-toc-gap-height');\n return;\n }\n\n const subheadTop = firstSubhead.getBoundingClientRect().top;\n\n if (takeaways) {\n const takeawaysBottom = takeaways.getBoundingClientRect().bottom;\n sidebar.style.setProperty('--bd-article-authors-zone-height', `${Math.max(0, takeawaysBottom - sidebarTop)}px`);\n sidebar.style.setProperty('--bd-article-toc-gap-height', `${Math.max(0, subheadTop - takeawaysBottom)}px`);\n return;\n }\n\n sidebar.style.setProperty('--bd-article-authors-zone-height', '0px');\n sidebar.style.setProperty('--bd-article-toc-gap-height', `${Math.max(0, subheadTop - sidebarTop)}px`);\n }\n\n render() {\n const plan = this._plan = this._read();\n const has = (name: Named) => plan.named.get(name)!.length > 0;\n const hasRelated = has('related');\n return html`\n <article class=\"article bd-ensemble\">\n <div class=\"article-layout\">\n <header class=\"article-hero\">\n <div class=\"article-meta\" ?hidden=${!has('eyebrow')}><slot name=\"eyebrow\"></slot></div>\n <div class=\"article-hero__title\" ?hidden=${!has('title')}><slot name=\"title\"></slot></div>\n <div class=\"article-hero__authors\" ?hidden=${this._wide || !has('authors')}><slot name=\"authors\"></slot></div>\n <hr class=\"article-hero-divider\" />\n <div class=\"article-hero__description\" ?hidden=${!has('description')}><slot name=\"description\"></slot></div>\n <div class=\"article-hero__featured\" ?hidden=${!has('media')}><slot name=\"media\"></slot></div>\n </header>\n\n <div class=\"article-layout__preamble\" ?hidden=${!plan.preamble.length}><slot class=\"prose body preamble\"></slot></div>\n\n <div class=\"article-toc--inline\" ?hidden=${this._wide || !has('toc')}><slot name=\"toc\"></slot></div>\n\n <div class=\"article-layout__sections-main\" ?hidden=${!plan.sections.length && !has('promo')}>\n <slot class=\"prose body sections\"></slot>\n <div class=\"article-promo\" ?hidden=${!has('promo')}><slot name=\"promo\"></slot></div>\n </div>\n\n <div class=\"article-sidebar\" ?hidden=${!this._wide}>\n <div class=\"article-sidebar__authors-zone\">\n <div class=\"article-sidebar__authors\"><slot class=\"sidebar-authors\"></slot></div>\n </div>\n <div class=\"article-sidebar__toc-gap\"></div>\n <div class=\"article-sidebar__toc\"><slot class=\"sidebar-toc\"></slot></div>\n </div>\n\n <div class=\"article-newsletter\" ?hidden=${!has('newsletter')}><slot name=\"newsletter\"></slot></div>\n </div>\n\n <footer class=\"article-tags\" ?hidden=${!has('footer')}><slot name=\"footer\"></slot></footer>\n\n <hr class=\"article-divider\" ?hidden=${!hasRelated} />\n <div class=\"article-related\" ?hidden=${!hasRelated}><slot name=\"related\" class=\"prose\"></slot></div>\n </article>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-article': BdArticle;\n }\n}\n"],"mappings":"A,wrCAmCA,IAAME,EAAQ,CACZ,UAAW,QAAS,UAAW,cAAe,QAAS,QACvD,MAAO,aAAc,SAAU,SACjC,EAEMC,EAAW,GAAiCD,EAA4B,SAASE,CAAI,EAGrFC,EAAS,CAAC,UAAW,KAAK,EAE1BC,EAAU,OACVC,EAAY,mBAIZC,EAAW,GAAgB,CAC/B,IAAMC,EAAKC,EAAG,aAAa,IAAI,EAC/B,GAAID,IAAO,KAAM,MAAO,KACxB,IAAME,EAAIF,EAAG,KAAK,CAAC,CAAC,YAAY,EAEhC,MADI,WAAW,KAAKE,CAAC,EAAUA,EACxB,UAAU,KAAKA,CAAC,EAAI,IAAIA,IAAM,IACvC,EAKMC,EAAkB,GAAeC,EAAK,WAAa,KAAK,cACxDA,EAAiB,YAAcP,GAChCE,EAAQK,CAAe,IAAM,KAG5BC,EAAOC,EAAM,IAAI,EA6FVC,EAAN,cAAwBC,CAAW,C,8BAOhC,KAAA,MAAA,GAEC,KAAA,OAAA,IAAIE,EAAqB,KAAML,EAAM,GAAQ,CACpD,KAAK,MAAQM,CACf,CAAC,EAKW,KAAA,UAAA,IAAIC,EAAmB,SAC3B,IAAI,iBAAiB,GAAW,CAChCC,EAAQ,KAAK,GAAKC,EAAE,SAAW,MAAQA,EAAE,OAAO,aAAe,IAAI,GAAG,KAAK,cAAc,CAC/F,CAAC,EACD,GAAYC,EAAS,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,GAAM,gBAAiB,CAAC,OAAQ,IAAI,CAAE,CAAC,CAAC,EAGjH,KAAA,QAAA,IAAIH,EAAmB,SACzB,IAAI,mBAAqB,KAAK,mBAAmB,CAAC,EACxD,GAAY,CACV,IAAK,IAAMX,KAAM,KAAK,WAAW,iBAAiB,0EAA0E,EAAGc,EAAS,QAAQd,CAAE,CACpJ,CAAC,EAEkB,KAAA,MAAA,I,QA5BsB,KAAA,kBAAA,CAAE,GAAGO,EAAW,kBAAmB,eAAgB,QAAS,C,QAEvF,KAAA,OAAA,CAACQ,EAAaC,CAAU,C,CA4BxC,mBAAoB,CAClB,MAAM,kBAAkB,EACxBC,EAAY,KAAM,aAAcC,CAAe,EAE3C,KAAK,YAAY,KAAK,cAAc,CAC1C,CAEA,SAAU,CACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,CAC1B,CAGA,OAAc,CACZ,IAAMC,EAAQ,IAAI,IAAsB3B,EAAM,IAAI,GAAQ,CAACE,EAAM,CAAC,CAAC,CAAC,CAAC,EAC/D0B,EAAe,CAAC,EACtB,IAAK,IAAMjB,KAAQ,KAAK,WACtB,GAAIA,EAAK,WAAa,KAAK,aAAc,CACvC,IAAMH,EAAKG,EACNH,EAAG,KACCP,EAAQO,EAAG,IAAI,GAAGmB,EAAM,IAAInB,EAAG,IAAI,CAAC,CAAE,KAAKA,CAAE,EADxCoB,EAAK,KAAKpB,CAAE,CAG5B,MAAWG,EAAK,WAAa,KAAK,WAAcA,EAAc,KAAK,KAAK,IAAM,IAC5EiB,EAAK,KAAKjB,CAAI,EAGlB,IAAMkB,EAAQD,EAAK,UAAUlB,CAAc,EACrCoB,EAAWD,IAAU,GAAKD,EAAOA,EAAK,MAAM,EAAGC,CAAK,EAC1D,MAAO,CACL,QACA,WACA,SAAcA,IAAU,GAAK,CAAC,EAAID,EAAK,MAAMC,CAAK,EAClD,aAAcA,IAAU,GAAK,KAAOD,EAAKC,GACzC,UAAeC,EAAS,KAAK,GAASnB,EAAiB,YAAcN,CAAS,GAA6B,IAC7G,CACF,CAKA,QAAS,CACP,IAAM0B,EAAQ,GAAqB,KAAK,WAAW,cAA+BC,CAAQ,EAC1F,GAAI,CAACD,EAAK,oBAAoB,EAAG,OACjC,IAAME,EAAO,KAAK,OAAS,KAAK,MAAM,EACtC,IAAK,IAAM/B,KAAQF,EACZG,EAA6B,SAASD,CAAI,GAC/C6B,EAAK,cAAc7B,EAAK,GAAG,CAAC,CAAE,OAAO,GAAG+B,EAAK,MAAM,IAAI/B,CAAI,CAAE,EAE/D,IAAK,IAAMA,KAAQC,EAAQ,CACzB,IAAM+B,EAAQD,EAAK,MAAM,IAAI/B,CAAI,EACjC6B,EAAK,cAAc7B,EAAK,GAAG,CAAC,CAAE,OAAO,GAAI,KAAK,MAAQ,CAAC,EAAIgC,CAAM,EACjEH,EAAK,gBAAgB7B,GAAM,CAAC,CAAE,OAAO,GAAI,KAAK,MAAQgC,EAAQ,CAAC,CAAE,CACnE,CACAH,EAAK,eAAe,CAAC,CAAE,OAAO,GAAGE,EAAK,QAA8B,EACpEF,EAAK,eAAe,CAAC,CAAE,OAAO,GAAGE,EAAK,QAA8B,CACtE,CAGA,oBAAqB,CACnB,GAAI,CAAC,KAAK,MAAO,OAEjB,IAAME,EAAU,KAAK,WAAW,cAA2B,kBAAkB,EACvE,CAAE,YAAW,gBAAiB,KAAK,OAAS,KAAK,MAAM,EAE7D,GAAI,CAACA,EAAS,OAEd,IAAMC,EAAaD,EAAQ,sBAAsB,CAAC,CAAC,IAEnD,GAAI,CAACE,EAAc,CACjBF,EAAQ,MAAM,eAAe,kCAAkC,EAC/DA,EAAQ,MAAM,eAAe,6BAA6B,EAC1D,MACF,CAEA,IAAMG,EAAaD,EAAa,sBAAsB,CAAC,CAAC,IAExD,GAAIE,EAAW,CACb,IAAMC,EAAkBD,EAAU,sBAAsB,CAAC,CAAC,OAC1DJ,EAAQ,MAAM,YAAY,mCAAoC,GAAG,KAAK,IAAI,EAAGK,EAAkBJ,CAAU,EAAE,GAAG,EAC9GD,EAAQ,MAAM,YAAY,8BAA+B,GAAG,KAAK,IAAI,EAAGG,EAAaE,CAAe,EAAE,GAAG,CAE3G,MAEAL,EAAQ,MAAM,YAAY,mCAAoC,KAAK,EACnEA,EAAQ,MAAM,YAAY,8BAA+B,GAAG,KAAK,IAAI,EAAGG,EAAaF,CAAU,EAAE,GAAG,CACtG,CAEA,QAAS,CACP,IAAMH,EAAO,KAAK,MAAQ,KAAK,MAAM,EAC/BQ,EAAO,GAAgBR,EAAK,MAAM,IAAI/B,CAAI,CAAC,CAAE,OAAS,EACtDwC,EAAaD,EAAI,SAAS,EAChC,MAAO,EAAI;;;;gDAIiC,CAACA,EAAI,SAAS,EAAE;uDACT,CAACA,EAAI,OAAO,EAAE;yDACZ,KAAK,OAAS,CAACA,EAAI,SAAS,EAAE;;6DAE1B,CAACA,EAAI,aAAa,EAAE;0DACvB,CAACA,EAAI,OAAO,EAAE;;;0DAGd,CAACR,EAAK,SAAS,OAAO;;qDAE3B,KAAK,OAAS,CAACQ,EAAI,KAAK,EAAE;;+DAEhB,CAACR,EAAK,SAAS,QAAU,CAACQ,EAAI,OAAO,EAAE;;iDAErD,CAACA,EAAI,OAAO,EAAE;;;iDAGd,CAAC,KAAK,MAAM;;;;;;;;oDAQT,CAACA,EAAI,YAAY,EAAE;;;+CAGxB,CAACA,EAAI,QAAQ,EAAE;;8CAEhB,CAACC,EAAW;+CACX,CAACA,EAAW;;KAGzD,CACF,EA3JG5C,EAAA,CAAA6C,EAAM,CAAA,EAAA7B,EAAA,UAAA,QAAA,IAAA,EAAA,EAPR,EAAAhB,EAAA,CAAA8C,EAAc,YAAY,CAAA,EAAA9B,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{grid-template-rows:auto auto 1fr auto;width:100%;display:grid}@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}}.card{box-sizing:border-box;grid-row:1/-1;grid-template-rows:subgrid;padding:var(--card-padding-compact);background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);grid-template-columns:minmax(0,1fr);row-gap:0;display:grid;position:relative}.copy{display:contents}.eyebrow{align-items:center;gap:var(--spacing-8);margin:0 0 var(--spacing-8);font-family:var(--typography-label-default-fontFamily);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);text-transform:uppercase;color:var(--color-text-brand);grid-row:1;display:flex}::slotted([slot=icon]){color:var(--color-text-brand);flex:none}.
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{grid-template-rows:auto auto 1fr auto;width:100%;display:grid}@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}}.card{box-sizing:border-box;grid-row:1/-1;grid-template-rows:subgrid;padding:var(--card-padding-compact);background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);grid-template-columns:minmax(0,1fr);row-gap:0;display:grid;position:relative}.copy{display:contents}.copy>[hidden]{display:none}.eyebrow{align-items:center;gap:var(--spacing-8);margin:0 0 var(--spacing-8);font-family:var(--typography-label-default-fontFamily);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);text-transform:uppercase;color:var(--color-text-brand);grid-row:1;display:flex}::slotted([slot=icon]){color:var(--color-text-brand);flex:none}.title{grid-row:2}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily)}.description{margin:var(--spacing-8) 0 0;grid-row:3}::slotted(bd-p[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-paragraph-margin-bottom:0}.arrow{grid-row:4;place-self:end;margin-block-start:var(--spacing-8)}.arrow::part(button):after{content:"";position:absolute;inset:0}@media (width>=768px) and (width<992px){.card{column-gap:var(--spacing-24);grid-template-columns:minmax(0,1fr) auto}.arrow{grid-area:1/2/-1;align-self:center;margin-block-start:0}}`;export{t as audienceCardCSS};
|
|
2
2
|
//# sourceMappingURL=audience-card.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-card.css.js","names":["audienceCardCSS"],"sources":["../../../../src/components/audience-card/audience-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The card sits on the hero's brand band and the page below it at once, so\n it takes the second clause of the card rule: surface/default with a\n border/container edge, at the card corner and the compact inset.\n\n Four rows, one per part: the eyebrow, the title, the description and the\n arrow. The host is a grid of its own four, and the card a subgrid of them;\n in a bd-grid with item-rows=\"4\" the host is in turn a subgrid of the\n grid's rows (grid.css.ts), so every card's title starts on one line and\n its description on the next, however differently the cards' titles wrap.\n A part a card leaves out leaves its row at the height the others give it,\n so the rest still line up.\n\n That is also why the host is no longer a size container: containment\n makes a grid its own, and a subgrid inside it lines up with nothing. The\n row the card becomes between md and lg is the documented one, the hero's\n tablet frame, and follows the screen. */\nexport const audienceCardCSS = css`\n /* bd-grid places its items at start, so the host asks for its column's\n whole width rather than its content's; the width is the column less the\n host's margins (shared/fill-width.css.ts). */\n :host {\n display: grid;\n grid-template-rows: auto auto 1fr auto;\n }\n\n ${hostFillsWidth()}\n\n .card {\n box-sizing: border-box;\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n grid-template-columns: minmax(0, 1fr);\n row-gap: 0;\n padding: var(--card-padding-compact);\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n /* the containing block for the link's stretched hit area, below */\n position: relative;\n }\n\n /* the copy's parts are the card's rows, not a box of their own */\n .copy {\n display: contents;\n }\n\n /* The eyebrow is label-default
|
|
1
|
+
{"version":3,"file":"audience-card.css.js","names":["audienceCardCSS"],"sources":["../../../../src/components/audience-card/audience-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below, bodyRole, headingRole } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The card sits on the hero's brand band and the page below it at once, so\n it takes the second clause of the card rule: surface/default with a\n border/container edge, at the card corner and the compact inset.\n\n Four rows, one per part: the eyebrow, the title, the description and the\n arrow. The host is a grid of its own four, and the card a subgrid of them;\n in a bd-grid with item-rows=\"4\" the host is in turn a subgrid of the\n grid's rows (grid.css.ts), so every card's title starts on one line and\n its description on the next, however differently the cards' titles wrap.\n A part a card leaves out leaves its row at the height the others give it,\n so the rest still line up.\n\n That is also why the host is no longer a size container: containment\n makes a grid its own, and a subgrid inside it lines up with nothing. The\n row the card becomes between md and lg is the documented one, the hero's\n tablet frame, and follows the screen. */\nexport const audienceCardCSS = css`\n /* bd-grid places its items at start, so the host asks for its column's\n whole width rather than its content's; the width is the column less the\n host's margins (shared/fill-width.css.ts). */\n :host {\n display: grid;\n grid-template-rows: auto auto 1fr auto;\n }\n\n ${hostFillsWidth()}\n\n .card {\n box-sizing: border-box;\n display: grid;\n grid-row: 1 / -1;\n grid-template-rows: subgrid;\n grid-template-columns: minmax(0, 1fr);\n row-gap: 0;\n padding: var(--card-padding-compact);\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n /* the containing block for the link's stretched hit area, below */\n position: relative;\n }\n\n /* the copy's parts are the card's rows, not a box of their own */\n .copy {\n display: contents;\n }\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 .copy > [hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so the card sets it: label-default in capitals, in\n text/brand -- the draft paints it status/info/accent, a status role on a\n plain label. The icon sits in the same line, before it. The parts are 8\n apart, as margins rather than the row gap, so a part a card leaves out\n takes its space with it. */\n .eyebrow {\n grid-row: 1;\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n margin: 0 0 var(--spacing-8);\n font-family: var(--typography-label-default-fontFamily);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n text-transform: uppercase;\n color: var(--color-text-brand);\n }\n\n ::slotted([slot=\"icon\"]) {\n flex: none;\n color: var(--color-text-brand);\n }\n\n .title {\n grid-row: 2;\n }\n\n /* The card's title: the h4 role 3.x drew it at, at whatever level the\n page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h4\"))}\n }\n\n .description {\n grid-row: 3;\n margin: var(--spacing-8) 0 0;\n }\n\n /* The description: body-regular, as 3.x drew it, with no flow margin --\n the parts' margins are the spacing here. */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* bottom-right, under the copy, on the card's last row */\n .arrow {\n grid-row: 4;\n justify-self: end;\n align-self: end;\n margin-block-start: var(--spacing-8);\n }\n\n /* The stretched link: the arrow's own <a> (bd-button's part=\"button\")\n draws an ::after over the whole card, so the card is the link's hit area\n -- middle-click, Ctrl/Cmd-click and the link menu included -- with no\n script. Nothing between the card and the <a> is positioned, so the card\n is what it fills. The pointer over it is the link's own. It paints\n nothing, so it takes no corner of its own. */\n .arrow::part(button)::after {\n content: \"\";\n position: absolute;\n inset: 0;\n }\n\n /* The tablet row, copy left and the arrow right and centred down the\n card, between md and lg, as the hero's tablet frame draws it: one card\n a row there, so nothing beside it to line up with. Above and below it\n stacks, the arrow bottom-right. */\n @media ${unsafeCSS(above(\"md\"))} and ${unsafeCSS(below(\"lg\"))} {\n .card {\n grid-template-columns: minmax(0, 1fr) auto;\n column-gap: var(--spacing-24);\n }\n\n .arrow {\n grid-column: 2;\n grid-row: 1 / -1;\n align-self: center;\n margin-block-start: 0;\n }\n }\n`;\n"],"mappings":"A,gGAoBA,IAAaA,EAAkB,CAAG,gvE"}
|
|
@@ -1,39 +1,54 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
4
|
import "../button/button.js";
|
|
4
|
-
import "../
|
|
5
|
-
|
|
5
|
+
import "../h/h.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
import "../icons/arrow.js";
|
|
6
8
|
/**
|
|
7
9
|
* The homepage's audience entry: who it is for, a title, a line of
|
|
8
10
|
* description, and a round arrow into that audience's page. Drawn in the
|
|
9
11
|
* foundation Figma file as Audience card.
|
|
10
12
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* <bd-audience-card href="/consumer/">
|
|
14
|
+
* <bd-icon slot="icon" name="home"></bd-icon>
|
|
15
|
+
* <span slot="eyebrow">For home</span>
|
|
16
|
+
* <bd-h slot="title" as="h2">Protect Your Digital Life</bd-h>
|
|
17
|
+
* <bd-p slot="description">AI-powered protection against scams …</bd-p>
|
|
18
|
+
* </bd-audience-card>
|
|
19
|
+
*
|
|
20
|
+
* The card sets the eyebrow's type (label-default in capitals, brand ink),
|
|
21
|
+
* the title's size (the h4 role) and the description's (body-regular); the
|
|
22
|
+
* page picks the title's level. Each part's box is hidden while its slot is
|
|
23
|
+
* empty, and the eyebrow line while both the icon and the eyebrow are.
|
|
24
|
+
*
|
|
25
|
+
* One link, not three. The arrow is the link and carries the accessible name:
|
|
26
|
+
* `label` when the page gives one, otherwise the eyebrow's text ("For home"),
|
|
27
|
+
* then the title's, copied from the slots and followed through every edit --
|
|
28
|
+
* the name sits on a bd-icon inside the button's own shadow root, where no
|
|
29
|
+
* aria-labelledby from here can reach. So the page reads one link per card
|
|
30
|
+
* instead of a title, a paragraph and an arrow. Its hit area is stretched
|
|
31
|
+
* across the card by an ::after on the link itself (see
|
|
15
32
|
* audience-card.css.ts), so a click anywhere on the card is a click on the
|
|
16
33
|
* link: middle-click and Ctrl/Cmd-click open it in a new tab and the link's
|
|
17
34
|
* context menu is there, which the click handler that stood here could not
|
|
18
35
|
* do -- it forwarded a plain click() whatever the reader had asked for.
|
|
19
36
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
37
|
+
* Wherever the card is wide enough it turns into a row, the copy on the left
|
|
38
|
+
* and the arrow on the right; narrower it stacks.
|
|
22
39
|
*/
|
|
23
|
-
export declare class
|
|
40
|
+
export declare class BdAudienceCard extends LitElement {
|
|
24
41
|
static styles: import("lit").CSSResult[];
|
|
25
|
-
eyebrow: string;
|
|
26
|
-
heading: string;
|
|
27
|
-
description: string;
|
|
28
42
|
href: string;
|
|
29
43
|
target: string;
|
|
30
44
|
label: string;
|
|
31
|
-
|
|
45
|
+
_slots: SlotController<"eyebrow" | "title" | "description" | "icon">;
|
|
46
|
+
/** The link's name: `label`, else the eyebrow's text, else the title's. */
|
|
47
|
+
get _name(): string;
|
|
32
48
|
render(): import("lit-html").TemplateResult<1>;
|
|
33
49
|
}
|
|
34
50
|
declare global {
|
|
35
51
|
interface HTMLElementTagNameMap {
|
|
36
|
-
"bd-audience-card":
|
|
52
|
+
"bd-audience-card": BdAudienceCard;
|
|
37
53
|
}
|
|
38
54
|
}
|
|
39
|
-
export {};
|
|
@@ -1,19 +1,17 @@
|
|
|
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"../icons/arrow.js";import"../button/button.js";import{audienceCardCSS as r}from"./audience-card.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.href=``,this.target=``,this.label=``,this._slots=new n(this,{slots:[`icon`,`description`],text:[`eyebrow`,`title`]})}static{this.styles=[r]}get _name(){return this.label||this._slots.text(`eyebrow`)||this._slots.text(`title`)}render(){let e=e=>this._slots.has(e);return a`
|
|
2
2
|
<article class="card">
|
|
3
3
|
<div class="copy">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<p class="eyebrow" ?hidden=${!e(`icon`)&&!e(`eyebrow`)}><slot name="icon"></slot><slot name="eyebrow"></slot></p>
|
|
5
|
+
<div class="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
6
|
+
<div class="description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
7
7
|
</div>
|
|
8
|
-
${this.href?
|
|
8
|
+
${this.href?a`<bd-button
|
|
9
9
|
class="arrow"
|
|
10
|
-
|
|
10
|
+
appearance="accent"
|
|
11
11
|
size="md"
|
|
12
|
-
icon-only
|
|
13
12
|
href="${this.href}"
|
|
14
|
-
target="${this.target||
|
|
15
|
-
|
|
16
|
-
></bd-button-link>`:a}
|
|
13
|
+
target="${this.target||o}"
|
|
14
|
+
><bd-icon name="arrow" label="${this._name}"></bd-icon></bd-button>`:o}
|
|
17
15
|
</article>
|
|
18
|
-
`}};t([
|
|
16
|
+
`}};t([s({type:String})],c.prototype,`href`,void 0),t([s({type:String})],c.prototype,`target`,void 0),t([s({type:String})],c.prototype,`label`,void 0),c=t([e(`bd-audience-card`)],c);export{c as BdAudienceCard};
|
|
19
17
|
//# sourceMappingURL=audience-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audience-card.js","names":["_decorate","__decorate","
|
|
1
|
+
{"version":3,"file":"audience-card.js","names":["_decorate","__decorate","BdAudienceCard","LitElement","_args","SlotController","audienceCardCSS","has","name","nothing","property","defineElement"],"sources":["../../../../src/components/audience-card/audience-card.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 \"#components/button/button.ts\";\n/* The atoms the page writes into the card's slots: 3.x drew its title\n itself, so a page importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport { audienceCardCSS } from \"./audience-card.css.ts\";\nimport \"#components/icons/arrow.ts\";\n\n/**\n * The homepage's audience entry: who it is for, a title, a line of\n * description, and a round arrow into that audience's page. Drawn in the\n * foundation Figma file as Audience card.\n *\n * <bd-audience-card href=\"/consumer/\">\n * <bd-icon slot=\"icon\" name=\"home\"></bd-icon>\n * <span slot=\"eyebrow\">For home</span>\n * <bd-h slot=\"title\" as=\"h2\">Protect Your Digital Life</bd-h>\n * <bd-p slot=\"description\">AI-powered protection against scams …</bd-p>\n * </bd-audience-card>\n *\n * The card sets the eyebrow's type (label-default in capitals, brand ink),\n * the title's size (the h4 role) and the description's (body-regular); the\n * page picks the title's level. Each part's box is hidden while its slot is\n * empty, and the eyebrow line while both the icon and the eyebrow are.\n *\n * One link, not three. The arrow is the link and carries the accessible name:\n * `label` when the page gives one, otherwise the eyebrow's text (\"For home\"),\n * then the title's, copied from the slots and followed through every edit --\n * the name sits on a bd-icon inside the button's own shadow root, where no\n * aria-labelledby from here can reach. So the page reads one link per card\n * instead of a title, a paragraph and an arrow. Its hit area is stretched\n * across the card by an ::after on the link itself (see\n * audience-card.css.ts), so a click anywhere on the card is a click on the\n * link: middle-click and Ctrl/Cmd-click open it in a new tab and the link's\n * context menu is there, which the click handler that stood here could not\n * do -- it forwarded a plain click() whatever the reader had asked for.\n *\n * Wherever the card is wide enough it turns into a row, the copy on the left\n * and the arrow on the right; narrower it stacks.\n */\n@defineElement(\"bd-audience-card\")\nexport class BdAudienceCard extends LitElement {\n static styles = [audienceCardCSS];\n\n @property({ type: String })\n href = \"\";\n @property({ type: String })\n target = \"\";\n /* The arrow link's accessible name, when it is not the eyebrow's words. */\n @property({ type: String })\n label = \"\";\n\n _slots = new SlotController(this, {\n slots: [\"icon\", \"description\"],\n text : [\"eyebrow\", \"title\"]\n });\n\n /** The link's name: `label`, else the eyebrow's text, else the title's. */\n get _name() {\n return this.label || this._slots.text(\"eyebrow\") || this._slots.text(\"title\");\n }\n\n render() {\n const has = (name: \"icon\" | \"eyebrow\" | \"title\" | \"description\") => this._slots.has(name);\n return html`\n <article class=\"card\">\n <div class=\"copy\">\n <p class=\"eyebrow\" ?hidden=${!has(\"icon\") && !has(\"eyebrow\")}><slot name=\"icon\"></slot><slot name=\"eyebrow\"></slot></p>\n <div class=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n </div>\n ${this.href\n ? html`<bd-button\n class=\"arrow\"\n appearance=\"accent\"\n size=\"md\"\n href=\"${this.href}\"\n target=\"${this.target || nothing}\"\n ><bd-icon name=\"arrow\" label=\"${this._name}\"></bd-icon></bd-button>`\n : nothing}\n </article>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-audience-card\": BdAudienceCard;\n }\n}\n"],"mappings":"A,2dA+CO,IAAME,EAAN,cAA6BC,CAAW,C,8BAItC,KAAA,KAAA,GAEE,KAAA,OAAA,GAGD,KAAA,MAAA,GAEC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAChC,MAAO,CAAC,OAAQ,aAAa,EAC7B,KAAO,CAAC,UAAW,OAAO,CAC5B,CAAC,C,QAbe,KAAA,OAAA,CAACC,CAAe,C,CAgBhC,IAAI,OAAQ,CACV,OAAO,KAAK,OAAS,KAAK,OAAO,KAAK,SAAS,GAAK,KAAK,OAAO,KAAK,OAAO,CAC9E,CAEA,QAAS,CACP,IAAMC,EAAO,GAAuD,KAAK,OAAO,IAAIC,CAAI,EACxF,MAAO,EAAI;;;uCAGwB,CAACD,EAAI,MAAM,GAAK,CAACA,EAAI,SAAS,EAAE;uCAChC,CAACA,EAAI,OAAO,EAAE;6CACR,CAACA,EAAI,aAAa,EAAE;;UAEvD,KAAK,KACH,CAAI;;;;sBAIM,KAAK,KAAK;wBACR,KAAK,QAAUE,EAAQ;4CACH,KAAK,MAAM,0BAC3CA,EAAQ;;KAGlB,CACF,EAvCGT,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAR,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAR,EAAA,UAAA,SAAA,IAAA,EAAA,EAGzBF,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAR,EAAA,UAAA,QAAA,IAAA,EAAA,EAT3B,EAAAF,EAAA,CAAAW,EAAc,kBAAkB,CAAA,EAAAT,CAAA,E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bd-authors: csg_blog's authors, frame 69:830 node 69:838 -- the label in
|
|
3
|
+
* the body-small role (14 regular) in the primary ink, 16 above the chips,
|
|
4
|
+
* which are 8 apart both ways. The chips are the page's bd-tag
|
|
5
|
+
* appearance="chip", and draw themselves.
|
|
6
|
+
*/
|
|
7
|
+
export declare const authorsCSS: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}[hidden]{display:none!important}.authors__label{margin:0 0 var(--spacing-16);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);letter-spacing:var(--typography-body-small-letterSpacing);color:var(--color-text-primary)}.authors__list{gap:var(--spacing-8);flex-wrap:wrap;display:flex}`;export{t as authorsCSS};
|
|
2
|
+
//# sourceMappingURL=authors.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authors.css.js","names":["authorsCSS"],"sources":["../../../../src/components/authors/authors.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * bd-authors: csg_blog's authors, frame 69:830 node 69:838 -- the label in\n * the body-small role (14 regular) in the primary ink, 16 above the chips,\n * which are 8 apart both ways. The chips are the page's bd-tag\n * appearance=\"chip\", and draw themselves.\n */\nexport const authorsCSS = css`\n :host {\n display: block;\n }\n\n [hidden] {\n display: none !important;\n }\n\n .authors__label {\n margin: 0 0 var(--spacing-16);\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 letter-spacing: var(--typography-body-small-letterSpacing);\n color: var(--color-text-primary);\n }\n\n .authors__list {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-8);\n }\n`;\n"],"mappings":"A,0BAQA,IAAaA,EAAa,CAAG,0c"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import "../tag/tag.js";
|
|
5
|
+
/**
|
|
6
|
+
* An article's authors: the page's label over one chip per author.
|
|
7
|
+
*
|
|
8
|
+
* <bd-authors>
|
|
9
|
+
* <span slot="eyebrow">Authors</span>
|
|
10
|
+
* <bd-tag appearance="chip" variant="brand" href="/blog/author/alexandra-barbu">Alexandra Barbu</bd-tag>
|
|
11
|
+
* <bd-tag appearance="chip" variant="brand">George Cabău</bd-tag>
|
|
12
|
+
* </bd-authors>
|
|
13
|
+
*
|
|
14
|
+
* The authors are the page's bd-tag children and the label its eyebrow,
|
|
15
|
+
* each box hidden while empty, so a bare element draws nothing.
|
|
16
|
+
*
|
|
17
|
+
* bd-blog-authors until the blog folded into the package's components
|
|
18
|
+
* (DEX-29414), with bd-blog-tag chips.
|
|
19
|
+
*/
|
|
20
|
+
export declare class BdAuthors extends LitElement {
|
|
21
|
+
static styles: import("lit").CSSResult[];
|
|
22
|
+
_slots: SlotController<"" | "eyebrow">;
|
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'bd-authors': BdAuthors;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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"../tag/tag.js";import{authorsCSS as r}from"./authors.css.js";import{LitElement as i,html as a}from"lit";var o=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[`eyebrow`,``]})}static{this.styles=[r]}render(){return a`
|
|
2
|
+
<div class="authors" part="authors">
|
|
3
|
+
<p class="authors__label" part="label" ?hidden=${!this._slots.has(`eyebrow`)}><slot name="eyebrow"></slot></p>
|
|
4
|
+
<div class="authors__list" part="list" ?hidden=${!this._slots.has(``)}><slot></slot></div>
|
|
5
|
+
</div>
|
|
6
|
+
`}};o=t([e(`bd-authors`)],o);export{o as BdAuthors};
|
|
7
|
+
//# sourceMappingURL=authors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authors.js","names":["_decorate","__decorate","BdAuthors","LitElement","_args","SlotController","authorsCSS","defineElement"],"sources":["../../../../src/components/authors/authors.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';\n// the chips the page writes\nimport '#components/tag/tag.ts';\nimport { authorsCSS } from './authors.css.ts';\n\n/**\n * An article's authors: the page's label over one chip per author.\n *\n * <bd-authors>\n * <span slot=\"eyebrow\">Authors</span>\n * <bd-tag appearance=\"chip\" variant=\"brand\" href=\"/blog/author/alexandra-barbu\">Alexandra Barbu</bd-tag>\n * <bd-tag appearance=\"chip\" variant=\"brand\">George Cabău</bd-tag>\n * </bd-authors>\n *\n * The authors are the page's bd-tag children and the label its eyebrow,\n * each box hidden while empty, so a bare element draws nothing.\n *\n * bd-blog-authors until the blog folded into the package's components\n * (DEX-29414), with bd-blog-tag chips.\n */\n@defineElement('bd-authors')\nexport class BdAuthors extends LitElement {\n static styles = [authorsCSS];\n\n _slots = new SlotController(this, { slots: ['eyebrow', ''] });\n\n render() {\n return html`\n <div class=\"authors\" part=\"authors\">\n <p class=\"authors__label\" part=\"label\" ?hidden=${!this._slots.has('eyebrow')}><slot name=\"eyebrow\"></slot></p>\n <div class=\"authors__list\" part=\"list\" ?hidden=${!this._slots.has('')}><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-authors': BdAuthors;\n }\n}\n"],"mappings":"A,kVAyBO,IAAME,EAAN,cAAwBC,CAAW,C,8BAG/B,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,UAAW,EAAE,CAAE,CAAC,C,QAF5C,KAAA,OAAA,CAACC,CAAU,C,CAI3B,QAAS,CACP,MAAO,EAAI;;yDAE0C,CAAC,KAAK,OAAO,IAAI,SAAS,EAAE;yDAC5B,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;KAG5E,CACF,EAdC,EAAAN,EAAA,CAAAO,EAAc,YAAY,CAAA,EAAAL,CAAA,E"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{SIZES as t,isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{avatarCSS as i}from"./avatar.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=class extends a{constructor(...e){super(...e),this.src=``,this.name=``,this.size=`md`}static{this.styles=[i]}willUpdate(e){e.has(`size`)&&!n(t,this.size)&&(this.size=`md`),e.has(`src`)&&(this._failed=!1)}get _initials(){return(this.name??``).trim().split(/\s+/).map(e=>e[0]||``).join(``).slice(0,2).toUpperCase()}render(){let e=(this.name??``).trim(),t=this.src&&!this._failed;return o`
|
|
2
2
|
<span
|
|
3
3
|
class="avatar"
|
|
4
|
-
role=${e?`img`:
|
|
5
|
-
aria-label=${e||
|
|
6
|
-
aria-hidden=${e?
|
|
4
|
+
role=${e?`img`:s}
|
|
5
|
+
aria-label=${e||s}
|
|
6
|
+
aria-hidden=${e?s:`true`}
|
|
7
7
|
>
|
|
8
|
-
${t?
|
|
8
|
+
${t?o`<img src=${this.src} alt="" @error=${()=>{this._failed=!0}} />`:this._initials}
|
|
9
9
|
</span>
|
|
10
|
-
`}};
|
|
10
|
+
`}};r([c({type:String})],u.prototype,`src`,void 0),r([c({type:String})],u.prototype,`name`,void 0),r([c({type:String,reflect:!0})],u.prototype,`size`,void 0),r([l()],u.prototype,`_failed`,void 0),u=r([e(`bd-avatar`)],u);export{u as BdAvatar};
|
|
11
11
|
//# sourceMappingURL=avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.js","names":["_decorate","__decorate","BdAvatar","LitElement","_args","avatarCSS","changed","
|
|
1
|
+
{"version":3,"file":"avatar.js","names":["_decorate","__decorate","BdAvatar","LitElement","_args","avatarCSS","changed","isOneOf","SIZES","w","name","showImage","nothing","property","state","defineElement"],"sources":["../../../../src/components/avatar/avatar.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { avatarCSS } from './avatar.css.ts';\nimport { isOneOf, SIZES, type Size } from '#shared/prop-vocabulary.ts';\n\n@defineElement('bd-avatar')\nexport class BdAvatar extends LitElement {\n static styles = [avatarCSS];\n\n @property({ type: String })\n src = '';\n @property({ type: String })\n name: string | null = '';\n @property({ type: String, reflect: true })\n size: Size = 'md';\n @state()\n _failed?: boolean;\n\n willUpdate(changed: PropertyValues<this>) {\n // sm, md or lg; anything else, the 3.x small / default / large included, is md\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n // a new image gets its own chance to load\n if (changed.has('src')) this._failed = false;\n }\n\n /* The first letter of each word, at most two, upper-cased. name can be\n null -- a removed attribute sets it so -- and used to throw on split. */\n get _initials() {\n return (this.name ?? '').trim()\n .split(/\\s+/)\n .map(w => w[0] || '')\n .join('')\n .slice(0, 2)\n .toUpperCase();\n }\n\n /* THE FALLBACKS.\n An image that fails to load used to stay on screen as an empty circle;\n it now falls back to the initials, as having no src does.\n\n With no name there is nothing to say, so the avatar is hidden from\n assistive technology instead of being announced: it used to be an img\n named \"Avatar\", which tells a screen reader user only that a picture is\n there, on every avatar in a list. */\n render() {\n const name = (this.name ?? '').trim();\n const showImage = this.src && !this._failed;\n return html`\n <span\n class=\"avatar\"\n role=${name ? 'img' : nothing}\n aria-label=${name || nothing}\n aria-hidden=${name ? nothing : 'true'}\n >\n ${showImage\n ? html`<img src=${this.src} alt=\"\" @error=${() => { this._failed = true; }} />`\n : this._initials}\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-avatar': BdAvatar;\n }\n}\n"],"mappings":"A,mYASO,IAAME,EAAN,cAAuBC,CAAW,C,8BAIjC,KAAA,IAAA,GAEgB,KAAA,KAAA,GAET,KAAA,KAAA,I,QAPG,KAAA,OAAA,CAACE,CAAS,C,CAW1B,WAAW,EAA+B,CAEpCC,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQC,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,MAE/DF,EAAQ,IAAI,KAAK,IAAG,KAAK,QAAU,GACzC,CAIA,IAAI,WAAY,CACd,OAAQ,KAAK,MAAQ,GAAA,CAAI,KAAK,CAAC,CAC5B,MAAM,KAAK,CAAC,CACZ,IAAI,GAAKG,EAAE,IAAM,EAAE,CAAC,CACpB,KAAK,EAAE,CAAC,CACR,MAAM,EAAG,CAAC,CAAC,CACX,YAAY,CACjB,CAUA,QAAS,CACP,IAAMC,GAAQ,KAAK,MAAQ,GAAA,CAAI,KAAK,EAC9BC,EAAY,KAAK,KAAO,CAAC,KAAK,QACpC,MAAO,EAAI;;;eAGAD,EAAO,MAAQE,EAAQ;qBACjBF,GAAQE,EAAQ;sBACfF,EAAOE,EAAU,OAAO;;UAEpCD,EACE,CAAI,YAAY,KAAK,IAAI,qBAAuB,CAAE,KAAK,QAAU,EAAM,EAAE,KACzE,KAAK,UAAU;;KAGzB,CACF,EAnDGX,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAa,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAX,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCF,EAAA,CAAAc,EAAM,CAAA,EAAAZ,EAAA,UAAA,UAAA,IAAA,EAAA,EAVR,EAAAF,EAAA,CAAAe,EAAc,WAAW,CAAA,EAAAb,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:where(bd-award:not(bd-awards>bd-award),bd-awards[layout=compact]>bd-award,bd-awards[layout=quotes]>bd-award)>bd-mark:not([width]):not([height])>svg{width:auto;height:var(--dimension-56)}@media (width<576px){:where(bd-awards[layout=bar]>bd-award)>bd-mark:not([width]):not([height])>svg{width:auto;height:var(--dimension-32)}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=award-marks.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"award-marks.css.js","names":["award_marks_css_default"],"sources":["../../../../src/components/awards/award-marks.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\n/* The marks' heights, which are the layout's: the bar draws its marks at the\n 64 they are drawn at and at half that below sm, compact and quotes at 56,\n grid at 64 -- the heights 3.x wrote on the bd-mark it rendered, and wrote\n on its svg for the bar's phone row. A bd-award outside a bd-awards draws\n compact, at 56.\n\n The page writes the bd-mark, and bd-mark renders its svg into the light DOM\n (icons/mark.ts), so the svg is in the page's tree, where no rule from a\n shadow root reaches it: ::slotted() stops at the bd-mark. bd-award adopts\n this sheet into the tree it sits in (shared/adopt-styles.ts), and the sheet\n sets the svg's height, its width following the viewBox; each rule keeps to\n the awards by naming their tags in :where(). The layout is bd-awards'\n reflected attribute, which it always holds once upgraded. A mark the page\n sized -- a width or a height -- is left alone.\n\n It replaces a zoom of the whole mark (56 of 64, half of 64), which sat\n behind @supports while the target was Widely available, so a browser\n without it drew 64. A height works everywhere, and every award mark is\n drawn 64 tall, so the two draw the same svg. */\nexport default css`\n :where(bd-award:not(bd-awards > bd-award), bd-awards[layout=\"compact\"] > bd-award, bd-awards[layout=\"quotes\"] > bd-award) > bd-mark:not([width]):not([height]) > svg {\n width: auto;\n height: var(--dimension-56);\n }\n\n @media ${unsafeCSS(below(\"sm\"))} {\n :where(bd-awards[layout=\"bar\"] > bd-award) > bd-mark:not([width]):not([height]) > svg {\n width: auto;\n height: var(--dimension-32);\n }\n }\n`;\n"],"mappings":"A,4DAsBA,IAAAA,EAAe,CAAG,wU"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}:host([hidden]),.award [hidden]{display:none}.award{box-sizing:border-box}.media{flex-shrink:0;justify-content:center;align-items:center;display:flex}.copy{flex-direction:column;min-width:0;display:flex}.text,.caption{margin:0}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);--bd-heading-color:var(--color-text-brand);--bd-paragraph-color:var(--color-text-brand)}.quote{align-items:center;gap:var(--spacing-8);flex-direction:column;display:flex}.quote .copy{display:contents}.quote .text{font-size:var(--typography-body-small-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-secondary);font-style:italic}.quote .text:before,.quote .text:after{content:"\\""}.quote .caption{font-size:var(--typography-fontSize-xs);color:var(--color-text-muted)}.spotlight{gap:var(--spacing-16);flex-direction:column;min-width:0;display:flex}.spotlight .media{flex:none;width:160px;display:block}.spotlight .copy{gap:var(--spacing-12)}.spotlight .text{font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-text-primary)}@media (width>=576px){.spotlight{gap:var(--spacing-24)}}@media (width>=992px){.spotlight{gap:var(--spacing-48);flex-direction:row}.spotlight .copy{gap:var(--spacing-24);flex:1}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=award.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"award.css.js","names":["award_css_default"],"sources":["../../../../src/components/awards/award.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, headingRole, ink } from \"#shared/token-scales.ts\";\n\n/* One award, drawn three ways: a badge (the bar, compact and grid layouts),\n a quote card (quotes) and a spotlight slide (spotlight). Each is the look\n 3.x's bd-awards-section, bd-awards-flex and bd-awards-spotlight drew for an\n entry of their arrays, moved with its rules and measured against them. The\n bd-awards around the award sizes the host -- a quote card's width and\n height, a badge's place in the row -- and the award draws what is inside. */\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n :host([hidden]) {\n display: none;\n }\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 .award [hidden] {\n display: none;\n }\n\n .award {\n box-sizing: border-box;\n }\n\n /* === THE MARK ===\n 3.x's badge box: the mark centred, no padding. */\n .media {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n /* The mark's height is the layout's, set on the page's svg by the sheet\n the award adopts into its root (award-marks.css.ts). */\n\n .copy {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .text,\n .caption {\n margin: 0;\n }\n\n /* A spotlight award's heading: the h3 role in brand ink, at every level\n the page picks -- 3.x's visual-level=\"h3\" color=\"primary\". */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h3\"))}\n ${unsafeCSS(ink(\"primary\"))}\n }\n\n /* === QUOTE CARD ===\n The mark, the quote and its source in one centred column, 8 apart, on\n no ground of its own: it sits on the section's. */\n .quote {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n }\n\n .quote .copy {\n display: contents;\n }\n\n .quote .text {\n /* A pull quote is supporting body copy, and it wraps -- three lines at\n the widths this renders at. */\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 letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n font-style: italic;\n /* Pull quote: supporting, not primary. */\n color: var(--color-text-secondary);\n }\n\n /* The quotation marks are the award's, not the page's words: 3.x wrote\n them into the text, which put them in the copy a page could not edit. */\n .quote .text::before {\n content: '\"';\n }\n\n .quote .text::after {\n content: '\"';\n }\n\n .quote .caption {\n /* no role: 12px text that no role in the vocabulary describes.\n body-xsmall is deliberately size-only (tokens.ts), and the complete\n roles at this step -- label-small, caption-default, caption-small --\n each bring a family or a colour this line does not have. 3.x's\n awards-flex.css.ts recorded the same decision for the same line. */\n font-size: var(--typography-fontSize-xs);\n /* same as the quick-answer labels: subtle reads at 4.33:1 on this tint. */\n color: var(--color-text-muted);\n }\n\n /* === SPOTLIGHT SLIDE ===\n Mobile first, in the three steps the Figma set draws: the logo over the\n copy, 16 apart below sm and 24 from it; from lg the logo beside the copy,\n 48 apart. */\n .spotlight {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n min-width: 0;\n }\n\n .spotlight .media {\n display: block;\n flex: none;\n /* no token: the award column. The marks are publisher artwork at 160\n wide (IDC 132), and the column holds 160 so every title starts on the\n same line; the dimension scale stops at 64. */\n width: 160px;\n }\n\n .spotlight .copy {\n gap: var(--spacing-12);\n }\n\n /* The paragraph is the body-regular role, in primary ink. */\n .spotlight .text {\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-text-primary);\n }\n\n @media ${unsafeCSS(above(\"sm\"))} {\n .spotlight {\n gap: var(--spacing-24);\n }\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .spotlight {\n flex-direction: row;\n gap: var(--spacing-48);\n }\n\n .spotlight .copy {\n flex: 1;\n gap: var(--spacing-24);\n }\n }\n`;\n"],"mappings":"A,4DASA,IAAAA,EAAe,CAAG,s+D"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
export declare const AWARDS_LAYOUTS: readonly ["bar", "compact", "grid", "quotes", "spotlight"];
|
|
5
|
+
export type AwardsLayout = typeof AWARDS_LAYOUTS[number];
|
|
6
|
+
export interface AwardsContext {
|
|
7
|
+
layout: AwardsLayout;
|
|
8
|
+
list: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function contextOf(parent: Element): AwardsContext;
|
|
11
|
+
type Part = "media" | "title" | "" | "caption";
|
|
12
|
+
/**
|
|
13
|
+
* One award of a bd-awards, in every layout: its mark, and what is said about
|
|
14
|
+
* it.
|
|
15
|
+
*
|
|
16
|
+
* <bd-award>
|
|
17
|
+
* <bd-mark slot="media" name="top-product" label="AV-TEST Top Product"></bd-mark>
|
|
18
|
+
* Outstanding scores in independent lab tests and our own protection tests
|
|
19
|
+
* <span slot="caption">PCMag, August 2025</span>
|
|
20
|
+
* </bd-award>
|
|
21
|
+
*
|
|
22
|
+
* <bd-award>
|
|
23
|
+
* <bd-img slot="media" src="/images/awards/idc.png" alt="IDC" width="132" height="80" fit="contain"></bd-img>
|
|
24
|
+
* <bd-h slot="title" as="h3">A Major Player in MDR</bd-h>
|
|
25
|
+
* In the IDC MarketScape: …
|
|
26
|
+
* </bd-award>
|
|
27
|
+
*
|
|
28
|
+
* It replaces an entry of 3.x's `desktopAwards`, `badges` and `awards`
|
|
29
|
+
* arrays. The parts:
|
|
30
|
+
*
|
|
31
|
+
* media the mark: a bd-mark with its label, or a spotlight's logo bd-img
|
|
32
|
+
* title a spotlight award's heading, at the h3 role in brand ink
|
|
33
|
+
* default the words: a spotlight's paragraph, or a quote, which the award
|
|
34
|
+
* draws between quotation marks of its own (CSS, not text)
|
|
35
|
+
* caption the quote's source and date: "PCMag, August 2025"
|
|
36
|
+
*
|
|
37
|
+
* The bd-awards around it decides the look. In the bar, compact and grid
|
|
38
|
+
* layouts it is the mark alone, drawn 64, 56 and 64 tall; in quotes, the mark
|
|
39
|
+
* over the quote and its caption; in spotlight, the logo beside (from lg) or
|
|
40
|
+
* over its title and paragraph. The award reads that layout from its parent
|
|
41
|
+
* on connect, and the parent tells it again when it changes; nothing is
|
|
42
|
+
* written on either element. In a layout that is a list it is a list item,
|
|
43
|
+
* through ElementInternals, so the role is the element's own and leaves the
|
|
44
|
+
* page's markup alone; in a carousel the slide around it is the group, and
|
|
45
|
+
* outside a bd-awards it is no item of anything.
|
|
46
|
+
*
|
|
47
|
+
* 3.x's `type` (red, dark) was styled nowhere and is gone; `id` is the page's
|
|
48
|
+
* own attribute, as on any element.
|
|
49
|
+
*/
|
|
50
|
+
export declare class BdAward extends LitElement {
|
|
51
|
+
static styles: import("lit").CSSResult[];
|
|
52
|
+
private readonly _internals;
|
|
53
|
+
private _layout;
|
|
54
|
+
_slots: SlotController<Part>;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
/** Re-read the bd-awards around it. bd-awards calls this when its layout changes. */
|
|
57
|
+
_fromParent(): void;
|
|
58
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
"bd-award": BdAward;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as r}from"../shared/controller.slot.js";import{adoptStyles as i}from"../shared/adopt-styles.js";import a from"./award-marks.css.js";import o from"./award.css.js";import{LitElement as s,html as c}from"lit";import{state as l}from"lit/decorators.js";var u=[`bar`,`compact`,`grid`,`quotes`,`spotlight`];function d(e){let n=e._awardContext;if(n)return n;let r=e.getAttribute(`layout`)??``,i=t(u,r)?r:`compact`;return{layout:i,list:i!==`spotlight`&&!(i===`quotes`&&e.hasAttribute(`carousel`))}}var f=class extends s{constructor(...e){super(...e),this._internals=this.attachInternals(),this._layout=`compact`,this._slots=new r(this,{slots:[`media`,`title`,``,`caption`]})}static{this.styles=[o]}connectedCallback(){super.connectedCallback(),i(this,`bd-award`,a),this._fromParent()}_fromParent(){let e=this.parentElement,t=e?.localName===`bd-awards`?d(e):null;this._layout=t?.layout??`compact`,this._internals.role=t?.list?`listitem`:null}render(){let e=e=>this._slots.has(e),t=this._layout===`spotlight`?`spotlight`:this._layout===`quotes`?`quote`:`badge`;return c`
|
|
2
|
+
<div class="award ${t} ${this._layout}">
|
|
3
|
+
<div class="media" ?hidden=${!e(`media`)}><slot name="media"></slot></div>
|
|
4
|
+
<div class="copy" ?hidden=${!e(`title`)&&!e(``)&&!e(`caption`)}>
|
|
5
|
+
<div class="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
6
|
+
<p class="text" ?hidden=${!e(``)}><slot></slot></p>
|
|
7
|
+
<p class="caption" ?hidden=${!e(`caption`)}><slot name="caption"></slot></p>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
`}};n([l()],f.prototype,`_layout`,void 0),f=n([e(`bd-award`)],f);export{u as AWARDS_LAYOUTS,f as BdAward,d as contextOf};
|
|
11
|
+
//# sourceMappingURL=award.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"award.js","names":["awardCSS","markCSS","_decorate","__decorate","award_marks_css_default","award_css_default","AWARDS_LAYOUTS","contextOf","known","parent","attr","layout","isOneOf","BdAward","LitElement","_args","SlotController","adoptStyles","context","has","part","kind","state","defineElement"],"sources":["../../../../src/components/awards/award.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { state } from \"lit/decorators.js\";\nimport { adoptStyles } from \"#shared/adopt-styles.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport awardCSS from \"./award.css.ts\";\nimport markCSS from \"./award-marks.css.ts\";\n\n/* bd-awards' layouts, which decide how each of its awards is drawn. Declared\n here rather than in awards.ts, which imports this module to register the\n family. */\nexport const AWARDS_LAYOUTS = [\"bar\", \"compact\", \"grid\", \"quotes\", \"spotlight\"] as const;\nexport type AwardsLayout = typeof AWARDS_LAYOUTS[number];\n\n/* What an award takes from the bd-awards around it: the layout, and whether\n that layout is a list (bar, compact, grid, the quotes laid side by side)\n or slides (spotlight, the quotes as a carousel). */\nexport interface AwardsContext {\n layout: AwardsLayout;\n list : boolean;\n}\n\n/* What a bd-awards that has not upgraded yet says, from its attributes, as\n the upgraded one says it from its properties (awards.ts, _awardContext). */\nexport function contextOf(parent: Element): AwardsContext {\n const known = (parent as Element & { _awardContext?: AwardsContext })._awardContext;\n if (known) return known;\n const attr = parent.getAttribute(\"layout\") ?? \"\";\n const layout: AwardsLayout = isOneOf(AWARDS_LAYOUTS, attr) ? attr : \"compact\";\n return { layout, list: layout !== \"spotlight\" && !(layout === \"quotes\" && parent.hasAttribute(\"carousel\")) };\n}\n\ntype Part = \"media\" | \"title\" | \"\" | \"caption\";\n\n/**\n * One award of a bd-awards, in every layout: its mark, and what is said about\n * it.\n *\n * <bd-award>\n * <bd-mark slot=\"media\" name=\"top-product\" label=\"AV-TEST Top Product\"></bd-mark>\n * Outstanding scores in independent lab tests and our own protection tests\n * <span slot=\"caption\">PCMag, August 2025</span>\n * </bd-award>\n *\n * <bd-award>\n * <bd-img slot=\"media\" src=\"/images/awards/idc.png\" alt=\"IDC\" width=\"132\" height=\"80\" fit=\"contain\"></bd-img>\n * <bd-h slot=\"title\" as=\"h3\">A Major Player in MDR</bd-h>\n * In the IDC MarketScape: …\n * </bd-award>\n *\n * It replaces an entry of 3.x's `desktopAwards`, `badges` and `awards`\n * arrays. The parts:\n *\n * media the mark: a bd-mark with its label, or a spotlight's logo bd-img\n * title a spotlight award's heading, at the h3 role in brand ink\n * default the words: a spotlight's paragraph, or a quote, which the award\n * draws between quotation marks of its own (CSS, not text)\n * caption the quote's source and date: \"PCMag, August 2025\"\n *\n * The bd-awards around it decides the look. In the bar, compact and grid\n * layouts it is the mark alone, drawn 64, 56 and 64 tall; in quotes, the mark\n * over the quote and its caption; in spotlight, the logo beside (from lg) or\n * over its title and paragraph. The award reads that layout from its parent\n * on connect, and the parent tells it again when it changes; nothing is\n * written on either element. In a layout that is a list it is a list item,\n * through ElementInternals, so the role is the element's own and leaves the\n * page's markup alone; in a carousel the slide around it is the group, and\n * outside a bd-awards it is no item of anything.\n *\n * 3.x's `type` (red, dark) was styled nowhere and is gone; `id` is the page's\n * own attribute, as on any element.\n */\n@defineElement(\"bd-award\")\nexport class BdAward extends LitElement {\n static styles = [awardCSS];\n\n private readonly _internals = this.attachInternals();\n\n @state()\n private _layout: AwardsLayout = \"compact\";\n\n _slots = new SlotController<Part>(this, { slots: [\"media\", \"title\", \"\", \"caption\"] });\n\n connectedCallback() {\n super.connectedCallback();\n /* The marks' heights: the page's bd-mark draws its svg in the page's\n tree, so the rule that sizes it is a sheet in that tree\n (award-marks.css.ts). */\n adoptStyles(this, \"bd-award\", markCSS);\n this._fromParent();\n }\n\n /** Re-read the bd-awards around it. bd-awards calls this when its layout changes. */\n _fromParent() {\n const parent = this.parentElement;\n const context = parent?.localName === \"bd-awards\" ? contextOf(parent) : null;\n this._layout = context?.layout ?? \"compact\";\n this._internals.role = context?.list ? \"listitem\" : null;\n }\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n const kind = this._layout === \"spotlight\" ? \"spotlight\" : this._layout === \"quotes\" ? \"quote\" : \"badge\";\n return html`\n <div class=\"award ${kind} ${this._layout}\">\n <div class=\"media\" ?hidden=${!has(\"media\")}><slot name=\"media\"></slot></div>\n <div class=\"copy\" ?hidden=${!has(\"title\") && !has(\"\") && !has(\"caption\")}>\n <div class=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <p class=\"text\" ?hidden=${!has(\"\")}><slot></slot></p>\n <p class=\"caption\" ?hidden=${!has(\"caption\")}><slot name=\"caption\"></slot></p>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-award\": BdAward;\n }\n}\n"],"mappings":"A,yeAcA,IAAaM,EAAiB,CAAC,MAAO,UAAW,OAAQ,SAAU,WAAW,EAa9E,SAAgBC,EAAU,EAAgC,CACxD,IAAMC,EAASC,EAAuD,cACtE,GAAID,EAAO,OAAOA,EAClB,IAAME,EAAOD,EAAO,aAAa,QAAQ,GAAK,GACxCE,EAAuBC,EAAQN,EAAgBI,CAAI,EAAIA,EAAO,UACpE,MAAO,CAAE,SAAQ,KAAMC,IAAW,aAAe,EAAEA,IAAW,UAAYF,EAAO,aAAa,UAAU,EAAG,CAC7G,CA2CO,IAAMI,EAAN,cAAsBC,CAAW,C,8BAGR,KAAA,WAAA,KAAK,gBAAgB,EAGnB,KAAA,QAAA,UAEvB,KAAA,OAAA,IAAIE,EAAqB,KAAM,CAAE,MAAO,CAAC,QAAS,QAAS,GAAI,SAAS,CAAE,CAAC,C,QAPpE,KAAA,OAAA,CAAChB,CAAQ,C,CASzB,mBAAoB,CAClB,MAAM,kBAAkB,EAIxBiB,EAAY,KAAM,WAAYhB,CAAO,EACrC,KAAK,YAAY,CACnB,CAGA,aAAc,CACZ,IAAMQ,EAAS,KAAK,cACdS,EAAUT,GAAQ,YAAc,YAAcF,EAAUE,CAAM,EAAI,KACxE,KAAK,QAAUS,GAAS,QAAU,UAClC,KAAK,WAAW,KAAOA,GAAS,KAAO,WAAa,IACtD,CAEA,QAAS,CACP,IAAMC,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAO,KAAK,UAAY,YAAc,YAAc,KAAK,UAAY,SAAW,QAAU,QAChG,MAAO,EAAI;0BACWA,EAAK,GAAG,KAAK,QAAQ;qCACV,CAACF,EAAI,OAAO,EAAE;oCACf,CAACA,EAAI,OAAO,GAAK,CAACA,EAAI,EAAE,GAAK,CAACA,EAAI,SAAS,EAAE;uCAC1C,CAACA,EAAI,OAAO,EAAE;oCACjB,CAACA,EAAI,EAAE,EAAE;uCACN,CAACA,EAAI,SAAS,EAAE;;;KAIrD,CACF,EApCGjB,EAAA,CAAAoB,EAAM,CAAA,EAAAT,EAAA,UAAA,UAAA,IAAA,EAAA,EANR,EAAAX,EAAA,CAAAqB,EAAc,UAAU,CAAA,EAAAV,CAAA,E"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: import("lit").CSSResult;
|
|
2
|
+
export default _default;
|