@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-highlight.js","
|
|
1
|
+
{"version":3,"file":"stat-highlight.js","names":["_decorate","__decorate","DIGITS","StatHighlight","LitElement","tokens","statHighlightCSS","entries","digit","ch","i","d","nothing","property","state","defineElement"],"sources":["../../../../src/components/stat/stat-highlight.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport { statHighlightCSS } from \"./stat.css.ts\";\n\nconst DIGITS = \"0123456789\";\n\n/**\n * The one oversized figure a section leads with -- the Why-trust \"$1.5B+\".\n * The digits roll up into place the first time the figure comes into view;\n * everything that is not a digit ($, ., B, +) stands still.\n *\n * Split into one box per character so each digit can roll, which leaves a\n * screen reader nothing sensible to read -- so the visible characters are\n * hidden from it and `label` is the figure's full name (\"$1.5 billion plus\").\n * Without a label the value itself is used.\n *\n * Under prefers-reduced-motion the digits are already in place; nothing moves.\n */\n@defineElement(\"bd-stat-highlight\")\nexport class StatHighlight extends LitElement {\n @property({ type: String })\n value = \"\";\n @property({ type: String })\n label = \"\";\n @state()\n _rolled = false;\n\n _observer: IntersectionObserver | null;\n\n static styles = [tokens, statHighlightCSS];\n\n constructor() {\n super();\n this._observer = null;\n }\n\n firstUpdated() {\n const still = window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches;\n if (still) {\n this._rolled = true;\n return;\n }\n this._observer = new IntersectionObserver(entries => {\n if (entries.some(e => e.isIntersecting)) {\n this._rolled = true;\n this._observer!.disconnect();\n }\n }, { threshold: 0.5 });\n this._observer.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._observer?.disconnect();\n }\n\n _renderChar(ch: string, i: number) {\n const digit = DIGITS.indexOf(ch);\n if (digit < 0) return html`<span class=\"char\">${ch}</span>`;\n // each digit rolls a little later than the one before it\n return html`<span class=\"char digit\" style=\"--bd-stat-digit: ${this._rolled ? digit : 0}; --bd-stat-order: ${i};\">\n <span class=\"reel\">${[...DIGITS].map(d => html`<span>${d}</span>`)}</span>\n </span>`;\n }\n\n render() {\n if (!this.value) return nothing;\n return html`\n <p class=\"highlight\" role=\"img\" aria-label=\"${this.label || this.value}\">\n <span class=\"chars\" aria-hidden=\"true\">${[...this.value].map((ch, i) => this._renderChar(ch, i))}</span>\n </p>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-stat-highlight\": StatHighlight;\n }\n}\n"],"mappings":"A,uVAMA,IAAME,EAAS,aAeFC,EAAN,cAA4BC,CAAW,C,OAU5B,KAAA,OAAA,CAACC,EAAQC,CAAgB,C,CAEzC,aAAc,CACZ,MAAM,EAXA,KAAA,MAAA,GAEA,KAAA,MAAA,GAEE,KAAA,QAAA,GAQR,KAAK,UAAY,IACnB,CAEA,cAAe,CACC,OAAO,aAAa,kCAAkC,CAAC,CAAC,QAEpE,KAAK,QAAU,IAGjB,KAAK,UAAY,IAAI,qBAAqB,GAAW,CAC/CC,EAAQ,KAAK,GAAK,EAAE,cAAc,IACpC,KAAK,QAAU,GACf,KAAK,UAAW,WAAW,EAE/B,EAAG,CAAE,UAAW,EAAI,CAAC,EACrB,KAAK,UAAU,QAAQ,IAAI,EAC7B,CAEA,sBAAuB,CACrB,MAAM,qBAAqB,EAC3B,KAAK,WAAW,WAAW,CAC7B,CAEA,YAAY,EAAY,EAAW,CACjC,IAAMC,EAAQN,EAAO,QAAQO,CAAE,EAG/B,OAFID,EAAQ,EAAU,CAAI,sBAAsBC,EAAG,SAE5C,CAAI,oDAAoD,KAAK,QAAUD,EAAQ,EAAE,qBAAqBE,EAAE;2BACxF,CAAC,GAAGR,CAAM,CAAC,CAAC,IAAI,GAAK,CAAI,SAASS,EAAE,QAAQ,EAAE;YAEvE,CAEA,QAAS,CAEP,OADK,KAAK,MACH,CAAI;oDACqC,KAAK,OAAS,KAAK,MAAM;iDAC5B,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,KAAK,EAAI,IAAM,KAAK,YAAYF,EAAIC,CAAC,CAAC,EAAE;;MAH7EE,CAM1B,CACF,EArDGZ,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAa,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAV,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAM,CAAA,EAAAX,EAAA,UAAA,UAAA,IAAA,EAAA,EANR,EAAAH,EAAA,CAAAe,EAAc,mBAAmB,CAAA,EAAAZ,CAAA,E"}
|
|
@@ -1,54 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { statTileCSS } from "./stat.css.js";
|
|
12
|
-
/**
|
|
13
|
-
* One figure from the Why-trust stat grid: a display value over a short
|
|
14
|
-
* caption, on surface/info. The caption is pinned to the tile's foot so a row
|
|
15
|
-
* of tiles lines its captions up, whatever each value's length. Drawn in the
|
|
16
|
-
* foundation Figma file as Stat tile.
|
|
17
|
-
*
|
|
18
|
-
* The value and caption are read as one statement -- "580+ patents filed" --
|
|
19
|
-
* so the tile is a group named by both, and `label` can spell the value out
|
|
20
|
-
* where its short form reads badly aloud ("50 billion plus").
|
|
21
|
-
*/
|
|
22
|
-
let StatTile = class StatTile extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.value = "";
|
|
26
|
-
this.caption = "";
|
|
27
|
-
this.label = "";
|
|
28
|
-
}
|
|
29
|
-
static { this.styles = [tokens, statTileCSS]; }
|
|
30
|
-
render() {
|
|
31
|
-
return html `
|
|
32
|
-
<div class="tile" role="group" aria-label="${this.label ? `${this.label} ${this.caption}`.trim() : nothing}">
|
|
33
|
-
<p class="value" aria-hidden="${this.label ? "true" : nothing}">${this.value}</p>
|
|
34
|
-
${this.caption
|
|
35
|
-
? html `<p class="caption" aria-hidden="${this.label ? "true" : nothing}">${this.caption}</p>`
|
|
36
|
-
: nothing}
|
|
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{statTileCSS as r}from"./stat.css.js";import{LitElement as i,html as a,nothing as o}from"lit";import{property as s}from"lit/decorators.js";var c=class extends i{constructor(...e){super(...e),this.value=``,this.caption=``,this.label=``}static{this.styles=[t,r]}render(){return a`
|
|
2
|
+
<div class="tile" role="group" aria-label="${this.label?`${this.label} ${this.caption}`.trim():o}">
|
|
3
|
+
<p class="value" aria-hidden="${this.label?`true`:o}">${this.value}</p>
|
|
4
|
+
${this.caption?a`<p class="caption" aria-hidden="${this.label?`true`:o}">${this.caption}</p>`:o}
|
|
37
5
|
</div>
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
__decorate([
|
|
42
|
-
property({ type: String })
|
|
43
|
-
], StatTile.prototype, "value", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
property({ type: String })
|
|
46
|
-
], StatTile.prototype, "caption", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
property({ type: String })
|
|
49
|
-
], StatTile.prototype, "label", void 0);
|
|
50
|
-
StatTile = __decorate([
|
|
51
|
-
defineElement("bd-stat-tile")
|
|
52
|
-
], StatTile);
|
|
53
|
-
export { StatTile };
|
|
6
|
+
`}};n([s({type:String})],c.prototype,`value`,void 0),n([s({type:String})],c.prototype,`caption`,void 0),n([s({type:String})],c.prototype,`label`,void 0),c=n([e(`bd-stat-tile`)],c);export{c as StatTile};
|
|
54
7
|
//# sourceMappingURL=stat-tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat-tile.js","
|
|
1
|
+
{"version":3,"file":"stat-tile.js","names":["_decorate","__decorate","StatTile","LitElement","_args","tokens","statTileCSS","nothing","property","defineElement"],"sources":["../../../../src/components/stat/stat-tile.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 { statTileCSS } from \"./stat.css.ts\";\n\n/**\n * One figure from the Why-trust stat grid: a display value over a short\n * caption, on surface/info. The caption is pinned to the tile's foot so a row\n * of tiles lines its captions up, whatever each value's length. Drawn in the\n * foundation Figma file as Stat tile.\n *\n * The value and caption are read as one statement -- \"580+ patents filed\" --\n * so the tile is a group named by both, and `label` can spell the value out\n * where its short form reads badly aloud (\"50 billion plus\").\n */\n@defineElement(\"bd-stat-tile\")\nexport class StatTile extends LitElement {\n @property({ type: String })\n value = \"\";\n @property({ type: String })\n caption = \"\";\n @property({ type: String })\n label = \"\";\n\n static styles = [tokens, statTileCSS];\n\n render() {\n return html`\n <div class=\"tile\" role=\"group\" aria-label=\"${this.label ? `${this.label} ${this.caption}`.trim() : nothing}\">\n <p class=\"value\" aria-hidden=\"${this.label ? \"true\" : nothing}\">${this.value}</p>\n ${this.caption\n ? html`<p class=\"caption\" aria-hidden=\"${this.label ? \"true\" : nothing}\">${this.caption}</p>`\n : nothing}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-stat-tile\": StatTile;\n }\n}\n"],"mappings":"A,uUAiBO,IAAME,EAAN,cAAuBC,CAAW,C,8BAE/B,KAAA,MAAA,GAEE,KAAA,QAAA,GAEF,KAAA,MAAA,E,QAEQ,KAAA,OAAA,CAACE,EAAQC,CAAW,C,CAEpC,QAAS,CACP,MAAO,EAAI;mDACoC,KAAK,MAAQ,GAAG,KAAK,MAAM,GAAG,KAAK,UAAU,KAAK,EAAIC,EAAQ;wCACzE,KAAK,MAAQ,OAASA,EAAQ,IAAI,KAAK,MAAM;UAC3E,KAAK,QACH,CAAI,mCAAmC,KAAK,MAAQ,OAASA,EAAQ,IAAI,KAAK,QAAQ,MACtFA,EAAQ;;KAGlB,CACF,EAnBGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAN,EAAA,UAAA,QAAA,IAAA,EAAA,EAN3B,EAAAF,EAAA,CAAAS,EAAc,cAAc,CAAA,EAAAP,CAAA,E"}
|
|
@@ -1,146 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { above } from "../shared/token-scales.js";
|
|
3
|
-
import { hostFillsWidth } from "../shared/fill-width.css.js";
|
|
4
|
-
/* A tile on surface/info: the value at display-md, the caption at body-small,
|
|
5
|
-
pinned to the foot. On the info tint the value's text-primary measures
|
|
6
|
-
16.65:1 and the caption's the same. The tile takes the card corner one step
|
|
7
|
-
up, 3xl, as the design draws it; it is not a card -- it holds no controls
|
|
8
|
-
and no heading, only a figure. */
|
|
9
|
-
export const statTileCSS = css `
|
|
10
|
-
/* the full cell, both ways, so a row of tiles is one height and one width
|
|
11
|
-
whatever each one holds */
|
|
12
|
-
:host {
|
|
13
|
-
display: block;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.tile {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
height: 100%;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
gap: var(--spacing-12);
|
|
25
|
-
padding: var(--spacing-20);
|
|
26
|
-
text-align: start;
|
|
27
|
-
background: var(--color-surface-info);
|
|
28
|
-
border-radius: var(--shape-radius-3xl);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* The phone and tablet frames hold the copy 20 in and the caption at least
|
|
32
|
-
12 under the value; the desktop frame opens both up. */
|
|
33
|
-
@media ${unsafeCSS(above("lg"))} {
|
|
34
|
-
.tile {
|
|
35
|
-
gap: var(--spacing-48);
|
|
36
|
-
padding: var(--spacing-24);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.value,
|
|
41
|
-
.caption {
|
|
42
|
-
margin: 0;
|
|
43
|
-
color: var(--color-text-primary);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.value {
|
|
47
|
-
font-family: var(--typography-display-md-fontFamily);
|
|
48
|
-
font-size: var(--typography-display-md-fontSize);
|
|
49
|
-
font-weight: var(--typography-display-md-fontWeight);
|
|
50
|
-
line-height: var(--typography-display-md-lineHeight);
|
|
51
|
-
letter-spacing: var(--typography-display-md-letterSpacing);
|
|
52
|
-
font-variant-numeric: tabular-nums;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.caption {
|
|
56
|
-
font-family: var(--typography-body-small-fontFamily);
|
|
57
|
-
font-size: var(--typography-body-small-fontSize);
|
|
58
|
-
font-weight: var(--typography-body-small-fontWeight);
|
|
59
|
-
line-height: var(--typography-body-small-lineHeight);
|
|
60
|
-
letter-spacing: var(--typography-body-small-letterSpacing);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
64
|
-
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
65
|
-
arrives as a newline in the property). Text only: nothing here renders
|
|
66
|
-
HTML. */
|
|
67
|
-
.caption {
|
|
68
|
-
white-space: pre-line;
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
/* The leading figure. Its size is the one value here off the type scale: the
|
|
72
|
-
display family stops at 3xl (128) and the design draws this at 180, as a
|
|
73
|
-
deliberate one-off rather than a role, so it is spelled once, here.
|
|
74
|
-
Each digit is a reel of 0-9 in a one-line window, moved up by its own
|
|
75
|
-
value. */
|
|
76
|
-
export const statHighlightCSS = css `
|
|
77
|
-
/* The figure is held to the width it is given, so the host is a size
|
|
78
|
-
container and takes its column's whole width: its content gives it none,
|
|
79
|
-
and in a flex column that aligns its items to the start it would measure
|
|
80
|
-
0 and hold the figure at its floor. The width is the column less the
|
|
81
|
-
host's margins (shared/fill-width.css.ts). */
|
|
82
|
-
:host {
|
|
83
|
-
display: block;
|
|
84
|
-
container-type: inline-size;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
${hostFillsWidth()}
|
|
88
|
-
|
|
89
|
-
.highlight {
|
|
90
|
-
margin: 0;
|
|
91
|
-
text-align: start;
|
|
92
|
-
color: var(--color-text-primary);
|
|
93
|
-
font-family: var(--typography-display-3xl-fontFamily);
|
|
94
|
-
/* no role: every display role is bold, and the design sets this one-off
|
|
95
|
-
figure in IBM Plex Sans Text (450), a cut the system does not ship;
|
|
96
|
-
Regular is the nearest it does */
|
|
97
|
-
font-weight: var(--typography-fontWeight-normal);
|
|
98
|
-
letter-spacing: var(--typography-display-3xl-letterSpacing);
|
|
99
|
-
/* no token: the one-off figure the design sets; the display scale stops
|
|
100
|
-
at 128. The frames scale it with the page, not with its own column --
|
|
101
|
-
80 on a phone, about 107 in the tablet frame's 656 column, 180 in the
|
|
102
|
-
desktop frame's 588 half-column -- so the viewport stays the measure.
|
|
103
|
-
The column is the cap: never more of it than the desktop frame takes,
|
|
104
|
-
180 of 588. Uncapped, the story's $1.5B+ ran past its half of the page
|
|
105
|
-
column at 1060-1199 and 1283-1399, where the half holds at 428 and
|
|
106
|
-
518 while the viewport keeps growing. */
|
|
107
|
-
font-size: clamp(5rem, min(12.5vw, 100cqi * 180 / 588), 11.25rem);
|
|
108
|
-
/* no token: a reel of digits needs a line box exactly one digit tall, so
|
|
109
|
-
the window and the steps the reel moves by are the same length */
|
|
110
|
-
line-height: 1;
|
|
111
|
-
font-variant-numeric: tabular-nums;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.chars {
|
|
115
|
-
display: inline-flex;
|
|
116
|
-
align-items: flex-end;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.char {
|
|
120
|
-
display: inline-block;
|
|
121
|
-
height: 1em;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.digit {
|
|
125
|
-
overflow: hidden;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.reel {
|
|
129
|
-
display: flex;
|
|
130
|
-
flex-direction: column;
|
|
131
|
-
transform: translateY(calc(var(--bd-stat-digit) * -1em));
|
|
132
|
-
transition: transform var(--transition-duration-slower) var(--transition-easing-smooth);
|
|
133
|
-
transition-delay: calc(var(--bd-stat-order) * var(--transition-duration-fast));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.reel > span {
|
|
137
|
-
height: 1em;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@media (prefers-reduced-motion: reduce) {
|
|
141
|
-
.reel {
|
|
142
|
-
transition: none;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import"../shared/fill-width.css.js";import{css as e}from"lit";var t=e`:host{width:100%;height:100%;display:block}.tile{box-sizing:border-box;justify-content:space-between;gap:var(--spacing-12);height:100%;padding:var(--spacing-20);text-align:start;background:var(--color-surface-info);border-radius:var(--shape-radius-3xl);flex-direction:column;display:flex}@media (width>=992px){.tile{gap:var(--spacing-48);padding:var(--spacing-24)}}.value,.caption{color:var(--color-text-primary);margin:0}.value{font-family:var(--typography-display-md-fontFamily);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-variant-numeric:tabular-nums}.caption{font-family:var(--typography-body-small-fontFamily);font-size:var(--typography-body-small-fontSize);font-weight:var(--typography-body-small-fontWeight);line-height:var(--typography-body-small-lineHeight);letter-spacing:var(--typography-body-small-letterSpacing);white-space:pre-line}`,n=e`:host{width:100%;display:block;container-type:inline-size}@supports (width:-moz-available){:host{width:-moz-available}}@supports (width:-webkit-fill-available){:host{width:-webkit-fill-available}}@supports (width:stretch){:host{width:-webkit-fill-available;width:-moz-available;width:stretch}}.highlight{text-align:start;color:var(--color-text-primary);font-family:var(--typography-display-3xl-fontFamily);font-weight:var(--typography-fontWeight-normal);letter-spacing:var(--typography-display-3xl-letterSpacing);font-variant-numeric:tabular-nums;margin:0;font-size:clamp(5rem,min(12.5vw,30.6122cqi),11.25rem);line-height:1}.chars{align-items:flex-end;display:inline-flex}.char{height:1em;display:inline-block}.digit{overflow:hidden}.reel{transform:translateY(calc(var(--bd-stat-digit) * -1em));transition:transform var(--transition-duration-slower) var(--transition-easing-smooth);transition-delay:calc(var(--bd-stat-order) * var(--transition-duration-fast));flex-direction:column;display:flex}.reel>span{height:1em}@media (prefers-reduced-motion:reduce){.reel{transition:none}}`;export{n as statHighlightCSS,t as statTileCSS};
|
|
146
2
|
//# sourceMappingURL=stat.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stat.css.js","
|
|
1
|
+
{"version":3,"file":"stat.css.js","names":["statTileCSS","statHighlightCSS"],"sources":["../../../../src/components/stat/stat.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\nimport { hostFillsWidth } from \"#shared/fill-width.css.ts\";\n\n/* A tile on surface/info: the value at display-md, the caption at body-small,\n pinned to the foot. On the info tint the value's text-primary measures\n 16.65:1 and the caption's the same. The tile takes the card corner one step\n up, 3xl, as the design draws it; it is not a card -- it holds no controls\n and no heading, only a figure. */\nexport const statTileCSS = css`\n /* the full cell, both ways, so a row of tiles is one height and one width\n whatever each one holds */\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .tile {\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: var(--spacing-12);\n padding: var(--spacing-20);\n text-align: start;\n background: var(--color-surface-info);\n border-radius: var(--shape-radius-3xl);\n }\n\n /* The phone and tablet frames hold the copy 20 in and the caption at least\n 12 under the value; the desktop frame opens both up. */\n @media ${unsafeCSS(above(\"lg\"))} {\n .tile {\n gap: var(--spacing-48);\n padding: var(--spacing-24);\n }\n }\n\n .value,\n .caption {\n margin: 0;\n color: var(--color-text-primary);\n }\n\n .value {\n font-family: var(--typography-display-md-fontFamily);\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-variant-numeric: tabular-nums;\n }\n\n .caption {\n font-family: var(--typography-body-small-fontFamily);\n font-size: var(--typography-body-small-fontSize);\n font-weight: var(--typography-body-small-fontWeight);\n line-height: var(--typography-body-small-lineHeight);\n letter-spacing: var(--typography-body-small-letterSpacing);\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. */\n .caption {\n white-space: pre-line;\n }\n`;\n\n/* The leading figure. Its size is the one value here off the type scale: the\n display family stops at 3xl (128) and the design draws this at 180, as a\n deliberate one-off rather than a role, so it is spelled once, here.\n Each digit is a reel of 0-9 in a one-line window, moved up by its own\n value. */\nexport const statHighlightCSS = css`\n /* The figure is held to the width it is given, so the host is a size\n container and takes its column's whole width: its content gives it none,\n and in a flex column that aligns its items to the start it would measure\n 0 and hold the figure at its floor. The width is the column less the\n host's margins (shared/fill-width.css.ts). */\n :host {\n display: block;\n container-type: inline-size;\n }\n\n ${hostFillsWidth()}\n\n .highlight {\n margin: 0;\n text-align: start;\n color: var(--color-text-primary);\n font-family: var(--typography-display-3xl-fontFamily);\n /* no role: every display role is bold, and the design sets this one-off\n figure in IBM Plex Sans Text (450), a cut the system does not ship;\n Regular is the nearest it does */\n font-weight: var(--typography-fontWeight-normal);\n letter-spacing: var(--typography-display-3xl-letterSpacing);\n /* no token: the one-off figure the design sets; the display scale stops\n at 128. The frames scale it with the page, not with its own column --\n 80 on a phone, about 107 in the tablet frame's 656 column, 180 in the\n desktop frame's 588 half-column -- so the viewport stays the measure.\n The column is the cap: never more of it than the desktop frame takes,\n 180 of 588. Uncapped, the story's $1.5B+ ran past its half of the page\n column at 1060-1199 and 1283-1399, where the half holds at 428 and\n 518 while the viewport keeps growing. */\n font-size: clamp(5rem, min(12.5vw, 100cqi * 180 / 588), 11.25rem);\n /* no token: a reel of digits needs a line box exactly one digit tall, so\n the window and the steps the reel moves by are the same length */\n line-height: 1;\n font-variant-numeric: tabular-nums;\n }\n\n .chars {\n display: inline-flex;\n align-items: flex-end;\n }\n\n .char {\n display: inline-block;\n height: 1em;\n }\n\n .digit {\n overflow: hidden;\n }\n\n .reel {\n display: flex;\n flex-direction: column;\n transform: translateY(calc(var(--bd-stat-digit) * -1em));\n transition: transform var(--transition-duration-slower) var(--transition-easing-smooth);\n transition-delay: calc(var(--bd-stat-order) * var(--transition-duration-fast));\n }\n\n .reel > span {\n height: 1em;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .reel {\n transition: none;\n }\n }\n`;\n"],"mappings":"A,gGASA,IAAaA,EAAc,CAAG,4/BAoEjBC,EAAmB,CAAG,0jC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./stat-highlight.
|
|
2
|
-
import "./stat-tile.
|
|
1
|
+
import "./stat-highlight.js";
|
|
2
|
+
import "./stat-tile.js";
|
|
@@ -1,176 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Styled entirely from design tokens — see npm run lint:tokens. */
|
|
3
|
-
export const switchCSS = css `
|
|
4
|
-
:host { display: inline-flex; }
|
|
5
|
-
|
|
6
|
-
/* The row is the control, matching bd-checkbox and bd-radio: same gap, same
|
|
7
|
-
padding, same type, same inherited weight. This was the label-default
|
|
8
|
-
weight (medium) where those two inherit normal, so a switch label sat
|
|
9
|
-
bolder than a checkbox label on the same line of the same form.
|
|
10
|
-
|
|
11
|
-
Padding rather than a min-height, so the focus ring below insets evenly on
|
|
12
|
-
all four sides. */
|
|
13
|
-
label {
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: var(--spacing-8);
|
|
17
|
-
padding: var(--spacing-2);
|
|
18
|
-
font-family: var(--typography-fontFamily-sans);
|
|
19
|
-
/* body-small: sm / normal / 1.5, which is what this already rendered on all
|
|
20
|
-
three axes. Only the axes this rule declares are adopted -- the role also
|
|
21
|
-
carries a family and a tracking, and importing those would change text
|
|
22
|
-
the rule never spoke for. */
|
|
23
|
-
font-size: var(--typography-body-small-fontSize);
|
|
24
|
-
line-height: var(--typography-body-small-lineHeight);
|
|
25
|
-
color: var(--color-text-primary);
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
outline: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* the real control stays in the accessibility tree */
|
|
31
|
-
input {
|
|
32
|
-
position: absolute;
|
|
33
|
-
/* no token: 1px is the clip idiom's own measure, not a border. It was
|
|
34
|
-
spelled --border-width-1, which resolves to the same pixel and reads as
|
|
35
|
-
a category error — the lint already sanctions the literal here, as it
|
|
36
|
-
does the -1px below. */
|
|
37
|
-
width: 1px;
|
|
38
|
-
height: 1px;
|
|
39
|
-
margin: -1px;
|
|
40
|
-
overflow: hidden;
|
|
41
|
-
clip-path: inset(50%);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* neutral-400, not neutral-300: off is a state the user has to be able to
|
|
45
|
-
perceive, so 1.4.11 wants 3:1 against the page. neutral-300 measured 2.27
|
|
46
|
-
and neutral-400 measures 3.23 — the same step bd-custom-input already uses
|
|
47
|
-
for the edge of a control. It is also the boundary the white thumb is read
|
|
48
|
-
against, which was failing for the same reason.
|
|
49
|
-
The disabled track below stays lighter; disabled is exempt under 1.4.3. */
|
|
50
|
-
.track {
|
|
51
|
-
position: relative;
|
|
52
|
-
width: var(--dimension-40);
|
|
53
|
-
height: var(--dimension-24);
|
|
54
|
-
background: var(--color-border-default);
|
|
55
|
-
border-radius: var(--radius-full);
|
|
56
|
-
transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth);
|
|
57
|
-
flex: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* The thumb's inset and travel are derived from the two boxes they sit
|
|
61
|
-
between, in px like those boxes. They were --spacing-2 and --spacing-16,
|
|
62
|
-
which are rem, inside a track that is --dimension-* and so is not: at a
|
|
63
|
-
24px root the thumb rode 3px in and travelled 24px, and finished at 47px
|
|
64
|
-
in a 40px track. A knob has to stay on the track it belongs to at any text
|
|
65
|
-
size, so all four lengths are now one unit. Inset is half the height left
|
|
66
|
-
over; travel is the width left over after both insets: 2px and 16px. */
|
|
67
|
-
.track {
|
|
68
|
-
--bd-switch-inset: calc((var(--dimension-24) - var(--dimension-20)) / 2);
|
|
69
|
-
--bd-switch-travel: calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* The thumb starts at the inline start and travels toward the end, so on a
|
|
73
|
-
right-to-left page off is on the right, as a native switch draws it.
|
|
74
|
-
--_dir turns the travel round, the multiplier bd-pagination-dots uses for
|
|
75
|
-
its fill. */
|
|
76
|
-
.thumb {
|
|
77
|
-
--_dir: 1;
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: var(--bd-switch-inset);
|
|
80
|
-
inset-inline-start: var(--bd-switch-inset);
|
|
81
|
-
width: var(--dimension-20);
|
|
82
|
-
height: var(--dimension-20);
|
|
83
|
-
/* the knob on the track, white on both tracks: --color-action-on-fill,
|
|
84
|
-
like the checkbox mark, not the page colour it happens to equal here */
|
|
85
|
-
background: var(--color-action-on-fill);
|
|
86
|
-
border-radius: var(--radius-full);
|
|
87
|
-
box-shadow: var(--shadow-sm);
|
|
88
|
-
transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host([checked]) .track { background: var(--color-action-primary); }
|
|
92
|
-
|
|
93
|
-
/* The off track is --color-border-default and this is one step darker. The
|
|
94
|
-
border roles name no hover step — this is the only track in the system
|
|
95
|
-
that hovers — so the primitive stands rather than a text role being
|
|
96
|
-
borrowed for a background or a role being invented for one consumer.
|
|
97
|
-
If a second component ever needs it, that is when it earns a name. */
|
|
98
|
-
label:hover .track { background: var(--color-neutral-500); }
|
|
99
|
-
:host([checked]) label:hover .track { background: var(--color-action-primary-hover); }
|
|
100
|
-
:host(:dir(rtl)) .thumb { --_dir: -1; }
|
|
101
|
-
:host([checked]) .thumb { transform: translateX(calc(var(--_dir) * var(--bd-switch-travel))); }
|
|
102
|
-
/* On the checked track the thumb sits on the brand fill, so it takes the
|
|
103
|
-
brand's ink; on the off track it stays white, the foundation's own pair. */
|
|
104
|
-
:host([checked]) .thumb { background: var(--color-brand-on-fill); }
|
|
105
|
-
|
|
106
|
-
/* the one focus ring — see Foundations/Focus. On the row rather than the
|
|
107
|
-
track, so the target and the indicator are the same shape here as on
|
|
108
|
-
bd-checkbox and bd-radio. */
|
|
109
|
-
label:has(input:focus-visible) {
|
|
110
|
-
box-shadow: var(--focus-outline-primary);
|
|
111
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
112
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
113
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
114
|
-
outer band. */
|
|
115
|
-
outline: var(--border-width-2) solid transparent;
|
|
116
|
-
outline-offset: var(--focus-outline-offset);
|
|
117
|
-
border-radius: var(--focus-outline-radius);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* :disabled rather than [disabled], so a <fieldset disabled> around the
|
|
121
|
-
switch greys it too: a form-associated element matches :disabled for
|
|
122
|
-
both. */
|
|
123
|
-
:host(:disabled) label { cursor: not-allowed; color: var(--color-text-subtle); }
|
|
124
|
-
:host(:disabled) label:hover .track,
|
|
125
|
-
:host(:disabled) .track { background: var(--color-border-subtle); }
|
|
126
|
-
|
|
127
|
-
@media (prefers-reduced-motion: reduce) {
|
|
128
|
-
.track, .thumb { transition: none; }
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Forced colours repaint every background as Canvas, so the track and the
|
|
132
|
-
thumb both vanished there, on and off alike, and only the label was left.
|
|
133
|
-
The two opt out and state system colours, as bd-progress does: off is a
|
|
134
|
-
CanvasText ring round a CanvasText knob, on is a Highlight track with a
|
|
135
|
-
HighlightText knob -- the pair a forced palette keeps apart for a
|
|
136
|
-
selected thing -- and disabled is GrayText. The ring is an outline drawn
|
|
137
|
-
inward, not a border, so the thumb's inset and travel are untouched. The
|
|
138
|
-
hover selectors are repeated because they outrank these, and the knob's
|
|
139
|
-
shadow goes because opting out would otherwise paint it. */
|
|
140
|
-
@media (forced-colors: active) {
|
|
141
|
-
.track,
|
|
142
|
-
.thumb {
|
|
143
|
-
forced-color-adjust: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.track,
|
|
147
|
-
label:hover .track {
|
|
148
|
-
background: Canvas;
|
|
149
|
-
outline: var(--border-width-1) solid CanvasText;
|
|
150
|
-
outline-offset: calc(-1 * var(--border-width-1));
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.thumb {
|
|
154
|
-
background: CanvasText;
|
|
155
|
-
box-shadow: none;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
:host([checked]) .track,
|
|
159
|
-
:host([checked]) label:hover .track {
|
|
160
|
-
background: Highlight;
|
|
161
|
-
outline-color: Highlight;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
:host([checked]) .thumb { background: HighlightText; }
|
|
165
|
-
|
|
166
|
-
:host(:disabled) .track,
|
|
167
|
-
:host(:disabled) label:hover .track {
|
|
168
|
-
background: Canvas;
|
|
169
|
-
outline-color: GrayText;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:host(:disabled) .thumb { background: GrayText; }
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
export default switchCSS;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:inline-flex}label{align-items:center;gap:var(--spacing-8);padding:var(--spacing-2);font-family:var(--typography-fontFamily-sans);font-size:var(--typography-body-small-fontSize);line-height:var(--typography-body-small-lineHeight);color:var(--color-text-primary);cursor:pointer;outline:none;display:inline-flex}input{clip-path:inset(50%);width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.track{width:var(--dimension-40);height:var(--dimension-24);background:var(--color-border-default);border-radius:var(--radius-full);transition:background-color var(--transition-duration-normal) var(--transition-easing-smooth);--bd-switch-inset:calc((var(--dimension-24) - var(--dimension-20)) / 2);--bd-switch-travel:calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));flex:none;position:relative}.thumb{--_dir:1;top:var(--bd-switch-inset);width:var(--dimension-20);height:var(--dimension-20);background:var(--color-action-on-fill);border-radius:var(--radius-full);box-shadow:var(--shadow-sm);transition:transform var(--transition-duration-normal) var(--transition-easing-smooth);position:absolute;inset-inline-start:var(--bd-switch-inset)}:host([checked]) .track{background:var(--color-action-primary)}label:hover .track{background:var(--color-neutral-500)}:host([checked]) label:hover .track{background:var(--color-action-primary-hover)}:host(:dir(rtl)) .thumb{--_dir:-1}:host([checked]) .thumb{transform:translateX(calc(var(--_dir) * var(--bd-switch-travel)));background:var(--color-brand-on-fill)}label:has(input:focus-visible){box-shadow:var(--focus-outline-primary);outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);border-radius:var(--focus-outline-radius)}:host(:disabled) label{cursor:not-allowed;color:var(--color-text-subtle)}:host(:disabled) label:hover .track,:host(:disabled) .track{background:var(--color-border-subtle)}@media (prefers-reduced-motion:reduce){.track,.thumb{transition:none}}@media (forced-colors:active){.track,.thumb{forced-color-adjust:none}.track,label:hover .track{outline:var(--border-width-1) solid CanvasText;outline-offset:calc(-1 * var(--border-width-1));background:canvas}.thumb{box-shadow:none;background:canvastext}:host([checked]) .track,:host([checked]) label:hover .track{background:highlight;outline-color:highlight}:host([checked]) .thumb{background:highlighttext}:host(:disabled) .track,:host(:disabled) label:hover .track{background:canvas;outline-color:graytext}:host(:disabled) .thumb{background:graytext}}`;export{t as default,t as switchCSS};
|
|
176
2
|
//# sourceMappingURL=switch.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.css.js","
|
|
1
|
+
{"version":3,"file":"switch.css.js","names":["switchCSS"],"sources":["../../../../src/components/switch/switch.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const switchCSS = css`\n :host { display: inline-flex; }\n\n /* The row is the control, matching bd-checkbox and bd-radio: same gap, same\n padding, same type, same inherited weight. This was the label-default\n weight (medium) where those two inherit normal, so a switch label sat\n bolder than a checkbox label on the same line of the same form.\n\n Padding rather than a min-height, so the focus ring below insets evenly on\n all four sides. */\n label {\n display: inline-flex;\n align-items: center;\n gap: var(--spacing-8);\n padding: var(--spacing-2);\n font-family: var(--typography-fontFamily-sans);\n /* body-small: sm / normal / 1.5, which is what this already rendered on all\n three axes. Only the axes this rule declares are adopted -- the role also\n carries a family and a tracking, and importing those would change text\n the rule never spoke for. */\n font-size: var(--typography-body-small-fontSize);\n line-height: var(--typography-body-small-lineHeight);\n color: var(--color-text-primary);\n cursor: pointer;\n outline: none;\n }\n\n /* the real control stays in the accessibility tree */\n input {\n position: absolute;\n /* no token: 1px is the clip idiom's own measure, not a border. It was\n spelled --border-width-1, which resolves to the same pixel and reads as\n a category error — the lint already sanctions the literal here, as it\n does the -1px below. */\n width: 1px;\n height: 1px;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n }\n\n /* neutral-400, not neutral-300: off is a state the user has to be able to\n perceive, so 1.4.11 wants 3:1 against the page. neutral-300 measured 2.27\n and neutral-400 measures 3.23 — the same step bd-custom-input already uses\n for the edge of a control. It is also the boundary the white thumb is read\n against, which was failing for the same reason.\n The disabled track below stays lighter; disabled is exempt under 1.4.3. */\n .track {\n position: relative;\n width: var(--dimension-40);\n height: var(--dimension-24);\n background: var(--color-border-default);\n border-radius: var(--radius-full);\n transition: background-color var(--transition-duration-normal) var(--transition-easing-smooth);\n flex: none;\n }\n\n /* The thumb's inset and travel are derived from the two boxes they sit\n between, in px like those boxes. They were --spacing-2 and --spacing-16,\n which are rem, inside a track that is --dimension-* and so is not: at a\n 24px root the thumb rode 3px in and travelled 24px, and finished at 47px\n in a 40px track. A knob has to stay on the track it belongs to at any text\n size, so all four lengths are now one unit. Inset is half the height left\n over; travel is the width left over after both insets: 2px and 16px. */\n .track {\n --bd-switch-inset: calc((var(--dimension-24) - var(--dimension-20)) / 2);\n --bd-switch-travel: calc(var(--dimension-40) - var(--dimension-20) - 2 * var(--bd-switch-inset));\n }\n\n /* The thumb starts at the inline start and travels toward the end, so on a\n right-to-left page off is on the right, as a native switch draws it.\n --_dir turns the travel round, the multiplier bd-pagination-dots uses for\n its fill. */\n .thumb {\n --_dir: 1;\n position: absolute;\n top: var(--bd-switch-inset);\n inset-inline-start: var(--bd-switch-inset);\n width: var(--dimension-20);\n height: var(--dimension-20);\n /* the knob on the track, white on both tracks: --color-action-on-fill,\n like the checkbox mark, not the page colour it happens to equal here */\n background: var(--color-action-on-fill);\n border-radius: var(--radius-full);\n box-shadow: var(--shadow-sm);\n transition: transform var(--transition-duration-normal) var(--transition-easing-smooth);\n }\n\n :host([checked]) .track { background: var(--color-action-primary); }\n\n /* The off track is --color-border-default and this is one step darker. The\n border roles name no hover step — this is the only track in the system\n that hovers — so the primitive stands rather than a text role being\n borrowed for a background or a role being invented for one consumer.\n If a second component ever needs it, that is when it earns a name. */\n label:hover .track { background: var(--color-neutral-500); }\n :host([checked]) label:hover .track { background: var(--color-action-primary-hover); }\n :host(:dir(rtl)) .thumb { --_dir: -1; }\n :host([checked]) .thumb { transform: translateX(calc(var(--_dir) * var(--bd-switch-travel))); }\n /* On the checked track the thumb sits on the brand fill, so it takes the\n brand's ink; on the off track it stays white, the foundation's own pair. */\n :host([checked]) .thumb { background: var(--color-brand-on-fill); }\n\n /* the one focus ring — see Foundations/Focus. On the row rather than the\n track, so the target and the indicator are the same shape here as on\n bd-checkbox and bd-radio. */\n label:has(input:focus-visible) {\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n border-radius: var(--focus-outline-radius);\n }\n\n /* :disabled rather than [disabled], so a <fieldset disabled> around the\n switch greys it too: a form-associated element matches :disabled for\n both. */\n :host(:disabled) label { cursor: not-allowed; color: var(--color-text-subtle); }\n :host(:disabled) label:hover .track,\n :host(:disabled) .track { background: var(--color-border-subtle); }\n\n @media (prefers-reduced-motion: reduce) {\n .track, .thumb { transition: none; }\n }\n\n /* Forced colours repaint every background as Canvas, so the track and the\n thumb both vanished there, on and off alike, and only the label was left.\n The two opt out and state system colours, as bd-progress does: off is a\n CanvasText ring round a CanvasText knob, on is a Highlight track with a\n HighlightText knob -- the pair a forced palette keeps apart for a\n selected thing -- and disabled is GrayText. The ring is an outline drawn\n inward, not a border, so the thumb's inset and travel are untouched. The\n hover selectors are repeated because they outrank these, and the knob's\n shadow goes because opting out would otherwise paint it. */\n @media (forced-colors: active) {\n .track,\n .thumb {\n forced-color-adjust: none;\n }\n\n .track,\n label:hover .track {\n background: Canvas;\n outline: var(--border-width-1) solid CanvasText;\n outline-offset: calc(-1 * var(--border-width-1));\n }\n\n .thumb {\n background: CanvasText;\n box-shadow: none;\n }\n\n :host([checked]) .track,\n :host([checked]) label:hover .track {\n background: Highlight;\n outline-color: Highlight;\n }\n\n :host([checked]) .thumb { background: HighlightText; }\n\n :host(:disabled) .track,\n :host(:disabled) label:hover .track {\n background: Canvas;\n outline-color: GrayText;\n }\n\n :host(:disabled) .thumb { background: GrayText; }\n }\n`;\n\nexport default switchCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAY,CAAG,g/E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
declare const BdSwitch_base: (new (...args: any[]) => import("../shared/form-control.
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../shared/events.js";
|
|
3
|
+
import "../../tokens/tokens.js";
|
|
4
|
+
declare const BdSwitch_base: (new (...args: any[]) => import("../shared/form-control.js").FormControlInterface) & typeof LitElement;
|
|
5
5
|
export declare class BdSwitch extends BdSwitch_base {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
checked: boolean;
|