@repobit/dex-system-design 3.0.1 → 3.0.3
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 +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- 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 +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1,144 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../heading/heading.js";
|
|
12
|
-
import "../paragraph/paragraph.js";
|
|
13
|
-
import compatibilityTableCSS from "./compatibility-table.css.js";
|
|
14
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
15
|
-
let CompatibilityTable = class CompatibilityTable extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.title = "";
|
|
19
|
-
this.description = "";
|
|
20
|
-
this.variant = "default";
|
|
21
|
-
this.background = "default";
|
|
22
|
-
this.lightColumns = 2;
|
|
23
|
-
this.columns = null;
|
|
24
|
-
this.rows = [];
|
|
25
|
-
}
|
|
26
|
-
static { this.styles = [tokens, ensembleCSS, compatibilityTableCSS]; }
|
|
27
|
-
_defaultColumns() {
|
|
28
|
-
if (this.columns)
|
|
29
|
-
return this.columns;
|
|
30
|
-
if (this.variant === "outcome")
|
|
31
|
-
return ["Agent event", "Without AI Guardian", "With AI Guardian"];
|
|
32
|
-
if (this.variant === "risk")
|
|
33
|
-
return ["Risk category", "AI Guardian coverage"];
|
|
34
|
-
if (this.variant === "light")
|
|
35
|
-
return null;
|
|
36
|
-
return ["Environment", "Coverage", "Notes"];
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The column name a cell shows below md, where the header row is hidden.
|
|
40
|
-
*
|
|
41
|
-
* It has to come from `columns`, because that is what the header shows. The
|
|
42
|
-
* stylesheet used to carry these as hardcoded strings in `content` --
|
|
43
|
-
* "Without AI Guardian: " and four others -- so a consumer who passed their
|
|
44
|
-
* own columns got them in the header and the component's English in the
|
|
45
|
-
* cells. Measured at 375 with columns set to Romanian: the header read
|
|
46
|
-
* "Fara AI Guardian" and the cell label still read "Without AI Guardian".
|
|
47
|
-
* There was no way to change it and no way to translate it.
|
|
48
|
-
*
|
|
49
|
-
* Passed to CSS as a string custom property so the label stays generated
|
|
50
|
-
* content: it is a visual stand-in for a header that is still in the
|
|
51
|
-
* accessibility tree, and putting it in the DOM would say it twice.
|
|
52
|
-
*/
|
|
53
|
-
_cellLabel(index) {
|
|
54
|
-
const columns = this._defaultColumns();
|
|
55
|
-
const name = columns?.[index];
|
|
56
|
-
return name ? `--bd-cell-label: "${String(name).replace(/["\\]/g, "")}: "` : nothing;
|
|
57
|
-
}
|
|
58
|
-
/* A native table. It was divs carrying role="table", "row", "columnheader"
|
|
59
|
-
and "cell", which said in ARIA what the elements say for themselves --
|
|
60
|
-
and only for as long as every role stayed in step with the markup, which
|
|
61
|
-
the rowgroup note this replaces records it once did not. The first cell
|
|
62
|
-
of a row names the row, so it is the row's <th>. */
|
|
63
|
-
_renderRow(row) {
|
|
64
|
-
if (this.variant === "outcome") {
|
|
65
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./compatibility-table.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.title=``,this.description=``,this.variant=`default`,this.background=`default`,this.lightColumns=2,this.columns=null,this.rows=[]}static{this.styles=[t,r,i]}_defaultColumns(){return this.columns?this.columns:this.variant===`outcome`?[`Agent event`,`Without AI Guardian`,`With AI Guardian`]:this.variant===`risk`?[`Risk category`,`AI Guardian coverage`]:this.variant===`light`?null:[`Environment`,`Coverage`,`Notes`]}_cellLabel(e){let t=this._defaultColumns()?.[e];return t?`--bd-cell-label: "${String(t).replace(/["\\]/g,``)}: "`:s}_renderRow(e){return this.variant===`outcome`?o`
|
|
66
2
|
<tr class="bd-compattable-row">
|
|
67
|
-
<th class="bd-compattable-cell bd-compattable-cell--event" scope="row">${
|
|
68
|
-
<td class="bd-compattable-cell bd-compattable-cell--without" style=${this._cellLabel(1)}>${
|
|
69
|
-
<td class="bd-compattable-cell bd-compattable-cell--with" style=${this._cellLabel(2)}>${
|
|
3
|
+
<th class="bd-compattable-cell bd-compattable-cell--event" scope="row">${e.event}</th>
|
|
4
|
+
<td class="bd-compattable-cell bd-compattable-cell--without" style=${this._cellLabel(1)}>${e.without}</td>
|
|
5
|
+
<td class="bd-compattable-cell bd-compattable-cell--with" style=${this._cellLabel(2)}>${e.with}</td>
|
|
70
6
|
</tr>
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
if (this.variant === "risk") {
|
|
74
|
-
return html `
|
|
7
|
+
`:this.variant===`risk`?o`
|
|
75
8
|
<tr class="bd-compattable-row">
|
|
76
|
-
<th class="bd-compattable-cell bd-compattable-cell--category" scope="row">${
|
|
77
|
-
<td class="bd-compattable-cell bd-compattable-cell--riskcoverage" style=${this._cellLabel(1)}>${
|
|
9
|
+
<th class="bd-compattable-cell bd-compattable-cell--category" scope="row">${e.category}</th>
|
|
10
|
+
<td class="bd-compattable-cell bd-compattable-cell--riskcoverage" style=${this._cellLabel(1)}>${e.coverage}</td>
|
|
78
11
|
</tr>
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
if (this.variant === "light") {
|
|
82
|
-
return html `
|
|
12
|
+
`:this.variant===`light`?o`
|
|
83
13
|
<tr class="bd-compattable-lightrow">
|
|
84
|
-
<th class="bd-compattable-lightlabel" scope="row">${
|
|
85
|
-
<td class="bd-compattable-lightvalue">${
|
|
14
|
+
<th class="bd-compattable-lightlabel" scope="row">${e.label}</th>
|
|
15
|
+
<td class="bd-compattable-lightvalue">${e.value}</td>
|
|
86
16
|
</tr>
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
/* notes may be a template of several inline items, which the cell spaced
|
|
90
|
-
as a flex row; a table cell cannot be one, so the content is wrapped */
|
|
91
|
-
return html `
|
|
17
|
+
`:o`
|
|
92
18
|
<tr class="bd-compattable-row">
|
|
93
|
-
<th class="bd-compattable-cell bd-compattable-cell--environment" scope="row">${
|
|
94
|
-
<td class="bd-compattable-cell bd-compattable-cell--coverage" style=${this._cellLabel(1)}>${
|
|
95
|
-
<td class="bd-compattable-cell bd-compattable-cell--notes" style=${this._cellLabel(2)}><span class="bd-compattable-notes">${
|
|
19
|
+
<th class="bd-compattable-cell bd-compattable-cell--environment" scope="row">${e.environment}</th>
|
|
20
|
+
<td class="bd-compattable-cell bd-compattable-cell--coverage" style=${this._cellLabel(1)}>${e.coverage}</td>
|
|
21
|
+
<td class="bd-compattable-cell bd-compattable-cell--notes" style=${this._cellLabel(2)}><span class="bd-compattable-notes">${e.notes}</span></td>
|
|
96
22
|
</tr>
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
render() {
|
|
100
|
-
const columns = this._defaultColumns();
|
|
101
|
-
return html `
|
|
23
|
+
`}render(){let e=this._defaultColumns();return o`
|
|
102
24
|
<div class="bd-ensemble bd-compattable-wrapper">
|
|
103
|
-
${this.title
|
|
104
|
-
? html `
|
|
25
|
+
${this.title?o`
|
|
105
26
|
<bd-h as="h2" class="bd-compattable-title">
|
|
106
27
|
<slot name="title">${this.title}</slot>
|
|
107
28
|
</bd-h>
|
|
108
|
-
|
|
109
|
-
: nothing}
|
|
29
|
+
`:s}
|
|
110
30
|
|
|
111
|
-
${this.description
|
|
112
|
-
? html `
|
|
31
|
+
${this.description?o`
|
|
113
32
|
<bd-p variant="large" class="bd-compattable-description" color="muted">
|
|
114
33
|
<slot name="description">${this.description}</slot>
|
|
115
34
|
</bd-p>
|
|
116
|
-
|
|
117
|
-
: nothing}
|
|
35
|
+
`:s}
|
|
118
36
|
|
|
119
|
-
${this.variant
|
|
120
|
-
? html `
|
|
37
|
+
${this.variant===`light`?o`
|
|
121
38
|
<table
|
|
122
39
|
class="bd-compattable-lightgrid"
|
|
123
40
|
style="--bd-compattable-light-columns: ${this.lightColumns};"
|
|
124
41
|
>
|
|
125
42
|
<tbody class="bd-compattable-lightbody">
|
|
126
|
-
${this.rows.map(
|
|
43
|
+
${this.rows.map(e=>this._renderRow(e))}
|
|
127
44
|
</tbody>
|
|
128
45
|
</table>
|
|
129
46
|
<slot name="rows"></slot>
|
|
130
|
-
`
|
|
131
|
-
: html `
|
|
47
|
+
`:o`
|
|
132
48
|
<div class="bd-compattable-table-container">
|
|
133
49
|
<table class="bd-compattable-table">
|
|
134
|
-
<colgroup>${
|
|
50
|
+
<colgroup>${e.map(()=>o`<col>`)}</colgroup>
|
|
135
51
|
<thead class="bd-compattable-header">
|
|
136
52
|
<tr>
|
|
137
|
-
${
|
|
53
|
+
${e.map(e=>o`<th class="bd-compattable-header-cell" scope="col">${e}</th>`)}
|
|
138
54
|
</tr>
|
|
139
55
|
</thead>
|
|
140
56
|
<tbody class="bd-compattable-body">
|
|
141
|
-
${this.rows.map(
|
|
57
|
+
${this.rows.map(e=>this._renderRow(e))}
|
|
142
58
|
</tbody>
|
|
143
59
|
</table>
|
|
144
60
|
<!-- after the table, inside the card: a slotted element
|
|
@@ -147,31 +63,5 @@ let CompatibilityTable = class CompatibilityTable extends LitElement {
|
|
|
147
63
|
</div>
|
|
148
64
|
`}
|
|
149
65
|
</div>
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
__decorate([
|
|
154
|
-
property({ type: String })
|
|
155
|
-
], CompatibilityTable.prototype, "title", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
property({ type: String })
|
|
158
|
-
], CompatibilityTable.prototype, "description", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
property({ type: String, reflect: true })
|
|
161
|
-
], CompatibilityTable.prototype, "variant", void 0);
|
|
162
|
-
__decorate([
|
|
163
|
-
property({ type: String, reflect: true })
|
|
164
|
-
], CompatibilityTable.prototype, "background", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
property({ type: Number, attribute: "light-columns" })
|
|
167
|
-
], CompatibilityTable.prototype, "lightColumns", void 0);
|
|
168
|
-
__decorate([
|
|
169
|
-
property({ type: Array })
|
|
170
|
-
], CompatibilityTable.prototype, "columns", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
property({ type: Array })
|
|
173
|
-
], CompatibilityTable.prototype, "rows", void 0);
|
|
174
|
-
CompatibilityTable = __decorate([
|
|
175
|
-
defineElement("bd-compatibility-table")
|
|
176
|
-
], CompatibilityTable);
|
|
66
|
+
`}};n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:String,reflect:!0})],l.prototype,`variant`,void 0),n([c({type:String,reflect:!0})],l.prototype,`background`,void 0),n([c({type:Number,attribute:`light-columns`})],l.prototype,`lightColumns`,void 0),n([c({type:Array})],l.prototype,`columns`,void 0),n([c({type:Array})],l.prototype,`rows`,void 0),l=n([e(`bd-compatibility-table`)],l);
|
|
177
67
|
//# sourceMappingURL=compatibility-table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibility-table.js","sourceRoot":"","sources":["../../../../src/components/compatibility-table/compatibility-table.ts"],"names":[],"mappings":"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","sourcesContent":["import { LitElement, html, nothing, type TemplateResult } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport { tokens } from \"../../tokens/tokens.ts\";\nimport \"../heading/heading.ts\";\nimport \"../paragraph/paragraph.ts\";\nimport compatibilityTableCSS from \"./compatibility-table.css.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\n\ntype Variant = \"default\" | \"outcome\" | \"risk\" | \"light\";\ntype Background = \"default\" | \"blue\" | \"bordered\";\n\ninterface CompatibilityRow {\n environment?: string;\n coverage? : string;\n notes? : string | TemplateResult;\n event? : string;\n without? : string;\n with? : string;\n category? : string;\n label? : string;\n value? : string;\n}\n\n@defineElement(\"bd-compatibility-table\")\nclass CompatibilityTable extends LitElement {\n static styles = [tokens, ensembleCSS, compatibilityTableCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String, reflect: true })\n variant: Variant = \"default\";\n @property({ type: String, reflect: true })\n background: Background = \"default\";\n @property({ type: Number, attribute: \"light-columns\" })\n lightColumns = 2;\n @property({ type: Array })\n columns: string[] | null = null;\n @property({ type: Array })\n rows: CompatibilityRow[] = [];\n\n _defaultColumns() {\n if (this.columns) return this.columns;\n if (this.variant === \"outcome\") return [\"Agent event\", \"Without AI Guardian\", \"With AI Guardian\"];\n if (this.variant === \"risk\") return [\"Risk category\", \"AI Guardian coverage\"];\n if (this.variant === \"light\") return null;\n return [\"Environment\", \"Coverage\", \"Notes\"];\n }\n\n /**\n * The column name a cell shows below md, where the header row is hidden.\n *\n * It has to come from `columns`, because that is what the header shows. The\n * stylesheet used to carry these as hardcoded strings in `content` --\n * \"Without AI Guardian: \" and four others -- so a consumer who passed their\n * own columns got them in the header and the component's English in the\n * cells. Measured at 375 with columns set to Romanian: the header read\n * \"Fara AI Guardian\" and the cell label still read \"Without AI Guardian\".\n * There was no way to change it and no way to translate it.\n *\n * Passed to CSS as a string custom property so the label stays generated\n * content: it is a visual stand-in for a header that is still in the\n * accessibility tree, and putting it in the DOM would say it twice.\n */\n _cellLabel(index: number) {\n const columns = this._defaultColumns();\n const name = columns?.[index];\n return name ? `--bd-cell-label: \"${String(name).replace(/[\"\\\\]/g, \"\")}: \"` : nothing;\n }\n\n /* A native table. It was divs carrying role=\"table\", \"row\", \"columnheader\"\n and \"cell\", which said in ARIA what the elements say for themselves --\n and only for as long as every role stayed in step with the markup, which\n the rowgroup note this replaces records it once did not. The first cell\n of a row names the row, so it is the row's <th>. */\n _renderRow(row: CompatibilityRow) {\n if (this.variant === \"outcome\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--event\" scope=\"row\">${row.event}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--without\" style=${this._cellLabel(1)}>${row.without}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--with\" style=${this._cellLabel(2)}>${row.with}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"risk\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--category\" scope=\"row\">${row.category}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--riskcoverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"light\") {\n return html`\n <tr class=\"bd-compattable-lightrow\">\n <th class=\"bd-compattable-lightlabel\" scope=\"row\">${row.label}</th>\n <td class=\"bd-compattable-lightvalue\">${row.value}</td>\n </tr>\n `;\n }\n\n /* notes may be a template of several inline items, which the cell spaced\n as a flex row; a table cell cannot be one, so the content is wrapped */\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--environment\" scope=\"row\">${row.environment}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--coverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--notes\" style=${this._cellLabel(2)}><span class=\"bd-compattable-notes\">${row.notes}</span></td>\n </tr>\n `;\n }\n\n render() {\n const columns = this._defaultColumns();\n\n return html`\n <div class=\"bd-ensemble bd-compattable-wrapper\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-compattable-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-compattable-description\" color=\"muted\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n ${this.variant === \"light\"\n ? html`\n <table\n class=\"bd-compattable-lightgrid\"\n style=\"--bd-compattable-light-columns: ${this.lightColumns};\"\n >\n <tbody class=\"bd-compattable-lightbody\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <slot name=\"rows\"></slot>\n `\n : html`\n <div class=\"bd-compattable-table-container\">\n <table class=\"bd-compattable-table\">\n <colgroup>${columns!.map(() => html`<col>`)}</colgroup>\n <thead class=\"bd-compattable-header\">\n <tr>\n ${columns!.map(\n (col) => html`<th class=\"bd-compattable-header-cell\" scope=\"col\">${col}</th>`\n )}\n </tr>\n </thead>\n <tbody class=\"bd-compattable-body\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <!-- after the table, inside the card: a slotted element\n cannot become a row of a native table -->\n <slot name=\"rows\"></slot>\n </div>\n `}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-compatibility-table\": CompatibilityTable;\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"compatibility-table.js","names":["compatibilityTableCSS","_decorate","__decorate","compatibility_table_css_default","CompatibilityTable","LitElement","_args","tokens","ensembleCSS","name","index","nothing","row","columns","col","property","defineElement"],"sources":["../../../../src/components/compatibility-table/compatibility-table.ts"],"sourcesContent":["import { LitElement, html, nothing, type TemplateResult } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport compatibilityTableCSS from \"./compatibility-table.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ntype Variant = \"default\" | \"outcome\" | \"risk\" | \"light\";\ntype Background = \"default\" | \"blue\" | \"bordered\";\n\ninterface CompatibilityRow {\n environment?: string;\n coverage? : string;\n notes? : string | TemplateResult;\n event? : string;\n without? : string;\n with? : string;\n category? : string;\n label? : string;\n value? : string;\n}\n\n@defineElement(\"bd-compatibility-table\")\nclass CompatibilityTable extends LitElement {\n static styles = [tokens, ensembleCSS, compatibilityTableCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String, reflect: true })\n variant: Variant = \"default\";\n @property({ type: String, reflect: true })\n background: Background = \"default\";\n @property({ type: Number, attribute: \"light-columns\" })\n lightColumns = 2;\n @property({ type: Array })\n columns: string[] | null = null;\n @property({ type: Array })\n rows: CompatibilityRow[] = [];\n\n _defaultColumns() {\n if (this.columns) return this.columns;\n if (this.variant === \"outcome\") return [\"Agent event\", \"Without AI Guardian\", \"With AI Guardian\"];\n if (this.variant === \"risk\") return [\"Risk category\", \"AI Guardian coverage\"];\n if (this.variant === \"light\") return null;\n return [\"Environment\", \"Coverage\", \"Notes\"];\n }\n\n /**\n * The column name a cell shows below md, where the header row is hidden.\n *\n * It has to come from `columns`, because that is what the header shows. The\n * stylesheet used to carry these as hardcoded strings in `content` --\n * \"Without AI Guardian: \" and four others -- so a consumer who passed their\n * own columns got them in the header and the component's English in the\n * cells. Measured at 375 with columns set to Romanian: the header read\n * \"Fara AI Guardian\" and the cell label still read \"Without AI Guardian\".\n * There was no way to change it and no way to translate it.\n *\n * Passed to CSS as a string custom property so the label stays generated\n * content: it is a visual stand-in for a header that is still in the\n * accessibility tree, and putting it in the DOM would say it twice.\n */\n _cellLabel(index: number) {\n const columns = this._defaultColumns();\n const name = columns?.[index];\n return name ? `--bd-cell-label: \"${String(name).replace(/[\"\\\\]/g, \"\")}: \"` : nothing;\n }\n\n /* A native table. It was divs carrying role=\"table\", \"row\", \"columnheader\"\n and \"cell\", which said in ARIA what the elements say for themselves --\n and only for as long as every role stayed in step with the markup, which\n the rowgroup note this replaces records it once did not. The first cell\n of a row names the row, so it is the row's <th>. */\n _renderRow(row: CompatibilityRow) {\n if (this.variant === \"outcome\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--event\" scope=\"row\">${row.event}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--without\" style=${this._cellLabel(1)}>${row.without}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--with\" style=${this._cellLabel(2)}>${row.with}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"risk\") {\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--category\" scope=\"row\">${row.category}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--riskcoverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n </tr>\n `;\n }\n\n if (this.variant === \"light\") {\n return html`\n <tr class=\"bd-compattable-lightrow\">\n <th class=\"bd-compattable-lightlabel\" scope=\"row\">${row.label}</th>\n <td class=\"bd-compattable-lightvalue\">${row.value}</td>\n </tr>\n `;\n }\n\n /* notes may be a template of several inline items, which the cell spaced\n as a flex row; a table cell cannot be one, so the content is wrapped */\n return html`\n <tr class=\"bd-compattable-row\">\n <th class=\"bd-compattable-cell bd-compattable-cell--environment\" scope=\"row\">${row.environment}</th>\n <td class=\"bd-compattable-cell bd-compattable-cell--coverage\" style=${this._cellLabel(1)}>${row.coverage}</td>\n <td class=\"bd-compattable-cell bd-compattable-cell--notes\" style=${this._cellLabel(2)}><span class=\"bd-compattable-notes\">${row.notes}</span></td>\n </tr>\n `;\n }\n\n render() {\n const columns = this._defaultColumns();\n\n return html`\n <div class=\"bd-ensemble bd-compattable-wrapper\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-compattable-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-compattable-description\" color=\"muted\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n ${this.variant === \"light\"\n ? html`\n <table\n class=\"bd-compattable-lightgrid\"\n style=\"--bd-compattable-light-columns: ${this.lightColumns};\"\n >\n <tbody class=\"bd-compattable-lightbody\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <slot name=\"rows\"></slot>\n `\n : html`\n <div class=\"bd-compattable-table-container\">\n <table class=\"bd-compattable-table\">\n <colgroup>${columns!.map(() => html`<col>`)}</colgroup>\n <thead class=\"bd-compattable-header\">\n <tr>\n ${columns!.map(\n (col) => html`<th class=\"bd-compattable-header-cell\" scope=\"col\">${col}</th>`\n )}\n </tr>\n </thead>\n <tbody class=\"bd-compattable-body\">\n ${this.rows.map((row) => this._renderRow(row))}\n </tbody>\n </table>\n <!-- after the table, inside the card: a slotted element\n cannot become a row of a native table -->\n <slot name=\"rows\"></slot>\n </div>\n `}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-compatibility-table\": CompatibilityTable;\n }\n}"],"mappings":"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"}
|
|
@@ -1,98 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { below } from "../shared/token-scales.js";
|
|
3
|
-
export default css `
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
font-family: var(--typography-fontFamily-sans);
|
|
7
|
-
/* the band runs full-bleed on the host; the column inside it is bd-ensemble */
|
|
8
|
-
background: radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%), linear-gradient(160deg, var(--color-brand-500) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.bd-ctabanner-container {
|
|
12
|
-
padding-block: var(--spacing-64);
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: center;
|
|
17
|
-
text-align: center;
|
|
18
|
-
gap: var(--spacing-16);
|
|
19
|
-
}
|
|
20
|
-
.bd-ctabanner-footer {
|
|
21
|
-
margin-top: var(--spacing-24);
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: var(--spacing-8);
|
|
26
|
-
text-align: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.bd-ctabanner-footer:not(:has(*)) {
|
|
30
|
-
display: none;
|
|
31
|
-
}
|
|
32
|
-
.bd-ctabanner-title {
|
|
33
|
-
display: block;
|
|
34
|
-
margin: 0;
|
|
35
|
-
max-width: 800px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.bd-ctabanner-description {
|
|
39
|
-
display: block;
|
|
40
|
-
margin: 0 0 var(--spacing-16);
|
|
41
|
-
/* No colour here: the description takes color="on-brand", the title's
|
|
42
|
-
role, on its bd-p. It was 85% white, translucent so the gradient showed
|
|
43
|
-
through, and recorded as 4.67:1. Measured from screenshots of the
|
|
44
|
-
Default story on 2026-10-29 -- text hidden, the ground under the glyph
|
|
45
|
-
band sampled, the ink composited -- it was 4.07:1 at 375, 4.24 at 768
|
|
46
|
-
and 4.41 at 1024, at 18px/400 against a 4.5 bar: on a narrow screen it
|
|
47
|
-
wraps up into the gradient's light spot. Nothing under 93% white clears
|
|
48
|
-
that, so it is solid: worst point rgb(18,106,226) at 375, 5.02:1. */
|
|
49
|
-
max-width: 640px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.bd-ctabanner-cta {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-wrap: wrap;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
gap: var(--spacing-16);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.bd-ctabanner-caption {
|
|
60
|
-
display: block;
|
|
61
|
-
margin: var(--spacing-8) 0 0;
|
|
62
|
-
/* no role: as the description above. Measured the same way -- text
|
|
63
|
-
hidden, ground sampled under the glyph band from a screenshot of the
|
|
64
|
-
Default story, ink composited -- at 375, 768, 1024, 1280, 1440 and 1600.
|
|
65
|
-
.
|
|
66
|
-
At 60% this was recorded as 4.51:1 and measured 4.35 to 4.40 at 768 and
|
|
67
|
-
up on 2026-10-29: the caption sits lower in the banner than when it was
|
|
68
|
-
measured, on a lighter part of the gradient. Set in mono, which is wider
|
|
69
|
-
and reaches lighter ground still, 60% measured 4.30. At 65% the worst
|
|
70
|
-
point is rgb(0,65,163) -> 4.78:1 at 14px/400, against a 4.5 bar.
|
|
71
|
-
.
|
|
72
|
-
Moving this caption up the banner, darkening the gradient's light end
|
|
73
|
-
or dropping the alpha all lower that, and none of those would look like
|
|
74
|
-
an accessibility change to whoever made it. If this needs to move,
|
|
75
|
-
re-measure rather than reason: arithmetic on the token values says
|
|
76
|
-
1.99:1 over blue-400, the gradient's lightest stop, which is NOT where
|
|
77
|
-
this text sits.
|
|
78
|
-
.
|
|
79
|
-
Mixed over the palette rather than written as an rgba. */
|
|
80
|
-
color: color-mix(in srgb, var(--color-brand-on-fill) 65%, transparent);
|
|
81
|
-
/* No font-family or font-size: this class is on a <bd-p variant="small">
|
|
82
|
-
host, and bd-p sets both on its own inner element, so a host declaration
|
|
83
|
-
never reached the text. The mono it declared rendered in sans; the
|
|
84
|
-
caption asks bd-p for font-family="mono" now. */
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@media ${unsafeCSS(below('sm'))} {
|
|
88
|
-
.bd-ctabanner-container {
|
|
89
|
-
padding-block: var(--spacing-48);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.bd-ctabanner-cta {
|
|
93
|
-
flex-direction: column;
|
|
94
|
-
width: 100%;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);background:radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%), linear-gradient(160deg, var(--color-brand-500) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);display:block}.bd-ctabanner-container{padding-block:var(--spacing-64);box-sizing:border-box;text-align:center;align-items:center;gap:var(--spacing-16);flex-direction:column;display:flex}.bd-ctabanner-footer{margin-top:var(--spacing-24);align-items:center;gap:var(--spacing-8);text-align:center;flex-direction:column;display:flex}.bd-ctabanner-footer:not(:has(*)){display:none}.bd-ctabanner-title{max-width:800px;margin:0;display:block}.bd-ctabanner-description{margin:0 0 var(--spacing-16);max-width:640px;display:block}.bd-ctabanner-cta{justify-content:center;gap:var(--spacing-16);flex-wrap:wrap;display:flex}.bd-ctabanner-caption{margin:var(--spacing-8) 0 0;color:color-mix(in srgb, var(--color-brand-on-fill) 65%, transparent);display:block}@media (width<576px){.bd-ctabanner-container{padding-block:var(--spacing-48)}.bd-ctabanner-cta{flex-direction:column;width:100%}}`;export{t as default};
|
|
98
2
|
//# sourceMappingURL=cta-banner.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta-banner.css.js","
|
|
1
|
+
{"version":3,"file":"cta-banner.css.js","names":["cta_banner_css_default"],"sources":["../../../../src/components/cta-banner/cta-banner.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n /* the band runs full-bleed on the host; the column inside it is bd-ensemble */\n background: radial-gradient(1200px 600px at 78% -10%, var(--color-brand-400) 0%, transparent 55%), linear-gradient(160deg, var(--color-brand-500) 0%, var(--color-brand-700) 48%, var(--color-brand-950) 100%);\n }\n\n .bd-ctabanner-container {\n padding-block: var(--spacing-64);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n gap: var(--spacing-16);\n }\n .bd-ctabanner-footer {\n margin-top: var(--spacing-24);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--spacing-8);\n text-align: center;\n }\n\n .bd-ctabanner-footer:not(:has(*)) {\n display: none;\n }\n .bd-ctabanner-title {\n display: block;\n margin: 0;\n max-width: 800px;\n }\n\n .bd-ctabanner-description {\n display: block;\n margin: 0 0 var(--spacing-16);\n /* No colour here: the description takes color=\"on-brand\", the title's\n role, on its bd-p. It was 85% white, translucent so the gradient showed\n through, and recorded as 4.67:1. Measured from screenshots of the\n Default story on 2026-10-29 -- text hidden, the ground under the glyph\n band sampled, the ink composited -- it was 4.07:1 at 375, 4.24 at 768\n and 4.41 at 1024, at 18px/400 against a 4.5 bar: on a narrow screen it\n wraps up into the gradient's light spot. Nothing under 93% white clears\n that, so it is solid: worst point rgb(18,106,226) at 375, 5.02:1. */\n max-width: 640px;\n }\n\n .bd-ctabanner-cta {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--spacing-16);\n }\n\n .bd-ctabanner-caption {\n display: block;\n margin: var(--spacing-8) 0 0;\n /* no role: as the description above. Measured the same way -- text\n hidden, ground sampled under the glyph band from a screenshot of the\n Default story, ink composited -- at 375, 768, 1024, 1280, 1440 and 1600.\n .\n At 60% this was recorded as 4.51:1 and measured 4.35 to 4.40 at 768 and\n up on 2026-10-29: the caption sits lower in the banner than when it was\n measured, on a lighter part of the gradient. Set in mono, which is wider\n and reaches lighter ground still, 60% measured 4.30. At 65% the worst\n point is rgb(0,65,163) -> 4.78:1 at 14px/400, against a 4.5 bar.\n .\n Moving this caption up the banner, darkening the gradient's light end\n or dropping the alpha all lower that, and none of those would look like\n an accessibility change to whoever made it. If this needs to move,\n re-measure rather than reason: arithmetic on the token values says\n 1.99:1 over blue-400, the gradient's lightest stop, which is NOT where\n this text sits.\n .\n Mixed over the palette rather than written as an rgba. */\n color: color-mix(in srgb, var(--color-brand-on-fill) 65%, transparent);\n /* No font-family or font-size: this class is on a <bd-p variant=\"small\">\n host, and bd-p sets both on its own inner element, so a host declaration\n never reached the text. The mono it declared rendered in sans; the\n caption asks bd-p for font-family=\"mono\" now. */\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-ctabanner-container {\n padding-block: var(--spacing-48);\n }\n\n .bd-ctabanner-cta {\n flex-direction: column;\n width: 100%;\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,+mC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../heading/heading.
|
|
3
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../heading/heading.js";
|
|
3
|
+
import "../paragraph/paragraph.js";
|
|
4
4
|
declare class CtaBanner extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
6
6
|
title: string;
|
|
@@ -1,56 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../heading/heading.js";
|
|
12
|
-
import "../paragraph/paragraph.js";
|
|
13
|
-
import ctaBannerCSS from "./cta-banner.css.js";
|
|
14
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
15
|
-
let CtaBanner = class CtaBanner extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.title = "";
|
|
19
|
-
this.description = "";
|
|
20
|
-
this.caption = "";
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [tokens, ensembleCSS, ctaBannerCSS]; }
|
|
23
|
-
render() {
|
|
24
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./cta-banner.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.title=``,this.description=``,this.caption=``}static{this.styles=[t,r,i]}render(){return o`
|
|
25
2
|
<div class="bd-ensemble bd-ctabanner-container">
|
|
26
|
-
${this.title
|
|
27
|
-
? html `
|
|
3
|
+
${this.title?o`
|
|
28
4
|
<bd-h as="h2" color="on-brand" class="bd-ctabanner-title">
|
|
29
5
|
<slot name="title">${this.title}</slot>
|
|
30
6
|
</bd-h>
|
|
31
|
-
|
|
32
|
-
: nothing}
|
|
7
|
+
`:s}
|
|
33
8
|
|
|
34
|
-
${this.description
|
|
35
|
-
? html `
|
|
9
|
+
${this.description?o`
|
|
36
10
|
<bd-p variant="large" color="on-brand" class="bd-ctabanner-description">
|
|
37
11
|
<slot name="description">${this.description}</slot>
|
|
38
12
|
</bd-p>
|
|
39
|
-
|
|
40
|
-
: nothing}
|
|
13
|
+
`:s}
|
|
41
14
|
|
|
42
15
|
<div class="bd-ctabanner-cta">
|
|
43
16
|
<slot name="primary-button"></slot>
|
|
44
17
|
<slot name="secondary-button"></slot>
|
|
45
18
|
</div>
|
|
46
19
|
|
|
47
|
-
${this.caption
|
|
48
|
-
? html `
|
|
20
|
+
${this.caption?o`
|
|
49
21
|
<bd-p variant="small" font-family="mono" class="bd-ctabanner-caption">
|
|
50
22
|
<slot name="caption">${this.caption}</slot>
|
|
51
23
|
</bd-p>
|
|
52
|
-
|
|
53
|
-
: nothing}
|
|
24
|
+
`:s}
|
|
54
25
|
|
|
55
26
|
<!-- Freeform slot for extra content below the caption — contact
|
|
56
27
|
info, legal disclaimers, links, etc. Empty by default,
|
|
@@ -59,19 +30,5 @@ let CtaBanner = class CtaBanner extends LitElement {
|
|
|
59
30
|
<slot name="footer"></slot>
|
|
60
31
|
</div>
|
|
61
32
|
</div>
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
__decorate([
|
|
66
|
-
property({ type: String })
|
|
67
|
-
], CtaBanner.prototype, "title", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
property({ type: String })
|
|
70
|
-
], CtaBanner.prototype, "description", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
property({ type: String })
|
|
73
|
-
], CtaBanner.prototype, "caption", void 0);
|
|
74
|
-
CtaBanner = __decorate([
|
|
75
|
-
defineElement("bd-cta-banner")
|
|
76
|
-
], CtaBanner);
|
|
33
|
+
`}};n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:String})],l.prototype,`caption`,void 0),l=n([e(`bd-cta-banner`)],l);
|
|
77
34
|
//# sourceMappingURL=cta-banner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta-banner.js","
|
|
1
|
+
{"version":3,"file":"cta-banner.js","names":["ctaBannerCSS","_decorate","__decorate","cta_banner_css_default","CtaBanner","LitElement","_args","tokens","ensembleCSS","nothing","property","defineElement"],"sources":["../../../../src/components/cta-banner/cta-banner.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport ctaBannerCSS from \"./cta-banner.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\n@defineElement(\"bd-cta-banner\")\nclass CtaBanner extends LitElement {\n static styles = [tokens, ensembleCSS, ctaBannerCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String })\n caption = \"\";\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-ctabanner-container\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" color=\"on-brand\" class=\"bd-ctabanner-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"large\" color=\"on-brand\" class=\"bd-ctabanner-description\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n <div class=\"bd-ctabanner-cta\">\n <slot name=\"primary-button\"></slot>\n <slot name=\"secondary-button\"></slot>\n </div>\n\n ${this.caption\n ? html`\n <bd-p variant=\"small\" font-family=\"mono\" class=\"bd-ctabanner-caption\">\n <slot name=\"caption\">${this.caption}</slot>\n </bd-p>\n `\n : nothing}\n\n <!-- Freeform slot for extra content below the caption — contact\n info, legal disclaimers, links, etc. Empty by default,\n collapses to nothing when unused. -->\n <div class=\"bd-ctabanner-footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-cta-banner\": CtaBanner;\n }\n}"],"mappings":"A,sbASA,IACMI,EADN,cACwBC,CAAW,C,8BAIzB,KAAA,MAAA,GAEM,KAAA,YAAA,GAEJ,KAAA,QAAA,E,QAPM,KAAA,OAAA,CAACE,EAAQC,EAAaR,CAAY,C,CASlD,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;qCAEqB,KAAK,MAAM;;cAGpCS,EAAQ;;UAEV,KAAK,YACH,CAAI;;2CAE2B,KAAK,YAAY;;cAGhDA,EAAQ;;;;;;;UAOV,KAAK,QACH,CAAI;;uCAEuB,KAAK,QAAQ;;cAGxCA,EAAQ;;;;;;;;;KAUlB,CACF,EAhDGR,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,UAAA,IAAA,EAAA,EAR3B,EAAAH,EAAA,CAAAU,EAAc,eAAe,CAAA,EAAAP,CAAA"}
|
|
@@ -1,96 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
@layer bd-components {
|
|
4
|
-
.bd-display {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
font-family: var(--typography-display-lg-fontFamily);
|
|
8
|
-
color: var(--color-text-primary);
|
|
9
|
-
/* Display type is large enough that a single word can be wider than a
|
|
10
|
-
phone, and with overflow-wrap: normal there is no break opportunity
|
|
11
|
-
inside a word -- so the word painted outside the box and widened the
|
|
12
|
-
document. Measured at 320 and 375 with "Award-winning cybersecurity":
|
|
13
|
-
|
|
14
|
-
step size 320 375 576 768+
|
|
15
|
-
sm 36px ok ok ok ok
|
|
16
|
-
md 48px ok ok ok ok
|
|
17
|
-
lg 60px +61px +6px ok ok
|
|
18
|
-
xl 72px +134px +79px ok ok
|
|
19
|
-
xxl 96px +280px +225px +24px ok
|
|
20
|
-
xxxl 128px +475px +420px +219px ok
|
|
21
|
-
|
|
22
|
-
lg is this component's default, so the out-of-the-box configuration
|
|
23
|
-
made a phone scroll sideways on a thirteen-character word. break-word
|
|
24
|
-
only breaks where there is no break opportunity at all, so every case
|
|
25
|
-
that already fitted is untouched -- the same rule, and the same reason,
|
|
26
|
-
as the tooltip bubble in P7F.1.
|
|
27
|
-
|
|
28
|
-
Containment only. WHICH step belongs at which breakpoint stays the
|
|
29
|
-
consuming page's choice: this atom maps a variant onto a
|
|
30
|
-
--typography-display-* role and deliberately knows nothing about
|
|
31
|
-
viewports, and six steps exist so that choice can be made. */
|
|
32
|
-
overflow-wrap: break-word;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Balanced lines, as bd-h's, behind the same guard -- see the reason there. */
|
|
36
|
-
@supports (text-wrap: balance) {
|
|
37
|
-
.bd-display {
|
|
38
|
-
text-wrap: balance;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/* xxxl */
|
|
44
|
-
.bd-display.xxxl {
|
|
45
|
-
font-size: var(--typography-display-3xl-fontSize);
|
|
46
|
-
font-weight: var(--typography-display-3xl-fontWeight);
|
|
47
|
-
line-height: var(--typography-display-3xl-lineHeight);
|
|
48
|
-
letter-spacing: var(--typography-display-3xl-letterSpacing);
|
|
49
|
-
font-family: var(--typography-display-3xl-fontFamily);
|
|
50
|
-
}
|
|
51
|
-
/* xxl */
|
|
52
|
-
.bd-display.xxl {
|
|
53
|
-
font-size: var(--typography-display-2xl-fontSize);
|
|
54
|
-
font-weight: var(--typography-display-2xl-fontWeight);
|
|
55
|
-
line-height: var(--typography-display-2xl-lineHeight);
|
|
56
|
-
letter-spacing: var(--typography-display-2xl-letterSpacing);
|
|
57
|
-
font-family: var(--typography-display-2xl-fontFamily);
|
|
58
|
-
}
|
|
59
|
-
/* xl */
|
|
60
|
-
.bd-display.xl {
|
|
61
|
-
font-size: var(--typography-display-xl-fontSize);
|
|
62
|
-
font-weight: var(--typography-display-xl-fontWeight);
|
|
63
|
-
line-height: var(--typography-display-xl-lineHeight);
|
|
64
|
-
letter-spacing: var(--typography-display-xl-letterSpacing);
|
|
65
|
-
font-family: var(--typography-display-xl-fontFamily);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* lg */
|
|
69
|
-
.bd-display.lg {
|
|
70
|
-
font-size: var(--typography-display-lg-fontSize);
|
|
71
|
-
font-weight: var(--typography-display-lg-fontWeight);
|
|
72
|
-
line-height: var(--typography-display-lg-lineHeight);
|
|
73
|
-
letter-spacing: var(--typography-display-lg-letterSpacing);
|
|
74
|
-
font-family: var(--typography-display-lg-fontFamily);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* md */
|
|
78
|
-
.bd-display.md {
|
|
79
|
-
font-size: var(--typography-display-md-fontSize);
|
|
80
|
-
font-weight: var(--typography-display-md-fontWeight);
|
|
81
|
-
line-height: var(--typography-display-md-lineHeight);
|
|
82
|
-
letter-spacing: var(--typography-display-md-letterSpacing);
|
|
83
|
-
font-family: var(--typography-display-md-fontFamily);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* sm - Smallest display */
|
|
87
|
-
.bd-display.sm {
|
|
88
|
-
font-size: var(--typography-display-sm-fontSize);
|
|
89
|
-
font-weight: var(--typography-display-sm-fontWeight);
|
|
90
|
-
line-height: var(--typography-display-sm-lineHeight);
|
|
91
|
-
letter-spacing: var(--typography-display-sm-letterSpacing);
|
|
92
|
-
font-family: var(--typography-display-sm-fontFamily);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`@layer bd-components{.bd-display{font-family:var(--typography-display-lg-fontFamily);color:var(--color-text-primary);overflow-wrap:break-word;margin:0;padding:0}@supports (text-wrap:balance){.bd-display{text-wrap:balance}}.bd-display.xxxl{font-size:var(--typography-display-3xl-fontSize);font-weight:var(--typography-display-3xl-fontWeight);line-height:var(--typography-display-3xl-lineHeight);letter-spacing:var(--typography-display-3xl-letterSpacing);font-family:var(--typography-display-3xl-fontFamily)}.bd-display.xxl{font-size:var(--typography-display-2xl-fontSize);font-weight:var(--typography-display-2xl-fontWeight);line-height:var(--typography-display-2xl-lineHeight);letter-spacing:var(--typography-display-2xl-letterSpacing);font-family:var(--typography-display-2xl-fontFamily)}.bd-display.xl{font-size:var(--typography-display-xl-fontSize);font-weight:var(--typography-display-xl-fontWeight);line-height:var(--typography-display-xl-lineHeight);letter-spacing:var(--typography-display-xl-letterSpacing);font-family:var(--typography-display-xl-fontFamily)}.bd-display.lg{font-size:var(--typography-display-lg-fontSize);font-weight:var(--typography-display-lg-fontWeight);line-height:var(--typography-display-lg-lineHeight);letter-spacing:var(--typography-display-lg-letterSpacing);font-family:var(--typography-display-lg-fontFamily)}.bd-display.md{font-size:var(--typography-display-md-fontSize);font-weight:var(--typography-display-md-fontWeight);line-height:var(--typography-display-md-lineHeight);letter-spacing:var(--typography-display-md-letterSpacing);font-family:var(--typography-display-md-fontFamily)}.bd-display.sm{font-size:var(--typography-display-sm-fontSize);font-weight:var(--typography-display-sm-fontWeight);line-height:var(--typography-display-sm-lineHeight);letter-spacing:var(--typography-display-sm-letterSpacing);font-family:var(--typography-display-sm-fontFamily)}}`;export{t as default};
|
|
96
2
|
//# sourceMappingURL=display.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.css.js","
|
|
1
|
+
{"version":3,"file":"display.css.js","names":["display_css_default"],"sources":["../../../../src/components/display/display.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n @layer bd-components {\n .bd-display {\n margin: 0;\n padding: 0;\n font-family: var(--typography-display-lg-fontFamily);\n color: var(--color-text-primary);\n /* Display type is large enough that a single word can be wider than a\n phone, and with overflow-wrap: normal there is no break opportunity\n inside a word -- so the word painted outside the box and widened the\n document. Measured at 320 and 375 with \"Award-winning cybersecurity\":\n\n step size 320 375 576 768+\n sm 36px ok ok ok ok\n md 48px ok ok ok ok\n lg 60px +61px +6px ok ok\n xl 72px +134px +79px ok ok\n xxl 96px +280px +225px +24px ok\n xxxl 128px +475px +420px +219px ok\n\n lg is this component's default, so the out-of-the-box configuration\n made a phone scroll sideways on a thirteen-character word. break-word\n only breaks where there is no break opportunity at all, so every case\n that already fitted is untouched -- the same rule, and the same reason,\n as the tooltip bubble in P7F.1.\n\n Containment only. WHICH step belongs at which breakpoint stays the\n consuming page's choice: this atom maps a variant onto a\n --typography-display-* role and deliberately knows nothing about\n viewports, and six steps exist so that choice can be made. */\n overflow-wrap: break-word;\n }\n\n /* Balanced lines, as bd-h's, behind the same guard -- see the reason there. */\n @supports (text-wrap: balance) {\n .bd-display {\n text-wrap: balance;\n }\n }\n\n \n /* xxxl */\n .bd-display.xxxl {\n font-size: var(--typography-display-3xl-fontSize);\n font-weight: var(--typography-display-3xl-fontWeight);\n line-height: var(--typography-display-3xl-lineHeight);\n letter-spacing: var(--typography-display-3xl-letterSpacing);\n font-family: var(--typography-display-3xl-fontFamily);\n }\n /* xxl */\n .bd-display.xxl {\n font-size: var(--typography-display-2xl-fontSize);\n font-weight: var(--typography-display-2xl-fontWeight);\n line-height: var(--typography-display-2xl-lineHeight);\n letter-spacing: var(--typography-display-2xl-letterSpacing);\n font-family: var(--typography-display-2xl-fontFamily);\n }\n /* xl */\n .bd-display.xl {\n font-size: var(--typography-display-xl-fontSize);\n font-weight: var(--typography-display-xl-fontWeight);\n line-height: var(--typography-display-xl-lineHeight);\n letter-spacing: var(--typography-display-xl-letterSpacing);\n font-family: var(--typography-display-xl-fontFamily);\n }\n\n /* lg */\n .bd-display.lg {\n font-size: var(--typography-display-lg-fontSize);\n font-weight: var(--typography-display-lg-fontWeight);\n line-height: var(--typography-display-lg-lineHeight);\n letter-spacing: var(--typography-display-lg-letterSpacing);\n font-family: var(--typography-display-lg-fontFamily);\n }\n\n /* md */\n .bd-display.md {\n font-size: var(--typography-display-md-fontSize);\n font-weight: var(--typography-display-md-fontWeight);\n line-height: var(--typography-display-md-lineHeight);\n letter-spacing: var(--typography-display-md-letterSpacing);\n font-family: var(--typography-display-md-fontFamily);\n }\n\n /* sm - Smallest display */\n .bd-display.sm {\n font-size: var(--typography-display-sm-fontSize);\n font-weight: var(--typography-display-sm-fontWeight);\n line-height: var(--typography-display-sm-lineHeight);\n letter-spacing: var(--typography-display-sm-letterSpacing);\n font-family: var(--typography-display-sm-fontFamily);\n }\n }\n`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,62D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import { type ColorRole } from "../shared/token-scales.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import { type ColorRole } from "../shared/token-scales.js";
|
|
4
4
|
/** The six display roles the stylesheet carries, largest first. */
|
|
5
5
|
declare const VARIANTS: readonly ["xxxl", "xxl", "xl", "lg", "md", "sm"];
|
|
6
6
|
type Variant = typeof VARIANTS[number];
|