@repobit/dex-system-design 3.1.2 → 4.1.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 +1075 -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 +16 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +10 -12
- 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 +85 -0
- package/dist/src/components/select/select.js +36 -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 +35 -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 +4110 -2766
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"bar-chart.js","names":["barChartCSS","_decorate","__decorate","bar_chart_css_default","_BdBarChartItem","readStretchVars","styles","el","SCORE_ANIM_MS","SCORE_ANIM_EASING","t","compareIntroDone","compareIntroTimer","shouldPlayCompareIntro","prefersReducedMotion","scheduleCompareIntroDone","APPEARANCES","ORIENTATIONS","BdBarChartItem","LitElement","SlotController","changed","isOneOf","hasValue","valueMoved","k","target","ref","maxM","start","t0","tick","u","now","e","s","r","linearPct","stretch","rMinStr","rMin","denom","wMin","fillMin","g","gamma","stretched","m","v","internals","max","score","nothing","property","state","defineElement","BdBarChart","_args","slot","bars","primary","b","secondaries","sc","has","name","article","cls","parts","icon","title","description","footer","BdBarChartGrid","_args2","ensembleCSS","gapStyle"],"sources":["../../../../src/components/bar-chart/bar-chart.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\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\";\n/* The atoms the page writes into the chart's slots: a bd-img icon, a bd-h\n title, a bd-p description and a bd-p footer holding a bd-link. The chart\n renders none of them now, but 3.x's module registered all four, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/p/p.ts\";\nimport barChartCSS from \"./bar-chart.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\nfunction readStretchVars(el: Element) {\n const styles = getComputedStyle(el);\n return {\n stretch: styles.getPropertyValue(\"--cs-bar-stretch\").trim() !== \"0\",\n rMinStr: styles.getPropertyValue(\"--cs-stretch-r-min\").trim(),\n fillMin: parseFloat(styles.getPropertyValue(\"--cs-bar-fill-min\").trim()),\n gamma : parseFloat(styles.getPropertyValue(\"--cs-bar-stretch-gamma\").trim())\n };\n}\n\nconst SCORE_ANIM_MS = 800;\nconst SCORE_ANIM_EASING = (t: number) => 1 - (1 - t) ** 3;\n\nlet compareIntroDone = false;\nlet compareIntroTimer: ReturnType<typeof setTimeout> | 0 = 0;\n\n/* Reduced motion is asked when the intro would play, not once when the module\n loaded: a reader who turns it on before scrolling to the bars gets them still. */\nfunction shouldPlayCompareIntro() { return !compareIntroDone && !prefersReducedMotion(); }\n\nfunction scheduleCompareIntroDone() {\n if (compareIntroDone || compareIntroTimer) return;\n compareIntroTimer = setTimeout(() => {\n compareIntroTimer = 0;\n compareIntroDone = true;\n }, SCORE_ANIM_MS + 120);\n}\n\nfunction prefersReducedMotion() {\n try { return window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches; }\n catch { return false; }\n}\n\nconst APPEARANCES = [\"primary\", \"secondary\"] as const;\ntype Appearance = typeof APPEARANCES[number];\n\nconst ORIENTATIONS = [\"vertical\", \"horizontal\"] as const;\ntype Orientation = typeof ORIENTATIONS[number];\n\n/**\n * One bar of a bd-bar-chart: a brand and its score.\n *\n * <bd-bar-chart-item score=\"5.95\" max-score=\"6\" appearance=\"primary\">Bitdefender</bd-bar-chart-item>\n * <bd-bar-chart-item score=\"6\" appearance=\"primary\">Perfect score<span slot=\"value\">6 / 6</span></bd-bar-chart-item>\n *\n * The default slot is the brand's name, drawn at the start of the bar; the\n * `value` slot is the text drawn at its end in place of the score, which\n * 3.x's `score-label` was. While `value` holds content the score is not\n * animated, because there is no number to count. `score` stays an\n * attribute: it is the datum the bar is drawn from and animates (ADR 0003,\n * rule 6).\n *\n * The bar is a meter, and says so through its internals: its role, its name\n * -- the default slot's words, copied, since an aria-labelledby on the host\n * cannot reach into its own shadow root -- and its value: the score, out of\n * `max-score`, and the `value` slot's words as aria-valuetext when it has\n * some. Its inside is aria-hidden, so the brand and the score are announced\n * once, as the meter's. Internals rather than attributes: the page keeps\n * the host's own attributes, and nothing is written on it but the\n * reflected `appearance`.\n */\n@defineElement(\"bd-bar-chart-item\")\nclass BdBarChartItem extends LitElement {\n static styles = [barChartCSS];\n\n @property({ type: Number })\n score = 0;\n @property({ type: Number, attribute: \"max-score\" })\n maxScore = 6;\n /** primary (the brand the chart is about, a full brand-filled bar) | secondary (default) */\n @property({ type: String, reflect: true })\n appearance: Appearance = \"secondary\";\n @property({ type: Number, attribute: \"reference-score\" })\n referenceScore = 0;\n @property({ type: Number })\n scale = 1;\n @state()\n _animatedScore = NaN;\n\n /* Both slots are followed into their words: an edit to the brand or to\n the value text re-renders, so the copied name and value text follow. */\n _slots = new SlotController(this, { slots: [\"\", \"value\"], text: [\"\", \"value\"] });\n\n _scoreAnimRaf = 0;\n _internals: ElementInternals | undefined;\n /* Whether the last update had a value slot, so filling or emptying it\n starts or stops the count as a changed property does. */\n _hadValue : boolean | undefined;\n\n constructor() {\n super();\n this._internals = this.attachInternals?.();\n if (this._internals) this._internals.role = \"meter\";\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!shouldPlayCompareIntro()) {\n this.classList.add(\"compare-no-motion\");\n return;\n }\n scheduleCompareIntroDone();\n if (this._shouldAnimateCompetitorScore()) {\n this._animatedScore = this._scoreAnimStart();\n }\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._cancelScoreAnim();\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"secondary\";\n }\n\n updated(changed: PropertyValues<this>) {\n super.updated(changed);\n this._syncMeter();\n const hasValue = this._slots.has(\"value\");\n const valueMoved = hasValue !== this._hadValue;\n this._hadValue = hasValue;\n const deps = [\"score\", \"referenceScore\", \"appearance\", \"maxScore\"] as const;\n if (!valueMoved && !deps.some((k) => changed.has(k))) return;\n\n this._cancelScoreAnim();\n if (!shouldPlayCompareIntro()) {\n this.classList.add(\"compare-no-motion\");\n this._animatedScore = NaN;\n return;\n }\n if (this._shouldAnimateCompetitorScore()) {\n this._animatedScore = this._scoreAnimStart();\n this._runScoreAnim();\n } else {\n this._animatedScore = NaN;\n }\n }\n\n _shouldAnimateCompetitorScore() {\n if (this.appearance === \"primary\" || this._slots.has(\"value\")) return false;\n return Number.isFinite(parseFloat(String(this.score)));\n }\n\n _scoreAnimStart() {\n const target = parseFloat(String(this.score));\n const ref = parseFloat(String(this.referenceScore));\n const maxM = parseFloat(String(this.maxScore)) || 6;\n let start = ref > 0 ? ref : maxM;\n if (start <= target) start = Math.min(maxM, target + 0.2);\n return start;\n }\n\n _cancelScoreAnim() {\n if (this._scoreAnimRaf) {\n cancelAnimationFrame(this._scoreAnimRaf);\n this._scoreAnimRaf = 0;\n }\n }\n\n _runScoreAnim() {\n const target = parseFloat(String(this.score));\n const start = this._animatedScore;\n if (!Number.isFinite(target) || !Number.isFinite(start)) return;\n\n const t0 = performance.now();\n const tick = (now: number) => {\n const u = Math.min(1, (now - t0) / SCORE_ANIM_MS);\n const e = SCORE_ANIM_EASING(u);\n this._animatedScore = start + (target - start) * e;\n if (u < 1) {\n this._scoreAnimRaf = requestAnimationFrame(tick);\n } else {\n this._scoreAnimRaf = 0;\n this._animatedScore = NaN;\n this.requestUpdate();\n }\n };\n this._scoreAnimRaf = requestAnimationFrame(tick);\n }\n\n get _pct() {\n const s = parseFloat(String(this.score)) || 0;\n if (this.appearance === \"primary\") return 100;\n\n const ref = parseFloat(String(this.referenceScore));\n if (ref > 0) {\n const r = Math.min(1, Math.max(0, s / ref));\n const linearPct = r * 100;\n const { stretch, rMinStr, fillMin, gamma } = readStretchVars(this);\n\n if (!stretch || !rMinStr || rMinStr === \"none\") {\n return Math.min(100, Math.max(0, linearPct));\n }\n\n const rMin = parseFloat(rMinStr);\n if (Number.isNaN(rMin) || rMin >= 1 - 1e-9) {\n return Math.min(100, Math.max(0, linearPct));\n }\n\n const denom = 1 - rMin;\n const wMin = Number.isFinite(fillMin) ? fillMin : 50;\n const g = Number.isFinite(gamma) && gamma > 0 ? gamma : 1;\n const u = (r - rMin) / denom;\n const t = Math.min(1, Math.max(0, u));\n const shaped = Math.pow(t, g);\n const stretched = wMin + shaped * (100 - wMin);\n return Math.min(100, Math.max(0, stretched));\n }\n\n const m = parseFloat(String(this.maxScore)) || 6;\n if (m === 0) return 0;\n const rawPct = Math.min(100, Math.max(0, (s / m) * 100));\n return rawPct * (this.scale || 1);\n }\n\n _renderScoreText() {\n if (this.appearance !== \"primary\" && Number.isFinite(this._animatedScore)) {\n return BdBarChartItem._formatScoreTick(this._animatedScore);\n }\n return this.score;\n }\n\n static _formatScoreTick(v: number) {\n return (Math.round(v * 100) / 100).toFixed(2);\n }\n\n _syncMeter() {\n const internals = this._internals;\n if (!internals) return;\n const max = this.maxScore ?? 6;\n const score = parseFloat(String(this.score));\n internals.ariaLabel = this._slots.text(\"\") || null;\n internals.ariaValueMin = \"0\";\n internals.ariaValueMax = String(max);\n internals.ariaValueNow = Number.isFinite(score) ? String(score) : null;\n internals.ariaValueText = this._slots.text(\"value\") || null;\n }\n\n /* The value slot is always rendered; the score is drawn beside it only\n while it is empty, so the page's text replaces the number rather than\n following it. */\n render() {\n return html`\n <div class=\"bar-track\">\n <div class=\"bar-fill\" style=\"width: ${this._pct}%\">\n <span class=\"bar-label\" aria-hidden=\"true\"><slot></slot></span>\n <span class=\"bar-score\" aria-hidden=\"true\"><slot name=\"value\"></slot>${this._slots.has(\"value\") ? nothing : this._renderScoreText()}</span>\n </div>\n </div>\n `;\n }\n}\n\n\n/**\n * A chart of bars that scale and stretch together: an icon, a title, a\n * description, the bars, and a footer for the source.\n *\n * <bd-bar-chart bars-label=\"Scores by brand\" scale-note=\"Bar lengths are scaled …\">\n * <bd-img slot=\"icon\" src=\"/assets/shield-check.svg\" alt=\"\" width=\"48\" height=\"48\" fit=\"contain\"></bd-img>\n * <bd-h slot=\"title\" as=\"h4\">Best Protection</bd-h>\n * <bd-p slot=\"description\">Scale of 0–6. Higher is better.</bd-p>\n * <bd-bar-chart-item score=\"5.95\" appearance=\"primary\">Bitdefender</bd-bar-chart-item>\n * <bd-bar-chart-item score=\"5.59\" scale=\"0.93\">Norton</bd-bar-chart-item>\n * <bd-p slot=\"footer\" appearance=\"xsmall\">Overall Score. Source <bd-link href=\"…\">AV TEST.org</bd-link></bd-p>\n * </bd-bar-chart>\n *\n * The chart sets its title's size (the h4 role 3.x rendered, a step down\n * below md; the h3 role horizontal) and its description's (body-regular,\n * body-small below md); the page picks the title's level. Each part's box is\n * hidden while its slot is empty.\n *\n * Names follow the text. The <article> is named by aria-labelledby on the\n * box around the title slot, written only while the slot holds something:\n * aria-labelledby resolves in the root it is written in, and the box is in\n * this one beside the article, while accname walks the flat tree through\n * the slot into the page's bd-h. (3.x pointed it at an id on its own bd-h,\n * and at nothing at all when a page filled its `header` slot.) `bars-label`\n * names the bars' group and `scale-note` is the sr-only description the\n * article's aria-describedby points at; both are accessible names only and\n * have no default, so without `scale-note` there is no aria-describedby.\n *\n * orientation=\"horizontal\" puts the icon, title, description and footer in\n * one column and the bars in the other, and stacks them where the chart is\n * narrow. `without-stretch` turns the stretch mapping off.\n */\n@defineElement(\"bd-bar-chart\")\nclass BdBarChart extends LitElement {\n static styles = [barChartCSS];\n\n /** vertical (default) | horizontal */\n @property({ type: String, reflect: true })\n orientation: Orientation = \"vertical\";\n @property({ type: Boolean, attribute: \"without-stretch\" })\n withoutStretch = false;\n @property({ type: Number, attribute: \"bar-fill-min\" })\n barFillMin = 50;\n @property({ type: Number, attribute: \"bar-stretch-gamma\" })\n barStretchGamma = 1;\n /** The bars' group's accessible name. Never rendered. */\n @property({ type: String, attribute: \"bars-label\" })\n barsLabel = \"\";\n /** The sr-only text the article's aria-describedby points at. Never rendered visibly. */\n @property({ type: String, attribute: \"scale-note\" })\n scaleNote = \"\";\n\n /* The parts' boxes follow their slots. The bars, the default slot, are\n not followed: nothing here renders from them, and their own slotchange\n handler restretches them. */\n _slots = new SlotController(this, { slots: [\"icon\", \"title\", \"description\", \"footer\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"orientation\") && !isOneOf(ORIENTATIONS, this.orientation)) this.orientation = \"vertical\";\n }\n\n firstUpdated() {\n this._syncBarStretch();\n }\n\n updated(changed: PropertyValues<this>) {\n super.updated(changed);\n if (\n changed.has(\"barFillMin\") ||\n changed.has(\"barStretchGamma\") ||\n changed.has(\"withoutStretch\")\n ) {\n this._syncBarStretch();\n }\n }\n\n /* The default slot, by name: 3.x took the first <slot> in the root, which\n in the horizontal layout was its `header` slot, so a horizontal chart\n never read its own bars. */\n _syncBarStretch() {\n const slot = this.shadowRoot?.querySelector<HTMLSlotElement>(\"slot:not([name])\");\n if (!slot) return;\n\n const bars = slot\n .assignedElements({ flatten: true })\n .filter((el): el is BdBarChartItem => el.localName === \"bd-bar-chart-item\");\n\n if (this.withoutStretch) {\n this.style.setProperty(\"--cs-bar-stretch\", \"0\");\n this._refreshBars(bars);\n return;\n }\n\n const primary = bars.find((b) => b.appearance === \"primary\");\n const ref = primary ? parseFloat(String(primary.score)) : 0;\n\n if (!ref || ref <= 0) {\n this.style.setProperty(\"--cs-bar-stretch\", \"0\");\n this._refreshBars(bars);\n return;\n }\n\n const secondaries = bars.filter((b) => b.appearance !== \"primary\");\n if (secondaries.length < 2) {\n this.style.setProperty(\"--cs-bar-stretch\", \"0\");\n this._refreshBars(bars);\n return;\n }\n\n let rMin = 1;\n for (const b of secondaries) {\n const sc = parseFloat(String(b.score));\n if (!Number.isNaN(sc)) rMin = Math.min(rMin, sc / ref);\n }\n\n if (rMin >= 1 - 1e-6) {\n this.style.setProperty(\"--cs-bar-stretch\", \"0\");\n } else {\n this.style.setProperty(\"--cs-bar-stretch\", \"1\");\n this.style.setProperty(\"--cs-stretch-r-min\", String(rMin));\n this.style.setProperty(\"--cs-bar-fill-min\", String(this.barFillMin));\n this.style.setProperty(\"--cs-bar-stretch-gamma\", String(this.barStretchGamma));\n }\n\n this._refreshBars(bars);\n }\n\n _refreshBars(bars: BdBarChartItem[]) {\n queueMicrotask(() => {\n bars.forEach((b) => b.requestUpdate?.());\n });\n }\n\n render() {\n const has = (name: \"icon\" | \"title\" | \"description\" | \"footer\") => this._slots.has(name);\n const article = (cls: string, parts: unknown) => html`\n <article\n class=\"${cls}\"\n aria-labelledby=${has(\"title\") ? \"title\" : nothing}\n aria-describedby=${this.scaleNote ? \"scale-note\" : nothing}\n >\n ${this.scaleNote ? html`<p class=\"cs-sr-only\" id=\"scale-note\">${this.scaleNote}</p>` : nothing}\n ${parts}\n </article>\n `;\n const icon = html`<div class=\"card-icon-wrap\" ?hidden=${!has(\"icon\")}><slot name=\"icon\"></slot></div>`;\n const title = html`<div class=\"card-title\" id=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>`;\n const description = html`<div class=\"card-description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>`;\n const footer = html`<div class=\"card-footnote\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></div>`;\n const bars = html`\n <div class=\"card-bars\" role=\"group\" aria-label=${this.barsLabel || nothing}>\n <slot @slotchange=${this._syncBarStretch}></slot>\n </div>\n `;\n\n /* The horizontal layout keeps 3.x's arrangement: the icon beside the\n title, the description and the footer under them in one column, the\n bars centred in the other. */\n if (this.orientation === \"horizontal\") {\n return article(\"card card--horizontal\", html`\n <div class=\"card-left\">\n <div class=\"card-left-top\" ?hidden=${!has(\"icon\") && !has(\"title\")}>${icon}${title}</div>\n ${description}\n ${footer}\n </div>\n <div class=\"card-right\">${bars}</div>\n `);\n }\n\n /* The header, the bars and the footer are three rows, which a\n bd-bar-chart-grid lines up across the charts of a row. The title and\n the description step down a size where the chart is narrow\n (bar-chart.css.ts), at one level and one appearance at every width. */\n return article(\"card\", html`\n <div class=\"card-header\" ?hidden=${!has(\"icon\") && !has(\"title\") && !has(\"description\")}>\n ${icon}\n <div class=\"card-text-wrap\" ?hidden=${!has(\"title\") && !has(\"description\")}>${title}${description}</div>\n </div>\n ${bars}\n ${footer}\n `);\n }\n}\n\n\n/**\n * The page column that lays bd-bar-chart children out in a grid and lines\n * their rows up: every vertical chart spans three of the grid's rows as a\n * subgrid -- header, bars, footer -- so the bars start on one line across a\n * row however the titles and descriptions wrap. A horizontal chart takes the\n * whole row.\n *\n * <bd-section-header layout=\"centered\">\n * <bd-h slot=\"title\" as=\"h2\">How Bitdefender Compares</bd-h>\n * </bd-section-header>\n * <bd-bar-chart-grid columns=\"2\">\n * <bd-bar-chart>…</bd-bar-chart>\n * <bd-bar-chart>…</bd-bar-chart>\n * </bd-bar-chart-grid>\n *\n * It renders no heading: 3.x's `title` and `subtitle` are the page's\n * bd-section-header before it. A page that wants the region landmark 3.x's\n * titled section drew writes its own <section aria-labelledby>.\n */\n@defineElement(\"bd-bar-chart-grid\")\nclass BdBarChartGrid extends LitElement {\n static styles = [ensembleCSS, barChartCSS];\n\n @property({ type: Number })\n columns = 2;\n /** A token reference from the spacing scale, e.g. var(--spacing-16). */\n @property({ type: String })\n gap = \"\";\n\n firstUpdated() {\n scheduleCompareIntroDone();\n }\n\n /* The charts' headers line up across a row because every chart is a\n subgrid of the grid's rows -- header, bars, footer; see bar-chart.css.ts.\n This used to be a ResizeObserver on the section, two animation frames,\n and a px min-height written on every header to match the tallest. */\n render() {\n const gapStyle = this.gap\n ? `--_cols: ${this.columns}; --cs-gap: ${this.gap}`\n : `--_cols: ${this.columns}`;\n\n return html`\n <div class=\"bd-ensemble cs-section\">\n <div class=\"cs-grid\" style=\"${gapStyle}\">\n <slot></slot>\n </div>\n </div>\n `;\n }\n}\n\nexport { BdBarChartItem, BdBarChart, BdBarChartGrid };\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-bar-chart-item\": BdBarChartItem;\n \"bd-bar-chart\" : BdBarChart;\n \"bd-bar-chart-grid\": BdBarChartGrid;\n }\n}\n"],"mappings":"A,4jBAkBA,SAASK,EAAgB,EAAa,CACpC,IAAMC,EAAS,iBAAiBC,CAAE,EAClC,MAAO,CACL,QAASD,EAAO,iBAAiB,kBAAkB,CAAC,CAAC,KAAK,IAAM,IAChE,QAASA,EAAO,iBAAiB,oBAAoB,CAAC,CAAC,KAAK,EAC5D,QAAS,WAAWA,EAAO,iBAAiB,mBAAmB,CAAC,CAAC,KAAK,CAAC,EACvE,MAAS,WAAWA,EAAO,iBAAiB,wBAAwB,CAAC,CAAC,KAAK,CAAC,CAC9E,CACF,CAEA,IAAME,EAAoB,IACpBC,EAAqB,GAAc,GAAK,EAAIC,IAAM,EAEpDC,EAAoB,GACpBC,E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AA,E,QANU,KAAA,OAAA,CAACwD,EAAa3E,CAAW,C,CAQzC,cAAe,CACbe,EAAyB,CAC3B,CAMA,QAAS,CACP,IAAM6D,EAAW,KAAK,IAClB,YAAY,KAAK,QAAQ,cAAc,KAAK,MAC5C,YAAY,KAAK,UAErB,MAAO,EAAI;;sCAEuBA,EAAS;;;;KAK7C,CACF,EA3BG3E,EAAA,CAAAoD,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAoB,EAAA,UAAA,UAAA,IAAA,EAAA,EAGzBxE,EAAA,CAAAoD,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAoB,EAAA,UAAA,MAAA,IAAA,EAAA,EAP3B,EAAAxE,EAAA,CAAAsD,EAAc,mBAAmB,CAAA,EAAAkB,CAAA,E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{BREAKPOINTS as e}from"../shared/token-scales.js";import{css as t}from"lit";var n=24,r=`1.5rem`,i=(t,n,i)=>`(width >= ${e[i]}px) and (width >= calc(${t*n}px + ${t-1} * ${r}))`,a={maxColumns:2,equalColumns:3,minCardWidth:260},o=({maxColumns:e,equalColumns:t,minCardWidth:n})=>{let r=`:host(:not([
|
|
1
|
+
import{BREAKPOINTS as e}from"../shared/token-scales.js";import{css as t}from"lit";var n=24,r=`1.5rem`,i=(t,n,i)=>`(width >= ${e[i]}px) and (width >= calc(${t*n}px + ${t-1} * ${r}))`,a={maxColumns:2,equalColumns:3,minCardWidth:260},o=({maxColumns:e,equalColumns:t,minCardWidth:n})=>{let r=`:host(:not([appearance="equal"]))`,a=`:host([appearance="equal"])`,o=`
|
|
2
2
|
${r} .bd-bentogrid-track,
|
|
3
3
|
${a} .bd-bentogrid-track {
|
|
4
4
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -24,5 +24,5 @@ import{BREAKPOINTS as e}from"../shared/token-scales.js";import{css as t}from"lit
|
|
|
24
24
|
grid-template-columns: repeat(${e}, minmax(0, 1fr));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`;return o},s=t`:host{box-sizing:border-box;width:100%;display:block}.bd-ensemble{container:bento/inline-size}:host([background=tint]) .bd-ensemble{background-color:var(--status-brand-surface);border-radius:var(--shape-radius-2xl);padding-block:var(--spacing-40)}.bd-bentogrid-header{align-items:flex-start;gap:var(--spacing-8);margin-bottom:var(--spacing-48);flex-direction:column;max-width:70ch;display:flex}.bd-bentogrid-eyebrow{color:var(--color-text-brand);
|
|
27
|
+
`;return o},s=t`:host{box-sizing:border-box;width:100%;display:block}.bd-ensemble{container:bento/inline-size}:host([background=tint]) .bd-ensemble{background-color:var(--status-brand-surface);border-radius:var(--shape-radius-2xl);padding-block:var(--spacing-40)}.bd-bentogrid-header{align-items:flex-start;gap:var(--spacing-8);margin-bottom:var(--spacing-48);flex-direction:column;max-width:70ch;display:flex}.bd-bentogrid-header[hidden],.bd-bentogrid-eyebrow[hidden],.bd-bentogrid-title[hidden],.bd-bentogrid-description[hidden]{display:none}.bd-bentogrid-eyebrow{font-family:var(--typography-label-large-fontFamily);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing);color:var(--bd-paragraph-color,var(--color-text-brand))}@media (width<992px){.bd-bentogrid-eyebrow{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)}}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily);margin:0}::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-heading-color:var(--color-text-muted);--bd-paragraph-color:var(--color-text-muted);--bd-paragraph-margin-bottom:0}.bd-bentogrid-track{gap:var(--bd-bento-gap,var(--spacing-16));grid-auto-rows:var(--bd-bento-row-height,auto);width:100%;display:grid}@container bento (width>=576px){.bd-bentogrid-track{gap:var(--bd-bento-gap,var(--spacing-20))}}@container bento (width>=768px){.bd-bentogrid-track{gap:var(--bd-bento-gap,var(--spacing-24))}}:host(:not([appearance=equal])) .bd-bentogrid-track,:host([appearance=equal]) .bd-bentogrid-track{grid-template-columns:minmax(0,1fr)}:host(:not([appearance=equal])) ::slotted(bd-bento-item),:host([appearance=equal]) ::slotted(bd-bento-item){grid-column:auto}@container bento (width>=576px) and (width>=calc(520px + 1.5rem)){:host(:not([appearance=equal])) .bd-bentogrid-track{grid-template-columns:repeat(24,minmax(0,1fr))}:host(:not([appearance=equal])) ::slotted(bd-bento-item){grid-column:span var(--bd-bento-span,24)}:host([appearance=equal]) .bd-bentogrid-track{grid-template-columns:repeat(2,minmax(0,1fr))}}@container bento (width>=768px) and (width>=calc(780px + 3rem)){:host([appearance=equal]) .bd-bentogrid-track{grid-template-columns:repeat(3,minmax(0,1fr))}}::slotted(bd-bento-item){min-width:0}:host([appearance=equal]) ::slotted(bd-bento-item[priority=featured]){grid-column:1/-1}`;export{a as BENTO_DEFAULTS,n as TOTAL_UNITS,o as bentoColumnRules,s as default};
|
|
28
28
|
//# sourceMappingURL=bento-grid.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-grid.css.js","names":["TOTAL_UNITS","GAP","stepFor","BREAKPOINTS","breakpoint","count","minCardWidth","BENTO_DEFAULTS","bentoColumnRules","weighted","equal","rules","maxColumns","equalColumns","bento_grid_css_default"],"sources":["../../../../src/components/bento-grid/bento-grid.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, BREAKPOINTS, type Breakpoint } from \"#shared/token-scales.ts\";\n\n/* The columns follow the width the cards are laid out in, not the viewport's:\n the column below is a container, so a grid in a narrow column stacks however\n wide the screen is. Below sm the cards stack; from sm the pairs share a row\n and an equal grid takes two; from md an equal grid takes its full count.\n\n A count also has to leave every card min-card-width wide, so its step is the\n wider of its breakpoint and that many cards plus their gaps. CSS cannot read\n the attribute, so the step is computed: once here for the defaults, and by\n bento-grid.ts into a sheet of its own for a grid that changes one. Nothing\n measures the grid -- the browser does, against these queries. */\nexport const TOTAL_UNITS = 24; // fine-grained tracks the weighted pairs span\n\n/* The gap between the cards, as the length it is. The track's gap is a\n --spacing-* step, which is rem and grows with the reader's text; the steps\n used to add it as 16, 20 or 24px, so at a larger root size a count met\n before its cards had room -- three at 260 met at 828px, where a 200% root's\n 48px gaps left each card 244. The widest step, the md gap, is counted at\n every count: no step lands below md with more than two cards, and for two\n the sm breakpoint is the larger term either way, so no default moves. */\n/* no token: a container query cannot read a custom property, so the step is\n restated as its rem -- --spacing-24 */\nconst GAP = \"1.5rem\";\n\n/* When `count` cards fit: the breakpoint, and room for that many cards of\n min-card-width with the gaps between them. */\nconst stepFor = (count: number, minCardWidth: number, breakpoint: Breakpoint) =>\n `(width >= ${BREAKPOINTS[breakpoint]}px) and (width >= calc(${count * minCardWidth}px + ${count - 1} * ${GAP}))`;\n\nexport interface BentoColumnOptions {\n maxColumns : number;\n equalColumns: number;\n minCardWidth: number;\n}\n\nexport const BENTO_DEFAULTS: BentoColumnOptions = { maxColumns: 2, equalColumns: 3, minCardWidth: 260 };\n\n/* Every rule restates the one-column start, so a sheet adopted after this one\n replaces the defaults at every width rather than adding to them. */\nexport const bentoColumnRules = ({ maxColumns, equalColumns, minCardWidth }: BentoColumnOptions) => {\n const weighted = `:host(:not([
|
|
1
|
+
{"version":3,"file":"bento-grid.css.js","names":["TOTAL_UNITS","GAP","stepFor","BREAKPOINTS","breakpoint","count","minCardWidth","BENTO_DEFAULTS","bentoColumnRules","weighted","equal","rules","maxColumns","equalColumns","bento_grid_css_default"],"sources":["../../../../src/components/bento-grid/bento-grid.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below, bodyRole, BREAKPOINTS, headingRole, ink, type Breakpoint } from \"#shared/token-scales.ts\";\n\n/* The columns follow the width the cards are laid out in, not the viewport's:\n the column below is a container, so a grid in a narrow column stacks however\n wide the screen is. Below sm the cards stack; from sm the pairs share a row\n and an equal grid takes two; from md an equal grid takes its full count.\n\n A count also has to leave every card min-card-width wide, so its step is the\n wider of its breakpoint and that many cards plus their gaps. CSS cannot read\n the attribute, so the step is computed: once here for the defaults, and by\n bento-grid.ts into a sheet of its own for a grid that changes one. Nothing\n measures the grid -- the browser does, against these queries. */\nexport const TOTAL_UNITS = 24; // fine-grained tracks the weighted pairs span\n\n/* The gap between the cards, as the length it is. The track's gap is a\n --spacing-* step, which is rem and grows with the reader's text; the steps\n used to add it as 16, 20 or 24px, so at a larger root size a count met\n before its cards had room -- three at 260 met at 828px, where a 200% root's\n 48px gaps left each card 244. The widest step, the md gap, is counted at\n every count: no step lands below md with more than two cards, and for two\n the sm breakpoint is the larger term either way, so no default moves. */\n/* no token: a container query cannot read a custom property, so the step is\n restated as its rem -- --spacing-24 */\nconst GAP = \"1.5rem\";\n\n/* When `count` cards fit: the breakpoint, and room for that many cards of\n min-card-width with the gaps between them. */\nconst stepFor = (count: number, minCardWidth: number, breakpoint: Breakpoint) =>\n `(width >= ${BREAKPOINTS[breakpoint]}px) and (width >= calc(${count * minCardWidth}px + ${count - 1} * ${GAP}))`;\n\nexport interface BentoColumnOptions {\n maxColumns : number;\n equalColumns: number;\n minCardWidth: number;\n}\n\nexport const BENTO_DEFAULTS: BentoColumnOptions = { maxColumns: 2, equalColumns: 3, minCardWidth: 260 };\n\n/* Every rule restates the one-column start, so a sheet adopted after this one\n replaces the defaults at every width rather than adding to them. */\nexport const bentoColumnRules = ({ maxColumns, equalColumns, minCardWidth }: BentoColumnOptions) => {\n const weighted = `:host(:not([appearance=\"equal\"]))`;\n const equal = `:host([appearance=\"equal\"])`;\n let rules = `\n ${weighted} .bd-bentogrid-track,\n ${equal} .bd-bentogrid-track {\n grid-template-columns: minmax(0, 1fr);\n }\n\n ${weighted} ::slotted(bd-bento-item),\n ${equal} ::slotted(bd-bento-item) {\n grid-column: auto;\n }\n `;\n\n if (maxColumns >= 2) {\n rules += `\n @container bento ${stepFor(2, minCardWidth, \"sm\")} {\n ${weighted} .bd-bentogrid-track {\n grid-template-columns: repeat(${TOTAL_UNITS}, minmax(0, 1fr));\n }\n\n ${weighted} ::slotted(bd-bento-item) {\n grid-column: span var(--bd-bento-span, ${TOTAL_UNITS});\n }\n }\n `;\n }\n\n for (let count = 2; count <= equalColumns; count += 1) {\n rules += `\n @container bento ${stepFor(count, minCardWidth, count === 2 ? \"sm\" : \"md\")} {\n ${equal} .bd-bentogrid-track {\n grid-template-columns: repeat(${count}, minmax(0, 1fr));\n }\n }\n `;\n }\n\n return rules;\n};\n\nexport default css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-ensemble {\n container: bento / inline-size;\n }\n\n /* === BACKGROUND VARIANT — section-level tint on the column (header +\n track), not per-card, so the panel lands on the page edges every other\n section uses. === */\n :host([background=\"tint\"]) .bd-ensemble {\n background-color: var(--status-brand-surface);\n border-radius: var(--shape-radius-2xl);\n padding-block: var(--spacing-40);\n }\n\n /* === HEADER (eyebrow / title / description) === */\n .bd-bentogrid-header {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-8);\n margin-bottom: var(--spacing-48);\n max-width: 70ch;\n }\n\n .bd-bentogrid-header[hidden],\n .bd-bentogrid-eyebrow[hidden],\n .bd-bentogrid-title[hidden],\n .bd-bentogrid-description[hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so the page writes the words and this box sets\n them: bd-p's eyebrow look, label-large from lg and label-default below\n it. The brand text role, not the brand primitive: blue-600, 6.18:1 on\n white, where blue-500 is the step CLAUDE.md says is not for text. The\n ink reads --bd-paragraph-color first, as bd-p's eyebrow does, so a band\n that names its ink with ink() is not painted over with the brand. */\n .bd-bentogrid-eyebrow {\n font-family: var(--typography-label-large-fontFamily);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n color: var(--bd-paragraph-color, var(--color-text-brand));\n }\n\n @media ${unsafeCSS(below(\"lg\"))} {\n .bd-bentogrid-eyebrow {\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 }\n }\n\n /* The page's heading, at the page-section role whatever level it chose;\n the grid's own bd-h was an h2 and drew h2's role. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n margin: 0;\n }\n\n /* bd-p closes every paragraph with a flow margin; the header's gap is the\n spacing here, so the switch turns it off. */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n ${unsafeCSS(ink(\"muted\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* === GRID === */\n .bd-bentogrid-track {\n display: grid;\n /* The steps name the scale rather than repeating its values: --spacing-24\n IS 24px at the default root size, but in rem, so it grows when the reader\n enlarges their text and 24px does not. */\n gap: var(--bd-bento-gap, var(--spacing-16));\n /* auto, or 1fr when bento-grid.ts finds a set of brand cards: every row\n then takes the tallest row's height, so a full-row card matches the\n pair above it rather than the lines its wider copy column wraps to */\n grid-auto-rows: var(--bd-bento-row-height, auto);\n width: 100%;\n }\n\n @container bento ${unsafeCSS(above(\"sm\"))} {\n .bd-bentogrid-track {\n gap: var(--bd-bento-gap, var(--spacing-20));\n }\n }\n\n @container bento ${unsafeCSS(above(\"md\"))} {\n .bd-bentogrid-track {\n gap: var(--bd-bento-gap, var(--spacing-24));\n }\n }\n\n /* One column until a pair has room, and a stacked grid is a single track:\n 24 units carry 23 gaps, whose own minimum -- 368px at the small gap -- is\n wider than a phone. The equal grid used to keep them there and ran 25px\n past a 375px screen. */\n ${unsafeCSS(bentoColumnRules(BENTO_DEFAULTS))}\n\n ::slotted(bd-bento-item) {\n min-width: 0;\n }\n\n /* A featured item takes the whole row, paired or not. Paired, its span is\n already the row's (bento-grid.ts); the equal grid has no spans to set. */\n :host([appearance=\"equal\"]) ::slotted(bd-bento-item[priority=\"featured\"]) {\n grid-column: 1 / -1;\n }\n`;"],"mappings":"A,kFAaA,IAAaA,EAAc,GAWrBC,EAAM,SAINC,GAAW,EAAe,EAAsB,IACpD,aAAaC,EAAYC,GAAY,yBAAyBC,EAAQC,EAAa,OAAOD,EAAQ,EAAE,KAAKJ,EAAI,IAQlGM,EAAqC,CAAE,WAAY,EAAG,aAAc,EAAG,aAAc,GAAI,EAIzFC,GAAoB,CAAE,aAAY,eAAc,kBAAuC,CAClG,IAAMC,EAAW,oCACXC,EAAQ,8BACVC,EAAQ;MACRF,EAAS;MACTC,EAAM;;;;MAIND,EAAS;MACTC,EAAM;;;IAKNE,GAAc,IAChB,GAAS;yBACYV,EAAQ,EAAGI,EAAc,IAAI,EAAE;UAC9CG,EAAS;;;;UAITA,EAAS;;;;OAOjB,IAAK,IAAIJ,EAAQ,EAAGA,GAASQ,EAAc,GAAS,EAClD,GAAS;yBACYX,EAAQG,EAAOC,EAAcD,IAAU,EAAI,KAAO,IAAI,EAAE;UACvEK,EAAM;0CAC0BL,EAAM;;;MAM9C,OAAOM,CACT,EAEAG,EAAe,CAAG,snG"}
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../p/p.js";
|
|
5
6
|
import "./bento-item.js";
|
|
6
|
-
|
|
7
|
+
declare const APPEARANCES: readonly ["weighted", "equal"];
|
|
8
|
+
type Appearance = typeof APPEARANCES[number];
|
|
7
9
|
type Background = "none" | "tint";
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A grid of bd-bento-item cards that weights its columns: pairs of cards
|
|
12
|
+
* alternate wide and narrow (appearance="weighted", the default), or every
|
|
13
|
+
* card takes the same width (appearance="equal").
|
|
14
|
+
*
|
|
15
|
+
* The header is the page's (ADR 0003): `<span slot="eyebrow">`,
|
|
16
|
+
* `<bd-h slot="title" as="h2">` and `<bd-p slot="description">`. The page
|
|
17
|
+
* picks the title's level; the grid sets the title's size (heading-h2) and
|
|
18
|
+
* the description's (body-regular, muted ink). Each part's box is left out
|
|
19
|
+
* while its slot is empty, and the whole header while all three are.
|
|
20
|
+
*/
|
|
21
|
+
export declare class BdBentoGrid extends LitElement {
|
|
9
22
|
static styles: import("lit").CSSResult[];
|
|
10
|
-
eyebrow: string;
|
|
11
|
-
title: string;
|
|
12
|
-
description: string;
|
|
13
23
|
maxColumns: number;
|
|
14
24
|
minCardWidth: number;
|
|
15
25
|
wideShare: number;
|
|
16
|
-
|
|
26
|
+
appearance: Appearance;
|
|
17
27
|
equalColumns: number;
|
|
18
28
|
background: Background;
|
|
29
|
+
_slots: SlotController<"eyebrow" | "title" | "description">;
|
|
30
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
19
31
|
updated(changed: PropertyValues<this>): void;
|
|
20
32
|
get _items(): HTMLElement[];
|
|
21
33
|
_applyWeights(): void;
|
|
@@ -27,7 +39,7 @@ declare class BentoGrid extends LitElement {
|
|
|
27
39
|
}
|
|
28
40
|
declare global {
|
|
29
41
|
interface HTMLElementTagNameMap {
|
|
30
|
-
"bd-bento-grid":
|
|
42
|
+
"bd-bento-grid": BdBentoGrid;
|
|
31
43
|
}
|
|
32
44
|
}
|
|
33
45
|
export {};
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../
|
|
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"../p/p.js";import{SlotController as r}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import a,{BENTO_DEFAULTS as o,bentoColumnRules as s}from"./bento-grid.css.js";import"./bento-item.js";import{LitElement as c,html as l}from"lit";import{property as u}from"lit/decorators.js";var d=/* @__PURE__ */ new Map,f=e=>{let t=JSON.stringify(e);if(!d.has(t)){let n=new CSSStyleSheet;n.replaceSync(s(e)),d.set(t,n)}return d.get(t)},p=[`weighted`,`equal`],m=class extends c{constructor(...e){super(...e),this.maxColumns=2,this.minCardWidth=260,this.wideShare=.7,this.appearance=`weighted`,this.equalColumns=3,this.background=`none`,this._slots=new r(this,{slots:[`eyebrow`,`title`,`description`]})}static{this.styles=[i,a]}willUpdate(e){e.has(`appearance`)&&!t(p,this.appearance)&&(this.appearance=`weighted`)}updated(e){e.has(`wideShare`)&&this._applyWeights(),[`maxColumns`,`equalColumns`,`minCardWidth`].some(t=>e.has(t))&&this._adoptColumnRules()}get _items(){return[...this.children].filter(e=>e.tagName===`BD-BENTO-ITEM`)}_applyWeights(){let e=this._items,t=0,n=0,r=Math.round(this.wideShare*24),i=24-r;for(;t<e.length;){let a=e[t];if(a.getAttribute(`priority`)===`featured`){a.style.setProperty(`--bd-bento-span`,`24`),t+=1;continue}let o=e[t+1],s=o&&o.getAttribute(`priority`)===`featured`;if(!o||s){a.style.setProperty(`--bd-bento-span`,`24`),t+=1;continue}let c=n%3==0;a.style.setProperty(`--bd-bento-span`,String(c?r:i)),o.style.setProperty(`--bd-bento-span`,String(c?i:r)),t+=2,n+=1}}get _isBrandSet(){let e=this._items;return e.length>1&&e.every(e=>e.getAttribute(`background`)===`brand`)}_applyRowHeight(){this._isBrandSet?this.style.setProperty(`--bd-bento-row-height`,`1fr`):this.style.removeProperty(`--bd-bento-row-height`)}_adoptColumnRules(){let e={maxColumns:Math.min(2,this.maxColumns),equalColumns:Math.max(1,this.equalColumns),minCardWidth:this.minCardWidth},t=Object.keys(e).every(t=>e[t]===o[t]),n=this.renderRoot,r=n.adoptedStyleSheets.filter(e=>![...d.values()].includes(e));n.adoptedStyleSheets=t?r:[...r,f(e)]}_onSlotChange(){this._applyRowHeight(),this._applyWeights()}render(){let e=this._slots.has(`eyebrow`),t=this._slots.has(`title`),n=this._slots.has(`description`);return l`
|
|
2
2
|
<div class="bd-ensemble">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</bd-p>
|
|
9
|
-
`:c}
|
|
3
|
+
<div class="bd-bentogrid-header" ?hidden=${!e&&!t&&!n}>
|
|
4
|
+
<div class="bd-bentogrid-eyebrow" ?hidden=${!e}><slot name="eyebrow"></slot></div>
|
|
5
|
+
<div class="bd-bentogrid-title" ?hidden=${!t}><slot name="title"></slot></div>
|
|
6
|
+
<div class="bd-bentogrid-description" ?hidden=${!n}><slot name="description"></slot></div>
|
|
7
|
+
</div>
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</bd-h>
|
|
15
|
-
`:c}
|
|
16
|
-
|
|
17
|
-
${this.description?s`
|
|
18
|
-
<bd-p variant="regular" class="bd-bentogrid-description">
|
|
19
|
-
<slot name="description">${this.description}</slot>
|
|
20
|
-
</bd-p>
|
|
21
|
-
`:c}
|
|
22
|
-
</div>
|
|
23
|
-
`:c}
|
|
24
|
-
|
|
25
|
-
<div class="bd-bentogrid-track" role="list">
|
|
26
|
-
<slot @slotchange=${this._onSlotChange}></slot>
|
|
27
|
-
</div>
|
|
9
|
+
<div class="bd-bentogrid-track" role="list">
|
|
10
|
+
<slot @slotchange=${this._onSlotChange}></slot>
|
|
11
|
+
</div>
|
|
28
12
|
</div>
|
|
29
|
-
`}};
|
|
13
|
+
`}};n([u({type:Number,attribute:`max-columns`})],m.prototype,`maxColumns`,void 0),n([u({type:Number,attribute:`min-card-width`})],m.prototype,`minCardWidth`,void 0),n([u({type:Number,attribute:`wide-share`})],m.prototype,`wideShare`,void 0),n([u({type:String,reflect:!0})],m.prototype,`appearance`,void 0),n([u({type:Number,attribute:`equal-columns`})],m.prototype,`equalColumns`,void 0),n([u({type:String,reflect:!0})],m.prototype,`background`,void 0),m=n([e(`bd-bento-grid`)],m);export{m as BdBentoGrid};
|
|
30
14
|
//# sourceMappingURL=bento-grid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-grid.js","names":["bentoGridCSS","_decorate","__decorate","bento_grid_css_default","columnSheets","columnSheetFor","key","options","sheet","bentoColumnRules","BentoGrid","LitElement","_args","ensembleCSS","changed","name","el","items","i","pairIndex","wideSpan","narrowSpan","current","next","nextIsFeatured","firstIsWide","isDefault","BENTO_DEFAULTS","root","sheets","nothing","property","defineElement"],"sources":["../../../../src/components/bento-grid/bento-grid.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property } 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 \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport bentoGridCSS, { BENTO_DEFAULTS, TOTAL_UNITS, bentoColumnRules, type BentoColumnOptions } from \"./bento-grid.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport \"./bento-item.ts\";\n\n/* One sheet per set of numbers, shared by every grid that asks for it. */\nconst columnSheets = new Map<string, CSSStyleSheet>();\nconst columnSheetFor = (options: BentoColumnOptions) => {\n const key = JSON.stringify(options);\n if (!columnSheets.has(key)) {\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(bentoColumnRules(options));\n columnSheets.set(key, sheet);\n }\n return columnSheets.get(key)!;\n};\n\ntype Variant = \"weighted\" | \"equal\";\ntype Background = \"none\" | \"tint\";\n\n@defineElement(\"bd-bento-grid\")\nclass BentoGrid extends LitElement {\n static styles = [ensembleCSS, bentoGridCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Number, attribute: \"max-columns\" })\n maxColumns = 2;\n @property({ type: Number, attribute: \"min-card-width\" })\n minCardWidth = 260;\n // Fixed wide/narrow ratio applied to every pair, e.g. 0.7 = 70/30.\n // Only used when variant=\"weighted\" (the default).\n @property({ type: Number, attribute: \"wide-share\" })\n wideShare = 0.7;\n // \"weighted\" (default) — pairs of cards alternate wide/narrow, per\n // _applyWeights below. \"equal\" — every card gets the same width, laid\n // out in a plain N-column grid (see equalColumns) with no pairing.\n @property({ type: String, reflect: true })\n variant: Variant = \"weighted\";\n // Column count for variant=\"equal\" once the grid is md wide; min(2, this)\n // from sm, and 1 below -- the grid's own width, not the viewport's, the\n // same steps as the weighted pairs. Ignored when variant=\"weighted\".\n @property({ type: Number, attribute: \"equal-columns\" })\n equalColumns = 3;\n // \"none\" (default, transparent) | \"tint\" (light blue wash behind the\n // whole grid, including header text) — a section-level background, not\n // per-card (bd-bento-item already has its own `tone=\"tint\"` for that).\n @property({ type: String, reflect: true })\n background: Background = \"none\";\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"wideShare\")) this._applyWeights();\n if (([\"maxColumns\", \"equalColumns\", \"minCardWidth\"] as const).some((name) => changed.has(name))) {\n this._adoptColumnRules();\n }\n }\n\n get _items() {\n return [...this.children].filter((el): el is HTMLElement => el.tagName === \"BD-BENTO-ITEM\");\n }\n\n // Assigns each item a `grid-column: span N` out of TOTAL_UNITS invisible\n // grid columns, instead of a flex-basis percentage. CSS Grid subtracts\n // `gap` from the available track space BEFORE distributing column widths,\n // so two items whose spans sum to TOTAL_UNITS always fit on the same row\n // with the gap properly accounted for.\n //\n // Rows are formed by walking items in DOM order and consuming exactly 2\n // \"slots\" per row UNLESS an item is priority=\"featured\", in which case it\n // consumes the whole row by itself (span = TOTAL_UNITS) and does not pair\n // with anything.\n //\n // Within a pair, the wide/narrow side follows a repeating 3-pair cycle,\n // NOT content length: pair 0 (rows 1-2) is wide-then-narrow, pairs 1 and 2\n // (rows 3-4, 5-6) are narrow-then-wide, then the cycle repeats.\n _applyWeights() {\n const items = this._items;\n let i = 0;\n let pairIndex = 0; // counts pairs only (featured/solo rows don't affect the pattern)\n\n const wideSpan = Math.round(this.wideShare * TOTAL_UNITS);\n const narrowSpan = TOTAL_UNITS - wideSpan;\n\n while (i < items.length) {\n const current = items[i];\n\n if (current.getAttribute(\"priority\") === \"featured\") {\n current.style.setProperty(\"--bd-bento-span\", String(TOTAL_UNITS));\n i += 1;\n continue;\n }\n\n const next = items[i + 1];\n const nextIsFeatured = next && next.getAttribute(\"priority\") === \"featured\";\n\n if (!next || nextIsFeatured) {\n // odd one out (last item, or blocked by a featured item next) — full width\n current.style.setProperty(\"--bd-bento-span\", String(TOTAL_UNITS));\n i += 1;\n continue;\n }\n\n const firstIsWide = pairIndex % 3 === 0;\n\n current.style.setProperty(\"--bd-bento-span\", String(firstIsWide ? wideSpan : narrowSpan));\n next.style.setProperty(\"--bd-bento-span\", String(firstIsWide ? narrowSpan : wideSpan));\n\n i += 2;\n pairIndex += 1;\n }\n }\n\n /* Brand cards are drawn as one set of equal bands: the full-row card is\n the pair's height, not shorter for having a wider copy column, and\n stacked cards match whatever their copy runs to. Only when every card is\n brand-toned -- the default cards are content-sized tiles, and evening\n those out would pad the short ones with empty space. */\n get _isBrandSet() {\n const items = this._items;\n return items.length > 1 && items.every((el) => el.getAttribute(\"tone\") === \"brand\");\n }\n\n _applyRowHeight() {\n if (this._isBrandSet) this.style.setProperty(\"--bd-bento-row-height\", \"1fr\");\n else this.style.removeProperty(\"--bd-bento-row-height\");\n }\n\n /* The column steps for the default numbers are in bento-grid.css.ts. A\n grid that changes one adopts the same rules computed from its own, after\n the defaults, and drops them again when it changes back. */\n _adoptColumnRules() {\n const options: BentoColumnOptions = {\n maxColumns : Math.min(2, this.maxColumns),\n equalColumns: Math.max(1, this.equalColumns),\n minCardWidth: this.minCardWidth\n };\n const isDefault = (Object.keys(options) as (keyof BentoColumnOptions)[]).every((name) => options[name] === BENTO_DEFAULTS[name]);\n const root = this.renderRoot as ShadowRoot;\n const sheets = root.adoptedStyleSheets.filter((sheet) => ![...columnSheets.values()].includes(sheet));\n root.adoptedStyleSheets = isDefault ? sheets : [...sheets, columnSheetFor(options)];\n }\n\n /* Spans and row heights follow the cards and their order, never the width,\n so they are set when the cards change. */\n _onSlotChange() {\n this._applyRowHeight();\n this._applyWeights();\n }\n\n render() {\n return html`\n <div class=\"bd-ensemble\">\n ${this.eyebrow || this.title || this.description\n ? html`\n <div class=\"bd-bentogrid-header\">\n ${this.eyebrow\n ? html`\n <bd-p variant=\"eyebrow\" class=\"bd-bentogrid-eyebrow\">\n <slot name=\"eyebrow\">${this.eyebrow}</slot>\n </bd-p>\n `\n : nothing}\n\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-bentogrid-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"regular\" class=\"bd-bentogrid-description\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n </div>\n `\n : nothing}\n\n <div class=\"bd-bentogrid-track\" role=\"list\">\n <slot @slotchange=${this._onSlotChange}></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-bento-grid\": BentoGrid;\n }\n}"],"mappings":"A,weAYA,IAAMI,kBAAe,IAAI,IACnBC,EAAkB,GAAgC,CACtD,IAAMC,EAAM,KAAK,UAA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,CACF,EAxKG7B,EAAA,CAAA8B,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAArB,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBT,EAAA,CAAA8B,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAArB,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBT,EAAA,CAAA8B,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAArB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAArB,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAArB,EAAA,UAAA,eAAA,IAAA,EAAA,EAItDT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAArB,EAAA,UAAA,YAAA,IAAA,EAAA,EAKlDT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAArB,EAAA,UAAA,UAAA,IAAA,EAAA,EAKxCT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAArB,EAAA,UAAA,eAAA,IAAA,EAAA,EAKrDT,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAArB,EAAA,UAAA,aAAA,IAAA,EAAA,EA/B1C,EAAAT,EAAA,CAAA+B,EAAc,eAAe,CAAA,EAAAtB,CAAA"}
|
|
1
|
+
{"version":3,"file":"bento-grid.js","names":["bentoGridCSS","_decorate","__decorate","bento_grid_css_default","columnSheets","columnSheetFor","key","options","sheet","bentoColumnRules","APPEARANCES","BdBentoGrid","LitElement","_args","SlotController","ensembleCSS","changed","isOneOf","name","el","items","i","pairIndex","wideSpan","narrowSpan","current","next","nextIsFeatured","firstIsWide","isDefault","BENTO_DEFAULTS","root","sheets","eyebrow","title","description","property","defineElement"],"sources":["../../../../src/components/bento-grid/bento-grid.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { SlotController } from \"#shared/controller.slot.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\";\n/* The atoms the page writes into the header's slots. The grid renders\n neither now, but 3.x's module registered both, and a page importing only\n this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport bentoGridCSS, { BENTO_DEFAULTS, TOTAL_UNITS, bentoColumnRules, type BentoColumnOptions } from \"./bento-grid.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport \"./bento-item.ts\";\n\n/* One sheet per set of numbers, shared by every grid that asks for it. */\nconst columnSheets = new Map<string, CSSStyleSheet>();\nconst columnSheetFor = (options: BentoColumnOptions) => {\n const key = JSON.stringify(options);\n if (!columnSheets.has(key)) {\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(bentoColumnRules(options));\n columnSheets.set(key, sheet);\n }\n return columnSheets.get(key)!;\n};\n\nconst APPEARANCES = [\"weighted\", \"equal\"] as const;\ntype Appearance = typeof APPEARANCES[number];\ntype Background = \"none\" | \"tint\";\n\n/**\n * A grid of bd-bento-item cards that weights its columns: pairs of cards\n * alternate wide and narrow (appearance=\"weighted\", the default), or every\n * card takes the same width (appearance=\"equal\").\n *\n * The header is the page's (ADR 0003): `<span slot=\"eyebrow\">`,\n * `<bd-h slot=\"title\" as=\"h2\">` and `<bd-p slot=\"description\">`. The page\n * picks the title's level; the grid sets the title's size (heading-h2) and\n * the description's (body-regular, muted ink). Each part's box is left out\n * while its slot is empty, and the whole header while all three are.\n */\n@defineElement(\"bd-bento-grid\")\nexport class BdBentoGrid extends LitElement {\n static styles = [ensembleCSS, bentoGridCSS];\n\n @property({ type: Number, attribute: \"max-columns\" })\n maxColumns = 2;\n @property({ type: Number, attribute: \"min-card-width\" })\n minCardWidth = 260;\n // Fixed wide/narrow ratio applied to every pair, e.g. 0.7 = 70/30.\n // Only used when appearance=\"weighted\" (the default).\n @property({ type: Number, attribute: \"wide-share\" })\n wideShare = 0.7;\n // The look (N6), 3.x's `variant`. \"weighted\" (default) — pairs of cards\n // alternate wide/narrow, per _applyWeights below. \"equal\" — every card\n // gets the same width, laid out in a plain N-column grid (see\n // equalColumns) with no pairing.\n @property({ type: String, reflect: true })\n appearance: Appearance = \"weighted\";\n // Column count for appearance=\"equal\" once the grid is md wide; min(2, this)\n // from sm, and 1 below -- the grid's own width, not the viewport's, the\n // same steps as the weighted pairs. Ignored when appearance=\"weighted\".\n @property({ type: Number, attribute: \"equal-columns\" })\n equalColumns = 3;\n // \"none\" (default, transparent) | \"tint\" (light blue wash behind the\n // whole grid, including header text) — a section-level background, not\n // per-card (bd-bento-item already has its own `background=\"tint\"` for that).\n @property({ type: String, reflect: true })\n background: Background = \"none\";\n\n _slots = new SlotController(this, { slots: [\"eyebrow\", \"title\", \"description\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"weighted\";\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"wideShare\")) this._applyWeights();\n if (([\"maxColumns\", \"equalColumns\", \"minCardWidth\"] as const).some((name) => changed.has(name))) {\n this._adoptColumnRules();\n }\n }\n\n get _items() {\n return [...this.children].filter((el): el is HTMLElement => el.tagName === \"BD-BENTO-ITEM\");\n }\n\n // Assigns each item a `grid-column: span N` out of TOTAL_UNITS invisible\n // grid columns, instead of a flex-basis percentage. CSS Grid subtracts\n // `gap` from the available track space BEFORE distributing column widths,\n // so two items whose spans sum to TOTAL_UNITS always fit on the same row\n // with the gap properly accounted for.\n //\n // Rows are formed by walking items in DOM order and consuming exactly 2\n // \"slots\" per row UNLESS an item is priority=\"featured\", in which case it\n // consumes the whole row by itself (span = TOTAL_UNITS) and does not pair\n // with anything.\n //\n // Within a pair, the wide/narrow side follows a repeating 3-pair cycle,\n // NOT content length: pair 0 (rows 1-2) is wide-then-narrow, pairs 1 and 2\n // (rows 3-4, 5-6) are narrow-then-wide, then the cycle repeats.\n _applyWeights() {\n const items = this._items;\n let i = 0;\n let pairIndex = 0; // counts pairs only (featured/solo rows don't affect the pattern)\n\n const wideSpan = Math.round(this.wideShare * TOTAL_UNITS);\n const narrowSpan = TOTAL_UNITS - wideSpan;\n\n while (i < items.length) {\n const current = items[i];\n\n if (current.getAttribute(\"priority\") === \"featured\") {\n current.style.setProperty(\"--bd-bento-span\", String(TOTAL_UNITS));\n i += 1;\n continue;\n }\n\n const next = items[i + 1];\n const nextIsFeatured = next && next.getAttribute(\"priority\") === \"featured\";\n\n if (!next || nextIsFeatured) {\n // odd one out (last item, or blocked by a featured item next) — full width\n current.style.setProperty(\"--bd-bento-span\", String(TOTAL_UNITS));\n i += 1;\n continue;\n }\n\n const firstIsWide = pairIndex % 3 === 0;\n\n current.style.setProperty(\"--bd-bento-span\", String(firstIsWide ? wideSpan : narrowSpan));\n next.style.setProperty(\"--bd-bento-span\", String(firstIsWide ? narrowSpan : wideSpan));\n\n i += 2;\n pairIndex += 1;\n }\n }\n\n /* Brand cards are drawn as one set of equal bands: the full-row card is\n the pair's height, not shorter for having a wider copy column, and\n stacked cards match whatever their copy runs to. Only when every card is\n on the brand fill -- the default cards are content-sized tiles, and\n evening those out would pad the short ones with empty space. */\n get _isBrandSet() {\n const items = this._items;\n return items.length > 1 && items.every((el) => el.getAttribute(\"background\") === \"brand\");\n }\n\n _applyRowHeight() {\n if (this._isBrandSet) this.style.setProperty(\"--bd-bento-row-height\", \"1fr\");\n else this.style.removeProperty(\"--bd-bento-row-height\");\n }\n\n /* The column steps for the default numbers are in bento-grid.css.ts. A\n grid that changes one adopts the same rules computed from its own, after\n the defaults, and drops them again when it changes back. */\n _adoptColumnRules() {\n const options: BentoColumnOptions = {\n maxColumns : Math.min(2, this.maxColumns),\n equalColumns: Math.max(1, this.equalColumns),\n minCardWidth: this.minCardWidth\n };\n const isDefault = (Object.keys(options) as (keyof BentoColumnOptions)[]).every((name) => options[name] === BENTO_DEFAULTS[name]);\n const root = this.renderRoot as ShadowRoot;\n const sheets = root.adoptedStyleSheets.filter((sheet) => ![...columnSheets.values()].includes(sheet));\n root.adoptedStyleSheets = isDefault ? sheets : [...sheets, columnSheetFor(options)];\n }\n\n /* Spans and row heights follow the cards and their order, never the width,\n so they are set when the cards change. */\n _onSlotChange() {\n this._applyRowHeight();\n this._applyWeights();\n }\n\n render() {\n const eyebrow = this._slots.has(\"eyebrow\");\n const title = this._slots.has(\"title\");\n const description = this._slots.has(\"description\");\n return html`\n <div class=\"bd-ensemble\">\n <div class=\"bd-bentogrid-header\" ?hidden=${!eyebrow && !title && !description}>\n <div class=\"bd-bentogrid-eyebrow\" ?hidden=${!eyebrow}><slot name=\"eyebrow\"></slot></div>\n <div class=\"bd-bentogrid-title\" ?hidden=${!title}><slot name=\"title\"></slot></div>\n <div class=\"bd-bentogrid-description\" ?hidden=${!description}><slot name=\"description\"></slot></div>\n </div>\n\n <div class=\"bd-bentogrid-track\" role=\"list\">\n <slot @slotchange=${this._onSlotChange}></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-bento-grid\": BdBentoGrid;\n }\n}"],"mappings":"A,ojBAiBA,IAAMI,kBAAe,IAAI,IACnBC,EAAkB,GAAgC,CACtD,IAAMC,EAAM,KAAK,UAAUC,CAAO,EAClC,GAAI,CAACH,EAAa,IAAIE,CAAG,EAAG,CAC1B,IAAME,EAAQ,IAAI,cAClBA,EAAM,YAAYC,EAAiBF,CAAO,CAAC,EAC3CH,EAAa,IAAIE,EAAKE,CAAK,CAC7B,CACA,OAAOJ,EAAa,IAAIE,CAAG,CAC7B,EA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,aAAc,CAAC,CAAA,EAAAzB,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDV,EAAA,CAAAmC,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAzB,EAAA,UAAA,eAAA,IAAA,EAAA,EAItDV,EAAA,CAAAmC,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAzB,EAAA,UAAA,YAAA,IAAA,EAAA,EAMlDV,EAAA,CAAAmC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAzB,EAAA,UAAA,aAAA,IAAA,EAAA,EAKxCV,EAAA,CAAAmC,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAzB,EAAA,UAAA,eAAA,IAAA,EAAA,EAKrDV,EAAA,CAAAmC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAzB,EAAA,UAAA,aAAA,IAAA,EAAA,EA1B1C,EAAAV,EAAA,CAAAoC,EAAc,eAAe,CAAA,EAAA1B,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;height:100%;display:block}:host([
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;height:100%;display:block}:host([background=brand]){width:100%;container:bento-item/inline-size}.bd-bentoitem-box{background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;box-sizing:border-box;height:100%;font-family:var(--typography-fontFamily-sans);min-width:0;transition:transform var(--transition-duration-normal) var(--transition-easing-ease), box-shadow var(--transition-duration-normal) var(--transition-easing-ease);flex-direction:column;justify-content:flex-start;align-items:stretch;display:flex}.bd-bentoitem-box [hidden]{display:none}@media (hover:hover){.bd-bentoitem-box:hover{box-shadow:0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.bd-bentoitem-box{transition:none}.bd-bentoitem-box:hover{transform:none}}.bd-bentoitem-text{flex-direction:column;min-width:0;display:flex}.bd-bentoitem-icon-wrap{justify-content:flex-start;align-items:flex-start;gap:var(--spacing-8);flex-direction:column;display:flex}::slotted([slot=icon]){object-fit:contain;width:48px;max-width:48px;height:48px;max-height:48px;display:block}.bd-bentoitem-badge{align-items:flex-start;display:flex}:host(:not([background=brand])) .bd-bentoitem-icon-wrap{padding-bottom:var(--spacing-8)}:host(:not([background=brand])) .bd-bentoitem-badge,:host(:not([background=brand])) .bd-bentoitem-title-wrap{margin-bottom:var(--spacing-8)}:host(:not([background=brand])) .bd-bentoitem-title-wrap{overflow:hidden}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h5-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-bold);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h5-letterSpacing);--bd-heading-font-family:var(--typography-heading-h5-fontFamily)}.bd-bentoitem-body{flex-direction:column;display:flex}.bd-bentoitem-actions{align-items:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}:host([background=tint]) .bd-bentoitem-box{background:var(--status-brand-surface)}:host([background=dark]){color-scheme:light}:host([background=dark]) .bd-bentoitem-box{background:linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);color:var(--color-text-inverse);--bd-heading-color:var(--color-text-inverse);--bd-paragraph-color:var(--color-text-inverse)}@media (width<768px){.bd-bentoitem-box{padding:var(--card-padding-compact)}}:host([background=brand]) .bd-bentoitem-box{gap:var(--spacing-24);padding:var(--spacing-24);background:var(--color-surface-brand);border-radius:var(--shape-radius-2xl);color:var(--color-brand-on-fill);--bd-heading-color:var(--color-brand-on-fill);--bd-paragraph-color:var(--color-brand-on-fill);flex-direction:column;display:flex;position:relative;overflow:hidden}:host([background=brand]) .bd-bentoitem-text{align-items:flex-start;gap:var(--spacing-12)}:host([background=brand]) .bd-bentoitem-body{gap:var(--spacing-12)}:host([background=brand]) ::slotted(bd-h[slot=title]),:host([background=brand]) ::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)}:host([background=brand]) .bd-bentoitem-body ::slotted(bd-p){--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}@container bento-item (width<518px){:host([background=brand]) .bd-bentoitem-actions{margin-block-start:auto}:host([background=brand]) .bd-bentoitem-actions ::slotted(*){--bd-button-width:100%}}:host([background=brand]) .bd-bentoitem-box:hover{box-shadow:none;transform:none}::slotted([slot=media]){width:100%;display:block}:host([background=brand]) .bd-bentoitem-media{aspect-ratio:1;border-radius:var(--shape-radius-xl);position:relative;overflow:hidden;container-type:size}:host([background=brand]) ::slotted([slot=media]){object-fit:cover;height:100%}:host([background=brand]) ::slotted(bd-img[slot=media]){grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:stretch stretch;display:grid}:host([background=brand]) ::slotted(bd-motion-art[slot=media]){width:100cqh;height:auto;margin-block-start:-50cqh;margin-inline-start:-50cqh;position:absolute;inset-block-start:50%;inset-inline-start:50%}@container bento-item (width>=518px){:host([background=brand]) .bd-bentoitem-box{padding:var(--spacing-32);border-radius:var(--shape-radius-3xl);grid-template:".media"1fr"text media""cta media"".media"1fr/300px minmax(0,1fr);gap:0;display:grid}:host([background=brand][priority=featured]) .bd-bentoitem-box{grid-template-columns:42% minmax(0,1fr)}:host([background=brand]) .bd-bentoitem-text{grid-area:text}:host([background=brand]) .bd-bentoitem-actions{grid-area:cta;margin-block-start:var(--spacing-24)}:host([background=brand]) .bd-bentoitem-media{aspect-ratio:auto;border-radius:var(--radius-none);margin-block:calc(-1 * var(--spacing-32));grid-area:media;margin-inline-end:calc(-1 * var(--spacing-32))}:host([background=brand]) ::slotted(bd-motion-art[slot=media]){--bd-bento-art:max(100cqw, min(100cqh, 24.5rem));width:var(--bd-bento-art);margin-block-start:calc(var(--bd-bento-art) / -2);margin-inline-start:0;inset-inline-start:0}}@container bento-item (656px<=width<880px){:host([background=brand]) ::slotted(bd-motion-art[slot=media]){--bd-bento-art:max(100cqw, min(135cqh, 36rem))}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=bento-item.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-item.css.js","names":["bento_item_css_default"],"sources":["../../../../src/components/bento-grid/bento-item.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n height: 100%;\n box-sizing: border-box;\n }\n\n /* A brand card is the container its own layout asks: the row, the column\n and the size of the art follow the card's width (BRAND, below). Only the\n brand tone: a size container contributes nothing to its own intrinsic\n width, and the other tones are also set in rows that size them to their\n content (Foundations/Visual Alignment's card family), where one would\n collapse. width: 100% for the same reason, in the grid cell a brand card\n always sits in. */\n :host([tone=\"brand\"]) {\n width: 100%;\n container: bento-item / inline-size;\n }\n\n .bd-bentoitem-box {\n background: var(--color-surface-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n text-align: start;\n height: 100%;\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n min-width: 0;\n /* The same hover lift as trust-panel, now at the same scale step. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n /* No edge. --color-surface-container is documented as \"the ground of a\n self-contained object -- a card, a tile, a panel -- one step off the page\n so it reads as its own object WITHOUT needing a border or a shadow to say\n so\", and this card sits on the page ground, so the tonal step is the\n separation and an edge is redundant with the role's own purpose.\n\n The rule, from the cards-and-surfaces review: a card on the page ground\n takes surface/container and no edge; a card on a tinted section takes\n surface/default plus a 1px border/container, because there is no tonal\n step available there and the edge earns its keep. Six components on the\n page ground drew no edge; this one drew one, and five identical siblings\n did not. See CLAUDE.md, \"A card's ground and its edge\". */\n }\n\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted until the next tap\n landed somewhere else. */\n @media (hover: hover) {\n .bd-bentoitem-box:hover {\n transform: translateY(-3px);\n /* no token: trust-panel's card lift, the same 7% black layer -- see the\n reason there. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* Same reasoning as trust-panel, checked separately: the shadow is the part\n that communicates hover, the 3px is the part that moves. */\n @media (prefers-reduced-motion: reduce) {\n .bd-bentoitem-box {\n transition: none;\n }\n\n .bd-bentoitem-box:hover {\n transform: none;\n }\n }\n\n .bd-bentoitem-icon-wrap {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n gap: var(--spacing-8);\n padding-bottom: var(--spacing-8);\n min-height: 48px;\n }\n\n .bd-bentoitem-icon,\n ::slotted([slot=\"icon\"]) {\n max-width: 48px;\n max-height: 48px;\n width: 48px;\n height: 48px;\n object-fit: contain;\n display: block;\n }\n\n .bd-bentoitem-title-wrap {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-4);\n overflow: hidden;\n margin-bottom: var(--spacing-8);\n width: 100%;\n }\n\n .bd-bentoitem-body {\n margin: 0 0 1em 0;\n color: var(--color-text-secondary);\n width: 100%;\n }\n\n ::slotted(bd-p) {\n width: 100%;\n }\n\n /* === TONE VARIANTS ===\n The card has no edge (see .bd-bentoitem-box), so a tone is the fill\n alone. */\n :host([tone=\"tint\"]) .bd-bentoitem-box {\n background: var(--status-brand-surface);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-box {\n /* The inverse ground the card's inverse ink is written for, running into\n the brand's darkest blue.\n no role: blue-950 is a gradient's far stop, decoration rather than a\n ground any text is measured against -- the same stop bd-cta-banner ends on. */\n background: linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-title-wrap bd-h {\n color: var(--color-text-inverse);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-body {\n color: var(--color-text-inverse);\n }\n\n /* below('md'), not below('sm'). The Comparison Panel and the Trust Panel both\n take the compact inset at md and this took it at sm, so the same card was\n affording 32px at 600px wide in one component and not in another. Two of\n the three picked md; this one moved. Visible: the inset steps down 192px\n of viewport earlier than it used to. */\n @media ${unsafeCSS(below('md'))} {\n .bd-bentoitem-box {\n padding: var(--card-padding-compact);\n }\n }\n\n /* === BRAND ===\n The homepage AI cards, as the Figma 2026_splitter frames draw them. No\n hover lift: the CTA is the card's one control, and a card that moves as a\n whole promises a link it does not have.\n\n A card narrower than 518 (every phone): a column at the compact inset --\n the copy, the art whole in a square at the card's inner width, the CTA\n across the card -- 24 apart, at the smaller corner. */\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n padding: var(--spacing-24);\n background: var(--color-surface-brand);\n border-radius: var(--shape-radius-2xl);\n color: var(--color-brand-on-fill);\n }\n\n /* A set of brand cards shares one row height (bento-grid.ts), so a card\n with shorter copy is taller than its content. In the column the slack\n goes above the CTA, which keeps every card's CTA on its bottom edge\n rather than leaving a gap under the shortest one.\n\n In the column the CTA also runs the card's width, as the Figma phone\n frame draws it; in the row it hugs its label. --bd-button-width is\n bd-button's width hook. It followed the screen (below md) while the\n layout followed the card, so a 518-543 card on a 550-575 screen drew the\n row with a CTA stretched across its 300 copy column. */\n @container bento-item (width < 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-cta {\n margin-block-start: auto;\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-cta ::slotted(*) {\n --bd-button-width: 100%;\n }\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-box:hover {\n transform: none;\n box-shadow: none;\n }\n\n .bd-bentoitem-media {\n position: relative;\n /* the art is square; the phone frame draws its box 302 by 308 */\n aspect-ratio: 1;\n overflow: hidden;\n border-radius: var(--shape-radius-xl);\n /* slotted motion art sizes itself from the box */\n container-type: size;\n }\n\n ::slotted([slot=\"media\"]) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n /* bd-motion-art is square and draws at its own width, so the box gives it\n one: here the square box itself, the art whole. Margins, not a translate,\n so it centres in RTL too. */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 100cqh;\n height: auto;\n margin-block-start: -50cqh;\n margin-inline-start: -50cqh;\n }\n\n .bd-bentoitem-text {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-12);\n }\n\n .bd-bentoitem-brand-title {\n margin: 0;\n }\n\n .bd-bentoitem-brand-body {\n margin: 0;\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-brand-on-fill);\n }\n\n /* A card 518 wide or wider, tablet and desktop alike, is a row at the\n card inset: the copy over the CTA in a 300 column on the near side, 24\n apart and centred down the card, and the art from the column's edge out\n to the card's, bleeding through the inset. The featured card's column is\n a share of the row instead.\n\n 518 is the narrowest card the frames draw as a row -- one of the pair at\n xl, half the 1060 column less the gap -- and it reads the card, not the\n screen: it was md, which gave a card in a narrow column at desktop the\n phone's column, and the 656 tablet card and the 518 pair the same row\n for different reasons. Measured: the column up to 511 wide (575 in\n Storybook), the row from 518, in every story. */\n @container bento-item (width >= 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n display: grid;\n /* no token: the copy's measure, the 300 every frame gives it */\n grid-template-columns: 300px minmax(0, 1fr);\n /* The copy and CTA centred down the card by the two 1fr rows around\n them, rather than by align-content: the art spans all four rows, so\n it runs the card's full height however much taller than its copy\n the shared row height makes the card. No row gap, so the empty rows\n add nothing to a card that is only as tall as its content; the 24\n between copy and CTA is the CTA's margin. */\n grid-template-rows: 1fr auto auto 1fr;\n grid-template-areas:\n \". media\"\n \"text media\"\n \"cta media\"\n \". media\";\n gap: 0;\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-3xl);\n }\n\n :host([tone=\"brand\"][priority=\"featured\"]) .bd-bentoitem-box {\n /* not the column: the copy keeps to the near half of a full-row card */\n grid-template-columns: 42% minmax(0, 1fr);\n }\n\n .bd-bentoitem-text {\n grid-area: text;\n }\n\n .bd-bentoitem-cta {\n grid-area: cta;\n margin-block-start: var(--spacing-24);\n }\n\n .bd-bentoitem-media {\n grid-area: media;\n aspect-ratio: auto;\n border-radius: var(--radius-none);\n margin-block: calc(-1 * var(--spacing-32));\n margin-inline-end: calc(-1 * var(--spacing-32));\n }\n\n /* Beside the copy the art takes the card's height, so in one of the\n desktop pair -- whose art box is a tall strip -- the stack and the\n globe stay in the card beside their pills; a box wider than that, the\n featured card's, takes its own width.\n\n The card's height is its copy's, and a longer title or body made the\n art grow with it -- 599 square in a 599 card for a title three lines\n longer, its pills pushed off the card's edge. The height the art\n follows is therefore held to the card the frames draw, 391 with the\n homepage's copy: up to it the art is what it was, past it the art\n keeps that size and stays centred down the taller card.\n no token: the frames' card height, a dimension past the scale's 64 */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n --bd-bento-art: max(100cqw, min(100cqh, 24.5rem));\n inset-inline-start: 0;\n width: var(--bd-bento-art);\n margin-block-start: calc(var(--bd-bento-art) / -2);\n margin-inline-start: 0;\n }\n }\n\n /* A card a whole tablet column wide or wider draws the art larger than its\n box, as the tablet frame does: held against the copy, centred down the\n card, and running off the card's outer edge and its top and bottom --\n never off the side its badges and pills face. 135% of the card's height\n is that frame's 434 square on a 321 card. The pair never reaches 656\n (634 at the widest page) and a card 880 wide is the desktop's, so this\n is the tablet card's rule, between the two; it was the md-to-lg band of\n the screen, where every card is the 656 column. */\n @container bento-item (656px <= width < 880px) {\n /* held, as above, to what the frame's card gives it: 135% of the 424\n its copy makes it here, 572 square.\n no token: the frame's art, a dimension past the scale's 64 */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n --bd-bento-art: max(100cqw, min(135cqh, 36rem));\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. The rule sits on a span around the text, not on bd-h or bd-p,\n whose own templates hold newlines that would break too. */\n .text,\n .bd-bentoitem-brand-body {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,gmI"}
|
|
1
|
+
{"version":3,"file":"bento-item.css.js","names":["bento_item_css_default"],"sources":["../../../../src/components/bento-grid/bento-item.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n height: 100%;\n box-sizing: border-box;\n }\n\n /* A brand card is the container its own layout asks: the row, the column\n and the size of the art follow the card's width (BRAND, below). Only the\n brand ground: a size container contributes nothing to its own intrinsic\n width, and the other grounds are also set in rows that size them to their\n content (Foundations/Visual Alignment's card family), where one would\n collapse. width: 100% for the same reason, in the grid cell a brand card\n always sits in. */\n :host([background=\"brand\"]) {\n width: 100%;\n container: bento-item / inline-size;\n }\n\n .bd-bentoitem-box {\n background: var(--color-surface-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n text-align: start;\n height: 100%;\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n min-width: 0;\n /* The same hover lift as trust-panel, now at the same scale step. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n /* No edge. --color-surface-container is documented as \"the ground of a\n self-contained object -- a card, a tile, a panel -- one step off the page\n so it reads as its own object WITHOUT needing a border or a shadow to say\n so\", and this card sits on the page ground, so the tonal step is the\n separation and an edge is redundant with the role's own purpose.\n\n The rule, from the cards-and-surfaces review: a card on the page ground\n takes surface/container and no edge; a card on a tinted section takes\n surface/default plus a 1px border/container, because there is no tonal\n step available there and the edge earns its keep. Six components on the\n page ground drew no edge; this one drew one, and five identical siblings\n did not. See CLAUDE.md, \"A card's ground and its edge\". */\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 .bd-bentoitem-box [hidden] {\n display: none;\n }\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted until the next tap\n landed somewhere else. */\n @media (hover: hover) {\n .bd-bentoitem-box:hover {\n transform: translateY(-3px);\n /* no token: trust-panel's card lift, the same 7% black layer -- see the\n reason there. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* Same reasoning as trust-panel, checked separately: the shadow is the part\n that communicates hover, the 3px is the part that moves. */\n @media (prefers-reduced-motion: reduce) {\n .bd-bentoitem-box {\n transition: none;\n }\n\n .bd-bentoitem-box:hover {\n transform: none;\n }\n }\n\n /* The copy: the icon, the badge, the title and the body, in that order.\n A column with no gap of its own on the container, tint and dark grounds,\n where each part keeps the space under it that 3.x drew; the brand card\n spaces them 12 apart (BRAND, below). Every part is a flex box, so what\n is slotted into it is laid out as 3.x laid it out, as a flex item. */\n .bd-bentoitem-text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .bd-bentoitem-icon-wrap {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n gap: var(--spacing-8);\n }\n\n ::slotted([slot=\"icon\"]) {\n max-width: 48px;\n max-height: 48px;\n width: 48px;\n height: 48px;\n object-fit: contain;\n display: block;\n }\n\n .bd-bentoitem-badge {\n display: flex;\n align-items: flex-start;\n }\n\n /* The space under each part on the container, tint and dark grounds, as 3.x\n drew it: 8 under the icon, the badge and the title. The brand card\n spaces its copy with a gap instead (BRAND, below). 3.x also held the\n icon's row open at 48 with no icon in it; the row is left out now, so a\n card without an icon starts at its title. */\n :host(:not([background=\"brand\"])) .bd-bentoitem-icon-wrap {\n padding-bottom: var(--spacing-8);\n }\n\n :host(:not([background=\"brand\"])) .bd-bentoitem-badge,\n :host(:not([background=\"brand\"])) .bd-bentoitem-title-wrap {\n margin-bottom: var(--spacing-8);\n }\n\n :host(:not([background=\"brand\"])) .bd-bentoitem-title-wrap {\n overflow: hidden;\n }\n\n /* The card's title: the h5 role in bold, 3.x's bd-h as=\"h5\"\n font-weight=\"bold\", at whatever level the page picks. The brand card\n takes the h3 role instead (BRAND, below). */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h5\"))}\n /* no role: the card title's bold over the h5 role's own weight, which\n 3.x's font-weight=\"bold\" drew -- the split docs/audit/findings.json\n records for every card title. */\n --bd-heading-font-weight: var(--typography-fontWeight-bold);\n }\n\n .bd-bentoitem-body {\n display: flex;\n flex-direction: column;\n }\n\n .bd-bentoitem-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-16);\n }\n\n /* === BACKGROUNDS ===\n The card has no edge (see .bd-bentoitem-box), so a ground is the fill\n alone. */\n :host([background=\"tint\"]) .bd-bentoitem-box {\n background: var(--status-brand-surface);\n }\n\n /* The dark ground names its ink, inverse, for everything slotted into it:\n 3.x set the colour on its own bd-h, which paints its own ink and ignored\n it, so the title read in the page's dark ink on the dark ground.\n\n IN A DARK PAGE the card is still dark: the inverse ground runs into\n --color-brand-950, a step of the ramp that does not turn, and a page puts\n a bd-button or bd-link surface=\"dark\" on it, which keeps its white ink.\n So the dark card is drawn in the light scheme, as surface=\"dark\" is:\n light-dark() resolves by an element's own color-scheme, so the inverse\n ground stays neutral-900 and the inverse ink white, a page's\n color=\"inverse\" too. Without it the ground turned neutral-50 and the\n ink near-black while the far stop stayed navy: 2.22:1 at its far edge. */\n :host([background=\"dark\"]) {\n color-scheme: light;\n }\n\n :host([background=\"dark\"]) .bd-bentoitem-box {\n /* The inverse ground the card's inverse ink is written for, running into\n the brand's darkest blue.\n no role: blue-950 is a gradient's far stop, decoration rather than a\n ground any text is measured against -- the same stop bd-cta-banner ends on. */\n background: linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);\n color: var(--color-text-inverse);\n ${unsafeCSS(ink(\"inverse\"))}\n }\n\n /* below('md'), not below('sm'). The Comparison Panel and the Trust Panel both\n take the compact inset at md and this took it at sm, so the same card was\n affording 32px at 600px wide in one component and not in another. Two of\n the three picked md; this one moved. Visible: the inset steps down 192px\n of viewport earlier than it used to. */\n @media ${unsafeCSS(below('md'))} {\n .bd-bentoitem-box {\n padding: var(--card-padding-compact);\n }\n }\n\n /* === BRAND ===\n The homepage AI cards, as the Figma 2026_splitter frames draw them. No\n hover lift: the CTA is the card's one control, and a card that moves as a\n whole promises a link it does not have.\n\n A card narrower than 518 (every phone): a column at the compact inset --\n the copy, the art whole in a square at the card's inner width, the CTA\n across the card -- 24 apart, at the smaller corner. The brand fill names\n its own ink, the brand's, for the title and the body. */\n :host([background=\"brand\"]) .bd-bentoitem-box {\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n padding: var(--spacing-24);\n background: var(--color-surface-brand);\n border-radius: var(--shape-radius-2xl);\n color: var(--color-brand-on-fill);\n ${unsafeCSS(ink(\"on-brand\"))}\n }\n\n /* The copy hugs its content and sits 12 apart, the badge, the title and\n the body alike; the body is the paragraph alone, with no flow margin\n under it. */\n :host([background=\"brand\"]) .bd-bentoitem-text {\n align-items: flex-start;\n gap: var(--spacing-12);\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-body {\n gap: var(--spacing-12);\n }\n\n /* The brand card's title: the h3 role 3.x drew it at, on the brand's ink. */\n :host([background=\"brand\"]) ::slotted(bd-h[slot=\"title\"]),\n :host([background=\"brand\"]) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h3\"))}\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-body ::slotted(bd-p) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* A set of brand cards shares one row height (bento-grid.ts), so a card\n with shorter copy is taller than its content. In the column the slack\n goes above the CTA, which keeps every card's CTA on its bottom edge\n rather than leaving a gap under the shortest one.\n\n In the column the CTA also runs the card's width, as the Figma phone\n frame draws it; in the row it hugs its label. --bd-button-width is\n bd-button's width hook. It followed the screen (below md) while the\n layout followed the card, so a 518-543 card on a 550-575 screen drew the\n row with a CTA stretched across its 300 copy column. */\n @container bento-item (width < 518px) {\n :host([background=\"brand\"]) .bd-bentoitem-actions {\n margin-block-start: auto;\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-actions ::slotted(*) {\n --bd-button-width: 100%;\n }\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-box:hover {\n transform: none;\n box-shadow: none;\n }\n\n /* The art. The box is the brand card's (BRAND); on the other grounds the\n art runs the card's width at its own height. */\n ::slotted([slot=\"media\"]) {\n display: block;\n width: 100%;\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-media {\n position: relative;\n /* the art is square; the phone frame draws its box 302 by 308 */\n aspect-ratio: 1;\n overflow: hidden;\n border-radius: var(--shape-radius-xl);\n /* slotted motion art sizes itself from the box */\n container-type: size;\n }\n\n :host([background=\"brand\"]) ::slotted([slot=\"media\"]) {\n height: 100%;\n object-fit: cover;\n }\n\n /* bd-img's own <img> is out of reach and sizes itself from its image. As\n a grid item stretched both ways it fills the box instead, and its fit\n (cover by default) keeps the picture's proportions. */\n :host([background=\"brand\"]) ::slotted(bd-img[slot=\"media\"]) {\n display: grid;\n grid-template: minmax(0, 1fr) / minmax(0, 1fr);\n justify-items: stretch;\n align-items: stretch;\n }\n\n /* bd-motion-art is square and draws at its own width, so the box gives it\n one: here the square box itself, the art whole. Margins, not a translate,\n so it centres in RTL too. */\n :host([background=\"brand\"]) ::slotted(bd-motion-art[slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 100cqh;\n height: auto;\n margin-block-start: -50cqh;\n margin-inline-start: -50cqh;\n }\n\n /* A card 518 wide or wider, tablet and desktop alike, is a row at the\n card inset: the copy over the CTA in a 300 column on the near side, 24\n apart and centred down the card, and the art from the column's edge out\n to the card's, bleeding through the inset. The featured card's column is\n a share of the row instead.\n\n 518 is the narrowest card the frames draw as a row -- one of the pair at\n xl, half the 1060 column less the gap -- and it reads the card, not the\n screen: it was md, which gave a card in a narrow column at desktop the\n phone's column, and the 656 tablet card and the 518 pair the same row\n for different reasons. Measured: the column up to 511 wide (575 in\n Storybook), the row from 518, in every story. */\n @container bento-item (width >= 518px) {\n :host([background=\"brand\"]) .bd-bentoitem-box {\n display: grid;\n /* no token: the copy's measure, the 300 every frame gives it */\n grid-template-columns: 300px minmax(0, 1fr);\n /* The copy and CTA centred down the card by the two 1fr rows around\n them, rather than by align-content: the art spans all four rows, so\n it runs the card's full height however much taller than its copy\n the shared row height makes the card. No row gap, so the empty rows\n add nothing to a card that is only as tall as its content; the 24\n between copy and CTA is the CTA's margin. */\n grid-template-rows: 1fr auto auto 1fr;\n grid-template-areas:\n \". media\"\n \"text media\"\n \"cta media\"\n \". media\";\n gap: 0;\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-3xl);\n }\n\n :host([background=\"brand\"][priority=\"featured\"]) .bd-bentoitem-box {\n /* not the column: the copy keeps to the near half of a full-row card */\n grid-template-columns: 42% minmax(0, 1fr);\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-text {\n grid-area: text;\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-actions {\n grid-area: cta;\n margin-block-start: var(--spacing-24);\n }\n\n :host([background=\"brand\"]) .bd-bentoitem-media {\n grid-area: media;\n aspect-ratio: auto;\n border-radius: var(--radius-none);\n margin-block: calc(-1 * var(--spacing-32));\n margin-inline-end: calc(-1 * var(--spacing-32));\n }\n\n /* Beside the copy the art takes the card's height, so in one of the\n desktop pair -- whose art box is a tall strip -- the stack and the\n globe stay in the card beside their pills; a box wider than that, the\n featured card's, takes its own width.\n\n The card's height is its copy's, and a longer title or body made the\n art grow with it -- 599 square in a 599 card for a title three lines\n longer, its pills pushed off the card's edge. The height the art\n follows is therefore held to the card the frames draw, 391 with the\n homepage's copy: up to it the art is what it was, past it the art\n keeps that size and stays centred down the taller card.\n no token: the frames' card height, a dimension past the scale's 64 */\n :host([background=\"brand\"]) ::slotted(bd-motion-art[slot=\"media\"]) {\n --bd-bento-art: max(100cqw, min(100cqh, 24.5rem));\n inset-inline-start: 0;\n width: var(--bd-bento-art);\n margin-block-start: calc(var(--bd-bento-art) / -2);\n margin-inline-start: 0;\n }\n }\n\n /* A card a whole tablet column wide or wider draws the art larger than its\n box, as the tablet frame does: held against the copy, centred down the\n card, and running off the card's outer edge and its top and bottom --\n never off the side its badges and pills face. 135% of the card's height\n is that frame's 434 square on a 321 card. The pair never reaches 656\n (634 at the widest page) and a card 880 wide is the desktop's, so this\n is the tablet card's rule, between the two; it was the md-to-lg band of\n the screen, where every card is the 656 column. */\n @container bento-item (656px <= width < 880px) {\n /* held, as above, to what the frame's card gives it: 135% of the 424\n its copy makes it here, 572 square.\n no token: the frame's art, a dimension past the scale's 64 */\n :host([background=\"brand\"]) ::slotted(bd-motion-art[slot=\"media\"]) {\n --bd-bento-art: max(100cqw, min(135cqh, 36rem));\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,qwL"}
|
|
@@ -1,27 +1,48 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
4
|
import "../badge/badge.js";
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
5
|
+
import "../h/h.js";
|
|
6
|
+
import "../p/p.js";
|
|
6
7
|
type Priority = "standard" | "featured";
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
declare const BACKGROUNDS: readonly ["container", "tint", "dark", "brand"];
|
|
9
|
+
type Background = typeof BACKGROUNDS[number];
|
|
10
|
+
/**
|
|
11
|
+
* One card of bd-bento-grid. Every look renders the same slots, each box
|
|
12
|
+
* hidden while its slot is empty:
|
|
13
|
+
*
|
|
14
|
+
* <bd-bento-item>
|
|
15
|
+
* <bd-icon slot="icon" name="globe"></bd-icon>
|
|
16
|
+
* <bd-h slot="title" as="h3">Multi-layer Security</bd-h>
|
|
17
|
+
* <bd-p>Multiple independent protection layers stop any attack.</bd-p>
|
|
18
|
+
* </bd-bento-item>
|
|
19
|
+
*
|
|
20
|
+
* <bd-bento-item background="brand">
|
|
21
|
+
* <bd-badge slot="badge" variant="info" appearance="shade" size="sm">AI for Consumers</bd-badge>
|
|
22
|
+
* <bd-h slot="title" as="h3">AI for Digital Life Protection</bd-h>
|
|
23
|
+
* <bd-p>Smarter protection for everyday digital life.</bd-p>
|
|
24
|
+
* <bd-motion-art slot="media" object="mesh-globe"></bd-motion-art>
|
|
25
|
+
* <bd-button slot="actions" appearance="outline-white" href="…">Explore Consumer AI</bd-button>
|
|
26
|
+
* </bd-bento-item>
|
|
27
|
+
*
|
|
28
|
+
* The card sets its title's size and ink, never its level: the h5 role in
|
|
29
|
+
* bold on the container, tint and dark grounds, the h3 role on the brand fill.
|
|
30
|
+
* On dark and brand it names the ground's ink, so a bd-h or bd-p slotted
|
|
31
|
+
* there reads on it. The page picks the level with `as`.
|
|
32
|
+
*/
|
|
33
|
+
export declare class BdBentoItem extends LitElement {
|
|
9
34
|
static styles: import("lit").CSSResult[];
|
|
10
|
-
title: string;
|
|
11
|
-
body: string;
|
|
12
|
-
icon: string;
|
|
13
35
|
priority: Priority;
|
|
14
36
|
orientation: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
as: string;
|
|
37
|
+
background: Background;
|
|
38
|
+
_slots: SlotController<"" | "title" | "badge" | "icon" | "media" | "actions">;
|
|
18
39
|
connectedCallback(): void;
|
|
19
|
-
|
|
40
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
20
41
|
render(): import("lit-html").TemplateResult<1>;
|
|
21
42
|
}
|
|
22
43
|
declare global {
|
|
23
44
|
interface HTMLElementTagNameMap {
|
|
24
|
-
"bd-bento-item":
|
|
45
|
+
"bd-bento-item": BdBentoItem;
|
|
25
46
|
}
|
|
26
47
|
}
|
|
27
48
|
export {};
|
|
@@ -1,30 +1,13 @@
|
|
|
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"../
|
|
2
|
-
<div class="bd-bentoitem-box bd-bentoitem-brand">
|
|
3
|
-
<div class="bd-bentoitem-text">
|
|
4
|
-
${this.badge?i`<bd-badge tone="info" variant="shade" size="sm">${this.badge}</bd-badge>`:``}
|
|
5
|
-
${this.title?i`<bd-h as="${this.as}" visual-level="h3" color="on-brand" class="bd-bentoitem-brand-title"><span class="text">${this.title}</span></bd-h>`:``}
|
|
6
|
-
${this.body?i`<p class="bd-bentoitem-brand-body">${this.body}</p>`:``}
|
|
7
|
-
</div>
|
|
8
|
-
<div class="bd-bentoitem-media"><slot name="media"></slot></div>
|
|
9
|
-
<div class="bd-bentoitem-cta"><slot></slot></div>
|
|
10
|
-
</div>
|
|
11
|
-
`}render(){return this.tone===`brand`?this._renderBrand():i`
|
|
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"../p/p.js";import{SlotController as r}from"../shared/controller.slot.js";import"../h/h.js";import"../badge/badge.js";import i from"./bento-item.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=[`container`,`tint`,`dark`,`brand`],l=[`icon`,`badge`,`title`,``,`media`,`actions`],u=class extends a{constructor(...e){super(...e),this.priority=`standard`,this.orientation=`auto`,this.background=`container`,this._slots=new r(this,{slots:l})}static{this.styles=[i]}connectedCallback(){super.connectedCallback(),this.hasAttribute(`role`)||this.setAttribute(`role`,`listitem`)}willUpdate(e){e.has(`background`)&&!t(c,this.background)&&(this.background=`container`)}render(){let e=e=>!this._slots.has(e),t=[`icon`,`badge`,`title`,``].some(t=>!e(t));return o`
|
|
12
2
|
<div class="bd-bentoitem-box">
|
|
13
|
-
<div class="bd-bentoitem-
|
|
14
|
-
<slot name="icon">
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
<div class="bd-bentoitem-text" ?hidden=${!t}>
|
|
4
|
+
<div class="bd-bentoitem-icon-wrap" ?hidden=${e(`icon`)}><slot name="icon"></slot></div>
|
|
5
|
+
<div class="bd-bentoitem-badge" ?hidden=${e(`badge`)}><slot name="badge"></slot></div>
|
|
6
|
+
<div class="bd-bentoitem-title-wrap" ?hidden=${e(`title`)}><slot name="title"></slot></div>
|
|
7
|
+
<div class="bd-bentoitem-body" ?hidden=${e(``)}><slot></slot></div>
|
|
17
8
|
</div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<div class="bd-bentoitem-title-wrap">
|
|
21
|
-
<bd-h as="h5" fontWeight="bold"><span class="text">${this.title}</span></bd-h>
|
|
22
|
-
</div>
|
|
23
|
-
`:``}
|
|
24
|
-
|
|
25
|
-
${this.body?i`<bd-p variant="regular" class="bd-bentoitem-body"><span class="text">${this.body}</span></bd-p>`:``}
|
|
26
|
-
|
|
27
|
-
<slot></slot>
|
|
9
|
+
<div class="bd-bentoitem-media" ?hidden=${e(`media`)}><slot name="media"></slot></div>
|
|
10
|
+
<div class="bd-bentoitem-actions" ?hidden=${e(`actions`)}><slot name="actions"></slot></div>
|
|
28
11
|
</div>
|
|
29
|
-
`}};
|
|
12
|
+
`}};n([s({type:String,reflect:!0})],u.prototype,`priority`,void 0),n([s({type:String,attribute:`orientation`})],u.prototype,`orientation`,void 0),n([s({type:String,reflect:!0})],u.prototype,`background`,void 0),u=n([e(`bd-bento-item`)],u);export{u as BdBentoItem};
|
|
30
13
|
//# sourceMappingURL=bento-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-item.js","names":["bentoItemCSS","_decorate","__decorate","bento_item_css_default","
|
|
1
|
+
{"version":3,"file":"bento-item.js","names":["bentoItemCSS","_decorate","__decorate","bento_item_css_default","BACKGROUNDS","SLOTS","BdBentoItem","LitElement","_args","SlotController","changed","isOneOf","empty","name","copy","property","defineElement"],"sources":["../../../../src/components/bento-grid/bento-item.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\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\";\n/* The atoms the page writes into the item's slots: 3.x drew its badge, title\n and body itself, so a page importing only this module still gets them. */\nimport \"#components/badge/badge.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport bentoItemCSS from \"./bento-item.css.ts\";\n\ntype Priority = \"standard\" | \"featured\";\nconst BACKGROUNDS = [\"container\", \"tint\", \"dark\", \"brand\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\nconst SLOTS = [\"icon\", \"badge\", \"title\", \"\", \"media\", \"actions\"] as const;\ntype Slot = typeof SLOTS[number];\n\n/**\n * One card of bd-bento-grid. Every look renders the same slots, each box\n * hidden while its slot is empty:\n *\n * <bd-bento-item>\n * <bd-icon slot=\"icon\" name=\"globe\"></bd-icon>\n * <bd-h slot=\"title\" as=\"h3\">Multi-layer Security</bd-h>\n * <bd-p>Multiple independent protection layers stop any attack.</bd-p>\n * </bd-bento-item>\n *\n * <bd-bento-item background=\"brand\">\n * <bd-badge slot=\"badge\" variant=\"info\" appearance=\"shade\" size=\"sm\">AI for Consumers</bd-badge>\n * <bd-h slot=\"title\" as=\"h3\">AI for Digital Life Protection</bd-h>\n * <bd-p>Smarter protection for everyday digital life.</bd-p>\n * <bd-motion-art slot=\"media\" object=\"mesh-globe\"></bd-motion-art>\n * <bd-button slot=\"actions\" appearance=\"outline-white\" href=\"…\">Explore Consumer AI</bd-button>\n * </bd-bento-item>\n *\n * The card sets its title's size and ink, never its level: the h5 role in\n * bold on the container, tint and dark grounds, the h3 role on the brand fill.\n * On dark and brand it names the ground's ink, so a bd-h or bd-p slotted\n * there reads on it. The page picks the level with `as`.\n */\n@defineElement(\"bd-bento-item\")\nexport class BdBentoItem extends LitElement {\n static styles = [bentoItemCSS];\n\n @property({ type: String, reflect: true })\n priority: Priority = \"standard\";\n // Declared and not read; kept for compatibility.\n @property({ type: String, attribute: \"orientation\" })\n orientation = \"auto\";\n /* The ground (N5), 3.x's `tone`: \"container\" (the container surface; 3.x's \"default\") |\n \"tint\" (the brand tint) | \"dark\" (the inverse ground, light ink) |\n \"brand\" (the homepage AI card: the brand fill, the art in `media` and\n the CTA in `actions`). */\n @property({ type: String, reflect: true })\n background: Background = \"container\";\n\n _slots = new SlotController(this, { slots: SLOTS });\n\n connectedCallback() {\n super.connectedCallback();\n // The grid's track is a role=\"list\"; each card is one of its items.\n if (!this.hasAttribute(\"role\")) this.setAttribute(\"role\", \"listitem\");\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"container\";\n }\n\n /* The homepage AI card, drawn in the foundation Figma file as Bento card,\n is the same tree: the copy -- the badge, the title and the body -- then\n the art and the CTA. In that order on a phone, a column; from 518 wide\n the copy and the CTA stack on the near side and the art fills the rest\n of the card (bento-item.css.ts). */\n render() {\n const empty = (name: Slot) => !this._slots.has(name);\n const copy = ([\"icon\", \"badge\", \"title\", \"\"] as const).some(name => !empty(name));\n return html`\n <div class=\"bd-bentoitem-box\">\n <div class=\"bd-bentoitem-text\" ?hidden=${!copy}>\n <div class=\"bd-bentoitem-icon-wrap\" ?hidden=${empty(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"bd-bentoitem-badge\" ?hidden=${empty(\"badge\")}><slot name=\"badge\"></slot></div>\n <div class=\"bd-bentoitem-title-wrap\" ?hidden=${empty(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"bd-bentoitem-body\" ?hidden=${empty(\"\")}><slot></slot></div>\n </div>\n <div class=\"bd-bentoitem-media\" ?hidden=${empty(\"media\")}><slot name=\"media\"></slot></div>\n <div class=\"bd-bentoitem-actions\" ?hidden=${empty(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-bento-item\": BdBentoItem;\n }\n}\n"],"mappings":"A,mdAeA,IAAMI,EAAc,CAAC,YAAa,OAAQ,OAAQ,OAAO,EAGnDC,EAAQ,CAAC,OAAQ,QAAS,QAAS,GAAI,QAAS,SAAS,EA2BlDC,EAAN,cAA0BC,CAAW,C,8BAIrB,KAAA,SAAA,WAGP,KAAA,YAAA,OAMW,KAAA,WAAA,YAEhB,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAOJ,CAAM,CAAC,C,QAdlC,KAAA,OAAA,CAACL,CAAY,C,CAgB7B,mBAAoB,CAClB,MAAM,kBAAkB,EAEnB,KAAK,aAAa,MAAM,GAAG,KAAK,aAAa,OAAQ,UAAU,CACtE,CAEA,WAAW,EAA+B,CACpCU,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQP,EAAa,KAAK,U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