@repobit/dex-system-design 3.1.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1075 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +16 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +10 -12
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +85 -0
- package/dist/src/components/select/select.js +36 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +35 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4110 -2766
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { PropertyValues } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
3
|
import { BdHero as MotionArtElement } from "../../vendor/motion-art/motion-art-element.js";
|
|
4
|
+
/** The generated element's palettes: the ground and ink it paints its own substrate in. */
|
|
5
|
+
declare const BACKGROUNDS: readonly ["solid", "brand", "night", "paper"];
|
|
6
|
+
type Background = typeof BACKGROUNDS[number];
|
|
4
7
|
/**
|
|
5
8
|
* The homepage's animated illustrations, one canvas each, square:
|
|
6
9
|
* brand-surface the B on a glass sphere of network (bd-hero, media slot)
|
|
@@ -13,22 +16,55 @@ import { BdHero as MotionArtElement } from "../../vendor/motion-art/motion-art-e
|
|
|
13
16
|
* this module imports it as MotionArtElement and registers it under the
|
|
14
17
|
* package's own name, because bd-hero is the homepage band.
|
|
15
18
|
*
|
|
16
|
-
*
|
|
19
|
+
* Five things differ from the generated element:
|
|
17
20
|
* - no substrate: it draws on a transparent canvas, so the ground is the
|
|
18
21
|
* component's own --color-surface-brand and a partner brand shows through;
|
|
19
22
|
* - the brand tones' ground colour is that token too, where the generated
|
|
20
23
|
* element paints its own blue -- see willUpdate();
|
|
21
|
-
* - the pill and badge type is the foundation's sans, read from the token
|
|
24
|
+
* - the pill and badge type is the foundation's sans, read from the token;
|
|
25
|
+
* - its palette is `background` (N5: a ground is a `background` enum), which
|
|
26
|
+
* this element hands to the generated element's `tone`. `tone` is internal
|
|
27
|
+
* here, so a `tone` written on the element is not observed. Unset, the
|
|
28
|
+
* generated element picks one on a light page, and on a dark page -- a
|
|
29
|
+
* dark color-scheme where the art sits -- the art takes `night`;
|
|
30
|
+
* - geo-core's ring text is the element's own text, not a `label` attribute
|
|
31
|
+
* (ADR 0003), which this element hands to the generated element's `label`.
|
|
32
|
+
*
|
|
33
|
+
* The pills' and badges' `labels` and `badges` stay attributes: the
|
|
34
|
+
* generated element splits them on `|` and pins each to the shape it
|
|
35
|
+
* animates, as bd-stat-highlight's rolled value is one.
|
|
22
36
|
*
|
|
23
37
|
* It draws only while on screen, holds a still frame under
|
|
24
38
|
* prefers-reduced-motion, and stops on `paused`. It draws no control of its
|
|
25
39
|
* own, and the hero and the brand bento card that hold it add none.
|
|
26
40
|
*/
|
|
27
41
|
export declare class MotionArt extends MotionArtElement {
|
|
42
|
+
/**
|
|
43
|
+
* The palette the illustration paints its own substrate in: solid, brand,
|
|
44
|
+
* night or paper. Unset, the generated element picks one -- solid for
|
|
45
|
+
* brand-surface, brand for the others. In this package the substrate is
|
|
46
|
+
* off, so it shows where the art paints with its ground: the caption and
|
|
47
|
+
* badge type, and the faces the canvas hides.
|
|
48
|
+
*/
|
|
49
|
+
background: Background | "";
|
|
50
|
+
tone: string;
|
|
51
|
+
label: string;
|
|
28
52
|
_generatedGround: string | undefined;
|
|
29
53
|
_sized?: Promise<void>;
|
|
30
54
|
_resolveSized?: () => void;
|
|
55
|
+
_probe?: HTMLSpanElement;
|
|
31
56
|
constructor();
|
|
57
|
+
/**
|
|
58
|
+
* A colour token as the art sees it, resolved: the computed colour of a
|
|
59
|
+
* probe in its own shadow root, which inherits the scheme and the brand
|
|
60
|
+
* where the art sits. A canvas takes no var(), and a role paired for dark
|
|
61
|
+
* reads as light-dark(...) text, which a canvas cannot take either.
|
|
62
|
+
*/
|
|
63
|
+
_resolve(token: string): string;
|
|
64
|
+
/** Whether the art sits in a dark scheme: its page's ground, resolved here, darker than its ink. */
|
|
65
|
+
_isDark(): boolean;
|
|
66
|
+
/** The element's own words, as one line, for the ring; none leaves it unset. */
|
|
67
|
+
_readLabel(): void;
|
|
32
68
|
connectedCallback(): void;
|
|
33
69
|
disconnectedCallback(): void;
|
|
34
70
|
willUpdate(changed: PropertyValues<this>): void;
|
|
@@ -40,3 +76,4 @@ declare global {
|
|
|
40
76
|
"bd-motion-art": MotionArt;
|
|
41
77
|
}
|
|
42
78
|
}
|
|
79
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
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{BdHero as
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as t}from"../shared/prop-vocabulary.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{ObserverController as r}from"../shared/controller.observer.js";import{MediaQueryController as i}from"../shared/controller.media-query.js";import{property as a,state as o}from"lit/decorators.js";import{BdHero as s}from"../../vendor/motion-art/motion-art-element.js";var c=`var(--color-surface-brand)`,l=`night`,u=[`data-theme`,`data-brand`],d=e=>{let[t=0,n=0,r=0]=e.match(/[\d.]+/g)?.map(Number)??[];return .2126*t+.7152*n+.0722*r},f=[`solid`,`brand`,`night`,`paper`],p=/* @__PURE__ */ new WeakMap;function m(e,t){let n=p.get(e);return n||p.set(e,n=/* @__PURE__ */ new Map),n.has(t)||n.set(t,{...e,substrate:t}),n.get(t)}var h=class extends s{constructor(){super(),this.background=``,this.substrate=!1,this._generatedGround=this.palette.substrate,new r(this,()=>new MutationObserver(()=>this._readLabel()),e=>e.observe(this,{childList:!0,characterData:!0,subtree:!0})),new r(this,()=>new MutationObserver(()=>this.requestUpdate()),e=>e.observe(document.documentElement,{attributes:!0,attributeFilter:u,subtree:!0})),new i(this,`(prefers-color-scheme: dark)`,()=>this.requestUpdate())}_resolve(e){let t=this.renderRoot;if(!t)return``;let n=this._probe;return n||(n=this._probe=document.createElement(`span`),n.setAttribute(`aria-hidden`,`true`),n.style.display=`none`),n.parentNode!==t&&t.prepend(n),n.style.color=`var(${e})`,getComputedStyle(n).color}_isDark(){let e=this._resolve(`--color-surface-default`),t=this._resolve(`--color-text-primary`);return!!e&&!!t&&d(e)<d(t)}_readLabel(){let e=(this.textContent??``).replace(/\s+/g,` `).trim();e!==(this.label??``)&&(this.label=e)}connectedCallback(){if(super.connectedCallback(),this._readLabel(),!this.labelFont){let e=getComputedStyle(this).getPropertyValue(`--typography-fontFamily-sans`).trim();e&&(this.labelFont=e)}this._sized=new Promise(e=>{this._resolveSized=e;let t=new ResizeObserver(()=>{t.disconnect(),e()});t.observe(this)})}disconnectedCallback(){this._resolveSized?.(),super.disconnectedCallback()}willUpdate(e){this.hasUpdated||this._readLabel(),e.has(`background`)&&this.background&&!t(f,this.background)&&(this.background=``),this.tone=this.background||(this._isDark()?l:void 0),super.willUpdate(e),this.palette?.substrate===this._generatedGround&&(this.palette=m(this.palette,c))}runClock(){let e=this.palette;if(e?.substrate===c){let t=this._resolve(`--color-surface-brand`);this.palette=m(e,t||this._generatedGround)}try{super.runClock()}finally{this.palette=e}}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this._sized,await super.getUpdateComplete()&&e}};n([a({type:String,attribute:`background`})],h.prototype,`background`,void 0),n([o()],h.prototype,`tone`,void 0),n([o()],h.prototype,`label`,void 0),h=n([e(`bd-motion-art`)],h);export{h as MotionArt};
|
|
2
2
|
//# sourceMappingURL=motion-art.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion-art.js","names":["MotionArtElement","_decorate","__decorate","BRAND_GROUND","grounded","onGround","byGround","palette","ground","MotionArt","BdHero","sans","resolve","first","changed","defineElement"],"sources":["../../../../src/components/motion-art/motion-art.ts"],"sourcesContent":["import type { PropertyValues } 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\";\nimport { BdHero as MotionArtElement, type MotionArtPalette } from \"#vendor/motion-art/motion-art-element.js\";\n\nconst BRAND_GROUND = \"var(--color-surface-brand)\";\n\n/* Each palette made once per ground and then reused: the generated element\n restarts its clock whenever its palette is a different object. */\nconst grounded = new WeakMap<MotionArtPalette, Map<string | undefined, MotionArtPalette>>();\nfunction onGround(palette: MotionArtPalette, ground: string | undefined) {\n let byGround = grounded.get(palette);\n if (!byGround) grounded.set(palette, byGround = new Map());\n if (!byGround.has(ground)) byGround.set(ground, { ...palette, substrate: ground });\n return byGround.get(ground)!;\n}\n\n/**\n * The homepage's animated illustrations, one canvas each, square:\n * brand-surface the B on a glass sphere of network (bd-hero, media slot)\n * mesh-globe a turning globe with three badges (consumer AI card)\n * layer-stack four platform layers with captions (enterprise AI card)\n * geo-core a geodesic cage round a core (Labs AI card)\n *\n * The element is generated outside this package and vendored as is; see\n * src/vendor/motion-art/README.md. The generated class is still called BdHero;\n * this module imports it as MotionArtElement and registers it under the\n * package's own name, because bd-hero is the homepage band.\n *\n * Three things differ from the generated element:\n * - no substrate: it draws on a transparent canvas, so the ground is the\n * component's own --color-surface-brand and a partner brand shows through;\n * - the brand tones' ground colour is that token too, where the generated\n * element paints its own blue -- see willUpdate();\n * - the pill and badge type is the foundation's sans, read from the token.\n *\n * It draws only while on screen, holds a still frame under\n * prefers-reduced-motion, and stops on `paused`. It draws no control of its\n * own, and the hero and the brand bento card that hold it add none.\n */\n@defineElement(\"bd-motion-art\")\nexport class MotionArt extends MotionArtElement {\n _generatedGround: string | undefined;\n _sized? : Promise<void>;\n _resolveSized? : () => void;\n\n constructor() {\n super();\n this.substrate = false;\n // The generated element starts on its brand tone, so this is the blue it is drawn on.\n this._generatedGround = this.palette.substrate;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.labelFont) {\n const sans = getComputedStyle(this).getPropertyValue(\"--typography-fontFamily-sans\")\n .trim();\n if (sans) this.labelFont = sans;\n }\n /* The art takes its size from its first ResizeObserver delivery, and until\n then has no tile and draws nothing. That delivery comes a frame after\n connect, after the generated element's own observer, which it follows\n because observers deliver in the order they were created. */\n this._sized = new Promise<void>(resolve => {\n this._resolveSized = resolve;\n const first = new ResizeObserver(() => { first.disconnect(); resolve(); });\n first.observe(this);\n });\n }\n\n disconnectedCallback() {\n // Removed before its first delivery: nothing is coming, so nobody waits.\n this._resolveSized?.();\n super.disconnectedCallback();\n }\n\n /* The brand and solid tones were drawn on that blue and paint with it\n wherever the ground should show through: the caption and badge type,\n knocked out of a white pill, and the faces the canvas hides behind\n others. Here the ground is --color-surface-brand, so they take that,\n through the custom property itself so the type follows the brand. */\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (this.palette?.substrate === this._generatedGround) this.palette = onGround(this.palette, BRAND_GROUND);\n }\n\n /* A canvas takes no var(): the clock gets the colour the property resolves\n to when it starts, and keeps it until the next update starts another. */\n runClock() {\n const palette = this.palette;\n if (palette?.substrate === BRAND_GROUND) {\n const ground = getComputedStyle(this).getPropertyValue(\"--color-surface-brand\")\n .trim();\n this.palette = onGround(palette, ground || this._generatedGround);\n }\n try {\n super.runClock();\n } finally {\n this.palette = palette;\n }\n }\n\n /* updateComplete covers the sizing, so `await el.updateComplete` means the\n art is drawn at its size -- the delivery sets the tile, which is one more\n update. */\n async getUpdateComplete() {\n const first = await super.getUpdateComplete();\n await this._sized;\n return (await super.getUpdateComplete()) && first;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-motion-art\": MotionArt;\n }\n}\n"],"mappings":"A,4OAMA,IAAMG,EAAe,6BAIfC,kBAAW,IAAI,QACrB,SAASC,EAAS,EAA2B,EAA4B,CACvE,IAAIC,EAAWF,EAAS,IAAIG,CAAO,EAGnC,OAFKD,GAAUF,EAAS,IAAIG,EAAS,kBAAW,IAAI,GAAK,EACpDD,EAAS,IAAIE,CAAM,GAAGF,EAAS,IAAIE,EAAQ,CAAE,GAAGD,EAAS,UAAWC,CAAO,CAAC,EAC1EF,EAAS,IAAIE,CAAM,CAC5B,CA0BO,IAAMC,EAAN,cAAwBT,CAAiB,CAK9C,aAAc,CACZ,MAAM,EACN,KAAK,UAAY,GAEjB,KAAK,iBAAmB,KAAK,QAAQ,SACvC,CAEA,mBAAoB,CAElB,GADA,MAAM,kBAAkB,EACpB,CAAC,KAAK,UAAW,CACnB,IAAMW,EAAO,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,8BAA8B,CAAC,CACjF,KAAK,EACJA,IAAM,KAAK,UAAYA,EAC7B,CAKA,KAAK,OAAS,IAAI,QAAc,GAAW,CACzC,KAAK,cAAgBC,EACrB,IAAMC,EAAQ,IAAI,mBAAqB,CAAEA,EAAM,WAAW,EAAGD,EAAQ,CAAG,CAAC,EACzEC,EAAM,QAAQ,IAAI,CACpB,CAAC,CACH,CAEA,sBAAuB,CAErB,KAAK,gBAAgB,EACrB,MAAM,qBAAqB,CAC7B,CAOA,WAAW,EAA+B,CACxC,MAAM,WAAWC,CAAO,EACpB,KAAK,SAAS,YAAc,KAAK,mBAAkB,KAAK,QAAUT,EAAS,KAAK,QAASF,CAAY,EAC3G,CAIA,UAAW,CACT,IAAMI,EAAU,KAAK,QACrB,GAAIA,GAAS,YAAcJ,EAAc,CACvC,IAAMK,EAAS,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,CAC5E,KAAK,EACR,KAAK,QAAUH,EAASE,EAASC,GAAU,KAAK,gBAAgB,CAClE,CACA,GAAI,CACF,MAAM,SAAS,CACjB,QAAU,CACR,KAAK,QAAUD,CACjB,CACF,CAKA,MAAM,mBAAoB,CACxB,IAAMM,EAAQ,MAAM,MAAM,kBAAkB,EAE5C,OADA,MAAM,KAAK,OACH,MAAM,MAAM,kBAAkB,GAAMA,CAC9C,CACF,EAvEC,EAAAZ,EAAA,CAAAc,EAAc,eAAe,CAAA,EAAAN,CAAA,E"}
|
|
1
|
+
{"version":3,"file":"motion-art.js","names":["MotionArtElement","_decorate","__decorate","BRAND_GROUND","DARK_TONE","SCHEME_ATTRIBUTES","lightness","r","g","b","colour","BACKGROUNDS","grounded","onGround","byGround","palette","ground","MotionArt","BdHero","ObserverController","observer","MediaQueryController","root","probe","token","ink","text","sans","resolve","first","changed","isOneOf","property","state","defineElement"],"sources":["../../../../src/components/motion-art/motion-art.ts"],"sourcesContent":["import type { PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\nimport { MediaQueryController } from \"#shared/controller.media-query.ts\";\nimport { ObserverController } from \"#shared/controller.observer.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport { BdHero as MotionArtElement, type MotionArtPalette } from \"#vendor/motion-art/motion-art-element.js\";\n\nconst BRAND_GROUND = \"var(--color-surface-brand)\";\n\n/* The palette the art takes on a dark page when the page names none. */\nconst DARK_TONE = \"night\";\n\n/* What a page writes to change the scheme or the brand an element is drawn\n in: data-theme and data-brand, on <html> or any wrapper. */\nconst SCHEME_ATTRIBUTES = [\"data-theme\", \"data-brand\"];\n\n/** A computed rgb() colour's luminance, enough to tell a dark ground from a light ink. */\nconst lightness = (colour: string) => {\n const [r = 0, g = 0, b = 0] = colour.match(/[\\d.]+/g)?.map(Number) ?? [];\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\n/** The generated element's palettes: the ground and ink it paints its own substrate in. */\nconst BACKGROUNDS = [\"solid\", \"brand\", \"night\", \"paper\"] as const;\ntype Background = typeof BACKGROUNDS[number];\n\n/* Each palette made once per ground and then reused: the generated element\n restarts its clock whenever its palette is a different object. */\nconst grounded = new WeakMap<MotionArtPalette, Map<string | undefined, MotionArtPalette>>();\nfunction onGround(palette: MotionArtPalette, ground: string | undefined) {\n let byGround = grounded.get(palette);\n if (!byGround) grounded.set(palette, byGround = new Map());\n if (!byGround.has(ground)) byGround.set(ground, { ...palette, substrate: ground });\n return byGround.get(ground)!;\n}\n\n/**\n * The homepage's animated illustrations, one canvas each, square:\n * brand-surface the B on a glass sphere of network (bd-hero, media slot)\n * mesh-globe a turning globe with three badges (consumer AI card)\n * layer-stack four platform layers with captions (enterprise AI card)\n * geo-core a geodesic cage round a core (Labs AI card)\n *\n * The element is generated outside this package and vendored as is; see\n * src/vendor/motion-art/README.md. The generated class is still called BdHero;\n * this module imports it as MotionArtElement and registers it under the\n * package's own name, because bd-hero is the homepage band.\n *\n * Five things differ from the generated element:\n * - no substrate: it draws on a transparent canvas, so the ground is the\n * component's own --color-surface-brand and a partner brand shows through;\n * - the brand tones' ground colour is that token too, where the generated\n * element paints its own blue -- see willUpdate();\n * - the pill and badge type is the foundation's sans, read from the token;\n * - its palette is `background` (N5: a ground is a `background` enum), which\n * this element hands to the generated element's `tone`. `tone` is internal\n * here, so a `tone` written on the element is not observed. Unset, the\n * generated element picks one on a light page, and on a dark page -- a\n * dark color-scheme where the art sits -- the art takes `night`;\n * - geo-core's ring text is the element's own text, not a `label` attribute\n * (ADR 0003), which this element hands to the generated element's `label`.\n *\n * The pills' and badges' `labels` and `badges` stay attributes: the\n * generated element splits them on `|` and pins each to the shape it\n * animates, as bd-stat-highlight's rolled value is one.\n *\n * It draws only while on screen, holds a still frame under\n * prefers-reduced-motion, and stops on `paused`. It draws no control of its\n * own, and the hero and the brand bento card that hold it add none.\n */\n@defineElement(\"bd-motion-art\")\nexport class MotionArt extends MotionArtElement {\n /**\n * The palette the illustration paints its own substrate in: solid, brand,\n * night or paper. Unset, the generated element picks one -- solid for\n * brand-surface, brand for the others. In this package the substrate is\n * off, so it shows where the art paints with its ground: the caption and\n * badge type, and the faces the canvas hides.\n */\n @property({ type: String, attribute: \"background\" })\n background: Background | \"\" = \"\";\n\n /* The generated element's `tone`, which `background` sets. Redeclared as\n state, which has no attribute, so the page writes `background` and a\n `tone` attribute is not observed; the generated code still reads\n this.tone. */\n @state()\n tone!: string;\n\n /* geo-core's ring text. The page writes it as the element's own text, as it\n writes every other word (ADR 0003): <bd-motion-art object=\"geo-core\">LABS\n </bd-motion-art>. The shadow root has no slot, so the words render only\n where the canvas draws them. The generated element reads this.label,\n redeclared as state, so a `label` attribute is not observed. */\n @state()\n label!: string;\n\n _generatedGround: string | undefined;\n _sized? : Promise<void>;\n _resolveSized? : () => void;\n /* The element the colours are read off; see _resolve(). */\n _probe? : HTMLSpanElement;\n\n constructor() {\n super();\n this.substrate = false;\n // The generated element starts on its brand tone, so this is the blue it is drawn on.\n this._generatedGround = this.palette.substrate;\n // The ring text follows the page's edits to the element's own text.\n new ObserverController(this,\n () => new MutationObserver(() => this._readLabel()),\n observer => observer.observe(this, { childList: true, characterData: true, subtree: true }));\n /* The scheme and the brand can change after the art is drawn: a page\n writes data-theme or data-brand on <html> or a wrapper, or, under\n data-theme=\"auto\", the reader's OS turns dark. Either is an update,\n which reads the colours again (willUpdate, runClock): a new scheme\n picks the palette, a new brand ground restarts the clock on it. A\n scheme a page switches by its own CSS rather than data-theme, or a\n data-theme inside another component's shadow root, is read at the\n art's next update. */\n new ObserverController(this,\n () => new MutationObserver(() => this.requestUpdate()),\n observer => observer.observe(document.documentElement, { attributes: true, attributeFilter: SCHEME_ATTRIBUTES, subtree: true }));\n new MediaQueryController(this, \"(prefers-color-scheme: dark)\", () => this.requestUpdate());\n }\n\n /**\n * A colour token as the art sees it, resolved: the computed colour of a\n * probe in its own shadow root, which inherits the scheme and the brand\n * where the art sits. A canvas takes no var(), and a role paired for dark\n * reads as light-dark(...) text, which a canvas cannot take either.\n */\n _resolve(token: string) {\n const root = this.renderRoot;\n if (!root) return \"\";\n let probe = this._probe;\n if (!probe) {\n probe = this._probe = document.createElement(\"span\");\n probe.setAttribute(\"aria-hidden\", \"true\");\n probe.style.display = \"none\";\n }\n // before what Lit renders, which owns the root from its marker to the end\n if (probe.parentNode !== root) root.prepend(probe);\n probe.style.color = `var(${token})`;\n return getComputedStyle(probe).color;\n }\n\n /** Whether the art sits in a dark scheme: its page's ground, resolved here, darker than its ink. */\n _isDark() {\n const ground = this._resolve(\"--color-surface-default\"), ink = this._resolve(\"--color-text-primary\");\n return !!ground && !!ink && lightness(ground) < lightness(ink);\n }\n\n /** The element's own words, as one line, for the ring; none leaves it unset. */\n _readLabel() {\n const text = (this.textContent ?? \"\").replace(/\\s+/g, \" \").trim();\n if (text !== (this.label ?? \"\")) this.label = text;\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._readLabel();\n if (!this.labelFont) {\n const sans = getComputedStyle(this).getPropertyValue(\"--typography-fontFamily-sans\")\n .trim();\n if (sans) this.labelFont = sans;\n }\n /* The art takes its size from its first ResizeObserver delivery, and until\n then has no tile and draws nothing. That delivery comes a frame after\n connect, after the generated element's own observer, which it follows\n because observers deliver in the order they were created. */\n this._sized = new Promise<void>(resolve => {\n this._resolveSized = resolve;\n const first = new ResizeObserver(() => { first.disconnect(); resolve(); });\n first.observe(this);\n });\n }\n\n disconnectedCallback() {\n // Removed before its first delivery: nothing is coming, so nobody waits.\n this._resolveSized?.();\n super.disconnectedCallback();\n }\n\n /* The brand and solid tones were drawn on that blue and paint with it\n wherever the ground should show through: the caption and badge type,\n knocked out of a white pill, and the faces the canvas hides behind\n others. Here the ground is --color-surface-brand, so they take that,\n through the custom property itself so the type follows the brand. */\n willUpdate(changed: PropertyValues<this>) {\n /* The observer watches from the first render, so words the page wrote\n between connect and then -- appended, then given its text -- are read\n here, into the first render. */\n if (!this.hasUpdated) this._readLabel();\n /* Before the generated element's willUpdate, which picks the palette from\n tone. Unset is undefined there, not \"\", which it reads as \"pick one\" --\n on a light page; on a dark one, unset is night. */\n if (changed.has(\"background\") && this.background && !isOneOf(BACKGROUNDS, this.background)) this.background = \"\";\n (this as { tone?: string }).tone = this.background || (this._isDark() ? DARK_TONE : undefined);\n super.willUpdate(changed);\n if (this.palette?.substrate === this._generatedGround) this.palette = onGround(this.palette, BRAND_GROUND);\n }\n\n /* A canvas takes no var(): the clock gets the colour the role resolves to\n when it starts -- resolved, not the token's text -- and keeps it until\n the next update starts another. */\n runClock() {\n const palette = this.palette;\n if (palette?.substrate === BRAND_GROUND) {\n const ground = this._resolve(\"--color-surface-brand\");\n this.palette = onGround(palette, ground || this._generatedGround);\n }\n try {\n super.runClock();\n } finally {\n this.palette = palette;\n }\n }\n\n /* updateComplete covers the sizing, so `await el.updateComplete` means the\n art is drawn at its size -- the delivery sets the tile, which is one more\n update. */\n async getUpdateComplete() {\n const first = await super.getUpdateComplete();\n await this._sized;\n return (await super.getUpdateComplete()) && first;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-motion-art\": MotionArt;\n }\n}\n"],"mappings":"A,4eAUA,IAAMG,EAAe,6BAGfC,EAAY,QAIZC,EAAoB,CAAC,aAAc,YAAY,EAG/CC,EAAa,GAAmB,CACpC,GAAM,CAACC,EAAI,EAAGC,EAAI,EAAGC,EAAI,GAAKC,EAAO,MAAM,SAAS,CAAC,EAAE,IAAI,MAAM,GAAK,CAAC,EACvE,MAAO,OAASH,EAAI,MAASC,EAAI,MAASC,CAC5C,EAGME,EAAc,CAAC,QAAS,QAAS,QAAS,OAAO,EAKjDC,kBAAW,IAAI,QACrB,SAASC,EAAS,EAA2B,EAA4B,CACvE,IAAIC,EAAWF,EAAS,IAAIG,CAAO,EAGnC,OAFKD,GAAUF,EAAS,IAAIG,EAAS,kBAAW,IAAI,GAAK,EACpDD,EAAS,IAAIE,CAAM,GAAGF,EAAS,IAAIE,EAAQ,CAAE,GAAGD,EAAS,UAAWC,CAAO,CAAC,EAC1EF,EAAS,IAAIE,CAAM,CAC5B,CAqCO,IAAMC,EAAN,cAAwBjB,CAAiB,CAgC9C,aAAc,CACZ,MAAM,EAxBsB,KAAA,WAAA,GAyB5B,KAAK,UAAY,GAEjB,KAAK,iBAAmB,KAAK,QAAQ,UAErC,IAAImB,EAAmB,SACf,IAAI,qBAAuB,KAAK,WAAW,CAAC,EAClD,GAAYC,EAAS,QAAQ,KAAM,CAAE,UAAW,GAAM,cAAe,GAAM,QAAS,EAAK,CAAC,CAAC,EAS7F,IAAID,EAAmB,SACf,IAAI,qBAAuB,KAAK,cAAc,CAAC,EACrD,GAAYC,EAAS,QAAQ,SAAS,gBAAiB,CAAE,WAAY,GAAM,gBAAiBf,EAAmB,QAAS,EAAK,CAAC,CAAC,EACjI,IAAIgB,EAAqB,KAAM,mCAAsC,KAAK,cAAc,CAAC,CAC3F,CAQA,SAAS,EAAe,CACtB,IAAMC,EAAO,KAAK,WAClB,GAAI,CAACA,EAAM,MAAO,GAClB,IAAIC,EAAQ,KAAK,OASjB,OARKA,IACH,EAAQ,KAAK,OAAS,SAAS,cAAc,MAAM,EACnDA,EAAM,aAAa,cAAe,MAAM,EACxC,EAAM,MAAM,QAAU,QAGpBA,EAAM,aAAeD,GAAMA,EAAK,QAAQC,CAAK,EACjD,EAAM,MAAM,MAAQ,OAAOC,EAAM,GAC1B,iBAAiBD,CAAK,CAAC,CAAC,KACjC,CAGA,SAAU,CACR,IAAMP,EAAS,KAAK,SAAS,yBAAyB,EAAGS,EAAM,KAAK,SAAS,sBAAsB,EACnG,MAAO,CAAC,CAACT,GAAU,CAAC,CAACS,GAAOnB,EAAUU,CAAM,EAAIV,EAAUmB,CAAG,CAC/D,CAGA,YAAa,CACX,IAAMC,GAAQ,KAAK,aAAe,GAAA,CAAI,QAAQ,OAAQ,GAAG,CAAC,CAAC,KAAK,EAC5DA,KAAU,KAAK,OAAS,MAAK,KAAK,MAAQA,EAChD,CAEA,mBAAoB,CAGlB,GAFA,MAAM,kBAAkB,EACxB,KAAK,WAAW,EACZ,CAAC,KAAK,UAAW,CACnB,IAAMC,EAAO,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,8BAA8B,CAAC,CACjF,KAAK,EACJA,IAAM,KAAK,UAAYA,EAC7B,CAKA,KAAK,OAAS,IAAI,QAAc,GAAW,CACzC,KAAK,cAAgBC,EACrB,IAAMC,EAAQ,IAAI,mBAAqB,CAAEA,EAAM,WAAW,EAAGD,EAAQ,CAAG,CAAC,EACzEC,EAAM,QAAQ,IAAI,CACpB,CAAC,CACH,CAEA,sBAAuB,CAErB,KAAK,gBAAgB,EACrB,MAAM,qBAAqB,CAC7B,CAOA,WAAW,EAA+B,CAInC,KAAK,YAAY,KAAK,WAAW,EAIlCC,EAAQ,IAAI,YAAY,GAAK,KAAK,YAAc,CAACC,EAAQpB,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,IAC9G,KAA4B,KAAO,KAAK,aAAe,KAAK,QAAQ,EAAIP,EAAY,IAAA,IACpF,MAAM,WAAW0B,CAAO,EACpB,KAAK,SAAS,YAAc,KAAK,mBAAkB,KAAK,QAAUjB,EAAS,KAAK,QAASV,CAAY,EAC3G,CAKA,UAAW,CACT,IAAMY,EAAU,KAAK,QACrB,GAAIA,GAAS,YAAcZ,EAAc,CACvC,IAAMa,EAAS,KAAK,SAAS,uBAAuB,EACpD,KAAK,QAAUH,EAASE,EAASC,GAAU,KAAK,gBAAgB,CAClE,CACA,GAAI,CACF,MAAM,SAAS,CACjB,QAAU,CACR,KAAK,QAAUD,CACjB,CACF,CAKA,MAAM,mBAAoB,CACxB,IAAMc,EAAQ,MAAM,MAAM,kBAAkB,EAE5C,OADA,MAAM,KAAK,OACH,MAAM,MAAM,kBAAkB,GAAMA,CAC9C,CACF,EApJG5B,EAAA,CAAA+B,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAf,EAAA,UAAA,aAAA,IAAA,EAAA,EAOlDhB,EAAA,CAAAgC,EAAM,CAAA,EAAAhB,EAAA,UAAA,OAAA,IAAA,EAAA,EAQNhB,EAAA,CAAAgC,EAAM,CAAA,EAAAhB,EAAA,UAAA,QAAA,IAAA,EAAA,EAxBR,EAAAhB,EAAA,CAAAiC,EAAc,eAAe,CAAA,EAAAjB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.newsletter [hidden]{display:none}.newsletter{box-sizing:border-box;text-align:center;height:100%;padding:var(--card-padding);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);background:var(--color-surface-container);justify-content:center;align-items:center;gap:var(--spacing-24);flex-direction:column;display:flex}.icon{color:var(--color-text-brand);display:flex}.title{max-width:28rem;color:var(--color-text-primary)}::slotted(bd-h[slot=title]){--bd-heading-font-family:var(--typography-fontFamily-sans);--bd-heading-font-size:var(--typography-fontSize-xl);--bd-heading-font-weight:var(--typography-fontWeight-normal);--bd-heading-line-height:var(--typography-heading-h5-lineHeight);--bd-heading-letter-spacing:var(--typography-letterSpacing-normal);--bd-heading-color:var(--color-text-primary)}.description{max-width:28rem;font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);color:var(--color-text-muted);margin:0}.action{width:100%;max-width:32rem}.form{gap:var(--spacing-12);flex-direction:column;display:flex}@container (width>=576px){.form{flex-direction:row;align-items:stretch}}.input{box-sizing:border-box;min-width:0;min-height:var(--dimension-44);border:var(--border-width-1) solid var(--color-border-subtle);border-radius:var(--shape-radius-md);background:var(--color-surface-container);font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);color:var(--color-text-primary);flex:1;padding-inline-start:var(--spacing-16)}.input::placeholder{color:var(--color-text-muted)}.input:focus-visible{border-color:var(--color-border-brand);box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset)}.input[aria-invalid=true]{border-color:var(--status-error-accent)}.button{height:var(--dimension-44);padding:var(--spacing-12) var(--spacing-20);border:var(--border-width-1) solid var(--color-action-primary);border-radius:var(--shape-radius-md);background:var(--color-action-primary);font-family:var(--typography-control-label-large-fontFamily);font-size:var(--typography-control-label-large-fontSize);font-weight:var(--typography-control-label-large-fontWeight);line-height:var(--typography-control-label-large-lineHeight);color:var(--color-brand-on-fill);cursor:pointer;transition:background-color var(--transition-duration-normal) var(--transition-easing-smooth);flex-shrink:0}.button:not([aria-disabled=true]):hover{background:var(--color-action-primary-hover);border-color:var(--color-action-primary-hover)}.button:not([aria-disabled=true]):active{background:var(--color-action-primary-active);border-color:var(--color-action-primary-active)}.button[aria-disabled=true]{opacity:.6;cursor:not-allowed}.button:focus-visible{outline:var(--focus-outline-traditional);outline-offset:var(--focus-outline-offset)}@media (prefers-reduced-motion:reduce){.button{transition:none}}.error,.failure{width:100%;max-width:32rem;font-family:var(--typography-caption-default-fontFamily);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-caption-default-fontWeight);line-height:var(--typography-caption-default-lineHeight);color:var(--color-text-error);text-align:start;margin:0}.success{font-family:var(--typography-label-default-fontFamily);font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-fontWeight-semibold);line-height:var(--typography-label-default-lineHeight);color:var(--color-text-primary);margin:0}.disclaimer{max-width:28rem;font-family:var(--typography-caption-default-fontFamily);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-caption-default-fontWeight);line-height:var(--typography-caption-default-lineHeight);color:var(--color-text-muted);margin:0}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=newsletter-signup.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newsletter-signup.css.js","names":["newsletter_signup_css_default"],"sources":["../../../../src/components/newsletter-signup/newsletter-signup.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* The signup card as the shipped blog draws it (www-blog-csg's\n blocks/csg/subscribe): the container ground and its edge, at the card's\n corner and inset; the brand's text ink on the envelope; the muted ink\n under the title and in the disclaimer. Figma's csg_blog does not draw it,\n so this is the look the v4 blog's bd-blog-newsletter-signup had, read from the\n package's roles where the blog read --blog-newsletter-*. */\nexport default css`\n /* The card lays its form out by its own width, so it is a size container;\n it takes its column's whole width (shared/fill-width.css.ts), which a\n container would not ask for itself. */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .newsletter [hidden] {\n display: none;\n }\n\n .newsletter {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n box-sizing: border-box;\n text-align: center;\n padding: var(--card-padding);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n background: var(--color-surface-container);\n gap: var(--spacing-24);\n }\n\n /* The envelope, a bd-icon drawn at the 2xl step (icons/envelope.ts). */\n .icon {\n display: flex;\n color: var(--color-text-brand);\n }\n\n .title {\n /* no token: 3.x's 28rem measure for the title, the description and the\n disclaimer, which no content-width token carries */\n max-width: 28rem;\n color: var(--color-text-primary);\n }\n\n /* 3.x's h2 -- 20 regular at heading-h5's leading, in the text face --\n at whatever level the page picks. The page's <em> keeps the italic the\n browser draws it in; bd-h sets no style on it. */\n ::slotted(bd-h[slot=\"title\"]) {\n --bd-heading-font-family: var(--typography-fontFamily-sans);\n --bd-heading-font-size: var(--typography-fontSize-xl); /* no role: 3.x's and REAL's 20 at every width; heading-h5 and body-lead step to 18 below lg */\n --bd-heading-font-weight: var(--typography-fontWeight-normal); /* no role: a regular title, where every heading role is medium or heavier */\n --bd-heading-line-height: var(--typography-heading-h5-lineHeight);\n --bd-heading-letter-spacing: var(--typography-letterSpacing-normal);\n --bd-heading-color: var(--color-text-primary);\n }\n\n .description {\n margin: 0;\n /* no token: the title's 28rem measure */\n max-width: 28rem;\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-muted);\n }\n\n /* The form's place: the form, or the success words in place of it. */\n .action {\n width: 100%;\n /* no token: 3.x's 32rem form, wider than the copy above it */\n max-width: 32rem;\n }\n\n .form {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-12);\n }\n\n /* The field and its button side by side once the card is sm wide. */\n @container ${unsafeCSS(above(\"sm\"))} {\n .form {\n flex-direction: row;\n align-items: stretch;\n }\n }\n\n /* As tall as its button: stacked, a field with no height of its own was a\n line of text tall (3.x's, 26px), under the 44 a touch target takes. */\n .input {\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n min-height: var(--dimension-44);\n border: var(--border-width-1) solid var(--color-border-subtle);\n border-radius: var(--shape-radius-md);\n background: var(--color-surface-container);\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n color: var(--color-text-primary);\n padding-inline-start: var(--spacing-16);\n }\n\n /* REAL's .subscribe-input: its placeholder in the muted ink. */\n .input::placeholder {\n color: var(--color-text-muted);\n }\n\n /* A field's focus ring, as the package's fields draw it\n (shared/form-field.css.ts): the brand edge and the two-band ring, with a\n transparent outline for forced colours. REAL's 15% brand glow was\n 1.23:1 on the light card and 1.14:1 on the dark one, under the 3:1 a\n focus indicator needs. */\n .input:focus-visible {\n border-color: var(--color-border-brand);\n box-shadow: var(--focus-outline-primary);\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n }\n\n /* 3.x wrote invalid onto its own host for this; the field's own state\n says it now, in REAL's error edge. */\n .input[aria-invalid=\"true\"] {\n border-color: var(--status-error-accent);\n }\n\n /* The brand's action fill in its states, with the brand's own ink on it. */\n .button {\n flex-shrink: 0;\n height: var(--dimension-44);\n padding: var(--spacing-12) var(--spacing-20);\n border: var(--border-width-1) solid var(--color-action-primary);\n border-radius: var(--shape-radius-md);\n background: var(--color-action-primary);\n font-family: var(--typography-control-label-large-fontFamily);\n font-size: var(--typography-control-label-large-fontSize);\n font-weight: var(--typography-control-label-large-fontWeight);\n line-height: var(--typography-control-label-large-lineHeight);\n color: var(--color-brand-on-fill);\n cursor: pointer;\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n .button:not([aria-disabled=\"true\"]):hover {\n background: var(--color-action-primary-hover);\n border-color: var(--color-action-primary-hover);\n }\n\n .button:not([aria-disabled=\"true\"]):active {\n background: var(--color-action-primary-active);\n border-color: var(--color-action-primary-active);\n }\n\n /* Busy while the page sends: still focusable, so the focus stays. */\n .button[aria-disabled=\"true\"] {\n /* no token: a busy button at 60%, as REAL's subscribe button draws it disabled */\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n .button:focus-visible {\n outline: var(--focus-outline-traditional);\n outline-offset: var(--focus-outline-offset);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .button {\n transition: none;\n }\n }\n\n /* REAL's .subscribe-error: the error ink, its derived dark value in dark. */\n .error,\n .failure {\n margin: 0;\n width: 100%;\n /* no token: the form's 32rem, so the words line up under the field */\n max-width: 32rem;\n font-family: var(--typography-caption-default-fontFamily);\n font-size: var(--typography-caption-default-fontSize);\n font-weight: var(--typography-caption-default-fontWeight);\n line-height: var(--typography-caption-default-lineHeight);\n color: var(--color-text-error);\n text-align: start;\n }\n\n /* REAL's success line: the card's ink, in semibold. */\n .success {\n margin: 0;\n font-family: var(--typography-label-default-fontFamily);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-fontWeight-semibold); /* no role: REAL's success line is semibold; label-default is the same 14 at 1.5, a step lighter */\n line-height: var(--typography-label-default-lineHeight);\n color: var(--color-text-primary);\n }\n\n .disclaimer {\n margin: 0;\n /* no token: the title's 28rem measure */\n max-width: 28rem;\n font-family: var(--typography-caption-default-fontFamily);\n font-size: var(--typography-caption-default-fontSize);\n font-weight: var(--typography-caption-default-fontWeight);\n line-height: var(--typography-caption-default-lineHeight);\n color: var(--color-text-muted);\n }\n`;\n"],"mappings":"A,gGAUA,IAAAA,EAAe,CAAG,2xI"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
import "../link/link.js";
|
|
6
|
+
import "../icons/envelope.js";
|
|
7
|
+
type Part = "title" | "description" | "cta" | "error" | "success" | "failure" | "footer";
|
|
8
|
+
/** Where the page's send stands: it sets each one after a bd-subscribe. */
|
|
9
|
+
export declare const NEWSLETTER_STATES: readonly ["sending", "success", "failed"];
|
|
10
|
+
export type NewsletterState = typeof NEWSLETTER_STATES[number];
|
|
11
|
+
/** What bd-subscribe carries: the address the reader gave, trimmed. */
|
|
12
|
+
export interface SubscribeDetail {
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Newsletter signup card: an envelope, a heading, a line of copy, the email
|
|
17
|
+
* field and its button, and the disclaimer under them.
|
|
18
|
+
*
|
|
19
|
+
* <bd-newsletter-signup placeholder="Your best email">
|
|
20
|
+
* <bd-h slot="title" as="h2">The one cybersecurity newsletter you <em>actually</em> need</bd-h>
|
|
21
|
+
* <span slot="description">Relevant tips, real-world scams explained, and actionable advice...all in one place!</span>
|
|
22
|
+
* <span slot="cta">Subscribe</span>
|
|
23
|
+
* <span slot="error">Please enter a valid email address.</span>
|
|
24
|
+
* <span slot="success">Thanks! Check your inbox to confirm your subscription.</span>
|
|
25
|
+
* <span slot="failure">Something went wrong. Please try again.</span>
|
|
26
|
+
* <span slot="footer">I confirm that I am the owner of the provided email address and I agree with
|
|
27
|
+
* <bd-link inline href="/privacy">Privacy Policy</bd-link>.</span>
|
|
28
|
+
* </bd-newsletter-signup>
|
|
29
|
+
*
|
|
30
|
+
* It was the blog's bd-blog-newsletter-signup until the blog's components
|
|
31
|
+
* became the package's own (DEX-29414); its markup, slots, event and states
|
|
32
|
+
* are that element's. Every word is the page's. 3.x's heading was three
|
|
33
|
+
* attributes around an emphasised word (heading-before, heading-emphasis,
|
|
34
|
+
* heading-after); it is one bd-h now, and the page marks the word with its
|
|
35
|
+
* own <em>, which keeps the italic the browser draws it in. The disclaimer
|
|
36
|
+
* and its privacy link (3.x's disclaimer-before, privacy-label,
|
|
37
|
+
* privacy-href, disclaimer-after) are the `footer`.
|
|
38
|
+
*
|
|
39
|
+
* THE FORM STAYS HERE. The field, the button and the form they submit are
|
|
40
|
+
* the card's own, as 3.x's were; only the button's words (`cta`) are the
|
|
41
|
+
* page's, slotted into it so they name it. `placeholder` is the field's
|
|
42
|
+
* placeholder and its accessible name, and has no default.
|
|
43
|
+
*
|
|
44
|
+
* THE PAGE SENDS. As REAL's subscribe block does, an invalid address shows
|
|
45
|
+
* the `error` slot under the form, as an alert, marks the field
|
|
46
|
+
* aria-invalid and describes it by those words; nothing of the error shows
|
|
47
|
+
* before that. A valid one sends `bd-subscribe`, bubbling and composed so
|
|
48
|
+
* it leaves any shadow root the card is in, with the trimmed address as
|
|
49
|
+
* `detail.email`. The card sends nothing over the network: the page does,
|
|
50
|
+
* and says how it went through `state`, which it sets in its listener and
|
|
51
|
+
* afterwards:
|
|
52
|
+
*
|
|
53
|
+
* sending the form is busy (aria-busy), the button aria-disabled -- it
|
|
54
|
+
* keeps the focus a disabled button would drop -- and the field
|
|
55
|
+
* read-only; a second press sends nothing.
|
|
56
|
+
* success the `success` slot in place of the form, in a role="status"
|
|
57
|
+
* region rendered from the start, so its words are announced.
|
|
58
|
+
* failed the form as the reader left it, filled and enabled, with the
|
|
59
|
+
* `failure` slot under it as an alert that describes the
|
|
60
|
+
* field. A new press sends again.
|
|
61
|
+
*
|
|
62
|
+
* signup.addEventListener('bd-subscribe', async ({ detail }) => {
|
|
63
|
+
* signup.state = 'sending';
|
|
64
|
+
* try { await subscribe(detail); signup.state = 'success'; } catch { signup.state = 'failed'; }
|
|
65
|
+
* });
|
|
66
|
+
*
|
|
67
|
+
* A page that never sets `state` gets 3.x's ending: once bd-subscribe has
|
|
68
|
+
* been sent and nothing took it, the field is cleared and disabled, and a
|
|
69
|
+
* second press changes nothing. So a page takes the send by setting
|
|
70
|
+
* `sending` in its listener, before the card looks.
|
|
71
|
+
*
|
|
72
|
+
* The section is named by its title. Every part's box is hidden while its
|
|
73
|
+
* slot is empty, the button with its words, so a bare card draws no word of
|
|
74
|
+
* its own -- only the envelope.
|
|
75
|
+
*/
|
|
76
|
+
export declare class BdNewsletterSignup extends LitElement {
|
|
77
|
+
static styles: import("lit").CSSResult[];
|
|
78
|
+
/** The email field's placeholder, and its accessible name. */
|
|
79
|
+
placeholder: string;
|
|
80
|
+
/** sending | success | failed: where the page's send stands, set by the page after bd-subscribe. Reflected; unset until then. */
|
|
81
|
+
state?: NewsletterState;
|
|
82
|
+
_invalid: boolean;
|
|
83
|
+
_submitted: boolean;
|
|
84
|
+
_slots: SlotController<Part>;
|
|
85
|
+
willUpdate(changed: PropertyValues<this>): void;
|
|
86
|
+
_handleSubmit(event: SubmitEvent): void;
|
|
87
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
88
|
+
}
|
|
89
|
+
declare global {
|
|
90
|
+
interface HTMLElementTagNameMap {
|
|
91
|
+
"bd-newsletter-signup": BdNewsletterSignup;
|
|
92
|
+
}
|
|
93
|
+
interface HTMLElementEventMap {
|
|
94
|
+
"bd-subscribe": CustomEvent<SubscribeDetail>;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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"../h/h.js";import"../link/link.js";import"../icons/envelope.js";import i from"./newsletter-signup.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c,state as l}from"lit/decorators.js";var u=[`sending`,`success`,`failed`],d=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,f=class extends a{constructor(...e){super(...e),this.placeholder=``,this._invalid=!1,this._submitted=!1,this._slots=new r(this,{slots:[`title`,`description`,`cta`,`error`,`success`,`failure`,`footer`]})}static{this.styles=[i]}willUpdate(e){e.has(`state`)&&this.state!=null&&!t(u,this.state)&&(this.state=void 0),e.has(`state`)&&this.state&&(this._submitted=!1)}_handleSubmit(e){if(e.preventDefault(),this.state===`sending`||this.state===`success`||this._submitted)return;let t=e.target;if(!(t instanceof HTMLFormElement))return;let n=String(new FormData(t).get(`email`)??``).trim();d.test(n)?(this._invalid=!1,this.dispatchEvent(new CustomEvent(`bd-subscribe`,{detail:{email:n},bubbles:!0,composed:!0})),this.state||(this._submitted=!0,t.reset())):this._invalid=!0}render(){let e=e=>this._slots.has(e),t=this.state===`sending`,n=this.state===`success`,r=this._invalid&&e(`error`),i=this.state===`failed`&&!this._invalid&&e(`failure`),a=r?`error`:i?`failure`:s;return o`
|
|
2
|
+
<section class="newsletter" part="newsletter" aria-labelledby=${e(`title`)?`title`:s}>
|
|
3
|
+
<div class="icon" part="icon"><bd-icon name="envelope" size="2xl"></bd-icon></div>
|
|
4
|
+
|
|
5
|
+
<div class="title" id="title" part="title" ?hidden=${!e(`title`)}><slot name="title"></slot></div>
|
|
6
|
+
|
|
7
|
+
<p class="description" part="description" ?hidden=${!e(`description`)}><slot name="description"></slot></p>
|
|
8
|
+
|
|
9
|
+
<div class="action">
|
|
10
|
+
<form class="form" part="form" @submit=${this._handleSubmit} novalidate aria-busy=${t?`true`:s} ?hidden=${n}>
|
|
11
|
+
<input
|
|
12
|
+
class="input"
|
|
13
|
+
part="input"
|
|
14
|
+
type="email"
|
|
15
|
+
name="email"
|
|
16
|
+
autocomplete="email"
|
|
17
|
+
placeholder=${this.placeholder||s}
|
|
18
|
+
aria-label=${this.placeholder||s}
|
|
19
|
+
aria-invalid=${this._invalid?`true`:`false`}
|
|
20
|
+
aria-describedby=${a}
|
|
21
|
+
?readonly=${t}
|
|
22
|
+
?disabled=${this._submitted}
|
|
23
|
+
/>
|
|
24
|
+
<button class="button" part="button" type="submit" aria-disabled=${t?`true`:s} ?hidden=${!e(`cta`)}><slot name="cta"></slot></button>
|
|
25
|
+
</form>
|
|
26
|
+
<!-- rendered from the start, so its words arriving are a change a screen reader announces -->
|
|
27
|
+
<div class="status" role="status"><p class="success" id="success" part="success" ?hidden=${!n||!e(`success`)}><slot name="success"></slot></p></div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<p class="error" id="error" part="error" role="alert" ?hidden=${!r}><slot name="error"></slot></p>
|
|
31
|
+
|
|
32
|
+
<p class="failure" id="failure" part="failure" role="alert" ?hidden=${!i}><slot name="failure"></slot></p>
|
|
33
|
+
|
|
34
|
+
<p class="disclaimer" part="disclaimer" ?hidden=${!e(`footer`)}><slot name="footer"></slot></p>
|
|
35
|
+
</section>
|
|
36
|
+
`}};n([c({type:String})],f.prototype,`placeholder`,void 0),n([c({type:String,reflect:!0,attribute:`state`})],f.prototype,`state`,void 0),n([l()],f.prototype,`_invalid`,void 0),n([l()],f.prototype,`_submitted`,void 0),f=n([e(`bd-newsletter-signup`)],f);export{f as BdNewsletterSignup,u as NEWSLETTER_STATES};
|
|
37
|
+
//# sourceMappingURL=newsletter-signup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newsletter-signup.js","names":["newsletterSignupCSS","_decorate","__decorate","newsletter_signup_css_default","NEWSLETTER_STATES","EMAIL","BdNewsletterSignup","LitElement","_args","SlotController","changed","isOneOf","event","form","email","has","part","sending","success","error","failure","describedBy","nothing","property","state","defineElement"],"sources":["../../../../src/components/newsletter-signup/newsletter-signup.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { isOneOf } from \"#shared/prop-vocabulary.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\n/* The atoms the page writes into its slots: 3.x drew its heading and its\n privacy link itself, so a page importing only this module still gets\n them. The envelope is the card's own drawing. */\nimport \"#components/h/h.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/icons/envelope.ts\";\nimport newsletterSignupCSS from \"./newsletter-signup.css.ts\";\n\ntype Part = \"title\" | \"description\" | \"cta\" | \"error\" | \"success\" | \"failure\" | \"footer\";\n\n/** Where the page's send stands: it sets each one after a bd-subscribe. */\nexport const NEWSLETTER_STATES = [\"sending\", \"success\", \"failed\"] as const;\nexport type NewsletterState = typeof NEWSLETTER_STATES[number];\n\n/** What bd-subscribe carries: the address the reader gave, trimmed. */\nexport interface SubscribeDetail {\n email: string;\n}\n\n/* What 3.x took for an address, unchanged; REAL's subscribe block reads it the same way. */\nconst EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\n/**\n * Newsletter signup card: an envelope, a heading, a line of copy, the email\n * field and its button, and the disclaimer under them.\n *\n * <bd-newsletter-signup placeholder=\"Your best email\">\n * <bd-h slot=\"title\" as=\"h2\">The one cybersecurity newsletter you <em>actually</em> need</bd-h>\n * <span slot=\"description\">Relevant tips, real-world scams explained, and actionable advice...all in one place!</span>\n * <span slot=\"cta\">Subscribe</span>\n * <span slot=\"error\">Please enter a valid email address.</span>\n * <span slot=\"success\">Thanks! Check your inbox to confirm your subscription.</span>\n * <span slot=\"failure\">Something went wrong. Please try again.</span>\n * <span slot=\"footer\">I confirm that I am the owner of the provided email address and I agree with\n * <bd-link inline href=\"/privacy\">Privacy Policy</bd-link>.</span>\n * </bd-newsletter-signup>\n *\n * It was the blog's bd-blog-newsletter-signup until the blog's components\n * became the package's own (DEX-29414); its markup, slots, event and states\n * are that element's. Every word is the page's. 3.x's heading was three\n * attributes around an emphasised word (heading-before, heading-emphasis,\n * heading-after); it is one bd-h now, and the page marks the word with its\n * own <em>, which keeps the italic the browser draws it in. The disclaimer\n * and its privacy link (3.x's disclaimer-before, privacy-label,\n * privacy-href, disclaimer-after) are the `footer`.\n *\n * THE FORM STAYS HERE. The field, the button and the form they submit are\n * the card's own, as 3.x's were; only the button's words (`cta`) are the\n * page's, slotted into it so they name it. `placeholder` is the field's\n * placeholder and its accessible name, and has no default.\n *\n * THE PAGE SENDS. As REAL's subscribe block does, an invalid address shows\n * the `error` slot under the form, as an alert, marks the field\n * aria-invalid and describes it by those words; nothing of the error shows\n * before that. A valid one sends `bd-subscribe`, bubbling and composed so\n * it leaves any shadow root the card is in, with the trimmed address as\n * `detail.email`. The card sends nothing over the network: the page does,\n * and says how it went through `state`, which it sets in its listener and\n * afterwards:\n *\n * sending the form is busy (aria-busy), the button aria-disabled -- it\n * keeps the focus a disabled button would drop -- and the field\n * read-only; a second press sends nothing.\n * success the `success` slot in place of the form, in a role=\"status\"\n * region rendered from the start, so its words are announced.\n * failed the form as the reader left it, filled and enabled, with the\n * `failure` slot under it as an alert that describes the\n * field. A new press sends again.\n *\n * signup.addEventListener('bd-subscribe', async ({ detail }) => {\n * signup.state = 'sending';\n * try { await subscribe(detail); signup.state = 'success'; } catch { signup.state = 'failed'; }\n * });\n *\n * A page that never sets `state` gets 3.x's ending: once bd-subscribe has\n * been sent and nothing took it, the field is cleared and disabled, and a\n * second press changes nothing. So a page takes the send by setting\n * `sending` in its listener, before the card looks.\n *\n * The section is named by its title. Every part's box is hidden while its\n * slot is empty, the button with its words, so a bare card draws no word of\n * its own -- only the envelope.\n */\n@defineElement(\"bd-newsletter-signup\")\nexport class BdNewsletterSignup extends LitElement {\n static styles = [newsletterSignupCSS];\n\n /** The email field's placeholder, and its accessible name. */\n @property({ type: String })\n placeholder = \"\";\n\n /** sending | success | failed: where the page's send stands, set by the page after bd-subscribe. Reflected; unset until then. */\n @property({ type: String, reflect: true, attribute: \"state\" })\n state?: NewsletterState;\n\n @state()\n _invalid = false;\n\n /* 3.x's ending, for a page that set no state: the field cleared and disabled. */\n @state()\n _submitted = false;\n\n _slots = new SlotController<Part>(this, { slots: [\"title\", \"description\", \"cta\", \"error\", \"success\", \"failure\", \"footer\"] });\n\n willUpdate(changed: PropertyValues<this>) {\n /* An unknown state is cleared, so the attribute says what is drawn. */\n if (changed.has(\"state\") && this.state != null && !isOneOf(NEWSLETTER_STATES, this.state)) this.state = undefined;\n /* A state the page sets takes over from 3.x's ending. */\n if (changed.has(\"state\") && this.state) this._submitted = false;\n }\n\n _handleSubmit(event: SubmitEvent) {\n event.preventDefault();\n /* While the page sends, once it has succeeded, or once 3.x's ending has\n disabled the field, a press sends nothing; a disabled field is no part\n of the form's data, which is not an invalid address either. */\n if (this.state === \"sending\" || this.state === \"success\" || this._submitted) {\n return;\n }\n\n const form = event.target;\n if (!(form instanceof HTMLFormElement)) {\n return;\n }\n\n const email = String(new FormData(form).get(\"email\") ?? \"\").trim();\n if (!EMAIL.test(email)) {\n this._invalid = true;\n return;\n }\n\n this._invalid = false;\n this.dispatchEvent(new CustomEvent<SubscribeDetail>(\"bd-subscribe\", { detail: { email }, bubbles: true, composed: true }));\n /* A page that takes the send has set `state` in its listener by now. */\n if (!this.state) {\n this._submitted = true;\n form.reset();\n }\n }\n\n render() {\n const has = (part: Part) => this._slots.has(part);\n const sending = this.state === \"sending\";\n const success = this.state === \"success\";\n /* The latest word wins: an invalid press after a failed send shows the error. */\n const error = this._invalid && has(\"error\");\n const failure = this.state === \"failed\" && !this._invalid && has(\"failure\");\n const describedBy = error ? \"error\" : failure ? \"failure\" : nothing;\n return html`\n <section class=\"newsletter\" part=\"newsletter\" aria-labelledby=${has(\"title\") ? \"title\" : nothing}>\n <div class=\"icon\" part=\"icon\"><bd-icon name=\"envelope\" size=\"2xl\"></bd-icon></div>\n\n <div class=\"title\" id=\"title\" part=\"title\" ?hidden=${!has(\"title\")}><slot name=\"title\"></slot></div>\n\n <p class=\"description\" part=\"description\" ?hidden=${!has(\"description\")}><slot name=\"description\"></slot></p>\n\n <div class=\"action\">\n <form class=\"form\" part=\"form\" @submit=${this._handleSubmit} novalidate aria-busy=${sending ? \"true\" : nothing} ?hidden=${success}>\n <input\n class=\"input\"\n part=\"input\"\n type=\"email\"\n name=\"email\"\n autocomplete=\"email\"\n placeholder=${this.placeholder || nothing}\n aria-label=${this.placeholder || nothing}\n aria-invalid=${this._invalid ? \"true\" : \"false\"}\n aria-describedby=${describedBy}\n ?readonly=${sending}\n ?disabled=${this._submitted}\n />\n <button class=\"button\" part=\"button\" type=\"submit\" aria-disabled=${sending ? \"true\" : nothing} ?hidden=${!has(\"cta\")}><slot name=\"cta\"></slot></button>\n </form>\n <!-- rendered from the start, so its words arriving are a change a screen reader announces -->\n <div class=\"status\" role=\"status\"><p class=\"success\" id=\"success\" part=\"success\" ?hidden=${!success || !has(\"success\")}><slot name=\"success\"></slot></p></div>\n </div>\n\n <p class=\"error\" id=\"error\" part=\"error\" role=\"alert\" ?hidden=${!error}><slot name=\"error\"></slot></p>\n\n <p class=\"failure\" id=\"failure\" part=\"failure\" role=\"alert\" ?hidden=${!failure}><slot name=\"failure\"></slot></p>\n\n <p class=\"disclaimer\" part=\"disclaimer\" ?hidden=${!has(\"footer\")}><slot name=\"footer\"></slot></p>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-newsletter-signup\": BdNewsletterSignup;\n }\n\n interface HTMLElementEventMap {\n \"bd-subscribe\": CustomEvent<SubscribeDetail>;\n }\n}\n"],"mappings":"A,2fAkBA,IAAaI,EAAoB,CAAC,UAAW,UAAW,QAAQ,EAS1DC,EAAQ,6BAgEDC,EAAN,cAAiCC,CAAW,C,8BAKnC,KAAA,YAAA,GAOH,KAAA,SAAA,GAIE,KAAA,WAAA,GAEJ,KAAA,OAAA,IAAIE,EAAqB,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,MAAO,QAAS,UAAW,UAAW,QAAQ,CAAE,CAAC,C,QAjB3G,KAAA,OAAA,CAACT,CAAmB,C,CAmBpC,WAAW,EAA+B,CAEpCU,EAAQ,IAAI,OAAO,GAAK,KAAK,OAAS,MAAQ,CAACC,EAAQP,EAAmB,KAAK,KAAK,IAAG,KAAK,MAAQ,IAAA,IAEpGM,EAAQ,IAAI,OAAO,GAAK,KAAK,QAAO,KAAK,WAAa,GAC5D,CAEA,cAAc,EAAoB,CAKhC,GAJAE,EAAM,eAAe,EAIjB,KAAK,QAAU,WAAa,KAAK,QAAU,WAAa,KAAK,WAC/D,OAGF,IAAMC,EAAOD,EAAM,OACnB,GAAI,EAAEC,aAAgB,iBACpB,OAGF,IAAMC,EAAQ,OAAO,IAAI,SAASD,CAAI,CAAC,CAAC,IAAI,OAAO,GAAK,EAAE,CAAC,CAAC,KAAK,EAC5DR,EAAM,KAAKS,CAAK,GAKrB,KAAK,SAAW,GAChB,KAAK,cAAc,IAAI,YAA6B,eAAgB,CAAE,OAAQ,CAAE,OAAM,EAAG,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,EAEpH,KAAK,QACR,KAAK,WAAa,GAClBD,EAAK,MAAM,IATX,KAAK,SAAW,EAWpB,CAEA,QAAS,CACP,IAAME,EAAO,GAAe,KAAK,OAAO,IAAIC,CAAI,EAC1CC,EAAU,KAAK,QAAU,UACzBC,EAAU,KAAK,QAAU,UAEzBC,EAAQ,KAAK,UAAYJ,EAAI,OAAO,EACpCK,EAAU,KAAK,QAAU,UAAY,CAAC,KAAK,UAAYL,EAAI,SAAS,EACpEM,EAAcF,EAAQ,QAAUC,EAAU,UAAYE,EAC5D,MAAO,EAAI;sEACuDP,EAAI,OAAO,EAAI,QAAUO,EAAQ;;;6DAG1C,CAACP,EAAI,OAAO,EAAE;;4DAEf,CAACA,EAAI,aAAa,EAAE;;;mDAG7B,KAAK,cAAc,wBAAwBE,EAAU,OAASK,EAAQ,WAAWJ,EAAQ;;;;;;;4BAOhH,KAAK,aAAeI,EAAQ;2BAC7B,KAAK,aAAeA,EAAQ;6BAC1B,KAAK,SAAW,OAAS,QAAQ;iCAC7BD,EAAY;0BACnBJ,EAAQ;0BACR,KAAK,WAAW;;+EAEqCA,EAAU,OAASK,EAAQ,WAAW,CAACP,EAAI,KAAK,EAAE;;;qGAG5B,CAACG,GAAW,CAACH,EAAI,SAAS,EAAE;;;wEAGzD,CAACI,EAAM;;8EAED,CAACC,EAAQ;;0DAE7B,CAACL,EAAI,QAAQ,EAAE;;KAGvE,CACF,EAjGGd,EAAA,CAAAsB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAjB,EAAA,UAAA,cAAA,IAAA,EAAA,EAIzBL,EAAA,CAAAsB,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,OAAQ,CAAC,CAAA,EAAAjB,EAAA,UAAA,QAAA,IAAA,EAAA,EAG5DL,EAAA,CAAAuB,EAAM,CAAA,EAAAlB,EAAA,UAAA,WAAA,IAAA,EAAA,EAINL,EAAA,CAAAuB,EAAM,CAAA,EAAAlB,EAAA,UAAA,aAAA,IAAA,EAAA,EAhBR,EAAAL,EAAA,CAAAwB,EAAc,sBAAsB,CAAA,EAAAnB,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-infopanel-container{column-gap:var(--spacing-48);padding-block:var(--spacing-48);box-sizing:border-box;grid-template-rows:auto auto;grid-template-columns:1fr 1fr;row-gap:0;display:grid}.bd-infopanel-title{margin:0;margin-bottom:var(--spacing-48);grid-area:1/1/auto/-1}
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-infopanel-container{column-gap:var(--spacing-48);padding-block:var(--spacing-48);box-sizing:border-box;grid-template-rows:auto auto;grid-template-columns:1fr 1fr;row-gap:0;display:grid}.bd-infopanel-title[hidden],.bd-infopanel-left[hidden],.bd-infopanel-right[hidden]{display:none}.bd-infopanel-title{margin:0;margin-bottom:var(--spacing-48);grid-area:1/1/auto/-1}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h2-fontSize);--bd-heading-font-weight:var(--typography-heading-h2-fontWeight);--bd-heading-line-height:var(--typography-heading-h2-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h2-letterSpacing);--bd-heading-font-family:var(--typography-heading-h2-fontFamily)}.bd-infopanel-left{gap:var(--spacing-16);flex-direction:column;grid-area:2/1;display:flex}::slotted([slot=description]){max-width:46ch;font-family:var(--typography-fontFamily-sans);margin:0}::slotted(bd-p[slot=description]){--bd-paragraph-font-size:var(--typography-body-large-fontSize);--bd-paragraph-font-weight:var(--typography-body-large-fontWeight);--bd-paragraph-line-height:var(--typography-body-large-lineHeight);--bd-paragraph-letter-spacing:var(--typography-body-large-letterSpacing)}.bd-infopanel-right{gap:var(--spacing-40);flex-direction:column;grid-area:2/2;display:flex}@media (width<=899px){.bd-infopanel-container{gap:var(--spacing-32);padding:var(--spacing-32) var(--spacing-24);grid-template-rows:auto auto auto;grid-template-columns:1fr}.bd-infopanel-title{margin-bottom:var(--spacing-16);grid-area:1/1}.bd-infopanel-left{grid-area:2/1}.bd-infopanel-right{grid-area:3/1}::slotted([slot=description]){max-width:none}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=overview.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.css.js","names":["overview_css_default"],"sources":["../../../../src/components/overview/overview.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n .bd-infopanel-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto auto;\n column-gap: var(--spacing-48);\n row-gap: 0;\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n /* Title spans both columns on its own row */\n .bd-infopanel-title {\n grid-column: 1 / -1;\n grid-row: 1;\n margin: 0;\n margin-bottom: var(--spacing-48);\n }\n\n /* === LEFT COLUMN (description) === */\n .bd-infopanel-left {\n grid-column: 1;\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n
|
|
1
|
+
{"version":3,"file":"overview.css.js","names":["overview_css_default"],"sources":["../../../../src/components/overview/overview.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { bodyRole, headingRole } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n .bd-infopanel-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto auto;\n column-gap: var(--spacing-48);\n row-gap: 0;\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display each box sets below. */\n .bd-infopanel-title[hidden],\n .bd-infopanel-left[hidden],\n .bd-infopanel-right[hidden] {\n display: none;\n }\n\n /* Title spans both columns on its own row. The box is the grid item, so it\n is what is placed; the page's bd-h sits inside it. */\n .bd-infopanel-title {\n grid-column: 1 / -1;\n grid-row: 1;\n margin: 0;\n margin-bottom: var(--spacing-48);\n }\n\n /* The page section's title: the h2 role at every level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h2\"))}\n }\n\n /* === LEFT COLUMN (description) === */\n .bd-infopanel-left {\n grid-column: 1;\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n ::slotted([slot=\"description\"]) {\n margin: 0;\n max-width: 46ch;\n /* Keep: the max-width above is in ch, and ch resolves against THIS\n element's font. Stating the family here is what pins the measure;\n removing it would leave 46ch depending on whatever is inherited. */\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* The lead 3.x rendered as bd-p appearance=\"large\", whatever appearance the\n page's paragraph names. */\n ::slotted(bd-p[slot=\"description\"]) {\n ${unsafeCSS(bodyRole(\"body-large\"))}\n }\n\n /* === RIGHT COLUMN (facts) ===\n 40 between facts: 3.x's 24 under one row and 16 over the next. Each\n bd-fact draws its own rule and insets. */\n .bd-infopanel-right {\n grid-column: 2;\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-40);\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-infopanel-container {\n grid-template-columns: 1fr;\n grid-template-rows: auto auto auto;\n gap: var(--spacing-32);\n padding: var(--spacing-32) var(--spacing-24);\n }\n\n .bd-infopanel-title {\n grid-column: 1;\n grid-row: 1;\n margin-bottom: var(--spacing-16);\n }\n\n .bd-infopanel-left {\n grid-column: 1;\n grid-row: 2;\n }\n\n .bd-infopanel-right {\n grid-column: 1;\n grid-row: 3;\n }\n\n ::slotted([slot=\"description\"]) {\n max-width: none;\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,kuD"}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import "../fact/fact.js";
|
|
5
|
+
import "../h/h.js";
|
|
6
|
+
import "../p/p.js";
|
|
7
|
+
/**
|
|
8
|
+
* A product's overview: the title across the top, the description on the
|
|
9
|
+
* left and a column of facts on the right.
|
|
10
|
+
*
|
|
11
|
+
* <bd-overview>
|
|
12
|
+
* <bd-h slot="title" as="h2">What is AI Guardian?</bd-h>
|
|
13
|
+
* <bd-p slot="description">AI Guardian is …</bd-p>
|
|
14
|
+
* <bd-fact><span slot="label">Platform</span><span slot="value">macOS</span></bd-fact>
|
|
15
|
+
* </bd-overview>
|
|
16
|
+
*
|
|
17
|
+
* The facts are the default slot: they are the items, and the left column
|
|
18
|
+
* takes everything else as `description` atoms, stacked as 3.x stacked its
|
|
19
|
+
* default slot under the description. The overview sets its title's size
|
|
20
|
+
* (the page-section h2) and its description's (body-large); the page picks
|
|
21
|
+
* the title's level.
|
|
22
|
+
*/
|
|
23
|
+
export declare class BdOverview extends LitElement {
|
|
10
24
|
static styles: import("lit").CSSResult[];
|
|
11
|
-
|
|
12
|
-
description: string;
|
|
13
|
-
facts: OverviewFact[];
|
|
25
|
+
_slots: SlotController<"" | "title" | "description">;
|
|
14
26
|
render(): import("lit-html").TemplateResult<1>;
|
|
15
27
|
}
|
|
16
28
|
declare global {
|
|
17
29
|
interface HTMLElementTagNameMap {
|
|
18
|
-
"bd-overview":
|
|
30
|
+
"bd-overview": BdOverview;
|
|
19
31
|
}
|
|
20
32
|
}
|
|
21
|
-
export {};
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../fact/fact.js";import i from"./overview.css.js";import{LitElement as a,html as o}from"lit";var s=class extends a{constructor(...e){super(...e),this._slots=new n(this,{slots:[`title`,`description`,``]})}static{this.styles=[r,i]}render(){return o`
|
|
2
2
|
<div class="bd-ensemble bd-infopanel-container">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</bd-h>
|
|
7
|
-
`:o}
|
|
8
|
-
|
|
9
|
-
<div class="bd-infopanel-left">
|
|
10
|
-
${this.description?a`
|
|
11
|
-
<bd-p variant="large" class="bd-infopanel-description">
|
|
12
|
-
<slot name="description">${this.description}</slot>
|
|
13
|
-
</bd-p>
|
|
14
|
-
`:o}
|
|
3
|
+
<div class="bd-infopanel-title" ?hidden=${!this._slots.has(`title`)}>
|
|
4
|
+
<slot name="title"></slot>
|
|
5
|
+
</div>
|
|
15
6
|
|
|
16
|
-
|
|
7
|
+
<div class="bd-infopanel-left" ?hidden=${!this._slots.has(`description`)}>
|
|
8
|
+
<slot name="description"></slot>
|
|
17
9
|
</div>
|
|
18
10
|
|
|
19
|
-
<div class="bd-infopanel-right">
|
|
20
|
-
|
|
21
|
-
<div class="bd-infopanel-row">
|
|
22
|
-
<div class="bd-infopanel-divider"></div>
|
|
23
|
-
<bd-p variant="xsmall" class="bd-infopanel-label">${e.label}</bd-p>
|
|
24
|
-
<bd-p variant="regular" class="bd-infopanel-value">${e.value}</bd-p>
|
|
25
|
-
</div>
|
|
26
|
-
`)}
|
|
27
|
-
<slot name="facts"></slot>
|
|
11
|
+
<div class="bd-infopanel-right" ?hidden=${!this._slots.has(``)}>
|
|
12
|
+
<slot></slot>
|
|
28
13
|
</div>
|
|
29
14
|
</div>
|
|
30
|
-
`}};
|
|
15
|
+
`}};s=t([e(`bd-overview`)],s);export{s as BdOverview};
|
|
31
16
|
//# sourceMappingURL=overview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.js","names":["infoPanelCSS","_decorate","__decorate","overview_css_default","
|
|
1
|
+
{"version":3,"file":"overview.js","names":["infoPanelCSS","_decorate","__decorate","overview_css_default","BdOverview","LitElement","_args","SlotController","ensembleCSS","defineElement"],"sources":["../../../../src/components/overview/overview.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/fact/fact.ts\";\n/* The atoms the page writes into the title and description. The overview\n renders neither now, but 3.x's module registered both, and a page\n importing only this module still gets them. */\nimport \"#components/h/h.ts\";\nimport \"#components/p/p.ts\";\nimport infoPanelCSS from \"./overview.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n/**\n * A product's overview: the title across the top, the description on the\n * left and a column of facts on the right.\n *\n * <bd-overview>\n * <bd-h slot=\"title\" as=\"h2\">What is AI Guardian?</bd-h>\n * <bd-p slot=\"description\">AI Guardian is …</bd-p>\n * <bd-fact><span slot=\"label\">Platform</span><span slot=\"value\">macOS</span></bd-fact>\n * </bd-overview>\n *\n * The facts are the default slot: they are the items, and the left column\n * takes everything else as `description` atoms, stacked as 3.x stacked its\n * default slot under the description. The overview sets its title's size\n * (the page-section h2) and its description's (body-large); the page picks\n * the title's level.\n */\n@defineElement(\"bd-overview\")\nexport class BdOverview extends LitElement {\n static styles = [ensembleCSS, infoPanelCSS];\n\n _slots = new SlotController(this, { slots: [\"title\", \"description\", \"\"] });\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-infopanel-container\">\n <div class=\"bd-infopanel-title\" ?hidden=${!this._slots.has(\"title\")}>\n <slot name=\"title\"></slot>\n </div>\n\n <div class=\"bd-infopanel-left\" ?hidden=${!this._slots.has(\"description\")}>\n <slot name=\"description\"></slot>\n </div>\n\n <div class=\"bd-infopanel-right\" ?hidden=${!this._slots.has(\"\")}>\n <slot></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-overview\": BdOverview;\n }\n}\n"],"mappings":"A,maA+BO,IAAMI,EAAN,cAAyBC,CAAW,C,8BAGhC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,QAAS,cAAe,EAAE,CAAE,CAAC,C,QAFzD,KAAA,OAAA,CAACC,EAAaR,CAAY,C,CAI1C,QAAS,CACP,MAAO,EAAI;;kDAEmC,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;;;;iDAI3B,CAAC,KAAK,OAAO,IAAI,aAAa,EAAE;;;;kDAI/B,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;;;KAKrE,CACF,EAvBC,EAAAC,EAAA,CAAAQ,EAAc,aAAa,CAAA,EAAAL,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{color:var(--bd-paragraph-color,var(--color-text-primary));--bd-paragraph-font-size:initial;--bd-paragraph-font-weight:initial;--bd-paragraph-line-height:initial;--bd-paragraph-letter-spacing:initial;display:block}p{all:unset;font-family:var(--typography-body-regular-fontFamily);margin-bottom:var(--bd-paragraph-margin-bottom,var(--spacing-16));display:block}:host([appearance=large]) p{font-size:var(--bd-paragraph-font-size,var(--typography-body-large-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-body-large-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-body-large-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-body-large-letterSpacing))}:host([appearance=regular]) p{font-size:var(--bd-paragraph-font-size,var(--typography-body-regular-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-body-regular-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-body-regular-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-body-regular-letterSpacing))}:host([appearance=small]) p{font-size:var(--bd-paragraph-font-size,var(--typography-body-small-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-body-small-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-body-small-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-body-small-letterSpacing))}:host([appearance=xsmall]) p{font-size:var(--bd-paragraph-font-size,var(--typography-body-xsmall-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-body-small-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-body-small-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-body-small-letterSpacing))}:host([appearance=lead]) p{font-size:var(--bd-paragraph-font-size,var(--typography-body-lead-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-body-lead-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-body-lead-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-body-lead-letterSpacing))}:host([appearance=eyebrow]) p{font-size:var(--bd-paragraph-font-size,var(--typography-label-large-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-label-large-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-label-large-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-label-large-letterSpacing));font-family:var(--typography-label-large-fontFamily);color:var(--bd-paragraph-color,var(--color-text-brand))}@media (width<992px){:host([appearance=eyebrow]) p{font-size:var(--bd-paragraph-font-size,var(--typography-label-default-fontSize));font-weight:var(--bd-paragraph-font-weight,var(--typography-label-default-fontWeight));line-height:var(--bd-paragraph-line-height,var(--typography-label-default-lineHeight));letter-spacing:var(--bd-paragraph-letter-spacing,var(--typography-label-default-letterSpacing))}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=p.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p.css.js","names":["p_css_default"],"sources":["../../../../src/components/p/p.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n /* --color-text-primary, not --color-neutral-1000. Body copy was set in pure\n black while bd-display used neutral-900 and bd-li neutral-700, so a\n heading, its paragraph and its list rendered in three different inks. The\n line below the font-family used to carry the intended value as\n a // prefix, which CSS does not treat as a comment — the parser dropped\n it, and the pure black above won by default.\n\n The four type hooks a container sets on a bd-p it is given --\n ::slotted(bd-p[slot=\"description\"]) { bodyRole('body-large') }, see\n shared/token-scales.ts -- reset here, for the reason h/h.css.ts gives\n for bd-h's: a rule from outside matching this host beats this one, an\n inherited value does not, so a hook applies on the element it is set on\n and never reaches a paragraph nested deeper. --bd-paragraph-color is not\n reset: ink belongs to the ground, and it has always inherited. */\n :host {\n display: block;\n color: var(--bd-paragraph-color, var(--color-text-primary));\n --bd-paragraph-font-size: initial;\n --bd-paragraph-font-weight: initial;\n --bd-paragraph-line-height: initial;\n --bd-paragraph-letter-spacing: initial;\n }\n\n p {\n all: unset;\n display: block;\n font-family: var(--typography-body-regular-fontFamily);\n /* The flow margin between consecutive paragraphs, and the switch to turn\n it off: --bd-paragraph-margin-bottom: 0 on the host or any ancestor.\n It inherits into this shadow root, which the margin itself never did --\n the <p> is unreachable from outside, so a paragraph that ends a card or\n a column carried 16px nobody could remove, and the header cancelled it\n three times with a negative margin.\n\n It was a no-op until 0.26.0: it read --spacing-md, which no longer\n existed, so every page built on 0.25 was laid out with zero here. The\n rename to --spacing-16 made it live, which is how the step cards on\n security-for-creators gained 16px under each description. */\n margin-bottom: var(--bd-paragraph-margin-bottom, var(--spacing-16));\n }\n\n /* === Font Size Appearances ===\n Each reads the container's hook first and its own role after it, so a\n bd-p nobody sets a hook on renders exactly as it did before the hooks\n existed. The font-size, font-weight and letter-spacing props are inline\n styles on the <p>, so they still beat a hook. */\n :host([appearance=\"large\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-body-large-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-body-large-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-body-large-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-body-large-letterSpacing));\n }\n\n :host([appearance=\"regular\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-body-regular-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-body-regular-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-body-regular-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-body-regular-letterSpacing));\n }\n\n :host([appearance=\"small\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-body-small-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-body-small-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-body-small-letterSpacing));\n }\n :host([appearance=\"xsmall\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-body-xsmall-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-body-small-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-body-small-letterSpacing));\n }\n :host([appearance=\"lead\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-body-lead-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-body-lead-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-body-lead-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-body-lead-letterSpacing));\n }\n\n /* The eyebrow: a short label above a section title. It takes the\n label-large role -- the role whose job is a short label rather than\n running text -- which is 16px at 1.5 like body-regular and Medium 500\n where body-regular is 400. Brand ink is part of the pattern: all five\n eyebrows in the package and every one on the homepage are text-brand.\n A color attribute still wins, for an eyebrow on a dark band.\n\n The ink reads --bd-paragraph-color before the brand, because brand text\n is only right on a light ground. A container that names its band's ink\n with ink() -- on-brand on a brand band, inverse on a dark one -- has said\n the brand no longer reads there: text-brand on the brand fill is the\n brand on itself. Without the hook an eyebrow slotted onto a band kept\n text-brand, and the <p> sets the colour itself, so nothing outside could\n reach it. */\n :host([appearance=\"eyebrow\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-label-large-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-label-large-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-label-large-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-label-large-letterSpacing));\n font-family: var(--typography-label-large-fontFamily);\n color: var(--bd-paragraph-color, var(--color-text-brand));\n }\n\n /* Below lg the eyebrow steps down to label-default: 14px, the same Medium\n 500 at 1.5. The homepage draws it 14 on the 390 and 768 frames and 16 on\n desktop, so the step sits at lg, which is also where every fluid role in\n the system stops growing. A step between two declared roles rather than a\n fluid size, because the label family has no fluid role, and one for a\n single appearance would be a new token where two existing roles already\n answer both ends exactly. A container's hook still beats the step: the\n container that set it decided the size at every width. */\n @media ${unsafeCSS(below(\"lg\"))} {\n :host([appearance=\"eyebrow\"]) p {\n font-size: var(--bd-paragraph-font-size, var(--typography-label-default-fontSize));\n font-weight: var(--bd-paragraph-font-weight, var(--typography-label-default-fontWeight));\n line-height: var(--bd-paragraph-line-height, var(--typography-label-default-lineHeight));\n letter-spacing: var(--bd-paragraph-letter-spacing, var(--typography-label-default-letterSpacing));\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,uhG"}
|
|
@@ -15,12 +15,10 @@ import { type SpacingStep, type FontFamilyStep, type FontWeightStep, type FontSi
|
|
|
15
15
|
* through body-regular; once three of them reached past it for a weight, one
|
|
16
16
|
* spelling became the thing that keeps them together.
|
|
17
17
|
*/
|
|
18
|
-
declare const
|
|
19
|
-
type
|
|
18
|
+
declare const APPEARANCES: readonly ["xsmall", "small", "regular", "large", "lead", "eyebrow"];
|
|
19
|
+
type Appearance = typeof APPEARANCES[number];
|
|
20
20
|
export declare class BdP extends LitElement {
|
|
21
|
-
|
|
22
|
-
/** @deprecated pass `variant`. */
|
|
23
|
-
kind: Variant | "";
|
|
21
|
+
appearance: Appearance;
|
|
24
22
|
padding: string;
|
|
25
23
|
paddingBottom: SpacingStep | "";
|
|
26
24
|
paddingTop: SpacingStep | "";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{color as e,fontFamily as t,fontSize as n,fontWeight as r,letterSpacing as i,spacing as a,spacingShorthand as o}from"../shared/token-scales.js";import{defineElement as s}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as c}from"../shared/prop-vocabulary.js";import l from"./p.css.js";import u from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{LitElement as d,html as f}from"lit";import{property as p}from"lit/decorators.js";var m=[`xsmall`,`small`,`regular`,`large`,`lead`,`eyebrow`],h=class extends d{constructor(...e){super(...e),this.appearance=`regular`,this.padding=``,this.paddingBottom=``,this.paddingTop=``,this.fontFamily=``,this.fontWeight=``,this.fontSize=``,this.letterSpacing=``,this.color=``}willUpdate(e){e.has(`appearance`)&&!c(m,this.appearance)&&(this.appearance=`regular`)}render(){let s=[[`padding`,o(this.padding)],[`padding-bottom`,a(this.paddingBottom)],[`padding-top`,a(this.paddingTop)],[`font-family`,t(this.fontFamily)],[`font-weight`,r(this.fontWeight)],[`font-size`,n(this.fontSize)],[`letter-spacing`,i(this.letterSpacing)],[`color`,e(this.color)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t};`);return f`
|
|
2
|
+
<p class="bd-paragraph" style="${s.join(` `)}">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</p>
|
|
5
|
+
`}static{this.styles=[l]}};u([p({type:String,attribute:`appearance`,reflect:!0})],h.prototype,`appearance`,void 0),u([p({type:String,attribute:`padding`})],h.prototype,`padding`,void 0),u([p({type:String,attribute:`padding-bottom`})],h.prototype,`paddingBottom`,void 0),u([p({type:String,attribute:`padding-top`})],h.prototype,`paddingTop`,void 0),u([p({type:String,attribute:`font-family`})],h.prototype,`fontFamily`,void 0),u([p({type:String,attribute:`font-weight`})],h.prototype,`fontWeight`,void 0),u([p({type:String,attribute:`font-size`})],h.prototype,`fontSize`,void 0),u([p({type:String,attribute:`letter-spacing`})],h.prototype,`letterSpacing`,void 0),u([p({type:String,attribute:`color`})],h.prototype,`color`,void 0),h=u([s(`bd-p`)],h);export{h as BdP};
|
|
6
|
+
//# sourceMappingURL=p.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p.js","names":["paragraphCSS","_decorate","p_css_default","__decorate","APPEARANCES","BdP","LitElement","_args","changed","isOneOf","styles","spacingShorthand","spacing","fontFamily","fontWeight","fontSize","letterSpacing","color","v","prop","property","defineElement"],"sources":["../../../../src/components/p/p.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 {\n spacing, spacingShorthand, fontFamily, fontWeight, fontSize, letterSpacing, color,\n type SpacingStep, type FontFamilyStep, type FontWeightStep, type FontSizeStep,\n type LetterSpacingStep, type ColorRole\n} from \"#shared/token-scales.ts\";\nimport paragraphCSS from \"./p.css.ts\";\n\n/**\n * The five body roles the stylesheet carries, and the eyebrow.\n *\n * eyebrow is the short brand-ink label above a section title. It reads the\n * label-large role -- 16px, Medium 500, 1.5 -- from lg up, and label-default\n * (14px, the same weight and leading) below lg, rather than a role of its\n * own, so it adds no token. It exists because five components drew the pattern\n * and disagreed on weight: bento-grid and header-code at the body role's 400,\n * trust-panel twice and agent-endpoints at a semibold 600 passed through\n * font-weight, and the homepage design at 500. The phase-1 eyebrow\n * investigation found no role was needed while every eyebrow resolved\n * through body-regular; once three of them reached past it for a weight, one\n * spelling became the thing that keeps them together.\n */\nconst APPEARANCES = [\"xsmall\", \"small\", \"regular\", \"large\", \"lead\", \"eyebrow\"] as const;\ntype Appearance = typeof APPEARANCES[number];\n\n@defineElement(\"bd-p\")\nexport class BdP extends LitElement {\n /* `appearance`, the look (N6): 3.x called it `variant`, and before that\n `kind`, which no longer resolves. `variant` is the meaning in v4, and a\n type step is not one. */\n @property({ type: String, attribute: \"appearance\", reflect: true })\n appearance: Appearance = \"regular\";\n @property({ type: String, attribute: \"padding\" })\n padding = \"\";\n @property({ type: String, attribute: \"padding-bottom\" })\n paddingBottom: SpacingStep | \"\" = \"\";\n @property({ type: String, attribute: \"padding-top\" })\n paddingTop: SpacingStep | \"\" = \"\";\n @property({ type: String, attribute: \"font-family\" })\n fontFamily: FontFamilyStep | \"\" = \"\";\n @property({ type: String, attribute: \"font-weight\" })\n fontWeight: FontWeightStep | \"\" = \"\";\n @property({ type: String, attribute: \"font-size\" })\n fontSize: FontSizeStep | \"\" = \"\";\n @property({ type: String, attribute: \"letter-spacing\" })\n letterSpacing: LetterSpacingStep | \"\" = \"\";\n /* A semantic role, the same closed set bd-h and bd-display take. Without\n it a paragraph's ink could only come from the composing component's\n CSS, so a page could not say an eyebrow is brand-blue or a lead on a\n brand band is white. */\n @property({ type: String, attribute: \"color\" })\n color: ColorRole | \"\" = \"\";\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"appearance\") && !isOneOf(APPEARANCES, this.appearance)) this.appearance = \"regular\";\n }\n\n render() {\n // Step names, resolved to token references by shared/token-scales.ts. The\n // three spacing props took raw CSS lengths before, which is the one thing\n // the foundation rule forbids.\n //\n // fontFamily and fontWeight were declared here and in the manifest and\n // then never applied — every value passed to them was silently dropped,\n // so bd-terminal-message asked four paragraphs for mono and got sans.\n // They resolve through the same closed sets as everything else, so\n // font-family takes \"sans\" or \"mono\" rather than a CSS font stack.\n //\n // fontSize, letterSpacing and color arrived from main as raw CSS; they take\n // a font-size step, a letter-spacing step and a COLOR_ROLES name.\n const styles = [\n [\"padding\", spacingShorthand(this.padding)],\n [\"padding-bottom\", spacing(this.paddingBottom)],\n [\"padding-top\", spacing(this.paddingTop)],\n [\"font-family\", fontFamily(this.fontFamily)],\n [\"font-weight\", fontWeight(this.fontWeight)],\n [\"font-size\", fontSize(this.fontSize)],\n [\"letter-spacing\", letterSpacing(this.letterSpacing)],\n [\"color\", color(this.color)]\n ].filter(([, v]) => v).map(([prop, v]) => `${prop}: ${v};`);\n\n return html`\n <p class=\"bd-paragraph\" style=\"${styles.join(' ')}\">\n <slot></slot>\n </p>\n `;\n }\n\n static styles = [paragraphCSS];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-p\": BdP;\n }\n}"],"mappings":"A,oeA2BA,IAAMI,EAAc,CAAC,SAAU,QAAS,UAAW,QAAS,OAAQ,SAAS,EAIhEC,EAAN,cAAkBC,CAAW,C,8BAKT,KAAA,WAAA,UAEf,KAAA,QAAA,GAEwB,KAAA,cAAA,GAEH,KAAA,WAAA,GAEG,KAAA,WAAA,GAEA,KAAA,WAAA,GAEJ,KAAA,SAAA,GAEU,KAAA,cAAA,GAMhB,KAAA,MAAA,E,CAExB,WAAW,EAA+B,CACpCE,EAAQ,IAAI,YAAY,GAAK,CAACC,EAAQL,EAAa,KAAK,UAAU,IAAG,KAAK,WAAa,UAC7F,CAEA,QAAS,CAaP,IAAMM,EAAS,CACb,CAAC,UAAkBC,EAAiB,KAAK,OAAO,CAAC,EACjD,CAAC,iBAAkBC,EAAQ,KAAK,aAAa,CAAC,EAC9C,CAAC,cAAkBA,EAAQ,KAAK,UAAU,CAAC,EAC3C,CAAC,cAAkBC,EAAW,KAAK,UAAU,CAAC,EAC9C,CAAC,cAAkBC,EAAW,KAAK,UAAU,CAAC,EAC9C,CAAC,YAAkBC,EAAS,KAAK,QAAQ,CAAC,EAC1C,CAAC,iBAAkBC,EAAc,KAAK,aAAa,CAAC,EACpD,CAAC,QAAkBC,EAAM,KAAK,KAAK,CAAC,CACtC,CAAC,CAAC,QAAQ,EAAGC,KAAOA,CAAC,CAAC,CAAC,KAAK,CAACC,EAAMD,KAAO,GAAGC,EAAK,IAAID,EAAE,EAAE,EAE1D,MAAO,EAAI;uCACwBR,EAAO,KAAK,GAAG,EAAE;;;KAItD,C,OAEgB,KAAA,OAAA,CAACV,CAAY,C,CAC/B,EA3DGC,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,QAAS,EAAK,CAAC,CAAA,EAAAf,EAAA,UAAA,aAAA,IAAA,EAAA,EAEjEJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,SAAU,CAAC,CAAA,EAAAf,EAAA,UAAA,UAAA,IAAA,EAAA,EAE/CJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAf,EAAA,UAAA,gBAAA,IAAA,EAAA,EAEtDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAf,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAf,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAf,EAAA,UAAA,aAAA,IAAA,EAAA,EAEnDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAf,EAAA,UAAA,WAAA,IAAA,EAAA,EAEjDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAf,EAAA,UAAA,gBAAA,IAAA,EAAA,EAMtDJ,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,OAAQ,CAAC,CAAA,EAAAf,EAAA,UAAA,QAAA,IAAA,EAAA,EAzB/C,EAAAJ,EAAA,CAAAoB,EAAc,MAAM,CAAA,EAAAhB,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`:host{z-index:var(--z-sticky);background:var(--color-surface-default);border-bottom:var(--border-width-1) solid var(--color-border-container);display:block;position:sticky;top:0}.inner{padding-block:var(--spacing-16);box-sizing:border-box;justify-content:space-between;align-items:center;gap:var(--spacing-16) var(--spacing-32);flex-wrap:wrap;display:flex}.logo{font-size:var(--typography-fontSize-lg);font-weight:var(--typography-fontWeight-semibold);color:var(--color-text-
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{z-index:var(--z-sticky);background:var(--color-surface-default);border-bottom:var(--border-width-1) solid var(--color-border-container);display:block;position:sticky;top:0}.inner{padding-block:var(--spacing-16);box-sizing:border-box;justify-content:space-between;align-items:center;gap:var(--spacing-16) var(--spacing-32);flex-wrap:wrap;display:flex}.logo{font-size:var(--typography-fontSize-lg);font-weight:var(--typography-fontWeight-semibold);color:var(--color-text-brand)}nav{align-items:center;gap:var(--spacing-16) var(--spacing-32);flex-wrap:wrap;display:flex}::slotted(bd-link){min-block-size:calc(var(--typography-link-standalone-fontSize) * var(--typography-link-standalone-lineHeight) + 2 * var(--spacing-10));margin-block-end:calc(-1 * var(--spacing-16));padding-block-end:var(--spacing-16);display:inline-flex}::slotted(bd-link[current]){border-block-end:var(--indicator-underline-height) solid var(--indicator-color);padding-block-end:calc(var(--spacing-16) - var(--indicator-underline-height))}@media (forced-colors:active){::slotted(bd-link[current]){border-block-end-color:highlight}}`;export{t as pageSwitcherStyles};
|
|
2
2
|
//# sourceMappingURL=page-switcher.css.js.map
|