@repobit/dex-system-design 3.0.0 → 3.0.2
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 +4 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -136
- 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 +14 -3
- 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,373 +1,21 @@
|
|
|
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
|
-
var CompareBar_1, CompareCard_1, CompareSection_1;
|
|
8
|
-
import { LitElement, html, nothing } from "lit";
|
|
9
|
-
import { property, state } from "lit/decorators.js";
|
|
10
|
-
import { defineElement } from "../shared/define-element.js";
|
|
11
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
12
|
-
import "../../tokens/tokens.js";
|
|
13
|
-
import "../heading/heading.js";
|
|
14
|
-
import "../image/image.js";
|
|
15
|
-
import "../link/link.js";
|
|
16
|
-
import "../paragraph/paragraph.js";
|
|
17
|
-
import compareCSS from "./compare.css.js";
|
|
18
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
19
|
-
function readStretchVars(el) {
|
|
20
|
-
const styles = getComputedStyle(el);
|
|
21
|
-
return {
|
|
22
|
-
stretch: styles.getPropertyValue("--cs-bar-stretch").trim() !== "0",
|
|
23
|
-
rMinStr: styles.getPropertyValue("--cs-stretch-r-min").trim(),
|
|
24
|
-
fillMin: parseFloat(styles.getPropertyValue("--cs-bar-fill-min").trim()),
|
|
25
|
-
gamma: parseFloat(styles.getPropertyValue("--cs-bar-stretch-gamma").trim())
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
const SCORE_ANIM_MS = 800;
|
|
29
|
-
const SCORE_ANIM_EASING = (t) => 1 - (1 - t) ** 3;
|
|
30
|
-
let compareIntroDone = false;
|
|
31
|
-
let compareIntroTimer = 0;
|
|
32
|
-
/* Reduced motion is asked when the intro would play, not once when the module
|
|
33
|
-
loaded: a reader who turns it on before scrolling to the bars gets them still. */
|
|
34
|
-
function shouldPlayCompareIntro() { return !compareIntroDone && !prefersReducedMotion(); }
|
|
35
|
-
function scheduleCompareIntroDone() {
|
|
36
|
-
if (compareIntroDone || compareIntroTimer)
|
|
37
|
-
return;
|
|
38
|
-
compareIntroTimer = setTimeout(() => {
|
|
39
|
-
compareIntroTimer = 0;
|
|
40
|
-
compareIntroDone = true;
|
|
41
|
-
}, SCORE_ANIM_MS + 120);
|
|
42
|
-
}
|
|
43
|
-
function prefersReducedMotion() {
|
|
44
|
-
try {
|
|
45
|
-
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
46
|
-
}
|
|
47
|
-
catch {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
let CompareBar = class CompareBar extends LitElement {
|
|
52
|
-
static { CompareBar_1 = this; }
|
|
53
|
-
static { this.styles = [compareCSS]; }
|
|
54
|
-
constructor() {
|
|
55
|
-
super();
|
|
56
|
-
this.label = "";
|
|
57
|
-
this.score = 0;
|
|
58
|
-
this.maxScore = 6;
|
|
59
|
-
this.variant = "secondary";
|
|
60
|
-
this.scoreLabel = "";
|
|
61
|
-
this.referenceScore = 0;
|
|
62
|
-
this.scale = 1;
|
|
63
|
-
this._animatedScore = NaN;
|
|
64
|
-
this._scoreAnimRaf = 0;
|
|
65
|
-
/* The bar is a meter, and says so through its internals: its role, its
|
|
66
|
-
name (the brand) and its value (the score, out of the scale). Its
|
|
67
|
-
inside is aria-hidden -- the label and the animated score are what a
|
|
68
|
-
sighted reader sees -- and the host used to carry an aria-label with no
|
|
69
|
-
role under it, which most screen readers do not announce, so the score
|
|
70
|
-
was silent. Internals rather than attributes: the page keeps the host's
|
|
71
|
-
own attributes, and nothing is written on it. */
|
|
72
|
-
this._internals = this.attachInternals?.();
|
|
73
|
-
if (this._internals)
|
|
74
|
-
this._internals.role = "meter";
|
|
75
|
-
}
|
|
76
|
-
connectedCallback() {
|
|
77
|
-
super.connectedCallback();
|
|
78
|
-
if (!shouldPlayCompareIntro()) {
|
|
79
|
-
this.classList.add("compare-no-motion");
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
scheduleCompareIntroDone();
|
|
83
|
-
if (this._shouldAnimateCompetitorScore()) {
|
|
84
|
-
this._animatedScore = this._scoreAnimStart();
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
disconnectedCallback() {
|
|
88
|
-
super.disconnectedCallback();
|
|
89
|
-
this._cancelScoreAnim();
|
|
90
|
-
}
|
|
91
|
-
updated(changed) {
|
|
92
|
-
super.updated(changed);
|
|
93
|
-
this._syncMeter();
|
|
94
|
-
const deps = ["score", "referenceScore", "scoreLabel", "variant", "maxScore", "label"];
|
|
95
|
-
if (!deps.some((k) => changed.has(k)))
|
|
96
|
-
return;
|
|
97
|
-
this._cancelScoreAnim();
|
|
98
|
-
if (!shouldPlayCompareIntro()) {
|
|
99
|
-
this.classList.add("compare-no-motion");
|
|
100
|
-
this._animatedScore = NaN;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (this._shouldAnimateCompetitorScore()) {
|
|
104
|
-
this._animatedScore = this._scoreAnimStart();
|
|
105
|
-
this._runScoreAnim();
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
this._animatedScore = NaN;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
_shouldAnimateCompetitorScore() {
|
|
112
|
-
if (this.variant === "primary" || this.scoreLabel)
|
|
113
|
-
return false;
|
|
114
|
-
return Number.isFinite(parseFloat(String(this.score)));
|
|
115
|
-
}
|
|
116
|
-
_scoreAnimStart() {
|
|
117
|
-
const target = parseFloat(String(this.score));
|
|
118
|
-
const ref = parseFloat(String(this.referenceScore));
|
|
119
|
-
const maxM = parseFloat(String(this.maxScore)) || 6;
|
|
120
|
-
let start = ref > 0 ? ref : maxM;
|
|
121
|
-
if (start <= target)
|
|
122
|
-
start = Math.min(maxM, target + 0.2);
|
|
123
|
-
return start;
|
|
124
|
-
}
|
|
125
|
-
_cancelScoreAnim() {
|
|
126
|
-
if (this._scoreAnimRaf) {
|
|
127
|
-
cancelAnimationFrame(this._scoreAnimRaf);
|
|
128
|
-
this._scoreAnimRaf = 0;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
_runScoreAnim() {
|
|
132
|
-
const target = parseFloat(String(this.score));
|
|
133
|
-
const start = this._animatedScore;
|
|
134
|
-
if (!Number.isFinite(target) || !Number.isFinite(start))
|
|
135
|
-
return;
|
|
136
|
-
const t0 = performance.now();
|
|
137
|
-
const tick = (now) => {
|
|
138
|
-
const u = Math.min(1, (now - t0) / SCORE_ANIM_MS);
|
|
139
|
-
const e = SCORE_ANIM_EASING(u);
|
|
140
|
-
this._animatedScore = start + (target - start) * e;
|
|
141
|
-
if (u < 1) {
|
|
142
|
-
this._scoreAnimRaf = requestAnimationFrame(tick);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
this._scoreAnimRaf = 0;
|
|
146
|
-
this._animatedScore = NaN;
|
|
147
|
-
this.requestUpdate();
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
this._scoreAnimRaf = requestAnimationFrame(tick);
|
|
151
|
-
}
|
|
152
|
-
get _pct() {
|
|
153
|
-
const s = parseFloat(String(this.score)) || 0;
|
|
154
|
-
if (this.variant === "primary")
|
|
155
|
-
return 100;
|
|
156
|
-
const ref = parseFloat(String(this.referenceScore));
|
|
157
|
-
if (ref > 0) {
|
|
158
|
-
const r = Math.min(1, Math.max(0, s / ref));
|
|
159
|
-
const linearPct = r * 100;
|
|
160
|
-
const { stretch, rMinStr, fillMin, gamma } = readStretchVars(this);
|
|
161
|
-
if (!stretch || !rMinStr || rMinStr === "none") {
|
|
162
|
-
return Math.min(100, Math.max(0, linearPct));
|
|
163
|
-
}
|
|
164
|
-
const rMin = parseFloat(rMinStr);
|
|
165
|
-
if (Number.isNaN(rMin) || rMin >= 1 - 1e-9) {
|
|
166
|
-
return Math.min(100, Math.max(0, linearPct));
|
|
167
|
-
}
|
|
168
|
-
const denom = 1 - rMin;
|
|
169
|
-
const wMin = Number.isFinite(fillMin) ? fillMin : 50;
|
|
170
|
-
const g = Number.isFinite(gamma) && gamma > 0 ? gamma : 1;
|
|
171
|
-
const u = (r - rMin) / denom;
|
|
172
|
-
const t = Math.min(1, Math.max(0, u));
|
|
173
|
-
const shaped = Math.pow(t, g);
|
|
174
|
-
const stretched = wMin + shaped * (100 - wMin);
|
|
175
|
-
return Math.min(100, Math.max(0, stretched));
|
|
176
|
-
}
|
|
177
|
-
const m = parseFloat(String(this.maxScore)) || 6;
|
|
178
|
-
if (m === 0)
|
|
179
|
-
return 0;
|
|
180
|
-
const rawPct = Math.min(100, Math.max(0, (s / m) * 100));
|
|
181
|
-
return rawPct * (this.scale || 1);
|
|
182
|
-
}
|
|
183
|
-
get _displayScore() { return this.scoreLabel || this.score; }
|
|
184
|
-
_renderScoreText() {
|
|
185
|
-
if (this.variant === "primary" || this.scoreLabel)
|
|
186
|
-
return this._displayScore;
|
|
187
|
-
if (Number.isFinite(this._animatedScore)) {
|
|
188
|
-
return CompareBar_1._formatScoreTick(this._animatedScore);
|
|
189
|
-
}
|
|
190
|
-
return this._displayScore;
|
|
191
|
-
}
|
|
192
|
-
static _formatScoreTick(v) {
|
|
193
|
-
return (Math.round(v * 100) / 100).toFixed(2);
|
|
194
|
-
}
|
|
195
|
-
_syncMeter() {
|
|
196
|
-
const internals = this._internals;
|
|
197
|
-
if (!internals)
|
|
198
|
-
return;
|
|
199
|
-
const max = this.maxScore ?? 6;
|
|
200
|
-
const score = parseFloat(String(this.score));
|
|
201
|
-
internals.ariaLabel = this.label;
|
|
202
|
-
internals.ariaValueMin = "0";
|
|
203
|
-
internals.ariaValueMax = String(max);
|
|
204
|
-
internals.ariaValueNow = Number.isFinite(score) ? String(score) : null;
|
|
205
|
-
internals.ariaValueText = `score ${this.scoreLabel || this.score} out of ${max}`;
|
|
206
|
-
}
|
|
207
|
-
render() {
|
|
208
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import"../link/link.js";import"../image/image.js";import r from"./compare.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s,state as c}from"lit/decorators.js";var l,u,d;function f(e){let t=getComputedStyle(e);return{stretch:t.getPropertyValue(`--cs-bar-stretch`).trim()!==`0`,rMinStr:t.getPropertyValue(`--cs-stretch-r-min`).trim(),fillMin:parseFloat(t.getPropertyValue(`--cs-bar-fill-min`).trim()),gamma:parseFloat(t.getPropertyValue(`--cs-bar-stretch-gamma`).trim())}}var p=800,m=e=>1-(1-e)**3,h=!1,g=0;function _(){return!h&&!y()}function v(){h||g||(g=setTimeout(()=>{g=0,h=!0},920))}function y(){try{return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}catch{return!1}}var b=class extends i{static{l=this}static{this.styles=[r]}constructor(){super(),this.label=``,this.score=0,this.maxScore=6,this.variant=`secondary`,this.scoreLabel=``,this.referenceScore=0,this.scale=1,this._animatedScore=NaN,this._scoreAnimRaf=0,this._internals=this.attachInternals?.(),this._internals&&(this._internals.role=`meter`)}connectedCallback(){super.connectedCallback(),_()?(v(),this._shouldAnimateCompetitorScore()&&(this._animatedScore=this._scoreAnimStart())):this.classList.add(`compare-no-motion`)}disconnectedCallback(){super.disconnectedCallback(),this._cancelScoreAnim()}updated(e){super.updated(e),this._syncMeter(),[`score`,`referenceScore`,`scoreLabel`,`variant`,`maxScore`,`label`].some(t=>e.has(t))&&(this._cancelScoreAnim(),_()?this._shouldAnimateCompetitorScore()?(this._animatedScore=this._scoreAnimStart(),this._runScoreAnim()):this._animatedScore=NaN:(this.classList.add(`compare-no-motion`),this._animatedScore=NaN))}_shouldAnimateCompetitorScore(){return this.variant===`primary`||this.scoreLabel?!1:Number.isFinite(parseFloat(String(this.score)))}_scoreAnimStart(){let e=parseFloat(String(this.score)),t=parseFloat(String(this.referenceScore)),n=parseFloat(String(this.maxScore))||6,r=t>0?t:n;return r<=e&&(r=Math.min(n,e+.2)),r}_cancelScoreAnim(){this._scoreAnimRaf&&=(cancelAnimationFrame(this._scoreAnimRaf),0)}_runScoreAnim(){let e=parseFloat(String(this.score)),t=this._animatedScore;if(!Number.isFinite(e)||!Number.isFinite(t))return;let n=performance.now(),r=i=>{let a=Math.min(1,(i-n)/p),o=m(a);this._animatedScore=t+(e-t)*o,a<1?this._scoreAnimRaf=requestAnimationFrame(r):(this._scoreAnimRaf=0,this._animatedScore=NaN,this.requestUpdate())};this._scoreAnimRaf=requestAnimationFrame(r)}get _pct(){let e=parseFloat(String(this.score))||0;if(this.variant===`primary`)return 100;let t=parseFloat(String(this.referenceScore));if(t>0){let n=Math.min(1,Math.max(0,e/t)),r=n*100,{stretch:i,rMinStr:a,fillMin:o,gamma:s}=f(this);if(!i||!a||a===`none`)return Math.min(100,Math.max(0,r));let c=parseFloat(a);if(Number.isNaN(c)||c>=1-1e-9)return Math.min(100,Math.max(0,r));let l=1-c,u=Number.isFinite(o)?o:50,d=Number.isFinite(s)&&s>0?s:1,p=(n-c)/l,m=u+Math.min(1,Math.max(0,p))**+d*(100-u);return Math.min(100,Math.max(0,m))}let n=parseFloat(String(this.maxScore))||6;return n===0?0:Math.min(100,Math.max(0,e/n*100))*(this.scale||1)}get _displayScore(){return this.scoreLabel||this.score}_renderScoreText(){return this.variant===`primary`||this.scoreLabel?this._displayScore:Number.isFinite(this._animatedScore)?l._formatScoreTick(this._animatedScore):this._displayScore}static _formatScoreTick(e){return(Math.round(e*100)/100).toFixed(2)}_syncMeter(){let e=this._internals;if(!e)return;let t=this.maxScore??6,n=parseFloat(String(this.score));e.ariaLabel=this.label,e.ariaValueMin=`0`,e.ariaValueMax=String(t),e.ariaValueNow=Number.isFinite(n)?String(n):null,e.ariaValueText=`score ${this.scoreLabel||this.score} out of ${t}`}render(){return a`
|
|
209
2
|
<div class="bar-track">
|
|
210
3
|
<div class="bar-fill" style="width: ${this._pct}%">
|
|
211
4
|
<span class="bar-label" aria-hidden="true">${this.label}</span>
|
|
212
5
|
<span class="bar-score" aria-hidden="true">${this._renderScoreText()}</span>
|
|
213
6
|
</div>
|
|
214
7
|
</div>
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
__decorate([
|
|
219
|
-
property({ type: String })
|
|
220
|
-
], CompareBar.prototype, "label", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
property({ type: Number })
|
|
223
|
-
], CompareBar.prototype, "score", void 0);
|
|
224
|
-
__decorate([
|
|
225
|
-
property({ type: Number, attribute: "max-score" })
|
|
226
|
-
], CompareBar.prototype, "maxScore", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
property({ type: String })
|
|
229
|
-
], CompareBar.prototype, "variant", void 0);
|
|
230
|
-
__decorate([
|
|
231
|
-
property({ type: String, attribute: "score-label" })
|
|
232
|
-
], CompareBar.prototype, "scoreLabel", void 0);
|
|
233
|
-
__decorate([
|
|
234
|
-
property({ type: Number, attribute: "reference-score" })
|
|
235
|
-
], CompareBar.prototype, "referenceScore", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
property({ type: Number })
|
|
238
|
-
], CompareBar.prototype, "scale", void 0);
|
|
239
|
-
__decorate([
|
|
240
|
-
state()
|
|
241
|
-
], CompareBar.prototype, "_animatedScore", void 0);
|
|
242
|
-
CompareBar = CompareBar_1 = __decorate([
|
|
243
|
-
defineElement("compare-bar")
|
|
244
|
-
], CompareBar);
|
|
245
|
-
let CompareCard = class CompareCard extends LitElement {
|
|
246
|
-
static { CompareCard_1 = this; }
|
|
247
|
-
static { this._idSeq = 0; }
|
|
248
|
-
static { this.styles = [compareCSS]; }
|
|
249
|
-
constructor() {
|
|
250
|
-
super();
|
|
251
|
-
this.title = "";
|
|
252
|
-
this.description = "";
|
|
253
|
-
this.footnote = "";
|
|
254
|
-
this.footnoteHref = "";
|
|
255
|
-
this.iconSrc = "";
|
|
256
|
-
this.layout = "";
|
|
257
|
-
this.barStretch = true;
|
|
258
|
-
this.barFillMin = 50;
|
|
259
|
-
this.barStretchGamma = 1;
|
|
260
|
-
this.chartScale = 6;
|
|
261
|
-
const n = ++CompareCard_1._idSeq;
|
|
262
|
-
this._headingId = `compare-card-title-${n}`;
|
|
263
|
-
this._chartHelpId = `compare-card-chart-${n}`;
|
|
264
|
-
}
|
|
265
|
-
firstUpdated() {
|
|
266
|
-
this._syncBarStretch();
|
|
267
|
-
}
|
|
268
|
-
updated(changed) {
|
|
269
|
-
super.updated(changed);
|
|
270
|
-
if (changed.has("barFillMin") ||
|
|
271
|
-
changed.has("barStretchGamma") ||
|
|
272
|
-
changed.has("barStretch")) {
|
|
273
|
-
this._syncBarStretch();
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
_syncBarStretch() {
|
|
277
|
-
const slot = this.shadowRoot?.querySelector("slot");
|
|
278
|
-
if (!slot)
|
|
279
|
-
return;
|
|
280
|
-
const apply = () => {
|
|
281
|
-
const bars = slot
|
|
282
|
-
.assignedElements({ flatten: true })
|
|
283
|
-
.filter((el) => el.localName === "compare-bar");
|
|
284
|
-
if (!this.barStretch) {
|
|
285
|
-
this.style.setProperty("--cs-bar-stretch", "0");
|
|
286
|
-
this._refreshBars(bars);
|
|
287
|
-
return;
|
|
288
|
-
}
|
|
289
|
-
const primary = bars.find((b) => b.variant === "primary");
|
|
290
|
-
const ref = primary ? parseFloat(String(primary.score)) : 0;
|
|
291
|
-
if (!ref || ref <= 0) {
|
|
292
|
-
this.style.setProperty("--cs-bar-stretch", "0");
|
|
293
|
-
this._refreshBars(bars);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
const secondaries = bars.filter((b) => b.variant !== "primary");
|
|
297
|
-
if (secondaries.length < 2) {
|
|
298
|
-
this.style.setProperty("--cs-bar-stretch", "0");
|
|
299
|
-
this._refreshBars(bars);
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
let rMin = 1;
|
|
303
|
-
for (const b of bars) {
|
|
304
|
-
if (b.variant === "primary")
|
|
305
|
-
continue;
|
|
306
|
-
const sc = parseFloat(String(b.score));
|
|
307
|
-
if (!Number.isNaN(sc))
|
|
308
|
-
rMin = Math.min(rMin, sc / ref);
|
|
309
|
-
}
|
|
310
|
-
if (rMin >= 1 - 1e-6) {
|
|
311
|
-
this.style.setProperty("--cs-bar-stretch", "0");
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
this.style.setProperty("--cs-bar-stretch", "1");
|
|
315
|
-
this.style.setProperty("--cs-stretch-r-min", String(rMin));
|
|
316
|
-
this.style.setProperty("--cs-bar-fill-min", String(this.barFillMin));
|
|
317
|
-
this.style.setProperty("--cs-bar-stretch-gamma", String(this.barStretchGamma));
|
|
318
|
-
}
|
|
319
|
-
this._refreshBars(bars);
|
|
320
|
-
};
|
|
321
|
-
apply();
|
|
322
|
-
}
|
|
323
|
-
_refreshBars(bars) {
|
|
324
|
-
queueMicrotask(() => {
|
|
325
|
-
bars.forEach((b) => b.requestUpdate?.());
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
_renderFootnote() {
|
|
329
|
-
if (!this.footnote)
|
|
330
|
-
return "";
|
|
331
|
-
if (!this.footnoteHref) {
|
|
332
|
-
return html `<bd-p variant="xsmall" class="card-footnote">${this.footnote}</bd-p>`;
|
|
333
|
-
}
|
|
334
|
-
const splitOn = "Source ";
|
|
335
|
-
const idx = this.footnote.indexOf(splitOn);
|
|
336
|
-
if (idx === -1) {
|
|
337
|
-
return html `
|
|
8
|
+
`}};t([s({type:String})],b.prototype,`label`,void 0),t([s({type:Number})],b.prototype,`score`,void 0),t([s({type:Number,attribute:`max-score`})],b.prototype,`maxScore`,void 0),t([s({type:String})],b.prototype,`variant`,void 0),t([s({type:String,attribute:`score-label`})],b.prototype,`scoreLabel`,void 0),t([s({type:Number,attribute:`reference-score`})],b.prototype,`referenceScore`,void 0),t([s({type:Number})],b.prototype,`scale`,void 0),t([c()],b.prototype,`_animatedScore`,void 0),b=l=t([e(`compare-bar`)],b);var x=class extends i{static{u=this}static{this._idSeq=0}static{this.styles=[r]}constructor(){super(),this.title=``,this.description=``,this.footnote=``,this.footnoteHref=``,this.iconSrc=``,this.layout=``,this.barStretch=!0,this.barFillMin=50,this.barStretchGamma=1,this.chartScale=6;let e=++u._idSeq;this._headingId=`compare-card-title-${e}`,this._chartHelpId=`compare-card-chart-${e}`}firstUpdated(){this._syncBarStretch()}updated(e){super.updated(e),(e.has(`barFillMin`)||e.has(`barStretchGamma`)||e.has(`barStretch`))&&this._syncBarStretch()}_syncBarStretch(){let e=this.shadowRoot?.querySelector(`slot`);e&&(()=>{let t=e.assignedElements({flatten:!0}).filter(e=>e.localName===`compare-bar`);if(!this.barStretch){this.style.setProperty(`--cs-bar-stretch`,`0`),this._refreshBars(t);return}let n=t.find(e=>e.variant===`primary`),r=n?parseFloat(String(n.score)):0;if(!r||r<=0||t.filter(e=>e.variant!==`primary`).length<2){this.style.setProperty(`--cs-bar-stretch`,`0`),this._refreshBars(t);return}let i=1;for(let e of t){if(e.variant===`primary`)continue;let t=parseFloat(String(e.score));Number.isNaN(t)||(i=Math.min(i,t/r))}i>=1-1e-6?this.style.setProperty(`--cs-bar-stretch`,`0`):(this.style.setProperty(`--cs-bar-stretch`,`1`),this.style.setProperty(`--cs-stretch-r-min`,String(i)),this.style.setProperty(`--cs-bar-fill-min`,String(this.barFillMin)),this.style.setProperty(`--cs-bar-stretch-gamma`,String(this.barStretchGamma))),this._refreshBars(t)})()}_refreshBars(e){queueMicrotask(()=>{e.forEach(e=>e.requestUpdate?.())})}_renderFootnote(){if(!this.footnote)return``;if(!this.footnoteHref)return a`<bd-p variant="xsmall" class="card-footnote">${this.footnote}</bd-p>`;let e=this.footnote.indexOf(`Source `);if(e===-1)return a`
|
|
338
9
|
<bd-p variant="xsmall" class="card-footnote">
|
|
339
10
|
<bd-link href="${this.footnoteHref}" target="_blank" font-size="xs" color="strong" underline>
|
|
340
11
|
${this.footnote}
|
|
341
12
|
</bd-link>
|
|
342
13
|
</bd-p>
|
|
343
|
-
`;
|
|
344
|
-
}
|
|
345
|
-
const before = this.footnote.slice(0, idx + splitOn.length);
|
|
346
|
-
const linkedText = this.footnote.slice(idx + splitOn.length);
|
|
347
|
-
return html `
|
|
14
|
+
`;let t=this.footnote.slice(0,e+7),n=this.footnote.slice(e+7);return a`
|
|
348
15
|
<bd-p variant="xsmall" class="card-footnote">
|
|
349
|
-
${
|
|
16
|
+
${t}<bd-link href="${this.footnoteHref}" target="_blank" font-size="xs" color="strong" underline>${n}</bd-link>
|
|
350
17
|
</bd-p>
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
/* aria-labelledby resolves against the root it is written in, and a
|
|
354
|
-
plain id on the <bd-h> HOST is what makes that possible: the host
|
|
355
|
-
sits in this shadow root beside the element referring to it, while
|
|
356
|
-
the <h3> bd-h renders lives in bd-h's own shadow root where an IDREF
|
|
357
|
-
from here cannot reach it. Name computation walks the flattened
|
|
358
|
-
tree, so the host carries the slotted title text.
|
|
359
|
-
This used to be spelled heading-id, which bd-h has never had a
|
|
360
|
-
property for and has never read, so nothing carried the id at all
|
|
361
|
-
and all 43 references across 16 Compare stories pointed at nothing.
|
|
362
|
-
The <section> was not merely unnamed -- a section with no accessible
|
|
363
|
-
name gets no region role, so the landmark did not exist.
|
|
364
|
-
id, not a new bd-h attribute, because modal.ts already does exactly
|
|
365
|
-
this two components over and it works: its role=dialog resolves
|
|
366
|
-
aria-labelledby="modal-title" to a <bd-h id="modal-title"> and
|
|
367
|
-
reports the accessible name "VPN Protection". The manifest never
|
|
368
|
-
claimed a headingId property either. */
|
|
369
|
-
_renderHorizontal() {
|
|
370
|
-
return html `
|
|
18
|
+
`}_renderHorizontal(){return a`
|
|
371
19
|
<article
|
|
372
20
|
class="card card--horizontal"
|
|
373
21
|
aria-labelledby="${this._headingId}"
|
|
@@ -380,8 +28,7 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
380
28
|
<div class="card-left">
|
|
381
29
|
<slot name="header">
|
|
382
30
|
<div class="card-left-top">
|
|
383
|
-
${this.iconSrc
|
|
384
|
-
? html `
|
|
31
|
+
${this.iconSrc?a`
|
|
385
32
|
<div class="card-icon-wrap" aria-hidden="true">
|
|
386
33
|
<bd-img
|
|
387
34
|
src="${this.iconSrc}"
|
|
@@ -394,15 +41,12 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
394
41
|
loading="eager"
|
|
395
42
|
></bd-img>
|
|
396
43
|
</div>
|
|
397
|
-
|
|
398
|
-
: ""}
|
|
44
|
+
`:``}
|
|
399
45
|
<bd-h as="h3" class="card-title" id="${this._headingId}">${this.title}</bd-h>
|
|
400
46
|
</div>
|
|
401
|
-
${this.description
|
|
402
|
-
? html `
|
|
47
|
+
${this.description?a`
|
|
403
48
|
<bd-p variant="regular" class="card-description">${this.description}</bd-p>
|
|
404
|
-
|
|
405
|
-
: ""}
|
|
49
|
+
`:``}
|
|
406
50
|
${this._renderFootnote()}
|
|
407
51
|
</slot>
|
|
408
52
|
</div>
|
|
@@ -413,17 +57,7 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
413
57
|
</div>
|
|
414
58
|
</div>
|
|
415
59
|
</article>
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
render() {
|
|
419
|
-
if (this.layout === "horizontal")
|
|
420
|
-
return this._renderHorizontal();
|
|
421
|
-
/* One level and one variant at every width; compare.css.ts steps the
|
|
422
|
-
title and the description down a size where the section is narrow.
|
|
423
|
-
They used to change here -- h4 to h5, regular to small -- read from the
|
|
424
|
-
screen once at render, so the outline moved with the size and neither
|
|
425
|
-
followed a resize. */
|
|
426
|
-
return html `
|
|
60
|
+
`}render(){return this.layout===`horizontal`?this._renderHorizontal():a`
|
|
427
61
|
<article
|
|
428
62
|
class="card"
|
|
429
63
|
aria-labelledby="${this._headingId}"
|
|
@@ -434,8 +68,7 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
434
68
|
</p>
|
|
435
69
|
|
|
436
70
|
<div class="card-header">
|
|
437
|
-
${this.iconSrc
|
|
438
|
-
? html `
|
|
71
|
+
${this.iconSrc?a`
|
|
439
72
|
<div class="card-icon-wrap" aria-hidden="true">
|
|
440
73
|
<bd-img
|
|
441
74
|
src="${this.iconSrc}"
|
|
@@ -448,17 +81,14 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
448
81
|
loading="eager"
|
|
449
82
|
></bd-img>
|
|
450
83
|
</div>
|
|
451
|
-
|
|
452
|
-
: ""}
|
|
84
|
+
`:``}
|
|
453
85
|
<div class="card-text-wrap">
|
|
454
86
|
<bd-h as="h4" class="card-title" id="${this._headingId}">${this.title}</bd-h>
|
|
455
|
-
${this.description
|
|
456
|
-
? html `
|
|
87
|
+
${this.description?a`
|
|
457
88
|
<bd-p variant="regular" class="card-description">
|
|
458
89
|
${this.description}
|
|
459
90
|
</bd-p>
|
|
460
|
-
|
|
461
|
-
: ""}
|
|
91
|
+
`:``}
|
|
462
92
|
</div>
|
|
463
93
|
</div>
|
|
464
94
|
|
|
@@ -468,108 +98,25 @@ let CompareCard = class CompareCard extends LitElement {
|
|
|
468
98
|
|
|
469
99
|
${this._renderFootnote()}
|
|
470
100
|
</article>
|
|
471
|
-
`;
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
__decorate([
|
|
475
|
-
property({ type: String })
|
|
476
|
-
], CompareCard.prototype, "title", void 0);
|
|
477
|
-
__decorate([
|
|
478
|
-
property({ type: String })
|
|
479
|
-
], CompareCard.prototype, "description", void 0);
|
|
480
|
-
__decorate([
|
|
481
|
-
property({ type: String })
|
|
482
|
-
], CompareCard.prototype, "footnote", void 0);
|
|
483
|
-
__decorate([
|
|
484
|
-
property({ type: String, attribute: "footnote-href" })
|
|
485
|
-
], CompareCard.prototype, "footnoteHref", void 0);
|
|
486
|
-
__decorate([
|
|
487
|
-
property({ type: String, attribute: "icon-src" })
|
|
488
|
-
], CompareCard.prototype, "iconSrc", void 0);
|
|
489
|
-
__decorate([
|
|
490
|
-
property({ type: String })
|
|
491
|
-
], CompareCard.prototype, "layout", void 0);
|
|
492
|
-
__decorate([
|
|
493
|
-
property({ type: Boolean, attribute: "bar-stretch" })
|
|
494
|
-
], CompareCard.prototype, "barStretch", void 0);
|
|
495
|
-
__decorate([
|
|
496
|
-
property({ type: Number, attribute: "bar-fill-min" })
|
|
497
|
-
], CompareCard.prototype, "barFillMin", void 0);
|
|
498
|
-
__decorate([
|
|
499
|
-
property({ type: Number, attribute: "bar-stretch-gamma" })
|
|
500
|
-
], CompareCard.prototype, "barStretchGamma", void 0);
|
|
501
|
-
__decorate([
|
|
502
|
-
property({ type: Number, attribute: "chart-scale" })
|
|
503
|
-
], CompareCard.prototype, "chartScale", void 0);
|
|
504
|
-
CompareCard = CompareCard_1 = __decorate([
|
|
505
|
-
defineElement("compare-card")
|
|
506
|
-
], CompareCard);
|
|
507
|
-
let CompareSection = class CompareSection extends LitElement {
|
|
508
|
-
static { CompareSection_1 = this; }
|
|
509
|
-
static { this._idSeq = 0; }
|
|
510
|
-
static { this.styles = [ensembleCSS, compareCSS]; }
|
|
511
|
-
constructor() {
|
|
512
|
-
super();
|
|
513
|
-
this.title = "";
|
|
514
|
-
this.subtitle = "";
|
|
515
|
-
this.columns = 2;
|
|
516
|
-
this.gap = "";
|
|
517
|
-
this._sectionTitleId = `bd-compare-section-title-${++CompareSection_1._idSeq}`;
|
|
518
|
-
}
|
|
519
|
-
firstUpdated() {
|
|
520
|
-
scheduleCompareIntroDone();
|
|
521
|
-
}
|
|
522
|
-
/* The cards' headers line up across a row because every card is a subgrid
|
|
523
|
-
of the section's rows -- header, bars, footnote; see compare.css.ts. This
|
|
524
|
-
used to be a ResizeObserver on the section, two animation frames, and a
|
|
525
|
-
px min-height written on every header to match the tallest. */
|
|
526
|
-
render() {
|
|
527
|
-
const gapStyle = this.gap
|
|
528
|
-
? `--_cols: ${this.columns}; --cs-gap: ${this.gap}`
|
|
529
|
-
: `--_cols: ${this.columns}`;
|
|
530
|
-
return html `
|
|
101
|
+
`}};t([s({type:String})],x.prototype,`title`,void 0),t([s({type:String})],x.prototype,`description`,void 0),t([s({type:String})],x.prototype,`footnote`,void 0),t([s({type:String,attribute:`footnote-href`})],x.prototype,`footnoteHref`,void 0),t([s({type:String,attribute:`icon-src`})],x.prototype,`iconSrc`,void 0),t([s({type:String})],x.prototype,`layout`,void 0),t([s({type:Boolean,attribute:`bar-stretch`})],x.prototype,`barStretch`,void 0),t([s({type:Number,attribute:`bar-fill-min`})],x.prototype,`barFillMin`,void 0),t([s({type:Number,attribute:`bar-stretch-gamma`})],x.prototype,`barStretchGamma`,void 0),t([s({type:Number,attribute:`chart-scale`})],x.prototype,`chartScale`,void 0),x=u=t([e(`compare-card`)],x);var S=class extends i{static{d=this}static{this._idSeq=0}static{this.styles=[n,r]}constructor(){super(),this.title=``,this.subtitle=``,this.columns=2,this.gap=``,this._sectionTitleId=`bd-compare-section-title-${++d._idSeq}`}firstUpdated(){v()}render(){let e=this.gap?`--_cols: ${this.columns}; --cs-gap: ${this.gap}`:`--_cols: ${this.columns}`;return a`
|
|
531
102
|
<section
|
|
532
103
|
class="bd-ensemble cs-section"
|
|
533
|
-
aria-labelledby="${this.title
|
|
104
|
+
aria-labelledby="${this.title?this._sectionTitleId:o}"
|
|
534
105
|
>
|
|
535
|
-
${this.title
|
|
536
|
-
? html `
|
|
106
|
+
${this.title||this.subtitle?a`
|
|
537
107
|
<div class="cs-heading">
|
|
538
|
-
${this.title
|
|
539
|
-
|
|
540
|
-
: ""}
|
|
541
|
-
${this.subtitle
|
|
542
|
-
? html `
|
|
108
|
+
${this.title?a`<bd-h as="h3" class="cs-title" id="${this._sectionTitleId}">${this.title}</bd-h>`:``}
|
|
109
|
+
${this.subtitle?a`
|
|
543
110
|
<bd-p variant="regular" class="cs-subtitle">
|
|
544
111
|
${this.subtitle}
|
|
545
112
|
</bd-p>
|
|
546
|
-
|
|
547
|
-
: ""}
|
|
113
|
+
`:``}
|
|
548
114
|
</div>
|
|
549
|
-
|
|
550
|
-
: ""}
|
|
115
|
+
`:``}
|
|
551
116
|
|
|
552
|
-
<div class="cs-grid" style="${
|
|
117
|
+
<div class="cs-grid" style="${e}">
|
|
553
118
|
<slot></slot>
|
|
554
119
|
</div>
|
|
555
120
|
</section>
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
__decorate([
|
|
560
|
-
property({ type: String })
|
|
561
|
-
], CompareSection.prototype, "title", void 0);
|
|
562
|
-
__decorate([
|
|
563
|
-
property({ type: String })
|
|
564
|
-
], CompareSection.prototype, "subtitle", void 0);
|
|
565
|
-
__decorate([
|
|
566
|
-
property({ type: Number })
|
|
567
|
-
], CompareSection.prototype, "columns", void 0);
|
|
568
|
-
__decorate([
|
|
569
|
-
property({ type: String })
|
|
570
|
-
], CompareSection.prototype, "gap", void 0);
|
|
571
|
-
CompareSection = CompareSection_1 = __decorate([
|
|
572
|
-
defineElement("bd-compare-section")
|
|
573
|
-
], CompareSection);
|
|
574
|
-
export { CompareBar, CompareCard, CompareSection };
|
|
121
|
+
`}};t([s({type:String})],S.prototype,`title`,void 0),t([s({type:String})],S.prototype,`subtitle`,void 0),t([s({type:Number})],S.prototype,`columns`,void 0),t([s({type:String})],S.prototype,`gap`,void 0),S=d=t([e(`bd-compare-section`)],S);export{b as CompareBar,x as CompareCard,S as CompareSection};
|
|
575
122
|
//# sourceMappingURL=compare.js.map
|