@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,109 +1,66 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../
|
|
2
|
-
<div class="bd-installoptions-
|
|
3
|
-
<
|
|
4
|
-
<div class="bd-installoptions-pills">
|
|
5
|
-
${this.worksIn.map(({label:e,initial:t,color:n})=>o`
|
|
6
|
-
<span class="bd-installoptions-pill">
|
|
7
|
-
<span
|
|
8
|
-
class="bd-installoptions-pill-icon"
|
|
9
|
-
style="background:${n||`var(--color-neutral-800)`}"
|
|
10
|
-
aria-hidden="true"
|
|
11
|
-
>${t||e?.[0]||`?`}</span>
|
|
12
|
-
${e}
|
|
13
|
-
</span>
|
|
14
|
-
`)}
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
`:s}_renderCard(e,t){let n=`bd-installoptions-card-title-${t}`;return o`
|
|
18
|
-
<div class="bd-installoptions-card">
|
|
19
|
-
<div class="bd-installoptions-card-head">
|
|
20
|
-
<bd-h as="h3" id=${n} class="bd-installoptions-card-title">${e.title}</bd-h>
|
|
21
|
-
${e.badge?o`<span class="bd-installoptions-badge">${e.badge}</span>`:s}
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
${e.description?o`<bd-p variant="small" class="bd-installoptions-card-description">${e.description}</bd-p>`:s}
|
|
25
|
-
|
|
26
|
-
${e.code?o`
|
|
27
|
-
<div class="bd-installoptions-code">
|
|
28
|
-
<pre class="bd-installoptions-code-text">${e.code}</pre>
|
|
29
|
-
<button
|
|
30
|
-
type="button"
|
|
31
|
-
class="bd-installoptions-copy"
|
|
32
|
-
aria-describedby=${n}
|
|
33
|
-
@click=${t=>this._copy(e.code,t.currentTarget)}
|
|
34
|
-
>Copy</button>
|
|
35
|
-
</div>
|
|
36
|
-
`:s}
|
|
37
|
-
|
|
38
|
-
${e.linkLabel?o`
|
|
39
|
-
<bd-link href=${e.linkHref||`#`} variant="primary" class="bd-installoptions-card-link">
|
|
40
|
-
${e.linkLabel} →
|
|
41
|
-
</bd-link>
|
|
42
|
-
`:s}
|
|
43
|
-
</div>
|
|
44
|
-
`}_renderPromptPanel(){return this.promptPanel?o`
|
|
45
|
-
<div class="bd-installoptions-promptpanel">
|
|
46
|
-
<bd-h as="h2" id="bd-installoptions-prompt-title" class="bd-installoptions-prompt-title">
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../p/p.js";import{SlotController as n}from"../shared/controller.slot.js";import"../h/h.js";import"../link/link.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../badge/badge.js";import"../tag/tag.js";import{Announcer as i}from"../shared/announcer.js";import{codeOf as a}from"./install-option.js";import o from"./install-options.css.js";import{LitElement as s,html as c,nothing as l}from"lit";import{state as u}from"lit/decorators.js";var d=[`prompt-title`,`prompt-description`,`prompt-label`,`prompt`,`prompt-note`],f=class extends s{constructor(...e){super(...e),this._slots=new n(this,{slots:[`eyebrow`,`title`,`description`,`works-in-label`,`works-in`,``,...d,`copy`,`copied`,`footer`]}),this._announcer=new i(this),this._copied=!1,this._busy=!1}static{this.styles=[r,o]}async _copyPrompt(){let e=a(this.renderRoot.querySelector(`slot[name="prompt"]`));if(e&&!this._busy){this._busy=!0;try{await navigator.clipboard.writeText(e),this._copied=!0;let t=this._slots.text(`copied`);t&&this._announcer.say(t),setTimeout(()=>{this._copied=!1,this._busy=!1},1500)}catch{this._busy=!1}}}_renderPromptPanel(){let e=e=>this._slots.has(e),t=e(`prompt-title`),n=this._copied&&this._slots.has(`copied`);return c`
|
|
2
|
+
<div class="bd-installoptions-promptpanel" ?hidden=${!d.some(e)}>
|
|
3
|
+
<div class="bd-installoptions-prompt-title" id="prompt-title" ?hidden=${!t}>
|
|
47
4
|
<slot name="prompt-title"></slot>
|
|
48
|
-
</
|
|
5
|
+
</div>
|
|
49
6
|
|
|
50
|
-
<
|
|
7
|
+
<div class="bd-installoptions-prompt-description" ?hidden=${!e(`prompt-description`)}>
|
|
51
8
|
<slot name="prompt-description"></slot>
|
|
52
|
-
</
|
|
9
|
+
</div>
|
|
53
10
|
|
|
54
|
-
|
|
11
|
+
<div class="bd-installoptions-prompt-label" ?hidden=${!e(`prompt-label`)}>
|
|
12
|
+
<slot name="prompt-label"></slot>
|
|
13
|
+
</div>
|
|
55
14
|
|
|
56
|
-
<div class="bd-installoptions-prompt-code">
|
|
57
|
-
<div class="bd-installoptions-prompt-code-text">
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
@click=${e=>this._copyPromptSlot(e.currentTarget)}
|
|
65
|
-
>Copy</button>
|
|
15
|
+
<div class="bd-installoptions-prompt-code" ?hidden=${!e(`prompt`)}>
|
|
16
|
+
<div class="bd-installoptions-prompt-code-text"><slot name="prompt"></slot></div>
|
|
17
|
+
${e(`prompt`)?c`<button
|
|
18
|
+
type="button"
|
|
19
|
+
class="bd-installoptions-copy bd-installoptions-copy--prompt"
|
|
20
|
+
aria-describedby=${t?`prompt-title`:l}
|
|
21
|
+
@click=${this._copyPrompt}
|
|
22
|
+
><span ?hidden=${n}><slot name="copy"></slot></span><span ?hidden=${!n}><slot name="copied"></slot></span></button>`:l}
|
|
66
23
|
</div>
|
|
67
24
|
|
|
68
|
-
<div class="bd-installoptions-prompt-note">
|
|
25
|
+
<div class="bd-installoptions-prompt-note" ?hidden=${!e(`prompt-note`)}>
|
|
69
26
|
<slot name="prompt-note"></slot>
|
|
70
27
|
</div>
|
|
71
|
-
|
|
72
|
-
<bd-p variant="regular" class="bd-installoptions-prompt-footer">
|
|
73
|
-
<slot name="prompt-footer"></slot>
|
|
74
|
-
</bd-p>
|
|
75
28
|
</div>
|
|
76
|
-
|
|
29
|
+
`}render(){let e=this._slots.has(`works-in`);return c`
|
|
77
30
|
<div class="bd-installoptions-container">
|
|
78
31
|
<div class="bd-ensemble">
|
|
79
|
-
|
|
32
|
+
<div class="bd-installoptions-eyebrow" ?hidden=${!this._slots.has(`eyebrow`)}>
|
|
33
|
+
<slot name="eyebrow"></slot>
|
|
34
|
+
</div>
|
|
80
35
|
|
|
81
|
-
<
|
|
36
|
+
<div class="bd-installoptions-title" ?hidden=${!this._slots.has(`title`)}>
|
|
37
|
+
<slot name="title"></slot>
|
|
38
|
+
</div>
|
|
82
39
|
|
|
83
|
-
|
|
40
|
+
<div class="bd-installoptions-description" ?hidden=${!this._slots.has(`description`)}>
|
|
41
|
+
<slot name="description"></slot>
|
|
42
|
+
</div>
|
|
84
43
|
|
|
85
|
-
|
|
44
|
+
<div class="bd-installoptions-worksin" ?hidden=${!e&&!this._slots.has(`works-in-label`)}>
|
|
45
|
+
<span class="bd-installoptions-worksin-label" ?hidden=${!this._slots.has(`works-in-label`)}>
|
|
46
|
+
<slot name="works-in-label"></slot>
|
|
47
|
+
</span>
|
|
48
|
+
<div class="bd-installoptions-pills" ?hidden=${!e}>
|
|
49
|
+
<slot name="works-in"></slot>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
86
52
|
|
|
87
|
-
|
|
88
|
-
Slot generic (fara nume) -- pentru orice continut care nu se
|
|
89
|
-
potriveste cu grid-ul fix de carduri (ex: un tabel, o casuta
|
|
90
|
-
checklist, o nota de avertizare). Cardurile ramase implicite
|
|
91
|
-
(this.cards) tot se randeaza mai jos daca sunt pasate; cele doua
|
|
92
|
-
pot coexista sau poti folosi doar unul din ele.
|
|
93
|
-
-->
|
|
94
|
-
<div class="bd-installoptions-body">
|
|
53
|
+
<div class="bd-installoptions-body" ?hidden=${!this._slots.has(``)}>
|
|
95
54
|
<slot></slot>
|
|
96
55
|
</div>
|
|
97
56
|
|
|
98
|
-
${this.cards.length?o`
|
|
99
|
-
<div class="bd-installoptions-grid">
|
|
100
|
-
${this.cards.map((e,t)=>this._renderCard(e,t))}
|
|
101
|
-
</div>
|
|
102
|
-
`:s}
|
|
103
|
-
|
|
104
57
|
${this._renderPromptPanel()}
|
|
58
|
+
|
|
59
|
+
<div class="bd-installoptions-footer" ?hidden=${!this._slots.has(`footer`)}>
|
|
60
|
+
<slot name="footer"></slot>
|
|
61
|
+
</div>
|
|
105
62
|
</div>
|
|
106
63
|
<span class="bd-installoptions-status" role="status">${this._announcer.status}</span>
|
|
107
64
|
</div>
|
|
108
|
-
`}};t([
|
|
65
|
+
`}};t([u()],f.prototype,`_copied`,void 0),f=t([e(`bd-install-options`)],f);export{f as BdInstallOptions};
|
|
109
66
|
//# sourceMappingURL=install-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-options.js","names":["installOptionsCSS","_decorate","__decorate","install_options_css_default","BdInstallOptions","LitElement","ensembleCSS","Announcer","btn","text","original","n","color","initial","label","nothing","titleId","index","card","e","property","defineElement"],"sources":["../../../../src/components/install-options/install-options.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport installOptionsCSS from \"./install-options.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { Announcer } from \"#shared/announcer.ts\";\n\ninterface WorksIn {\n label? : string;\n initial?: string;\n color? : string;\n}\n\ninterface InstallCard {\n title : string;\n badge? : string;\n description?: string;\n code? : string;\n linkLabel? : string;\n linkHref? : string;\n}\n\n@defineElement(\"bd-install-options\")\nclass BdInstallOptions extends LitElement {\n static styles = [ensembleCSS, installOptionsCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n worksIn: WorksIn[] = []; // [{ label, initial, color }]\n @property({ type: Array })\n cards: InstallCard[] = []; // [{ title, badge, description, code, linkLabel, linkHref }]\n\n // \"Then just ask\" sub-panel — rendered only when this is set, so a\n // consumer of bd-install-options who doesn't need it gets nothing extra.\n @property({ type: Boolean, reflect: true, attribute: \"prompt-panel\" })\n promptPanel = false;\n @property({ type: String, attribute: \"prompt-label\" })\n promptLabel = \"\"; // small mono label above the prompt block\n\n _announcer: Announcer;\n\n constructor() {\n super();\n /* \"Copied\" is said, not only shown. The button's own text changes too,\n but a screen reader does not reliably read a focused button's new name,\n so the message goes through the live region (shared/announcer.ts). */\n this._announcer = new Announcer(this);\n }\n\n /* The button says \"Copied\" for 1.5s and ignores presses meanwhile. It is not\n disabled for it: disabling the focused button threw keyboard focus back to\n the top of the page, mid-card.\n\n The flag is data-copied, present or absent: its value is \"\", which reads\n as false, so asking for its value let a second press through, and that\n press took \"Copied\" as the text to restore. It is set before the\n clipboard is awaited, so two presses in quick succession cannot both\n start a copy. */\n async _copy(text: string, btn: HTMLElement) {\n if (\"copied\" in btn.dataset) return;\n btn.dataset.copied = \"\";\n try {\n await navigator.clipboard.writeText(text);\n const original = btn.textContent;\n btn.textContent = \"Copied\";\n this._announcer.say(\"Copied\");\n setTimeout(() => {\n btn.textContent = original;\n delete btn.dataset.copied;\n }, 1500);\n } catch {\n // clipboard permission denied or unavailable — button stays as \"Copy\"\n delete btn.dataset.copied;\n }\n }\n\n async _copyPromptSlot(btn: HTMLElement) {\n const slot = this.renderRoot?.querySelector<HTMLSlotElement>('slot[name=\"prompt\"]');\n const nodes = slot?.assignedNodes({ flatten: true }) || [];\n const text = nodes.map((n) => n.textContent || \"\").join(\"\")\n .trim();\n if (!text) return;\n this._copy(text, btn);\n }\n\n _renderWorksIn() {\n if (!this.worksIn.length) return nothing;\n return html`\n <div class=\"bd-installoptions-worksin\">\n <span class=\"bd-installoptions-worksin-label\">Works in</span>\n <div class=\"bd-installoptions-pills\">\n ${this.worksIn.map(\n ({ label, initial, color }) => html`\n <span class=\"bd-installoptions-pill\">\n <span\n class=\"bd-installoptions-pill-icon\"\n style=\"background:${color || \"var(--color-neutral-800)\"}\"\n aria-hidden=\"true\"\n >${initial || label?.[0] || \"?\"}</span>\n ${label}\n </span>\n `\n )}\n </div>\n </div>\n `;\n }\n\n /* Every card's button says \"Copy\", so each is described by its card's\n title: a screen reader reading the buttons on their own hears which\n command each one copies. */\n _renderCard(card: InstallCard, index: number) {\n const titleId = `bd-installoptions-card-title-${index}`;\n return html`\n <div class=\"bd-installoptions-card\">\n <div class=\"bd-installoptions-card-head\">\n <bd-h as=\"h3\" id=${titleId} class=\"bd-installoptions-card-title\">${card.title}</bd-h>\n ${card.badge\n ? html`<span class=\"bd-installoptions-badge\">${card.badge}</span>`\n : nothing}\n </div>\n\n ${card.description\n ? html`<bd-p variant=\"small\" class=\"bd-installoptions-card-description\">${card.description}</bd-p>`\n : nothing}\n\n ${card.code\n ? html`\n <div class=\"bd-installoptions-code\">\n <pre class=\"bd-installoptions-code-text\">${card.code}</pre>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy\"\n aria-describedby=${titleId}\n @click=${(e: MouseEvent) => this._copy(card.code!, e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n `\n : nothing}\n\n ${card.linkLabel\n ? html`\n <bd-link href=${card.linkHref || \"#\"} variant=\"primary\" class=\"bd-installoptions-card-link\">\n ${card.linkLabel} →\n </bd-link>\n `\n : nothing}\n </div>\n `;\n }\n\n _renderPromptPanel() {\n if (!this.promptPanel) return nothing;\n\n return html`\n <div class=\"bd-installoptions-promptpanel\">\n <bd-h as=\"h2\" id=\"bd-installoptions-prompt-title\" class=\"bd-installoptions-prompt-title\">\n <slot name=\"prompt-title\"></slot>\n </bd-h>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-description\">\n <slot name=\"prompt-description\"></slot>\n </bd-p>\n\n ${this.promptLabel\n ? html`<span class=\"bd-installoptions-prompt-label\">${this.promptLabel}</span>`\n : nothing}\n\n <div class=\"bd-installoptions-prompt-code\">\n <div class=\"bd-installoptions-prompt-code-text\">\n <slot name=\"prompt\"></slot>\n </div>\n <button\n type=\"button\"\n class=\"bd-installoptions-copy bd-installoptions-copy--prompt\"\n aria-describedby=\"bd-installoptions-prompt-title\"\n @click=${(e: MouseEvent) => this._copyPromptSlot(e.currentTarget as HTMLButtonElement)}\n >Copy</button>\n </div>\n\n <div class=\"bd-installoptions-prompt-note\">\n <slot name=\"prompt-note\"></slot>\n </div>\n\n <bd-p variant=\"regular\" class=\"bd-installoptions-prompt-footer\">\n <slot name=\"prompt-footer\"></slot>\n </bd-p>\n </div>\n `;\n }\n\n render() {\n return html`\n <div class=\"bd-installoptions-container\">\n <div class=\"bd-ensemble\">\n ${this.eyebrow\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-eyebrow\">${this.eyebrow}</bd-p>`\n : nothing}\n\n <bd-h as=\"h2\" class=\"bd-installoptions-title\">${this.title}</bd-h>\n\n ${this.description\n ? html`<bd-p variant=\"regular\" class=\"bd-installoptions-description\">${this.description}</bd-p>`\n : nothing}\n\n ${this._renderWorksIn()}\n\n <!--\n Slot generic (fara nume) -- pentru orice continut care nu se\n potriveste cu grid-ul fix de carduri (ex: un tabel, o casuta\n checklist, o nota de avertizare). Cardurile ramase implicite\n (this.cards) tot se randeaza mai jos daca sunt pasate; cele doua\n pot coexista sau poti folosi doar unul din ele.\n -->\n <div class=\"bd-installoptions-body\">\n <slot></slot>\n </div>\n\n ${this.cards.length\n ? html`\n <div class=\"bd-installoptions-grid\">\n ${this.cards.map((card, index) => this._renderCard(card, index))}\n </div>\n `\n : nothing}\n\n ${this._renderPromptPanel()}\n </div>\n <span class=\"bd-installoptions-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-install-options\": BdInstallOptions;\n }\n}\n"],"mappings":"A,qfA2BA,IACMI,EADN,cAC+BC,CAAW,C,OACxB,KAAA,OAAA,CAACC,EAAaN,CAAiB,C,CAsB/C,aAAc,CACZ,MAAM,EApBE,KAAA,QAAA,GAEF,KAAA,MAAA,GAEM,KAAA,YAAA,GAEO,KAAA,QAAA,CAAC,EAEC,KAAA,MAAA,CAAC,EAKV,KAAA,YAAA,GAEA,KAAA,YAAA,GASZ,KAAK,WAAa,IAAIO,EAAU,IAAI,CACtC,CAWA,MAAM,MAAM,EAAc,EAAkB,CAC1C,GAAI,aAAYC,EAAI,SACpB,GAAI,QAAQ,OAAS,GACrB,GAAI,CACF,MAAM,UAAU,UAAU,UAAUC,CAAI,EACxC,IAAMC,EAAWF,EAAI,YACrB,EAAI,YAAc,SAClB,KAAK,WAAW,IAAI,QAAQ,EAC5B,eAAiB,CACf,EAAI,YAAcE,EAClB,OAAOF,EAAI,QAAQ,MACrB,EAAG,IAAI,CACT,MAAQ,CAEN,OAAOA,EAAI,QAAQ,MACrB,CAbqB,CAcvB,CAEA,MAAM,gBAAgB,EAAkB,CAGtC,IAAMC,IAFO,KAAK,YAAY,cAA+B,qBAAqB,EAAA,EAC9D,cAAc,CAAE,QAAS,EAAK,CAAC,GAAK,CAAC,EAAA,CACtC,IAAK,GAAME,EAAE,aAAe,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CACxD,KAAK,EACHF,GACL,KAAK,MAAMA,EAAMD,CAAG,CACtB,CAEA,gBAAiB,CAEf,OADK,KAAK,QAAQ,OACX,CAAI;;;;YAIH,KAAK,QAAQ,KACZ,CAAE,QAAO,UAAS,WAAY,CAAI;;;;sCAITI,GAAS,2BAA2B;;mBAEvDC,GAAWC,IAAQ,IAAM,IAAI;kBAC9BA,EAAM;;aAGd,EAAE;;;MAhByBC,CAoBnC,CAKA,YAAY,EAAmB,EAAe,CAC5C,IAAMC,EAAU,gCAAgCC,IAChD,MAAO,EAAI;;;6BAGcD,EAAQ,wCAAwCE,EAAK,MAAM;YAC5EA,EAAK,MACH,CAAI,yCAAyCA,EAAK,MAAM,SACxDH,EAAQ;;;UAGZG,EAAK,YACH,CAAI,oEAAoEA,EAAK,YAAY,SACzFH,EAAQ;;UAEVG,EAAK,KACH,CAAI;;2DAE2CA,EAAK,KAAK;;;;qCAIhCF,EAAQ;2BACjB,GAAkB,KAAK,MAAME,EAAK,KAAOC,EAAE,aAAkC,EAAE;;;cAI/FJ,EAAQ;;UAEVG,EAAK,UACH,CAAI;8BACcA,EAAK,UAAY,IAAI;kBACjCA,EAAK,UAAU;;cAGrBH,EAAQ;;KAGlB,CAEA,oBAAqB,CAGnB,OAFK,KAAK,YAEH,CAAI;;;;;;;;;;UAUL,KAAK,YACH,CAAI,gDAAgD,KAAK,YAAY,SACrEA,EAAQ;;;;;;;;;;qBAUE,GAAkB,KAAK,gBAAgB,EAAE,aAAkC,EAAE;;;;;;;;;;;;MAxBjEA,CAqChC,CAEA,QAAS,CACP,MAAO,EAAI;;;YAGH,KAAK,QACH,CAAI,6DAA6D,KAAK,QAAQ,SAC9EA,EAAQ;;0DAEoC,KAAK,MAAM;;YAEzD,KAAK,YACH,CAAI,iEAAiE,KAAK,YAAY,SACtFA,EAAQ;;YAEV,KAAK,eAAe,EAAE;;;;;;;;;;;;;YAatB,KAAK,MAAM,OACT,CAAI;;oBAEE,KAAK,MAAM,KAAK,EAAM,IAAU,KAAK,YAAYG,EAAMD,CAAK,CAAC,EAAE;;gBAGrEF,EAAQ;;YAEV,KAAK,mBAAmB,EAAE;;+DAEyB,KAAK,WAAW,OAAO;;KAGpF,CACF,EAnNGd,EAAA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAhB,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAhB,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAhB,EAAA,UAAA,UAAA,IAAA,EAAA,EAExBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAhB,EAAA,UAAA,QAAA,IAAA,EAAA,EAKxBH,EAAA,CAAAmB,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,cAAe,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAEpEH,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,UAAW,cAAe,CAAC,CAAA,EAAAhB,EAAA,UAAA,cAAA,IAAA,EAAA,EAnBtD,EAAAH,EAAA,CAAAoB,EAAc,oBAAoB,CAAA,EAAAjB,CAAA"}
|
|
1
|
+
{"version":3,"file":"install-options.js","names":["installOptionsCSS","_decorate","__decorate","install_options_css_default","PROMPT_SLOTS","BdInstallOptions","LitElement","_args","SlotController","Announcer","ensembleCSS","text","codeOf","said","has","name","hasTitle","copied","nothing","hasWorksIn","state","defineElement"],"sources":["../../../../src/components/install-options/install-options.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { 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\";\n/* The atoms the page writes into the section's and its options' slots.\n Neither renders them now, but 3.x's module registered the heading, link\n and paragraph, and a page importing only this module still gets them,\n with the badge and the tag its cards' badge and \"works in\" pills became. */\nimport \"#components/badge/badge.ts\";\nimport \"#components/h/h.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/p/p.ts\";\nimport \"#components/tag/tag.ts\";\nimport installOptionsCSS from \"./install-options.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { Announcer } from \"#shared/announcer.ts\";\nimport { SlotController } from \"#shared/controller.slot.ts\";\n/* One module per family (N4): a page importing the section has its options. */\nimport { codeOf } from \"./install-option.ts\";\n\n/* The slots the \"Then just ask\" panel is made of. It shows while any of them\n holds something. */\nconst PROMPT_SLOTS = [\"prompt-title\", \"prompt-description\", \"prompt-label\", \"prompt\", \"prompt-note\"] as const;\n\n/**\n * A \"how to get this\" section: an eyebrow, a title and a description on the\n * brand tint, a \"Works in\" row, the ways to install, and an optional \"Then\n * just ask\" prompt panel. Every word is the page's:\n *\n * <bd-install-options>\n * <span slot=\"eyebrow\">Get it</span>\n * <bd-h slot=\"title\" as=\"h2\">Three ways to install</bd-h>\n * <bd-p slot=\"description\">…</bd-p>\n * <span slot=\"works-in-label\">Works in</span>\n * <bd-tag slot=\"works-in\">Claude Code</bd-tag>\n * <bd-install-option>…</bd-install-option>\n * </bd-install-options>\n *\n * THE DEFAULT SLOT holds the bd-install-option children, three to a row from\n * lg, and anything else the page puts there -- a table, a checklist, a note --\n * at full width, in the order written.\n *\n * THE PROMPT PANEL is a second region of the section, with its own heading,\n * description, label, prompt and note, so its slots carry a prompt- prefix\n * rather than the section's own names; it shows while any of them holds\n * something, which is what 3.x's prompt-panel attribute switched. Its Copy\n * button copies the prompt slot's words and is described by the panel's\n * title. As an option's (see install-option.ts), its words are the section's\n * `copy` slot, and for 1.5s after a copy its `copied` slot, whose words are\n * said through the section's one live region; with neither, the button has\n * no words and no name, and a copy says nothing.\n *\n * `footer` is the section's closing line, after the panel.\n */\n@defineElement(\"bd-install-options\")\nexport class BdInstallOptions extends LitElement {\n static styles = [ensembleCSS, installOptionsCSS];\n\n _slots = new SlotController(this, {\n slots: [\"eyebrow\", \"title\", \"description\", \"works-in-label\", \"works-in\", \"\", ...PROMPT_SLOTS, \"copy\", \"copied\", \"footer\"]\n });\n\n /* The `copied` words are said, not only shown; see install-option.ts. */\n _announcer = new Announcer(this);\n\n /* As the option's Copy button: `copied` for 1.5s, presses ignored\n meanwhile, never disabled; the flag is set before the clipboard is\n awaited. */\n @state() private _copied = false;\n private _busy = false;\n\n async _copyPrompt() {\n const text = codeOf(this.renderRoot.querySelector<HTMLSlotElement>('slot[name=\"prompt\"]'));\n if (!text || this._busy) return;\n this._busy = true;\n try {\n await navigator.clipboard.writeText(text);\n this._copied = true;\n const said = this._slots.text(\"copied\");\n if (said) this._announcer.say(said);\n setTimeout(() => {\n this._copied = false;\n this._busy = false;\n }, 1500);\n } catch {\n // clipboard permission denied or unavailable -- the button keeps its `copy` words\n this._busy = false;\n }\n }\n\n _renderPromptPanel() {\n const has = (name: typeof PROMPT_SLOTS[number]) => this._slots.has(name);\n const hasTitle = has(\"prompt-title\");\n /* `copied` takes the place of `copy` only while it has words to show. */\n const copied = this._copied && this._slots.has(\"copied\");\n return html`\n <div class=\"bd-installoptions-promptpanel\" ?hidden=${!PROMPT_SLOTS.some(has)}>\n <div class=\"bd-installoptions-prompt-title\" id=\"prompt-title\" ?hidden=${!hasTitle}>\n <slot name=\"prompt-title\"></slot>\n </div>\n\n <div class=\"bd-installoptions-prompt-description\" ?hidden=${!has(\"prompt-description\")}>\n <slot name=\"prompt-description\"></slot>\n </div>\n\n <div class=\"bd-installoptions-prompt-label\" ?hidden=${!has(\"prompt-label\")}>\n <slot name=\"prompt-label\"></slot>\n </div>\n\n <div class=\"bd-installoptions-prompt-code\" ?hidden=${!has(\"prompt\")}>\n <div class=\"bd-installoptions-prompt-code-text\"><slot name=\"prompt\"></slot></div>\n ${has(\"prompt\")\n ? html`<button\n type=\"button\"\n class=\"bd-installoptions-copy bd-installoptions-copy--prompt\"\n aria-describedby=${hasTitle ? \"prompt-title\" : nothing}\n @click=${this._copyPrompt}\n ><span ?hidden=${copied}><slot name=\"copy\"></slot></span><span ?hidden=${!copied}><slot name=\"copied\"></slot></span></button>`\n : nothing}\n </div>\n\n <div class=\"bd-installoptions-prompt-note\" ?hidden=${!has(\"prompt-note\")}>\n <slot name=\"prompt-note\"></slot>\n </div>\n </div>\n `;\n }\n\n render() {\n const hasWorksIn = this._slots.has(\"works-in\");\n return html`\n <div class=\"bd-installoptions-container\">\n <div class=\"bd-ensemble\">\n <div class=\"bd-installoptions-eyebrow\" ?hidden=${!this._slots.has(\"eyebrow\")}>\n <slot name=\"eyebrow\"></slot>\n </div>\n\n <div class=\"bd-installoptions-title\" ?hidden=${!this._slots.has(\"title\")}>\n <slot name=\"title\"></slot>\n </div>\n\n <div class=\"bd-installoptions-description\" ?hidden=${!this._slots.has(\"description\")}>\n <slot name=\"description\"></slot>\n </div>\n\n <div class=\"bd-installoptions-worksin\" ?hidden=${!hasWorksIn && !this._slots.has(\"works-in-label\")}>\n <span class=\"bd-installoptions-worksin-label\" ?hidden=${!this._slots.has(\"works-in-label\")}>\n <slot name=\"works-in-label\"></slot>\n </span>\n <div class=\"bd-installoptions-pills\" ?hidden=${!hasWorksIn}>\n <slot name=\"works-in\"></slot>\n </div>\n </div>\n\n <div class=\"bd-installoptions-body\" ?hidden=${!this._slots.has(\"\")}>\n <slot></slot>\n </div>\n\n ${this._renderPromptPanel()}\n\n <div class=\"bd-installoptions-footer\" ?hidden=${!this._slots.has(\"footer\")}>\n <slot name=\"footer\"></slot>\n </div>\n </div>\n <span class=\"bd-installoptions-status\" role=\"status\">${this._announcer.status}</span>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-install-options\": BdInstallOptions;\n }\n}\n"],"mappings":"A,inBAuBA,IAAMI,EAAe,CAAC,eAAgB,qBAAsB,eAAgB,SAAU,aAAa,EAiCtFC,EAAN,cAA+BC,CAAW,C,8BAGtC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAChC,MAAO,CAAC,UAAW,QAAS,cAAe,iBAAkB,WAAY,GAAI,GAAGJ,EAAc,OAAQ,SAAU,QAAQ,CAC1H,CAAC,EAGY,KAAA,WAAA,IAAIK,EAAU,IAAI,EAKJ,KAAA,QAAA,GACX,KAAA,MAAA,E,QAbA,KAAA,OAAA,CAACC,EAAaV,CAAiB,C,CAe/C,MAAM,aAAc,CAClB,IAAMW,EAAOC,EAAO,KAAK,WAAW,cAA+B,qBAAqB,CAAC,EACzF,GAAKD,GAAQ,MAAK,MAClB,MAAK,MAAQ,GACb,GAAI,CACF,MAAM,UAAU,UAAU,UAAUA,CAAI,EACxC,KAAK,QAAU,GACf,IAAME,EAAO,KAAK,OAAO,KAAK,QAAQ,EAClCA,GAAM,KAAK,WAAW,IAAIA,CAAI,EAClC,eAAiB,CACf,KAAK,QAAU,GACf,KAAK,MAAQ,EACf,EAAG,IAAI,CACT,MAAQ,CAEN,KAAK,MAAQ,EACf,CAba,CAcf,CAEA,oBAAqB,CACnB,IAAMC,EAAO,GAAsC,KAAK,OAAO,IAAIC,CAAI,EACjEC,EAAWF,EAAI,cAAc,EAE7BG,EAAS,KAAK,SAAW,KAAK,OAAO,IAAI,QAAQ,EACvD,MAAO,EAAI;2DAC4C,CAACb,EAAa,KAAKU,CAAG,EAAE;gFACH,CAACE,EAAS;;;;oEAItB,CAACF,EAAI,oBAAoB,EAAE;;;;8DAIjC,CAACA,EAAI,cAAc,EAAE;;;;6DAItB,CAACA,EAAI,QAAQ,EAAE;;YAEhEA,EAAI,QAAQ,EACV,CAAI;;;mCAGiBE,EAAW,eAAiBE,EAAQ;yBAC9C,KAAK,YAAY;+BACXD,EAAO,iDAAiD,CAACA,EAAO,8CACjFC,EAAQ;;;6DAGuC,CAACJ,EAAI,aAAa,EAAE;;;;KAK/E,CAEA,QAAS,CACP,IAAMK,EAAa,KAAK,OAAO,IAAI,UAAU,EAC7C,MAAO,EAAI;;;2DAG4C,CAAC,KAAK,OAAO,IAAI,SAAS,EAAE;;;;yDAI9B,CAAC,KAAK,OAAO,IAAI,OAAO,EAAE;;;;+DAIpB,CAAC,KAAK,OAAO,IAAI,aAAa,EAAE;;;;2DAIpC,CAACA,GAAc,CAAC,KAAK,OAAO,IAAI,gBAAgB,EAAE;oEACzC,CAAC,KAAK,OAAO,IAAI,gBAAgB,EAAE;;;2DAG5C,CAACA,EAAW;;;;;wDAKf,CAAC,KAAK,OAAO,IAAI,EAAE,EAAE;;;;YAIjE,KAAK,mBAAmB,EAAE;;0DAEoB,CAAC,KAAK,OAAO,IAAI,QAAQ,EAAE;;;;+DAItB,KAAK,WAAW,OAAO;;KAGpF,CACF,EApGGlB,EAAA,CAAAmB,EAAM,CAAA,EAAAf,EAAA,UAAA,UAAA,IAAA,EAAA,EAdR,EAAAJ,EAAA,CAAAoB,EAAc,oBAAoB,CAAA,EAAAhB,CAAA,E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* bd-key-takeaways: csg_blog's takeaways card, frame 296:457 nodes
|
|
3
|
+
* 296:447..450 -- a 1px container edge at the card corner, a 24px header
|
|
4
|
+
* over a divider, the title semibold 16 in the sans face, and the list
|
|
5
|
+
* 24 in from the card, its items medium 16, 16 apart, each bullet 24 before
|
|
6
|
+
* its words. The card sits on the page, so its ground is the page's.
|
|
7
|
+
*/
|
|
8
|
+
export declare const keyTakeawaysCSS: import("lit").CSSResult;
|
|
9
|
+
export declare const keyTakeawaysItemsCSS: import("lit").CSSResult;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.takeaways{border:var(--border-width-1) solid var(--color-border-container);border-radius:var(--card-radius);background:var(--color-surface-default);overflow:hidden}.takeaways [hidden]{display:none}.takeaways__header{padding:var(--spacing-24)}::slotted(bd-h[slot=title]){--bd-heading-font-size:var(--typography-heading-h6-fontSize);--bd-heading-font-weight:var(--typography-fontWeight-semibold);--bd-heading-line-height:var(--typography-heading-h6-lineHeight);--bd-heading-letter-spacing:var(--typography-heading-h6-letterSpacing);--bd-heading-font-family:var(--typography-heading-h6-fontFamily);--bd-heading-color:var(--color-text-primary)}.takeaways__divider{border:0;border-top:var(--border-width-1) solid var(--color-border-container);margin:0}::slotted(:is(ul,ol)){padding:var(--spacing-24) var(--spacing-24) var(--spacing-24) var(--spacing-40);font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-fontWeight-medium);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-text-primary);margin:0}::slotted(ul){list-style:outside}::slotted(ol){list-style:decimal}`,n=e`:where(bd-key-takeaways)>:is(ul,ol)>li+li{margin-top:var(--spacing-16)}`;export{t as keyTakeawaysCSS,n as keyTakeawaysItemsCSS};
|
|
2
|
+
//# sourceMappingURL=key-takeaways.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-takeaways.css.js","names":["keyTakeawaysCSS","keyTakeawaysItemsCSS"],"sources":["../../../../src/components/key-takeaways/key-takeaways.css.ts"],"sourcesContent":["import { css, unsafeCSS } from 'lit';\nimport { headingRole } from '#shared/token-scales.ts';\n\n/**\n * bd-key-takeaways: csg_blog's takeaways card, frame 296:457 nodes\n * 296:447..450 -- a 1px container edge at the card corner, a 24px header\n * over a divider, the title semibold 16 in the sans face, and the list\n * 24 in from the card, its items medium 16, 16 apart, each bullet 24 before\n * its words. The card sits on the page, so its ground is the page's.\n */\nexport const keyTakeawaysCSS = css`\n :host {\n display: block;\n }\n\n .takeaways {\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n background: var(--color-surface-default);\n overflow: hidden;\n }\n\n .takeaways [hidden] {\n display: none;\n }\n\n .takeaways__header {\n padding: var(--spacing-24);\n }\n\n /* The page's heading, at the card's title whatever its level: heading-h6\n (16 at 320, 18 from lg) in semibold, Figma's 296:449, in the primary ink. */\n ::slotted(bd-h[slot='title']) {\n ${unsafeCSS(headingRole('heading-h6'))}\n /* no role: the h6 role at 600, which csg_blog draws (296:449); no\n heading role carries the h6 size at that weight. */\n --bd-heading-font-weight: var(--typography-fontWeight-semibold);\n --bd-heading-color: var(--color-text-primary);\n }\n\n .takeaways__divider {\n margin: 0;\n border: 0;\n border-top: var(--border-width-1) solid var(--color-border-container);\n }\n\n /* The page's list. Its items' type is inherited from here -- the body\n role's size and leading in medium, 296:451 -- and the space between\n them is adopted into the tree the card sits in (key-takeaways.ts), since\n no rule here reaches a slotted list's <li>. The bullet hangs in the\n list's 40px indent, 16 for the card's inset and 24 to the words. */\n ::slotted(:is(ul, ol)) {\n margin: 0;\n padding: var(--spacing-24) var(--spacing-24) var(--spacing-24) var(--spacing-40);\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n /* no role: the takeaways' medium items -- a modifier weight on the body\n role, which the design draws in medium */\n font-weight: var(--typography-fontWeight-medium);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-text-primary);\n }\n\n ::slotted(ul) {\n list-style: disc;\n }\n\n ::slotted(ol) {\n list-style: decimal;\n }\n`;\n\n/* The page's list items: no shadow-root rule reaches past the slotted list,\n so this goes into the tree the card sits in, keeping to it by its tag.\n :where() keeps the tag's weight out, so a page's class on its items\n outweighs it. */\nexport const keyTakeawaysItemsCSS = css`\n :where(bd-key-takeaways) > :is(ul, ol) > li + li {\n margin-top: var(--spacing-16);\n }\n`;\n"],"mappings":"A,4DAUA,IAAaA,EAAkB,CAAG,8tCAmErBC,EAAuB,CAAG,0E"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { SlotController } from "../shared/controller.slot.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
import "../h/h.js";
|
|
5
|
+
/**
|
|
6
|
+
* The key takeaways: an edged summary card at the top of an article's body,
|
|
7
|
+
* a title over a divider over a list.
|
|
8
|
+
*
|
|
9
|
+
* <bd-key-takeaways>
|
|
10
|
+
* <bd-h slot="title" as="h2">Key Takeaways</bd-h>
|
|
11
|
+
* <ul>
|
|
12
|
+
* <li>The FBI warns that cryptocurrency investment scammers are using couriers …</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* </bd-key-takeaways>
|
|
15
|
+
*
|
|
16
|
+
* The page writes both: the heading, at the level its outline needs, and its
|
|
17
|
+
* own <ul> or <ol>. The card owns the title's size and ink through the
|
|
18
|
+
* --bd-heading-* hooks, and the list's type and indent; the page owns the
|
|
19
|
+
* level and the words. The card is an <aside> named by its title while it
|
|
20
|
+
* has one; with no title it draws no header and no divider.
|
|
21
|
+
*
|
|
22
|
+
* bd-blog-key-takeaways until the blog folded into the package's components
|
|
23
|
+
* (DEX-29414), with a bd-blog-heading title.
|
|
24
|
+
*/
|
|
25
|
+
export declare class BdKeyTakeaways extends LitElement {
|
|
26
|
+
static styles: import("lit").CSSResult[];
|
|
27
|
+
_slots: SlotController<"title">;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementTagNameMap {
|
|
33
|
+
'bd-key-takeaways': BdKeyTakeaways;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -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"../h/h.js";import{adoptStyles as r}from"../shared/adopt-styles.js";import{keyTakeawaysCSS as i,keyTakeawaysItemsCSS as a}from"./key-takeaways.css.js";import{LitElement as o,html as s,nothing as c}from"lit";var l=class extends o{constructor(...e){super(...e),this._slots=new n(this,{slots:[`title`]})}static{this.styles=[i]}connectedCallback(){super.connectedCallback(),r(this,`bd-key-takeaways`,a)}render(){let e=this._slots.has(`title`);return s`
|
|
2
|
+
<aside class="takeaways" part="takeaways" aria-labelledby=${e?`title`:c}>
|
|
3
|
+
<header class="takeaways__header" id="title" ?hidden=${!e}>
|
|
4
|
+
<slot name="title"></slot>
|
|
5
|
+
</header>
|
|
6
|
+
<hr class="takeaways__divider" ?hidden=${!e} />
|
|
7
|
+
<slot></slot>
|
|
8
|
+
</aside>
|
|
9
|
+
`}};l=t([e(`bd-key-takeaways`)],l);export{l as BdKeyTakeaways};
|
|
10
|
+
//# sourceMappingURL=key-takeaways.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-takeaways.js","names":["_decorate","__decorate","BdKeyTakeaways","LitElement","_args","SlotController","keyTakeawaysCSS","adoptStyles","keyTakeawaysItemsCSS","titled","nothing","defineElement"],"sources":["../../../../src/components/key-takeaways/key-takeaways.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { adoptStyles } from '#shared/adopt-styles.ts';\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';\n// the heading the page writes\nimport '#components/h/h.ts';\nimport { keyTakeawaysCSS, keyTakeawaysItemsCSS } from './key-takeaways.css.ts';\n\n/**\n * The key takeaways: an edged summary card at the top of an article's body,\n * a title over a divider over a list.\n *\n * <bd-key-takeaways>\n * <bd-h slot=\"title\" as=\"h2\">Key Takeaways</bd-h>\n * <ul>\n * <li>The FBI warns that cryptocurrency investment scammers are using couriers …</li>\n * </ul>\n * </bd-key-takeaways>\n *\n * The page writes both: the heading, at the level its outline needs, and its\n * own <ul> or <ol>. The card owns the title's size and ink through the\n * --bd-heading-* hooks, and the list's type and indent; the page owns the\n * level and the words. The card is an <aside> named by its title while it\n * has one; with no title it draws no header and no divider.\n *\n * bd-blog-key-takeaways until the blog folded into the package's components\n * (DEX-29414), with a bd-blog-heading title.\n */\n@defineElement('bd-key-takeaways')\nexport class BdKeyTakeaways extends LitElement {\n static styles = [keyTakeawaysCSS];\n\n _slots = new SlotController(this, { slots: ['title'] });\n\n connectedCallback() {\n super.connectedCallback();\n adoptStyles(this, 'bd-key-takeaways', keyTakeawaysItemsCSS);\n }\n\n render() {\n const titled = this._slots.has('title');\n return html`\n <aside class=\"takeaways\" part=\"takeaways\" aria-labelledby=${titled ? 'title' : nothing}>\n <header class=\"takeaways__header\" id=\"title\" ?hidden=${!titled}>\n <slot name=\"title\"></slot>\n </header>\n <hr class=\"takeaways__divider\" ?hidden=${!titled} />\n <slot></slot>\n </aside>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-key-takeaways': BdKeyTakeaways;\n }\n}\n"],"mappings":"A,wbA+BO,IAAME,EAAN,cAA6BC,CAAW,C,8BAGpC,KAAA,OAAA,IAAIE,EAAe,KAAM,CAAE,MAAO,CAAC,OAAO,CAAE,CAAC,C,QAFtC,KAAA,OAAA,CAACC,CAAe,C,CAIhC,mBAAoB,CAClB,MAAM,kBAAkB,EACxBC,EAAY,KAAM,mBAAoBC,CAAoB,CAC5D,CAEA,QAAS,CACP,IAAMC,EAAS,KAAK,OAAO,IAAI,OAAO,EACtC,MAAO,EAAI;kEACmDA,EAAS,QAAUC,EAAQ;+DAC9B,CAACD,EAAO;;;iDAGtB,CAACA,EAAO;;;KAIvD,CACF,EAvBC,EAAAT,EAAA,CAAAW,EAAc,kBAAkB,CAAA,EAAAT,CAAA,E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import{SIZES as t,isOneOf as n}from"../shared/prop-vocabulary.js";import r from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import i from"./label.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=0,u=/* @__PURE__ */ new Set([`input`,`select`,`textarea`,`button`,`meter`,`output`,`progress`]),d=/* @__PURE__ */ new Set([`checkbox`,`radio`]),f=class extends a{static{this.styles=[i]}constructor(){super(),this.size=`md`,this.required=!1,this.addEventListener(`click`,e=>this._activate(e))}willUpdate(e){e.has(`size`)&&!n(t,this.size)&&(this.size=`md`)}connectedCallback(){super.connectedCallback(),this._link()}disconnectedCallback(){this._unlink(),super.disconnectedCallback()}updated(e){e.has(`for`)&&this._link()}get _target(){if(!this.for||!this.isConnected)return null;let e=this.getRootNode().getElementById?.(this.for);return e&&u.has(e.localName)?e:null}_link(){if(this._unlink(),!this.for||!this.isConnected)return;let e=this._target;if(!e){let e=this.getRootNode();this._waiting=new MutationObserver(()=>{this._target&&this._link()}),this._waiting.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`id`]});return}this.id||=`bd-label-${++l}`;let t=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean);t.includes(this.id)||e.setAttribute(`aria-labelledby`,[...t,this.id].join(` `)),this._linked={target:e,id:this.id}}_unlink(){if(this._waiting?.disconnect(),this._waiting=null,!this._linked)return;let{target:e,id:t}=this._linked,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(e=>e&&e!==t);n.length?e.setAttribute(`aria-labelledby`,n.join(` `)):e.removeAttribute(`aria-labelledby`),this._linked=null}_activate(e){let t=this._target;t&&!t.disabled&&(e.composedPath().some(e=>e!==this&&e.matches?.(`a[href], button, input, select, textarea`))||(t.focus(),t.localName===`input`&&d.has(t.type)&&t.click()))}render(){return o`
|
|
2
2
|
<label>
|
|
3
|
-
<slot></slot>${this.required?
|
|
3
|
+
<slot></slot>${this.required?o`<span class="required" aria-hidden="true">*</span>`:s}
|
|
4
4
|
</label>
|
|
5
|
-
`}};
|
|
5
|
+
`}};r([c({type:String,reflect:!0})],f.prototype,`size`,void 0),r([c({type:String})],f.prototype,`for`,void 0),r([c({type:Boolean,reflect:!0})],f.prototype,`required`,void 0),f=r([e(`bd-label`)],f);export{f as BdLabel};
|
|
6
6
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":["_decorate","__decorate","labelCSS","labelIds","LABELABLE","ACTIVATES","BdLabel","LitElement","changed","
|
|
1
|
+
{"version":3,"file":"label.js","names":["_decorate","__decorate","labelCSS","labelIds","LABELABLE","ACTIVATES","BdLabel","LitElement","changed","isOneOf","SIZES","el","target","root","ids","t","id","n","nothing","property","defineElement"],"sources":["../../../../src/components/label/label.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { labelCSS } from './label.css.ts';\nimport { SIZES, isOneOf, type Size } from '#shared/prop-vocabulary.ts';\n\nlet labelIds = 0;\n\n/* Controls whose own <label for> would have worked: the ones a label can be\n for. A custom element is not here -- see the note on _target. */\nconst LABELABLE = new Set([\"input\", \"select\", \"textarea\", \"button\", \"meter\", \"output\", \"progress\"]);\nconst ACTIVATES = new Set([\"checkbox\", \"radio\"]);\n\ntype Labelable = HTMLElement & { disabled?: boolean };\n\n@defineElement('bd-label')\nexport class BdLabel extends LitElement {\n static styles = [labelCSS];\n\n @property({ type: String, reflect: true })\n size: Size = 'md';\n @property({ type: String })\n for?: string;\n @property({ type: Boolean, reflect: true })\n required = false;\n\n _waiting?: MutationObserver | null;\n _linked? : { target: Labelable; id: string } | null;\n\n constructor() {\n super();\n this.addEventListener('click', e => this._activate(e));\n }\n\n willUpdate(changed: PropertyValues<this>) {\n // sm, md or lg; the 3.x spellings small, default and large went with v4\n if (changed.has('size') && !isOneOf(SIZES, this.size)) this.size = 'md';\n }\n\n /* WHY for IS DONE BY HAND.\n The <label> this renders is in its own shadow root, and a for reference\n resolves only in the tree it is written in, so <bd-label for=\"email\">\n pointed at nothing: the control went unnamed and a click on the label did\n nothing. It now does what a native label's for does, for a native control\n in the same tree as this element:\n\n name the control gets aria-labelledby pointing at this element,\n added to whatever it already lists, and taken back when for\n changes or this element leaves -- so the control is named by\n the label's text\n activate a click on the label focuses the control, and toggles it\n when it is a checkbox or a radio\n\n The control may not exist yet when this renders -- it can come later in\n the page, or be rendered after -- so until it is found the root is\n watched for it. */\n connectedCallback() {\n super.connectedCallback();\n this._link();\n }\n\n disconnectedCallback() {\n this._unlink();\n super.disconnectedCallback();\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has('for')) this._link();\n }\n\n /* The control, when for names one in this element's own tree. A custom\n element is skipped: its real control is inside its own shadow root, where\n aria-labelledby on the host does not reach -- label a bd-input\n with its own label slot. */\n get _target(): Labelable | null {\n if (!this.for || !this.isConnected) return null;\n const el = (this.getRootNode() as Document | ShadowRoot).getElementById?.(this.for);\n return el && LABELABLE.has(el.localName) ? el : null;\n }\n\n _link() {\n this._unlink();\n if (!this.for || !this.isConnected) return;\n const target = this._target;\n if (!target) {\n // not there yet: watch for it, and stop as soon as it is\n const root = this.getRootNode();\n this._waiting = new MutationObserver(() => { if (this._target) this._link(); });\n this._waiting.observe(root, { childList: true, subtree: true, attributes: true, attributeFilter: ['id'] });\n return;\n }\n if (!this.id) this.id = `bd-label-${++labelIds}`;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(Boolean);\n if (!ids.includes(this.id)) target.setAttribute('aria-labelledby', [...ids, this.id].join(' '));\n this._linked = { target, id: this.id };\n }\n\n _unlink() {\n this._waiting?.disconnect();\n this._waiting = null;\n if (!this._linked) return;\n const { target, id } = this._linked;\n const ids = (target.getAttribute('aria-labelledby') || '').split(/\\s+/).filter(t => t && t !== id);\n if (ids.length) target.setAttribute('aria-labelledby', ids.join(' '));\n else target.removeAttribute('aria-labelledby');\n this._linked = null;\n }\n\n _activate(e: MouseEvent) {\n const target = this._target;\n if (!target || target.disabled) return;\n // a link or a control slotted into the label keeps its own click\n if (e.composedPath().some(n => n !== this && (n as Element).matches?.('a[href], button, input, select, textarea'))) return;\n target.focus();\n if (target.localName === 'input' && ACTIVATES.has((target as HTMLInputElement).type)) target.click();\n }\n\n render() {\n return html`\n <label>\n <slot></slot>${this.required\n ? html`<span class=\"required\" aria-hidden=\"true\">*</span>`\n : nothing}\n </label>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-label': BdLabel;\n }\n}\n"],"mappings":"A,0WAQA,IAAIG,EAAW,EAITC,kBAAY,IAAI,IAAI,CAAC,QAAS,SAAU,WAAY,SAAU,QAAS,SAAU,UAAU,CAAC,EAC5FC,kBAAY,IAAI,IAAI,CAAC,WAAY,OAAO,CAAC,EAKlCC,EAAN,cAAsBC,CAAW,C,OACtB,KAAA,OAAA,CAACL,CAAQ,C,CAYzB,aAAc,CACZ,MAAM,EAVK,KAAA,KAAA,KAIF,KAAA,SAAA,GAOT,KAAK,iBAAiB,QAAS,GAAK,KAAK,UAAU,CAAC,CAAC,CACvD,CAEA,WAAW,EAA+B,CAEpCM,EAAQ,IAAI,MAAM,GAAK,CAACC,EAAQC,EAAO,KAAK,IAAI,IAAG,KAAK,KAAO,KACrE,CAmBA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,MAAM,CACb,CAEA,sBAAuB,CACrB,KAAK,QAAQ,EACb,MAAM,qBAAqB,CAC7B,CAEA,QAAQ,EAA+B,CACjCF,EAAQ,IAAI,KAAK,GAAG,KAAK,MAAM,CACrC,CAMA,IAAI,SAA4B,CAC9B,GAAI,CAAC,KAAK,KAAO,CAAC,KAAK,YAAa,OAAO,KAC3C,IAAMG,EAAM,KAAK,YAAY,CAAC,CAA2B,iBAAiB,KAAK,GAAG,EAClF,OAAOA,GAAMP,EAAU,IAAIO,EAAG,SAAS,EAAIA,EAAK,IAClD,CAEA,OAAQ,CAEN,GADA,KAAK,QAAQ,EACT,CAAC,KAAK,KAAO,CAAC,KAAK,YAAa,OACpC,IAAMC,EAAS,KAAK,QACpB,GAAI,CAACA,EAAQ,CAEX,IAAMC,EAAO,KAAK,YAAY,EAC9B,KAAK,SAAW,IAAI,qBAAuB,CAAM,KAAK,SAAS,KAAK,MAAM,CAAG,CAAC,EAC9E,KAAK,SAAS,QAAQA,EAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,GAAM,gBAAiB,CAAC,IAAI,CAAE,CAAC,EACzG,MACF,CACA,AAAc,KAAK,KAAK,YAAY,EAAEV,IACtC,IAAMW,GAAOF,EAAO,aAAa,iBAAiB,GAAK,GAAA,CAAI,MAAM,KAAK,CAAC,CAAC,OAAO,OAAO,EACjFE,EAAI,SAAS,KAAK,EAAE,GAAGF,EAAO,aAAa,kBAAmB,CAAC,GAAGE,EAAK,KAAK,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,EAC9F,KAAK,QAAU,CAAE,SAAQ,GAAI,KAAK,EAAG,CACvC,CAEA,SAAU,CAGR,GAFA,KAAK,UAAU,WAAW,EAC1B,KAAK,SAAW,KACZ,CAAC,KAAK,QAAS,OACnB,GAAM,CAAE,SAAQ,MAAO,KAAK,QACtBA,GAAOF,EAAO,aAAa,iBAAiB,GAAK,GAAA,CAAI,MAAM,KAAK,CAAC,CAAC,OAAO,GAAKG,GAAKA,IAAMC,CAAE,EAC7FF,EAAI,OAAQF,EAAO,aAAa,kBAAmBE,EAAI,KAAK,GAAG,CAAC,EAC/DF,EAAO,gBAAgB,iBAAiB,EAC7C,KAAK,QAAU,IACjB,CAEA,UAAU,EAAe,CACvB,IAAMA,EAAS,KAAK,QACfA,GAAU,GAAO,WAElB,EAAE,aAAa,CAAC,CAAC,KAAK,GAAKK,IAAM,MAASA,EAAc,UAAU,0CAA0C,CAAC,IACjHL,EAAO,MAAM,EACTA,EAAO,YAAc,SAAWP,EAAU,IAAKO,EAA4B,IAAI,GAAGA,EAAO,MAAM,GACrG,CAEA,QAAS,CACP,MAAO,EAAI;;uBAEQ,KAAK,SAChB,CAAI,qDACJM,EAAQ;;KAGlB,CACF,EA3GGlB,EAAA,CAAAmB,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAb,EAAA,UAAA,OAAA,IAAA,EAAA,EAExCN,EAAA,CAAAmB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAb,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBN,EAAA,CAAAmB,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAb,EAAA,UAAA,WAAA,IAAA,EAAA,EAR3C,EAAAN,EAAA,CAAAoB,EAAc,UAAU,CAAA,EAAAd,CAAA,E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{css as e}from"lit";var t=e`.bd-link{align-items:center;gap:var(--spacing-4);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-link-standalone-fontSize);font-weight:var(--typography-link-standalone-fontWeight);line-height:var(--typography-link-standalone-lineHeight);color:var(--bd-link-color,var(--color-text-brand));text-underline-offset:var(--typography-link-underlineOffset);cursor:pointer;transition:color var(--transition-duration-fast) var(--transition-easing-smooth), text-decoration-color var(--transition-duration-fast) var(--transition-easing-smooth);text-decoration:none;display:inline-flex}:host([inline]) .bd-link{font-size:var(--typography-link-default-fontSize);font-weight:var(--typography-link-default-fontWeight);line-height:var(--typography-link-default-lineHeight);letter-spacing:var(--typography-link-default-letterSpacing);font-family:var(--typography-link-default-fontFamily);display:inline}.bd-link--primary{color:var(--bd-link-color,var(--color-text-brand))}.bd-link--primary:hover{color:var(--color-text-brand-hover);text-decoration:underline}.bd-link--secondary{color:var(--bd-link-color,var(--color-text-muted))}.bd-link--secondary:hover{color:var(--color-text-secondary);text-decoration:underline}.bd-link--subtle{color:var(--bd-link-color,var(--color-text-subtle));text-decoration:none}.bd-link--subtle:hover{color:var(--color-text-secondary);text-decoration:underline}.bd-link--bold{color:var(--bd-link-color,var(--color-text-brand));font-weight:var(--typography-fontWeight-semibold);text-decoration:none}.bd-link--bold:hover{color:var(--color-text-brand-hover);text-decoration:underline}.bd-link--danger{color:var(--bd-link-color,var(--color-text-error))}.bd-link--danger:hover{color:var(--color-text-error);text-decoration:underline}:host([surface=dark]) .bd-link,:host([surface=dark]) .bd-link--primary,:host([surface=dark]) .bd-link--secondary,:host([surface=dark]) .bd-link--subtle,:host([surface=dark]) .bd-link--bold,:host([surface=dark]) .bd-link:hover{color:var(--color-text-inverse)}:host([surface=brand]) .bd-link,:host([surface=brand]) .bd-link--primary,:host([surface=brand]) .bd-link--secondary,:host([surface=brand]) .bd-link--subtle,:host([surface=brand]) .bd-link--bold,:host([surface=brand]) .bd-link:hover{color:var(--color-brand-on-fill)}.bd-link--underline{text-decoration:underline}.bd-link--underline:hover{text-decoration-thickness:var(--typography-link-underlineThickness)}.bd-link--
|
|
1
|
+
import{css as e}from"lit";var t=e`.bd-link{align-items:center;gap:var(--spacing-4);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-link-standalone-fontSize);font-weight:var(--typography-link-standalone-fontWeight);line-height:var(--typography-link-standalone-lineHeight);color:var(--bd-link-color,var(--color-text-brand));text-underline-offset:var(--typography-link-underlineOffset);cursor:pointer;transition:color var(--transition-duration-fast) var(--transition-easing-smooth), text-decoration-color var(--transition-duration-fast) var(--transition-easing-smooth);text-decoration:none;display:inline-flex}slot[name=start]::slotted(*){flex:none}:host([inline]) .bd-link{font-size:var(--typography-link-default-fontSize);font-weight:var(--typography-link-default-fontWeight);line-height:var(--typography-link-default-lineHeight);letter-spacing:var(--typography-link-default-letterSpacing);font-family:var(--typography-link-default-fontFamily);display:inline}.bd-link--primary{color:var(--bd-link-color,var(--color-text-brand))}.bd-link--primary:hover{color:var(--color-text-brand-hover);text-decoration:underline}.bd-link--secondary{color:var(--bd-link-color,var(--color-text-muted))}.bd-link--secondary:hover{color:var(--color-text-secondary);text-decoration:underline}.bd-link--subtle{color:var(--bd-link-color,var(--color-text-subtle));text-decoration:none}.bd-link--subtle:hover{color:var(--color-text-secondary);text-decoration:underline}.bd-link--bold{color:var(--bd-link-color,var(--color-text-brand));font-weight:var(--typography-fontWeight-semibold);text-decoration:none}.bd-link--bold:hover{color:var(--color-text-brand-hover);text-decoration:underline}.bd-link--danger{color:var(--bd-link-color,var(--color-text-error))}.bd-link--danger:hover{color:var(--color-text-error);text-decoration:underline}:host([surface=dark]){color-scheme:light}:host([surface=dark]) .bd-link,:host([surface=dark]) .bd-link--primary,:host([surface=dark]) .bd-link--secondary,:host([surface=dark]) .bd-link--subtle,:host([surface=dark]) .bd-link--bold,:host([surface=dark]) .bd-link:hover{color:var(--color-text-inverse)}:host([surface=brand]) .bd-link,:host([surface=brand]) .bd-link--primary,:host([surface=brand]) .bd-link--secondary,:host([surface=brand]) .bd-link--subtle,:host([surface=brand]) .bd-link--bold,:host([surface=brand]) .bd-link:hover{color:var(--color-brand-on-fill)}.bd-link--underline{text-decoration:underline}.bd-link--underline:hover{text-decoration-thickness:var(--typography-link-underlineThickness)}.bd-link--without-underline,.bd-link--without-underline:hover{text-decoration:none}.bd-link--arrow{gap:var(--spacing-8)}.bd-link--arrow ::slotted([slot=icon]){height:var(--icon-sm-size)}:host([inline]) .bd-link--arrow bd-icon[name=arrow],:host([inline]) .bd-link--arrow ::slotted([slot=icon]){vertical-align:middle;margin-inline-start:var(--spacing-4)}.bd-link[aria-current]{font-weight:var(--typography-fontWeight-bold);color:var(--color-text-primary)}.bd-link[aria-current]:hover{color:var(--color-text-primary)}.bd-link--disabled,span.bd-link--disabled{color:var(--color-text-disabled);cursor:not-allowed;pointer-events:none;text-decoration:none}.bd-link:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary);border-radius:var(--focus-outline-radius)}:host([surface=brand]) .bd-link:focus-visible{outline:var(--focus-outline-traditional-on-brand);box-shadow:none}a.bd-link{cursor:pointer}span.bd-link,a.bd-link:not([href]){cursor:default}@media (prefers-reduced-motion:reduce){.bd-link{transition:none}}`;export{t as default};
|
|
2
2
|
//# sourceMappingURL=link.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.css.js","names":["link_css_default"],"sources":["../../../../src/components/link/link.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-link.\n *\n * The base rule reads --typography-link-default-*, which had fourteen tokens\n * and no consumer: the component re-spelled every one of them in primitives.\n * The underline offset was a 2px literal in seven places, on a property the\n * length rule does not check, so nothing could see it and nothing could change\n * it in one move.\n *\n * Colour comes from the semantic text roles. The default was --color-blue-500,\n * which is 4.53:1 on white — the step CLAUDE.md names as the one to avoid for\n * text, and the atom's own bold variant already avoided it.\n */\nexport default css`\n /* Every axis here is the standalone role's. Weight used to be the one\n exception -- it read --typography-link-default-fontWeight, the inline\n role's 400 -- so a standalone link rendered 400 against the 500 its own\n role, the Figma link/standalone style and the homepage all draw. The\n inline role's weight now lives in the inline block below, with the rest\n of that role. */\n .bd-link {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-4);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-link-standalone-fontSize);\n font-weight: var(--typography-link-standalone-fontWeight);\n line-height: var(--typography-link-standalone-lineHeight);\n color: var(--bd-link-color, var(--color-text-brand));\n text-decoration: none;\n text-underline-offset: var(--typography-link-underlineOffset);\n cursor: pointer;\n /* the properties that actually change, rather than all: a link that\n animates every property also animates the ones it inherits */\n transition: color var(--transition-duration-fast) var(--transition-easing-smooth),\n text-decoration-color var(--transition-duration-fast) var(--transition-easing-smooth);\n }\n\n /* ---- inline ------------------------------------------------------------\n A link in a sentence is that sentence's text, so it takes its type from\n the sentence. --typography-link-default-* is the role that says so: size,\n leading, tracking and family are all inherit. Four of those axes had no\n consumer, because the base rule above reads the standalone role instead --\n 1rem and 1.5 regardless of context -- which is why an inline link measured\n 16px inside a 12px caption and inside a 32px lede alike.\n\n display returns to inline as well. An inline-flex box does not hug its\n own text: in a 220px column the same link measured the full 220px where a\n plain <a> measured 209px, so it does not sit in the line the way a real\n inline element does. The gap and align-items above go inert with it, which\n is correct here -- an inline link is a run of text, not a row. */\n :host([inline]) .bd-link {\n display: inline;\n font-size: var(--typography-link-default-fontSize);\n font-weight: var(--typography-link-default-fontWeight);\n line-height: var(--typography-link-default-lineHeight);\n letter-spacing: var(--typography-link-default-letterSpacing);\n font-family: var(--typography-link-default-fontFamily);\n }\n\n /* ---- kinds ------------------------------------------------------------ */\n .bd-link--primary {\n color: var(--bd-link-color, var(--color-text-brand));\n }\n .bd-link--primary:hover {\n color: var(--color-text-brand-hover);\n text-decoration: underline;\n }\n\n .bd-link--secondary {\n color: var(--bd-link-color, var(--color-text-muted));\n }\n .bd-link--secondary:hover {\n color: var(--color-text-secondary);\n text-decoration: underline;\n }\n\n .bd-link--subtle {\n color: var(--bd-link-color, var(--color-text-subtle));\n text-decoration: none;\n }\n .bd-link--subtle:hover {\n color: var(--color-text-secondary);\n text-decoration: underline;\n }\n\n .bd-link--bold {\n color: var(--bd-link-color, var(--color-text-brand));\n /* no role: the bold modifier on a link -- a state or modifier weight, not a text-content\n type. See button.css.ts's .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-semibold);\n text-decoration: none;\n }\n .bd-link--bold:hover {\n color: var(--color-text-brand-hover);\n text-decoration: underline;\n }\n\n /* Red on a link is the error role, not bd-button's accent. The button's red\n is this system's conversion colour and it deliberately has no danger kind;\n a link is the opposite case — red text reads as a warning about where the\n link goes, so it takes --color-text-error and says so. */\n .bd-link--danger {\n color: var(--bd-link-color, var(--color-text-error));\n }\n .bd-link--danger:hover {\n color: var(--color-text-error);\n text-decoration: underline;\n }\n\n /* ---- surface ----------------------------------------------------------\n The same attribute bd-button uses to say the same thing. It replaces the\n light kind, which described the surface rather than the link and could\n not be combined with any of the kinds above. */\n :host([surface=\"dark\"]) .bd-link,\n :host([surface=\"dark\"]) .bd-link--primary,\n :host([surface=\"dark\"]) .bd-link--secondary,\n :host([surface=\"dark\"]) .bd-link--subtle,\n :host([surface=\"dark\"]) .bd-link--bold {\n color: var(--color-text-inverse);\n }\n\n /* Colour only. This rule used to carry text-decoration: underline as well,\n and at (0,4,0) it outweighed .bd-link--no-underline:hover at (0,2,0) --\n so a link explicitly asking for no underline got one anyway, but only on a\n dark surface. Measured: dark/primary/no-underline went none -> underline on\n hover, where the same link on a light surface stayed none.\n\n The underline is the kinds' business, and every kind already declares it. */\n :host([surface=\"dark\"]) .bd-link:hover {\n color: var(--color-text-inverse);\n }\n\n /* On a band filled with the brand: the brand's ink, which a theme must\n clear 4.5:1 on that fill. text-inverse is white, and on a light partner\n brand white is the one ink that cannot be read. On Bitdefender the two\n are the same white. */\n :host([surface=\"brand\"]) .bd-link,\n :host([surface=\"brand\"]) .bd-link--primary,\n :host([surface=\"brand\"]) .bd-link--secondary,\n :host([surface=\"brand\"]) .bd-link--subtle,\n :host([surface=\"brand\"]) .bd-link--bold,\n :host([surface=\"brand\"]) .bd-link:hover {\n color: var(--color-brand-on-fill);\n }\n\n /* ---- modifiers --------------------------------------------------------\n Ordered after the kinds rather than marked !important. Four declarations\n carried it before, which made the atom unoverridable by a consuming page —\n the exact failure the cascade-layer token work was done to avoid. */\n .bd-link--underline {\n text-decoration: underline;\n }\n .bd-link--underline:hover {\n text-decoration-thickness: var(--typography-link-underlineThickness);\n }\n\n .bd-link--no-underline,\n .bd-link--no-underline:hover {\n text-decoration: none;\n }\n\n /* ---- arrow ------------------------------------------------------------\n spacing/8 between the label and the arrow, the icon-to-label gap bd-back\n and the md and lg buttons already use. The base row's spacing/4 was set\n for text alone, and the Figma set measures 8.\n\n The underline needs no rule of its own. The anchor is a flex container,\n so the decoration propagates to its flex items and is drawn only where\n there is text: under the label, not under the arrow, which is what the\n Link arrow set draws. That was the set's open question, and it is\n answered by the layout this atom already had rather than by a choice. */\n .bd-link--arrow {\n gap: var(--spacing-8);\n }\n\n /* a swapped icon is held to the step the default arrow is drawn at */\n .bd-link--arrow ::slotted([slot=\"icon\"]) {\n height: var(--icon-sm-size);\n }\n\n /* inline returns the link to a run of text, so there is no row and the gap\n goes inert; a start margin keeps the arrow off the last letter instead.\n The icon has no text, so its baseline is its bottom edge and it sat on\n the line about 4px high; middle centres it on the x-height. */\n :host([inline]) .bd-link--arrow bd-arrow-icon,\n :host([inline]) .bd-link--arrow ::slotted([slot=\"icon\"]) {\n margin-inline-start: var(--spacing-4);\n vertical-align: middle;\n }\n\n /* The current link, read off the aria-current the <a> carries rather than\n a class beside it, so what is drawn and what is announced are one\n attribute and cannot disagree. */\n .bd-link[aria-current] {\n /* no role: a link in its active state -- a state or modifier weight, not a text-content\n type. See button.css.ts's .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-bold);\n color: var(--color-text-primary);\n }\n\n /* The current item does not move under the pointer.\n\n The current state and --primary are both present on a current nav item,\n and .bd-link--primary:hover outweighed the class this used to be -- so\n without this rule hovering the page you are already on turned it back to\n the brand ink, which is the one thing that colour is not supposed to mean\n here. Measured on bd-page-switcher before the wayfinding family review:\n current + hover reported action/primary-active, the only one of the\n three that recoloured an item the reader had already arrived at.\n\n It outranks every kind hover, so it wins whatever the order. */\n .bd-link[aria-current]:hover {\n color: var(--color-text-primary);\n }\n\n /* ---- states ----------------------------------------------------------- */\n .bd-link--disabled,\n span.bd-link--disabled {\n color: var(--color-text-disabled);\n cursor: not-allowed;\n text-decoration: none;\n pointer-events: none;\n }\n\n /* No :focus { outline: none } beside this: the browser's own ring is a\n :focus-visible ring too, so a pointer focus never drew one. */\n .bd-link:focus-visible {\n /* the one focus ring — see Foundations/Focus. A two-colour ring whose\n white inner band keeps it visible on a coloured or dark surface, which a\n single-colour outline cannot do. surface=\"dark\" keeps it too: a link has\n no fill or border, so its white band meets the hero directly, 4.53:1 on\n blue-500 and more on every darker ground. */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n /* The two-colour ring puts a white band against the link, which is what\n carries it on Bitdefender's blue band and what vanishes on a light partner\n band. Under surface=\"brand\" the ring is one band in the brand's ink, held\n off the text so the gap is the band itself -- bd-button's ring, for the\n same reason. */\n :host([surface=\"brand\"]) .bd-link:focus-visible {\n outline: var(--focus-outline-traditional-on-brand);\n box-shadow: none;\n }\n\n a.bd-link {\n cursor: pointer;\n }\n\n /* There is no element-qualified reset here, and that is the point.\n\n The anchor's underline is already off: .bd-link sets text-decoration none,\n and an author rule beats the UA stylesheet whatever its specificity. What\n the old a.bd-link:not(.bd-link--underline) rule added was weight -- (0,2,1)\n against the (0,2,0) of every .bd-link--<kind>:hover -- so the hover\n underline each of the five kinds declares lost the cascade and never\n painted. Measured on light surfaces: primary, secondary, subtle, bold and\n danger all went none -> none across a hover. On a dark surface the same\n hover underlined, because that rule is (0,4,0) and outweighed the reset.\n\n The kinds and the modifiers sort themselves out on class weight alone, in\n source order: --underline and --no-underline are declared after the kinds,\n so they still win. */\n span.bd-link {\n cursor: default;\n }\n\n /* An <a> with no href is not a link, so it does not get the hand: the\n pointer would promise a destination there is none of. */\n a.bd-link:not([href]) {\n cursor: default;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .bd-link {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,0BAeA,IAAAA,EAAe,CAAG,q7G"}
|
|
1
|
+
{"version":3,"file":"link.css.js","names":["link_css_default"],"sources":["../../../../src/components/link/link.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\n/**\n * bd-link.\n *\n * The base rule reads --typography-link-default-*, which had fourteen tokens\n * and no consumer: the component re-spelled every one of them in primitives.\n * The underline offset was a 2px literal in seven places, on a property the\n * length rule does not check, so nothing could see it and nothing could change\n * it in one move.\n *\n * Colour comes from the semantic text roles. The default was --color-blue-500,\n * which is 4.53:1 on white — the step CLAUDE.md names as the one to avoid for\n * text, and the atom's own bold variant already avoided it.\n */\nexport default css`\n /* Every axis here is the standalone role's. Weight used to be the one\n exception -- it read --typography-link-default-fontWeight, the inline\n role's 400 -- so a standalone link rendered 400 against the 500 its own\n role, the Figma link/standalone style and the homepage all draw. The\n inline role's weight now lives in the inline block below, with the rest\n of that role. */\n .bd-link {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-4);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-link-standalone-fontSize);\n font-weight: var(--typography-link-standalone-fontWeight);\n line-height: var(--typography-link-standalone-lineHeight);\n color: var(--bd-link-color, var(--color-text-brand));\n text-decoration: none;\n text-underline-offset: var(--typography-link-underlineOffset);\n cursor: pointer;\n /* the properties that actually change, rather than all: a link that\n animates every property also animates the ones it inherits */\n transition: color var(--transition-duration-fast) var(--transition-easing-smooth),\n text-decoration-color var(--transition-duration-fast) var(--transition-easing-smooth);\n }\n\n /* The start slot holds what comes before the label (N7): an icon or a small\n image, like the accordion's guide link draws. It keeps its own size in\n the row, the label's gap set apart from it. An empty slot is a\n display: contents box with nothing in it, so it adds no gap. */\n slot[name=\"start\"]::slotted(*) {\n flex: none;\n }\n\n /* ---- inline ------------------------------------------------------------\n A link in a sentence is that sentence's text, so it takes its type from\n the sentence. --typography-link-default-* is the role that says so: size,\n leading, tracking and family are all inherit. Four of those axes had no\n consumer, because the base rule above reads the standalone role instead --\n 1rem and 1.5 regardless of context -- which is why an inline link measured\n 16px inside a 12px caption and inside a 32px lede alike.\n\n display returns to inline as well. An inline-flex box does not hug its\n own text: in a 220px column the same link measured the full 220px where a\n plain <a> measured 209px, so it does not sit in the line the way a real\n inline element does. The gap and align-items above go inert with it, which\n is correct here -- an inline link is a run of text, not a row. */\n :host([inline]) .bd-link {\n display: inline;\n font-size: var(--typography-link-default-fontSize);\n font-weight: var(--typography-link-default-fontWeight);\n line-height: var(--typography-link-default-lineHeight);\n letter-spacing: var(--typography-link-default-letterSpacing);\n font-family: var(--typography-link-default-fontFamily);\n }\n\n /* ---- appearances ------------------------------------------------------ */\n .bd-link--primary {\n color: var(--bd-link-color, var(--color-text-brand));\n }\n .bd-link--primary:hover {\n color: var(--color-text-brand-hover);\n text-decoration: underline;\n }\n\n .bd-link--secondary {\n color: var(--bd-link-color, var(--color-text-muted));\n }\n .bd-link--secondary:hover {\n color: var(--color-text-secondary);\n text-decoration: underline;\n }\n\n .bd-link--subtle {\n color: var(--bd-link-color, var(--color-text-subtle));\n text-decoration: none;\n }\n .bd-link--subtle:hover {\n color: var(--color-text-secondary);\n text-decoration: underline;\n }\n\n .bd-link--bold {\n color: var(--bd-link-color, var(--color-text-brand));\n /* no role: the bold modifier on a link -- a state or modifier weight, not a text-content\n type. See button.css.ts's .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-semibold);\n text-decoration: none;\n }\n .bd-link--bold:hover {\n color: var(--color-text-brand-hover);\n text-decoration: underline;\n }\n\n /* Red on a link is the error role, not bd-button's accent. The button's red\n is this system's conversion colour and it deliberately has no danger appearance;\n a link is the opposite case — red text reads as a warning about where the\n link goes, so it takes --color-text-error and says so. */\n .bd-link--danger {\n color: var(--bd-link-color, var(--color-text-error));\n }\n .bd-link--danger:hover {\n color: var(--color-text-error);\n text-decoration: underline;\n }\n\n /* ---- surface ----------------------------------------------------------\n The same attribute bd-button uses to say the same thing. It replaces the\n light kind, which described the surface rather than the link and could\n not be combined with any of the looks above.\n\n A dark surface is a ground that is dark in every theme -- a hero, the\n footer's brand band -- so in a dark page the link on it is drawn in the\n light scheme, as bd-button's is: the inverse ink stays white and the\n focus ring's gap band, the page's ground, stays the white band that\n carries the ring on a blue hero. Without it the ink turned near-black on\n the footer's blue, 3.15:1. */\n :host([surface=\"dark\"]) {\n color-scheme: light;\n }\n\n :host([surface=\"dark\"]) .bd-link,\n :host([surface=\"dark\"]) .bd-link--primary,\n :host([surface=\"dark\"]) .bd-link--secondary,\n :host([surface=\"dark\"]) .bd-link--subtle,\n :host([surface=\"dark\"]) .bd-link--bold {\n color: var(--color-text-inverse);\n }\n\n /* Colour only. This rule used to carry text-decoration: underline as well,\n and at (0,4,0) it outweighed .bd-link--without-underline:hover at (0,2,0) --\n so a link explicitly asking for no underline got one anyway, but only on a\n dark surface. Measured: dark/primary/without-underline went none -> underline on\n hover, where the same link on a light surface stayed none.\n\n The underline is the appearances' business, and every one already declares it. */\n :host([surface=\"dark\"]) .bd-link:hover {\n color: var(--color-text-inverse);\n }\n\n /* On a band filled with the brand: the brand's ink, which a theme must\n clear 4.5:1 on that fill. text-inverse is white, and on a light partner\n brand white is the one ink that cannot be read. On Bitdefender the two\n are the same white. */\n :host([surface=\"brand\"]) .bd-link,\n :host([surface=\"brand\"]) .bd-link--primary,\n :host([surface=\"brand\"]) .bd-link--secondary,\n :host([surface=\"brand\"]) .bd-link--subtle,\n :host([surface=\"brand\"]) .bd-link--bold,\n :host([surface=\"brand\"]) .bd-link:hover {\n color: var(--color-brand-on-fill);\n }\n\n /* ---- modifiers --------------------------------------------------------\n Ordered after the appearances rather than marked !important. Four declarations\n carried it before, which made the atom unoverridable by a consuming page —\n the exact failure the cascade-layer token work was done to avoid. */\n .bd-link--underline {\n text-decoration: underline;\n }\n .bd-link--underline:hover {\n text-decoration-thickness: var(--typography-link-underlineThickness);\n }\n\n .bd-link--without-underline,\n .bd-link--without-underline:hover {\n text-decoration: none;\n }\n\n /* ---- arrow ------------------------------------------------------------\n spacing/8 between the label and the arrow, the icon-to-label gap bd-back\n and the md and lg buttons already use. The base row's spacing/4 was set\n for text alone, and the Figma set measures 8.\n\n The underline needs no rule of its own. The anchor is a flex container,\n so the decoration propagates to its flex items and is drawn only where\n there is text: under the label, not under the arrow, which is what the\n Link arrow set draws. That was the set's open question, and it is\n answered by the layout this atom already had rather than by a choice. */\n .bd-link--arrow {\n gap: var(--spacing-8);\n }\n\n /* a swapped icon is held to the step the default arrow is drawn at */\n .bd-link--arrow ::slotted([slot=\"icon\"]) {\n height: var(--icon-sm-size);\n }\n\n /* inline returns the link to a run of text, so there is no row and the gap\n goes inert; a start margin keeps the arrow off the last letter instead.\n The icon has no text, so its baseline is its bottom edge and it sat on\n the line about 4px high; middle centres it on the x-height. */\n :host([inline]) .bd-link--arrow bd-icon[name=\"arrow\"],\n :host([inline]) .bd-link--arrow ::slotted([slot=\"icon\"]) {\n margin-inline-start: var(--spacing-4);\n vertical-align: middle;\n }\n\n /* The current link, read off the aria-current the <a> carries rather than\n a class beside it, so what is drawn and what is announced are one\n attribute and cannot disagree. */\n .bd-link[aria-current] {\n /* no role: a link in its active state -- a state or modifier weight, not a text-content\n type. See button.css.ts's .button--bold for the argument. */\n font-weight: var(--typography-fontWeight-bold);\n color: var(--color-text-primary);\n }\n\n /* The current item does not move under the pointer.\n\n The current state and --primary are both present on a current nav item,\n and .bd-link--primary:hover outweighed the class this used to be -- so\n without this rule hovering the page you are already on turned it back to\n the brand ink, which is the one thing that colour is not supposed to mean\n here. Measured on bd-page-switcher before the wayfinding family review:\n current + hover reported action/primary-active, the only one of the\n three that recoloured an item the reader had already arrived at.\n\n It outranks every appearance hover, so it wins whatever the order. */\n .bd-link[aria-current]:hover {\n color: var(--color-text-primary);\n }\n\n /* ---- states ----------------------------------------------------------- */\n .bd-link--disabled,\n span.bd-link--disabled {\n color: var(--color-text-disabled);\n cursor: not-allowed;\n text-decoration: none;\n pointer-events: none;\n }\n\n /* No :focus { outline: none } beside this: the browser's own ring is a\n :focus-visible ring too, so a pointer focus never drew one. */\n .bd-link:focus-visible {\n /* the one focus ring — see Foundations/Focus. A two-colour ring whose\n inner band, the page's ground, keeps it visible on a coloured surface,\n which a single-colour outline cannot do. surface=\"dark\" keeps it too: a\n link has no fill or border, so its inner band -- white there, in the\n light scheme the surface is drawn in -- meets the hero directly, 4.53:1\n on blue-500 and more on every darker ground. */\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n /* The two-colour ring puts a white band against the link, which is what\n carries it on Bitdefender's blue band and what vanishes on a light partner\n band. Under surface=\"brand\" the ring is one band in the brand's ink, held\n off the text so the gap is the band itself -- bd-button's ring, for the\n same reason. */\n :host([surface=\"brand\"]) .bd-link:focus-visible {\n outline: var(--focus-outline-traditional-on-brand);\n box-shadow: none;\n }\n\n a.bd-link {\n cursor: pointer;\n }\n\n /* There is no element-qualified reset here, and that is the point.\n\n The anchor's underline is already off: .bd-link sets text-decoration none,\n and an author rule beats the UA stylesheet whatever its specificity. What\n the old a.bd-link:not(.bd-link--underline) rule added was weight -- (0,2,1)\n against the (0,2,0) of every .bd-link--<appearance>:hover -- so the hover\n underline each of the five appearances declares lost the cascade and never\n painted. Measured on light surfaces: primary, secondary, subtle, bold and\n danger all went none -> none across a hover. On a dark surface the same\n hover underlined, because that rule is (0,4,0) and outweighed the reset.\n\n The appearances and the modifiers sort themselves out on class weight alone, in\n source order: --underline and --without-underline are declared after the appearances,\n so they still win. */\n span.bd-link {\n cursor: default;\n }\n\n /* An <a> with no href is not a link, so it does not get the hand: the\n pointer would promise a destination there is none of. */\n a.bd-link:not([href]) {\n cursor: default;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .bd-link {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,0BAeA,IAAAA,EAAe,CAAG,qhH"}
|
|
@@ -1,27 +1,38 @@
|
|
|
1
1
|
import { LitElement, nothing, type PropertyValues } from "lit";
|
|
2
2
|
import "../../tokens/tokens.js";
|
|
3
|
-
import "../icons/arrow
|
|
3
|
+
import "../icons/arrow.js";
|
|
4
4
|
import { type FontSizeStep, type ColorRole } from "../shared/token-scales.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The anchor -- or, when disabled, the span -- is exposed as `part="link"`.
|
|
7
|
+
*
|
|
8
|
+
* It is the element that carries the ink, the padding and the focus ring, and
|
|
9
|
+
* until now nothing outside this shadow root could reach it. That is not a
|
|
10
|
+
* theoretical gap: bd-breadcrumb's mobile layout put a full-width padded pill
|
|
11
|
+
* on the bd-link HOST, and the anchor inside stayed the width of its own text,
|
|
12
|
+
* so a 343x40 row offered a 43x24 target -- 7.5% of what it looked like. A
|
|
13
|
+
* part is the seam for the cases where the box a consumer needs to style and
|
|
14
|
+
* the box the browser makes focusable have to be the same box.
|
|
15
|
+
*
|
|
16
|
+
* It is a seam, not a licence to restyle the atom: reach for an appearance
|
|
17
|
+
* first.
|
|
18
|
+
*/
|
|
19
|
+
declare const APPEARANCES: readonly ["primary", "secondary", "subtle", "bold", "danger"];
|
|
20
|
+
declare const SURFACES: readonly ["light", "dark", "brand"];
|
|
21
|
+
type Appearance = typeof APPEARANCES[number];
|
|
22
|
+
type Surface = typeof SURFACES[number];
|
|
8
23
|
type Current = "page" | "step" | "location" | "date" | "time" | "true";
|
|
9
24
|
declare class BdLink extends LitElement {
|
|
10
25
|
href: string;
|
|
11
26
|
target: string;
|
|
12
|
-
|
|
13
|
-
/** @deprecated pass `variant`. */
|
|
14
|
-
kind: Variant | "light" | "";
|
|
27
|
+
appearance: Appearance;
|
|
15
28
|
underline: boolean;
|
|
16
|
-
|
|
29
|
+
/** Removes the underline an appearance draws by default, at rest or on hover. */
|
|
30
|
+
withoutUnderline: boolean;
|
|
17
31
|
disabled: boolean;
|
|
18
32
|
fontSize: FontSizeStep | "";
|
|
19
33
|
inline: boolean;
|
|
20
34
|
color: ColorRole | "";
|
|
21
35
|
current: Current | "";
|
|
22
|
-
/** @deprecated pass `current`. It drew the current state without
|
|
23
|
-
announcing it; it now means current="true". */
|
|
24
|
-
active: boolean;
|
|
25
36
|
surface: Surface;
|
|
26
37
|
arrow: boolean;
|
|
27
38
|
description: string;
|
|
@@ -32,10 +43,10 @@ declare class BdLink extends LitElement {
|
|
|
32
43
|
* The arrow is decorative: the label already says where the link goes, so
|
|
33
44
|
* the icon is hidden rather than named. It sits in a named slot so a page
|
|
34
45
|
* can swap the glyph, the way the Figma set swaps its icon property, and it
|
|
35
|
-
* is drawn in currentColor, so it takes the link's ink in every
|
|
46
|
+
* is drawn in currentColor, so it takes the link's ink in every appearance,
|
|
36
47
|
* state and surface without a rule of its own.
|
|
37
48
|
*/
|
|
38
|
-
get _arrow():
|
|
49
|
+
get _arrow(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
39
50
|
/**
|
|
40
51
|
* font-size is a type-scale step and color is a semantic role; both are
|
|
41
52
|
* resolved to token references by shared/token-scales.ts, and anything off
|
|
@@ -49,7 +60,7 @@ declare class BdLink extends LitElement {
|
|
|
49
60
|
* reported neutral-900 at weight 400, so the links were inert under the
|
|
50
61
|
* pointer. Four sites pass the prop today and all four were affected.
|
|
51
62
|
*
|
|
52
|
-
* As a custom property it is the *resting* colour instead: the
|
|
63
|
+
* As a custom property it is the *resting* colour instead: the appearance rules
|
|
53
64
|
* below read it through a var() fallback, and the :hover, --active and
|
|
54
65
|
* --disabled rules keep plain `color` declarations, so they win the way they
|
|
55
66
|
* were always meant to.
|
|
@@ -62,8 +73,6 @@ declare class BdLink extends LitElement {
|
|
|
62
73
|
* exists to keep it in.
|
|
63
74
|
*/
|
|
64
75
|
get _inlineStyle(): string;
|
|
65
|
-
/** The aria-current token, which is also what the current look keys on. */
|
|
66
|
-
get _current(): "" | Current;
|
|
67
76
|
render(): import("lit-html").TemplateResult<1>;
|
|
68
77
|
_handleClick(e: Event): void;
|
|
69
78
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{color as e,fontSize as t}from"../shared/token-scales.js";import{defineElement as n}from"../shared/define-element.js";import"../../tokens/tokens.js";import{isOneOf as r}from"../shared/prop-vocabulary.js";import i from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import a from"./link.css.js";import"../icons/arrow.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l}from"lit/decorators.js";var u=[`primary`,`secondary`,`subtle`,`bold`,`danger`],d=[`light`,`dark`,`brand`],f=class extends o{constructor(...e){super(...e),this.href=``,this.target=`_self`,this.appearance=`primary`,this.underline=!1,this.withoutUnderline=!1,this.disabled=!1,this.fontSize=``,this.inline=!1,this.color=``,this.current=``,this.surface=`light`,this.arrow=!1,this.description=``}willUpdate(e){e.has(`appearance`)&&!r(u,this.appearance)&&(this.appearance=`primary`),e.has(`surface`)&&!r(d,this.surface)&&(this.surface=`light`)}static{this.styles=[a]}get _classes(){return[`bd-link`,`bd-link--${this.appearance}`,this.underline?`bd-link--underline`:``,this.withoutUnderline?`bd-link--without-underline`:``,this.disabled?`bd-link--disabled`:``,this.arrow?`bd-link--arrow`:``].filter(Boolean).join(` `)}get _arrow(){return this.arrow?s`<slot name="icon"><bd-icon name="arrow" size="sm" aria-hidden="true"></bd-icon></slot>`:c}get _inlineStyle(){return[[`font-size`,this.inline?``:t(this.fontSize)],[`--bd-link-color`,e(this.color)]].filter(([,e])=>e).map(([e,t])=>`${e}: ${t}`).join(`; `)}render(){return this.disabled?s`<span part="link" class="${this._classes}" style="${this._inlineStyle}"><slot name="start"></slot><slot></slot>${this._arrow}</span>`:s`<a
|
|
2
2
|
part="link"
|
|
3
3
|
class="${this._classes}"
|
|
4
4
|
style="${this._inlineStyle}"
|
|
5
5
|
href="${this.href||c}"
|
|
6
6
|
target="${this.href?this.target:c}"
|
|
7
|
-
aria-current="${this.
|
|
7
|
+
aria-current="${this.current||c}"
|
|
8
8
|
aria-describedby="${this.description?`description`:c}"
|
|
9
9
|
@click="${this._handleClick}"
|
|
10
|
-
><slot></slot>${this._arrow}</a>${this.description?s`<span id="description" hidden>${this.description}</span>`:c}`}_handleClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}};
|
|
10
|
+
><slot name="start"></slot><slot></slot>${this._arrow}</a>${this.description?s`<span id="description" hidden>${this.description}</span>`:c}`}_handleClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}};i([l({type:String})],f.prototype,`href`,void 0),i([l({type:String})],f.prototype,`target`,void 0),i([l({type:String,reflect:!0})],f.prototype,`appearance`,void 0),i([l({type:Boolean,reflect:!0})],f.prototype,`underline`,void 0),i([l({type:Boolean,attribute:`without-underline`})],f.prototype,`withoutUnderline`,void 0),i([l({type:Boolean,reflect:!0})],f.prototype,`disabled`,void 0),i([l({type:String,attribute:`font-size`})],f.prototype,`fontSize`,void 0),i([l({type:Boolean,reflect:!0})],f.prototype,`inline`,void 0),i([l({type:String})],f.prototype,`color`,void 0),i([l({type:String,reflect:!0,converter:{toAttribute:e=>e||null}})],f.prototype,`current`,void 0),i([l({type:String,reflect:!0})],f.prototype,`surface`,void 0),i([l({type:Boolean,reflect:!0})],f.prototype,`arrow`,void 0),i([l({type:String})],f.prototype,`description`,void 0),f=i([n(`bd-link`)],f);
|
|
11
11
|
//# sourceMappingURL=link.js.map
|