@repobit/dex-system-design 3.1.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1067 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.js","names":["dialogCSS","_decorate","__decorate","dialog_css_default","CLOSEDBY","BdDialog","LitElement","_args","SlotController","hide","node","box","outside","dialog","opening","was","runs","a","shown","has","name","nothing","property","defineElement"],"sources":["../../../../src/components/dialog/dialog.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport \"#shared/events.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/icons/close.ts\";\n/* The atoms the page writes into the dialog's slots. The dialog renders none\n of them now, but 3.x's modal registered bd-h and bd-p, and a page\n importing only this module still gets what it writes. */\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/p/p.ts\";\nimport dialogCSS from \"./dialog.css.ts\";\n\n/* <dialog closedby> is Limited availability, short of the policy's Newly\n available target: where the browser has it, a click on the backdrop is a\n close request like Esc; where it does not, the press is recognised here. */\nconst CLOSEDBY = \"closedBy\" in HTMLDialogElement.prototype;\n\ntype Part = \"icon\" | \"title\" | \"\" | \"footer\";\n\n/**\n * A modal dialog: a scrim, a centred panel with an icon, a title, a body and\n * a footer, and its own close button.\n *\n * <bd-dialog close-label=\"Close\">\n * <bd-img slot=\"icon\" src=\"/icons/vpn.png\" alt=\"\" width=\"96\" height=\"96\"></bd-img>\n * <bd-h slot=\"title\" as=\"h2\">VPN Protection</bd-h>\n * <bd-p>Our VPN encrypts your internet traffic.</bd-p>\n * <bd-button slot=\"footer\" data-dialog=\"close\">Got it</bd-button>\n * </bd-dialog>\n *\n * It is a native <dialog> opened with showModal(), which is what makes it\n * modal rather than a panel drawn over the page: the dialog role and modal\n * state, a page made inert behind it, focus moved in on open and returned to\n * whatever opened it on close, Esc, and the top layer, so no z-index decides\n * whether it is on top.\n *\n * THE DIALOG OWNS ITS STATE. Esc, a click on the backdrop, its close button\n * and a click on any element the page marks `data-dialog=\"close\"` (Web\n * Awesome's convention) each send a cancelable bd-hide; unless a listener\n * prevents it, `open` goes false. A prevented one leaves the dialog open, and\n * modal: a browser that refuses to let a repeated Esc be cancelled closes the\n * dialog itself, and it is shown again. The page can set `open` itself too,\n * either way, and then bd-show or bd-hide reports it -- not cancelable, since\n * the page has already decided. bd-after-show and bd-after-hide follow once\n * the panel's transition has run, at once under reduced motion (N8). 3.x\n * closed nothing itself: it sent close-modal and waited for the page.\n *\n * NAMES FOLLOW THE TEXT. The dialog is named by its title through\n * aria-labelledby on the box around the title slot, and described by its\n * body through aria-describedby on the box around the default slot, each\n * written only while that slot holds something. The ids are fixed, as 3.x's\n * modal-title and modal-description were: an id reference resolves inside the\n * shadow root it is written in, so two dialogs on a page never meet. Accname\n * walks the flat tree from the box through the slot into the page's bd-h,\n * also when an enclosing component forwards its own slot into the title\n * (bd-carousel-item does). The close button is an icon with no\n * words, named by `close-label`, which has no default.\n */\n@defineElement(\"bd-dialog\")\nexport class BdDialog extends LitElement {\n static styles = [dialogCSS];\n\n /** Whether the dialog is open. Reflected. The dialog sets it false itself when a close is not prevented. */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /** The accessible name of the dialog's own close button, an icon with no words. No default. */\n @property({ type: String, attribute: \"close-label\" })\n closeLabel = \"\";\n\n _slots = new SlotController(this, { slots: [\"icon\", \"title\", \"\", \"footer\"] });\n\n /* What bd-show and bd-hide last reported. */\n private _shown = false;\n /* Set when the dialog sent bd-hide itself, so the update that follows does\n not send it again. */\n private _hideSent = false;\n /* Whether the press that began on the backdrop is still the one being\n released (the closedby fallback). */\n private _pressedOutside = false;\n\n get _dialog() {\n return this.renderRoot?.querySelector(\"dialog\") ?? null;\n }\n\n /* A close the dialog asks for itself: bd-hide, cancelable. Prevented, it\n stays open -- and is shown again if the browser closed it regardless. */\n _requestClose() {\n if (!this.open) return;\n const hide = new CustomEvent(\"bd-hide\", { bubbles: true, composed: true, cancelable: true });\n if (!this.dispatchEvent(hide)) {\n this._sync();\n return;\n }\n this._hideSent = true;\n this.open = false;\n }\n\n /* Esc, and with closedby a backdrop click, arrive as `cancel`. The browser\n is stopped and the dialog asks. A cancel that cannot be prevented -- a\n second Esc with no user activation between -- closes the dialog whatever\n is done here, and _onDialogClose asks once it has. */\n _onCancel(e: Event) {\n if (!e.cancelable) return;\n e.preventDefault();\n this._requestClose();\n }\n\n /* Only a dialog that is actually closed counts. A `close` event can arrive\n after the dialog has been shown again -- measured in Chromium: closed from\n a backdrop click, the event was delivered on the next showModal() -- and\n _sync() itself closes and reopens a dialog that was moved. */\n _onDialogClose() {\n if (this.open && !this._dialog?.open) this._requestClose();\n }\n\n /* A click on an element the page marked data-dialog=\"close\", anywhere in\n the panel's flat tree -- the page's own light DOM, or a slot an enclosing\n component forwards. The walk stops at this dialog, and at a dialog inside\n it, whose closers are its own. */\n _onClick(e: MouseEvent) {\n for (const node of e.composedPath()) {\n if (node === this._dialog || node instanceof HTMLDialogElement) return;\n if (node instanceof Element && node.matches('[data-dialog=\"close\"]')) {\n this._requestClose();\n return;\n }\n }\n }\n\n /* The closedby fallback. The press and the release must both land outside\n the panel, so a text selection dragged out onto the backdrop does not\n close it; the pointer's position is tested rather than the target, which\n is the dialog for its own padding too. */\n _outside(e: PointerEvent) {\n const box = this._dialog!.getBoundingClientRect();\n return e.clientX < box.left || e.clientX > box.right || e.clientY < box.top || e.clientY > box.bottom;\n }\n\n _onPointerDown(e: PointerEvent) {\n this._pressedOutside = !CLOSEDBY && e.target === this._dialog && this._outside(e);\n }\n\n _onPointerUp(e: PointerEvent) {\n const outside = this._pressedOutside && e.target === this._dialog && this._outside(e);\n this._pressedOutside = false;\n if (outside) this._requestClose();\n }\n\n /* Reconnecting keeps the rendered dialog, but not as a modal: removing a\n dialog from the document takes it out of the top layer and drops its\n modal state while leaving its open attribute, so a dialog moved while open\n comes back an ordinary open dialog -- in the flow, no backdrop, the page\n behind it live and no Esc. _sync() asks whether it is :modal, not only\n open, and shows it as one again. A move is not a state change, so it\n sends nothing. */\n connectedCallback() {\n super.connectedCallback();\n if (this.hasUpdated) this._sync();\n }\n\n updated() {\n this._sync();\n }\n\n _sync() {\n const dialog = this._dialog;\n if (!dialog?.isConnected) return;\n if (this.open) {\n /* Shown again after a move, or after a close the browser made itself\n and a listener prevented, is not opening: only the first show sends\n anything. */\n const opening = !this._shown;\n if (opening) {\n this._shown = true;\n this.dispatchEvent(new CustomEvent(\"bd-show\", { bubbles: true, composed: true }));\n }\n if (!dialog.matches(\":modal\")) {\n // showModal() throws on a dialog that is already open, modal or not\n if (dialog.open) dialog.close();\n dialog.showModal();\n }\n if (opening) void this._afterTransition(true);\n return;\n }\n const was = this._shown;\n this._shown = false;\n if (was && !this._hideSent) this.dispatchEvent(new CustomEvent(\"bd-hide\", { bubbles: true, composed: true }));\n this._hideSent = false;\n if (dialog.open) dialog.close();\n if (was) void this._afterTransition(false);\n }\n\n /* bd-after-show / bd-after-hide once the panel and its scrim have finished\n moving. getAnimations() brings style up to date first, so the transition\n showModal() or close() just started is among them; one cut short by the\n opposite change rejects, and the state check drops it. */\n async _afterTransition(shown: boolean) {\n const runs = this._dialog?.getAnimations({ subtree: true }) ?? [];\n await Promise.allSettled(runs.map(a => a.finished));\n if (this._shown !== shown) return;\n // each name spelled once, as a literal, so check:element-api can read it\n if (shown) this.dispatchEvent(new CustomEvent(\"bd-after-show\", { bubbles: true, composed: true }));\n else this.dispatchEvent(new CustomEvent(\"bd-after-hide\", { bubbles: true, composed: true }));\n }\n\n render() {\n const has = (name: Part) => this._slots.has(name);\n return html`\n <dialog\n class=\"bd-dialog\"\n closedby=\"any\"\n aria-labelledby=${has(\"title\") ? \"title\" : nothing}\n aria-describedby=${has(\"\") ? \"body\" : nothing}\n @cancel=${this._onCancel}\n @close=${this._onDialogClose}\n @click=${this._onClick}\n @pointerdown=${this._onPointerDown}\n @pointerup=${this._onPointerUp}\n >\n <div class=\"header\">\n <div class=\"heading\" ?hidden=${!has(\"icon\") && !has(\"title\")}>\n <div class=\"icon\" ?hidden=${!has(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"title\" id=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n </div>\n <button\n type=\"button\"\n class=\"close\"\n aria-label=${this.closeLabel || nothing}\n autofocus\n @click=${() => this._requestClose()}\n >\n <bd-icon name=\"close\" size=\"md\"></bd-icon>\n </button>\n </div>\n <div class=\"body\" id=\"body\" ?hidden=${!has(\"\")}><slot></slot></div>\n <div class=\"footer\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></div>\n </dialog>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-dialog\": BdDialog;\n }\n}\n"],"mappings":"A,2bAmBA,IAAMI,EAAW,aAAc,kBAAkB,UA4CpCC,EAAN,cAAuBC,CAAW,C,8BAKhC,KAAA,KAAA,GAIM,KAAA,WAAA,GAEJ,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAQ,QAAS,GAAI,QAAQ,CAAE,CAAC,EAG3D,KAAA,OAAA,GAGG,KAAA,UAAA,GAGM,KAAA,gBAAA,E,QAnBV,KAAA,OAAA,CAACR,CAAS,C,CAqB1B,IAAI,SAAU,CACZ,OAAO,KAAK,YAAY,cAAc,QAAQ,GAAK,IACrD,CAIA,eAAgB,CACd,GAAI,CAAC,KAAK,KAAM,OAChB,IAAMS,EAAO,IAAI,YAAY,UAAW,CAAE,QAAS,GAAM,SAAU,GAAM,WAAY,EAAK,CAAC,EACtF,KAAK,cAAcA,CAAI,GAI5B,KAAK,UAAY,GACjB,KAAK,KAAO,IAJV,KAAK,MAAM,CAKf,CAMA,UAAU,EAAU,CACb,EAAE,aACP,EAAE,eAAe,EACjB,KAAK,cAAc,EACrB,CAMA,gBAAiB,CACX,KAAK,MAAQ,CAAC,KAAK,SAAS,MAAM,KAAK,cAAc,CAC3D,CAMA,SAAS,EAAe,CACtB,IAAK,IAAMC,KAAQ,EAAE,aAAa,EAAG,CACnC,GAAIA,IAAS,KAAK,SAAWA,aAAgB,kBAAmB,OAChE,GAAIA,aAAgB,SAAWA,EAAK,QAAQ,uBAAuB,EAAG,CACpE,KAAK,cAAc,EACnB,MACF,CACF,CACF,CAMA,SAAS,EAAiB,CACxB,IAAMC,EAAM,KAAK,QAAS,sBAAsB,EAChD,OAAO,EAAE,QAAUA,EAAI,MAAQ,EAAE,QAAUA,EAAI,OAAS,EAAE,QAAUA,EAAI,KAAO,EAAE,QAAUA,EAAI,MACjG,CAEA,eAAe,EAAiB,CAC9B,KAAK,gBAAkB,CAACP,GAAY,EAAE,SAAW,KAAK,SAAW,KAAK,SAAS,CAAC,CAClF,CAEA,aAAa,EAAiB,CAC5B,IAAMQ,EAAU,KAAK,iBAAmB,EAAE,SAAW,KAAK,SAAW,KAAK,SAAS,CAAC,EACpF,KAAK,gBAAkB,GACnBA,GAAS,KAAK,cAAc,CAClC,CASA,mBAAoB,CAClB,MAAM,kBAAkB,EACpB,KAAK,YAAY,KAAK,MAAM,CAClC,CAEA,SAAU,CACR,KAAK,MAAM,CACb,CAEA,OAAQ,CACN,IAAMC,EAAS,KAAK,QACpB,GAAI,CAACA,GAAQ,YAAa,OAC1B,GAAI,KAAK,KAAM,CAIb,IAAMC,EAAU,CAAC,KAAK,OAClBA,IACF,KAAK,OAAS,GACd,KAAK,cAAc,IAAI,YAAY,UAAW,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,GAE7ED,EAAO,QAAQ,QAAQ,IAEtBA,EAAO,MAAMA,EAAO,MAAM,EAC9BA,EAAO,UAAU,GAEfC,GAAS,KAAU,iBAAiB,EAAI,EAC5C,MACF,CACA,IAAMC,EAAM,KAAK,OACjB,KAAK,OAAS,GACVA,GAAO,CAAC,KAAK,WAAW,KAAK,cAAc,IAAI,YAAY,UAAW,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC5G,KAAK,UAAY,GACbF,EAAO,MAAMA,EAAO,MAAM,EAC1BE,GAAK,KAAU,iBAAiB,EAAK,CAC3C,CAMA,MAAM,iBAAiB,EAAgB,CACrC,IAAMC,EAAO,KAAK,SAAS,cAAc,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAChE,MAAM,QAAQ,WAAWA,EAAK,IAAI,GAAKC,EAAE,QAAQ,CAAC,EAC9C,KAAK,SAAWC,IAEhBA,EAAO,KAAK,cAAc,IAAI,YAAY,gBAAiB,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC5F,KAAK,cAAc,IAAI,YAAY,gBAAiB,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAC7F,CAEA,QAAS,CACP,IAAMC,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAChD,MAAO,EAAI;;;;0BAIWD,EAAI,OAAO,EAAI,QAAUE,EAAQ;2BAChCF,EAAI,EAAE,EAAI,OAASE,EAAQ;kBACpC,KAAK,UAAU;iBAChB,KAAK,eAAe;iBACpB,KAAK,SAAS;uBACR,KAAK,eAAe;qBACtB,KAAK,aAAa;;;yCAGE,CAACF,EAAI,MAAM,GAAK,CAACA,EAAI,OAAO,EAAE;wCAC/B,CAACA,EAAI,MAAM,EAAE;oDACD,CAACA,EAAI,OAAO,EAAE;;;;;yBAKzC,KAAK,YAAcE,EAAQ;;yBAEzB,KAAK,cAAc,EAAE;;;;;8CAKF,CAACF,EAAI,EAAE,EAAE;sCACjB,CAACA,EAAI,QAAQ,EAAE;;KAGnD,CACF,EAjLGlB,EAAA,CAAAqB,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAjB,EAAA,UAAA,OAAA,IAAA,EAAA,EAIzCJ,EAAA,CAAAqB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAjB,EAAA,UAAA,aAAA,IAAA,EAAA,EATrD,EAAAJ,EAAA,CAAAsB,EAAc,WAAW,CAAA,EAAAlB,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{--bd-heading-font-size:initial;--bd-heading-font-weight:initial;--bd-heading-line-height:initial;--bd-heading-letter-spacing:initial;--bd-heading-font-family:initial}@layer bd-components{.bd-display{font-family:var(--typography-display-lg-fontFamily);color:var(--bd-heading-color,var(--color-text-primary));overflow-wrap:break-word;text-wrap:balance;margin:0;padding:0}.bd-display.xxxl{font-size:var(--bd-heading-font-size,var(--typography-display-3xl-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-3xl-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-3xl-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-3xl-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-3xl-fontFamily))}.bd-display.xxl{font-size:var(--bd-heading-font-size,var(--typography-display-2xl-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-2xl-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-2xl-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-2xl-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-2xl-fontFamily))}.bd-display.xl{font-size:var(--bd-heading-font-size,var(--typography-display-xl-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-xl-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-xl-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-xl-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-xl-fontFamily))}.bd-display.lg{font-size:var(--bd-heading-font-size,var(--typography-display-lg-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-lg-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-lg-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-lg-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-lg-fontFamily))}.bd-display.md{font-size:var(--bd-heading-font-size,var(--typography-display-md-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-md-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-md-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-md-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-md-fontFamily))}.bd-display.sm{font-size:var(--bd-heading-font-size,var(--typography-display-sm-fontSize));font-weight:var(--bd-heading-font-weight,var(--typography-display-sm-fontWeight));line-height:var(--bd-heading-line-height,var(--typography-display-sm-lineHeight));letter-spacing:var(--bd-heading-letter-spacing,var(--typography-display-sm-letterSpacing));font-family:var(--bd-heading-font-family,var(--typography-display-sm-fontFamily))}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=display.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.css.js","names":["display_css_default"],"sources":["../../../../src/components/display/display.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n @layer bd-components {\n .bd-display {\n margin: 0;\n padding: 0;\n font-family: var(--typography-display-lg-fontFamily);\n color: var(--color-text-primary);\n /* Display type is large enough that a single word can be wider than a\n phone, and with overflow-wrap: normal there is no break opportunity\n inside a word -- so the word painted outside the box and widened the\n document. Measured at 320 and 375 with \"Award-winning cybersecurity\":\n\n step size 320 375 576 768+\n sm 36px ok ok ok ok\n md 48px ok ok ok ok\n lg 60px +61px +6px ok ok\n xl 72px +134px +79px ok ok\n xxl 96px +280px +225px +24px ok\n xxxl 128px +475px +420px +219px ok\n\n lg is this component's default, so the out-of-the-box configuration\n made a phone scroll sideways on a thirteen-character word. break-word\n only breaks where there is no break opportunity at all, so every case\n that already fitted is untouched -- the same rule, and the same reason,\n as the tooltip bubble in P7F.1.\n\n Containment only. WHICH step belongs at which breakpoint stays the\n consuming page's choice: this atom maps
|
|
1
|
+
{"version":3,"file":"display.css.js","names":["display_css_default"],"sources":["../../../../src/components/display/display.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n /* bd-display reads the same hooks bd-h does, so one\n ::slotted([slot=\"title\"]) rule sizes and inks a title whichever atom the\n page wrote. The five type hooks reset here for the reason h/h.css.ts\n gives: a hook applies on the element it is set on and never by\n inheritance. The ink hook is not reset. */\n :host {\n --bd-heading-font-size: initial;\n --bd-heading-font-weight: initial;\n --bd-heading-line-height: initial;\n --bd-heading-letter-spacing: initial;\n --bd-heading-font-family: initial;\n }\n\n @layer bd-components {\n .bd-display {\n margin: 0;\n padding: 0;\n font-family: var(--typography-display-lg-fontFamily);\n /* The container's ink when it names one, as on bd-h; the color prop is\n an inline style and still wins. */\n color: var(--bd-heading-color, var(--color-text-primary));\n /* Display type is large enough that a single word can be wider than a\n phone, and with overflow-wrap: normal there is no break opportunity\n inside a word -- so the word painted outside the box and widened the\n document. Measured at 320 and 375 with \"Award-winning cybersecurity\":\n\n step size 320 375 576 768+\n sm 36px ok ok ok ok\n md 48px ok ok ok ok\n lg 60px +61px +6px ok ok\n xl 72px +134px +79px ok ok\n xxl 96px +280px +225px +24px ok\n xxxl 128px +475px +420px +219px ok\n\n lg is this component's default, so the out-of-the-box configuration\n made a phone scroll sideways on a thirteen-character word. break-word\n only breaks where there is no break opportunity at all, so every case\n that already fitted is untouched -- the same rule, and the same reason,\n as the tooltip bubble in P7F.1.\n\n Containment only. WHICH step belongs at which breakpoint stays the\n consuming page's choice: this atom maps an appearance onto a\n --typography-display-* role and deliberately knows nothing about\n viewports, and six steps exist so that choice can be made. */\n overflow-wrap: break-word;\n }\n\n /* Balanced lines, as bd-h's. */\n .bd-display {\n text-wrap: balance;\n }\n\n /* Each appearance reads the container's hook first and its own role\n after it, so a bd-display nobody sets a hook on renders as it did before\n the hooks existed. bd-display has no visual-level to pin with:\n appearance always holds a step (md by default, and a typo lands there too), so an\n explicit one cannot be told from the default, and the container's hook\n wins over both. */\n\n /* xxxl */\n .bd-display.xxxl {\n font-size: var(--bd-heading-font-size, var(--typography-display-3xl-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-3xl-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-3xl-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-3xl-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-3xl-fontFamily));\n }\n\n /* xxl */\n .bd-display.xxl {\n font-size: var(--bd-heading-font-size, var(--typography-display-2xl-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-2xl-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-2xl-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-2xl-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-2xl-fontFamily));\n }\n\n /* xl */\n .bd-display.xl {\n font-size: var(--bd-heading-font-size, var(--typography-display-xl-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-xl-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-xl-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-xl-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-xl-fontFamily));\n }\n\n /* lg */\n .bd-display.lg {\n font-size: var(--bd-heading-font-size, var(--typography-display-lg-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-lg-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-lg-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-lg-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-lg-fontFamily));\n }\n\n /* md */\n .bd-display.md {\n font-size: var(--bd-heading-font-size, var(--typography-display-md-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-md-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-md-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-md-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-md-fontFamily));\n }\n\n /* sm - Smallest display */\n .bd-display.sm {\n font-size: var(--bd-heading-font-size, var(--typography-display-sm-fontSize));\n font-weight: var(--bd-heading-font-weight, var(--typography-display-sm-fontWeight));\n line-height: var(--bd-heading-line-height, var(--typography-display-sm-lineHeight));\n letter-spacing: var(--bd-heading-letter-spacing, var(--typography-display-sm-letterSpacing));\n font-family: var(--bd-heading-font-family, var(--typography-display-sm-fontFamily));\n }\n }\n`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,g5F"}
|
|
@@ -2,17 +2,41 @@ import { LitElement, type PropertyValues } from "lit";
|
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
3
|
import { type ColorRole } from "../shared/token-scales.js";
|
|
4
4
|
/** The six display roles the stylesheet carries, largest first. */
|
|
5
|
-
declare const
|
|
6
|
-
type
|
|
5
|
+
declare const APPEARANCES: readonly ["xxxl", "xxl", "xl", "lg", "md", "sm"];
|
|
6
|
+
type Appearance = typeof APPEARANCES[number];
|
|
7
7
|
type Align = "left" | "center" | "right";
|
|
8
|
+
/** The heading elements `as` renders; without one it is a div. */
|
|
9
|
+
declare const LEVELS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
10
|
+
type Level = typeof LEVELS[number];
|
|
11
|
+
/**
|
|
12
|
+
* Display type: the largest steps of the type scale, for a hero's or a
|
|
13
|
+
* band's headline.
|
|
14
|
+
*
|
|
15
|
+
* `as` makes it the heading it reads as -- `<bd-display as="h1">` renders an
|
|
16
|
+
* h1, at its appearance's size, as bd-h renders the level its `as` names --
|
|
17
|
+
* so a page can slot it into a heading slot and keep its outline. Without
|
|
18
|
+
* `as` it renders a div, as it always has: display type is not always a
|
|
19
|
+
* heading (a figure, a slogan). The level and the look stay separate
|
|
20
|
+
* questions: `as` is the outline, `appearance` the size, and changing one
|
|
21
|
+
* never moves the other. An `as` that is not h1-h6 is a div too.
|
|
22
|
+
*
|
|
23
|
+
* `in-control`, as bd-h's: inside a control that is itself the heading, the
|
|
24
|
+
* hN renders as role="none", so the words are announced once.
|
|
25
|
+
*/
|
|
8
26
|
export declare class BdDisplay extends LitElement {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
27
|
+
/** The heading element to render, h1-h6; unset, a div. */
|
|
28
|
+
as: Level | "";
|
|
29
|
+
/**
|
|
30
|
+
* The display sits inside a control that is itself the heading, as bd-h's
|
|
31
|
+
* `in-control`: its hN renders as role="none". The element, its level and
|
|
32
|
+
* its look are unchanged.
|
|
33
|
+
*/
|
|
34
|
+
inControl: boolean;
|
|
35
|
+
appearance: Appearance;
|
|
12
36
|
color: ColorRole | "";
|
|
13
37
|
align: Align;
|
|
14
38
|
willUpdate(changed: PropertyValues<this>): void;
|
|
15
|
-
render(): import("lit-html").TemplateResult
|
|
39
|
+
render(): import("lit-html").TemplateResult;
|
|
16
40
|
static styles: import("lit").CSSResult[];
|
|
17
41
|
}
|
|
18
42
|
declare global {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import{color as e}from"../shared/token-scales.js";import{defineElement as t}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import i from"./display.css.js";import{LitElement as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";import{html as c,unsafeStatic as l}from"lit/static-html.js";var u=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`],d=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],f=class extends a{constructor(...e){super(...e),this.as=``,this.inControl=!1,this.appearance=`md`,this.color=``,this.align=`left`}willUpdate(e){e.has(`appearance`)&&!n(u,this.appearance)&&(this.appearance=`md`),e.has(`as`)&&this.as&&!n(d,this.as)&&(this.as=``)}render(){let t=[],r=e(this.color);r&&t.push(`color: ${r}`),this.align&&t.push(`text-align: ${this.align}`);let i=n(d,this.as)?this.as:``,a=l(i||`div`);return c`
|
|
2
|
+
<${a}
|
|
3
|
+
class="bd-display ${this.appearance}"
|
|
4
|
+
role=${i&&this.inControl?`none`:o}
|
|
5
|
+
style="${t.join(`; `)}"
|
|
6
|
+
><slot></slot></${a}>
|
|
7
|
+
`}static{this.styles=[i]}};r([s({type:String,attribute:`as`})],f.prototype,`as`,void 0),r([s({type:Boolean,attribute:`in-control`})],f.prototype,`inControl`,void 0),r([s({type:String,attribute:`appearance`,reflect:!0})],f.prototype,`appearance`,void 0),r([s({type:String,attribute:`color`,reflect:!0})],f.prototype,`color`,void 0),r([s({type:String,attribute:`align`,reflect:!0})],f.prototype,`align`,void 0),f=r([t(`bd-display`)],f);export{f as BdDisplay};
|
|
6
8
|
//# sourceMappingURL=display.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","names":["colorRole","displayCSS","_decorate","__decorate","display_css_default","
|
|
1
|
+
{"version":3,"file":"display.js","names":["colorRole","displayCSS","_decorate","__decorate","display_css_default","html$1","APPEARANCES","LEVELS","BdDisplay","LitElement","_args","changed","isOneOf","styles","resolved","color","level","tag","unsafeStatic","nothing","property","defineElement"],"sources":["../../../../src/components/display/display.ts"],"sourcesContent":["import { LitElement, nothing, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { html, unsafeStatic } from \"lit/static-html.js\";\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 displayCSS from \"./display.css.ts\";\nimport { color as colorRole, type ColorRole } from \"#shared/token-scales.ts\";\n\n/** The six display roles the stylesheet carries, largest first. */\nconst APPEARANCES = [\"xxxl\", \"xxl\", \"xl\", \"lg\", \"md\", \"sm\"] as const;\ntype Appearance = typeof APPEARANCES[number];\ntype Align = \"left\" | \"center\" | \"right\";\n\n/** The heading elements `as` renders; without one it is a div. */\nconst LEVELS = [\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"] as const;\ntype Level = typeof LEVELS[number];\n\n/**\n * Display type: the largest steps of the type scale, for a hero's or a\n * band's headline.\n *\n * `as` makes it the heading it reads as -- `<bd-display as=\"h1\">` renders an\n * h1, at its appearance's size, as bd-h renders the level its `as` names --\n * so a page can slot it into a heading slot and keep its outline. Without\n * `as` it renders a div, as it always has: display type is not always a\n * heading (a figure, a slogan). The level and the look stay separate\n * questions: `as` is the outline, `appearance` the size, and changing one\n * never moves the other. An `as` that is not h1-h6 is a div too.\n *\n * `in-control`, as bd-h's: inside a control that is itself the heading, the\n * hN renders as role=\"none\", so the words are announced once.\n */\n@defineElement(\"bd-display\")\nexport class BdDisplay extends LitElement {\n /** The heading element to render, h1-h6; unset, a div. */\n /* Not reflected: unset is the common case, and reflecting it would write\n as=\"\" on every bare display. No style reads it from the host. */\n @property({ type: String, attribute: \"as\" })\n as: Level | \"\" = \"\";\n /**\n * The display sits inside a control that is itself the heading, as bd-h's\n * `in-control`: its hN renders as role=\"none\". The element, its level and\n * its look are unchanged.\n */\n @property({ type: Boolean, attribute: \"in-control\" })\n inControl = false;\n /* `appearance`, matching bd-p and bd-li, which name their type steps the\n same way (N6: the look). 3.x called it `variant`, and before that\n `kind` -- the word that meant four unrelated things before the\n vocabulary was settled; neither resolves now. These are type roles\n rather than the sm/md/lg size scale -- six steps where size has three --\n which is why they are an appearance and not a `size`. */\n /* `md`, not `lg`, since 2026-09-17 -- plans/LATER.md entry 14.\n lg is 60px with no mobile endpoint, so the out-of-the-box configuration\n used to be the largest step a phone cannot take: measured on a 288px\n column, \"Cybersecurity\" at 60 needs 373px and breaks across two lines.\n md is fluid -- clamp(30px, .., 48px) -- so it is the largest step that\n fits at every width, which is what a default should be.\n This DOES change what a bare <bd-display> renders on desktop, 60 to 48.\n Nothing in this package moved, because no component consumes the atom;\n a page that wants 60 says appearance=\"lg\" and always could. */\n @property({ type: String, attribute: \"appearance\", reflect: true })\n appearance: Appearance = \"md\";\n @property({ type: String, attribute: \"color\", reflect: true })\n color: ColorRole | \"\" = \"\"; // semantic role, see COLOR_ROLES\n // Default left alignment\n @property({ type: String, attribute: \"align\", reflect: true })\n align: Align = \"left\"; // \"left\", \"center\", \"right\"\n\n willUpdate(changed: PropertyValues<this>) {\n /* An unrecognised appearance lands on the default rather than on lg: a\n typo should not render LARGER than what was asked for, which is the\n trap the default itself just stopped being. */\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"md\";\n if (changed.has(\"as\") && this.as && !isOneOf(LEVELS, this.as)) this.as = \"\";\n }\n\n render() {\n // color is a semantic role resolved to a token reference by\n // shared/token-scales.ts. It took a raw CSS colour before and call sites\n // were passing hex straight through, which the manifest never surfaced\n // because bd-display was absent from it.\n const styles: string[] = [];\n const resolved = colorRole(this.color);\n if (resolved) styles.push(`color: ${resolved}`);\n if (this.align) styles.push(`text-align: ${this.align}`);\n\n /* The tag is part of the template, as bd-h's is, so Lit keeps one element\n and updates it, and builds a new one only when the level changes.\n unsafeStatic is safe here: willUpdate holds `as` to h1-h6 or nothing.\n The stylesheet sets every property a heading's own user-agent style\n does (margin, size, weight), so an h1 looks as the div does. */\n const level = isOneOf(LEVELS, this.as) ? this.as : \"\";\n const tag = unsafeStatic(level || \"div\");\n return html`\n <${tag}\n class=\"bd-display ${this.appearance}\"\n role=${level && this.inControl ? \"none\" : nothing}\n style=\"${styles.join('; ')}\"\n ><slot></slot></${tag}>\n `;\n }\n\n static styles = [displayCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-display\": BdDisplay;\n }\n}"],"mappings":"A,qcAWA,IAAMM,EAAc,CAAC,OAAQ,MAAO,KAAM,KAAM,KAAM,IAAI,EAKpDC,EAAS,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,IAAI,EAmBrCC,EAAN,cAAwBC,CAAW,C,8BAKvB,KAAA,GAAA,GAOL,KAAA,UAAA,GAiBa,KAAA,WAAA,KAED,KAAA,MAAA,GAGT,KAAA,MAAA,M,CAEf,WAAW,EAA+B,CAIpCE,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQN,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,MACvFK,EAAQ,IAAI,IAAI,GAAK,KAAK,IAAM,CAACC,EAAQL,EAAQ,KAAK,EAAE,IAAG,KAAK,GAAK,GAC3E,CAEA,QAAS,CAKP,IAAMM,EAAmB,CAAC,EACpBC,EAAWd,EAAU,KAAK,KAAK,EACjCc,GAAUD,EAAO,KAAK,UAAUC,GAAU,EAC1C,KAAK,OAAOD,EAAO,KAAK,eAAe,KAAK,OAAO,EAOvD,IAAMG,EAAQJ,EAAQL,EAAQ,KAAK,EAAE,EAAI,KAAK,GAAK,GAC7CU,EAAMC,EAAaF,GAAS,KAAK,EACvC,MAAO,EAAI;SACNC,EAAI;4BACe,KAAK,WAAW;eAC7BD,GAAS,KAAK,UAAY,OAASG,EAAQ;iBACzCN,EAAO,KAAK,IAAI,EAAE;wBACXI,EAAI;KAE1B,C,OAEgB,KAAA,OAAA,CAAChB,CAAU,C,CAC7B,EAnEGC,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,IAAK,CAAC,CAAA,EAAAZ,EAAA,UAAA,KAAA,IAAA,EAAA,EAO1CN,EAAA,CAAAkB,EAAS,CAAE,KAAM,QAAS,UAAW,YAAa,CAAC,CAAA,EAAAZ,EAAA,UAAA,YAAA,IAAA,EAAA,EAiBnDN,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,QAAS,EAAK,CAAC,CAAA,EAAAZ,EAAA,UAAA,aAAA,IAAA,EAAA,EAEjEN,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAZ,EAAA,UAAA,QAAA,IAAA,EAAA,EAG5DN,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAZ,EAAA,UAAA,QAAA,IAAA,EAAA,EAlC9D,EAAAN,EAAA,CAAAmB,EAAc,YAAY,CAAA,EAAAb,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export
|
|
1
|
+
export declare const dividerCSS: import("lit").CSSResult;
|
|
2
|
+
export default dividerCSS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`.hr-line{border:none;border-top:var(--border-width-1) solid var(--color-border-container);width:100%;margin:0 auto}
|
|
1
|
+
import{css as e}from"lit";var t=e`.hr-line{border:none;border-top:var(--border-width-1) solid var(--color-border-container);width:100%;margin:0 auto}.divider{background-color:var(--color-border-default);display:inline-block}`;export{t as default,t as dividerCSS};
|
|
2
2
|
//# sourceMappingURL=divider.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.css.js","names":["
|
|
1
|
+
{"version":3,"file":"divider.css.js","names":["dividerCSS"],"sources":["../../../../src/components/divider/divider.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* One sheet for both orientations; divider.ts renders one element or the\n other, so each rule only ever meets its own. */\nexport const dividerCSS = css`\n .hr-line {\n border: none;\n /* --color-border-container, the rule every bare divider already rendered:\n it used to be --color-border-default dimmed to 0.25, which composites to\n the same colour. See divider.ts. */\n border-top: var(--border-width-1) solid var(--color-border-container);\n margin: 0;\n width: 100%;\n margin-left: auto;\n margin-right: auto\n }\n\n .divider {\n background-color: var(--color-border-default);\n display: inline-block;\n }\n`;\n\nexport default dividerCSS;\n"],"mappings":"A,0BAIA,IAAaA,EAAa,CAAG,iM"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import { type BorderRole, type BorderWidthStep, type ColorRole, type SpacingStep } from "../shared/token-scales.js";
|
|
4
|
+
declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
|
|
5
|
+
type Orientation = typeof ORIENTATIONS[number];
|
|
6
|
+
/**
|
|
7
|
+
* A rule between regions of content: across them, or between two items in a
|
|
8
|
+
* row. One tag for both orientations, where 3.x drew the same line with two
|
|
9
|
+
* (N2: a layout is an attribute, not a tag).
|
|
10
|
+
*
|
|
11
|
+
* Each orientation keeps the attributes and the element it had. Horizontal is
|
|
12
|
+
* an <hr> -- a separator to assistive technology -- whose `width` is how far it
|
|
13
|
+
* spans; vertical is a decorative bar between inline items, sized by `height`
|
|
14
|
+
* (a spacing step) and `thickness` (a border-width step). `color` and
|
|
15
|
+
* `opacity` apply to both. An attribute for the other orientation is ignored.
|
|
16
|
+
*/
|
|
17
|
+
export declare class BdDivider extends LitElement {
|
|
18
|
+
static styles: import("lit").CSSResult[];
|
|
19
|
+
/** horizontal (default) | vertical */
|
|
20
|
+
orientation: Orientation;
|
|
21
|
+
/** Horizontal only: a layout length for how far the rule spans. */
|
|
22
|
+
width: string;
|
|
23
|
+
/** Vertical only: a spacing step; was a 15px literal, off every scale. */
|
|
24
|
+
height: SpacingStep;
|
|
25
|
+
thickness: BorderWidthStep | `${BorderWidthStep}px`;
|
|
26
|
+
color: BorderRole | ColorRole | "";
|
|
27
|
+
opacity: string;
|
|
28
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
29
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
"bd-divider": BdDivider;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{borderColor as e,borderWidth as t,opacity as n,spacing as r}from"../shared/token-scales.js";import{defineElement as i}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as a}from"../shared/prop-vocabulary.js";import o from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import s from"./divider.css.js";import{LitElement as c,html as l}from"lit";import{property as u}from"lit/decorators.js";var d=[`horizontal`,`vertical`],f=class extends c{constructor(...e){super(...e),this.orientation=`horizontal`,this.width=`100%`,this.height=`16`,this.thickness=`1`,this.color=``,this.opacity=``}static{this.styles=[s]}willUpdate(e){e.has(`orientation`)&&!a(d,this.orientation)&&(this.orientation=`horizontal`)}render(){let i=e(this.color),a=n(this.opacity);return this.orientation===`vertical`?l`
|
|
2
|
+
<div
|
|
3
|
+
class="divider"
|
|
4
|
+
style="
|
|
5
|
+
width: ${t(this.thickness)||t(`1`)};
|
|
6
|
+
height: ${r(this.height)};
|
|
7
|
+
${i?`background-color: ${i};`:``}
|
|
8
|
+
${a?`opacity: ${a};`:``}
|
|
9
|
+
"
|
|
10
|
+
></div>
|
|
11
|
+
`:l`
|
|
12
|
+
<hr
|
|
13
|
+
class="hr-line"
|
|
14
|
+
style="
|
|
15
|
+
width: ${this.width};
|
|
16
|
+
${i?`border-top-color: ${i};`:``}
|
|
17
|
+
${a?`opacity: ${a};`:``}
|
|
18
|
+
"
|
|
19
|
+
/>
|
|
20
|
+
`}};o([u({type:String,reflect:!0})],f.prototype,`orientation`,void 0),o([u({type:String})],f.prototype,`width`,void 0),o([u({type:String})],f.prototype,`height`,void 0),o([u({type:String})],f.prototype,`thickness`,void 0),o([u({type:String})],f.prototype,`color`,void 0),o([u({type:String})],f.prototype,`opacity`,void 0),f=o([i(`bd-divider`)],f);export{f as BdDivider};
|
|
21
|
+
//# sourceMappingURL=divider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.js","names":["_decorate","__decorate","dividerCSS","ORIENTATIONS","BdDivider","LitElement","_args","changed","isOneOf","ink","borderColor","fade","opacity","borderWidth","spacing","property","defineElement"],"sources":["../../../../src/components/divider/divider.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\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 { dividerCSS } from \"./divider.css.ts\";\nimport {\n borderColor, spacing, opacity, borderWidth,\n type BorderRole, type BorderWidthStep, type ColorRole, type SpacingStep\n} from \"#shared/token-scales.ts\";\n\nconst ORIENTATIONS = [\"horizontal\", \"vertical\"] as const;\ntype Orientation = typeof ORIENTATIONS[number];\n\n/**\n * A rule between regions of content: across them, or between two items in a\n * row. One tag for both orientations, where 3.x drew the same line with two\n * (N2: a layout is an attribute, not a tag).\n *\n * Each orientation keeps the attributes and the element it had. Horizontal is\n * an <hr> -- a separator to assistive technology -- whose `width` is how far it\n * spans; vertical is a decorative bar between inline items, sized by `height`\n * (a spacing step) and `thickness` (a border-width step). `color` and\n * `opacity` apply to both. An attribute for the other orientation is ignored.\n */\n@defineElement(\"bd-divider\")\nexport class BdDivider extends LitElement {\n static styles = [dividerCSS];\n\n /** horizontal (default) | vertical */\n @property({ type: String, reflect: true })\n orientation: Orientation = \"horizontal\";\n /** Horizontal only: a layout length for how far the rule spans. */\n @property({ type: String })\n width = \"100%\"; // the rule spans its container by default\n /** Vertical only: a spacing step; was a 15px literal, off every scale. */\n @property({ type: String })\n height: SpacingStep = \"16\";\n /* Vertical only. A border-width step, resolved to var(--border-width-N);\n \"1px\" and the other px spellings are read as their step. It was the\n literal \"1px\", written into the style as given -- out of lint:tokens'\n reach, so any length, or any string at all, could stand in for a\n hairline. An unknown value falls back to the 1px step. */\n @property({ type: String })\n thickness: BorderWidthStep | `${BorderWidthStep}px` = \"1\";\n /* No colour by default: the stylesheet draws the rule in a border role,\n and leaving this empty lets that stand. It used to say \"subtle\", which is\n a *text* role -- it resolved to the same step by coincidence, so the\n divider was reading its colour out of the ink vocabulary and nobody could\n see it.\n\n The prop resolves through BORDER_ROLES first (see token-scales.ts), so\n `subtle` means --color-border-subtle and a rule on a brand tint can ask\n for `brand-subtle`. The ink vocabulary is still accepted as a fallback\n for the names already in the markup. */\n @property({ type: String })\n color: BorderRole | ColorRole | \"\" = \"\";\n /* No opacity by default. It was 0.25 on the horizontal rule, laid over\n --color-border-default, and that composite -- rgb(225,227,230), 1.286:1\n on the page -- is --color-border-container to within one unit\n (225,227,229, 1.287:1). So every bare divider was spelling a role that\n exists by dimming a different one. The stylesheet now draws that role at\n full strength, which renders the same rule, and opacity is only what a\n caller asks for: a value is kept only from 0 to 1. */\n @property({ type: String })\n opacity = \"\";\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"orientation\") && !isOneOf(ORIENTATIONS, this.orientation)) this.orientation = \"horizontal\";\n }\n\n render() {\n // An unrecognised or empty colour emits no declaration at all, so the\n // stylesheet's border role stands rather than being overridden with an\n // empty value.\n const ink = borderColor(this.color);\n const fade = opacity(this.opacity);\n if (this.orientation === \"vertical\") {\n return html`\n <div\n class=\"divider\"\n style=\"\n width: ${borderWidth(this.thickness) || borderWidth(\"1\")};\n height: ${spacing(this.height)};\n ${ink ? `background-color: ${ink};` : \"\"}\n ${fade ? `opacity: ${fade};` : \"\"}\n \"\n ></div>\n `;\n }\n return html`\n <hr\n class=\"hr-line\"\n style=\"\n width: ${this.width};\n ${ink ? `border-top-color: ${ink};` : \"\"}\n ${fade ? `opacity: ${fade};` : \"\"}\n \"\n />\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-divider\": BdDivider;\n }\n}\n"],"mappings":"A,ubAYA,IAAMG,EAAe,CAAC,aAAc,UAAU,EAejCC,EAAN,cAAwBC,CAAW,C,8BAKb,KAAA,YAAA,aAGnB,KAAA,MAAA,OAGc,KAAA,OAAA,KAOgC,KAAA,UAAA,IAYjB,KAAA,MAAA,GAS3B,KAAA,QAAA,E,QAtCM,KAAA,OAAA,CAACH,CAAU,C,CAwC3B,WAAW,EAA+B,CACpCK,EAAQ,IAAI,aAAa,GAAK,CAACC,EAAQL,EAAc,KAAK,WAAW,IAAG,KAAK,YAAc,aACjG,CAEA,QAAS,CAIP,IAAMM,EAAMC,EAAY,KAAK,KAAK,EAC5BC,EAAOC,EAAQ,KAAK,OAAO,EAcjC,OAbI,KAAK,cAAgB,WAChB,CAAI;;;;qBAIIC,EAAY,KAAK,SAAS,GAAKA,EAAY,GAAG,EAAE;sBAC/CC,EAAQ,KAAK,MAAM,EAAE;cAC7BL,EAAM,qBAAqBA,EAAI,GAAK,GAAG;cACvCE,EAAO,YAAYA,EAAK,GAAK,GAAG;;;QAKnC,CAAI;;;;mBAII,KAAK,MAAM;YAClBF,EAAM,qBAAqBA,EAAI,GAAK,GAAG;YACvCE,EAAO,YAAYA,EAAK,GAAK,GAAG;;;KAI1C,CACF,EAvEGX,EAAA,CAAAe,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAX,EAAA,UAAA,cAAA,IAAA,EAAA,EAGxCJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EAGzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,SAAA,IAAA,EAAA,EAOzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,YAAA,IAAA,EAAA,EAYzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EASzBJ,EAAA,CAAAe,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,UAAA,IAAA,EAAA,EAvC3B,EAAAJ,EAAA,CAAAgB,EAAc,YAAY,CAAA,EAAAZ,CAAA,E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const factCSS: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{border-top:var(--border-width-2) solid var(--color-border-brand);font-family:var(--typography-fontFamily-sans);flex-direction:column;display:flex}:host([hidden]),.label[hidden],.value[hidden]{display:none}:host([appearance=row]){row-gap:var(--spacing-20);padding-block:var(--spacing-20) var(--spacing-16)}:host([appearance=row]) .label{color:var(--color-text-muted);text-transform:uppercase;font-size:var(--typography-body-xsmall-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);font-family:var(--typography-body-small-fontFamily)}:host([appearance=row]) .value{color:var(--color-text-primary);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);font-family:var(--typography-body-regular-fontFamily)}:host([appearance=stat]){row-gap:var(--spacing-4);padding-top:var(--spacing-16)}:host([appearance=stat]) .value{color:var(--color-text-brand);font-size:var(--typography-fontSize-3xl);font-weight:var(--typography-fontWeight-bold);line-height:1.1}:host([appearance=stat]) .label{color:var(--color-text-muted);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);font-family:var(--typography-body-small-fontFamily)}:host([appearance=inline]){align-items:baseline;column-gap:var(--spacing-8);border-top:none;flex-direction:row}:host([appearance=inline]) .label{color:var(--color-text-muted);font-size:var(--typography-fontSize-xxs);font-family:var(--typography-fontFamily-mono);line-height:var(--typography-lineHeight-normal);text-transform:uppercase;letter-spacing:.04em}:host([appearance=spec]){align-items:baseline;column-gap:var(--spacing-8);padding-bottom:var(--spacing-16);white-space:nowrap;border-top:none;flex-direction:row}:host([appearance=spec]) .label{color:var(--color-text-muted);text-transform:uppercase;font-size:var(--typography-body-xsmall-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-letterSpacing-widest);font-family:var(--typography-fontFamily-mono)}:host([appearance=spec]) .value{color:var(--color-text-primary);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-fontWeight-bold);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);font-family:var(--typography-body-regular-fontFamily)}:host([appearance=inline]) .value{color:var(--color-text-primary);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-fontWeight-semibold);line-height:var(--typography-lineHeight-tight);letter-spacing:var(--typography-body-regular-letterSpacing);font-family:var(--typography-body-regular-fontFamily)}`;export{t as factCSS};
|
|
2
|
+
//# sourceMappingURL=fact.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fact.css.js","names":["factCSS"],"sources":["../../../../src/components/fact/fact.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/* The looks are the ones 3.x drew, measured against bd-overview's,\n bd-trust-panel's, bd-quick-answer's and bd-header-code's renders: the same\n rules, sizes, inks and distances. */\nexport const factCSS = css`\n /* The brand rule above a row and a stat. A boundary at the top of the\n fact's own box, not a divider between regions: it is drawn whether or not\n a fact sits above, as 3.x's divider element was. The inline look draws\n none. */\n :host {\n display: flex;\n flex-direction: column;\n border-top: var(--border-width-2) solid var(--color-border-brand);\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* The native hidden attribute has to beat the display above. */\n :host([hidden]),\n .label[hidden],\n .value[hidden] {\n display: none;\n }\n\n /* === ROW: bd-overview's spec-sheet line ===\n 3.x drew the label and the value as bd-p xsmall and regular, and each\n <p> carried bd-p's 16px flow margin. The distances here are what those\n margins made: 16 under the rule plus the row's 4px gap above the label,\n the same 4 plus the label's margin between label and value, and the\n value's margin under it. So a column of rows measures what it did. */\n :host([appearance=\"row\"]) {\n row-gap: var(--spacing-20);\n padding-block: var(--spacing-20) var(--spacing-16);\n }\n\n /* bd-p xsmall: body-xsmall is a size and nothing else, so the weight,\n leading and tracking are body-small's, as bd-p borrows them. */\n :host([appearance=\"row\"]) .label {\n color: var(--color-text-muted);\n text-transform: uppercase;\n font-size: var(--typography-body-xsmall-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n }\n\n :host([appearance=\"row\"]) .value {\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n font-family: var(--typography-body-regular-fontFamily);\n }\n\n /* === STAT: bd-trust-panel's statistic === */\n :host([appearance=\"stat\"]) {\n row-gap: var(--spacing-4);\n padding-top: var(--spacing-16);\n }\n\n :host([appearance=\"stat\"]) .value {\n /* The brand text role, not the brand's step 500: the figure sits on the\n trust panel's tint, where step 500 measured 4.20:1 and passed only on\n the large-text exemption. The role measures 5.72:1. */\n color: var(--color-text-brand);\n font-size: var(--typography-fontSize-3xl);\n font-weight: var(--typography-fontWeight-bold);\n /* no token: 1.1 is neither --typography-lineHeight-none (1) nor -tight\n (1.25), and choosing between them changes the height of a rendered\n statistic. A design-review item since P5E, carried here from\n trust-panel.css.ts unchanged. */\n line-height: 1.1;\n }\n\n /* The sentence under a statistic, and it wraps to two lines at most widths:\n supporting body copy rather than a form label, so body-small and not\n label-default's weight 500. */\n :host([appearance=\"stat\"]) .label {\n color: var(--color-text-muted);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n font-family: var(--typography-body-small-fontFamily);\n }\n\n /* === INLINE: bd-quick-answer's meta strip ===\n A key and its value on one line, on their shared baseline, 8 apart, with\n no rule: the quick answer draws one divider above the whole strip. */\n :host([appearance=\"inline\"]) {\n flex-direction: row;\n align-items: baseline;\n column-gap: var(--spacing-8);\n border-top: none;\n }\n\n :host([appearance=\"inline\"]) .label {\n /* subtle is only safe on the page ground: on the quick answer's tint it\n lands at 4.33:1 and these keys are 11px. muted is the next step in the\n same family. */\n color: var(--color-text-muted);\n /* no role: a meta strip's key -- mono, upper-case and tracked at 11px --\n and not the eyebrow the package keeps almost naming a role for, which\n is sans body copy above a heading. label-extra-small is the only role\n at xxs and it is sans with normal tracking, so it describes different\n text. The size and the family stay primitives, carried from\n quick-answer.css.ts, where this look was drawn until v4. */\n font-size: var(--typography-fontSize-xxs);\n font-family: var(--typography-fontFamily-mono);\n /* no role: the key's leading, for the same reason. 1.5, the step\n label-extra-small takes at this size; the key sits on the value's\n baseline, so the value's line decides the fact's height. */\n line-height: var(--typography-lineHeight-normal);\n text-transform: uppercase;\n /* no token: 0.04em sits between --typography-letterSpacing-wide (0.025em)\n and -wider (0.05em), and choosing either changes the width of every\n key. Carried from quick-answer.css.ts unchanged. */\n letter-spacing: 0.04em;\n }\n\n /* === SPEC: bd-terminal-hero's facts (3.x bd-header-code's metafacts) ===\n A key and its value on their shared baseline, 8 apart, on one line, with\n no rule: the hero draws one rule above the whole grid of them. 3.x drew\n both as bd-p, each in a flex item that kept its <p>'s 16px flow margin\n inside it; the padding under the fact is that margin, so a grid of facts\n measures what it did. */\n :host([appearance=\"spec\"]) {\n flex-direction: row;\n align-items: baseline;\n column-gap: var(--spacing-8);\n border-top: none;\n padding-bottom: var(--spacing-16);\n white-space: nowrap;\n }\n\n /* bd-p xsmall in mono at the widest tracking: body-xsmall's size, with\n body-small's weight and leading as bd-p borrows them. Muted: the spec\n fact is the terminal hero's, and the hero can be tinted, where subtle --\n which sits on the page or a card and nowhere else (dark mode decision\n 17) -- read 3.86:1 at the tint's strongest in light and 4.32:1 in dark.\n A fact cannot see which ground its hero drew, so it takes the step that\n reads on both: 6.59:1 on white (subtle was 4.81), 5.28:1 on the tint. */\n :host([appearance=\"spec\"]) .label {\n color: var(--color-text-muted);\n text-transform: uppercase;\n font-size: var(--typography-body-xsmall-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-letterSpacing-widest);\n font-family: var(--typography-fontFamily-mono);\n }\n\n /* The value in body copy. */\n :host([appearance=\"spec\"]) .value {\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n /* no role: the weight marks the value as the answer to its key --\n emphasis within the row, not a text-content type; see button.css.ts's\n .button--bold for that argument. As 3.x drew it (font-weight=\"bold\"). */\n font-weight: var(--typography-fontWeight-bold);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n font-family: var(--typography-body-regular-fontFamily);\n }\n\n /* The answer, at the body size. */\n :host([appearance=\"inline\"]) .value {\n color: var(--color-text-primary);\n font-size: var(--typography-body-regular-fontSize);\n /* no role: the weight marks it as the answer rather than the question --\n emphasis within the strip, not a text-content type; see\n button.css.ts's .button--bold for that argument. As in 3.x. */\n font-weight: var(--typography-fontWeight-semibold);\n /* no role: a 20px line, what 3.x drew -- it inherited the font's own\n \"normal\" metric undeclared -- and the floor for text that can wrap.\n body-regular's 1.5 would make every fact 4px taller. */\n line-height: var(--typography-lineHeight-tight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n font-family: var(--typography-body-regular-fontFamily);\n }\n`;\n"],"mappings":"A,0BAKA,IAAaA,EAAU,CAAG,ugG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
declare const APPEARANCES: readonly ["row", "stat", "inline", "spec"];
|
|
5
|
+
type Appearance = typeof APPEARANCES[number];
|
|
6
|
+
/**
|
|
7
|
+
* A fact: a label and its value, under a brand rule.
|
|
8
|
+
*
|
|
9
|
+
* <bd-fact appearance="row"><span slot="label">Platform</span><span slot="value">macOS</span></bd-fact>
|
|
10
|
+
* <bd-fact appearance="stat"><span slot="value">50B+</span><span slot="label">threats blocked every year</span></bd-fact>
|
|
11
|
+
* <bd-fact appearance="inline"><span slot="label">Status</span><span slot="value">Open BETA</span></bd-fact>
|
|
12
|
+
* <bd-fact appearance="spec"><span slot="label">Price</span><span slot="value">Free during beta</span></bd-fact>
|
|
13
|
+
*
|
|
14
|
+
* It replaces bd-overview's `facts`, bd-trust-panel's `stats`,
|
|
15
|
+
* bd-quick-answer's `items` and bd-header-code's `metafacts` arrays: the
|
|
16
|
+
* same pair four modules each drew for themselves.
|
|
17
|
+
*
|
|
18
|
+
* Both slots are text, and the fact owns their typography -- the page writes
|
|
19
|
+
* words, not a size. The order follows the look, in the DOM as well as on
|
|
20
|
+
* screen, so it is also the reading order: a row and an inline fact read
|
|
21
|
+
* their label first, a statistic its figure first. Each slot's box is hidden
|
|
22
|
+
* while it is empty.
|
|
23
|
+
*/
|
|
24
|
+
export declare class BdFact extends LitElement {
|
|
25
|
+
static styles: import("lit").CSSResult[];
|
|
26
|
+
/** The look: row (default) | stat | inline | spec. */
|
|
27
|
+
appearance: Appearance;
|
|
28
|
+
_slots: SlotController<"value" | "label">;
|
|
29
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
30
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
"bd-fact": BdFact;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as r}from"../shared/controller.slot.js";import{factCSS as i}from"./fact.css.js";import{LitElement as a,html as o}from"lit";import{property as s}from"lit/decorators.js";var c=[`row`,`stat`,`inline`,`spec`],l=class extends a{constructor(...e){super(...e),this.appearance=`row`,this._slots=new r(this,{slots:[`label`,`value`]})}static{this.styles=[i]}willUpdate(e){e.has(`appearance`)&&!t(c,this.appearance)&&(this.appearance=`row`)}render(){let e=o`<div class="label" part="label" ?hidden=${!this._slots.has(`label`)}><slot name="label"></slot></div>`,t=o`<div class="value" part="value" ?hidden=${!this._slots.has(`value`)}><slot name="value"></slot></div>`;return this.appearance===`stat`?o`${t}${e}`:o`${e}${t}`}};n([s({type:String,attribute:`appearance`,reflect:!0})],l.prototype,`appearance`,void 0),l=n([e(`bd-fact`)],l);export{l as BdFact};
|
|
2
|
+
//# sourceMappingURL=fact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fact.js","names":["_decorate","__decorate","APPEARANCES","BdFact","LitElement","_args","SlotController","factCSS","changed","isOneOf","label","value","property","defineElement"],"sources":["../../../../src/components/fact/fact.ts"],"sourcesContent":["import { LitElement, html, type PropertyValues } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { factCSS } from \"./fact.css.ts\";\n\n/* The four looks 3.x drew this pair in. `row` is bd-overview's spec-sheet\n line: a brand rule, a small upper-case label, the value in body copy.\n `stat` is bd-trust-panel's statistic: the rule, a large brand figure, the\n sentence under it. `inline` is bd-quick-answer's meta strip: no rule, a\n small mono upper-case key with its value beside it on one line. `spec` is\n bd-header-code's metafacts, bd-terminal-hero's facts now: no rule, an\n xsmall mono upper-case key at the widest tracking, and the value in bold\n body copy beside it, kept on one line. */\nconst APPEARANCES = [\"row\", \"stat\", \"inline\", \"spec\"] as const;\ntype Appearance = typeof APPEARANCES[number];\n\n/**\n * A fact: a label and its value, under a brand rule.\n *\n * <bd-fact appearance=\"row\"><span slot=\"label\">Platform</span><span slot=\"value\">macOS</span></bd-fact>\n * <bd-fact appearance=\"stat\"><span slot=\"value\">50B+</span><span slot=\"label\">threats blocked every year</span></bd-fact>\n * <bd-fact appearance=\"inline\"><span slot=\"label\">Status</span><span slot=\"value\">Open BETA</span></bd-fact>\n * <bd-fact appearance=\"spec\"><span slot=\"label\">Price</span><span slot=\"value\">Free during beta</span></bd-fact>\n *\n * It replaces bd-overview's `facts`, bd-trust-panel's `stats`,\n * bd-quick-answer's `items` and bd-header-code's `metafacts` arrays: the\n * same pair four modules each drew for themselves.\n *\n * Both slots are text, and the fact owns their typography -- the page writes\n * words, not a size. The order follows the look, in the DOM as well as on\n * screen, so it is also the reading order: a row and an inline fact read\n * their label first, a statistic its figure first. Each slot's box is hidden\n * while it is empty.\n */\n@defineElement(\"bd-fact\")\nexport class BdFact extends LitElement {\n static styles = [factCSS];\n\n /** The look: row (default) | stat | inline | spec. */\n @property({ type: String, attribute: \"appearance\", reflect: true })\n appearance: Appearance = \"row\";\n\n _slots = new SlotController(this, { slots: [\"label\", \"value\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"row\";\n }\n\n render() {\n const label = html`<div class=\"label\" part=\"label\" ?hidden=${!this._slots.has(\"label\")}><slot name=\"label\"></slot></div>`;\n const value = html`<div class=\"value\" part=\"value\" ?hidden=${!this._slots.has(\"value\")}><slot name=\"value\"></slot></div>`;\n return this.appearance === \"stat\" ? html`${value}${label}` : html`${label}${value}`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-fact\": BdFact;\n }\n}\n"],"mappings":"A,0ZAiBA,IAAME,EAAc,CAAC,MAAO,OAAQ,SAAU,MAAM,EAsBvCC,EAAN,cAAqBC,CAAW,C,8BAKZ,KAAA,WAAA,MAEhB,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,OAAO,CAAE,CAAC,C,QAN/C,KAAA,OAAA,CAACC,CAAO,C,CAQxB,WAAW,EAA+B,CACpCC,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQP,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,MAC7F,CAEA,QAAS,CACP,IAAMQ,EAAQ,CAAI,2CAA2C,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE,mCACjFC,EAAQ,CAAI,2CAA2C,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE,mCACvF,OAAO,KAAK,aAAe,OAAS,CAAI,GAAGA,IAAQD,IAAU,CAAI,GAAGA,IAAQC,GAC9E,CACF,EAdGX,EAAA,CAAAY,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,QAAS,EAAK,CAAC,CAAA,EAAAT,EAAA,UAAA,aAAA,IAAA,EAAA,EALnE,EAAAH,EAAA,CAAAa,EAAc,SAAS,CAAA,EAAAV,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;padding-top:var(--spacing-64);padding-bottom:var(--bd-features-padding-bottom,var(--spacing-64));justify-content:center;display:flex;container-type:inline-size}.bd-features-container{column-gap:var(--spacing-32);grid-template-rows:repeat(4,auto);grid-auto-columns:minmax(0,400px);grid-auto-flow:column;row-gap:0;width:fit-content;max-width:100%;margin-inline:auto;display:grid}::slotted(bd-feature-column){grid-row:span 4;grid-template-rows:subgrid;align-content:start;min-width:0;display:grid}@container (width<=600px){.bd-features-container{row-gap:var(--spacing-32);grid-template-rows:none;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;width:100%}::slotted(bd-feature-column){flex-direction:column;grid-row:auto;display:flex}}`,n=e`:host{--bd-acc-header-margin-bottom:var(--spacing-8);display:block}.col-icon-wrapper{grid-row:1}.col-title-wrapper{grid-row:2}.col-description{grid-row:3}.col-content{grid-row:4}.col-icon-wrapper,.col-title-wrapper{margin-bottom:var(--spacing-8);align-items:flex-start;display:flex;overflow:hidden}.col-description{margin-bottom:var(--spacing-24);overflow:hidden}.col-icon-wrapper[hidden],.col-title-wrapper[hidden],.col-description[hidden],.col-content[hidden]{display:none}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily)}`;export{n as featureColumnCSS,t as featureColumnsCSS};
|
|
2
|
+
//# sourceMappingURL=feature-columns.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-columns.css.js","names":["featureColumnsCSS","featureColumnCSS"],"sources":["../../../../src/components/feature-columns/feature-columns.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { headingRole } from \"#shared/token-scales.ts\";\n\n/* bd-feature-columns: the section, and the grid its columns share. */\nexport const featureColumnsCSS = css`\n /* padding-block, not padding-top alone. This section opened with 64px above\n it and closed with nothing, so whatever followed it sat flush against the\n last feature column -- measured 64px/0px while every other module in the\n family pads both ends (48/48 for five of them, 64/64 for three). The\n bottom now matches the top, which is what the module was already doing at\n one end.\n\n The duplicate display went with it: block was declared and then\n immediately overridden by flex on the next line but one, so it had never\n applied. */\n :host {\n /* The section is the container that decides when the columns stack, not\n the screen: across the page the two are the same width, inside\n bd-tabs or any narrower column the columns stack with it. width: 100%\n because a size container contributes nothing to its own intrinsic\n width. */\n container-type: inline-size;\n width: 100%;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n padding-top: var(--spacing-64);\n /* A host that nests the section (bd-tabs) can shorten the closing pad.\n The name is 3.x's, which bd-tabs still sets. */\n padding-bottom: var(--bd-features-padding-bottom, var(--spacing-64));\n /* No padding-inline here: the gutter is the column's, inside the shadow\n root. A host pad was 24px on top of it standing alone, and inside\n bd-tabs -- where the nested column collapses to its parent's edges --\n it was the one inset left, putting the features 24px inside every\n other section's edge. */\n }\n\n /* Columns grid: its own measure -- one track of up to 400 per column, as\n many as there are columns -- centred inside the page column. The column\n count and the N x 400 cap used to be written inline by features.ts; an\n auto-flowing column track says both. The slot is display: contents, so\n the page's columns are this grid's items. */\n .bd-features-container {\n margin-inline: auto;\n display: grid;\n grid-auto-flow: column;\n /* no token: the column's measure, the 400 the design gives each one */\n grid-auto-columns: minmax(0, 400px);\n /* The rows every column shares: icon, title, description, content. */\n grid-template-rows: repeat(4, auto);\n column-gap: var(--spacing-32);\n row-gap: 0;\n /* as wide as its columns, and no wider than the page column */\n width: fit-content;\n max-width: 100%;\n }\n\n /* Each column is a subgrid of those four rows, so a title that wraps to two\n lines, or a longer description, moves the next row down in every column\n at once. A column's parts are in its own shadow root and name their rows\n there (featureColumnCSS below); a subgrid lays out the flat tree, so they\n line up across the shadow boundary. Set here rather than on the column's\n :host, because the rows are this grid's: a column alone is a stack. */\n ::slotted(bd-feature-column) {\n display: grid;\n grid-row: span 4;\n grid-template-rows: subgrid;\n align-content: start;\n min-width: 0;\n }\n\n /* One column under another: nothing to line up across, so each column is a\n plain stack again, its parts at their own heights. The !important that\n stood here was beating the inline repeat(N) features.ts wrote. */\n @container (width <= 600px) {\n .bd-features-container {\n grid-auto-flow: row;\n grid-template-columns: minmax(0, 1fr);\n grid-template-rows: none;\n row-gap: var(--spacing-32);\n width: 100%;\n }\n\n ::slotted(bd-feature-column) {\n display: flex;\n flex-direction: column;\n grid-row: auto;\n }\n }\n`;\n\n/* bd-feature-column: its parts, each in the row it names. */\nexport const featureColumnCSS = css`\n :host {\n display: block;\n /* 8px from an accordion item's title to its content, as in 3.x, where\n this was written inline on every item of a cloned accordion. */\n --bd-acc-header-margin-bottom: var(--spacing-8);\n }\n\n .col-icon-wrapper { grid-row: 1; }\n .col-title-wrapper { grid-row: 2; }\n .col-description { grid-row: 3; }\n /* The wrapper fills the row, which is as tall as the longest content; the\n accordion in it keeps its own height. In 3.x the accordion was the grid\n item, so it needed align-self: start in the grid and stretch once the\n columns stacked. */\n .col-content { grid-row: 4; }\n\n /* Icon wrapper */\n .col-icon-wrapper {\n display: flex;\n align-items: flex-start;\n margin-bottom: var(--spacing-8);\n overflow: hidden;\n }\n\n /* Title wrapper */\n .col-title-wrapper {\n display: flex;\n align-items: flex-start;\n margin-bottom: var(--spacing-8);\n overflow: hidden;\n }\n\n /* The description is the page's bd-p, and keeps its own appearance. 3.x\n re-rendered its text into a bd-p of its own at regular, so the type this\n wrapper declared never reached it, and it went. */\n .col-description {\n margin-bottom: var(--spacing-24);\n overflow: hidden;\n }\n\n /* A wrapper whose slot is empty; display above outranks the hidden\n attribute's own rule. Its row stays, held open by the other columns. */\n .col-icon-wrapper[hidden],\n .col-title-wrapper[hidden],\n .col-description[hidden],\n .col-content[hidden] {\n display: none;\n }\n\n /* The column owns its title's size, never its level: the page writes the\n bd-h at the level its outline needs, and it is drawn at heading-h4, the\n level 3.x rendered. A visual-level on the page's bd-h still wins. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole('heading-h4'))}\n }\n`;\n"],"mappings":"A,4DAIA,IAAaA,EAAoB,CAAG,4wBAwFvBC,EAAmB,CAAG,m2B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../accordion/accordion-item.js";
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../img/img.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
8
|
+
/**
|
|
9
|
+
* One column of a bd-feature-columns: an icon, a title, a description and
|
|
10
|
+
* whatever the page puts under them -- usually an accordion.
|
|
11
|
+
*
|
|
12
|
+
* <bd-feature-column>
|
|
13
|
+
* <bd-img slot="icon" src="/protection.png" alt="" width="40" height="40"></bd-img>
|
|
14
|
+
* <bd-h slot="title" as="h3">Protection</bd-h>
|
|
15
|
+
* <bd-p slot="description">Multi-layered protection for every device.</bd-p>
|
|
16
|
+
* <bd-accordion-section no-container>…</bd-accordion-section>
|
|
17
|
+
* </bd-feature-column>
|
|
18
|
+
*
|
|
19
|
+
* Every part is the page's and is slotted as it is. In 3.x bd-features read
|
|
20
|
+
* the column's `title`, `icon-src` and `icon-alt` attributes, flattened its
|
|
21
|
+
* description to textContent and cloned its icon and accordion into its own
|
|
22
|
+
* shadow root, so a description lost its markup and appearance, the accordion
|
|
23
|
+
* a page could see was a copy, and nothing followed a later edit. The column
|
|
24
|
+
* sets the title's size (heading-h4, what 3.x drew) and never its level.
|
|
25
|
+
*
|
|
26
|
+
* Each part sits in a wrapper that names its row, so inside bd-feature-columns
|
|
27
|
+
* the columns line up row by row through a subgrid (feature-columns.css.ts).
|
|
28
|
+
* A wrapper is hidden while its slot is empty; its row stays, held open by
|
|
29
|
+
* the other columns.
|
|
30
|
+
*/
|
|
31
|
+
export declare class BdFeatureColumn extends LitElement {
|
|
32
|
+
static styles: import("lit").CSSResult[];
|
|
33
|
+
_slots: SlotController<"" | "title" | "description" | "icon">;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Feature columns side by side, up to 400px each, centred in the page column,
|
|
38
|
+
* stacking once the section is 600px or narrower.
|
|
39
|
+
*
|
|
40
|
+
* <bd-feature-columns>
|
|
41
|
+
* <bd-feature-column>…</bd-feature-column>
|
|
42
|
+
* <bd-feature-column>…</bd-feature-column>
|
|
43
|
+
* </bd-feature-columns>
|
|
44
|
+
*
|
|
45
|
+
* It coordinates its columns rather than only gridding them (N10): each
|
|
46
|
+
* slotted column is a subgrid of the four rows this grid declares -- icon,
|
|
47
|
+
* title, description, content -- so a title that wraps to two lines, or a
|
|
48
|
+
* longer description, moves the next row down in every column at once. That
|
|
49
|
+
* used to be a ResizeObserver, a wait for the fonts and a px height written
|
|
50
|
+
* on every part.
|
|
51
|
+
*/
|
|
52
|
+
export declare class BdFeatureColumns extends LitElement {
|
|
53
|
+
static styles: import("lit").CSSResult[];
|
|
54
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
55
|
+
}
|
|
56
|
+
declare global {
|
|
57
|
+
interface HTMLElementTagNameMap {
|
|
58
|
+
"bd-feature-column": BdFeatureColumn;
|
|
59
|
+
"bd-feature-columns": BdFeatureColumns;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../accordion/accordion-item.js";import"../img/img.js";import{featureColumnCSS as i,featureColumnsCSS as a}from"./feature-columns.css.js";import{LitElement as o,html as s}from"lit";var c=class extends o{constructor(...e){super(...e),this._slots=new n(this,{slots:[`icon`,`title`,`description`,``]})}static{this.styles=[i]}render(){return s`
|
|
2
|
+
<div class="col-icon-wrapper" ?hidden=${!this._slots.has(`icon`)}><slot name="icon"></slot></div>
|
|
3
|
+
<div class="col-title-wrapper" ?hidden=${!this._slots.has(`title`)}><slot name="title"></slot></div>
|
|
4
|
+
<div class="col-description" ?hidden=${!this._slots.has(`description`)}><slot name="description"></slot></div>
|
|
5
|
+
<div class="col-content" ?hidden=${!this._slots.has(``)}><slot></slot></div>
|
|
6
|
+
`}};c=t([e(`bd-feature-column`)],c);var l=class extends o{static{this.styles=[r,a]}render(){return s`
|
|
7
|
+
<div class="bd-ensemble">
|
|
8
|
+
<div class="bd-features-container"><slot></slot></div>
|
|
9
|
+
</div>
|
|
10
|
+
`}};l=t([e(`bd-feature-columns`)],l);export{c as BdFeatureColumn,l as BdFeatureColumns};
|
|
11
|
+
//# sourceMappingURL=feature-columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature-columns.js","names":["_decorate","__decorate","BdFeatureColumn","LitElement","_args","SlotController","featureColumnCSS","defineElement","BdFeatureColumns","ensembleCSS","featureColumnsCSS"],"sources":["../../../../src/components/feature-columns/feature-columns.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms a column is written with. The columns render none of them now,\n but 3.x's ./features registered all four, and a page importing only this\n module still gets them. */\nimport \"#components/accordion/accordion-item.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/img/img.ts\";\nimport \"#components/p/p.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { featureColumnCSS, featureColumnsCSS } from \"./feature-columns.css.ts\";\n\n/**\n * One column of a bd-feature-columns: an icon, a title, a description and\n * whatever the page puts under them -- usually an accordion.\n *\n * <bd-feature-column>\n * <bd-img slot=\"icon\" src=\"/protection.png\" alt=\"\" width=\"40\" height=\"40\"></bd-img>\n * <bd-h slot=\"title\" as=\"h3\">Protection</bd-h>\n * <bd-p slot=\"description\">Multi-layered protection for every device.</bd-p>\n * <bd-accordion-section no-container>…</bd-accordion-section>\n * </bd-feature-column>\n *\n * Every part is the page's and is slotted as it is. In 3.x bd-features read\n * the column's `title`, `icon-src` and `icon-alt` attributes, flattened its\n * description to textContent and cloned its icon and accordion into its own\n * shadow root, so a description lost its markup and appearance, the accordion\n * a page could see was a copy, and nothing followed a later edit. The column\n * sets the title's size (heading-h4, what 3.x drew) and never its level.\n *\n * Each part sits in a wrapper that names its row, so inside bd-feature-columns\n * the columns line up row by row through a subgrid (feature-columns.css.ts).\n * A wrapper is hidden while its slot is empty; its row stays, held open by\n * the other columns.\n */\n@defineElement(\"bd-feature-column\")\nexport class BdFeatureColumn extends LitElement {\n static styles = [featureColumnCSS];\n\n _slots = new SlotController(this, { slots: [\"icon\", \"title\", \"description\", \"\"] });\n\n render() {\n return html`\n <div class=\"col-icon-wrapper\" ?hidden=${!this._slots.has(\"icon\")}><slot name=\"icon\"></slot></div>\n <div class=\"col-title-wrapper\" ?hidden=${!this._slots.has(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"col-description\" ?hidden=${!this._slots.has(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"col-content\" ?hidden=${!this._slots.has(\"\")}><slot></slot></div>\n `;\n }\n}\n\n/**\n * Feature columns side by side, up to 400px each, centred in the page column,\n * stacking once the section is 600px or narrower.\n *\n * <bd-feature-columns>\n * <bd-feature-column>…</bd-feature-column>\n * <bd-feature-column>…</bd-feature-column>\n * </bd-feature-columns>\n *\n * It coordinates its columns rather than only gridding them (N10): each\n * slotted column is a subgrid of the four rows this grid declares -- icon,\n * title, description, content -- so a title that wraps to two lines, or a\n * longer description, moves the next row down in every column at once. That\n * used to be a ResizeObserver, a wait for the fonts and a px height written\n * on every part.\n */\n@defineElement(\"bd-feature-columns\")\nexport class BdFeatureColumns extends LitElement {\n static styles = [ensembleCSS, featureColumnsCSS];\n\n render() {\n return html`\n <div class=\"bd-ensemble\">\n <div class=\"bd-features-container\"><slot></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-feature-column\" : BdFeatureColumn;\n \"bd-feature-columns\": BdFeatureColumns;\n }\n}\n"],"mappings":"A,0fAuCO,IAAME,EAAN,cAA8BC,CAAW,C,8BAGrC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAQ,QAAS,cAAe,EAAE,CAAE,CAAC,C,QAFjE,KAAA,OAAA,CAACC,CAAgB,C,CAIjC,QAAS,CACP,MAAO,EAAI;8CAC+B,CAAC,KAAK,OAAO,IAAI,MAAM,EAAE;+CACxB,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;6CAC5B,CAAC,KAAK,OAAO,IAAI,aAAa,EAAE;yCACpC,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;KAE5D,CACF,EAdC,EAAAN,EAAA,CAAAO,EAAc,mBAAmB,CAAA,EAAAL,CAAA,EAiC3B,IAAMM,EAAN,cAA+BL,CAAW,C,OAC/B,KAAA,OAAA,CAACM,EAAaC,CAAiB,C,CAE/C,QAAS,CACP,MAAO,EAAI;;;;KAKb,CACF,EAXC,EAAAV,EAAA,CAAAO,EAAc,oBAAoB,CAAA,EAAAC,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;display:block}.bd-features-tab-container{align-items:center;gap:var(--spacing-64);width:100%;animation:bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;display:flex}.bd-features-tab-left{align-items:flex-start;gap:var(--spacing-24);flex-direction:column;flex:1;display:flex}.bd-features-tab-content{gap:var(--spacing-8);flex-direction:column;display:flex}.bd-features-tab-right{flex:1;justify-content:center;align-items:center;display:flex}::slotted([slot=
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;width:100%;display:block}.bd-features-tab-container{align-items:center;gap:var(--spacing-64);width:100%;animation:bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;display:flex}.bd-features-tab-left{align-items:flex-start;gap:var(--spacing-24);flex-direction:column;flex:1;display:flex}.bd-features-tab-content{gap:var(--spacing-8);flex-direction:column;display:flex}.bd-features-tab-content[hidden]{display:none}.bd-features-tab-right{flex:1;justify-content:center;align-items:center;display:flex}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h3-fontSize);--bd-heading-font-weight:var(--typography-heading-h3-fontWeight);--bd-heading-line-height:var(--typography-heading-h3-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h3-letterSpacing);--bd-heading-font-family:var(--typography-heading-h3-fontFamily);--bd-heading-color:var(--color-text-brand);--bd-paragraph-color:var(--color-text-brand);margin:0}::slotted([slot=media]){border-radius:var(--shape-radius-lg);width:100%;max-width:520px;height:auto;display:block}@media (prefers-reduced-motion:reduce){.bd-features-tab-container{animation:none}}@keyframes bd-fade-slide-right{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@media (width<992px){.bd-features-tab-container{gap:var(--spacing-32);flex-direction:column-reverse}.bd-features-tab-container.bd-features-tab-reverse{flex-direction:column-reverse}.bd-features-tab-left{text-align:center;align-items:center}::slotted([slot=media]){max-width:100%}}@media (width<576px){.bd-features-tab-container{gap:var(--spacing-24)}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=features-tab.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-tab.css.js","names":["features_tab_css_default"],"sources":["../../../../src/components/features-tab/features-tab.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-features-tab-container {\n display: flex;\n align-items: center;\n gap: var(--spacing-64);\n width: 100%;\n /* slow, not 350ms: a 50ms difference nobody chose, on a one-shot\n entrance that is not repeated. */\n animation: bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;\n }\n\n .bd-features-tab-left {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n .bd-features-tab-content {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n }\n\n .bd-features-tab-right {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n ::slotted([slot=\"
|
|
1
|
+
{"version":3,"file":"features-tab.css.js","names":["features_tab_css_default"],"sources":["../../../../src/components/features-tab/features-tab.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n\n .bd-features-tab-container {\n display: flex;\n align-items: center;\n gap: var(--spacing-64);\n width: 100%;\n /* slow, not 350ms: a 50ms difference nobody chose, on a one-shot\n entrance that is not repeated. */\n animation: bd-fade-slide-right var(--transition-duration-slow) var(--transition-easing-ease) forwards;\n }\n\n .bd-features-tab-left {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n .bd-features-tab-content {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-8);\n }\n\n /* The body's wrapper while the default slot is empty; display above\n outranks the hidden attribute's own rule. */\n .bd-features-tab-content[hidden] {\n display: none;\n }\n\n .bd-features-tab-right {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n /* The panel owns its title's size and ink, never its level: heading-h3 in\n brand ink. In 3.x the page's bd-h chose both, and the two places that\n follow the design -- the Figma component's Code Connect snippet and the\n Ultimate Security page rebuilt from the reference -- both wrote\n visual-level=\"h3\" color=\"primary\" (this file's own stories wrote h4). A\n visual-level or color on the page's bd-h still wins. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n margin: 0;\n ${unsafeCSS(headingRole('heading-h3'))}\n ${unsafeCSS(ink('primary'))}\n }\n\n ::slotted([slot=\"media\"]) {\n width: 100%;\n max-width: 520px;\n height: auto;\n border-radius: var(--shape-radius-lg);\n display: block;\n }\n\n /* The entrance is skipped rather than shortened. Its first frame is\n opacity 0 and a 24px offset, so under reduced motion the container simply\n renders where it belongs, fully opaque: it declares no opacity of its own,\n and none is what the keyframes stop supplying. Content is present\n immediately rather than waiting to be revealed. */\n @media (prefers-reduced-motion: reduce) {\n .bd-features-tab-container {\n animation: none;\n }\n }\n\n @keyframes bd-fade-slide-right {\n from {\n opacity: 0;\n transform: translateX(24px);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n @media ${unsafeCSS(below('lg'))} {\n .bd-features-tab-container {\n flex-direction: column-reverse;\n gap: var(--spacing-32);\n }\n\n .bd-features-tab-container.bd-features-tab-reverse {\n flex-direction: column-reverse;\n }\n\n .bd-features-tab-left {\n align-items: center;\n text-align: center;\n }\n\n ::slotted([slot=\"media\"]) {\n max-width: 100%;\n }\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-features-tab-container {\n gap: var(--spacing-24);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,8qD"}
|
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
3
|
import "../button/button.js";
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../p/p.js";
|
|
6
6
|
import "../video-player/video-player.js";
|
|
7
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
8
|
+
/**
|
|
9
|
+
* Copy on one side, media on the other: a title, the body, the actions and a
|
|
10
|
+
* picture, a video or an embed.
|
|
11
|
+
*
|
|
12
|
+
* <bd-features-tab>
|
|
13
|
+
* <bd-h slot="title" as="h3">Keep your loved ones protected.</bd-h>
|
|
14
|
+
* <bd-p appearance="regular">As the Subscription Manager, you can…</bd-p>
|
|
15
|
+
* <bd-button slot="actions" href="#plans" appearance="accent">Stay worry free</bd-button>
|
|
16
|
+
* <img slot="media" src="/family.png" alt="…" width="520" height="390">
|
|
17
|
+
* </bd-features-tab>
|
|
18
|
+
*
|
|
19
|
+
* Everything is the page's. 3.x's CTA attributes (cta-label, cta-href,
|
|
20
|
+
* cta-kind, cta-size) drew a bd-button here; the page writes that button into
|
|
21
|
+
* `actions` now, with its own appearance and size. The title is drawn at
|
|
22
|
+
* heading-h3 in brand ink, as the design draws it (features-tab.css.ts); the
|
|
23
|
+
* level is the page's.
|
|
24
|
+
*/
|
|
7
25
|
declare class BdFeaturesTab extends LitElement {
|
|
8
26
|
static styles: import("lit").CSSResult[];
|
|
9
|
-
ctaLabel: string;
|
|
10
|
-
ctaHref: string;
|
|
11
|
-
ctaKind: string;
|
|
12
|
-
ctaSize: string;
|
|
13
27
|
reverse: boolean;
|
|
28
|
+
_slots: SlotController<"">;
|
|
14
29
|
render(): import("lit-html").TemplateResult<1>;
|
|
15
30
|
}
|
|
16
31
|
declare global {
|