@repobit/dex-system-design 3.1.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1074 -0
- package/README.md +31 -6
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Bold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-BoldItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Italic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Medium.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-MediumItalic.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-Regular.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBold.woff2 +0 -0
- package/dist/src/assets/fonts/IBMPlexSansCondensed-SemiBoldItalic.woff2 +0 -0
- package/dist/src/components/abstract/abstract.css.d.ts +7 -0
- package/dist/src/components/abstract/abstract.css.js +2 -0
- package/dist/src/components/abstract/abstract.css.js.map +1 -0
- package/dist/src/components/abstract/abstract.d.ts +31 -0
- package/dist/src/components/abstract/abstract.js +2 -0
- package/dist/src/components/abstract/abstract.js.map +1 -0
- package/dist/src/components/accordion/accordion-item.d.ts +93 -0
- package/dist/src/components/accordion/accordion-item.js +25 -0
- package/dist/src/components/accordion/accordion-item.js.map +1 -0
- package/dist/src/components/accordion/accordion-keyboard.d.ts +5 -5
- package/dist/src/components/accordion/accordion-keyboard.js +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.d.ts +2 -2
- package/dist/src/components/accordion/accordion.css.js +1 -1
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +66 -31
- package/dist/src/components/accordion/accordion.js +8 -66
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js +2 -0
- package/dist/src/components/agent-endpoints/agent-endpoints-pills.css.js.map +1 -0
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +38 -21
- package/dist/src/components/agent-endpoints/agent-endpoints.js +22 -41
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/anchor-nav/anchor-nav-item.css.d.ts +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.css.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.d.ts +38 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav-item.js.map +1 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js +2 -0
- package/dist/src/components/anchor-nav/anchor-nav.css.js.map +1 -0
- package/dist/src/components/{anchor → anchor-nav}/anchor-nav.d.ts +41 -23
- package/dist/src/components/anchor-nav/anchor-nav.js +43 -0
- package/dist/src/components/anchor-nav/anchor-nav.js.map +1 -0
- package/dist/src/components/annotation/annotation.css.js +1 -1
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.js +2 -2
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/article/article.css.d.ts +30 -0
- package/dist/src/components/article/article.css.js +2 -0
- package/dist/src/components/article/article.css.js.map +1 -0
- package/dist/src/components/article/article.d.ts +135 -0
- package/dist/src/components/article/article.js +39 -0
- package/dist/src/components/article/article.js.map +1 -0
- package/dist/src/components/audience-card/audience-card.css.js +1 -1
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +30 -15
- package/dist/src/components/audience-card/audience-card.js +9 -11
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/authors/authors.css.d.ts +7 -0
- package/dist/src/components/authors/authors.css.js +2 -0
- package/dist/src/components/authors/authors.css.js.map +1 -0
- package/dist/src/components/authors/authors.d.ts +29 -0
- package/dist/src/components/authors/authors.js +7 -0
- package/dist/src/components/authors/authors.js.map +1 -0
- package/dist/src/components/avatar/avatar.js +6 -6
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/award-marks.css.js +2 -0
- package/dist/src/components/awards/award-marks.css.js.map +1 -0
- package/dist/src/components/awards/award.css.js +2 -0
- package/dist/src/components/awards/award.css.js.map +1 -0
- package/dist/src/components/awards/award.d.ts +65 -0
- package/dist/src/components/awards/award.js +11 -0
- package/dist/src/components/awards/award.js.map +1 -0
- package/dist/src/components/awards/awards.css.d.ts +2 -1
- package/dist/src/components/awards/awards.css.js +1 -1
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +123 -71
- package/dist/src/components/awards/awards.js +46 -57
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.d.ts +9 -8
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.d.ts +12 -7
- package/dist/src/components/back/back.js +6 -6
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -1
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +11 -11
- package/dist/src/components/badge/badge.js +2 -2
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bar-chart/bar-chart.css.js +2 -0
- package/dist/src/components/bar-chart/bar-chart.css.js.map +1 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +147 -0
- package/dist/src/components/bar-chart/bar-chart.js +42 -0
- package/dist/src/components/bar-chart/bar-chart.js.map +1 -0
- package/dist/src/components/bento-grid/bento-grid.css.js +2 -2
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +21 -9
- package/dist/src/components/bento-grid/bento-grid.js +10 -26
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +34 -13
- package/dist/src/components/bento-grid/bento-item.js +9 -26
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -1
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +27 -2
- package/dist/src/components/blockquote/blockquote.js +1 -1
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -4
- package/dist/src/components/breadcrumb/breadcrumb.js +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -1
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +87 -96
- package/dist/src/components/button/button.js +20 -33
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/{alert/alert.css.d.ts → callout/callout.css.d.ts} +9 -9
- package/dist/src/components/callout/callout.css.js +2 -0
- package/dist/src/components/callout/callout.css.js.map +1 -0
- package/dist/src/components/callout/callout.d.ts +56 -0
- package/dist/src/components/callout/callout.js +28 -0
- package/dist/src/components/callout/callout.js.map +1 -0
- package/dist/src/components/caption/caption.js +2 -2
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card/card-grid.css.js +2 -0
- package/dist/src/components/card/card-grid.css.js.map +1 -0
- package/dist/src/components/card/card-grid.d.ts +63 -0
- package/dist/src/components/card/card-grid.js +10 -0
- package/dist/src/components/card/card-grid.js.map +1 -0
- package/dist/src/components/card/card.css.js +2 -0
- package/dist/src/components/card/card.css.js.map +1 -0
- package/dist/src/components/card/card.d.ts +86 -0
- package/dist/src/components/card/card.js +15 -0
- package/dist/src/components/card/card.js.map +1 -0
- package/dist/src/components/carousel/carousel.css.js +1 -1
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +64 -37
- package/dist/src/components/carousel/carousel.js +24 -32
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +15 -1
- package/dist/src/components/checkbox/checkbox.js +6 -5
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.d.ts +15 -0
- package/dist/src/components/code/code.css.js +1 -1
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +100 -4
- package/dist/src/components/code/code.js +17 -3
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/code/prism-page.d.ts +2 -0
- package/dist/src/components/code/prism-page.js +2 -0
- package/dist/src/components/code/prism-page.js.map +1 -0
- package/dist/src/components/code/prism.d.ts +10 -0
- package/dist/src/components/code/prism.js +2 -0
- package/dist/src/components/code/prism.js.map +1 -0
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +36 -15
- package/dist/src/components/comparison-panel/comparison-panel.js +25 -46
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.d.ts +25 -0
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +66 -42
- package/dist/src/components/compatibility-table/compatibility-table.js +5 -64
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +17 -8
- package/dist/src/components/cta-banner/cta-banner.js +8 -28
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/dialog/dialog.css.js +2 -0
- package/dist/src/components/dialog/dialog.css.js.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +76 -0
- package/dist/src/components/dialog/dialog.js +32 -0
- package/dist/src/components/dialog/dialog.js.map +1 -0
- package/dist/src/components/display/display.css.js +1 -1
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +30 -6
- package/dist/src/components/display/display.js +7 -5
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider.css.d.ts +2 -2
- package/dist/src/components/divider/divider.css.js +1 -1
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/divider/divider.d.ts +36 -0
- package/dist/src/components/divider/divider.js +21 -0
- package/dist/src/components/divider/divider.js.map +1 -0
- package/dist/src/components/fact/fact.css.d.ts +1 -0
- package/dist/src/components/fact/fact.css.js +2 -0
- package/dist/src/components/fact/fact.css.js.map +1 -0
- package/dist/src/components/fact/fact.d.ts +37 -0
- package/dist/src/components/fact/fact.js +2 -0
- package/dist/src/components/fact/fact.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.css.d.ts +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js +2 -0
- package/dist/src/components/feature-columns/feature-columns.css.js.map +1 -0
- package/dist/src/components/feature-columns/feature-columns.d.ts +61 -0
- package/dist/src/components/feature-columns/feature-columns.js +11 -0
- package/dist/src/components/feature-columns/feature-columns.js.map +1 -0
- package/dist/src/components/features-tab/features-tab.css.js +1 -1
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +21 -6
- package/dist/src/components/features-tab/features-tab.js +9 -21
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +16 -1
- package/dist/src/components/fieldset/fieldset.js +3 -3
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-group.css.js +2 -0
- package/dist/src/components/footer/footer-group.css.js.map +1 -0
- package/dist/src/components/footer/footer-group.d.ts +28 -0
- package/dist/src/components/footer/footer-group.js +5 -0
- package/dist/src/components/footer/footer-group.js.map +1 -0
- package/dist/src/components/footer/footer-locale.js +1 -1
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-nav.css.js +2 -0
- package/dist/src/components/footer/footer-nav.css.js.map +1 -0
- package/dist/src/components/footer/{footer-nav-menu.d.ts → footer-nav.d.ts} +2 -1
- package/dist/src/components/footer/footer-nav.js +6 -0
- package/dist/src/components/footer/footer-nav.js.map +1 -0
- package/dist/src/components/footer/footer.css.js +1 -1
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +38 -10
- package/dist/src/components/footer/footer.js +71 -93
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/grid/grid.js +7 -7
- package/dist/src/components/h/h.css.js +2 -0
- package/dist/src/components/h/h.css.js.map +1 -0
- package/dist/src/components/{heading/heading.d.ts → h/h.d.ts} +14 -0
- package/dist/src/components/h/h.js +7 -0
- package/dist/src/components/h/h.js.map +1 -0
- package/dist/src/components/hero/hero.css.js +1 -1
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +42 -24
- package/dist/src/components/hero/hero.js +15 -19
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -1
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +21 -12
- package/dist/src/components/highlight/highlight.js +1 -4
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/hint/hint.css.d.ts +3 -0
- package/dist/src/components/{help-text/help-text.css.js → hint/hint.css.js} +2 -2
- package/dist/src/components/hint/hint.css.js.map +1 -0
- package/dist/src/components/hint/hint.d.ts +33 -0
- package/dist/src/components/hint/hint.js +4 -0
- package/dist/src/components/hint/hint.js.map +1 -0
- package/dist/src/components/icons/analysis.d.ts +1 -0
- package/dist/src/components/icons/analysis.js +6 -0
- package/dist/src/components/icons/analysis.js.map +1 -0
- package/dist/src/components/icons/arrow-down.d.ts +1 -0
- package/dist/src/components/icons/arrow-down.js +6 -0
- package/dist/src/components/icons/arrow-down.js.map +1 -0
- package/dist/src/components/icons/arrow-right.d.ts +1 -0
- package/dist/src/components/icons/arrow-right.js +6 -0
- package/dist/src/components/icons/arrow-right.js.map +1 -0
- package/dist/src/components/icons/arrow-up.d.ts +1 -0
- package/dist/src/components/icons/arrow-up.js +6 -0
- package/dist/src/components/icons/arrow-up.js.map +1 -0
- package/dist/src/components/icons/arrow.d.ts +1 -0
- package/dist/src/components/icons/arrow.js +6 -0
- package/dist/src/components/icons/arrow.js.map +1 -0
- package/dist/src/components/icons/brand-signature.d.ts +1 -0
- package/dist/src/components/icons/brand-signature.js +6 -0
- package/dist/src/components/icons/brand-signature.js.map +1 -0
- package/dist/src/components/icons/check.d.ts +1 -0
- package/dist/src/components/icons/check.js +6 -0
- package/dist/src/components/icons/check.js.map +1 -0
- package/dist/src/components/icons/circle-info.d.ts +1 -0
- package/dist/src/components/icons/circle-info.js +8 -0
- package/dist/src/components/icons/circle-info.js.map +1 -0
- package/dist/src/components/icons/clipboard.d.ts +1 -0
- package/dist/src/components/icons/clipboard.js +7 -0
- package/dist/src/components/icons/clipboard.js.map +1 -0
- package/dist/src/components/icons/close.d.ts +1 -0
- package/dist/src/components/icons/close.js +6 -0
- package/dist/src/components/icons/close.js.map +1 -0
- package/dist/src/components/icons/enterprise.d.ts +1 -0
- package/dist/src/components/icons/enterprise.js +6 -0
- package/dist/src/components/icons/enterprise.js.map +1 -0
- package/dist/src/components/icons/envelope.d.ts +1 -0
- package/dist/src/components/icons/envelope.js +7 -0
- package/dist/src/components/icons/envelope.js.map +1 -0
- package/dist/src/components/icons/family.d.ts +1 -0
- package/dist/src/components/icons/family.js +8 -0
- package/dist/src/components/icons/family.js.map +1 -0
- package/dist/src/components/icons/globe.d.ts +1 -0
- package/dist/src/components/icons/globe.js +6 -0
- package/dist/src/components/icons/globe.js.map +1 -0
- package/dist/src/components/icons/guide.d.ts +1 -0
- package/dist/src/components/icons/guide.js +6 -0
- package/dist/src/components/icons/guide.js.map +1 -0
- package/dist/src/components/icons/home.d.ts +1 -0
- package/dist/src/components/icons/home.js +6 -0
- package/dist/src/components/icons/home.js.map +1 -0
- package/dist/src/components/icons/icon.d.ts +60 -0
- package/dist/src/components/icons/icon.js +2 -0
- package/dist/src/components/icons/icon.js.map +1 -0
- package/dist/src/components/icons/icons.d.ts +43 -36
- package/dist/src/components/icons/icons.js +1 -1
- package/dist/src/components/icons/individual.d.ts +1 -0
- package/dist/src/components/icons/individual.js +6 -0
- package/dist/src/components/icons/individual.js.map +1 -0
- package/dist/src/components/icons/laurel.d.ts +1 -0
- package/dist/src/components/icons/laurel.js +13 -0
- package/dist/src/components/icons/laurel.js.map +1 -0
- package/dist/src/components/icons/machine-learning.d.ts +1 -0
- package/dist/src/components/icons/machine-learning.js +6 -0
- package/dist/src/components/icons/machine-learning.js.map +1 -0
- package/dist/src/components/icons/mark.d.ts +66 -0
- package/dist/src/components/icons/mark.js +2 -0
- package/dist/src/components/icons/mark.js.map +1 -0
- package/dist/src/components/icons/marks/ai.d.ts +1 -0
- package/dist/src/components/icons/marks/ai.js +6 -0
- package/dist/src/components/icons/marks/ai.js.map +1 -0
- package/dist/src/components/icons/marks/av-comparatives.d.ts +1 -0
- package/dist/src/components/icons/marks/av-comparatives.js +12 -0
- package/dist/src/components/icons/marks/av-comparatives.js.map +1 -0
- package/dist/src/components/icons/marks/best-brands.d.ts +1 -0
- package/dist/src/components/icons/marks/best-brands.js +12 -0
- package/dist/src/components/icons/marks/best-brands.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-2024.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-business.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-business.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js +11 -0
- package/dist/src/components/icons/marks/pc-mag-readers.js.map +1 -0
- package/dist/src/components/icons/marks/pc-mag.d.ts +1 -0
- package/dist/src/components/icons/marks/pc-mag.js +11 -0
- package/dist/src/components/icons/marks/pc-mag.js.map +1 -0
- package/dist/src/components/icons/marks/top-product.d.ts +1 -0
- package/dist/src/components/icons/marks/top-product.js +11 -0
- package/dist/src/components/icons/marks/top-product.js.map +1 -0
- package/dist/src/components/icons/marks.d.ts +29 -28
- package/dist/src/components/icons/marks.js +1 -1
- package/dist/src/components/icons/minus.d.ts +1 -0
- package/dist/src/components/icons/minus.js +6 -0
- package/dist/src/components/icons/minus.js.map +1 -0
- package/dist/src/components/icons/pause.d.ts +1 -0
- package/dist/src/components/icons/pause.js +7 -0
- package/dist/src/components/icons/pause.js.map +1 -0
- package/dist/src/components/icons/play.d.ts +1 -0
- package/dist/src/components/icons/play.js +6 -0
- package/dist/src/components/icons/play.js.map +1 -0
- package/dist/src/components/icons/plus.d.ts +1 -0
- package/dist/src/components/icons/plus.js +6 -0
- package/dist/src/components/icons/plus.js.map +1 -0
- package/dist/src/components/icons/quote.d.ts +1 -0
- package/dist/src/components/icons/quote.js +6 -0
- package/dist/src/components/icons/quote.js.map +1 -0
- package/dist/src/components/icons/registry.d.ts +122 -0
- package/dist/src/components/icons/registry.js +4 -0
- package/dist/src/components/icons/registry.js.map +1 -0
- package/dist/src/components/icons/small-business.d.ts +1 -0
- package/dist/src/components/icons/small-business.js +6 -0
- package/dist/src/components/icons/small-business.js.map +1 -0
- package/dist/src/components/{image/image.css.js → img/img.css.js} +1 -1
- package/dist/src/components/img/img.css.js.map +1 -0
- package/dist/src/components/{image/image.d.ts → img/img.d.ts} +2 -2
- package/dist/src/components/img/img.js +17 -0
- package/dist/src/components/img/img.js.map +1 -0
- package/dist/src/components/input/input.css.d.ts +7 -5
- package/dist/src/components/input/input.css.js +1 -1
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +34 -12
- package/dist/src/components/input/input.js +30 -29
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-option.css.js +2 -0
- package/dist/src/components/install-options/install-option.css.js.map +1 -0
- package/dist/src/components/install-options/install-option.d.ts +57 -0
- package/dist/src/components/install-options/install-option.js +29 -0
- package/dist/src/components/install-options/install-option.js.map +1 -0
- package/dist/src/components/install-options/install-options.css.js +1 -1
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +42 -31
- package/dist/src/components/install-options/install-options.js +42 -85
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/key-takeaways/key-takeaways.css.d.ts +9 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js +2 -0
- package/dist/src/components/key-takeaways/key-takeaways.css.js.map +1 -0
- package/dist/src/components/key-takeaways/key-takeaways.d.ts +35 -0
- package/dist/src/components/key-takeaways/key-takeaways.js +10 -0
- package/dist/src/components/key-takeaways/key-takeaways.js.map +1 -0
- package/dist/src/components/label/label.js +3 -3
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -1
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +25 -16
- package/dist/src/components/link/link.js +3 -3
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -1
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +9 -7
- package/dist/src/components/list/list-item/list-item.js +3 -3
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.d.ts +3 -2
- package/dist/src/components/list/list.js +2 -2
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +2 -2
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -8
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/meta/meta.css.d.ts +8 -0
- package/dist/src/components/meta/meta.css.js +2 -0
- package/dist/src/components/meta/meta.css.js.map +1 -0
- package/dist/src/components/meta/meta.d.ts +37 -0
- package/dist/src/components/meta/meta.js +2 -0
- package/dist/src/components/meta/meta.js.map +1 -0
- package/dist/src/components/motion-art/motion-art.d.ts +39 -2
- package/dist/src/components/motion-art/motion-art.js +1 -1
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js +2 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.css.js.map +1 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.d.ts +97 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js +37 -0
- package/dist/src/components/newsletter-signup/newsletter-signup.js.map +1 -0
- package/dist/src/components/overview/overview.css.js +1 -1
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +23 -12
- package/dist/src/components/overview/overview.js +9 -24
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/p/p.css.js +2 -0
- package/dist/src/components/p/p.css.js.map +1 -0
- package/dist/src/components/{paragraph/paragraph.d.ts → p/p.d.ts} +3 -5
- package/dist/src/components/p/p.js +6 -0
- package/dist/src/components/p/p.js.map +1 -0
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +28 -28
- package/dist/src/components/page-switcher/page-switcher.js +5 -13
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +4 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +44 -21
- package/dist/src/components/partner-banner/partner-banner.js +11 -11
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/paste-button/paste-button.css.d.ts +10 -0
- package/dist/src/components/paste-button/paste-button.css.js +2 -0
- package/dist/src/components/paste-button/paste-button.css.js.map +1 -0
- package/dist/src/components/paste-button/paste-button.d.ts +68 -0
- package/dist/src/components/paste-button/paste-button.js +17 -0
- package/dist/src/components/paste-button/paste-button.js.map +1 -0
- package/dist/src/components/picture/picture.js +3 -3
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -1
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +65 -24
- package/dist/src/components/post-card/post-card.js +13 -9
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-card/pricing-card.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-card.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-card.d.ts +80 -0
- package/dist/src/components/pricing-card/pricing-card.js +16 -0
- package/dist/src/components/pricing-card/pricing-card.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature-group.d.ts +50 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js +7 -0
- package/dist/src/components/pricing-card/pricing-feature-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-feature.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-feature.d.ts +64 -0
- package/dist/src/components/pricing-card/pricing-feature.js +19 -0
- package/dist/src/components/pricing-card/pricing-feature.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.css.d.ts +3 -0
- package/dist/src/components/pricing-card/pricing-group.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-group.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-group.d.ts +48 -0
- package/dist/src/components/pricing-card/pricing-group.js +6 -0
- package/dist/src/components/pricing-card/pricing-group.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.css.js +2 -0
- package/dist/src/components/pricing-card/pricing-price.css.js.map +1 -0
- package/dist/src/components/pricing-card/pricing-price.d.ts +56 -0
- package/dist/src/components/pricing-card/pricing-price.js +11 -0
- package/dist/src/components/pricing-card/pricing-price.js.map +1 -0
- package/dist/src/components/process-steps/process-step.css.js +2 -0
- package/dist/src/components/process-steps/process-step.css.js.map +1 -0
- package/dist/src/components/process-steps/process-step.d.ts +31 -0
- package/dist/src/components/process-steps/process-step.js +6 -0
- package/dist/src/components/process-steps/process-step.js.map +1 -0
- package/dist/src/components/process-steps/process-steps.css.js +1 -1
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +36 -19
- package/dist/src/components/process-steps/process-steps.js +5 -26
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/product-hero/product-hero.css.js +2 -0
- package/dist/src/components/product-hero/product-hero.css.js.map +1 -0
- package/dist/src/components/product-hero/product-hero.d.ts +71 -0
- package/dist/src/components/product-hero/product-hero.js +123 -0
- package/dist/src/components/product-hero/product-hero.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.css.js +2 -0
- package/dist/src/components/product-upsell/product-upsell.css.js.map +1 -0
- package/dist/src/components/product-upsell/product-upsell.d.ts +49 -0
- package/dist/src/components/product-upsell/product-upsell.js +14 -0
- package/dist/src/components/product-upsell/product-upsell.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.css.d.ts +3 -0
- package/dist/src/components/progress-bar/progress-bar.css.js +2 -0
- package/dist/src/components/progress-bar/progress-bar.css.js.map +1 -0
- package/dist/src/components/progress-bar/progress-bar.d.ts +27 -0
- package/dist/src/components/progress-bar/progress-bar.js +15 -0
- package/dist/src/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +25 -12
- package/dist/src/components/quick-answer/quick-answer.js +13 -29
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -1
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +9 -5
- package/dist/src/components/radio/radio-group.js +5 -5
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.d.ts +2 -1
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +8 -2
- package/dist/src/components/radio/radio.js +6 -5
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/related-articles/related-articles.css.js +2 -0
- package/dist/src/components/related-articles/related-articles.css.js.map +1 -0
- package/dist/src/components/related-articles/related-articles.d.ts +52 -0
- package/dist/src/components/related-articles/related-articles.js +9 -0
- package/dist/src/components/related-articles/related-articles.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.css.js +2 -0
- package/dist/src/components/report-promo/report-promo.css.js.map +1 -0
- package/dist/src/components/report-promo/report-promo.d.ts +70 -0
- package/dist/src/components/report-promo/report-promo.js +19 -0
- package/dist/src/components/report-promo/report-promo.js.map +1 -0
- package/dist/src/components/review/review-grid.css.js +1 -1
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +27 -6
- package/dist/src/components/review/review-grid.js +7 -7
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -1
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +24 -17
- package/dist/src/components/review/review.js +7 -11
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -1
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +8 -6
- package/dist/src/components/section/section.js +1 -1
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -1
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +22 -23
- package/dist/src/components/section-header/section-header.js +6 -8
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/select/select-option.d.ts +29 -0
- package/dist/src/components/select/select-option.js +2 -0
- package/dist/src/components/select/select-option.js.map +1 -0
- package/dist/src/components/{dropdown/dropdown.css.js → select/select.css.js} +1 -1
- package/dist/src/components/select/select.css.js.map +1 -0
- package/dist/src/components/select/select.d.ts +78 -0
- package/dist/src/components/select/select.js +35 -0
- package/dist/src/components/select/select.js.map +1 -0
- package/dist/src/components/shared/adopt-styles.d.ts +53 -0
- package/dist/src/components/shared/adopt-styles.js +2 -0
- package/dist/src/components/shared/adopt-styles.js.map +1 -0
- package/dist/src/components/shared/controller.slot.d.ts +65 -0
- package/dist/src/components/shared/controller.slot.js +2 -0
- package/dist/src/components/shared/controller.slot.js.map +1 -0
- package/dist/src/components/shared/events.d.ts +19 -23
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/flat-text.d.ts +15 -0
- package/dist/src/components/shared/flat-text.js +2 -0
- package/dist/src/components/shared/flat-text.js.map +1 -0
- package/dist/src/components/shared/form-control.d.ts +27 -3
- package/dist/src/components/shared/form-control.js +11 -1
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.d.ts +5 -5
- package/dist/src/components/shared/form-field.css.js +1 -1
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/hold.d.ts +14 -0
- package/dist/src/components/shared/hold.js +2 -0
- package/dist/src/components/shared/hold.js.map +1 -0
- package/dist/src/components/shared/prop-vocabulary.d.ts +81 -20
- package/dist/src/components/shared/prop-vocabulary.js +1 -1
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/tablist.d.ts +31 -0
- package/dist/src/components/shared/tablist.js +2 -0
- package/dist/src/components/shared/tablist.js.map +1 -0
- package/dist/src/components/shared/token-scales.d.ts +30 -4
- package/dist/src/components/shared/token-scales.js +1 -1
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.js +2 -2
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight/spotlight.css.js +2 -0
- package/dist/src/components/spotlight/spotlight.css.js.map +1 -0
- package/dist/src/components/spotlight/spotlight.d.ts +31 -0
- package/dist/src/components/spotlight/spotlight.js +18 -0
- package/dist/src/components/spotlight/spotlight.js.map +1 -0
- package/dist/src/components/stat/stat-highlight.d.ts +1 -1
- package/dist/src/components/stat/stat.css.d.ts +1 -1
- package/dist/src/components/stat/stat.css.js +1 -1
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +41 -1
- package/dist/src/components/stat/stat.js +12 -1
- package/dist/src/components/stat/stat.js.map +1 -0
- package/dist/src/components/switch/switch.css.js +1 -1
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +10 -2
- package/dist/src/components/switch/switch.js +5 -4
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-group/tab-group.css.js +2 -0
- package/dist/src/components/tab-group/tab-group.css.js.map +1 -0
- package/dist/src/components/tab-group/tab-group.d.ts +172 -0
- package/dist/src/components/tab-group/tab-group.js +16 -0
- package/dist/src/components/tab-group/tab-group.js.map +1 -0
- package/dist/src/components/tab-group/tab-panel.d.ts +30 -0
- package/dist/src/components/tab-group/tab-panel.js +2 -0
- package/dist/src/components/tab-group/tab-panel.js.map +1 -0
- package/dist/src/components/tab-group/tab.css.js +2 -0
- package/dist/src/components/tab-group/tab.css.js.map +1 -0
- package/dist/src/components/tab-group/tab.d.ts +53 -0
- package/dist/src/components/tab-group/tab.js +2 -0
- package/dist/src/components/tab-group/tab.js.map +1 -0
- package/dist/src/components/table-of-contents/reading-line.d.ts +24 -0
- package/dist/src/components/table-of-contents/reading-line.js +2 -0
- package/dist/src/components/table-of-contents/reading-line.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.d.ts +7 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.d.ts +40 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents-item.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.d.ts +10 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js +2 -0
- package/dist/src/components/table-of-contents/table-of-contents.css.js.map +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +116 -0
- package/dist/src/components/table-of-contents/table-of-contents.js +24 -0
- package/dist/src/components/table-of-contents/table-of-contents.js.map +1 -0
- package/dist/src/components/tag/tag.css.js +1 -1
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +31 -4
- package/dist/src/components/tag/tag.js +1 -3
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.d.ts +2 -3
- package/dist/src/components/terminal/terminal-cursor.js +1 -1
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-line.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal-line.css.js +2 -0
- package/dist/src/components/terminal/terminal-line.css.js.map +1 -0
- package/dist/src/components/terminal/terminal-line.d.ts +42 -0
- package/dist/src/components/terminal/terminal-line.js +8 -0
- package/dist/src/components/terminal/terminal-line.js.map +1 -0
- package/dist/src/components/terminal/terminal.css.d.ts +2 -0
- package/dist/src/components/terminal/terminal.css.js +2 -0
- package/dist/src/components/terminal/terminal.css.js.map +1 -0
- package/dist/src/components/terminal/terminal.d.ts +52 -0
- package/dist/src/components/terminal/terminal.js +19 -0
- package/dist/src/components/terminal/terminal.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.d.ts +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js +2 -0
- package/dist/src/components/terminal-hero/terminal-hero.css.js.map +1 -0
- package/dist/src/components/terminal-hero/terminal-hero.d.ts +62 -0
- package/dist/src/components/terminal-hero/terminal-hero.js +48 -0
- package/dist/src/components/terminal-hero/terminal-hero.js.map +1 -0
- package/dist/src/components/terms/terms.css.d.ts +2 -0
- package/dist/src/components/terms/terms.css.js +2 -0
- package/dist/src/components/terms/terms.css.js.map +1 -0
- package/dist/src/components/terms/terms.d.ts +42 -0
- package/dist/src/components/terms/terms.js +9 -0
- package/dist/src/components/terms/terms.js.map +1 -0
- package/dist/src/components/textarea/textarea.css.d.ts +2 -2
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +15 -6
- package/dist/src/components/textarea/textarea.js +13 -17
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +25 -4
- package/dist/src/components/tooltip/tooltip.js +5 -8
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-card.css.d.ts +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js +2 -0
- package/dist/src/components/trust-panel/trust-card.css.js.map +1 -0
- package/dist/src/components/trust-panel/trust-card.d.ts +31 -0
- package/dist/src/components/trust-panel/trust-card.js +10 -0
- package/dist/src/components/trust-panel/trust-card.js.map +1 -0
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +28 -25
- package/dist/src/components/trust-panel/trust-panel.js +10 -57
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.js +1 -1
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +25 -3
- package/dist/src/components/video-player/video-player.js +7 -7
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/loader/create-loader.d.ts +13 -2
- package/dist/src/loader/create-loader.js +1 -1
- package/dist/src/loader/create-loader.js.map +1 -1
- package/dist/src/loader/loader.d.ts +7 -4
- package/dist/src/loader/loader.js.map +1 -1
- package/dist/src/loader/registry.js +1 -1
- package/dist/src/loader/registry.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -1
- package/dist/src/tokens/layout.css +1 -1
- package/dist/src/tokens/scheme-layer.d.ts +55 -0
- package/dist/src/tokens/scheme-layer.js +5 -0
- package/dist/src/tokens/scheme-layer.js.map +1 -0
- package/dist/src/tokens/themes/dark.d.ts +64 -0
- package/dist/src/tokens/themes/dark.js +2 -0
- package/dist/src/tokens/themes/dark.js.map +1 -0
- package/dist/src/tokens/tokens.css +1 -1
- package/dist/src/tokens/tokens.d.ts +4 -25
- package/dist/src/tokens/tokens.js +1 -1
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/vendor/prism/LICENSE +21 -0
- package/dist/src/vendor/prism/README.md +65 -0
- package/dist/src/vendor/prism/prism.d.ts +7 -0
- package/dist/src/vendor/prism/prism.js +13 -0
- package/package.json +163 -105
- package/schemas/README.md +55 -1
- package/schemas/component-manifest.json +4546 -3215
- package/schemas/figma-component-map.json +3247 -0
- package/schemas/manifest-omissions.json +1 -26
- package/schemas/page-schema.json +28 -1
- package/dist/src/components/accordion/accordion-bg.css.js +0 -2
- package/dist/src/components/accordion/accordion-bg.css.js.map +0 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +0 -52
- package/dist/src/components/accordion/accordion-bg.js +0 -76
- package/dist/src/components/accordion/accordion-bg.js.map +0 -1
- package/dist/src/components/alert/alert.css.js +0 -2
- package/dist/src/components/alert/alert.css.js.map +0 -1
- package/dist/src/components/alert/alert.d.ts +0 -55
- package/dist/src/components/alert/alert.js +0 -28
- package/dist/src/components/alert/alert.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.css.js +0 -2
- package/dist/src/components/anchor/anchor-nav.css.js.map +0 -1
- package/dist/src/components/anchor/anchor-nav.js +0 -67
- package/dist/src/components/anchor/anchor-nav.js.map +0 -1
- package/dist/src/components/awards/awards-flex.css.d.ts +0 -1
- package/dist/src/components/awards/awards-flex.css.js +0 -2
- package/dist/src/components/awards/awards-flex.css.js.map +0 -1
- package/dist/src/components/awards/awards-flex.d.ts +0 -65
- package/dist/src/components/awards/awards-flex.js +0 -68
- package/dist/src/components/awards/awards-flex.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.css.d.ts +0 -1
- package/dist/src/components/awards/awards-spotlight.css.js +0 -2
- package/dist/src/components/awards/awards-spotlight.css.js.map +0 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +0 -60
- package/dist/src/components/awards/awards-spotlight.js +0 -51
- package/dist/src/components/awards/awards-spotlight.js.map +0 -1
- package/dist/src/components/card-features/card-features.css.js +0 -2
- package/dist/src/components/card-features/card-features.css.js.map +0 -1
- package/dist/src/components/card-features/card-features.d.ts +0 -43
- package/dist/src/components/card-features/card-features.js +0 -37
- package/dist/src/components/card-features/card-features.js.map +0 -1
- package/dist/src/components/cards/card.css.js +0 -2
- package/dist/src/components/cards/card.css.js.map +0 -1
- package/dist/src/components/cards/card.d.ts +0 -61
- package/dist/src/components/cards/card.js +0 -54
- package/dist/src/components/cards/card.js.map +0 -1
- package/dist/src/components/compare/compare.css.js +0 -2
- package/dist/src/components/compare/compare.css.js.map +0 -1
- package/dist/src/components/compare/compare.d.ts +0 -79
- package/dist/src/components/compare/compare.js +0 -122
- package/dist/src/components/compare/compare.js.map +0 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +0 -15
- package/dist/src/components/divider/divider-horizontal.js +0 -11
- package/dist/src/components/divider/divider-horizontal.js.map +0 -1
- package/dist/src/components/divider/divider-vertical.d.ts +0 -16
- package/dist/src/components/divider/divider-vertical.js +0 -12
- package/dist/src/components/divider/divider-vertical.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.css.js.map +0 -1
- package/dist/src/components/dropdown/dropdown.d.ts +0 -49
- package/dist/src/components/dropdown/dropdown.js +0 -36
- package/dist/src/components/dropdown/dropdown.js.map +0 -1
- package/dist/src/components/features/features.css.js +0 -2
- package/dist/src/components/features/features.css.js.map +0 -1
- package/dist/src/components/features/features.d.ts +0 -21
- package/dist/src/components/features/features.js +0 -28
- package/dist/src/components/features/features.js.map +0 -1
- package/dist/src/components/footer/footer-images.d.ts +0 -3
- package/dist/src/components/footer/footer-images.js +0 -9
- package/dist/src/components/footer/footer-images.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.css.js +0 -2
- package/dist/src/components/footer/footer-links-group.css.js.map +0 -1
- package/dist/src/components/footer/footer-links-group.d.ts +0 -13
- package/dist/src/components/footer/footer-links-group.js +0 -5
- package/dist/src/components/footer/footer-links-group.js.map +0 -1
- package/dist/src/components/footer/footer-lp.d.ts +0 -26
- package/dist/src/components/footer/footer-lp.js +0 -45
- package/dist/src/components/footer/footer-lp.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +0 -2
- package/dist/src/components/footer/footer-nav-menu.css.js.map +0 -1
- package/dist/src/components/footer/footer-nav-menu.js +0 -6
- package/dist/src/components/footer/footer-nav-menu.js.map +0 -1
- package/dist/src/components/header/header-code.css.js +0 -2
- package/dist/src/components/header/header-code.css.js.map +0 -1
- package/dist/src/components/header/header-code.d.ts +0 -50
- package/dist/src/components/header/header-code.js +0 -80
- package/dist/src/components/header/header-code.js.map +0 -1
- package/dist/src/components/header/header.css.js +0 -2
- package/dist/src/components/header/header.css.js.map +0 -1
- package/dist/src/components/header/header.d.ts +0 -32
- package/dist/src/components/header/header.js +0 -165
- package/dist/src/components/header/header.js.map +0 -1
- package/dist/src/components/heading/heading.css.js +0 -2
- package/dist/src/components/heading/heading.css.js.map +0 -1
- package/dist/src/components/heading/heading.js +0 -6
- package/dist/src/components/heading/heading.js.map +0 -1
- package/dist/src/components/help-text/help-text.css.d.ts +0 -3
- package/dist/src/components/help-text/help-text.css.js.map +0 -1
- package/dist/src/components/help-text/help-text.d.ts +0 -14
- package/dist/src/components/help-text/help-text.js +0 -4
- package/dist/src/components/help-text/help-text.js.map +0 -1
- package/dist/src/components/icons/analysis-icon.d.ts +0 -11
- package/dist/src/components/icons/analysis-icon.js +0 -6
- package/dist/src/components/icons/analysis-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +0 -11
- package/dist/src/components/icons/arrow-down-icon.js +0 -6
- package/dist/src/components/icons/arrow-down-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-icon.d.ts +0 -37
- package/dist/src/components/icons/arrow-icon.js +0 -6
- package/dist/src/components/icons/arrow-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +0 -34
- package/dist/src/components/icons/arrow-right-icon.js +0 -6
- package/dist/src/components/icons/arrow-right-icon.js.map +0 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +0 -24
- package/dist/src/components/icons/arrow-up-icon.js +0 -6
- package/dist/src/components/icons/arrow-up-icon.js.map +0 -1
- package/dist/src/components/icons/av-comparatives-icon.d.ts +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js +0 -13
- package/dist/src/components/icons/av-comparatives-icon.js.map +0 -1
- package/dist/src/components/icons/bd-ai-icon.d.ts +0 -13
- package/dist/src/components/icons/bd-ai-icon.js +0 -6
- package/dist/src/components/icons/bd-ai-icon.js.map +0 -1
- package/dist/src/components/icons/best-brands-icon.d.ts +0 -13
- package/dist/src/components/icons/best-brands-icon.js +0 -15
- package/dist/src/components/icons/best-brands-icon.js.map +0 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +0 -37
- package/dist/src/components/icons/brand-signature-icon.js +0 -6
- package/dist/src/components/icons/brand-signature-icon.js.map +0 -1
- package/dist/src/components/icons/check-icon.d.ts +0 -22
- package/dist/src/components/icons/check-icon.js +0 -6
- package/dist/src/components/icons/check-icon.js.map +0 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +0 -26
- package/dist/src/components/icons/circle-info-icon.js +0 -8
- package/dist/src/components/icons/circle-info-icon.js.map +0 -1
- package/dist/src/components/icons/close-icon.d.ts +0 -11
- package/dist/src/components/icons/close-icon.js +0 -6
- package/dist/src/components/icons/close-icon.js.map +0 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +0 -11
- package/dist/src/components/icons/enterprise-icon.js +0 -6
- package/dist/src/components/icons/enterprise-icon.js.map +0 -1
- package/dist/src/components/icons/family-icon.d.ts +0 -11
- package/dist/src/components/icons/family-icon.js +0 -8
- package/dist/src/components/icons/family-icon.js.map +0 -1
- package/dist/src/components/icons/globe-icon.d.ts +0 -11
- package/dist/src/components/icons/globe-icon.js +0 -6
- package/dist/src/components/icons/globe-icon.js.map +0 -1
- package/dist/src/components/icons/guide-icon.d.ts +0 -11
- package/dist/src/components/icons/guide-icon.js +0 -6
- package/dist/src/components/icons/guide-icon.js.map +0 -1
- package/dist/src/components/icons/home-icon.d.ts +0 -11
- package/dist/src/components/icons/home-icon.js +0 -6
- package/dist/src/components/icons/home-icon.js.map +0 -1
- package/dist/src/components/icons/icon-element.d.ts +0 -58
- package/dist/src/components/icons/icon-element.js +0 -2
- package/dist/src/components/icons/icon-element.js.map +0 -1
- package/dist/src/components/icons/individual-icon.d.ts +0 -11
- package/dist/src/components/icons/individual-icon.js +0 -6
- package/dist/src/components/icons/individual-icon.js.map +0 -1
- package/dist/src/components/icons/laurel-icon.d.ts +0 -11
- package/dist/src/components/icons/laurel-icon.js +0 -14
- package/dist/src/components/icons/laurel-icon.js.map +0 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +0 -11
- package/dist/src/components/icons/machine-learning-icon.js +0 -6
- package/dist/src/components/icons/machine-learning-icon.js.map +0 -1
- package/dist/src/components/icons/minus-icon.d.ts +0 -11
- package/dist/src/components/icons/minus-icon.js +0 -7
- package/dist/src/components/icons/minus-icon.js.map +0 -1
- package/dist/src/components/icons/missing-icon.d.ts +0 -41
- package/dist/src/components/icons/missing-icon.js +0 -8
- package/dist/src/components/icons/missing-icon.js.map +0 -1
- package/dist/src/components/icons/pause-icon.d.ts +0 -11
- package/dist/src/components/icons/pause-icon.js +0 -7
- package/dist/src/components/icons/pause-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-2024-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-2024-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-business-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-business-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-business-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-icon.js.map +0 -1
- package/dist/src/components/icons/pc-mag-readers-icon.d.ts +0 -13
- package/dist/src/components/icons/pc-mag-readers-icon.js +0 -14
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +0 -1
- package/dist/src/components/icons/play-icon.d.ts +0 -11
- package/dist/src/components/icons/play-icon.js +0 -6
- package/dist/src/components/icons/play-icon.js.map +0 -1
- package/dist/src/components/icons/plus-icon.d.ts +0 -11
- package/dist/src/components/icons/plus-icon.js +0 -6
- package/dist/src/components/icons/plus-icon.js.map +0 -1
- package/dist/src/components/icons/quote-icon.d.ts +0 -20
- package/dist/src/components/icons/quote-icon.js +0 -6
- package/dist/src/components/icons/quote-icon.js.map +0 -1
- package/dist/src/components/icons/small-business-icon.d.ts +0 -11
- package/dist/src/components/icons/small-business-icon.js +0 -6
- package/dist/src/components/icons/small-business-icon.js.map +0 -1
- package/dist/src/components/icons/top-product-icon.d.ts +0 -13
- package/dist/src/components/icons/top-product-icon.js +0 -14
- package/dist/src/components/icons/top-product-icon.js.map +0 -1
- package/dist/src/components/image/image.css.js.map +0 -1
- package/dist/src/components/image/image.js +0 -17
- package/dist/src/components/image/image.js.map +0 -1
- package/dist/src/components/input/input-clipboard.css.d.ts +0 -9
- package/dist/src/components/input/input-clipboard.css.js +0 -2
- package/dist/src/components/input/input-clipboard.css.js.map +0 -1
- package/dist/src/components/input/input-clipboard.d.ts +0 -52
- package/dist/src/components/input/input-clipboard.js +0 -62
- package/dist/src/components/input/input-clipboard.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +0 -2
- package/dist/src/components/light-carousel/light-carousel.css.js.map +0 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +0 -74
- package/dist/src/components/light-carousel/light-carousel.js +0 -34
- package/dist/src/components/light-carousel/light-carousel.js.map +0 -1
- package/dist/src/components/modal/modal.css.js +0 -2
- package/dist/src/components/modal/modal.css.js.map +0 -1
- package/dist/src/components/modal/modal.d.ts +0 -52
- package/dist/src/components/modal/modal.js +0 -17
- package/dist/src/components/modal/modal.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.css.js +0 -2
- package/dist/src/components/paragraph/paragraph.css.js.map +0 -1
- package/dist/src/components/paragraph/paragraph.js +0 -6
- package/dist/src/components/paragraph/paragraph.js.map +0 -1
- package/dist/src/components/pricing-cards/adopt-styles.d.ts +0 -10
- package/dist/src/components/pricing-cards/adopt-styles.js +0 -2
- package/dist/src/components/pricing-cards/adopt-styles.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +0 -18
- package/dist/src/components/pricing-cards/new-pricing-card.js +0 -12
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +0 -19
- package/dist/src/components/pricing-cards/pricing-card-actions.js +0 -25
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +0 -14
- package/dist/src/components/pricing-cards/pricing-card-container.js +0 -6
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +0 -22
- package/dist/src/components/pricing-cards/pricing-card-header.js +0 -18
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +0 -39
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +0 -49
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +0 -16
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +0 -12
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +0 -155
- package/dist/src/components/pricing-cards/pricing-card.js +0 -258
- package/dist/src/components/pricing-cards/pricing-card.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +0 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +0 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +0 -13
- package/dist/src/components/pricing-cards/pricing-feature-item.js +0 -5
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +0 -1
- package/dist/src/components/progress/progress.css.d.ts +0 -3
- package/dist/src/components/progress/progress.css.js +0 -2
- package/dist/src/components/progress/progress.css.js.map +0 -1
- package/dist/src/components/progress/progress.d.ts +0 -19
- package/dist/src/components/progress/progress.js +0 -11
- package/dist/src/components/progress/progress.js.map +0 -1
- package/dist/src/components/radio/toggle-radio.d.ts +0 -28
- package/dist/src/components/radio/toggle-radio.js +0 -15
- package/dist/src/components/radio/toggle-radio.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +0 -2
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +0 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +0 -22
- package/dist/src/components/spotlight-section/spotlight-section.js +0 -46
- package/dist/src/components/spotlight-section/spotlight-section.js.map +0 -1
- package/dist/src/components/stat/stat-tile.d.ts +0 -24
- package/dist/src/components/stat/stat-tile.js +0 -7
- package/dist/src/components/stat/stat-tile.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.css.d.ts +0 -16
- package/dist/src/components/tab-list/tab-list.css.js +0 -2
- package/dist/src/components/tab-list/tab-list.css.js.map +0 -1
- package/dist/src/components/tab-list/tab-list.d.ts +0 -99
- package/dist/src/components/tab-list/tab-list.js +0 -25
- package/dist/src/components/tab-list/tab-list.js.map +0 -1
- package/dist/src/components/tabs/tabs.css.js +0 -2
- package/dist/src/components/tabs/tabs.css.js.map +0 -1
- package/dist/src/components/tabs/tabs.d.ts +0 -69
- package/dist/src/components/tabs/tabs.js +0 -29
- package/dist/src/components/tabs/tabs.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.css.js +0 -2
- package/dist/src/components/terminal/terminal-message.css.js.map +0 -1
- package/dist/src/components/terminal/terminal-message.d.ts +0 -44
- package/dist/src/components/terminal/terminal-message.js +0 -68
- package/dist/src/components/terminal/terminal-message.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.css.js +0 -2
- package/dist/src/components/termsOfUse/terms.css.js.map +0 -1
- package/dist/src/components/termsOfUse/terms.d.ts +0 -22
- package/dist/src/components/termsOfUse/terms.js +0 -78
- package/dist/src/components/termsOfUse/terms.js.map +0 -1
- /package/dist/src/components/{accordion/accordion-bg.css.d.ts → agent-endpoints/agent-endpoints-pills.css.d.ts} +0 -0
- /package/dist/src/components/{anchor → anchor-nav}/anchor-nav.css.d.ts +0 -0
- /package/dist/src/components/{card-features/card-features.css.d.ts → awards/award-marks.css.d.ts} +0 -0
- /package/dist/src/components/{cards/card.css.d.ts → awards/award.css.d.ts} +0 -0
- /package/dist/src/components/{compare/compare.css.d.ts → bar-chart/bar-chart.css.d.ts} +0 -0
- /package/dist/src/components/{features/features.css.d.ts → card/card-grid.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-links-group.css.d.ts → card/card.css.d.ts} +0 -0
- /package/dist/src/components/{footer/footer-nav-menu.css.d.ts → dialog/dialog.css.d.ts} +0 -0
- /package/dist/src/components/{header/header-code.css.d.ts → footer/footer-group.css.d.ts} +0 -0
- /package/dist/src/components/{header/header.css.d.ts → footer/footer-nav.css.d.ts} +0 -0
- /package/dist/src/components/{heading/heading.css.d.ts → h/h.css.d.ts} +0 -0
- /package/dist/src/components/{image/image.css.d.ts → img/img.css.d.ts} +0 -0
- /package/dist/src/components/{light-carousel/light-carousel.css.d.ts → install-options/install-option.css.d.ts} +0 -0
- /package/dist/src/components/{modal/modal.css.d.ts → newsletter-signup/newsletter-signup.css.d.ts} +0 -0
- /package/dist/src/components/{paragraph/paragraph.css.d.ts → p/p.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards → pricing-card}/pricing-card.css.d.ts +0 -0
- /package/dist/src/components/{pricing-cards/new-pricing.css.d.ts → pricing-card/pricing-feature-group.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-actions.css.d.ts → pricing-card/pricing-feature.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-container.css.d.ts → pricing-card/pricing-price.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-header.css.d.ts → process-steps/process-step.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-pricing.css.d.ts → product-hero/product-hero.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-card-show-more.css.d.ts → product-upsell/product-upsell.css.d.ts} +0 -0
- /package/dist/src/components/{pricing-cards/pricing-feature-item.css.d.ts → related-articles/related-articles.css.d.ts} +0 -0
- /package/dist/src/components/{spotlight-section/spotlight-section.css.d.ts → report-promo/report-promo.css.d.ts} +0 -0
- /package/dist/src/components/{dropdown/dropdown.css.d.ts → select/select.css.d.ts} +0 -0
- /package/dist/src/components/{tabs/tabs.css.d.ts → spotlight/spotlight.css.d.ts} +0 -0
- /package/dist/src/components/{terminal/terminal-message.css.d.ts → tab-group/tab-group.css.d.ts} +0 -0
- /package/dist/src/components/{termsOfUse/terms.css.d.ts → tab-group/tab.css.d.ts} +0 -0
|
@@ -1,26 +1,22 @@
|
|
|
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{SIZES as t,isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as i}from"../shared/controller.slot.js";import{CONTROL_ID as a,FIELD_SLOTS as o,ValueControl as s,describedBy as c,fieldHint as l,fieldLabel as u,omitEmpty as d}from"../shared/form-control.js";import f from"../shared/form-field.css.js";import p from"./textarea.css.js";import{LitElement as m,html as h,nothing as g}from"lit";import{property as _}from"lit/decorators.js";import{keyed as v}from"lit/directives/keyed.js";var y=class extends s(m){constructor(...e){super(...e),this.size=`md`,this.value=``,this.placeholder=``,this.rows=4,this.required=!1,this.invalid=!1,this.validated=!1,this.disabled=!1,this.name=``,this._slots=new i(this,{slots:o})}static{this.styles=[f,p]}get _control(){return this.renderRoot?.querySelector?.(`textarea`)}willUpdate(e){e.has(`size`)&&!n(t,this.size)&&(this.size=`md`)}updated(){this._sync()}_onInput(e){this.value=e.target.value,this._sync()}_onChange(e){this.value=e.target.value,this._relayChange()}render(){let e=this.disabled||this._formDisabled,t=e?`form-input--disabled`:this.invalid?`form-input--error`:this.validated?`form-input--success`:``,n=this.invalid?`error`:this.validated?`success`:`default`;return h`
|
|
2
2
|
<div class="input-container">
|
|
3
|
-
${this.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
id="${f}"
|
|
9
|
-
class="form-input-bd ${e} ${r} ${this._attempted?`form-input--attempted`:``}"
|
|
3
|
+
${u(this._slots,{size:this.size,required:this.required},h`<slot name="label"></slot>`)}
|
|
4
|
+
${v(this._resets,h`<textarea
|
|
5
|
+
id=${a}
|
|
6
|
+
part="textarea"
|
|
7
|
+
class="form-input-bd input-${this.size} ${t} ${this._attempted?`form-input--attempted`:``}"
|
|
10
8
|
rows=${this.rows}
|
|
11
|
-
name="${this.name||
|
|
12
|
-
placeholder=${this.placeholder||
|
|
9
|
+
name="${this.name||g}"
|
|
10
|
+
placeholder=${this.placeholder||g}
|
|
13
11
|
?required=${this.required}
|
|
14
|
-
?disabled=${
|
|
15
|
-
aria-invalid="${this.invalid?`true`:
|
|
16
|
-
aria-describedby
|
|
12
|
+
?disabled=${e}
|
|
13
|
+
aria-invalid="${this.invalid?`true`:g}"
|
|
14
|
+
aria-describedby=${c(this._slots)}
|
|
17
15
|
.value=${this.value}
|
|
18
16
|
@input=${this._onInput}
|
|
19
17
|
@change=${this._onChange}
|
|
20
18
|
></textarea>`)}
|
|
21
|
-
${this.
|
|
22
|
-
${this.tooltip}
|
|
23
|
-
</div>`:l}
|
|
19
|
+
${l(this._slots,n,h`<slot name="hint"></slot>`)}
|
|
24
20
|
</div>
|
|
25
|
-
`}};
|
|
21
|
+
`}};r([_({type:String,reflect:!0})],y.prototype,`size`,void 0),r([_({type:String})],y.prototype,`value`,void 0),r([_({type:String})],y.prototype,`placeholder`,void 0),r([_({type:Number})],y.prototype,`rows`,void 0),r([_({type:Boolean})],y.prototype,`required`,void 0),r([_({type:Boolean})],y.prototype,`invalid`,void 0),r([_({type:Boolean,reflect:!0})],y.prototype,`validated`,void 0),r([_({type:Boolean,reflect:!0})],y.prototype,`disabled`,void 0),r([_({type:String,reflect:!0,converter:d})],y.prototype,`name`,void 0),y=r([e(`bd-textarea`)],y);export{y as BdTextarea};
|
|
26
22
|
//# sourceMappingURL=textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":["_decorate","__decorate","formFieldCSS","textareaCSS","
|
|
1
|
+
{"version":3,"file":"textarea.js","names":["_decorate","__decorate","formFieldCSS","textareaCSS","BdTextarea","ValueControl","LitElement","_args","SlotController","FIELD_SLOTS","changed","isOneOf","SIZES","disabled","stateClass","tone","fieldLabel","keyed","CONTROL_ID","nothing","describedBy","fieldHint","property","omitEmpty","defineElement"],"sources":["../../../../src/components/textarea/textarea.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { keyed } from 'lit/directives/keyed.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { formFieldCSS } from '#shared/form-field.css.ts';\nimport { textareaCSS } from './textarea.css.ts';\nimport { SIZES, isOneOf, type Size } from '#shared/prop-vocabulary.ts';\nimport { CONTROL_ID, FIELD_SLOTS, ValueControl, describedBy, fieldHint, fieldLabel, omitEmpty } from '#shared/form-control.ts';\nimport { SlotController } from '#shared/controller.slot.ts';\n\n/**\n * A multi-line text field.\n *\n * <bd-textarea name=\"note\" rows=\"3\">\n * <span slot=\"label\">Anything we should know?</span>\n * <span slot=\"hint\">We read every one.</span>\n * </bd-textarea>\n *\n * The label and the hint are the page's, in slots, as on bd-input\n * (shared/form-control.ts). It sends the native `input` and `change`; a\n * listener reads event.target.value.\n *\n * The shared-stylesheet work missed it once: the input, the select and 3.x's\n * clipboard field were collapsed onto shared/form-field.css.ts, and this one\n * kept a stylesheet of its\n * own and, with it, no size axis, no label, no help text and no validation\n * states. It pinned the `md` radius and a fixed 16px type, so the Control\n * Sizes story — which renders it in all three size rows under a caption that\n * names it — showed it disagreeing with the other three at `sm` and `lg`.\n *\n * It now composes the same sheet and takes the same props, so a textarea and\n * an input of the same size are the same control with a different number of\n * lines.\n */\n@defineElement('bd-textarea')\nexport class BdTextarea extends ValueControl(LitElement) {\n static styles = [formFieldCSS, textareaCSS];\n\n @property({ type: String, reflect: true })\n size: Size = 'md';\n /* The current value; the value attribute is the default a form reset\n returns to, as on bd-input. See ValueControl. */\n @property({ type: String })\n value = '';\n @property({ type: String })\n placeholder = '';\n @property({ type: Number })\n rows = 4;\n @property({ type: Boolean })\n required = false;\n @property({ type: Boolean })\n invalid = false;\n @property({ type: Boolean, reflect: true })\n validated = false;\n @property({ type: Boolean, reflect: true })\n disabled = false;\n // reflected, because a form reads the name off the element\n @property({ type: String, reflect: true, converter: omitEmpty })\n name = '';\n\n protected _slots = new SlotController(this, { slots: FIELD_SLOTS });\n\n protected get _control(): HTMLTextAreaElement | null {\n return this.renderRoot?.querySelector?.('textarea');\n }\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n }\n\n updated() {\n this._sync();\n }\n\n /* The native input event retargets to the host, so the host's value follows\n the <textarea> on the way -- this listener runs on the <textarea> itself,\n before the page's -- and the event is not sent again. change does not\n leave the shadow root, so it is (shared/form-control.ts). 3.x sent\n bd-input with the bare string and bd-change with { value, name }. */\n _onInput(e: Event & { target: HTMLTextAreaElement }) {\n this.value = e.target.value;\n this._sync();\n }\n\n _onChange(e: Event & { target: HTMLTextAreaElement }) {\n this.value = e.target.value;\n this._relayChange();\n }\n\n render() {\n const disabled = this.disabled || this._formDisabled;\n const stateClass = disabled\n ? 'form-input--disabled'\n : this.invalid\n ? 'form-input--error'\n : this.validated\n ? 'form-input--success'\n : '';\n\n const tone = this.invalid ? 'error' : this.validated ? 'success' : 'default';\n\n return html`\n <div class=\"input-container\">\n ${fieldLabel(this._slots, { size: this.size, required: this.required }, html`<slot name=\"label\"></slot>`)}\n ${keyed(this._resets, html`<textarea\n id=${CONTROL_ID}\n part=\"textarea\"\n class=\"form-input-bd input-${this.size} ${stateClass} ${this._attempted ? 'form-input--attempted' : ''}\"\n rows=${this.rows}\n name=\"${this.name || nothing}\"\n placeholder=${this.placeholder || nothing}\n ?required=${this.required}\n ?disabled=${disabled}\n aria-invalid=\"${this.invalid ? 'true' : nothing}\"\n aria-describedby=${describedBy(this._slots)}\n .value=${this.value}\n @input=${this._onInput}\n @change=${this._onChange}\n ></textarea>`)}\n ${fieldHint(this._slots, tone, html`<slot name=\"hint\"></slot>`)}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-textarea': BdTextarea;\n }\n}\n"],"mappings":"A,+pBAqCO,IAAMI,EAAN,cAAyBC,EAAaC,CAAU,CAAC,AAAC,C,8BAI1C,KAAA,KAAA,KAIL,KAAA,MAAA,GAEM,KAAA,YAAA,GAEP,KAAA,KAAA,EAEI,KAAA,SAAA,GAED,KAAA,QAAA,GAEE,KAAA,UAAA,GAED,KAAA,SAAA,GAGJ,KAAA,KAAA,GAEY,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAOC,CAAY,CAAC,C,QAxBlD,KAAA,OAAA,CAACP,EAAcC,CAAW,C,CA0B1C,IAAc,UAAuC,CACnD,OAAO,KAAK,YAAY,gBAAgB,UAAU,CACpD,CAEA,WAAW,EAA+B,CACpCO,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQC,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,KACrE,CAEA,SAAU,CACR,KAAK,MAAM,CACb,CAOA,SAAS,EAA4C,CACnD,KAAK,MAAQ,EAAE,OAAO,MACtB,KAAK,MAAM,CACb,CAEA,UAAU,EAA4C,CACpD,KAAK,MAAQ,EAAE,OAAO,MACtB,KAAK,aAAa,CACpB,CAEA,QAAS,CACP,IAAMC,EAAW,KAAK,UAAY,KAAK,cACjCC,EAAaD,EACf,uBACA,KAAK,QACH,oBACA,KAAK,UACH,sBACA,GAEFE,EAAO,KAAK,QAAU,QAAU,KAAK,UAAY,UAAY,UAEnE,MAAO,EAAI;;UAELC,EAAW,KAAK,OAAQ,CAAE,KAAM,KAAK,KAAM,SAAU,KAAK,QAAS,EAAG,CAAI,4BAA4B,EAAE;UACxGC,EAAM,KAAK,QAAS,CAAI;eACnBC,EAAW;;uCAEa,KAAK,KAAK,GAAGJ,EAAW,GAAG,KAAK,WAAa,wBAA0B,GAAG;iBAChG,KAAK,KAAK;kBACT,KAAK,MAAQK,EAAQ;wBACf,KAAK,aAAeA,EAAQ;sBAC9B,KAAK,SAAS;sBACdN,EAAS;0BACL,KAAK,QAAU,OAASM,EAAQ;6BAC7BC,EAAY,KAAK,MAAM,EAAE;mBACnC,KAAK,MAAM;mBACX,KAAK,SAAS;oBACb,KAAK,UAAU;qBACd,EAAE;UACbC,EAAU,KAAK,OAAQN,EAAM,CAAI,2BAA2B,EAAE;;KAGtE,CACF,EArFGf,EAAA,CAAAsB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAlB,EAAA,UAAA,OAAA,IAAA,EAAA,EAIxCJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAlB,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAlB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAlB,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAlB,EAAA,UAAA,WAAA,IAAA,EAAA,EAE1BJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAlB,EAAA,UAAA,UAAA,IAAA,EAAA,EAE1BJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAlB,EAAA,UAAA,YAAA,IAAA,EAAA,EAEzCJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAlB,EAAA,UAAA,WAAA,IAAA,EAAA,EAGzCJ,EAAA,CAAAsB,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAWC,CAAU,CAAC,CAAA,EAAAnB,EAAA,UAAA,OAAA,IAAA,EAAA,EAvBhE,EAAAJ,EAAA,CAAAwB,EAAc,aAAa,CAAA,EAAApB,CAAA,E"}
|
|
@@ -1,24 +1,42 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
4
|
+
import "../shared/events.js";
|
|
3
5
|
type Described = {
|
|
4
6
|
trigger: Element & {
|
|
5
7
|
description: unknown;
|
|
6
8
|
};
|
|
7
9
|
kind: 'property';
|
|
10
|
+
text: string;
|
|
8
11
|
} | {
|
|
9
12
|
trigger: Element;
|
|
10
13
|
kind: 'idref';
|
|
11
|
-
|
|
14
|
+
ids: string[];
|
|
15
|
+
assigned: Element[];
|
|
12
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* A short explanatory bubble shown while its trigger is hovered or focused.
|
|
19
|
+
*
|
|
20
|
+
* The trigger is the default slot; what the bubble says is the `content`
|
|
21
|
+
* slot, the page's own words (`<span slot="content">`). The content also
|
|
22
|
+
* describes the trigger to assistive technology -- see _describe().
|
|
23
|
+
*
|
|
24
|
+
* Shown and hidden by the stylesheet, on :hover and :focus-within, and
|
|
25
|
+
* reported as bd-show and bd-hide when that changes, then bd-after-show and
|
|
26
|
+
* bd-after-hide once the fade has run (N8). None of them is cancelable: the
|
|
27
|
+
* reveal is CSS, so there is nothing for a listener to prevent.
|
|
28
|
+
*/
|
|
13
29
|
export declare class BdTooltip extends LitElement {
|
|
14
30
|
static styles: import("lit").CSSResult[];
|
|
15
|
-
|
|
31
|
+
_slots: SlotController<"content">;
|
|
16
32
|
_dismissed: boolean;
|
|
17
33
|
_ro?: ResizeObserver;
|
|
18
34
|
_onShow: () => void;
|
|
19
35
|
_onKeydown: (e: KeyboardEvent) => void;
|
|
20
36
|
_onLeave: (e: MouseEvent | FocusEvent) => void;
|
|
21
37
|
_described?: Described | null;
|
|
38
|
+
_onSettle: () => void;
|
|
39
|
+
_shown: boolean;
|
|
22
40
|
/**
|
|
23
41
|
* The margin the bubble keeps from each viewport edge, read from the same
|
|
24
42
|
* token the stylesheet subtracts. The cap there is `100vw - --spacing-32`,
|
|
@@ -34,9 +52,12 @@ export declare class BdTooltip extends LitElement {
|
|
|
34
52
|
_observe(): void;
|
|
35
53
|
connectedCallback(): void;
|
|
36
54
|
disconnectedCallback(): void;
|
|
55
|
+
_syncShown(): void;
|
|
56
|
+
_afterFade(shown: boolean): Promise<void>;
|
|
37
57
|
_describe(): void;
|
|
58
|
+
_referable(trigger: Element, contents: Element[]): boolean;
|
|
38
59
|
_undescribe(): void;
|
|
39
|
-
updated(
|
|
60
|
+
updated(): void;
|
|
40
61
|
render(): import("lit-html").TemplateResult<1>;
|
|
41
62
|
}
|
|
42
63
|
declare global {
|
|
@@ -1,13 +1,10 @@
|
|
|
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 n from"./tooltip.css.js";import{LitElement as
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import r from"./tooltip.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{state as s}from"lit/decorators.js";var c=0,l=`bd-tooltip-content-`,u=[`mouseenter`,`mouseleave`,`focusin`,`focusout`],d=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[],text:[`content`]}),this._dismissed=!1,this._shown=!1}static{this.styles=[r]}_margin(){let e=getComputedStyle(this).getPropertyValue(`--spacing-16`),t=parseFloat(e),n=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;return Number.isFinite(t)?e.includes(`rem`)?t*n:t:16}_place(){let e=this.renderRoot?.querySelector(`.bubble`);if(!e)return;e.style.setProperty(`--bd-tooltip-shift`,`0px`);let t=e.getBoundingClientRect();if(t.width===0)return;let n=this._margin(),r=n-t.left,i=window.innerWidth-n-t.right,a=r>i?r:Math.min(Math.max(0,r),i);e.style.setProperty(`--bd-tooltip-shift`,`${Math.round(a)}px`)}firstUpdated(){this._place(),this._observe()}get _showing(){return!this._dismissed&&this._slots.has(`content`)&&(this.matches(`:hover`)||this.matches(`:focus-within`))}_observe(){if(typeof ResizeObserver>`u`||this._ro)return;this._ro=new ResizeObserver(()=>this._place()),this._ro.observe(this);let e=this.renderRoot?.querySelector(`.bubble`);e&&this._ro.observe(e)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._observe(),this._onShow=()=>this._place(),this.addEventListener(`mouseenter`,this._onShow),this.addEventListener(`focusin`,this._onShow),window.addEventListener(`resize`,this._onShow),this._onKeydown=e=>{e.key===`Escape`&&!e.defaultPrevented&&this._showing&&(e.preventDefault(),this._dismissed=!0)},this._onLeave=e=>{if(!this._dismissed)return;let t=e.type===`mouseleave`||!this.matches(`:hover`),n=e.type===`focusout`?!this.contains(e.relatedTarget)&&!this.shadowRoot.contains(e.relatedTarget):!this.matches(`:focus-within`);t&&n&&(this._dismissed=!1)},document.addEventListener(`keydown`,this._onKeydown,!0),this.addEventListener(`mouseleave`,this._onLeave),this.addEventListener(`focusout`,this._onLeave),this._onSettle=()=>{setTimeout(()=>this._syncShown())};for(let e of u)this.addEventListener(e,this._onSettle)}disconnectedCallback(){this.removeEventListener(`mouseenter`,this._onShow),this.removeEventListener(`focusin`,this._onShow),window.removeEventListener(`resize`,this._onShow),document.removeEventListener(`keydown`,this._onKeydown,!0),this.removeEventListener(`mouseleave`,this._onLeave),this.removeEventListener(`focusout`,this._onLeave);for(let e of u)this.removeEventListener(e,this._onSettle);this._ro?.disconnect(),this._ro=void 0,super.disconnectedCallback()}_syncShown(){let e=this.isConnected&&this._showing;e!==this._shown&&(this._shown=e,e?this.dispatchEvent(new CustomEvent(`bd-show`,{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`bd-hide`,{bubbles:!0,composed:!0})),this._afterFade(e))}async _afterFade(e){await this.updateComplete;let t=this.renderRoot.querySelector(`.bubble`)?.getAnimations()??[];await Promise.allSettled(t.map(e=>e.finished)),this._shown===e&&(e?this.dispatchEvent(new CustomEvent(`bd-after-show`,{bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`bd-after-hide`,{bubbles:!0,composed:!0})))}_describe(){let e=(this.shadowRoot?.querySelector(`slot:not([name])`))?.assignedElements()[0],t=this._slots.elements(`content`),n=this._slots.text(`content`);if(e&&e.localName.includes(`-`)&&!customElements.get(e.localName)){this._undescribe(),customElements.whenDefined(e.localName).then(()=>this._describe());return}if(!e||!n){this._undescribe();return}let r=this._described;if(`description`in e&&e.localName.includes(`-`)){if(r?.kind===`property`&&r.trigger===e&&r.text===n)return;this._undescribe(),e.description=n,this._described={trigger:e,kind:`property`,text:n}}else if(!e.localName.includes(`-`)&&this._referable(e,t)){if(r?.kind===`idref`&&r.trigger===e&&r.ids.length===t.length&&t.every((e,t)=>e.id===r.ids[t]))return;this._undescribe();let n=t.filter(e=>!e.id);for(let e of n)e.id=`${l}${++c}`;let i=t.map(e=>e.id),a=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean);e.setAttribute(`aria-describedby`,[...a,...i].join(` `)),this._described={trigger:e,kind:`idref`,ids:i,assigned:n}}else{this._undescribe();return}this.requestUpdate()}_referable(e,t){let n=e.getRootNode();return t.length>0&&t.every(e=>e.getRootNode()===n)}_undescribe(){let e=this._described;if(e){if(e.kind===`property`)e.trigger.description=``;else{let t=(e.trigger.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(t=>t&&!e.ids.includes(t));t.length?e.trigger.setAttribute(`aria-describedby`,t.join(` `)):e.trigger.removeAttribute(`aria-describedby`);for(let t of e.assigned)t.id.startsWith(l)&&t.removeAttribute(`id`)}this._described=null,this.requestUpdate()}}updated(){this._describe(),this._syncShown()}render(){return a`
|
|
2
2
|
<slot @slotchange=${()=>this._describe()}></slot>
|
|
3
|
-
<!-- the trigger's description: hidden, but slotted, because a node
|
|
4
|
-
assigned to no slot is not in the flat tree and Chrome then drops
|
|
5
|
-
an aria-describedby that points at it -->
|
|
6
|
-
<span hidden><slot name="description"></slot></span>
|
|
7
3
|
<span
|
|
8
4
|
class="bubble ${this._dismissed?`bubble--dismissed`:``}"
|
|
9
5
|
role="tooltip"
|
|
10
|
-
aria-hidden="${this._described?`true`:
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
aria-hidden="${this._described?`true`:o}"
|
|
7
|
+
?hidden=${!this._slots.has(`content`)}
|
|
8
|
+
><slot name="content"></slot></span>
|
|
9
|
+
`}};t([s()],d.prototype,`_dismissed`,void 0),d=t([e(`bd-tooltip`)],d);export{d as BdTooltip};
|
|
13
10
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":["_decorate","__decorate","tooltipCSS","descriptionIds","BdTooltip","LitElement","_args","raw","px","rem","bubble","box","margin","minShift","maxShift","shift","pointerGone","focusGone","trigger","node","ids","d","changed","nothing","property","state","defineElement"],"sources":["../../../../src/components/tooltip/tooltip.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { tooltipCSS } from './tooltip.css.ts';\n\nlet descriptionIds = 0;\n\ntype Described =\n | { trigger: Element & { description: unknown }; kind: 'property' }\n | { trigger: Element; kind: 'idref'; node: HTMLSpanElement };\n\n@defineElement('bd-tooltip')\nexport class BdTooltip extends LitElement {\n static styles = [tooltipCSS];\n\n @property({ type: String })\n text = '';\n /* Set by Escape and cleared once neither the pointer nor focus is on the\n tooltip any more, so the next hover or focus shows it again. */\n @state()\n _dismissed = false;\n\n _ro? : ResizeObserver;\n _onShow! : () => void;\n _onKeydown!: (e: KeyboardEvent) => void;\n _onLeave! : (e: MouseEvent | FocusEvent) => void;\n _described?: Described | null;\n\n /* The bubble is centred on its trigger and is wider than it, so near a\n viewport edge part of it lands outside the page. No CSS can fix that --\n the browser cannot be asked \"where is my trigger\" from a stylesheet -- so\n the shift is measured here and handed back to CSS as a custom property.\n\n Deliberately additive: --bd-tooltip-shift defaults to 0 in the stylesheet,\n so a tooltip in a document where this never runs renders exactly as it did\n before. getBoundingClientRect and ResizeObserver are both already used by\n five components in this package; this is the same pattern, not a new one. */\n /**\n * The margin the bubble keeps from each viewport edge, read from the same\n * token the stylesheet subtracts. The cap there is `100vw - --spacing-32`,\n * which is that margin on each side, and the two numbers have to agree: the\n * previous version clamped to a hard-coded 8 while the stylesheet reserved\n * 16, so placement aimed at a boundary the width contract had not left room\n * for.\n */\n _margin() {\n const raw = getComputedStyle(this).getPropertyValue('--spacing-16');\n const px = parseFloat(raw);\n /* A custom property reads back as written, 1rem, so the rem is turned into\n pixels at the root's own size -- the one the stylesheet's cap resolves\n at. It was multiplied by 16, which is right only at the default size:\n a reader at 24px got a 24px cap and a 16px clamp. */\n const rem = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n /* Tokens are installed in document scope and always resolve; the fallback\n is for a disconnected element, where getComputedStyle returns nothing. */\n return Number.isFinite(px) ? (raw.includes('rem') ? px * rem : px) : 16;\n }\n\n /* The bubble is centred on its trigger and is wider than it, so near a\n viewport edge part of it lands outside the page. No CSS can fix that --\n the browser cannot be asked \"where is my trigger\" from a stylesheet -- so\n the shift is measured here and handed back to CSS as a custom property.\n\n Deliberately additive: --bd-tooltip-shift defaults to 0 in the stylesheet,\n so a tooltip in a document where this never runs renders exactly as it did\n before.\n\n Both edges, not one. The previous version corrected whichever edge it\n found outside first and stopped -- an `if` on the left and an `else if` on\n the right -- which is only sound while the bubble is narrower than the\n space between the margins. It was not: the border box ran 16px past its\n own cap, so pushing the left edge in pushed the right edge out and the\n `else if` never ran to notice.\n\n Now the two constraints are solved together. For a shift s the bubble\n lands at [left + s, right + s], and staying inside the margins means\n\n s >= M - left and s <= V - M - right\n\n so the centred position s = 0 is clamped into [minShift, maxShift]. With\n box-sizing: border-box the bubble is at most V - 2M wide, which is exactly\n the condition for that interval to be non-empty -- the width contract is\n what makes the placement solvable, which is why the box model had to be\n fixed first. */\n _place() {\n const bubble = this.renderRoot?.querySelector<HTMLElement>('.bubble');\n if (!bubble) return;\n bubble.style.setProperty('--bd-tooltip-shift', '0px');\n const box = bubble.getBoundingClientRect();\n if (box.width === 0) return;\n\n const margin = this._margin();\n const minShift = margin - box.left;\n const maxShift = window.innerWidth - margin - box.right;\n\n /* minShift > maxShift means the bubble is wider than the space between the\n margins, which the width cap should prevent. If a consuming page has\n overridden that cap, the left edge wins: the start of the text stays\n readable rather than the end of it. */\n const shift = minShift > maxShift\n ? minShift\n : Math.min(Math.max(0, minShift), maxShift);\n\n bubble.style.setProperty('--bd-tooltip-shift', `${Math.round(shift)}px`);\n }\n\n /* Placement runs once the bubble has a box, not only when it is revealed.\n The bubble is laid out at all times -- opacity: 0 hides it and\n pointer-events: none takes it out of the way, but neither takes it out of\n flow -- so an unplaced bubble on a trigger near the right edge widened the\n document: measured at 1440, the right-edge bubble in Atoms/Tooltip \"At the\n viewport edges\" ended at x=1622.5 and the page scrollWidth was 1623, a\n 183px horizontal scrollbar produced by something invisible.\n\n This is not the placement-on-first-update that P7F tried and reverted.\n That call ran the single-edge algorithm above on a content-box bubble, and\n it moved the overflow rather than removing it -- 183px at the right edge\n became 61px on Long Text at 320. Running it here is only correct because\n the width contract and the clamp were fixed first; the ordering is the\n fix, not the call site.\n\n One pass here is not enough on its own, and the observer below is why.\n Measured: this call alone left Long Text at 320 with shift 80px and 53px\n of overflow, where placing again after everything had settled produced\n shift 11px and none. The arithmetic was right both times -- the geometry\n was not final the first time. */\n firstUpdated() {\n this._place();\n /* The trigger is slotted light DOM and is usually a custom element of its\n own, so it upgrades and takes its real width AFTER this tooltip has\n rendered: the bubble is centred on a reference that has not finished\n existing. Observing both boxes covers that, and the font swap and any\n later content change with it, rather than guessing a delay.\n\n Both boxes, because they move for different reasons: the host changes\n when the trigger resizes, the bubble when its own text reflows.\n ResizeObserver fires once on observe, which is the settled first pass. */\n this._observe();\n }\n\n /* ESCAPE. WCAG 1.4.13 asks that content shown on hover or focus can be\n dismissed without moving the pointer or focus. The pointer may be over the\n trigger while focus is anywhere on the page, so the key is heard on the\n document, and only acted on while this bubble is actually showing.\n\n Capture phase, and the event is marked handled with preventDefault rather\n than stopped: a tooltip is the innermost thing that can be open, so its\n Escape should not also close a native <dialog> it sits in, and a dialog's\n cancel is exactly what preventDefault on that keydown withholds.\n Propagation is left alone, as bd-modal leaves it, so a page that wants to\n hear the key still does. */\n get _showing() {\n return !this._dismissed && (this.matches(':hover') || this.matches(':focus-within'));\n }\n\n /* Started on first render and again on every reconnect. It used to start\n only in firstUpdated, and disconnectedCallback tears it down, so a tooltip\n moved in the DOM -- removed and re-inserted, which a framework reordering\n a list does -- came back with no observer and never re-placed itself when\n its trigger or text changed size. */\n _observe() {\n if (typeof ResizeObserver === 'undefined' || this._ro) return;\n this._ro = new ResizeObserver(() => this._place());\n this._ro.observe(this);\n const bubble = this.renderRoot?.querySelector('.bubble');\n if (bubble) this._ro.observe(bubble);\n }\n\n connectedCallback() {\n super.connectedCallback();\n // a first connection is handled by firstUpdated, once the bubble exists\n if (this.hasUpdated) this._observe();\n this._onShow = () => this._place();\n /* Both reveals the stylesheet already honours, and resize because the\n measurement is only true for the width it was taken at. */\n this.addEventListener('mouseenter', this._onShow);\n this.addEventListener('focusin', this._onShow);\n window.addEventListener('resize', this._onShow);\n\n this._onKeydown = e => {\n if (e.key !== 'Escape' || e.defaultPrevented || !this._showing) return;\n e.preventDefault();\n this._dismissed = true;\n };\n /* Back to normal once the pointer and focus have both gone: a pointer\n leaving while focus stays inside keeps it dismissed, and the reverse. */\n this._onLeave = e => {\n if (!this._dismissed) return;\n const pointerGone = e.type === 'mouseleave' || !this.matches(':hover');\n const focusGone = e.type === 'focusout'\n ? !this.contains(e.relatedTarget as Node | null) && !this.shadowRoot!.contains(e.relatedTarget as Node | null)\n : !this.matches(':focus-within');\n if (pointerGone && focusGone) this._dismissed = false;\n };\n document.addEventListener('keydown', this._onKeydown, true);\n this.addEventListener('mouseleave', this._onLeave);\n this.addEventListener('focusout', this._onLeave);\n }\n\n disconnectedCallback() {\n this.removeEventListener('mouseenter', this._onShow);\n this.removeEventListener('focusin', this._onShow);\n window.removeEventListener('resize', this._onShow);\n document.removeEventListener('keydown', this._onKeydown, true);\n this.removeEventListener('mouseleave', this._onLeave);\n this.removeEventListener('focusout', this._onLeave);\n this._ro?.disconnect();\n this._ro = undefined;\n super.disconnectedCallback();\n }\n\n /* DESCRIBING THE TRIGGER.\n The bubble had role=\"tooltip\" and nothing pointed at it, so a screen\n reader landing on the trigger heard its name and not the tooltip, and\n the bubble's text sat in the page as a stray line. It cannot be pointed\n at directly: the bubble is in this shadow root and the trigger is not,\n and an id reference never crosses that boundary. So the trigger is\n described from its own side:\n\n a native control aria-describedby names a hidden copy of the text,\n kept as a child of this element in a hidden slot --\n the same tree as the trigger, so the reference\n resolves\n bd-button, the text goes to its description property, which\n bd-button-link, wires aria-describedby inside its own shadow root,\n bd-link where its real control is\n\n Once described, the bubble is hidden from assistive technology so the\n text is not read twice. Any other custom element as trigger keeps the\n bubble exposed and goes undescribed -- its control is out of reach. */\n _describe() {\n this._undescribe();\n const slot = this.shadowRoot?.querySelector('slot');\n const trigger = slot?.assignedElements()[0];\n if (!trigger || !this.text) return;\n\n // a custom element that has not upgraded yet has no description to set:\n // come back once it has\n if (trigger.localName.includes('-') && !customElements.get(trigger.localName)) {\n customElements.whenDefined(trigger.localName).then(() => this._describe());\n return;\n }\n\n if ('description' in trigger && trigger.localName.includes('-')) {\n trigger.description = this.text;\n this._described = { trigger, kind: 'property' };\n } else if (!trigger.localName.includes('-')) {\n const node = document.createElement('span');\n node.id = `bd-tooltip-description-${++descriptionIds}`;\n node.slot = 'description';\n node.hidden = true;\n node.textContent = this.text;\n this.append(node);\n const ids = (trigger.getAttribute('aria-describedby') || '').split(/\\s+/).filter(Boolean);\n trigger.setAttribute('aria-describedby', [...ids, node.id].join(' '));\n this._described = { trigger, kind: 'idref', node };\n }\n this.requestUpdate();\n }\n\n _undescribe() {\n const d = this._described;\n if (!d) return;\n if (d.kind === 'property') {\n d.trigger.description = '';\n } else {\n const ids = (d.trigger.getAttribute('aria-describedby') || '').split(/\\s+/).filter(t => t && t !== d.node.id);\n if (ids.length) d.trigger.setAttribute('aria-describedby', ids.join(' '));\n else d.trigger.removeAttribute('aria-describedby');\n d.node.remove();\n }\n this._described = null;\n this.requestUpdate();\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has('text') && this.hasUpdated) this._describe();\n }\n\n render() {\n return html`\n <slot @slotchange=${() => this._describe()}></slot>\n <!-- the trigger's description: hidden, but slotted, because a node\n assigned to no slot is not in the flat tree and Chrome then drops\n an aria-describedby that points at it -->\n <span hidden><slot name=\"description\"></slot></span>\n <span\n class=\"bubble ${this._dismissed ? 'bubble--dismissed' : ''}\"\n role=\"tooltip\"\n aria-hidden=\"${this._described ? 'true' : nothing}\"\n >${this.text}</span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-tooltip': BdTooltip;\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":["_decorate","__decorate","tooltipCSS","contentIds","CONTENT_ID","SETTLE","BdTooltip","LitElement","_args","SlotController","raw","px","rem","bubble","box","margin","minShift","maxShift","shift","pointerGone","focusGone","type","shown","fades","a","trigger","contents","text","d","el","i","assigned","ids","own","tree","nothing","state","defineElement"],"sources":["../../../../src/components/tooltip/tooltip.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { state } from 'lit/decorators.js';\nimport { SlotController } from '#shared/controller.slot.ts';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { tooltipCSS } from './tooltip.css.ts';\nimport '#shared/events.ts';\n\nlet contentIds = 0;\nconst CONTENT_ID = 'bd-tooltip-content-';\nconst SETTLE = ['mouseenter', 'mouseleave', 'focusin', 'focusout'] as const;\n\ntype Described =\n | { trigger: Element & { description: unknown }; kind: 'property'; text: string }\n | { trigger: Element; kind: 'idref'; ids: string[]; assigned: Element[] };\n\n/**\n * A short explanatory bubble shown while its trigger is hovered or focused.\n *\n * The trigger is the default slot; what the bubble says is the `content`\n * slot, the page's own words (`<span slot=\"content\">`). The content also\n * describes the trigger to assistive technology -- see _describe().\n *\n * Shown and hidden by the stylesheet, on :hover and :focus-within, and\n * reported as bd-show and bd-hide when that changes, then bd-after-show and\n * bd-after-hide once the fade has run (N8). None of them is cancelable: the\n * reveal is CSS, so there is nothing for a listener to prevent.\n */\n@defineElement('bd-tooltip')\nexport class BdTooltip extends LitElement {\n static styles = [tooltipCSS];\n\n /* The content is followed into its words, so a trigger described through\n its description property hears the page's edits. */\n _slots = new SlotController(this, { slots: [], text: ['content'] });\n /* Set by Escape and cleared once neither the pointer nor focus is on the\n tooltip any more, so the next hover or focus shows it again. */\n @state()\n _dismissed = false;\n\n _ro? : ResizeObserver;\n _onShow! : () => void;\n _onKeydown!: (e: KeyboardEvent) => void;\n _onLeave! : (e: MouseEvent | FocusEvent) => void;\n _described?: Described | null;\n _onSettle! : () => void;\n /* What bd-show and bd-hide last reported. */\n _shown = false;\n\n /* The bubble is centred on its trigger and is wider than it, so near a\n viewport edge part of it lands outside the page. No CSS can fix that --\n the browser cannot be asked \"where is my trigger\" from a stylesheet -- so\n the shift is measured here and handed back to CSS as a custom property.\n\n Deliberately additive: --bd-tooltip-shift defaults to 0 in the stylesheet,\n so a tooltip in a document where this never runs renders exactly as it did\n before. getBoundingClientRect and ResizeObserver are both already used by\n five components in this package; this is the same pattern, not a new one. */\n /**\n * The margin the bubble keeps from each viewport edge, read from the same\n * token the stylesheet subtracts. The cap there is `100vw - --spacing-32`,\n * which is that margin on each side, and the two numbers have to agree: the\n * previous version clamped to a hard-coded 8 while the stylesheet reserved\n * 16, so placement aimed at a boundary the width contract had not left room\n * for.\n */\n _margin() {\n const raw = getComputedStyle(this).getPropertyValue('--spacing-16');\n const px = parseFloat(raw);\n /* A custom property reads back as written, 1rem, so the rem is turned into\n pixels at the root's own size -- the one the stylesheet's cap resolves\n at. It was multiplied by 16, which is right only at the default size:\n a reader at 24px got a 24px cap and a 16px clamp. */\n const rem = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;\n /* Tokens are installed in document scope and always resolve; the fallback\n is for a disconnected element, where getComputedStyle returns nothing. */\n return Number.isFinite(px) ? (raw.includes('rem') ? px * rem : px) : 16;\n }\n\n /* The bubble is centred on its trigger and is wider than it, so near a\n viewport edge part of it lands outside the page. No CSS can fix that --\n the browser cannot be asked \"where is my trigger\" from a stylesheet -- so\n the shift is measured here and handed back to CSS as a custom property.\n\n Deliberately additive: --bd-tooltip-shift defaults to 0 in the stylesheet,\n so a tooltip in a document where this never runs renders exactly as it did\n before.\n\n Both edges, not one. The previous version corrected whichever edge it\n found outside first and stopped -- an `if` on the left and an `else if` on\n the right -- which is only sound while the bubble is narrower than the\n space between the margins. It was not: the border box ran 16px past its\n own cap, so pushing the left edge in pushed the right edge out and the\n `else if` never ran to notice.\n\n Now the two constraints are solved together. For a shift s the bubble\n lands at [left + s, right + s], and staying inside the margins means\n\n s >= M - left and s <= V - M - right\n\n so the centred position s = 0 is clamped into [minShift, maxShift]. With\n box-sizing: border-box the bubble is at most V - 2M wide, which is exactly\n the condition for that interval to be non-empty -- the width contract is\n what makes the placement solvable, which is why the box model had to be\n fixed first. */\n _place() {\n const bubble = this.renderRoot?.querySelector<HTMLElement>('.bubble');\n if (!bubble) return;\n bubble.style.setProperty('--bd-tooltip-shift', '0px');\n const box = bubble.getBoundingClientRect();\n if (box.width === 0) return;\n\n const margin = this._margin();\n const minShift = margin - box.left;\n const maxShift = window.innerWidth - margin - box.right;\n\n /* minShift > maxShift means the bubble is wider than the space between the\n margins, which the width cap should prevent. If a consuming page has\n overridden that cap, the left edge wins: the start of the text stays\n readable rather than the end of it. */\n const shift = minShift > maxShift\n ? minShift\n : Math.min(Math.max(0, minShift), maxShift);\n\n bubble.style.setProperty('--bd-tooltip-shift', `${Math.round(shift)}px`);\n }\n\n /* Placement runs once the bubble has a box, not only when it is revealed.\n The bubble is laid out at all times -- opacity: 0 hides it and\n pointer-events: none takes it out of the way, but neither takes it out of\n flow -- so an unplaced bubble on a trigger near the right edge widened the\n document: measured at 1440, the right-edge bubble in Atoms/Tooltip \"At the\n viewport edges\" ended at x=1622.5 and the page scrollWidth was 1623, a\n 183px horizontal scrollbar produced by something invisible.\n\n This is not the placement-on-first-update that P7F tried and reverted.\n That call ran the single-edge algorithm above on a content-box bubble, and\n it moved the overflow rather than removing it -- 183px at the right edge\n became 61px on Long Text at 320. Running it here is only correct because\n the width contract and the clamp were fixed first; the ordering is the\n fix, not the call site.\n\n One pass here is not enough on its own, and the observer below is why.\n Measured: this call alone left Long Text at 320 with shift 80px and 53px\n of overflow, where placing again after everything had settled produced\n shift 11px and none. The arithmetic was right both times -- the geometry\n was not final the first time. */\n firstUpdated() {\n this._place();\n /* The trigger is slotted light DOM and is usually a custom element of its\n own, so it upgrades and takes its real width AFTER this tooltip has\n rendered: the bubble is centred on a reference that has not finished\n existing. Observing both boxes covers that, and the font swap and any\n later content change with it, rather than guessing a delay.\n\n Both boxes, because they move for different reasons: the host changes\n when the trigger resizes, the bubble when its own text reflows.\n ResizeObserver fires once on observe, which is the settled first pass. */\n this._observe();\n }\n\n /* ESCAPE. WCAG 1.4.13 asks that content shown on hover or focus can be\n dismissed without moving the pointer or focus. The pointer may be over the\n trigger while focus is anywhere on the page, so the key is heard on the\n document, and only acted on while this bubble is actually showing.\n\n Capture phase, and the event is marked handled with preventDefault rather\n than stopped: a tooltip is the innermost thing that can be open, so its\n Escape should not also close a native <dialog> it sits in, and a dialog's\n cancel is exactly what preventDefault on that keydown withholds.\n Propagation is left alone, as bd-modal leaves it, so a page that wants to\n hear the key still does. */\n get _showing() {\n /* A bubble with no content is hidden outright, so it never shows. */\n return !this._dismissed && this._slots.has('content')\n && (this.matches(':hover') || this.matches(':focus-within'));\n }\n\n /* Started on first render and again on every reconnect. It used to start\n only in firstUpdated, and disconnectedCallback tears it down, so a tooltip\n moved in the DOM -- removed and re-inserted, which a framework reordering\n a list does -- came back with no observer and never re-placed itself when\n its trigger or text changed size. */\n _observe() {\n if (typeof ResizeObserver === 'undefined' || this._ro) return;\n this._ro = new ResizeObserver(() => this._place());\n this._ro.observe(this);\n const bubble = this.renderRoot?.querySelector('.bubble');\n if (bubble) this._ro.observe(bubble);\n }\n\n connectedCallback() {\n super.connectedCallback();\n // a first connection is handled by firstUpdated, once the bubble exists\n if (this.hasUpdated) this._observe();\n this._onShow = () => this._place();\n /* Both reveals the stylesheet already honours, and resize because the\n measurement is only true for the width it was taken at. */\n this.addEventListener('mouseenter', this._onShow);\n this.addEventListener('focusin', this._onShow);\n window.addEventListener('resize', this._onShow);\n\n this._onKeydown = e => {\n if (e.key !== 'Escape' || e.defaultPrevented || !this._showing) return;\n e.preventDefault();\n this._dismissed = true;\n };\n /* Back to normal once the pointer and focus have both gone: a pointer\n leaving while focus stays inside keeps it dismissed, and the reverse. */\n this._onLeave = e => {\n if (!this._dismissed) return;\n const pointerGone = e.type === 'mouseleave' || !this.matches(':hover');\n const focusGone = e.type === 'focusout'\n ? !this.contains(e.relatedTarget as Node | null) && !this.shadowRoot!.contains(e.relatedTarget as Node | null)\n : !this.matches(':focus-within');\n if (pointerGone && focusGone) this._dismissed = false;\n };\n document.addEventListener('keydown', this._onKeydown, true);\n this.addEventListener('mouseleave', this._onLeave);\n this.addEventListener('focusout', this._onLeave);\n\n /* Whether the bubble shows is read a task later, once the pointer and\n focus have both settled: during focusout the next element does not\n hold focus yet, so :focus-within answers for neither. */\n this._onSettle = () => { setTimeout(() => this._syncShown()); };\n for (const type of SETTLE) this.addEventListener(type, this._onSettle);\n }\n\n disconnectedCallback() {\n this.removeEventListener('mouseenter', this._onShow);\n this.removeEventListener('focusin', this._onShow);\n window.removeEventListener('resize', this._onShow);\n document.removeEventListener('keydown', this._onKeydown, true);\n this.removeEventListener('mouseleave', this._onLeave);\n this.removeEventListener('focusout', this._onLeave);\n for (const type of SETTLE) this.removeEventListener(type, this._onSettle);\n this._ro?.disconnect();\n this._ro = undefined;\n super.disconnectedCallback();\n }\n\n /* bd-show / bd-hide when the bubble's visibility changes, then\n bd-after-show / bd-after-hide when its fade has finished -- at once\n under reduced motion, where there is no fade. */\n _syncShown() {\n const shown = this.isConnected && this._showing;\n if (shown === this._shown) return;\n this._shown = shown;\n // each name spelled once, as a literal, so check:element-api can read it\n if (shown) this.dispatchEvent(new CustomEvent('bd-show', { bubbles: true, composed: true }));\n else this.dispatchEvent(new CustomEvent('bd-hide', { bubbles: true, composed: true }));\n void this._afterFade(shown);\n }\n\n async _afterFade(shown: boolean) {\n await this.updateComplete;\n /* getAnimations() brings style up to date first, so the transition the\n change of state started is among them. A fade cut short by the\n opposite change rejects, and the state check below drops it. */\n const fades = this.renderRoot.querySelector('.bubble')?.getAnimations() ?? [];\n await Promise.allSettled(fades.map(a => a.finished));\n if (this._shown !== shown) return;\n if (shown) this.dispatchEvent(new CustomEvent('bd-after-show', { bubbles: true, composed: true }));\n else this.dispatchEvent(new CustomEvent('bd-after-hide', { bubbles: true, composed: true }));\n }\n\n /* DESCRIBING THE TRIGGER.\n The bubble had role=\"tooltip\" and nothing pointed at it, so a screen\n reader landing on the trigger heard its name and not the tooltip, and\n the bubble's text sat in the page as a stray line. The bubble is in this\n shadow root and the trigger is not, and an id reference never crosses\n that boundary -- but the words are the page's: what the content slot\n holds is light DOM, in the trigger's own tree. So the trigger is\n described from its own side:\n\n a native control aria-describedby names the slotted content\n elements themselves, each given an id if the page\n wrote none. They are assigned to the bubble's slot,\n so they are in the flat tree, which Chrome needs\n before it follows the reference. Only content that\n is elements in the trigger's own tree can be named\n so; see _referable()\n bd-button, the content's text goes to its description\n bd-button-link, property, which wires aria-describedby inside its\n bd-link own shadow root, where its real control is\n\n Once described, the bubble is hidden from assistive technology so the\n text is not read twice; a reference still reads a node it names when\n that node is hidden. Any other custom element as trigger keeps the\n bubble exposed and goes undescribed -- its control is out of reach.\n\n Writing an id on a content element is a write onto an element the page\n wrote, like the aria-describedby on its trigger: the reference has to\n name something in the page's tree, and only those elements carry the\n words. An id the page wrote is used as it is and left alone. */\n _describe() {\n const slot = this.shadowRoot?.querySelector<HTMLSlotElement>('slot:not([name])');\n const trigger = slot?.assignedElements()[0];\n const contents = this._slots.elements('content');\n const text = this._slots.text('content');\n\n // a custom element that has not upgraded yet has no description to set:\n // come back once it has\n if (trigger && trigger.localName.includes('-') && !customElements.get(trigger.localName)) {\n this._undescribe();\n customElements.whenDefined(trigger.localName).then(() => this._describe());\n return;\n }\n if (!trigger || !text) {\n this._undescribe();\n return;\n }\n\n const d = this._described;\n if ('description' in trigger && trigger.localName.includes('-')) {\n if (d?.kind === 'property' && d.trigger === trigger && d.text === text) return;\n this._undescribe();\n trigger.description = text;\n this._described = { trigger, kind: 'property', text };\n } else if (!trigger.localName.includes('-') && this._referable(trigger, contents)) {\n if (d?.kind === 'idref' && d.trigger === trigger\n && d.ids.length === contents.length && contents.every((el, i) => el.id === d.ids[i])) return;\n this._undescribe();\n const assigned = contents.filter(el => !el.id);\n for (const el of assigned) el.id = `${CONTENT_ID}${++contentIds}`;\n const ids = contents.map(el => el.id);\n const own = (trigger.getAttribute('aria-describedby') || '').split(/\\s+/).filter(Boolean);\n trigger.setAttribute('aria-describedby', [...own, ...ids].join(' '));\n this._described = { trigger, kind: 'idref', ids, assigned };\n } else {\n this._undescribe();\n return;\n }\n this.requestUpdate();\n }\n\n /* Whether the trigger can name the content by id: there is content to name\n -- an element; words alone carry no id -- and every element is in the\n trigger's own tree, where an id reference resolves. Content forwarded\n from an enclosing component's slot is in the page's tree while the\n trigger is in that component's shadow root, and a reference between them\n resolves to nothing. Then nothing is wired, and the bubble stays exposed,\n as for a custom element whose control is out of reach: hidden as well, it\n would leave the text where no reader reaches it. */\n _referable(trigger: Element, contents: Element[]) {\n const tree = trigger.getRootNode();\n return contents.length > 0 && contents.every(el => el.getRootNode() === tree);\n }\n\n _undescribe() {\n const d = this._described;\n if (!d) return;\n if (d.kind === 'property') {\n d.trigger.description = '';\n } else {\n const ids = (d.trigger.getAttribute('aria-describedby') || '').split(/\\s+/).filter(t => t && !d.ids.includes(t));\n if (ids.length) d.trigger.setAttribute('aria-describedby', ids.join(' '));\n else d.trigger.removeAttribute('aria-describedby');\n // only the ids this element wrote, and only while they are still its own\n for (const el of d.assigned) if (el.id.startsWith(CONTENT_ID)) el.removeAttribute('id');\n }\n this._described = null;\n this.requestUpdate();\n }\n\n /* Any render -- a change to the content slot or to its words is one --\n describes the trigger again; _describe() returns early when nothing it\n wrote would change, so it asks for no further render. */\n updated() {\n this._describe();\n this._syncShown();\n }\n\n render() {\n return html`\n <slot @slotchange=${() => this._describe()}></slot>\n <span\n class=\"bubble ${this._dismissed ? 'bubble--dismissed' : ''}\"\n role=\"tooltip\"\n aria-hidden=\"${this._described ? 'true' : nothing}\"\n ?hidden=${!this._slots.has('content')}\n ><slot name=\"content\"></slot></span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-tooltip': BdTooltip;\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}:host([hidden]){display:none}.card{background:var(--color-surface-default);border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);padding:var(--card-padding);box-sizing:border-box;height:100%;transition:transform var(--transition-duration-normal) var(--transition-easing-ease), box-shadow var(--transition-duration-normal) var(--transition-easing-ease);flex-direction:column;display:flex}@media (hover:hover){.card:hover{box-shadow:0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}.card>[hidden]{display:none}.eyebrow{margin:0 0 var(--spacing-32);color:var(--color-text-brand);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing);font-family:var(--typography-label-large-fontFamily)}@media (width<992px){.eyebrow{font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);font-family:var(--typography-label-default-fontFamily)}}.media{align-items:center;gap:var(--spacing-16);margin-bottom:var(--spacing-20);flex-wrap:wrap;display:flex}.media ::slotted(*){height:var(--dimension-32);object-fit:contain;width:auto}.title{margin:0 0 var(--spacing-12)}::slotted(bd-h[slot=title]),::slotted(bd-display[slot=title]){--bd-heading-font-size:var(--typography-heading-h4-fontSize);--bd-heading-font-weight:var(--typography-heading-h4-fontWeight);--bd-heading-line-height:var(--typography-heading-h4-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h4-letterSpacing);--bd-heading-font-family:var(--typography-heading-h4-fontFamily)}.description{margin:0 0 var(--spacing-16);flex:1}::slotted([slot=description]){--bd-heading-color:var(--color-text-muted);--bd-paragraph-color:var(--color-text-muted)}.actions{align-items:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}@media (width<768px){.card{padding:var(--card-padding-compact)}}`;export{t as default};
|
|
2
|
+
//# sourceMappingURL=trust-card.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-card.css.js","names":["trust_card_css_default"],"sources":["../../../../src/components/trust-panel/trust-card.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\n/* The card bd-trust-panel drew for each entry of its `cards` array, moved\n with its rules and measured against that render. */\nexport default css`\n /* The host is the panel's grid item and stretches to its row; the card\n fills it, so two cards in a row are one height. */\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .card {\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n /* normal, not 250ms: a hover lift is the most repeated interaction on\n the page, and 250 was a fifth of a second off the scale for no reason\n anyone recorded. bento-item ran the same lift at the same value. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n }\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted. */\n @media (hover: hover) {\n .card:hover {\n transform: translateY(-3px);\n /* no token: the hover lift bd-bento-item shares -- one wide, soft layer of\n black at 7%. Every --shadow-* step is tighter and darker (10%, two\n layers from md up), so none of them draws this; a card-hover elevation\n would be a new step, decided for both cards at once. The colour is\n mixed over the palette, the house pattern for a black with an alpha\n (see the modal's scrim): it was #00000012, the same pixels. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* The shadow stays and the movement goes. Turning the transition off alone\n would only make the lift instant, which is the same 3px of travel with\n less warning; the transform is the part someone asking for reduced motion\n is asking not to see. The shadow still says the card is hovered. */\n @media (prefers-reduced-motion: reduce) {\n .card {\n transition: none;\n }\n\n .card:hover {\n transform: none;\n }\n }\n\n /* Each part's box is hidden while its slot is empty; the attribute's\n selector outweighs the display a box sets below. */\n .card > [hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so it takes the eyebrow's role from here: bd-p's\n eyebrow appearance, label-large from lg and label-default below it, in\n brand ink. 32 under it is what 3.x measured: the 16 it set, and the 16\n flow margin of the bd-p it drew the eyebrow in. */\n .eyebrow {\n margin: 0 0 var(--spacing-32);\n color: var(--color-text-brand);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n font-family: var(--typography-label-large-fontFamily);\n }\n\n @media ${unsafeCSS(below(\"lg\"))} {\n .eyebrow {\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n font-family: var(--typography-label-default-fontFamily);\n }\n }\n\n .media {\n display: flex;\n align-items: center;\n gap: var(--spacing-16);\n margin-bottom: var(--spacing-20);\n flex-wrap: wrap;\n }\n\n /* A logo is matched to the row, not to the reader's text, so its height is\n a dimension: 32px at every root size. */\n .media ::slotted(*) {\n height: var(--dimension-32);\n width: auto;\n object-fit: contain;\n }\n\n .title {\n margin: 0 0 var(--spacing-12);\n }\n\n /* The card's title: the h4 role 3.x rendered, at every level the page picks. */\n ::slotted(bd-h[slot=\"title\"]),\n ::slotted(bd-display[slot=\"title\"]) {\n ${unsafeCSS(headingRole(\"heading-h4\"))}\n }\n\n /* The description takes the card's spare height, so the actions of two\n cards in a row line up at the bottom. */\n .description {\n margin: 0 0 var(--spacing-16);\n flex: 1;\n }\n\n ::slotted([slot=\"description\"]) {\n ${unsafeCSS(ink(\"muted\"))}\n }\n\n .actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-16);\n }\n\n @media ${unsafeCSS(below(\"md\"))} {\n .card {\n padding: var(--card-padding-compact);\n }\n }\n`;\n"],"mappings":"A,4DAKA,IAAAA,EAAe,CAAG,uxE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
/**
|
|
5
|
+
* One of bd-trust-panel's cards: an eyebrow, a row of logos, a title, a
|
|
6
|
+
* description and a link.
|
|
7
|
+
*
|
|
8
|
+
* <bd-trust-card>
|
|
9
|
+
* <span slot="eyebrow">Brand partnership</span>
|
|
10
|
+
* <bd-img slot="media" src="…" alt="Bitdefender"></bd-img>
|
|
11
|
+
* <bd-h slot="title" as="h3">Trusted by Ferrari as cybersecurity partner</bd-h>
|
|
12
|
+
* <bd-p slot="description">A partnership born from …</bd-p>
|
|
13
|
+
* <bd-link slot="actions" href="…">Learn more</bd-link>
|
|
14
|
+
* </bd-trust-card>
|
|
15
|
+
*
|
|
16
|
+
* It replaces an entry of the panel's `cards` array and the `card-N-logos`
|
|
17
|
+
* slot that carried its logos. The card sets its title's size (the h4 role
|
|
18
|
+
* 3.x rendered) and its description's ink; the page picks the title's level.
|
|
19
|
+
* Each part's box is hidden while its slot is empty, and the description
|
|
20
|
+
* takes the card's spare height, so the links of two cards in a row line up.
|
|
21
|
+
*/
|
|
22
|
+
export declare class BdTrustCard extends LitElement {
|
|
23
|
+
static styles: import("lit").CSSResult[];
|
|
24
|
+
_slots: SlotController<"eyebrow" | "title" | "description" | "media" | "actions">;
|
|
25
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
declare global {
|
|
28
|
+
interface HTMLElementTagNameMap {
|
|
29
|
+
"bd-trust-card": BdTrustCard;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{SlotController as n}from"../shared/controller.slot.js";import r from"./trust-card.css.js";import{LitElement as i,html as a}from"lit";var o=class extends i{constructor(...e){super(...e),this._slots=new n(this,{slots:[`eyebrow`,`media`,`title`,`description`,`actions`]})}static{this.styles=[r]}render(){let e=e=>!this._slots.has(e);return a`
|
|
2
|
+
<div class="card">
|
|
3
|
+
<div class="eyebrow" ?hidden=${e(`eyebrow`)}><slot name="eyebrow"></slot></div>
|
|
4
|
+
<div class="media" ?hidden=${e(`media`)}><slot name="media"></slot></div>
|
|
5
|
+
<div class="title" ?hidden=${e(`title`)}><slot name="title"></slot></div>
|
|
6
|
+
<div class="description" ?hidden=${e(`description`)}><slot name="description"></slot></div>
|
|
7
|
+
<div class="actions" ?hidden=${e(`actions`)}><slot name="actions"></slot></div>
|
|
8
|
+
</div>
|
|
9
|
+
`}};o=t([e(`bd-trust-card`)],o);export{o as BdTrustCard};
|
|
10
|
+
//# sourceMappingURL=trust-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-card.js","names":["trustCardCSS","_decorate","__decorate","trust_card_css_default","BdTrustCard","LitElement","_args","SlotController","empty","name","defineElement"],"sources":["../../../../src/components/trust-panel/trust-card.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 trustCardCSS from \"./trust-card.css.ts\";\n\n/**\n * One of bd-trust-panel's cards: an eyebrow, a row of logos, a title, a\n * description and a link.\n *\n * <bd-trust-card>\n * <span slot=\"eyebrow\">Brand partnership</span>\n * <bd-img slot=\"media\" src=\"…\" alt=\"Bitdefender\"></bd-img>\n * <bd-h slot=\"title\" as=\"h3\">Trusted by Ferrari as cybersecurity partner</bd-h>\n * <bd-p slot=\"description\">A partnership born from …</bd-p>\n * <bd-link slot=\"actions\" href=\"…\">Learn more</bd-link>\n * </bd-trust-card>\n *\n * It replaces an entry of the panel's `cards` array and the `card-N-logos`\n * slot that carried its logos. The card sets its title's size (the h4 role\n * 3.x rendered) and its description's ink; the page picks the title's level.\n * Each part's box is hidden while its slot is empty, and the description\n * takes the card's spare height, so the links of two cards in a row line up.\n */\n@defineElement(\"bd-trust-card\")\nexport class BdTrustCard extends LitElement {\n static styles = [trustCardCSS];\n\n _slots = new SlotController(this, { slots: [\"eyebrow\", \"media\", \"title\", \"description\", \"actions\"] });\n\n render() {\n const empty = (name: \"eyebrow\" | \"media\" | \"title\" | \"description\" | \"actions\") => !this._slots.has(name);\n return html`\n <div class=\"card\">\n <div class=\"eyebrow\" ?hidden=${empty(\"eyebrow\")}><slot name=\"eyebrow\"></slot></div>\n <div class=\"media\" ?hidden=${empty(\"media\")}><slot name=\"media\"></slot></div>\n <div class=\"title\" ?hidden=${empty(\"title\")}><slot name=\"title\"></slot></div>\n <div class=\"description\" ?hidden=${empty(\"description\")}><slot name=\"description\"></slot></div>\n <div class=\"actions\" ?hidden=${empty(\"actions\")}><slot name=\"actions\"></slot></div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-trust-card\": BdTrustCard;\n }\n}\n"],"mappings":"A,iTA0BO,IAAMI,EAAN,cAA0BC,CAAW,C,8BAGjC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,UAAW,QAAS,QAAS,cAAe,SAAS,CAAE,CAAC,C,QAFpF,KAAA,OAAA,CAACP,CAAY,C,CAI7B,QAAS,CACP,IAAMQ,EAAS,GAAoE,CAAC,KAAK,OAAO,IAAIC,CAAI,EACxG,MAAO,EAAI;;uCAEwBD,EAAM,SAAS,EAAE;qCACnBA,EAAM,OAAO,EAAE;qCACfA,EAAM,OAAO,EAAE;2CACTA,EAAM,aAAa,EAAE;uCACzBA,EAAM,SAAS,EAAE;;KAGtD,CACF,EAlBC,EAAAP,EAAA,CAAAS,EAAc,eAAe,CAAA,EAAAN,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);background:var(--status-brand-surface);display:block}.bd-trustpanel-wrapper{padding-block:var(--spacing-48);box-sizing:border-box}.bd-trustpanel-
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);background:var(--status-brand-surface);display:block}.bd-trustpanel-wrapper{padding-block:var(--spacing-48);box-sizing:border-box}.bd-trustpanel-wrapper [hidden]{display:none}.bd-trustpanel-eyebrow{margin:0 0 var(--spacing-16);color:var(--color-text-brand);font-size:var(--typography-label-large-fontSize);font-weight:var(--typography-label-large-fontWeight);line-height:var(--typography-label-large-lineHeight);letter-spacing:var(--typography-label-large-letterSpacing);font-family:var(--typography-label-large-fontFamily)}@media (width<992px){.bd-trustpanel-eyebrow{font-size:var(--typography-label-default-fontSize);font-weight:var(--typography-label-default-fontWeight);line-height:var(--typography-label-default-lineHeight);letter-spacing:var(--typography-label-default-letterSpacing);font-family:var(--typography-label-default-fontFamily)}}.bd-trustpanel-title{margin:0 0 var(--spacing-16)}::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-trustpanel-lead{margin:0 0 var(--spacing-40)}::slotted([slot=description]){--bd-heading-color:var(--color-text-muted);--bd-paragraph-color:var(--color-text-muted);max-width:80ch}.bd-trustpanel-actions{align-items:center;gap:var(--spacing-16);margin-top:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-trustpanel-stats{gap:var(--spacing-24);margin-bottom:var(--spacing-40);grid-template-columns:repeat(6,1fr);display:grid}.bd-trustpanel-cards{gap:var(--spacing-24);grid-template-columns:1fr 1fr;display:grid}@media (width<=899px){.bd-trustpanel-stats{grid-template-columns:repeat(3,1fr)}}@media (width<768px){.bd-trustpanel-stats{grid-template-columns:repeat(2,1fr)}.bd-trustpanel-cards{grid-template-columns:1fr}.bd-trustpanel-wrapper{padding:var(--spacing-32) var(--spacing-24)}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=trust-panel.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trust-panel.css.js","names":["trust_panel_css_default"],"sources":["../../../../src/components/trust-panel/trust-panel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n background: var(--status-brand-surface);\n }\n\n .bd-trustpanel-wrapper {\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n
|
|
1
|
+
{"version":3,"file":"trust-panel.css.js","names":["trust_panel_css_default"],"sources":["../../../../src/components/trust-panel/trust-panel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below, headingRole, ink } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n background: var(--status-brand-surface);\n }\n\n .bd-trustpanel-wrapper {\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 a box sets below. */\n .bd-trustpanel-wrapper [hidden] {\n display: none;\n }\n\n /* The eyebrow is text, so it takes the eyebrow's role from here: bd-p's\n eyebrow appearance, label-large from lg and label-default below it, in\n brand ink. 16 under it is what 3.x measured: its 8 collapsed into the\n 16 flow margin of the bd-p it drew the eyebrow in. */\n .bd-trustpanel-eyebrow {\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-brand);\n font-size: var(--typography-label-large-fontSize);\n font-weight: var(--typography-label-large-fontWeight);\n line-height: var(--typography-label-large-lineHeight);\n letter-spacing: var(--typography-label-large-letterSpacing);\n font-family: var(--typography-label-large-fontFamily);\n }\n\n @media ${unsafeCSS(below(\"lg\"))} {\n .bd-trustpanel-eyebrow {\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n line-height: var(--typography-label-default-lineHeight);\n letter-spacing: var(--typography-label-default-letterSpacing);\n font-family: var(--typography-label-default-fontFamily);\n }\n }\n\n .bd-trustpanel-title {\n margin: 0 0 var(--spacing-16);\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 /* The description and the link under it. Both are blocks in one flow, so\n the paragraph's own flow margin is the 16 above the link, and collapses\n into the 40 under the lead when there is no link -- the 40 3.x drew. */\n .bd-trustpanel-lead {\n margin: 0 0 var(--spacing-40);\n }\n\n ::slotted([slot=\"description\"]) {\n max-width: 80ch;\n ${unsafeCSS(ink(\"muted\"))}\n }\n\n .bd-trustpanel-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--spacing-16);\n margin-top: var(--spacing-16);\n }\n\n /* === STATS ROW ===\n Each bd-fact is a grid item and draws its own rule. */\n .bd-trustpanel-stats {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: var(--spacing-24);\n margin-bottom: var(--spacing-40);\n }\n\n /* === CARDS ===\n Each bd-trust-card is a grid item and stretches to its row. */\n .bd-trustpanel-cards {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--spacing-24);\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(3, 1fr);\n }\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .bd-trustpanel-cards {\n grid-template-columns: 1fr;\n }\n\n .bd-trustpanel-wrapper {\n padding: var(--spacing-32) var(--spacing-24);\n }\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,8kE"}
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
2
3
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../
|
|
4
|
+
import "../fact/fact.js";
|
|
5
|
+
import "./trust-card.js";
|
|
6
|
+
import "../h/h.js";
|
|
4
7
|
import "../link/link.js";
|
|
5
|
-
import "../
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
import "../p/p.js";
|
|
9
|
+
/**
|
|
10
|
+
* A light-blue trust section: an eyebrow, a title, a description and a link,
|
|
11
|
+
* a row of statistics, and the cards under them.
|
|
12
|
+
*
|
|
13
|
+
* <bd-trust-panel>
|
|
14
|
+
* <span slot="eyebrow">Why trust it</span>
|
|
15
|
+
* <bd-h slot="title" as="h2">Built by Bitdefender</bd-h>
|
|
16
|
+
* <bd-p slot="description">AI Guardian is made by Bitdefender …</bd-p>
|
|
17
|
+
* <bd-link slot="actions" href="…">Why millions trust Bitdefender</bd-link>
|
|
18
|
+
* <bd-fact slot="stats" appearance="stat"><span slot="value">50B+</span><span slot="label">threats blocked every year</span></bd-fact>
|
|
19
|
+
* <bd-trust-card>…</bd-trust-card>
|
|
20
|
+
* </bd-trust-panel>
|
|
21
|
+
*
|
|
22
|
+
* The cards are the default slot; the statistics are a second collection,
|
|
23
|
+
* so they have a slot of their own, `stats`. The link is its own slot, so it
|
|
24
|
+
* shows whether or not there is a description: 3.x drew it inside the
|
|
25
|
+
* description's paragraph and lost it with the paragraph. The panel sets its
|
|
26
|
+
* title's size (the page-section h2) and its description's ink; the page
|
|
27
|
+
* picks the title's level. Each part's box is hidden while its slot is empty.
|
|
28
|
+
*/
|
|
29
|
+
export declare class BdTrustPanel extends LitElement {
|
|
19
30
|
static styles: import("lit").CSSResult[];
|
|
20
|
-
|
|
21
|
-
title: string;
|
|
22
|
-
description: string;
|
|
23
|
-
linkLabel: string;
|
|
24
|
-
linkHref: string;
|
|
25
|
-
stats: TrustStat[];
|
|
26
|
-
cards: TrustCard[];
|
|
27
|
-
_renderCard(card: TrustCard, index: number): import("lit-html").TemplateResult<1>;
|
|
31
|
+
_slots: SlotController<"" | "eyebrow" | "title" | "description" | "actions" | "stats">;
|
|
28
32
|
render(): import("lit-html").TemplateResult<1>;
|
|
29
33
|
}
|
|
30
34
|
declare global {
|
|
31
35
|
interface HTMLElementTagNameMap {
|
|
32
|
-
"bd-trust-panel":
|
|
36
|
+
"bd-trust-panel": BdTrustPanel;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
|
-
export {};
|