@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":"callout.js","names":["_decorate","__decorate","VARIANTS","APPEARANCES","BdCallout","LitElement","_args","SlotController","calloutCSS","changed","isOneOf","nothing","property","defineElement"],"sources":["../../../../src/components/callout/callout.ts"],"sourcesContent":["import { LitElement, html, nothing, 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';\nimport '#components/icons/circle-info.ts';\nimport '#components/icons/close.ts';\nimport { calloutCSS } from './callout.css.ts';\n\n/* Five of the six meanings bd-badge and bd-tag take: no brand. The design has\n no brand callout, and under the default brand one would be info's tint with\n a blue-600 icon in place of blue-500 -- an info callout by another name. */\nconst VARIANTS = ['info', 'success', 'warning', 'error', 'neutral'] as const;\ntype Variant = typeof VARIANTS[number];\nconst APPEARANCES = ['tint', 'outline'] as const;\ntype Appearance = typeof APPEARANCES[number];\n\n/**\n * A status banner: an icon, a title, a description, optional actions, and an\n * optional dismiss.\n *\n * Shaped to the Eclipse Alert banner (Figma yzCimjlQG7RzokkgVpjfnZ node\n * 5021:11630) with this package's roles. See callout.css.ts for what the two\n * systems agreed on and the two places they did not.\n *\n * TWO AXES, NOT ONE. The design models six values of a single `type` enum:\n * Information, Success, Danger, Warning, Neutral and Outline. Five of those are\n * meanings and one is a look, so this element keeps them apart -- `variant`\n * for the meaning, `appearance` for the look (N6). An outline callout still\n * has a meaning, and folding the two into one attribute would mean\n * variant=\"outline\", which says nothing about what the callout is telling you.\n *\n * THE TITLE IS A SLOT, AND IT IS TEXT. `<span slot=\"title\">` is the bold line\n * above the description: phrasing content that takes the callout's own type\n * role -- body-small, at the title's weight -- rather than a document heading,\n * so it puts nothing in the page's outline. Its wrapper is hidden while the\n * slot is empty, so a description-only callout carries no empty line.\n *\n * THE LEADING ICON. bd-circle-info-icon, the glyph the design asked for. Pass\n * your own through the icon slot to override it.\n */\n@defineElement('bd-callout')\nexport class BdCallout extends LitElement {\n static styles = [calloutCSS];\n\n /** What the callout means: info | success | warning | error | neutral. */\n @property({ type: String, reflect: true })\n variant: Variant = 'info';\n /** How it looks: tint (default) | outline. */\n @property({ type: String, reflect: true })\n appearance: Appearance = 'tint';\n @property({ type: Boolean, reflect: true })\n dismissible = false;\n /** The dismiss button's accessible name, overridable per context and language. */\n @property({ type: String, attribute: 'dismiss-label' })\n dismissLabel = 'Dismiss';\n\n /* The title line and the actions row are rendered only while something is\n slotted into them, so a callout without either carries no empty box and\n no gap above it. Followed from the slots rather than read at render time,\n so it stays right when a page adds or removes them later. */\n _slots = new SlotController(this, { slots: ['title', 'actions'] });\n\n /* A meaning outside the five -- brand, or a typo -- drew info's tint while\n the host still said otherwise; it is info now, and says so. */\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('variant') && !isOneOf(VARIANTS, this.variant)) this.variant = 'info';\n if (changed.has('appearance') && !isOneOf(APPEARANCES, this.appearance)) this.appearance = 'tint';\n }\n\n _onDismiss() {\n /* The element does not remove itself: what should happen to the space it\n occupied is the page's decision, not the atom's. */\n this.dispatchEvent(new CustomEvent('bd-dismiss', { bubbles: true, composed: true }));\n }\n\n render() {\n return html`\n <div class=\"callout\" role=${this.variant === 'error' ? 'alert' : 'status'}>\n <span class=\"icon\">\n <slot name=\"icon\">\n <bd-icon name=\"circle-info\" size=\"lg\"></bd-icon>\n </slot>\n </span>\n\n <div class=\"content\">\n <strong class=\"title\" ?hidden=${!this._slots.has('title')}><slot name=\"title\"></slot></strong>\n <div class=\"body\"><slot></slot></div>\n <div class=\"actions\" ?hidden=${!this._slots.has('actions')}>\n <slot name=\"actions\"></slot>\n </div>\n </div>\n\n ${this.dismissible\n ? html`\n <button\n class=\"dismiss\"\n type=\"button\"\n aria-label=${this.dismissLabel}\n @click=${this._onDismiss}\n >\n <bd-icon name=\"close\" size=\"sm\"></bd-icon>\n </button>`\n : nothing}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-callout': BdCallout;\n }\n interface HTMLElementEventMap {\n 'bd-dismiss': CustomEvent<null>;\n }\n}\n"],"mappings":"A,ueAcA,IAAME,EAAW,CAAC,OAAQ,UAAW,UAAW,QAAS,SAAS,EAE5DC,EAAc,CAAC,OAAQ,SAAS,EA4BzBC,EAAN,cAAwBC,CAAW,C,8BAKrB,KAAA,QAAA,OAGM,KAAA,WAAA,OAEX,KAAA,YAAA,GAGC,KAAA,aAAA,UAMN,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,SAAS,CAAE,CAAC,C,QAlBjD,KAAA,OAAA,CAACC,CAAU,C,CAsB3B,WAAW,EAA+B,CACpCC,EAAQ,IAAI,SAAS,GAAK,CAACC,EAAQR,EAAU,KAAK,OAAO,IAAG,KAAK,QAAU,QAC3EO,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQP,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,OAC7F,CAEA,YAAa,CAGX,KAAK,cAAc,IAAI,YAAY,aAAc,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,CACrF,CAEA,QAAS,CACP,MAAO,EAAI;kCACmB,KAAK,UAAY,QAAU,QAAU,SAAS;;;;;;;;0CAQtC,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;;yCAE3B,CAAC,KAAK,OAAO,IAAI,SAAS,EAAE;;;;;UAK3D,KAAK,YACH,CAAI;;;;2BAIW,KAAK,aAAa;uBACtB,KAAK,WAAW;;;uBAI3BQ,EAAQ;;KAGlB,CACF,EA7DGX,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAR,EAAA,UAAA,UAAA,IAAA,EAAA,EAGxCJ,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAR,EAAA,UAAA,aAAA,IAAA,EAAA,EAExCJ,EAAA,CAAAY,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAR,EAAA,UAAA,cAAA,IAAA,EAAA,EAGzCJ,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAR,EAAA,UAAA,eAAA,IAAA,EAAA,EAbvD,EAAAJ,EAAA,CAAAa,EAAc,YAAY,CAAA,EAAAT,CAAA,E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{SIZES as t,isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{captionCSS as i}from"./caption.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends a{constructor(...e){super(...e),this.size=`md`}static{this.styles=[i]}willUpdate(e){e.has(`size`)&&!n(t,this.size)&&(this.size=`md`)}render(){return o`
|
|
2
2
|
<figcaption><slot></slot></figcaption>
|
|
3
|
-
`}};
|
|
3
|
+
`}};r([s({type:String,attribute:`size`,reflect:!0})],c.prototype,`size`,void 0),c=r([e(`bd-caption`)],c);export{c as BdCaption};
|
|
4
4
|
//# sourceMappingURL=caption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"caption.js","names":["_decorate","__decorate","BdCaption","LitElement","_args","captionCSS","changed","
|
|
1
|
+
{"version":3,"file":"caption.js","names":["_decorate","__decorate","BdCaption","LitElement","_args","captionCSS","changed","isOneOf","SIZES","property","defineElement"],"sources":["../../../../src/components/caption/caption.ts"],"sourcesContent":["import { LitElement, html, 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 { captionCSS } from './caption.css.ts';\nimport { SIZES, isOneOf, type Size } from '#shared/prop-vocabulary.ts';\n\n@defineElement('bd-caption')\nexport class BdCaption extends LitElement {\n static styles = [captionCSS];\n\n @property({ type: String, attribute: 'size', reflect: true })\n size: Size = 'md';\n\n willUpdate(changed: PropertyValues<this>) {\n /* sm, md or lg, and anything else is md. 3.x also took small, default\n and large and rewrote them; the aliases ended at the major (N6). */\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n }\n\n render() {\n return html`\n <figcaption><slot></slot></figcaption>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-caption': BdCaption;\n }\n}\n"],"mappings":"A,6WASO,IAAME,EAAN,cAAwBC,CAAW,C,8BAI3B,KAAA,KAAA,I,QAHG,KAAA,OAAA,CAACE,CAAU,C,CAK3B,WAAW,EAA+B,CAGpCC,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQC,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,KACrE,CAEA,QAAS,CACP,MAAO,EAAI;;KAGb,CACF,EAdGR,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,UAAW,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAJ7D,EAAAF,EAAA,CAAAU,EAAc,YAAY,CAAA,EAAAR,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}:host([hidden]){display:none}.root{flex-direction:column;justify-content:center;align-items:center;margin:0 auto;display:flex;position:relative}.root.headed{padding-block:var(--spacing-64)}.header{align-items:center;gap:var(--spacing-8);margin-block:var(--spacing-48);flex-direction:column;display:flex}.header[hidden],.title[hidden],.description[hidden]{display:none}:host([appearance=outline]) .header{padding-top:var(--spacing-80)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h1-fontSize);--bd-heading-font-weight:var(--typography-heading-h1-fontWeight);--bd-heading-line-height:var(--typography-heading-h1-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h1-letterSpacing);--bd-heading-font-family:var(--typography-heading-h1-fontFamily);text-align:center;margin:0}.description{margin-top:var(--spacing-8)}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-regular-fontSize);--bd-paragraph-font-weight:var(--typography-body-regular-fontWeight);--bd-paragraph-line-height:var(--typography-body-regular-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-regular-letterSpacing);--bd-paragraph-color:var(--color-text-secondary);--bd-paragraph-margin-bottom:0;text-align:center}:host([background=tint]) .root{background:var(--status-brand-surface);border-radius:var(--shape-radius-2xl);padding-block:var(--spacing-64);--bd-card-bg:var(--color-surface-default);--bd-card-border:var(--border-width-1) solid var(--color-border-container)}.track{justify-content:center;gap:var(--spacing-24);box-sizing:border-box;flex-wrap:wrap;width:100%;padding:0;display:flex}::slotted(bd-card){margin:0;display:block}@media (width>=768px){.track{--_card-track:calc((max(200px, (100% - (var(--bd-card-cols,4) - 1) * var(--spacing-24)) / var(--bd-card-cols,4)) - var(--spacing-24)) / 2);grid-template-columns:repeat(var(--bd-card-tracks,8), var(--_card-track));justify-content:center;column-gap:var(--spacing-24);margin-bottom:calc(-1 * var(--spacing-24));row-gap:0;display:grid}::slotted(bd-card){grid-template-rows:subgrid;grid-row:span var(--bd-card-rows,4);grid-column:var(--bd-card-start,auto) / span 2;width:auto;min-width:0;margin:0 0 var(--spacing-24);display:grid}}@media (width>=768px) and (width<992px){.track{grid-template-columns:repeat(var(--bd-card-tracks-md,6), var(--_card-track))}::slotted(bd-card){grid-column:var(--bd-card-start-md,auto) / span 2}}@media (width<768px){.track{gap:var(--spacing-20);flex-direction:column;align-items:stretch}::slotted(bd-card){flex:none;width:100%;min-width:0}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=card-grid.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-grid.css.js","names":["card_grid_css_default"],"sources":["../../../../src/components/card/card-grid.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below, bodyRole, headingRole } from \"#shared/token-scales.ts\";\n\n/* bd-card-section's stylesheet, moved with the grid: the header and the\n track. The cards' own rules are card.css.ts. */\nexport default css`\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .root {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n margin: 0 auto;\n }\n\n /* The section's inset belongs to its header: a grid with a title or a\n description stands 64 clear above and below, as bd-card-section did. One\n with neither is a block under a bd-section-header, and a bd-section\n spaces the two, so it pads nothing. */\n .root.headed {\n padding-block: var(--spacing-64);\n }\n\n .header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n margin-block: var(--spacing-48);\n }\n\n .header[hidden],\n .title[hidden],\n .description[hidden] {\n display: none;\n }\n\n /* Outline grids stand further below their top edge, per the reference\n design. */\n :host([appearance=\"outline\"]) .header {\n padding-top: var(--spacing-80);\n }\n\n /* The grid's title: the heading-h1 role, 48/700 from lg, centred, at every\n level the page picks. The one section title at that size, a recorded\n exception (CLAUDE.md, Section titles). */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h1\"))}\n text-align: center;\n margin: 0;\n }\n\n /* bd-card-section's subtitle: body-regular in the secondary ink, centred,\n 16 under the title. */\n .description {\n margin-top: var(--spacing-8);\n }\n\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-regular\"))}\n --bd-paragraph-color: var(--color-text-secondary);\n --bd-paragraph-margin-bottom: 0;\n text-align: center;\n }\n\n /* === BACKGROUND: tint, the brand wash behind the column ===\n The cards on it take the default ground and an edge, since a tint leaves\n them no tonal step (CLAUDE.md, A card's ground and its edge); bd-card\n reads both from here. */\n :host([background=\"tint\"]) .root {\n background: var(--status-brand-surface);\n border-radius: var(--shape-radius-2xl);\n padding-block: var(--spacing-64);\n --bd-card-bg: var(--color-surface-default);\n --bd-card-border: var(--border-width-1) solid var(--color-border-container);\n }\n\n .track {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-24);\n width: 100%;\n box-sizing: border-box;\n padding: 0;\n }\n\n /* The card's width is the track's: a column of the grid from md (see\n ALIGNED ROWS), the full column below it. The counts the grid reads are\n card-grid.ts's, set on the grid's host; the short-row start is set on the\n card. */\n ::slotted(bd-card) {\n display: block;\n margin: 0;\n }\n\n /* === ALIGNED ROWS. The track is a grid and every card is a subgrid\n spanning the same rows (icon, title, one per content node, actions), so\n rows line up across cards even when their content wraps differently. Row\n counts come from _syncRows(). Row gaps between tracks stay 0 so spacing\n inside cards is unchanged; spacing between wrapped card rows comes from\n the card's margin instead.\n\n The track keeps the wrapping row's geometry: --bd-card-cols cards a row,\n none narrower than 200, and a short last row in the middle. Each card\n spans two tracks of a grid twice as fine, and the first card of a short\n row starts as many tracks in as the row is short (card-grid.ts,\n _syncColumns) -- a wrapping row of cards could centre itself, a grid row\n cannot. The tracks are fixed, not fractions, and the grid is centred,\n which is the flex row's spare space split either side. === */\n @media ${unsafeCSS(above(\"md\"))} {\n .track {\n /* half a card: the card is the larger of 200 and its share of the row */\n /* no token: the 200 floor the wrapping row's min-width set */\n --_card-track: calc((max(200px, (100% - (var(--bd-card-cols, 4) - 1) * var(--spacing-24)) / var(--bd-card-cols, 4)) - var(--spacing-24)) / 2);\n display: grid;\n grid-template-columns: repeat(var(--bd-card-tracks, 8), var(--_card-track));\n justify-content: center;\n column-gap: var(--spacing-24);\n row-gap: 0;\n margin-bottom: calc(-1 * var(--spacing-24));\n }\n\n ::slotted(bd-card) {\n display: grid;\n grid-template-rows: subgrid;\n grid-row: span var(--bd-card-rows, 4);\n grid-column: var(--bd-card-start, auto) / span 2;\n width: auto;\n min-width: 0;\n margin: 0 0 var(--spacing-24);\n }\n }\n\n /* Between md and lg four cards of 200 do not fit the column, so a row\n holds three, as the wrapping row did, and the short row is counted in\n threes. */\n @media ${unsafeCSS(above(\"md\"))} and ${unsafeCSS(below(\"lg\"))} {\n .track {\n grid-template-columns: repeat(var(--bd-card-tracks-md, 6), var(--_card-track));\n }\n\n ::slotted(bd-card) {\n grid-column: var(--bd-card-start-md, auto) / span 2;\n }\n }\n\n /* Below md the cards stack across the column. bd-card-section inset each\n one a further 20 inside it, which put its cards on no edge any other\n module uses, and off the edge of a bd-section-header above the grid. */\n @media ${unsafeCSS(below(\"md\"))} {\n .track {\n flex-direction: column;\n gap: var(--spacing-20);\n align-items: stretch;\n }\n\n ::slotted(bd-card) {\n width: 100%;\n min-width: 0;\n flex: 0 0 auto;\n }\n }\n`;\n"],"mappings":"A,4DAKA,IAAAA,EAAe,CAAG,4kF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { ObserverController } from "../shared/controller.observer.js";
|
|
3
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
4
|
+
import "../../tokens/tokens.js";
|
|
5
|
+
import type { BdCard } from "./card.js";
|
|
6
|
+
export declare const CARD_APPEARANCES: readonly ["fill", "outline", "feature", "inline"];
|
|
7
|
+
export type CardAppearance = typeof CARD_APPEARANCES[number];
|
|
8
|
+
declare const BACKGROUNDS: readonly ["none", "tint"];
|
|
9
|
+
type Background = typeof BACKGROUNDS[number];
|
|
10
|
+
/**
|
|
11
|
+
* A grid of bd-card children, which lines the parts of a row of cards up
|
|
12
|
+
* with each other: a title and a description over it, and the cards.
|
|
13
|
+
*
|
|
14
|
+
* <bd-card-grid appearance="outline">
|
|
15
|
+
* <bd-h slot="title" as="h2">Trusted For The AI Era</bd-h>
|
|
16
|
+
* <bd-p slot="description">Pioneering AI in Cybersecurity since 2008.</bd-p>
|
|
17
|
+
* <bd-card>…</bd-card>
|
|
18
|
+
* </bd-card-grid>
|
|
19
|
+
*
|
|
20
|
+
* It was bd-card-section, and it survives N10 because it coordinates its
|
|
21
|
+
* cards rather than only heading them:
|
|
22
|
+
*
|
|
23
|
+
* - the column count follows the number of cards (_columnCount), and a
|
|
24
|
+
* short last row sits in the middle;
|
|
25
|
+
* - from md every card is a subgrid spanning the grid's rows -- icon,
|
|
26
|
+
* title, one row per content node, actions -- so each part starts on one
|
|
27
|
+
* line across a row however the text above it wraps. A
|
|
28
|
+
* MutationObserver recounts the rows when a card's content changes;
|
|
29
|
+
* - `appearance` goes to every card whose markup sets none, as the
|
|
30
|
+
* section's `variant` did.
|
|
31
|
+
*
|
|
32
|
+
* The page writes the title and picks its level; the grid draws it at the
|
|
33
|
+
* heading-h1 role, the 48/700 exception CLAUDE.md records for this one
|
|
34
|
+
* section, and the description at body-regular in secondary ink, both
|
|
35
|
+
* centred. A grid with neither pads nothing above or below its cards, so it
|
|
36
|
+
* sits under a bd-section-header inside a bd-section, which is how a page
|
|
37
|
+
* writes what bd-card-features-section and bd-light-carousel-section drew.
|
|
38
|
+
*/
|
|
39
|
+
export declare class BdCardGrid extends LitElement {
|
|
40
|
+
static styles: import("lit").CSSResult[];
|
|
41
|
+
/** The arrangement handed to every bd-card whose own markup sets none. */
|
|
42
|
+
appearance: CardAppearance;
|
|
43
|
+
/** The grid's ground: none, or tint, the brand wash behind the title and the cards. */
|
|
44
|
+
background: Background;
|
|
45
|
+
_slots: SlotController<"" | "title" | "description">;
|
|
46
|
+
_content: ObserverController<MutationObserver>;
|
|
47
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
48
|
+
updated(changed: PropertyValues<this>): void;
|
|
49
|
+
firstUpdated(): void;
|
|
50
|
+
_cards(): BdCard[];
|
|
51
|
+
_columnCount(count: number): number;
|
|
52
|
+
_syncColumns(cards?: BdCard[]): void;
|
|
53
|
+
_syncRows(cards?: BdCard[]): void;
|
|
54
|
+
_pushAppearance(cards?: BdCard[]): void;
|
|
55
|
+
_sync: () => void;
|
|
56
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
57
|
+
}
|
|
58
|
+
declare global {
|
|
59
|
+
interface HTMLElementTagNameMap {
|
|
60
|
+
"bd-card-grid": BdCardGrid;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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{ObserverController as r}from"../shared/controller.observer.js";import{SlotController as i}from"../shared/controller.slot.js";import{ensembleCSS as a}from"../shared/ensemble.css.js";import o from"./card-grid.css.js";import{LitElement as s,html as c}from"lit";import{property as l}from"lit/decorators.js";var u=[`fill`,`outline`,`feature`,`inline`],d=[`none`,`tint`],f=class extends s{constructor(...e){super(...e),this.appearance=`fill`,this.background=`none`,this._slots=new i(this,{slots:[`title`,`description`,``]}),this._content=new r(this,()=>new MutationObserver(()=>this._syncRows()),e=>{e.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`slot`]}),this.hasUpdated&&this._syncRows()}),this._sync=()=>{let e=this._cards();this._pushAppearance(e),this._syncRows(e),this._syncColumns(e)}}static{this.styles=[a,o]}willUpdate(e){e.has(`appearance`)&&!t(u,this.appearance)&&(this.appearance=`fill`),e.has(`background`)&&!t(d,this.background)&&(this.background=`none`)}updated(e){e.has(`appearance`)&&this._pushAppearance()}firstUpdated(){this._sync(),customElements.get(`bd-card`)||customElements.whenDefined(`bd-card`).then(this._sync)}_cards(){return[...this.children].filter(e=>e.localName===`bd-card`&&!e.slot)}_columnCount(e){return e<=4?e:e<=6?3:e<=8?4:e===9?3:4}_syncColumns(e=this._cards()){let t=e.length,n=this._columnCount(t),r=Math.min(n,3);this.style.setProperty(`--bd-card-cols`,String(n)),this.style.setProperty(`--bd-card-tracks`,String(n*2)),this.style.setProperty(`--bd-card-tracks-md`,String(r*2));let i=e=>{let n=t%e;return n?{first:t-n,start:e-n+1}:null},a=i(n),o=i(r);e.forEach((e,t)=>{a?.first===t?e.style.setProperty(`--bd-card-start`,String(a.start)):e.style.removeProperty(`--bd-card-start`),o?.first===t?e.style.setProperty(`--bd-card-start-md`,String(o.start)):e.style.removeProperty(`--bd-card-start-md`)})}_syncRows(e=this._cards()){let t=Math.max(0,...e.map(e=>e._contentNodes?.().length??0));this.style.setProperty(`--bd-card-content-rows`,String(t)),this.style.setProperty(`--bd-card-rows`,String(t+3))}_pushAppearance(e=this._cards()){for(let t of e)t._takeAppearance?.(this.appearance)}render(){let e=this._slots.has(`title`),t=this._slots.has(`description`),n=e||t;return c`
|
|
2
|
+
<section class="bd-ensemble root ${n?`headed`:``}">
|
|
3
|
+
<div class="header" ?hidden=${!n}>
|
|
4
|
+
<div class="title" ?hidden=${!e}><slot name="title"></slot></div>
|
|
5
|
+
<div class="description" ?hidden=${!t}><slot name="description"></slot></div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="track"><slot @slotchange=${this._sync}></slot></div>
|
|
8
|
+
</section>
|
|
9
|
+
`}};n([l({type:String,reflect:!0})],f.prototype,`appearance`,void 0),n([l({type:String,reflect:!0})],f.prototype,`background`,void 0),f=n([e(`bd-card-grid`)],f);export{f as BdCardGrid,u as CARD_APPEARANCES};
|
|
10
|
+
//# sourceMappingURL=card-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-grid.js","names":["cardGridCSS","_decorate","__decorate","card_grid_css_default","CARD_APPEARANCES","BACKGROUNDS","BdCardGrid","LitElement","_args","SlotController","ObserverController","observer","cards","ensembleCSS","changed","isOneOf","el","count","cols","colsMd","shortRow","left","n","wide","md","i","card","contentRows","hasTitle","hasDescription","headed","property","defineElement"],"sources":["../../../../src/components/card/card-grid.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport cardGridCSS from \"./card-grid.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport type { BdCard } from \"./card.ts\";\n\n/* bd-card's arrangements, which the grid hands to its cards. Declared here\n rather than in card.ts, which imports this module to register the family. */\nexport const CARD_APPEARANCES = [\"fill\", \"outline\", \"feature\", \"inline\"] as const;\nexport type CardAppearance = typeof CARD_APPEARANCES[number];\n\nconst BACKGROUNDS = [\"none\", \"tint\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\n/**\n * A grid of bd-card children, which lines the parts of a row of cards up\n * with each other: a title and a description over it, and the cards.\n *\n * <bd-card-grid appearance=\"outline\">\n * <bd-h slot=\"title\" as=\"h2\">Trusted For The AI Era</bd-h>\n * <bd-p slot=\"description\">Pioneering AI in Cybersecurity since 2008.</bd-p>\n * <bd-card>…</bd-card>\n * </bd-card-grid>\n *\n * It was bd-card-section, and it survives N10 because it coordinates its\n * cards rather than only heading them:\n *\n * - the column count follows the number of cards (_columnCount), and a\n * short last row sits in the middle;\n * - from md every card is a subgrid spanning the grid's rows -- icon,\n * title, one row per content node, actions -- so each part starts on one\n * line across a row however the text above it wraps. A\n * MutationObserver recounts the rows when a card's content changes;\n * - `appearance` goes to every card whose markup sets none, as the\n * section's `variant` did.\n *\n * The page writes the title and picks its level; the grid draws it at the\n * heading-h1 role, the 48/700 exception CLAUDE.md records for this one\n * section, and the description at body-regular in secondary ink, both\n * centred. A grid with neither pads nothing above or below its cards, so it\n * sits under a bd-section-header inside a bd-section, which is how a page\n * writes what bd-card-features-section and bd-light-carousel-section drew.\n */\n@defineElement(\"bd-card-grid\")\nexport class BdCardGrid extends LitElement {\n static styles = [ensembleCSS, cardGridCSS];\n\n /** The arrangement handed to every bd-card whose own markup sets none. */\n @property({ type: String, reflect: true })\n appearance: CardAppearance = \"fill\";\n\n /** The grid's ground: none, or tint, the brand wash behind the title and the cards. */\n @property({ type: String, reflect: true })\n background: Background = \"none\";\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"\"] });\n\n /* Content added to or removed from a card changes its row count, which\n doesn't trigger slotchange on the grid, and so does a bare text node\n whose words turn blank or stop being blank (characterData). Watched for\n as long as the grid is connected; on a reconnect the rows are counted\n again at once, since nothing reports what changed while it was out of\n the page. */\n _content = new ObserverController(this,\n () => new MutationObserver(() => this._syncRows()),\n observer => {\n observer.observe(this, { childList: true, subtree: true, characterData: true, attributes: true, attributeFilter: [\"slot\"] });\n if (this.hasUpdated) this._syncRows();\n });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(CARD_APPEARANCES, this.appearance)) this.appearance = \"fill\";\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"none\";\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\")) this._pushAppearance();\n }\n\n firstUpdated() {\n this._sync();\n /* bd-card is a module of its own, which the loader imports beside this\n one, and this one does not import it (card.ts imports this). A grid\n defined first syncs cards that are not upgraded yet: they count no\n rows and take no appearance. Their upgrade is no slotchange and no\n mutation the observer sees, so the grid syncs again once it happens. */\n if (!customElements.get(\"bd-card\")) void customElements.whenDefined(\"bd-card\").then(this._sync);\n }\n\n /* The cards the grid lays out: its own bd-card children in the default slot. */\n _cards() {\n return [...this.children].filter((el): el is BdCard => el.localName === \"bd-card\" && !el.slot);\n }\n\n _columnCount(count: number) {\n if (count <= 4) return count;\n if (count <= 6) return 3;\n if (count <= 8) return 4;\n if (count === 9) return 3;\n return 4;\n }\n\n /* The column count follows the number of cards, and card-grid.css.ts turns\n it into tracks, so nothing here measures the track. Every card spans two\n tracks of a grid twice as fine, which is what lets a short last row sit\n in the middle: its first card starts as many tracks in as the row is\n short of cards. Between md and lg a card's 200px floor fits three to a\n row, not four, so that band has its own count and its own short row. */\n _syncColumns(cards = this._cards()) {\n const count = cards.length;\n const cols = this._columnCount(count);\n const colsMd = Math.min(cols, 3);\n this.style.setProperty(\"--bd-card-cols\", String(cols));\n this.style.setProperty(\"--bd-card-tracks\", String(cols * 2));\n this.style.setProperty(\"--bd-card-tracks-md\", String(colsMd * 2));\n\n const shortRow = (n: number) => {\n const left = count % n;\n return left ? { first: count - left, start: n - left + 1 } : null;\n };\n const wide = shortRow(cols);\n const md = shortRow(colsMd);\n cards.forEach((card, i) => {\n if (wide?.first === i) card.style.setProperty(\"--bd-card-start\", String(wide.start));\n else card.style.removeProperty(\"--bd-card-start\");\n if (md?.first === i) card.style.setProperty(\"--bd-card-start-md\", String(md.start));\n else card.style.removeProperty(\"--bd-card-start-md\");\n });\n }\n\n /* The shared row tracks every card spans from md: icon, title, the longest\n run of content nodes, actions. Only a card's default-slot nodes are\n content rows (bd-card's _contentNodes), so a title, a badge or a\n description is never counted as one. */\n _syncRows(cards = this._cards()) {\n const contentRows = Math.max(0, ...cards.map(card => card._contentNodes?.().length ?? 0));\n this.style.setProperty(\"--bd-card-content-rows\", String(contentRows));\n this.style.setProperty(\"--bd-card-rows\", String(contentRows + 3));\n }\n\n /* The grid's appearance, onto every card the page did not give one. A\n card's reflected default is not the page's choice; bd-card records what\n is (_ownAppearance) and takes the push only without one. A card not yet\n upgraded has no _takeAppearance, so it is left alone rather than given a\n property that would shadow its own; firstUpdated syncs it once it is. */\n _pushAppearance(cards = this._cards()) {\n for (const card of cards) card._takeAppearance?.(this.appearance);\n }\n\n _sync = () => {\n const cards = this._cards();\n this._pushAppearance(cards);\n this._syncRows(cards);\n this._syncColumns(cards);\n };\n\n render() {\n const hasTitle = this._slots.has(\"title\");\n const hasDescription = this._slots.has(\"description\");\n const headed = hasTitle || hasDescription;\n return html`\n <section class=\"bd-ensemble root ${headed ? \"headed\" : \"\"}\">\n <div class=\"header\" ?hidden=${!headed}>\n <div class=\"title\" ?hidden=${!hasTitle}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${!hasDescription}><slot name=\"description\"></slot></div>\n </div>\n <div class=\"track\"><slot @slotchange=${this._sync}></slot></div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-card-grid\": BdCardGrid;\n }\n}\n"],"mappings":"A,khBAcA,IAAaI,EAAmB,CAAC,OAAQ,UAAW,UAAW,QAAQ,EAGjEC,EAAc,CAAC,OAAQ,MAAM,EAiCtBC,EAAN,cAAyBC,CAAW,C,8BAKZ,KAAA,WAAA,OAIJ,KAAA,WAAA,OAEhB,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,EAAE,CAAE,CAAC,EAQ9D,KAAA,SAAA,IAAIC,EAAmB,SAC1B,IAAI,qBAAuB,KAAK,UAAU,CAAC,EACjD,GAAY,CACVC,EAAS,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,cAAe,GAAM,WAAY,GAAM,gBAAiB,CAAC,MAAM,CAAE,CAAC,EACvH,KAAK,YAAY,KAAK,UAAU,CACtC,CAAC,EAiFW,KAAA,UAAA,CACZ,IAAMC,EAAQ,KAAK,OAAO,EAC1B,KAAK,gBAAgBA,CAAK,EAC1B,KAAK,UAAUA,CAAK,EACpB,KAAK,aAAaA,CAAK,CACzB,C,QA7GgB,KAAA,OAAA,CAACC,EAAab,CAAW,C,CAyBzC,WAAW,EAA+B,CACpCc,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQX,EAAkB,KAAK,UAAU,IAAG,KAAK,WAAa,QAC5FU,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQV,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,OAC7F,CAEA,QAAQ,EAA+B,CACjCS,EAAQ,IAAI,YAAY,GAAG,KAAK,gBAAgB,CACtD,CAEA,cAAe,CACb,KAAK,MAAM,EAMN,eAAe,IAAI,SAAS,GAAG,eAAoB,YAAY,SAAS,CAAC,CAAC,KAAK,KAAK,KAAK,CAChG,CAGA,QAAS,CACP,MAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,OAAQ,GAAqBE,EAAG,YAAc,WAAa,CAACA,EAAG,IAAI,CAC/F,CAEA,aAAa,EAAe,CAK1B,OAJIC,GAAS,EAAUA,EACnBA,GAAS,EAAU,EACnBA,GAAS,EAAU,EACnBA,IAAU,EAAU,EACjB,CACT,CAQA,aAAa,EAAQ,KAAK,OAAO,EAAG,CAClC,IAAMA,EAAQL,EAAM,OACdM,EAAO,KAAK,aAAaD,CAAK,EAC9BE,EAAS,KAAK,IAAID,EAAM,CAAC,EAC/B,KAAK,MAAM,YAAY,iBAAkB,OAAOA,CAAI,CAAC,EACrD,KAAK,MAAM,YAAY,mBAAoB,OAAOA,EAAO,CAAC,CAAC,EAC3D,KAAK,MAAM,YAAY,sBAAuB,OAAOC,EAAS,CAAC,CAAC,EAEhE,IAAMC,EAAY,GAAc,CAC9B,IAAMC,EAAOJ,EAAQK,EACrB,OAAOD,EAAO,CAAE,MAAOJ,EAAQI,EAAM,MAAOC,EAAID,EAAO,CAAE,EAAI,IAC/D,EACME,EAAOH,EAASF,CAAI,EACpBM,EAAKJ,EAASD,CAAM,EAC1BP,EAAM,SAAS,EAAM,IAAM,CACrBW,GAAM,QAAUE,EAAGC,EAAK,MAAM,YAAY,kBAAmB,OAAOH,EAAK,KAAK,CAAC,EAC9EG,EAAK,MAAM,eAAe,iBAAiB,EAC5CF,GAAI,QAAUC,EAAGC,EAAK,MAAM,YAAY,qBAAsB,OAAOF,EAAG,KAAK,CAAC,EAC7EE,EAAK,MAAM,eAAe,oBAAoB,CACrD,CAAC,CACH,CAMA,UAAU,EAAQ,KAAK,OAAO,EAAG,CAC/B,IAAMC,EAAc,KAAK,IAAI,EAAG,GAAGf,EAAM,IAAI,GAAQc,EAAK,gBAAgB,CAAC,CAAC,QAAU,CAAC,CAAC,EACxF,KAAK,MAAM,YAAY,yBAA0B,OAAOC,CAAW,CAAC,EACpE,KAAK,MAAM,YAAY,iBAAkB,OAAOA,EAAc,CAAC,CAAC,CAClE,CAOA,gBAAgB,EAAQ,KAAK,OAAO,EAAG,CACrC,IAAK,IAAMD,KAAQd,EAAOc,EAAK,kBAAkB,KAAK,UAAU,CAClE,CASA,QAAS,CACP,IAAME,EAAW,KAAK,OAAO,IAAI,OAAO,EAClCC,EAAiB,KAAK,OAAO,IAAI,aAAa,EAC9CC,EAASF,GAAYC,EAC3B,MAAO,EAAI;yCAC0BC,EAAS,SAAW,GAAG;sCAC1B,CAACA,EAAO;uCACP,CAACF,EAAS;6CACJ,CAACC,EAAe;;+CAEd,KAAK,MAAM;;KAGxD,CACF,EA1HG5B,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAzB,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCL,EAAA,CAAA8B,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAzB,EAAA,UAAA,aAAA,IAAA,EAAA,EAT1C,EAAAL,EAAA,CAAA+B,EAAc,cAAc,CAAA,EAAA1B,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{--_icon-width:var(--icon-2xl-size);--_icon-height:var(--icon-2xl-size);display:block}:host([hidden]){display:none}.card{box-sizing:border-box;text-align:start;background:var(--bd-card-bg,var(--color-surface-container));border:var(--bd-card-border,none);border-radius:var(--card-radius);width:100%;min-width:0;height:100%;padding:var(--card-padding);font-family:var(--typography-fontFamily-sans);flex-direction:column;align-items:flex-start;display:flex;position:relative}:host([background=tint]) .card{background:var(--status-brand-surface)}.card [hidden]{display:none}.icon{padding-bottom:var(--spacing-8);flex-direction:column;align-items:flex-start;display:flex}::slotted([slot=icon]){box-sizing:border-box;width:var(--_icon-width);height:var(--_icon-height);flex:none}::slotted(bd-icon[slot=icon]){--bd-icon-size:var(--_icon-width);padding-block:calc((var(--_icon-height) - var(--_icon-width)) / 2);justify-content:center}::slotted(bd-img[slot=icon]){flex-direction:column;justify-content:center;display:flex}::slotted(bd-mark[slot=icon]){justify-content:center;align-items:center;display:flex}.heading{gap:var(--spacing-4);width:100%;margin-bottom:var(--spacing-8);flex-direction:column;display:flex}.title-row{align-items:center;gap:var(--spacing-8);display:flex}.title{min-width:0}.badge{flex:none;display:flex}::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);margin:0}::slotted([slot=description]){--bd-paragraph-font-size:var(--typography-body-small-fontSize);--bd-paragraph-font-weight:var(--typography-body-small-fontWeight);--bd-paragraph-line-height:var(--typography-body-small-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-small-letterSpacing);--bd-heading-color:var(--color-text-muted);--bd-paragraph-color:var(--color-text-muted);--bd-paragraph-margin-bottom:0}.content{flex-direction:column;flex:1;width:100%;display:flex}::slotted(bd-p:last-child){--bd-paragraph-margin-bottom:0}.actions{align-items:flex-start;gap:var(--spacing-8);width:100%;margin-top:var(--spacing-16);padding-top:var(--spacing-8);flex-wrap:wrap;display:flex}.actions-start{justify-content:flex-start}.actions-center{justify-content:center}.actions-end{justify-content:flex-end}.centred{text-align:center;align-items:center}.centred .icon{align-items:center;width:100%}.centred .title-row{justify-content:center}.centred .content{align-items:center}:host([appearance=outline]){--_icon-width:65px;--_icon-height:75px}:host([appearance=outline]) .card{border:var(--border-width-2) solid var(--color-border-brand);border-radius:var(--shape-radius-2xl);padding:var(--spacing-40)}:host([appearance=outline]) .heading{margin-top:var(--spacing-64)}:host([appearance=outline]) ::slotted(bd-h[slot=title]),:host([appearance=outline]) ::slotted(bd-display[slot=title]){--bd-heading-color:var(--color-text-brand);--bd-paragraph-color:var(--color-text-brand)}:host([appearance=outline]) ::slotted([slot=description]),:host([appearance=outline]) .content ::slotted(*){--bd-paragraph-color:var(--color-text-secondary);text-align:center}:host([appearance=feature]),:host([appearance=inline]){--_icon-width:var(--icon-xl-size);--_icon-height:var(--icon-xl-size)}:host([appearance=feature]) .icon{padding-bottom:var(--spacing-16)}@media (width>=768px){:host([appearance=feature]) .card{grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:start;display:grid}:host([appearance=feature]) .icon{grid-area:1/1/span 3;margin-inline-end:var(--spacing-16);padding-bottom:0}:host([appearance=feature]) .heading,:host([appearance=feature]) .content,:host([appearance=feature]) .actions{grid-column:2}}:host([appearance=inline]) .card{grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:start;display:grid}:host([appearance=inline]) .icon{bottom:var(--spacing-6);grid-column:1;align-self:center;margin-inline-end:var(--spacing-8);padding-bottom:0;position:relative}:host([appearance=inline]) .heading{grid-column:2;align-self:center;margin-bottom:0}:host([appearance=inline]) .title-row{gap:var(--spacing-4)}:host([appearance=inline]) .title{padding-block:var(--spacing-10)}:host([appearance=inline]) .content,:host([appearance=inline]) .actions{grid-column:1/-1}@media (width<768px){:host([appearance=inline]) .card{padding:var(--card-padding-compact)}}@media (width>=768px){.in-grid{grid-template-rows:subgrid;grid-row:1/-1;align-content:start;align-items:start;row-gap:0;display:grid}.in-grid .icon{grid-row:1}.in-grid .heading{grid-row:2}.in-grid .content{grid-template-rows:subgrid;grid-row:3 / span var(--bd-card-content-rows,1);align-items:start;row-gap:0;display:grid}.in-grid.centred .content{justify-items:center}.in-grid .actions{grid-row:-2}:host([appearance=feature]) .in-grid .icon{grid-row:1/-1}:host([appearance=inline]) .in-grid .icon,:host([appearance=inline]) .in-grid .heading{grid-row:1/span 2}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=card.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.css.js","names":["card_css_default"],"sources":["../../../../src/components/card/card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above, below, bodyRole, headingRole, ink } from \"#shared/token-scales.ts\";\n\n/* bd-card's four arrangements. fill and outline are bd-card-item's looks,\n feature is bd-card-features-item's and inline bd-light-carousel-item's\n standard one, each carried over from the stylesheet that drew it and\n measured against that render. */\nexport default css`\n /* The icon's frame, which each appearance sizes below: 48 square on fill,\n the step bd-card-item drew. */\n :host {\n display: block;\n --_icon-width: var(--icon-2xl-size);\n --_icon-height: var(--icon-2xl-size);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .card {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: start;\n /* The container ground, or what a tinted bd-card-grid hands its cards:\n the default ground and an edge (CLAUDE.md, A card's ground and its\n edge). */\n background: var(--bd-card-bg, var(--color-surface-container));\n border: var(--bd-card-border, none);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n font-family: var(--typography-fontFamily-sans);\n }\n\n :host([background=\"tint\"]) .card {\n background: var(--status-brand-surface);\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 .card [hidden] {\n display: none;\n }\n\n /* === ICON ===\n The page writes the atom and the card sizes it, on the slotted element\n itself: 3.x cloned the icon into its shadow root and wrote a size on the\n clone. A bd-icon draws its svg at its own height, so the frame's width is\n the icon's size and the padding centres it in a taller frame; a bd-img\n stretches its image to the frame's width and centres it; a bd-mark keeps\n the size its drawing declares, centred in the frame. */\n .icon {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding-bottom: var(--spacing-8);\n }\n\n ::slotted([slot=\"icon\"]) {\n box-sizing: border-box;\n flex: none;\n width: var(--_icon-width);\n height: var(--_icon-height);\n }\n\n ::slotted(bd-icon[slot=\"icon\"]) {\n --bd-icon-size: var(--_icon-width);\n justify-content: center;\n padding-block: calc((var(--_icon-height) - var(--_icon-width)) / 2);\n }\n\n ::slotted(bd-img[slot=\"icon\"]) {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n ::slotted(bd-mark[slot=\"icon\"]) {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n /* === TITLE, BADGE, DESCRIPTION ===\n The badge sits beside the title in every appearance, and the description\n under both. */\n .heading {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n width: 100%;\n margin-bottom: var(--spacing-8);\n }\n\n .title-row {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n }\n\n .title {\n min-width: 0;\n }\n\n .badge {\n display: flex;\n flex: none;\n }\n\n /* The card's title: the h5 role in bold, as all three 3.x cards drew it\n (visual-level=\"h5\" font-weight=\"bold\"), at every level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h5\"))}\n /* no role: the h5 role at 700, which 3.x's font-weight=\"bold\" asked for;\n no heading role carries the h5 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-bold);\n margin: 0;\n }\n\n /* bd-card-item's subtitle: body-small in muted ink, with no flow margin. */\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-small\"))}\n ${unsafeCSS(ink(\"muted\"))}\n --bd-paragraph-margin-bottom: 0;\n }\n\n /* === CONTENT AND ACTIONS === */\n .content {\n flex: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n /* The card's own padding ends it; a closing paragraph's flow margin would\n add 16px inside that padding. Paragraphs before it keep theirs. */\n ::slotted(bd-p:last-child) {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .actions {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--spacing-8);\n width: 100%;\n margin-top: var(--spacing-16);\n padding-top: var(--spacing-8);\n }\n\n .actions-start {\n justify-content: flex-start;\n }\n\n .actions-center {\n justify-content: center;\n }\n\n .actions-end {\n justify-content: flex-end;\n }\n\n /* === CENTRED: align=\"center\", and every outline card === */\n .centred {\n align-items: center;\n text-align: center;\n }\n\n .centred .icon {\n align-items: center;\n width: 100%;\n }\n\n .centred .title-row {\n justify-content: center;\n }\n\n .centred .content {\n align-items: center;\n }\n\n /* === OUTLINE: a brand edge, a wider inset and a taller icon, centred ===\n The title takes the brand ink and the copy the secondary one. 3.x wrote\n the title's colour on the bd-h host, which paints its own ink, so its\n outline titles rendered in the primary ink; the hook is what reaches it. */\n :host([appearance=\"outline\"]) {\n /* no token: the outline icon frame's width, which 3.x wrote in script; the dimension scale stops at 64 */\n --_icon-width: 65px;\n /* no token: the outline icon frame's height, as above */\n --_icon-height: 75px;\n }\n\n :host([appearance=\"outline\"]) .card {\n border: var(--border-width-2) solid var(--color-border-brand);\n border-radius: var(--shape-radius-2xl);\n padding: var(--spacing-40);\n }\n\n :host([appearance=\"outline\"]) .heading {\n margin-top: var(--spacing-64);\n }\n\n :host([appearance=\"outline\"]) ::slotted(bd-h[slot=\"title\"]),\n :host([appearance=\"outline\"]) ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(ink(\"primary\"))}\n }\n\n :host([appearance=\"outline\"]) ::slotted([slot=\"description\"]),\n :host([appearance=\"outline\"]) .content ::slotted(*) {\n --bd-paragraph-color: var(--color-text-secondary);\n text-align: center;\n }\n\n /* === FEATURE: the icon in a column beside everything else ===\n bd-card-features-item's row: a 32 icon, 16 from the title, the badge 8\n beside it. Below md the icon stacks over the title, 16 above it. */\n :host([appearance=\"feature\"]),\n :host([appearance=\"inline\"]) {\n --_icon-width: var(--icon-xl-size);\n --_icon-height: var(--icon-xl-size);\n }\n\n :host([appearance=\"feature\"]) .icon {\n padding-bottom: var(--spacing-16);\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n :host([appearance=\"feature\"]) .card {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n align-items: start;\n align-content: start;\n }\n\n :host([appearance=\"feature\"]) .icon {\n grid-column: 1;\n grid-row: 1 / span 3;\n padding-bottom: 0;\n margin-inline-end: var(--spacing-16);\n }\n\n :host([appearance=\"feature\"]) .heading,\n :host([appearance=\"feature\"]) .content,\n :host([appearance=\"feature\"]) .actions {\n grid-column: 2;\n }\n }\n\n /* === INLINE: the icon in one row with the title and the badge ===\n bd-light-carousel-item's standard header: a 32 icon 8 from the title,\n centred on it and raised 6, the badge 4 beside the title, and 10 above\n and below the title. The copy runs the card's full width under the row,\n and the card takes the compact inset below md, as that item did. */\n :host([appearance=\"inline\"]) .card {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr);\n align-items: start;\n align-content: start;\n }\n\n :host([appearance=\"inline\"]) .icon {\n grid-column: 1;\n align-self: center;\n position: relative;\n bottom: var(--spacing-6);\n padding-bottom: 0;\n margin-inline-end: var(--spacing-8);\n }\n\n :host([appearance=\"inline\"]) .heading {\n grid-column: 2;\n align-self: center;\n margin-bottom: 0;\n }\n\n :host([appearance=\"inline\"]) .title-row {\n gap: var(--spacing-4);\n }\n\n :host([appearance=\"inline\"]) .title {\n padding-block: var(--spacing-10);\n }\n\n :host([appearance=\"inline\"]) .content,\n :host([appearance=\"inline\"]) .actions {\n grid-column: 1 / -1;\n }\n\n @media ${unsafeCSS(below(\"md\"))} {\n :host([appearance=\"inline\"]) .card {\n padding: var(--card-padding-compact);\n }\n }\n\n /* === ALIGNED ROWS: a card in a bd-card-grid, from md ===\n The grid makes this host a subgrid spanning its rows -- icon, title, one\n row per content node, actions (card-grid.css.ts) -- and the card's box\n spans them too, so every part starts on one line across a row of cards\n however the text above it wraps. Row gaps stay 0 and the spacing inside\n the card is the parts' own. A feature card's icon spans every row of its\n own column; an inline card's icon and title share the first two. */\n @media ${unsafeCSS(above(\"md\"))} {\n .in-grid {\n display: grid;\n grid-template-rows: subgrid;\n grid-row: 1 / -1;\n row-gap: 0;\n align-items: start;\n align-content: start;\n }\n\n .in-grid .icon {\n grid-row: 1;\n }\n\n .in-grid .heading {\n grid-row: 2;\n }\n\n .in-grid .content {\n display: grid;\n grid-template-rows: subgrid;\n grid-row: 3 / span var(--bd-card-content-rows, 1);\n row-gap: 0;\n align-items: start;\n }\n\n .in-grid.centred .content {\n justify-items: center;\n }\n\n .in-grid .actions {\n grid-row: -2;\n }\n\n :host([appearance=\"feature\"]) .in-grid .icon {\n grid-row: 1 / -1;\n }\n\n :host([appearance=\"inline\"]) .in-grid .icon,\n :host([appearance=\"inline\"]) .in-grid .heading {\n grid-row: 1 / span 2;\n }\n }\n`;\n"],"mappings":"A,4DAOA,IAAAA,EAAe,CAAG,2jK"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import { type CardAppearance } from "./card-grid.js";
|
|
5
|
+
import "../badge/badge.js";
|
|
6
|
+
import "../button/button.js";
|
|
7
|
+
import "../h/h.js";
|
|
8
|
+
import "../img/img.js";
|
|
9
|
+
import "../link/link.js";
|
|
10
|
+
import "../p/p.js";
|
|
11
|
+
declare const ALIGNS: readonly ["start", "center"];
|
|
12
|
+
declare const BACKGROUNDS: readonly ["container", "tint"];
|
|
13
|
+
declare const ACTIONS_ALIGNS: readonly ["", "start", "center", "end"];
|
|
14
|
+
type Align = typeof ALIGNS[number];
|
|
15
|
+
type Background = typeof BACKGROUNDS[number];
|
|
16
|
+
type ActionsAlign = typeof ACTIONS_ALIGNS[number];
|
|
17
|
+
/**
|
|
18
|
+
* A card: an icon, a title with a badge beside it, a description, content
|
|
19
|
+
* rows and actions. It stands alone, or in a bd-card-grid, which lines the
|
|
20
|
+
* parts of a row of cards up with each other.
|
|
21
|
+
*
|
|
22
|
+
* <bd-card>
|
|
23
|
+
* <bd-icon slot="icon" name="globe"></bd-icon>
|
|
24
|
+
* <bd-h slot="title" as="h3">VPN Included</bd-h>
|
|
25
|
+
* <bd-badge slot="badge" appearance="fill" variant="brand" size="sm">NEW</bd-badge>
|
|
26
|
+
* <bd-p slot="description">For every device</bd-p>
|
|
27
|
+
* <bd-p>Unlimited encrypted VPN traffic.</bd-p>
|
|
28
|
+
* <bd-button slot="actions" href="#" size="sm">Learn more</bd-button>
|
|
29
|
+
* </bd-card>
|
|
30
|
+
*
|
|
31
|
+
* It replaces bd-card-item, bd-card-features-item and bd-light-carousel-item,
|
|
32
|
+
* which drew these parts in three arrangements; the arrangement is
|
|
33
|
+
* `appearance`:
|
|
34
|
+
*
|
|
35
|
+
* fill the parts stacked on a container ground: bd-card-item's own
|
|
36
|
+
* look, and the light carousel's simple one
|
|
37
|
+
* outline stacked and centred, with a brand edge: bd-card-item's outline
|
|
38
|
+
* feature the icon in a column beside everything else: the card-features
|
|
39
|
+
* card
|
|
40
|
+
* inline the icon in one row with the title and badge: the light
|
|
41
|
+
* carousel's standard look
|
|
42
|
+
*
|
|
43
|
+
* The page writes every part (ADR 0003) and picks the title's level; the card
|
|
44
|
+
* draws the title at the heading-h5 role in bold, and the description at
|
|
45
|
+
* body-small in muted ink. The icon is sized by the card's stylesheet on the
|
|
46
|
+
* slotted atom itself -- 48 square, 65 by 75 on outline, 32 on feature and
|
|
47
|
+
* inline -- so nothing is cloned or measured. Each part's box is hidden while
|
|
48
|
+
* its slot is empty.
|
|
49
|
+
*
|
|
50
|
+
* In a bd-card-grid the grid hands its `appearance` to every card whose markup
|
|
51
|
+
* sets none, and from md the card is a subgrid of the grid's rows: icon,
|
|
52
|
+
* title, one row per content node, actions. Only the default slot's nodes are
|
|
53
|
+
* rows, which _contentNodes() counts for the grid.
|
|
54
|
+
*/
|
|
55
|
+
export declare class BdCard extends LitElement {
|
|
56
|
+
static styles: import("lit").CSSResult[];
|
|
57
|
+
/** The arrangement: fill (default), outline, feature or inline. Reflected, for the stylesheet. */
|
|
58
|
+
appearance: CardAppearance;
|
|
59
|
+
/** start, or center: the parts centred in the card. outline is always centred. */
|
|
60
|
+
align: Align;
|
|
61
|
+
/** The card's ground: container (default), --color-surface-container, or tint, the brand wash. */
|
|
62
|
+
background: Background;
|
|
63
|
+
/** Where the actions sit: start, center or end; unset, they follow `align`. */
|
|
64
|
+
actionsAlign: ActionsAlign;
|
|
65
|
+
private _inGrid;
|
|
66
|
+
_ownAppearance: boolean;
|
|
67
|
+
private _ownWrite;
|
|
68
|
+
_slots: SlotController<"" | "title" | "description" | "badge" | "icon" | "actions">;
|
|
69
|
+
requestUpdate(...args: Parameters<LitElement["requestUpdate"]>): void;
|
|
70
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
71
|
+
connectedCallback(): void;
|
|
72
|
+
protected update(changed: PropertyValues<this>): void;
|
|
73
|
+
/** bd-card-grid's appearance, which the card takes unless the page chose its own. */
|
|
74
|
+
_takeAppearance(value: CardAppearance): void;
|
|
75
|
+
private _quietly;
|
|
76
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
77
|
+
/** The default slot's nodes, each a content row of the grid: elements the page gave no slot, and words. */
|
|
78
|
+
_contentNodes(): ChildNode[];
|
|
79
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
"bd-card": BdCard;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
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"../link/link.js";import"../badge/badge.js";import"../button/button.js";import"../img/img.js";import{CARD_APPEARANCES as i}from"./card-grid.js";import a from"./card.css.js";import{LitElement as o,html as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=[`start`,`center`],d=[`container`,`tint`],f=[``,`start`,`center`,`end`],p=class extends o{constructor(...e){super(...e),this.appearance=`fill`,this.align=`start`,this.background=`container`,this.actionsAlign=``,this._inGrid=!1,this._ownAppearance=this.hasAttribute(`appearance`),this._ownWrite=!1,this._slots=new r(this,{slots:[`icon`,`title`,`badge`,`description`,`actions`,``]})}static{this.styles=[a]}requestUpdate(...e){e[0]===`appearance`&&!this._ownWrite&&this._ownAppearance!==void 0&&(this._ownAppearance=!0),super.requestUpdate(...e)}attributeChangedCallback(e,t,n){e!==`appearance`||this._ownWrite?super.attributeChangedCallback(e,t,n):(this._quietly(()=>super.attributeChangedCallback(e,t,n)),this._ownAppearance=n!==null,n===null&&this._inGrid&&this._takeAppearance(this.parentElement.appearance))}connectedCallback(){super.connectedCallback(),this._inGrid=this.parentElement?.localName===`bd-card-grid`}update(e){this._quietly(()=>super.update(e))}_takeAppearance(e){this._ownAppearance||this._quietly(()=>{this.appearance=e})}_quietly(e){let t=this._ownWrite;this._ownWrite=!0;try{e()}finally{this._ownWrite=t}}willUpdate(e){e.has(`appearance`)&&!t(i,this.appearance)&&this._quietly(()=>{this.appearance=`fill`}),e.has(`align`)&&!t(u,this.align)&&(this.align=`start`),e.has(`background`)&&!t(d,this.background)&&(this.background=`container`),e.has(`actionsAlign`)&&!t(f,this.actionsAlign)&&(this.actionsAlign=``)}_contentNodes(){return[...this.childNodes].filter(e=>e.nodeType===Node.ELEMENT_NODE?!e.slot:e.nodeType===Node.TEXT_NODE&&e.data.trim()!==``)}render(){let e=e=>this._slots.has(e),t=this.align===`center`||this.appearance===`outline`,n=this.actionsAlign||(t?`center`:`start`);return s`
|
|
2
|
+
<div class="card ${this._inGrid?`in-grid`:``} ${t?`centred`:``}">
|
|
3
|
+
<div class="icon" ?hidden=${!e(`icon`)}><slot name="icon"></slot></div>
|
|
4
|
+
<div class="heading" ?hidden=${!e(`title`)&&!e(`badge`)&&!e(`description`)}>
|
|
5
|
+
<div class="title-row" ?hidden=${!e(`title`)&&!e(`badge`)}>
|
|
6
|
+
<div class="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
7
|
+
<div class="badge" ?hidden=${!e(`badge`)}><slot name="badge"></slot></div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="description" ?hidden=${!e(`description`)}><slot name="description"></slot></div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="content" ?hidden=${!e(``)}><slot></slot></div>
|
|
12
|
+
<div class="actions actions-${n}" ?hidden=${!e(`actions`)}><slot name="actions"></slot></div>
|
|
13
|
+
</div>
|
|
14
|
+
`}};n([c({type:String,reflect:!0})],p.prototype,`appearance`,void 0),n([c({type:String,reflect:!0})],p.prototype,`align`,void 0),n([c({type:String,reflect:!0})],p.prototype,`background`,void 0),n([c({type:String,attribute:`actions-align`})],p.prototype,`actionsAlign`,void 0),n([l()],p.prototype,`_inGrid`,void 0),p=n([e(`bd-card`)],p);export{p as BdCard};
|
|
15
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","names":["cardCSS","_decorate","__decorate","card_css_default","ALIGNS","BACKGROUNDS","ACTIONS_ALIGNS","BdCard","LitElement","_args","SlotController","args","name","old","value","changed","was","write","isOneOf","CARD_APPEARANCES","node","has","centred","actionsAlign","property","state","defineElement"],"sources":["../../../../src/components/card/card.ts"],"sourcesContent":["import { LitElement, html, 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/* ./card registers the family: the card, and the grid that lines cards up. */\nimport { CARD_APPEARANCES, type BdCardGrid, type CardAppearance } from \"./card-grid.ts\";\n/* The atoms the page writes into the card's slots. The card renders none of\n them now, but 3.x's three card modules registered bd-h, bd-badge and\n bd-button between them, and a page importing only this module still gets\n what it writes. An icon or a mark registers with its drawing. */\nimport \"#components/badge/badge.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/p/p.ts\";\nimport cardCSS from \"./card.css.ts\";\n\nconst ALIGNS = [\"start\", \"center\"] as const;\nconst BACKGROUNDS = [\"container\", \"tint\"] as const;\nconst ACTIONS_ALIGNS = [\"\", \"start\", \"center\", \"end\"] as const;\n\ntype Align = typeof ALIGNS[number];\ntype Background = typeof BACKGROUNDS[number];\ntype ActionsAlign = typeof ACTIONS_ALIGNS[number];\ntype Part = \"icon\" | \"title\" | \"badge\" | \"description\" | \"actions\" | \"\";\n\n/**\n * A card: an icon, a title with a badge beside it, a description, content\n * rows and actions. It stands alone, or in a bd-card-grid, which lines the\n * parts of a row of cards up with each other.\n *\n * <bd-card>\n * <bd-icon slot=\"icon\" name=\"globe\"></bd-icon>\n * <bd-h slot=\"title\" as=\"h3\">VPN Included</bd-h>\n * <bd-badge slot=\"badge\" appearance=\"fill\" variant=\"brand\" size=\"sm\">NEW</bd-badge>\n * <bd-p slot=\"description\">For every device</bd-p>\n * <bd-p>Unlimited encrypted VPN traffic.</bd-p>\n * <bd-button slot=\"actions\" href=\"#\" size=\"sm\">Learn more</bd-button>\n * </bd-card>\n *\n * It replaces bd-card-item, bd-card-features-item and bd-light-carousel-item,\n * which drew these parts in three arrangements; the arrangement is\n * `appearance`:\n *\n * fill the parts stacked on a container ground: bd-card-item's own\n * look, and the light carousel's simple one\n * outline stacked and centred, with a brand edge: bd-card-item's outline\n * feature the icon in a column beside everything else: the card-features\n * card\n * inline the icon in one row with the title and badge: the light\n * carousel's standard look\n *\n * The page writes every part (ADR 0003) and picks the title's level; the card\n * draws the title at the heading-h5 role in bold, and the description at\n * body-small in muted ink. The icon is sized by the card's stylesheet on the\n * slotted atom itself -- 48 square, 65 by 75 on outline, 32 on feature and\n * inline -- so nothing is cloned or measured. Each part's box is hidden while\n * its slot is empty.\n *\n * In a bd-card-grid the grid hands its `appearance` to every card whose markup\n * sets none, and from md the card is a subgrid of the grid's rows: icon,\n * title, one row per content node, actions. Only the default slot's nodes are\n * rows, which _contentNodes() counts for the grid.\n */\n@defineElement(\"bd-card\")\nexport class BdCard extends LitElement {\n static styles = [cardCSS];\n\n /** The arrangement: fill (default), outline, feature or inline. Reflected, for the stylesheet. */\n @property({ type: String, reflect: true })\n appearance: CardAppearance = \"fill\";\n\n /** start, or center: the parts centred in the card. outline is always centred. */\n @property({ type: String, reflect: true })\n align: Align = \"start\";\n\n /** The card's ground: container (default), --color-surface-container, or tint, the brand wash. */\n @property({ type: String, reflect: true })\n background: Background = \"container\";\n\n /** Where the actions sit: start, center or end; unset, they follow `align`. */\n @property({ type: String, attribute: \"actions-align\" })\n actionsAlign: ActionsAlign = \"\";\n\n /* Whether the card's parent is a bd-card-grid, whose subgrid rows it then\n lines its parts up on (from md). Read on connect, so a card moved into or\n out of a grid follows. */\n @state()\n private _inGrid = false;\n\n /* Whether the page chose this card's appearance, which bd-card-grid then\n leaves alone: in its markup, through an attribute a template binds after\n the card was created, or by setting the property, as React 19 and a Lit\n `.appearance=` binding do. Read before Lit's first update reflects the\n default onto the attribute -- after that, hasAttribute() is true of every\n card -- and followed through every later write but the card's own: its\n reflection, the grid's push (_takeAppearance) and willUpdate's repair. */\n _ownAppearance = this.hasAttribute(\"appearance\");\n /* Set while the card writes `appearance` itself, so the write is not taken for the page's. */\n private _ownWrite = false;\n\n _slots = new SlotController(this, { slots: [\"icon\", \"title\", \"badge\", \"description\", \"actions\", \"\"] });\n\n /* Every write of the property reaches here, the page's included. The\n default is written before _ownAppearance is initialised, which is how\n that one write is told apart from the page's. */\n requestUpdate(...args: Parameters<LitElement[\"requestUpdate\"]>) {\n if (args[0] === \"appearance\" && !this._ownWrite && this._ownAppearance !== undefined) this._ownAppearance = true;\n super.requestUpdate(...args);\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null) {\n if (name !== \"appearance\" || this._ownWrite) {\n super.attributeChangedCallback(name, old, value);\n return;\n }\n // the page's attribute: the property follows it, and the card is the page's while it is there\n this._quietly(() => super.attributeChangedCallback(name, old, value));\n this._ownAppearance = value !== null;\n // the page took its own away: in a grid, the grid's is the card's again\n if (value === null && this._inGrid) this._takeAppearance((this.parentElement as BdCardGrid).appearance);\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._inGrid = this.parentElement?.localName === \"bd-card-grid\";\n }\n\n /* ReactiveElement reflects properties to attributes inside update(). */\n protected update(changed: PropertyValues<this>) {\n this._quietly(() => super.update(changed));\n }\n\n /** bd-card-grid's appearance, which the card takes unless the page chose its own. */\n _takeAppearance(value: CardAppearance) {\n if (!this._ownAppearance) this._quietly(() => { this.appearance = value; });\n }\n\n private _quietly(write: () => void) {\n const was = this._ownWrite;\n this._ownWrite = true;\n try {\n write();\n } finally {\n this._ownWrite = was;\n }\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(CARD_APPEARANCES, this.appearance)) this._quietly(() => { this.appearance = \"fill\"; });\n if (changed.has(\"align\") && !isOneOf(ALIGNS, this.align)) this.align = \"start\";\n if (changed.has(\"background\") && !isOneOf(BACKGROUNDS, this.background)) this.background = \"container\";\n if (changed.has(\"actionsAlign\") && !isOneOf(ACTIONS_ALIGNS, this.actionsAlign)) this.actionsAlign = \"\";\n }\n\n /** The default slot's nodes, each a content row of the grid: elements the page gave no slot, and words. */\n _contentNodes() {\n return [...this.childNodes].filter(node => (node.nodeType === Node.ELEMENT_NODE\n ? !(node as Element).slot\n : node.nodeType === Node.TEXT_NODE && (node as Text).data.trim() !== \"\"));\n }\n\n render() {\n const has = (name: Part) => this._slots.has(name);\n const centred = this.align === \"center\" || this.appearance === \"outline\";\n const actionsAlign = this.actionsAlign || (centred ? \"center\" : \"start\");\n return html`\n <div class=\"card ${this._inGrid ? \"in-grid\" : \"\"} ${centred ? \"centred\" : \"\"}\">\n <div class=\"icon\" ?hidden=${!has(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"heading\" ?hidden=${!has(\"title\") && !has(\"badge\") && !has(\"description\")}>\n <div class=\"title-row\" ?hidden=${!has(\"title\") && !has(\"badge\")}>\n <div class=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"badge\" ?hidden=${!has(\"badge\")}><slot name=\"badge\"></slot></div>\n </div>\n <div class=\"description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></div>\n </div>\n <div class=\"content\" ?hidden=${!has(\"\")}><slot></slot></div>\n <div class=\"actions actions-${actionsAlign}\" ?hidden=${!has(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-card\": BdCard;\n }\n}\n"],"mappings":"A,olBAqBA,IAAMI,EAAS,CAAC,QAAS,QAAQ,EAC3BC,EAAc,CAAC,YAAa,MAAM,EAClCC,EAAiB,CAAC,GAAI,QAAS,SAAU,KAAK,EA8CvCC,EAAN,cAAqBC,CAAW,C,8BAKR,KAAA,WAAA,OAId,KAAA,MAAA,QAIU,KAAA,WAAA,YAII,KAAA,aAAA,GAMX,KAAA,QAAA,GASD,KAAA,eAAA,KAAK,aAAa,YAAY,EAE3B,KAAA,UAAA,GAEX,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAQ,QAAS,QAAS,cAAe,UAAW,EAAE,CAAE,CAAC,C,QAnCrF,KAAA,OAAA,CAACV,CAAO,C,CAwCxB,cAAc,GAAGW,EAA+C,CAC1DA,EAAK,KAAO,cAAgB,CAAC,KAAK,WAAa,KAAK,iBAAmB,IAAA,KAAW,KAAK,eAAiB,IAC5G,MAAM,cAAc,GAAGA,CAAI,CAC7B,CAEA,yBAAyB,EAAc,EAAoB,EAAsB,CAC3EC,IAAS,cAAgB,KAAK,UAChC,MAAM,yBAAyBA,EAAMC,EAAKC,CAAK,GAIjD,KAAK,aAAe,MAAM,yBAAyBF,EAAMC,EAAKC,CAAK,CAAC,EACpE,KAAK,eAAiBA,IAAU,KAE5BA,IAAU,MAAQ,KAAK,SAAS,KAAK,gBAAiB,KAAK,cAA6B,UAAU,EACxG,CAEA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,QAAU,KAAK,eAAe,YAAc,cACnD,CAGA,OAAiB,EAA+B,CAC9C,KAAK,aAAe,MAAM,OAAOC,CAAO,CAAC,CAC3C,CAGA,gBAAgB,EAAuB,CAChC,KAAK,gBAAgB,KAAK,aAAe,CAAE,KAAK,WAAaD,CAAO,CAAC,CAC5E,CAEA,SAAiB,EAAmB,CAClC,IAAME,EAAM,KAAK,UACjB,KAAK,UAAY,GACjB,GAAI,CACFC,EAAM,CACR,QAAU,CACR,KAAK,UAAYD,CACnB,CACF,CAEA,WAAW,EAA+B,CACpCD,EAAQ,IAAI,YAAY,GAAK,CAACG,EAAQC,EAAkB,KAAK,UAAU,GAAG,KAAK,aAAe,CAAE,KAAK,WAAa,MAAQ,CAAC,EAC3HJ,EAAQ,IAAI,OAAO,GAAK,CAACG,EAAQd,EAAQ,KAAK,KAAK,IAAG,KAAK,MAAQ,SACnEW,EAAQ,IAAI,YAAY,GAAK,CAACG,EAAQb,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,aACvFU,EAAQ,IAAI,cAAc,GAAK,CAACG,EAAQZ,EAAgB,KAAK,YAAY,IAAG,KAAK,aAAe,GACtG,CAGA,eAAgB,CACd,MAAO,CAAC,GAAG,KAAK,UAAU,CAAC,CAAC,OAAO,GAASc,EAAK,WAAa,KAAK,aAC/D,CAAEA,EAAiB,KACnBA,EAAK,WAAa,KAAK,WAAcA,EAAc,KAAK,KAAK,IAAM,EAAG,CAC5E,CAEA,QAAS,CACP,IAAMC,EAAO,GAAe,KAAK,OAAO,IAAIT,CAAI,EAC1CU,EAAU,KAAK,QAAU,UAAY,KAAK,aAAe,UACzDC,EAAe,KAAK,eAAiBD,EAAU,SAAW,SAChE,MAAO,EAAI;yBACU,KAAK,QAAU,UAAY,GAAG,GAAGA,EAAU,UAAY,GAAG;oCAC/C,CAACD,EAAI,MAAM,EAAE;uCACV,CAACA,EAAI,OAAO,GAAK,CAACA,EAAI,OAAO,GAAK,CAACA,EAAI,aAAa,EAAE;2CAClD,CAACA,EAAI,OAAO,GAAK,CAACA,EAAI,OAAO,EAAE;yCACjC,CAACA,EAAI,OAAO,EAAE;yCACd,CAACA,EAAI,OAAO,EAAE;;6CAEV,CAACA,EAAI,aAAa,EAAE;;uCAE1B,CAACA,EAAI,EAAE,EAAE;sCACVE,EAAa,YAAY,CAACF,EAAI,SAAS,EAAE;;KAG7E,CACF,EAhHGpB,EAAA,CAAAuB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAjB,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCN,EAAA,CAAAuB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAjB,EAAA,UAAA,QAAA,IAAA,EAAA,EAIxCN,EAAA,CAAAuB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAjB,EAAA,UAAA,aAAA,IAAA,EAAA,EAIxCN,EAAA,CAAAuB,EAAS,CAAE,KAAM,OAAQ,UAAW,eAAgB,CAAC,CAAA,EAAAjB,EAAA,UAAA,eAAA,IAAA,EAAA,EAMrDN,EAAA,CAAAwB,EAAM,CAAA,EAAAlB,EAAA,UAAA,UAAA,IAAA,EAAA,EAvBR,EAAAN,EAAA,CAAAyB,EAAc,SAAS,CAAA,EAAAnB,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";e`.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}`,e`@media (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}`;var t=e`:host{display:block}.bd-carousel{margin-bottom:var(--spacing-48);flex-direction:column;align-items:center;max-width:100%;display:block;position:relative}.bd-carousel-track.dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}.bd-box:focus-visible,.bd-plus-button:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.bd-header-carousel{text-align:center;align-items:center;margin-top:50px;margin-bottom:50px;display:block}.bd-carousel-controls{margin-top:var(--spacing-24);padding-inline:var(--spacing-10);justify-content:flex-end;display:flex}.bd-carousel-track{padding:var(--spacing-0) var(--spacing-20);scroll-padding-inline:var(--spacing-20);overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;z-index:var(--z-base);flex:1;gap:2em;display:flex;position:relative;overflow:auto hidden;container-type:inline-size}.bd-carousel-track::-webkit-scrollbar{display:none}.bd-carousel-track ::slotted(*){scroll-snap-align:start}.bd-carousel-icon{max-width:100%;height:var(--spacing-40);width:var(--spacing-40);position:relative}.bd-box{min-height:217px;min-width:unset;width:350px;max-width:calc(100cqi - 2 * var(--card-padding));background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;cursor:pointer;transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);font-family:var(--typography-fontFamily-sans);z-index:var(--z-raised);flex-direction:column;flex:none;justify-content:center;align-items:start;display:flex;position:relative}.bd-plus-button{bottom:var(--spacing-10);right:var(--spacing-10);width:var(--spacing-44);height:var(--spacing-44);border-radius:var(--radius-full);cursor:pointer;border:var(--border-width-2) solid var(--color-border-brand);color:var(--color-action-primary);background:0 0;justify-content:center;align-items:center;padding:0;display:flex;position:absolute}.bd-plus-button:hover{background:var(--status-brand-surface)}.bd-plus-button:active{background:var(--color-action-primary);color:var(--color-brand-on-fill)}@media (width<768px){.bd-carousel-track{padding:var(--spacing-0) var(--spacing-0);scroll-padding-inline:var(--spacing-0);flex-wrap:nowrap;gap:1em}}@media (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}@container (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}@media (prefers-reduced-motion:reduce){.bd-box{transition:none}.bd-carousel-track{scroll-behavior:auto}}`;export{t as default};
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";e`.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}`,e`@media (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}`;var t=e`:host{display:block}.bd-carousel [hidden],.bd-box [hidden]{display:none}.bd-carousel{margin-bottom:var(--spacing-48);flex-direction:column;align-items:center;max-width:100%;display:block;position:relative}.bd-carousel-track.dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily)}::slotted(bd-h[slot=detail-title]),::slotted(bd-display[slot=detail-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)}.bd-box:focus-visible,.bd-plus-button:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}.bd-header-carousel{text-align:center;align-items:center;margin-top:50px;margin-bottom:50px;display:block}.bd-carousel-controls{margin-top:var(--spacing-24);padding-inline:var(--spacing-10);justify-content:flex-end;display:flex}.bd-carousel-track{padding:var(--spacing-0) var(--spacing-20);scroll-padding-inline:var(--spacing-20);overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;z-index:var(--z-base);flex:1;gap:2em;display:flex;position:relative;overflow:auto hidden;container-type:inline-size}.bd-carousel-track::-webkit-scrollbar{display:none}.bd-carousel-track ::slotted(*){scroll-snap-align:start}.bd-carousel-icon{max-width:100%;height:var(--spacing-40);width:var(--spacing-40);margin-bottom:var(--spacing-16);position:relative}::slotted([slot=icon]){width:100%;height:100%;display:block}.bd-box{min-height:217px;min-width:unset;width:350px;max-width:calc(100cqi - 2 * var(--card-padding));background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;cursor:pointer;transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);font-family:var(--typography-fontFamily-sans);z-index:var(--z-raised);flex-direction:column;flex:none;justify-content:center;align-items:start;display:flex;position:relative}.bd-plus-button{bottom:var(--spacing-10);right:var(--spacing-10);width:var(--spacing-44);height:var(--spacing-44);border-radius:var(--radius-full);cursor:pointer;border:var(--border-width-2) solid var(--color-border-brand);color:var(--color-action-primary);background:0 0;justify-content:center;align-items:center;padding:0;display:flex;position:absolute}.bd-plus-button:hover{background:var(--status-brand-surface)}.bd-plus-button:active{background:var(--color-action-primary);color:var(--color-brand-on-fill)}@media (width<768px){.bd-carousel-track{padding:var(--spacing-0) var(--spacing-0);scroll-padding-inline:var(--spacing-0);flex-wrap:nowrap;gap:1em}}@media (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}@container (width<=480px){.bd-box{padding:var(--spacing-0) var(--spacing-20);min-height:300px;max-width:calc(100cqi - 2 * var(--spacing-20))}.bd-carousel-icon{bottom:var(--spacing-10)}}@media (prefers-reduced-motion:reduce){.bd-box{transition:none}.bd-carousel-track{scroll-behavior:auto}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=carousel.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.css.js","names":["carousel_css_default"],"sources":["../../../../src/components/carousel/carousel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\n/* The card at its phone inset and height: said once, asked twice (below). */\nconst narrowCard = css`\n .bd-box {\n padding: var(--spacing-0) var(--spacing-20);\n min-height: 300px;\n max-width: calc(100cqi - 2 * var(--spacing-20));\n }\n\n .bd-carousel-icon {\n bottom: var(--spacing-10);\n }\n`;\n\nconst narrowCardMedia = css`@media (max-width: 480px) { ${narrowCard} }`;\n\nexport default css`\n :host {\n display: block;\n }\n\n .bd-carousel {\n display: block;\n align-items: center;\n position: relative;\n /* 100px used to stand here, room for two arrows positioned absolutely\n 65px below the track. The dots are in the flow now, so the space below\n the track is their margin, their 24px and this: 96. */\n margin-bottom: var(--spacing-48);\n max-width: 100%;\n flex-direction: column;\n }\n /* While a mouse drags the track (_enableMouseDrag) it follows the pointer\n pixel for pixel, so neither the snap nor the smooth scroll-behavior may\n come between them; the drag settles on a stop itself on release. */\n .bd-carousel-track.dragging {\n cursor: grabbing;\n scroll-snap-type: none;\n scroll-behavior: auto;\n }\n\n /* No .bd-section-title rule. The title is a bd-h at visual-level=\"h3\", so\n the heading-h3 role carries the whole of its type -- the three\n declarations that stood here spelled out that role's size and weight by\n hand while leaving its line-height unset, which is how the title came to\n render at the browser's default leading and with the browser's default h2\n margins. LightCarousel and CardFeatures declare no such rule either. */\n .bd-box:focus-visible,\n .bd-plus-button:focus-visible {\n /* the one focus ring — see Foundations/Focus */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n }\n\n .bd-header-carousel {\n display: block;\n align-items: center;\n text-align: center;\n margin-bottom: 50px;\n margin-top: 50px;\n }\n\n /* A \".bd-heading{padding: 20px}\" rule stood here. .bd-heading is the class\n bd-h puts on the element inside its own shadow root, so this stylesheet\n never reached it: measured 0 matches across 27 carousel sections and 102\n carousel items. */\n /* The dots: bd-pagination-dots, the package's one set of slide controls.\n Two <img role=\"button\"> arrows stood here, painted by eight data-URI SVGs\n with the blues and the disabled grey baked in as hex -- invisible to every\n colour check -- and positioned absolutely 65px under the track. Where they\n sat, the dots sit now: under the track, at its end. */\n .bd-carousel-controls {\n display: flex;\n justify-content: flex-end;\n margin-top: var(--spacing-24);\n padding-inline: var(--spacing-10);\n }\n\n /* A scroller the browser drives: the wheel, a trackpad, touch and the\n keyboard (arrows, once focus is on an item's +) all move it, and the snap\n settles each of them on a stop. It was overflow-x: hidden, moved only by a\n script writing scrollLeft from mouse and touch handlers, so none of those\n reached it. */\n .bd-carousel-track {\n display: flex;\n gap: 2em;\n flex: 1;\n padding: var(--spacing-0) var(--spacing-20);\n /* the stops start where the padding leaves the first item, so each is one\n whole _step() from the last -- the arithmetic the dots count with */\n scroll-padding-inline: var(--spacing-20);\n position: relative;\n overflow-x: auto;\n overflow-y: hidden;\n /* a sideways swipe that reaches either end stops here, rather than\n carrying on into the browser's back and forward gesture */\n overscroll-behavior-x: contain;\n /* No scrollbar: the dots say where the track is. Hidden the way\n bd-light-carousel hides its own. */\n scrollbar-width: none;\n scroll-snap-type: x mandatory;\n /* a dot's jump glides; see the reduced-motion block for who it does not */\n scroll-behavior: smooth;\n z-index: var(--z-base);\n /* The items size themselves against the track (see .bd-box): a card is\n as wide as its track allows, and narrow when the track is, wherever\n the section is placed. */\n container-type: inline-size;\n }\n .bd-carousel-track::-webkit-scrollbar {\n display: none;\n }\n /* Each item is a stop. The snap above had no aligned child to land on, so\n it never snapped at all. Scoped to the track's slot: bd-carousel-item\n adopts this stylesheet too, and a bare ::slotted(*) there would make every\n paragraph inside an item a stop as well. */\n .bd-carousel-track ::slotted(*) {\n scroll-snap-align: start;\n }\n\n .bd-carousel-icon {\n position: relative;\n max-width: 100%;\n height: var(--spacing-40);\n width: var(--spacing-40);\n }\n .bd-box {\n flex: 0 0 auto;\n min-height: 217px;\n min-width: unset;\n width: 350px;\n /* Never wider than the track: the 350 and the inset beside it are 414,\n and a 343 phone track used to hold a 390 card with its + past the\n track's edge at every stop. cqi rather than a percentage because the\n item around this box is sized by it -- a percentage there would be\n cyclic and read as none. */\n max-width: calc(100cqi - 2 * var(--card-padding));\n background: var(--color-surface-container);\n /* --radius-2xl, the step the other ten cards take.\n bd-light-carousel made this exact move and wrote the argument for it:\n \"nothing about a carousel item asks for a softer corner than the same\n card sitting in a grid\". Same family, same reasoning, this file was\n behind. Visible: the corner tightens 24px to 16px. */\n border-radius: var(--card-radius);\n /* No edge, for the reason bd-bentoitem's rule states: this card sits on\n surface/container over the page ground, and that role is documented as\n reading like its own object without a border or a shadow to say so.\n\n What stood here was a --border-width-2 edge, and the comment it carried\n was about the UNIT rather than the edge: --spacing-2 and --border-width-2\n are both 2px at a 16px root and diverge above it, so at a 24px root this\n edge went to 3px while bd-bentoitem's held at 1px. That argument is spent\n -- neither card draws an edge now -- but it is worth keeping the\n conclusion: a border is a hairline against a shape, not a distance\n between things, so it never belongs on the spacing scale. */\n /* --spacing-32, the step, not 2em. Both are 32px at a 16px root and the\n em was never a decision -- ten other cards spell the same inset with the\n scale, and an em here would also drift with any font-size this box ever\n inherits. */\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: start;\n justify-content: center;\n text-align: start;\n cursor: pointer;\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n font-family: var(--typography-fontFamily-sans);\n position: relative;\n z-index: var(--z-raised);\n }\n\n\n /* A verbatim copy of modal.css.ts stood here. The carousel renders\n <bd-modal>, which styles its own shadow root, so none of it could ever\n match: measured zero .bd-modal / .bd-modal-content elements in every\n carousel story, including \"Modal — Click + to Open\". */\n\n /* The +: a circle drawn by the button's own edge around bd-plus-icon,\n which takes its ink from the button (currentColor), so every state is a\n colour from the brand's roles and follows a partner's theme -- the\n tertiary button's pairs: the brand edge and the action ink at rest, the\n brand wash on hover, the action fill with the brand's own ink pressed.\n It used to be three data: URIs, one a state, each painting %23006DFF\n and %23F0F7FF baked into the drawing, which no token reaches: the one\n place in the package that stayed Bitdefender blue under every brand\n (plans/LATER.md entry 3). */\n .bd-plus-button {\n position: absolute;\n bottom: var(--spacing-10);\n right: var(--spacing-10);\n width: var(--spacing-44);\n height: var(--spacing-44);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--radius-full);\n cursor: pointer;\n /* A <button> now, not a div with role=\"button\" and its own keydown: that\n opened the modal on Space while also scrolling the page, and again on\n every key repeat. */\n border: var(--border-width-2) solid var(--color-border-brand);\n background: transparent;\n color: var(--color-action-primary);\n padding: 0;\n }\n\n .bd-plus-button:hover {\n background: var(--status-brand-surface);\n }\n\n /* A \"bd-carousel-item::part(content)\" rule stood here and was dead three\n times over. The items are light-DOM children of bd-carousel-section -- its\n shadow root holds a slot -- so a selector in this stylesheet cannot reach\n them in either host that adopts it; bd-carousel-item exposes no part named\n \"content\" at all; and .bd-box above already sets this same font-family,\n which everything inside it inherits. Measured: the item's box computes the\n IBM Plex Sans stack with this rule gone. */\n\n .bd-plus-button:active {\n background: var(--color-action-primary);\n color: var(--color-brand-on-fill);\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-carousel-track {\n flex-wrap: nowrap;\n gap: 1em;\n padding: var(--spacing-0) var(--spacing-0);\n scroll-padding-inline: var(--spacing-0);\n }\n }\n\n /* A card in a track 480 wide or less: a phone's, or a narrow column's.\n This asked the screen, which stands in for the track only while the\n carousel fills a phone. It still asks the screen too, for an item set on\n its own with no track around it (Foundations/Visual Alignment's card\n family); in a track the two never disagree, since the track is never\n wider than the screen. */\n ${narrowCardMedia}\n @container (width <= 480px) { ${narrowCard} }\n\n /* A reader who asked for less motion was still getting the item lift. Twenty-three\n of the thirty animated directories in this package honour the query; this\n one did not. */\n @media (prefers-reduced-motion: reduce) {\n .bd-box {\n transition: none;\n }\n\n /* A dot, or the end of a drag, moves the track with a jump rather than a\n glide. This is what _goToPage used to ask matchMedia for. */\n .bd-carousel-track {\n scroll-behavior: auto;\n }\n }\n`;\n"],"mappings":"A,4DAImB,CAAG,iKAYE,CAAG,wLAE3B,IAAAA,EAAe,CAAG,wvF"}
|
|
1
|
+
{"version":3,"file":"carousel.css.js","names":["carousel_css_default"],"sources":["../../../../src/components/carousel/carousel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole } from \"#shared/token-scales.ts\";\n\n/* The card at its phone inset and height: said once, asked twice (below). */\nconst narrowCard = css`\n .bd-box {\n padding: var(--spacing-0) var(--spacing-20);\n min-height: 300px;\n max-width: calc(100cqi - 2 * var(--spacing-20));\n }\n\n .bd-carousel-icon {\n bottom: var(--spacing-10);\n }\n`;\n\nconst narrowCardMedia = css`@media (max-width: 480px) { ${narrowCard} }`;\n\nexport default css`\n :host {\n display: block;\n }\n\n /* Each part's box is hidden while its slot is empty, and the \"+\" while the\n item has no detail; the attribute's selector outweighs the display a box\n sets below. */\n .bd-carousel [hidden],\n .bd-box [hidden] {\n display: none;\n }\n\n .bd-carousel {\n display: block;\n align-items: center;\n position: relative;\n /* 100px used to stand here, room for two arrows positioned absolutely\n 65px below the track. The dots are in the flow now, so the space below\n the track is their margin, their 24px and this: 96. */\n margin-bottom: var(--spacing-48);\n max-width: 100%;\n flex-direction: column;\n }\n /* While a mouse drags the track (_enableMouseDrag) it follows the pointer\n pixel for pixel, so neither the snap nor the smooth scroll-behavior may\n come between them; the drag settles on a stop itself on release. */\n .bd-carousel-track.dragging {\n cursor: grabbing;\n scroll-snap-type: none;\n scroll-behavior: auto;\n }\n\n /* The carousel's title: the component-section role, heading-h3, which 3.x\n drew with visual-level=\"h3\" on its own bd-h, whatever level the page\n picks. The role carries the whole of its type -- three declarations that\n once stood here spelled out its size and weight by hand while leaving its\n line-height unset. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h3\"))}\n }\n\n /* An item's detail title, forwarded into its dialog's title: the h2 role\n the dialog draws its own title at, set here because the dialog's hook\n names its own slot and this heading is slotted as detail-title. */\n ::slotted(bd-h[slot=\"detail-title\"]),\n ::slotted(bd-display[slot=\"detail-title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n .bd-box:focus-visible,\n .bd-plus-button:focus-visible {\n /* the one focus ring — see Foundations/Focus */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n }\n\n .bd-header-carousel {\n display: block;\n align-items: center;\n text-align: center;\n margin-bottom: 50px;\n margin-top: 50px;\n }\n\n /* A \".bd-heading{padding: 20px}\" rule stood here. .bd-heading is the class\n bd-h puts on the element inside its own shadow root, so this stylesheet\n never reached it: measured 0 matches across 27 carousel sections and 102\n carousel items. */\n /* The dots: bd-pagination-dots, the package's one set of slide controls.\n Two <img role=\"button\"> arrows stood here, painted by eight data-URI SVGs\n with the blues and the disabled grey baked in as hex -- invisible to every\n colour check -- and positioned absolutely 65px under the track. Where they\n sat, the dots sit now: under the track, at its end. */\n .bd-carousel-controls {\n display: flex;\n justify-content: flex-end;\n margin-top: var(--spacing-24);\n padding-inline: var(--spacing-10);\n }\n\n /* A scroller the browser drives: the wheel, a trackpad, touch and the\n keyboard (arrows, once focus is on an item's +) all move it, and the snap\n settles each of them on a stop. It was overflow-x: hidden, moved only by a\n script writing scrollLeft from mouse and touch handlers, so none of those\n reached it. */\n .bd-carousel-track {\n display: flex;\n gap: 2em;\n flex: 1;\n padding: var(--spacing-0) var(--spacing-20);\n /* the stops start where the padding leaves the first item, so each is one\n whole _step() from the last -- the arithmetic the dots count with */\n scroll-padding-inline: var(--spacing-20);\n position: relative;\n overflow-x: auto;\n overflow-y: hidden;\n /* a sideways swipe that reaches either end stops here, rather than\n carrying on into the browser's back and forward gesture */\n overscroll-behavior-x: contain;\n /* No scrollbar: the dots say where the track is. Hidden the way\n bd-light-carousel hides its own. */\n scrollbar-width: none;\n scroll-snap-type: x mandatory;\n /* a dot's jump glides; see the reduced-motion block for who it does not */\n scroll-behavior: smooth;\n z-index: var(--z-base);\n /* The items size themselves against the track (see .bd-box): a card is\n as wide as its track allows, and narrow when the track is, wherever\n the section is placed. */\n container-type: inline-size;\n }\n .bd-carousel-track::-webkit-scrollbar {\n display: none;\n }\n /* Each item is a stop. The snap above had no aligned child to land on, so\n it never snapped at all. Scoped to the track's slot: bd-carousel-item\n adopts this stylesheet too, and a bare ::slotted(*) there would make every\n paragraph inside an item a stop as well. */\n .bd-carousel-track ::slotted(*) {\n scroll-snap-align: start;\n }\n\n /* The icon's frame, 40 square, and the page's atom filling it: a bd-img\n stretches its image to the frame, a bd-icon draws at the frame's height.\n 16 under it to the body: 3.x's body was a raw <p>, and the browser's own\n paragraph margin made that distance, which a bd-p does not draw. */\n .bd-carousel-icon {\n position: relative;\n max-width: 100%;\n height: var(--spacing-40);\n width: var(--spacing-40);\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted([slot=\"icon\"]) {\n display: block;\n width: 100%;\n height: 100%;\n }\n .bd-box {\n flex: 0 0 auto;\n min-height: 217px;\n min-width: unset;\n width: 350px;\n /* Never wider than the track: the 350 and the inset beside it are 414,\n and a 343 phone track used to hold a 390 card with its + past the\n track's edge at every stop. cqi rather than a percentage because the\n item around this box is sized by it -- a percentage there would be\n cyclic and read as none. */\n max-width: calc(100cqi - 2 * var(--card-padding));\n background: var(--color-surface-container);\n /* --radius-2xl, the step the other ten cards take.\n bd-light-carousel made this exact move and wrote the argument for it:\n \"nothing about a carousel item asks for a softer corner than the same\n card sitting in a grid\". Same family, same reasoning, this file was\n behind. Visible: the corner tightens 24px to 16px. */\n border-radius: var(--card-radius);\n /* No edge, for the reason bd-bentoitem's rule states: this card sits on\n surface/container over the page ground, and that role is documented as\n reading like its own object without a border or a shadow to say so.\n\n What stood here was a --border-width-2 edge, and the comment it carried\n was about the UNIT rather than the edge: --spacing-2 and --border-width-2\n are both 2px at a 16px root and diverge above it, so at a 24px root this\n edge went to 3px while bd-bentoitem's held at 1px. That argument is spent\n -- neither card draws an edge now -- but it is worth keeping the\n conclusion: a border is a hairline against a shape, not a distance\n between things, so it never belongs on the spacing scale. */\n /* --spacing-32, the step, not 2em. Both are 32px at a 16px root and the\n em was never a decision -- ten other cards spell the same inset with the\n scale, and an em here would also drift with any font-size this box ever\n inherits. */\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: start;\n justify-content: center;\n text-align: start;\n cursor: pointer;\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n font-family: var(--typography-fontFamily-sans);\n position: relative;\n z-index: var(--z-raised);\n }\n\n\n /* The item's bd-dialog styles its own shadow root, and nothing here reaches\n into it. 3.x kept a verbatim copy of the modal's stylesheet here, which\n never matched anything. */\n\n /* The +: a circle drawn by the button's own edge around <bd-icon name=\"plus\">,\n which takes its ink from the button (currentColor), so every state is a\n colour from the brand's roles and follows a partner's theme -- the\n tertiary button's pairs: the brand edge and the action ink at rest, the\n brand wash on hover, the action fill with the brand's own ink pressed.\n It used to be three data: URIs, one a state, each painting %23006DFF\n and %23F0F7FF baked into the drawing, which no token reaches: the one\n place in the package that stayed Bitdefender blue under every brand\n (plans/LATER.md entry 3). */\n .bd-plus-button {\n position: absolute;\n bottom: var(--spacing-10);\n right: var(--spacing-10);\n width: var(--spacing-44);\n height: var(--spacing-44);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--radius-full);\n cursor: pointer;\n /* A <button> now, not a div with role=\"button\" and its own keydown: that\n opened the modal on Space while also scrolling the page, and again on\n every key repeat. */\n border: var(--border-width-2) solid var(--color-border-brand);\n background: transparent;\n color: var(--color-action-primary);\n padding: 0;\n }\n\n .bd-plus-button:hover {\n background: var(--status-brand-surface);\n }\n\n /* A \"bd-carousel-item::part(content)\" rule stood here and was dead three\n times over. The items are light-DOM children of bd-carousel -- its\n shadow root holds a slot -- so a selector in this stylesheet cannot reach\n them in either host that adopts it; bd-carousel-item exposes no part named\n \"content\" at all; and .bd-box above already sets this same font-family,\n which everything inside it inherits. Measured: the item's box computes the\n IBM Plex Sans stack with this rule gone. */\n\n .bd-plus-button:active {\n background: var(--color-action-primary);\n color: var(--color-brand-on-fill);\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-carousel-track {\n flex-wrap: nowrap;\n gap: 1em;\n padding: var(--spacing-0) var(--spacing-0);\n scroll-padding-inline: var(--spacing-0);\n }\n }\n\n /* A card in a track 480 wide or less: a phone's, or a narrow column's.\n This asked the screen, which stands in for the track only while the\n carousel fills a phone. It still asks the screen too, for an item set on\n its own with no track around it (Foundations/Visual Alignment's card\n family); in a track the two never disagree, since the track is never\n wider than the screen. */\n ${narrowCardMedia}\n @container (width <= 480px) { ${narrowCard} }\n\n /* A reader who asked for less motion was still getting the item lift. Twenty-three\n of the thirty animated directories in this package honour the query; this\n one did not. */\n @media (prefers-reduced-motion: reduce) {\n .bd-box {\n transition: none;\n }\n\n /* A dot, or the end of a drag, moves the track with a jump rather than a\n glide. This is what _goToPage used to ask matchMedia for. */\n .bd-carousel-track {\n scroll-behavior: auto;\n }\n }\n`;\n"],"mappings":"A,4DAImB,CAAG,iKAYE,CAAG,wLAE3B,IAAAA,EAAe,CAAG,gqH"}
|
|
@@ -1,44 +1,78 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import { ObserverController } from "../shared/controller.observer.js";
|
|
3
4
|
import "../../tokens/tokens.js";
|
|
4
|
-
import "../
|
|
5
|
-
import "../icons/plus
|
|
6
|
-
import "../modal/modal.js";
|
|
5
|
+
import "../dialog/dialog.js";
|
|
6
|
+
import "../icons/plus.js";
|
|
7
7
|
import "../pagination-dots/pagination-dots.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
import "../h/h.js";
|
|
9
|
+
import "../img/img.js";
|
|
10
|
+
import "../p/p.js";
|
|
11
|
+
/**
|
|
12
|
+
* One card of a bd-carousel: an icon, the card's body, and a "+" button that
|
|
13
|
+
* opens the item's own dialog with more about it.
|
|
14
|
+
*
|
|
15
|
+
* <bd-carousel-item close-label="Close">
|
|
16
|
+
* <bd-img slot="icon" src="/icons/vpn.png" alt=""></bd-img>
|
|
17
|
+
* <bd-p>Unlimited encrypted VPN traffic</bd-p>
|
|
18
|
+
* <bd-h slot="detail-title" as="h2">VPN Protection</bd-h>
|
|
19
|
+
* <bd-p slot="detail">Our VPN encrypts your internet traffic.</bd-p>
|
|
20
|
+
* </bd-carousel-item>
|
|
21
|
+
*
|
|
22
|
+
* EACH ITEM OWNS ITS DIALOG. The item renders a bd-dialog and forwards its
|
|
23
|
+
* two detail slots into it: `detail-title` becomes the dialog's title and
|
|
24
|
+
* `detail` its body, so the page's words are written once and shown where
|
|
25
|
+
* they are read. 3.x sent open-modal up to the section, which copied the
|
|
26
|
+
* item's title and text attributes into the one bd-modal it kept for every
|
|
27
|
+
* item. The dialog closes itself (Esc, the backdrop, its close button,
|
|
28
|
+
* `data-dialog="close"`), and the platform hands focus back to the "+" that
|
|
29
|
+
* opened it. `close-label` names the dialog's close button.
|
|
30
|
+
*
|
|
31
|
+
* The "+" says it opens a dialog (aria-haspopup="dialog") and is named by the
|
|
32
|
+
* detail title's words, copied with SlotController.text(): the title is in
|
|
33
|
+
* the closed dialog, a hidden subtree an id reference would have to reach
|
|
34
|
+
* through two shadow roots, and the copy follows the page's edits. It is
|
|
35
|
+
* drawn only while there is a detail to open -- 3.x drew it on every card and
|
|
36
|
+
* opened an empty modal from one with none.
|
|
37
|
+
*/
|
|
38
|
+
export declare class BdCarouselItem extends LitElement {
|
|
19
39
|
static styles: import("lit").CSSResult[];
|
|
40
|
+
/** The accessible name of the item's dialog's close button, passed to its bd-dialog. No default. */
|
|
41
|
+
closeLabel: string;
|
|
42
|
+
_slots: SlotController<"icon" | "detail-title" | "detail">;
|
|
43
|
+
get _dialog(): import("../dialog/dialog.js").BdDialog | null;
|
|
44
|
+
_open(e: Event): void;
|
|
45
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
46
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
47
|
+
/**
|
|
48
|
+
* A scrollable, draggable track of bd-carousel-item cards under a title, with
|
|
49
|
+
* the package's slide dots under it.
|
|
50
|
+
*
|
|
51
|
+
* <bd-carousel item-label="Go to item">
|
|
52
|
+
* <bd-h slot="title" as="h2">Security Features</bd-h>
|
|
53
|
+
* <bd-carousel-item>…</bd-carousel-item>
|
|
54
|
+
* </bd-carousel>
|
|
55
|
+
*
|
|
56
|
+
* The carousel draws its title at the component-section role (heading-h3),
|
|
57
|
+
* whatever level the page picks. It is a region named by that title, through
|
|
58
|
+
* aria-labelledby on the box around the title slot; without a title, `label`
|
|
59
|
+
* names it. The dots' group takes the same name, and `item-label` starts each
|
|
60
|
+
* dot's -- 3.x hard-coded "Go to item".
|
|
61
|
+
*/
|
|
62
|
+
export declare class BdCarousel extends LitElement {
|
|
63
|
+
static styles: import("lit").CSSResult[];
|
|
64
|
+
/** The accessible name of the region while there is no title; with a title, the title names it. No default. */
|
|
65
|
+
label: string;
|
|
66
|
+
/** The accessible name each pagination dot starts with, passed to bd-pagination-dots. No default. */
|
|
67
|
+
itemLabel: string;
|
|
25
68
|
_pages: number;
|
|
26
69
|
_page: number;
|
|
27
70
|
_seeking: number;
|
|
28
|
-
_shownItem?: ModalItem;
|
|
29
71
|
track: HTMLElement;
|
|
30
72
|
slotElement: HTMLSlotElement;
|
|
73
|
+
_slots: SlotController<"title">;
|
|
31
74
|
_trackSize: ObserverController<ResizeObserver>;
|
|
32
75
|
constructor();
|
|
33
|
-
/**
|
|
34
|
-
* The heading element this section renders. Level is the document-outline
|
|
35
|
-
* question and belongs to whoever composes the page; the type scale is this
|
|
36
|
-
* component's own and does not move with it. Defaults to h2, because a
|
|
37
|
-
* reusable section cannot know it is the only thing on the page, and two of
|
|
38
|
-
* these used to put two h1s on one.
|
|
39
|
-
*/
|
|
40
|
-
get _headingTag(): string;
|
|
41
|
-
_renderTitle(className: string): import("lit-html").TemplateResult<1>;
|
|
42
76
|
firstUpdated(): void;
|
|
43
77
|
waitForImagesToLoad(): Promise<(void | Event)[]>;
|
|
44
78
|
_step(): number;
|
|
@@ -47,20 +81,13 @@ declare class CustomCarousel extends LitElement {
|
|
|
47
81
|
get _travelled(): number;
|
|
48
82
|
_scrollToStop(n: number): void;
|
|
49
83
|
_goToPage(n: number): void;
|
|
50
|
-
openModal(item: ModalItem): void;
|
|
51
|
-
closeModal(): void;
|
|
52
84
|
_enableMouseDrag(track: HTMLElement): void;
|
|
53
85
|
_settle(): void;
|
|
54
86
|
render(): import("lit-html").TemplateResult<1>;
|
|
55
|
-
static styles: import("lit").CSSResult[];
|
|
56
87
|
}
|
|
57
88
|
declare global {
|
|
58
89
|
interface HTMLElementTagNameMap {
|
|
59
|
-
"bd-carousel-item":
|
|
60
|
-
"bd-carousel
|
|
61
|
-
}
|
|
62
|
-
interface HTMLElementEventMap {
|
|
63
|
-
"open-modal": CustomEvent<ModalItem>;
|
|
90
|
+
"bd-carousel-item": BdCarouselItem;
|
|
91
|
+
"bd-carousel": BdCarousel;
|
|
64
92
|
}
|
|
65
93
|
}
|
|
66
|
-
export {};
|