@repobit/dex-system-design 3.0.1 → 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 +7 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +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":"trust-panel.css.js","
|
|
1
|
+
{"version":3,"file":"trust-panel.css.js","names":["trust_panel_css_default"],"sources":["../../../../src/components/trust-panel/trust-panel.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n background: var(--status-brand-surface);\n }\n\n .bd-trustpanel-wrapper {\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n .bd-trustpanel-eyebrow {\n display: block;\n margin: 0 0 var(--spacing-8);\n color: var(--color-text-brand);\n }\n\n .bd-trustpanel-title {\n margin: 0 0 var(--spacing-16);\n }\n\n .bd-trustpanel-description {\n display: block;\n margin: 0 0 var(--spacing-40);\n color: var(--color-text-muted);\n max-width: 80ch;\n }\n\n .bd-trustpanel-inline-link {\n /* bd-link owns colour, weight, underline and the focus ring now. What is\n left here is the one thing the parent legitimately decides: that this\n link does not break across lines mid-phrase in running text.\n\n It used to be a bare anchor with text-decoration none, which left colour\n as the only thing marking it as a link inside a muted paragraph, and it\n had no focus treatment beyond the browser default outline. */\n white-space: nowrap;\n }\n\n .bd-trustpanel-card-link {\n /* 16px on this tint, where blue-500 is 4.2:1. text-brand is what the link\n atom itself uses for a primary link, so this stops diverging from it. */\n color: var(--color-text-brand);\n /* link-standalone: this is a link that stands on its own -- a card's call\n to action, not a link inside a sentence, which is what link-default's\n inherit-everything shape is for. The size was inherited at 16px and the\n role names base, so declaring it changes nothing and stops the size\n depending on whatever encloses the card. The weight moves 600 -> 500,\n the same step already accepted for the accordion title and the\n accordion-bg question. The leading is the real gain: it was undeclared\n and computing to the font's own metric, which CLAUDE.md rule 2 says is\n not a typography contract. */\n font-size: var(--typography-link-standalone-fontSize);\n font-weight: var(--typography-link-standalone-fontWeight);\n line-height: var(--typography-link-standalone-lineHeight);\n text-decoration: none;\n white-space: nowrap;\n }\n .bd-trustpanel-card-link:hover {\n text-decoration: underline;\n }\n\n /* === STATS ROW === */\n .bd-trustpanel-stats {\n display: grid;\n grid-template-columns: repeat(6, 1fr);\n gap: var(--spacing-24);\n margin-bottom: var(--spacing-40);\n }\n\n .bd-trustpanel-stat {\n display: flex;\n flex-direction: column;\n }\n\n .bd-trustpanel-stat-divider {\n border-top: 2px solid var(--color-border-brand);\n margin-bottom: var(--spacing-16);\n }\n\n .bd-trustpanel-stat-value {\n /* --color-text-brand, the role, not --color-blue-500. CLAUDE.md is explicit\n that blue-500 is 4.53:1 on pure white and fails on any tint, and this\n statistic sits on the panel's blue-50 ground -- text on a tint, which is\n the case the rule names.\n .\n It was not failing: measured 4.20:1 at 32px/700, and WCAG's large-text\n bar is 3:1, so it passed on the exemption rather than on the number. The\n role takes it to 5.72:1 and it passes without needing the exemption,\n which is the difference worth having on a figure people read across a\n room.\n .\n Visible, and small: the statistic darkens one step of blue. */\n color: var(--color-text-brand);\n font-size: var(--typography-fontSize-3xl);\n font-weight: var(--typography-fontWeight-bold);\n /* no token: 1.1 is neither --typography-lineHeight-none (1) nor -tight\n (1.25), and choosing between them changes the height of a rendered\n statistic. P5E recorded it as a design-review item and P5E.1 is\n explicitly not the phase that decides it. */\n line-height: 1.1;\n margin-bottom: var(--spacing-4);\n }\n\n .bd-trustpanel-stat-label {\n color: var(--color-text-muted);\n /* The sentence under a statistic, and it wraps to two lines at most widths.\n Supporting body copy rather than a form label: label-default would put it\n at weight 500, and this is prose describing a number, not a control's\n name. The stat value above it keeps its own leading and is untouched. */\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 font-family: var(--typography-body-small-fontFamily);\n }\n\n /* === CARDS === */\n .bd-trustpanel-cards {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--spacing-24);\n }\n\n\n .bd-trustpanel-card {\n background: var(--color-surface-default);\n border: var(--border-width-1) solid var(--color-border-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n /* normal, not 250ms: a hover lift is the most repeated interaction on\n the page, and 250 was a fifth of a second off the scale for no reason\n anyone recorded. bento-item ran the same lift at the same value. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n }\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted. */\n @media (hover: hover) {\n .bd-trustpanel-card:hover {\n transform: translateY(-3px);\n /* no token: the hover lift bd-bento-item shares -- one wide, soft layer of\n black at 7%. Every --shadow-* step is tighter and darker (10%, two\n layers from md up), so none of them draws this; a card-hover elevation\n would be a new step, decided for both cards at once. The colour is\n mixed over the palette, the house pattern for a black with an alpha\n (see the modal's scrim): it was #00000012, the same pixels. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* The shadow stays and the movement goes. Turning the transition off alone\n would only make the lift instant, which is the same 3px of travel with\n less warning; the transform is the part someone asking for reduced motion\n is asking not to see. The shadow still says the card is hovered. */\n @media (prefers-reduced-motion: reduce) {\n .bd-trustpanel-card {\n transition: none;\n }\n\n .bd-trustpanel-card:hover {\n transform: none;\n }\n }\n\n .bd-trustpanel-card-eyebrow {\n display: block;\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-brand);\n }\n\n .bd-trustpanel-card-logos {\n display: flex;\n align-items: center;\n gap: var(--spacing-16);\n margin-bottom: var(--spacing-20);\n flex-wrap: wrap;\n }\n\n .bd-trustpanel-card-logos ::slotted(*) {\n height: 32px;\n width: auto;\n object-fit: contain;\n }\n\n .bd-trustpanel-card-title {\n margin: 0 0 var(--spacing-12);\n }\n\n .bd-trustpanel-card-description {\n display: block;\n margin: 0 0 var(--spacing-16);\n color: var(--color-text-muted);\n flex: 1;\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(3, 1fr);\n }\n }\n\n @media ${unsafeCSS(below('md'))} {\n .bd-trustpanel-stats {\n grid-template-columns: repeat(2, 1fr);\n }\n\n .bd-trustpanel-cards {\n grid-template-columns: 1fr;\n }\n\n .bd-trustpanel-wrapper {\n padding: var(--spacing-32) var(--spacing-24);\n }\n\n .bd-trustpanel-card {\n padding: var(--card-padding-compact);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,0mG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../heading/heading.
|
|
3
|
-
import "../link/link.
|
|
4
|
-
import "../paragraph/paragraph.
|
|
5
|
-
import "../icons/arrow-right-icon.
|
|
2
|
+
import "../heading/heading.js";
|
|
3
|
+
import "../link/link.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
|
+
import "../icons/arrow-right-icon.js";
|
|
6
6
|
interface TrustStat {
|
|
7
7
|
value: string;
|
|
8
8
|
label: string;
|
|
@@ -1,78 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../heading/heading.js";
|
|
12
|
-
import "../link/link.js";
|
|
13
|
-
import "../paragraph/paragraph.js";
|
|
14
|
-
import trustPanelCSS from "./trust-panel.css.js";
|
|
15
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
16
|
-
import "../icons/arrow-right-icon.js";
|
|
17
|
-
let TrustPanel = class TrustPanel extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.eyebrow = "";
|
|
21
|
-
this.title = "";
|
|
22
|
-
this.description = "";
|
|
23
|
-
this.linkLabel = "";
|
|
24
|
-
this.linkHref = "#";
|
|
25
|
-
this.stats = []; // [{ value: String, label: String }]
|
|
26
|
-
this.cards = []; // [{ eyebrow, title, description, linkLabel, linkHref }] — logos slotted per card
|
|
27
|
-
}
|
|
28
|
-
static { this.styles = [tokens, ensembleCSS, trustPanelCSS]; }
|
|
29
|
-
_renderCard(card, index) {
|
|
30
|
-
const logoSlotName = `card-${index + 1}-logos`;
|
|
31
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import"../icons/arrow-right-icon.js";import"../link/link.js";import i from"./trust-panel.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.eyebrow=``,this.title=``,this.description=``,this.linkLabel=``,this.linkHref=`#`,this.stats=[],this.cards=[]}static{this.styles=[t,r,i]}_renderCard(e,t){let n=`card-${t+1}-logos`;return o`
|
|
32
2
|
<div class="bd-trustpanel-card">
|
|
33
|
-
${card.eyebrow
|
|
34
|
-
? html `<bd-p variant="eyebrow" class="bd-trustpanel-card-eyebrow">${card.eyebrow}</bd-p>`
|
|
35
|
-
: nothing}
|
|
3
|
+
${e.eyebrow?o`<bd-p variant="eyebrow" class="bd-trustpanel-card-eyebrow">${e.eyebrow}</bd-p>`:s}
|
|
36
4
|
|
|
37
5
|
<div class="bd-trustpanel-card-logos">
|
|
38
|
-
<slot name="${
|
|
6
|
+
<slot name="${n}"></slot>
|
|
39
7
|
</div>
|
|
40
8
|
|
|
41
|
-
${card.title
|
|
42
|
-
? html `<bd-h as="h4" class="bd-trustpanel-card-title">${card.title}</bd-h>`
|
|
43
|
-
: nothing}
|
|
9
|
+
${e.title?o`<bd-h as="h4" class="bd-trustpanel-card-title">${e.title}</bd-h>`:s}
|
|
44
10
|
|
|
45
|
-
${card.description
|
|
46
|
-
? html `<bd-p variant="regular" class="bd-trustpanel-card-description">${card.description}</bd-p>`
|
|
47
|
-
: nothing}
|
|
11
|
+
${e.description?o`<bd-p variant="regular" class="bd-trustpanel-card-description">${e.description}</bd-p>`:s}
|
|
48
12
|
|
|
49
|
-
${
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
${card.linkLabel} <bd-arrow-right-icon size="xs" aria-hidden="true"></bd-arrow-right-icon>
|
|
13
|
+
${e.linkLabel?o`
|
|
14
|
+
<a class="bd-trustpanel-card-link" href=${e.linkHref||`#`}>
|
|
15
|
+
${e.linkLabel} <bd-arrow-right-icon size="xs" aria-hidden="true"></bd-arrow-right-icon>
|
|
53
16
|
</a>
|
|
54
|
-
|
|
55
|
-
: nothing}
|
|
17
|
+
`:s}
|
|
56
18
|
</div>
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return html `
|
|
19
|
+
`}render(){return o`
|
|
61
20
|
<div class="bd-ensemble bd-trustpanel-wrapper">
|
|
62
|
-
${this.eyebrow
|
|
63
|
-
? html `<bd-p variant="eyebrow" class="bd-trustpanel-eyebrow"><slot name="eyebrow">${this.eyebrow}</slot></bd-p>`
|
|
64
|
-
: nothing}
|
|
21
|
+
${this.eyebrow?o`<bd-p variant="eyebrow" class="bd-trustpanel-eyebrow"><slot name="eyebrow">${this.eyebrow}</slot></bd-p>`:s}
|
|
65
22
|
|
|
66
|
-
${this.title
|
|
67
|
-
? html `<bd-h as="h2" class="bd-trustpanel-title"><slot name="title">${this.title}</slot></bd-h>`
|
|
68
|
-
: nothing}
|
|
23
|
+
${this.title?o`<bd-h as="h2" class="bd-trustpanel-title"><slot name="title">${this.title}</slot></bd-h>`:s}
|
|
69
24
|
|
|
70
|
-
${this.description
|
|
71
|
-
? html `
|
|
25
|
+
${this.description?o`
|
|
72
26
|
<bd-p variant="regular" class="bd-trustpanel-description">
|
|
73
27
|
<slot name="description">${this.description}</slot>
|
|
74
|
-
${this.linkLabel
|
|
75
|
-
? html `
|
|
28
|
+
${this.linkLabel?o`
|
|
76
29
|
<bd-link
|
|
77
30
|
class="bd-trustpanel-inline-link"
|
|
78
31
|
href=${this.linkHref}
|
|
@@ -81,59 +34,27 @@ let TrustPanel = class TrustPanel extends LitElement {
|
|
|
81
34
|
>
|
|
82
35
|
${this.linkLabel} <bd-arrow-right-icon size="xs" aria-hidden="true"></bd-arrow-right-icon>
|
|
83
36
|
</bd-link>
|
|
84
|
-
|
|
85
|
-
: nothing}
|
|
37
|
+
`:s}
|
|
86
38
|
</bd-p>
|
|
87
|
-
|
|
88
|
-
: nothing}
|
|
39
|
+
`:s}
|
|
89
40
|
|
|
90
|
-
${this.stats
|
|
91
|
-
? html `
|
|
41
|
+
${this.stats&&this.stats.length?o`
|
|
92
42
|
<div class="bd-trustpanel-stats">
|
|
93
|
-
${this.stats.map(
|
|
43
|
+
${this.stats.map(e=>o`
|
|
94
44
|
<div class="bd-trustpanel-stat">
|
|
95
45
|
<div class="bd-trustpanel-stat-divider"></div>
|
|
96
|
-
<div class="bd-trustpanel-stat-value">${
|
|
97
|
-
<div class="bd-trustpanel-stat-label">${
|
|
46
|
+
<div class="bd-trustpanel-stat-value">${e.value}</div>
|
|
47
|
+
<div class="bd-trustpanel-stat-label">${e.label}</div>
|
|
98
48
|
</div>
|
|
99
49
|
`)}
|
|
100
50
|
</div>
|
|
101
|
-
|
|
102
|
-
: nothing}
|
|
51
|
+
`:s}
|
|
103
52
|
|
|
104
|
-
${this.cards
|
|
105
|
-
? html `
|
|
53
|
+
${this.cards&&this.cards.length?o`
|
|
106
54
|
<div class="bd-trustpanel-cards">
|
|
107
|
-
${this.cards.map((
|
|
55
|
+
${this.cards.map((e,t)=>this._renderCard(e,t))}
|
|
108
56
|
</div>
|
|
109
|
-
|
|
110
|
-
: nothing}
|
|
57
|
+
`:s}
|
|
111
58
|
</div>
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
__decorate([
|
|
116
|
-
property({ type: String })
|
|
117
|
-
], TrustPanel.prototype, "eyebrow", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
property({ type: String })
|
|
120
|
-
], TrustPanel.prototype, "title", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
property({ type: String })
|
|
123
|
-
], TrustPanel.prototype, "description", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
property({ type: String, attribute: "link-label" })
|
|
126
|
-
], TrustPanel.prototype, "linkLabel", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
property({ type: String, attribute: "link-href" })
|
|
129
|
-
], TrustPanel.prototype, "linkHref", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
property({ type: Array })
|
|
132
|
-
], TrustPanel.prototype, "stats", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
property({ type: Array })
|
|
135
|
-
], TrustPanel.prototype, "cards", void 0);
|
|
136
|
-
TrustPanel = __decorate([
|
|
137
|
-
defineElement("bd-trust-panel")
|
|
138
|
-
], TrustPanel);
|
|
59
|
+
`}};n([c({type:String})],l.prototype,`eyebrow`,void 0),n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:String,attribute:`link-label`})],l.prototype,`linkLabel`,void 0),n([c({type:String,attribute:`link-href`})],l.prototype,`linkHref`,void 0),n([c({type:Array})],l.prototype,`stats`,void 0),n([c({type:Array})],l.prototype,`cards`,void 0),l=n([e(`bd-trust-panel`)],l);
|
|
139
60
|
//# sourceMappingURL=trust-panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trust-panel.js","
|
|
1
|
+
{"version":3,"file":"trust-panel.js","names":["trustPanelCSS","_decorate","__decorate","trust_panel_css_default","TrustPanel","LitElement","_args","tokens","ensembleCSS","logoSlotName","index","card","nothing","stat","i","property","defineElement"],"sources":["../../../../src/components/trust-panel/trust-panel.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/link/link.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport trustPanelCSS from \"./trust-panel.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport \"#components/icons/arrow-right-icon.ts\";\n\ninterface TrustStat {\n value: string;\n label: string;\n}\n\ninterface TrustCard {\n eyebrow? : string;\n title? : string;\n description?: string;\n linkLabel? : string;\n linkHref? : string;\n}\n\n@defineElement(\"bd-trust-panel\")\nclass TrustPanel extends LitElement {\n static styles = [tokens, ensembleCSS, trustPanelCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: String, attribute: \"link-label\" })\n linkLabel = \"\";\n @property({ type: String, attribute: \"link-href\" })\n linkHref = \"#\";\n @property({ type: Array })\n stats: TrustStat[] = []; // [{ value: String, label: String }]\n @property({ type: Array })\n cards: TrustCard[] = []; // [{ eyebrow, title, description, linkLabel, linkHref }] — logos slotted per card\n\n _renderCard(card: TrustCard, index: number) {\n const logoSlotName = `card-${index + 1}-logos`;\n return html`\n <div class=\"bd-trustpanel-card\">\n ${card.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"bd-trustpanel-card-eyebrow\">${card.eyebrow}</bd-p>`\n : nothing}\n\n <div class=\"bd-trustpanel-card-logos\">\n <slot name=\"${logoSlotName}\"></slot>\n </div>\n\n ${card.title\n ? html`<bd-h as=\"h4\" class=\"bd-trustpanel-card-title\">${card.title}</bd-h>`\n : nothing}\n\n ${card.description\n ? html`<bd-p variant=\"regular\" class=\"bd-trustpanel-card-description\">${card.description}</bd-p>`\n : nothing}\n\n ${card.linkLabel\n ? html`\n <a class=\"bd-trustpanel-card-link\" href=${card.linkHref || \"#\"}>\n ${card.linkLabel} <bd-arrow-right-icon size=\"xs\" aria-hidden=\"true\"></bd-arrow-right-icon>\n </a>\n `\n : nothing}\n </div>\n `;\n }\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-trustpanel-wrapper\">\n ${this.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"bd-trustpanel-eyebrow\"><slot name=\"eyebrow\">${this.eyebrow}</slot></bd-p>`\n : nothing}\n\n ${this.title\n ? html`<bd-h as=\"h2\" class=\"bd-trustpanel-title\"><slot name=\"title\">${this.title}</slot></bd-h>`\n : nothing}\n\n ${this.description\n ? html`\n <bd-p variant=\"regular\" class=\"bd-trustpanel-description\">\n <slot name=\"description\">${this.description}</slot>\n ${this.linkLabel\n ? html`\n <bd-link\n class=\"bd-trustpanel-inline-link\"\n href=${this.linkHref}\n underline\n font-size=\"inherit\"\n >\n ${this.linkLabel} <bd-arrow-right-icon size=\"xs\" aria-hidden=\"true\"></bd-arrow-right-icon>\n </bd-link>\n `\n : nothing}\n </bd-p>\n `\n : nothing}\n\n ${this.stats && this.stats.length\n ? html`\n <div class=\"bd-trustpanel-stats\">\n ${this.stats.map(\n (stat) => html`\n <div class=\"bd-trustpanel-stat\">\n <div class=\"bd-trustpanel-stat-divider\"></div>\n <div class=\"bd-trustpanel-stat-value\">${stat.value}</div>\n <div class=\"bd-trustpanel-stat-label\">${stat.label}</div>\n </div>\n `\n )}\n </div>\n `\n : nothing}\n\n ${this.cards && this.cards.length\n ? html`\n <div class=\"bd-trustpanel-cards\">\n ${this.cards.map((card, i) => this._renderCard(card, i))}\n </div>\n `\n : nothing}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-trust-panel\": TrustPanel;\n }\n}"],"mappings":"A,ofAwBA,IACMI,EADN,cACyBC,CAAW,C,8BAIxB,KAAA,QAAA,GAEF,KAAA,MAAA,GAEM,KAAA,YAAA,GAEF,KAAA,UAAA,GAED,KAAA,SAAA,IAEU,KAAA,MAAA,CAAC,EAED,KAAA,MAAA,CAAC,C,QAfN,KAAA,OAAA,CAACE,EAAQC,EAAaR,CAAa,C,CAiBnD,YAAY,EAAiB,EAAe,CAC1C,IAAMS,EAAe,QAAQC,EAAQ,EAAE,QACvC,MAAO,EAAI;;UAELC,EAAK,QACH,CAAI,8DAA8DA,EAAK,QAAQ,SAC/EC,EAAQ;;;wBAGIH,EAAa;;;UAG3BE,EAAK,MACH,CAAI,kDAAkDA,EAAK,MAAM,SACjEC,EAAQ;;UAEVD,EAAK,YACH,CAAI,kEAAkEA,EAAK,YAAY,SACvFC,EAAQ;;UAEVD,EAAK,UACH,CAAI;wDACwCA,EAAK,UAAY,IAAI;kBAC3DA,EAAK,UAAU;;cAGrBC,EAAQ;;KAGlB,CAEA,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,QACH,CAAI,8EAA8E,KAAK,QAAQ,gBAC/FA,EAAQ;;UAEV,KAAK,MACH,CAAI,gEAAgE,KAAK,MAAM,gBAC/EA,EAAQ;;UAEV,KAAK,YACH,CAAI;;2CAE2B,KAAK,YAAY;kBAC1C,KAAK,UACH,CAAI;;;+BAGO,KAAK,SAAS;;;;0BAInB,KAAK,UAAU;;sBAGrBA,EAAQ;;cAGhBA,EAAQ;;UAEV,KAAK,OAAS,KAAK,MAAM,OACvB,CAAI;;kBAEE,KAAK,MAAM,IACV,GAAS,CAAI;;;8DAG8BC,EAAK,MAAM;8DACXA,EAAK,MAAM;;mBAGzD,EAAE;;cAGND,EAAQ;;UAEV,KAAK,OAAS,KAAK,MAAM,OACvB,CAAI;;kBAEE,KAAK,MAAM,KAAK,EAAM,IAAM,KAAK,YAAYD,EAAMG,CAAC,CAAC,EAAE;;cAG7DF,EAAQ;;KAGlB,CACF,EAvGGX,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,CAAC,CAAA,EAAAX,EAAA,UAAA,YAAA,IAAA,EAAA,EAElDH,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAX,EAAA,UAAA,WAAA,IAAA,EAAA,EAEjDH,EAAA,CAAAc,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EAExBH,EAAA,CAAAc,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAX,EAAA,UAAA,QAAA,IAAA,EAAA,EAhB1B,EAAAH,EAAA,CAAAe,EAAc,gBAAgB,CAAA,EAAAZ,CAAA"}
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
/** Styled entirely from design tokens — see npm run lint:tokens. */
|
|
3
|
-
export const videoCSS = css `
|
|
4
|
-
:host { display: block; }
|
|
5
|
-
|
|
6
|
-
video {
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: auto;
|
|
10
|
-
/* A video has no shape until its poster or its metadata arrives, so it
|
|
11
|
-
was laid out at the 300x150 default and jumped when either landed.
|
|
12
|
-
16 / 9 holds the box until then; auto keeps the media's own ratio once
|
|
13
|
-
it is known. */
|
|
14
|
-
aspect-ratio: auto 16 / 9;
|
|
15
|
-
border-radius: var(--shape-radius-lg);
|
|
16
|
-
/* the frame around media, dark in every theme (dark mode decision 15) */
|
|
17
|
-
background: var(--color-surface-media);
|
|
18
|
-
}
|
|
19
|
-
`;
|
|
20
|
-
export default videoCSS;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}video{aspect-ratio:auto 16/9;border-radius:var(--shape-radius-lg);background:var(--color-surface-media);width:100%;height:auto;display:block}`;export{t as default,t as videoCSS};
|
|
21
2
|
//# sourceMappingURL=video.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.css.js","
|
|
1
|
+
{"version":3,"file":"video.css.js","names":["videoCSS"],"sources":["../../../../src/components/video/video.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/** Styled entirely from design tokens — see npm run lint:tokens. */\nexport const videoCSS = css`\n :host { display: block; }\n\n video {\n display: block;\n width: 100%;\n height: auto;\n /* A video has no shape until its poster or its metadata arrives, so it\n was laid out at the 300x150 default and jumped when either landed.\n 16 / 9 holds the box until then; auto keeps the media's own ratio once\n it is known. */\n aspect-ratio: auto 16 / 9;\n border-radius: var(--shape-radius-lg);\n /* the frame around media, dark in every theme (dark mode decision 15) */\n background: var(--color-surface-media);\n }\n`;\n\nexport default videoCSS;\n"],"mappings":"A,0BAGA,IAAaA,EAAW,CAAG,oK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
3
|
type Preload = 'none' | 'metadata' | 'auto';
|
|
4
4
|
export declare class BdVideo extends LitElement {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
@@ -1,96 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from 'lit';
|
|
8
|
-
import { property, state } from 'lit/decorators.js';
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import { videoCSS } from "./video.css.js";
|
|
13
|
-
let BdVideo = class BdVideo extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.src = '';
|
|
17
|
-
this.poster = '';
|
|
18
|
-
/* On unless told otherwise -- see the story's Notes. A default-on boolean
|
|
19
|
-
cannot be turned off by leaving the attribute out, so the attribute
|
|
20
|
-
reads controls="false" as off; the property takes false as it is. */
|
|
21
|
-
this.controls = true;
|
|
22
|
-
this.muted = false;
|
|
23
|
-
this.loop = false;
|
|
24
|
-
/* What to fetch before playback: metadata by default, so the frame and the
|
|
25
|
-
duration are there without the file; none for a video far down a page. */
|
|
26
|
-
this.preload = 'metadata';
|
|
27
|
-
this._media = [];
|
|
28
|
-
}
|
|
29
|
-
static { this.styles = [videoCSS]; }
|
|
30
|
-
/* WHY THE TRACKS ARE COPIED IN.
|
|
31
|
-
This rendered <video><slot></slot></video>, and a media element builds
|
|
32
|
-
its text tracks and sources only from real <track> and <source> children
|
|
33
|
-
-- a slot is neither, so the captions the story told readers to slot in
|
|
34
|
-
never reached the player. The <track> and <source> children are now
|
|
35
|
-
copied into the <video> itself, and copied again whenever they change. */
|
|
36
|
-
connectedCallback() {
|
|
37
|
-
super.connectedCallback();
|
|
38
|
-
this._collect();
|
|
39
|
-
this._observer = new MutationObserver(() => this._collect());
|
|
40
|
-
this._observer.observe(this, { childList: true, subtree: true, attributes: true });
|
|
41
|
-
}
|
|
42
|
-
disconnectedCallback() {
|
|
43
|
-
this._observer?.disconnect();
|
|
44
|
-
super.disconnectedCallback();
|
|
45
|
-
}
|
|
46
|
-
_collect() {
|
|
47
|
-
this._media = [...this.children]
|
|
48
|
-
.filter(el => el.localName === 'track' || el.localName === 'source')
|
|
49
|
-
.map(el => el.cloneNode(true));
|
|
50
|
-
}
|
|
51
|
-
/* muted is a property, not only an attribute. The attribute is read once,
|
|
52
|
-
when the media loads -- it is what lets a muted video autoplay -- and
|
|
53
|
-
changing it afterwards mutes nothing, so muted = true on a playing video
|
|
54
|
-
left the sound on. Both are set: the attribute for the load, the
|
|
55
|
-
property for every change after it. */
|
|
56
|
-
render() {
|
|
57
|
-
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 n from"./video.css.js";import{LitElement as r,html as i,nothing as a}from"lit";import{property as o,state as s}from"lit/decorators.js";var c=class extends r{constructor(...e){super(...e),this.src=``,this.poster=``,this.controls=!0,this.muted=!1,this.loop=!1,this.preload=`metadata`,this._media=[]}static{this.styles=[n]}connectedCallback(){super.connectedCallback(),this._collect(),this._observer=new MutationObserver(()=>this._collect()),this._observer.observe(this,{childList:!0,subtree:!0,attributes:!0})}disconnectedCallback(){this._observer?.disconnect(),super.disconnectedCallback()}_collect(){this._media=[...this.children].filter(e=>e.localName===`track`||e.localName===`source`).map(e=>e.cloneNode(!0))}render(){return i`
|
|
58
2
|
<video
|
|
59
|
-
src=${this.src
|
|
60
|
-
poster=${this.poster
|
|
3
|
+
src=${this.src||a}
|
|
4
|
+
poster=${this.poster||a}
|
|
61
5
|
?controls=${this.controls}
|
|
62
6
|
?muted=${this.muted}
|
|
63
7
|
.muted=${this.muted}
|
|
64
8
|
?loop=${this.loop}
|
|
65
|
-
preload=${this.preload
|
|
9
|
+
preload=${this.preload||a}
|
|
66
10
|
playsinline
|
|
67
11
|
>${this._media}</video>
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
__decorate([
|
|
72
|
-
property({ type: String })
|
|
73
|
-
], BdVideo.prototype, "src", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
property({ type: String })
|
|
76
|
-
], BdVideo.prototype, "poster", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
property({ converter: { fromAttribute: value => value !== 'false' } })
|
|
79
|
-
], BdVideo.prototype, "controls", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: Boolean })
|
|
82
|
-
], BdVideo.prototype, "muted", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: Boolean })
|
|
85
|
-
], BdVideo.prototype, "loop", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ type: String })
|
|
88
|
-
], BdVideo.prototype, "preload", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
state()
|
|
91
|
-
], BdVideo.prototype, "_media", void 0);
|
|
92
|
-
BdVideo = __decorate([
|
|
93
|
-
defineElement('bd-video')
|
|
94
|
-
], BdVideo);
|
|
95
|
-
export { BdVideo };
|
|
12
|
+
`}};t([o({type:String})],c.prototype,`src`,void 0),t([o({type:String})],c.prototype,`poster`,void 0),t([o({converter:{fromAttribute:e=>e!==`false`}})],c.prototype,`controls`,void 0),t([o({type:Boolean})],c.prototype,`muted`,void 0),t([o({type:Boolean})],c.prototype,`loop`,void 0),t([o({type:String})],c.prototype,`preload`,void 0),t([s()],c.prototype,`_media`,void 0),c=t([e(`bd-video`)],c);export{c as BdVideo};
|
|
96
13
|
//# sourceMappingURL=video.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.js","
|
|
1
|
+
{"version":3,"file":"video.js","names":["_decorate","__decorate","videoCSS","BdVideo","LitElement","_args","el","nothing","property","value","state","defineElement"],"sources":["../../../../src/components/video/video.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { defineElement } from '#shared/define-element.ts';\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport '#tokens/tokens.ts';\nimport { videoCSS } from './video.css.ts';\n\ntype Preload = 'none' | 'metadata' | 'auto';\n\n@defineElement('bd-video')\nexport class BdVideo extends LitElement {\n static styles = [videoCSS];\n\n @property({ type: String })\n src = '';\n @property({ type: String })\n poster = '';\n /* On unless told otherwise -- see the story's Notes. A default-on boolean\n cannot be turned off by leaving the attribute out, so the attribute\n reads controls=\"false\" as off; the property takes false as it is. */\n @property({ converter: { fromAttribute: value => value !== 'false' } })\n controls = true;\n @property({ type: Boolean })\n muted = false;\n @property({ type: Boolean })\n loop = false;\n /* What to fetch before playback: metadata by default, so the frame and the\n duration are there without the file; none for a video far down a page. */\n @property({ type: String })\n preload: Preload = 'metadata';\n @state()\n _media: Node[] = [];\n\n _observer?: MutationObserver;\n\n /* WHY THE TRACKS ARE COPIED IN.\n This rendered <video><slot></slot></video>, and a media element builds\n its text tracks and sources only from real <track> and <source> children\n -- a slot is neither, so the captions the story told readers to slot in\n never reached the player. The <track> and <source> children are now\n copied into the <video> itself, and copied again whenever they change. */\n connectedCallback() {\n super.connectedCallback();\n this._collect();\n this._observer = new MutationObserver(() => this._collect());\n this._observer.observe(this, { childList: true, subtree: true, attributes: true });\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n super.disconnectedCallback();\n }\n\n _collect() {\n this._media = [...this.children]\n .filter(el => el.localName === 'track' || el.localName === 'source')\n .map(el => el.cloneNode(true));\n }\n\n /* muted is a property, not only an attribute. The attribute is read once,\n when the media loads -- it is what lets a muted video autoplay -- and\n changing it afterwards mutes nothing, so muted = true on a playing video\n left the sound on. Both are set: the attribute for the load, the\n property for every change after it. */\n render() {\n return html`\n <video\n src=${this.src || nothing}\n poster=${this.poster || nothing}\n ?controls=${this.controls}\n ?muted=${this.muted}\n .muted=${this.muted}\n ?loop=${this.loop}\n preload=${this.preload || nothing}\n playsinline\n >${this._media}</video>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'bd-video': BdVideo;\n }\n}\n"],"mappings":"A,mTAUO,IAAMG,EAAN,cAAsBC,CAAW,C,8BAIhC,KAAA,IAAA,GAEG,KAAA,OAAA,GAKE,KAAA,SAAA,GAEH,KAAA,MAAA,GAED,KAAA,KAAA,GAIY,KAAA,QAAA,WAEF,KAAA,OAAA,CAAC,C,QApBF,KAAA,OAAA,CAACF,CAAQ,C,CA8BzB,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,SAAS,EACd,KAAK,UAAY,IAAI,qBAAuB,KAAK,SAAS,CAAC,EAC3D,KAAK,UAAU,QAAQ,KAAM,CAAE,UAAW,GAAM,QAAS,GAAM,WAAY,EAAK,CAAC,CACnF,CAEA,sBAAuB,CACrB,KAAK,WAAW,WAAW,EAC3B,MAAM,qBAAqB,CAC7B,CAEA,UAAW,CACT,KAAK,OAAS,CAAC,GAAG,KAAK,QAAQ,CAAC,CAC7B,OAAO,GAAMI,EAAG,YAAc,SAAWA,EAAG,YAAc,QAAQ,CAAC,CACnE,IAAI,GAAMA,EAAG,UAAU,EAAI,CAAC,CACjC,CAOA,QAAS,CACP,MAAO,EAAI;;cAED,KAAK,KAAOC,EAAQ;iBACjB,KAAK,QAAUA,EAAQ;oBACpB,KAAK,SAAS;iBACjB,KAAK,MAAM;iBACX,KAAK,MAAM;gBACZ,KAAK,KAAK;kBACR,KAAK,SAAWA,EAAQ;;SAEjC,KAAK,OAAO;KAEnB,CACF,EAjEGP,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,MAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,SAAA,IAAA,EAAA,EAKzBH,EAAA,CAAAQ,EAAS,CAAE,UAAW,CAAE,cAAe,GAASC,IAAU,OAAQ,CAAE,CAAC,CAAA,EAAAN,EAAA,UAAA,WAAA,IAAA,EAAA,EAErEH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAE1BH,EAAA,CAAAQ,EAAS,CAAE,KAAM,OAAQ,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAI1BH,EAAA,CAAAQ,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAM,CAAA,EAAAP,EAAA,UAAA,SAAA,IAAA,EAAA,EArBR,EAAAH,EAAA,CAAAW,EAAc,UAAU,CAAA,EAAAR,CAAA,E"}
|
|
@@ -1,168 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.bd-video-thumb {
|
|
9
|
-
position: relative;
|
|
10
|
-
display: block;
|
|
11
|
-
width: 100%;
|
|
12
|
-
padding: 0;
|
|
13
|
-
border: none;
|
|
14
|
-
background: none;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
border-radius: var(--shape-radius-lg);
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.bd-video-thumb img {
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: auto;
|
|
23
|
-
display: block;
|
|
24
|
-
border-radius: var(--shape-radius-lg);
|
|
25
|
-
transition: transform var(--transition-duration-slow) var(--transition-easing-ease);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.bd-video-thumb:hover img {
|
|
29
|
-
transform: scale(1.02);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.bd-video-play-btn {
|
|
33
|
-
/* Centred by inset and auto margins, so the hover can scale it without
|
|
34
|
-
restating a centring transform. */
|
|
35
|
-
position: absolute;
|
|
36
|
-
inset: 0;
|
|
37
|
-
margin: auto;
|
|
38
|
-
width: 64px;
|
|
39
|
-
height: 64px;
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
/* no token: drop-shadow() takes one shadow with no spread, and every
|
|
42
|
-
--shadow-* step is spelled with a spread (two layers from md up), so
|
|
43
|
-
none of them parses here. 30% black, not a card's 10%, because the
|
|
44
|
-
glyph sits on whatever frame the thumbnail shows -- mixed over the
|
|
45
|
-
palette like the close button's ground below, the same pixels as the
|
|
46
|
-
rgba it replaces. */
|
|
47
|
-
filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--color-neutral-1000) 30%, transparent));
|
|
48
|
-
transition: scale var(--transition-duration-slow) var(--transition-easing-ease);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.bd-video-thumb:hover .bd-video-play-btn {
|
|
52
|
-
scale: 1.1;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.bd-video-play-btn svg {
|
|
56
|
-
width: 64px;
|
|
57
|
-
height: 64px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.bd-video-player {
|
|
61
|
-
position: relative;
|
|
62
|
-
width: 100%;
|
|
63
|
-
aspect-ratio: 16 / 9;
|
|
64
|
-
border-radius: var(--shape-radius-lg);
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
/* The media frame, --color-surface-media: around a video, dark in every theme.
|
|
67
|
-
This read --color-surface-inverse until dark mode decision 15 -- the
|
|
68
|
-
polarity flip, which would turn a letterbox light in a dark theme. */
|
|
69
|
-
background: var(--color-surface-media);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.bd-video-player iframe,
|
|
73
|
-
.bd-video-player video {
|
|
74
|
-
position: absolute;
|
|
75
|
-
top: 0;
|
|
76
|
-
left: 0;
|
|
77
|
-
width: 100%;
|
|
78
|
-
height: 100%;
|
|
79
|
-
border: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.bd-video-close {
|
|
83
|
-
position: absolute;
|
|
84
|
-
top: var(--spacing-8);
|
|
85
|
-
right: var(--spacing-8);
|
|
86
|
-
width: 32px;
|
|
87
|
-
height: 32px;
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
border: none;
|
|
90
|
-
/* no role: NOT a scrim, though it looks like one next to the modal's. This
|
|
91
|
-
is the close button's own ground -- a 32px circle that has to carry a
|
|
92
|
-
white glyph over whatever frame the video happens to be showing, so the
|
|
93
|
-
darkness is doing contrast work for the icon rather than dimming content
|
|
94
|
-
behind a dialog. Two declarations, one control, no role.
|
|
95
|
-
.
|
|
96
|
-
Mixed over the palette rather than written as a raw rgba, for the same
|
|
97
|
-
reason as the modal's scrim: this follows --color-neutral-1000 where a
|
|
98
|
-
literal black follows nothing. Pixel-identical to the rgba it replaces. */
|
|
99
|
-
background: color-mix(in srgb, var(--color-neutral-1000) 60%, transparent);
|
|
100
|
-
color: var(--color-text-on-media);
|
|
101
|
-
font-size: 16px;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
display: flex;
|
|
104
|
-
align-items: center;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
/* Above the video surface it sits on; nothing else in this shadow root
|
|
107
|
-
is positioned. */
|
|
108
|
-
z-index: var(--z-raised);
|
|
109
|
-
transition: background var(--transition-duration-fast) var(--transition-easing-ease);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.bd-video-close:hover {
|
|
113
|
-
/* no role: the same control ground at 90% under the pointer -- it gets more
|
|
114
|
-
opaque rather than changing hue. Same reasoning as the rest state above,
|
|
115
|
-
and no role for the same reason. Pixel-identical to the rgba it
|
|
116
|
-
replaces. */
|
|
117
|
-
background: color-mix(in srgb, var(--color-neutral-1000) 90%, transparent);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* The one focus ring, on both controls. This sheet had no :focus-visible
|
|
121
|
-
rule at all, so the two buttons fell back to the browser's outline:
|
|
122
|
-
measured on the thumbnail with a real Tab, outline 1px auto
|
|
123
|
-
rgb(0, 95, 204) and box-shadow none, where every other control in this
|
|
124
|
-
package draws --focus-outline-primary. The two-colour ring also matters
|
|
125
|
-
more here than most places -- the close button sits on video, so a
|
|
126
|
-
single-colour outline has no guaranteed ground to contrast against, and
|
|
127
|
-
the white inner band is what makes it visible on any frame.
|
|
128
|
-
|
|
129
|
-
The ring follows each control's own shape: the thumbnail keeps its
|
|
130
|
-
--radius-lg corner and the close button is a circle. */
|
|
131
|
-
.bd-video-thumb:focus-visible,
|
|
132
|
-
.bd-video-close:focus-visible {
|
|
133
|
-
/* forced-colors mode does not paint box-shadow, so the ring
|
|
134
|
-
vanishes there; it does paint an outline, in a system colour. This one
|
|
135
|
-
is transparent everywhere else, and the offset lands it on the ring's
|
|
136
|
-
outer band. */
|
|
137
|
-
outline: var(--border-width-2) solid transparent;
|
|
138
|
-
outline-offset: var(--focus-outline-offset);
|
|
139
|
-
box-shadow: var(--focus-outline-primary);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/* The thumbnail lifts on hover and the play mark grows. Measured before
|
|
143
|
-
this: with prefers-reduced-motion: reduce both still reported a 0.3s
|
|
144
|
-
transition, so the scale ran for a reader who asked for less motion.
|
|
145
|
-
The transform is dropped as well as the transition -- a scale that
|
|
146
|
-
arrives instantly is still motion the reader did not ask for. */
|
|
147
|
-
@media (prefers-reduced-motion: reduce) {
|
|
148
|
-
.bd-video-thumb img,
|
|
149
|
-
.bd-video-play-btn,
|
|
150
|
-
.bd-video-close {
|
|
151
|
-
transition: none;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.bd-video-thumb:hover img {
|
|
155
|
-
transform: none;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/* scale, not transform. This used to restate a translate(-50%, -50%)
|
|
159
|
-
left from when the mark was centred by top/left 50%; it is centred by
|
|
160
|
-
inset and auto margins now, so the translate threw it up and left by
|
|
161
|
-
half its size on hover -- and the scale it was meant to cancel is
|
|
162
|
-
the individual property, which a transform does not reset. */
|
|
163
|
-
.bd-video-thumb:hover .bd-video-play-btn {
|
|
164
|
-
scale: none;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{width:100%;display:block}.bd-video-thumb{cursor:pointer;border-radius:var(--shape-radius-lg);background:0 0;border:none;width:100%;padding:0;display:block;position:relative;overflow:hidden}.bd-video-thumb img{border-radius:var(--shape-radius-lg);width:100%;height:auto;transition:transform var(--transition-duration-slow) var(--transition-easing-ease);display:block}.bd-video-thumb:hover img{transform:scale(1.02)}.bd-video-play-btn{pointer-events:none;width:64px;height:64px;filter:drop-shadow(0 4px 12px color-mix(in srgb, var(--color-neutral-1000) 30%, transparent));transition:scale var(--transition-duration-slow) var(--transition-easing-ease);margin:auto;position:absolute;inset:0}.bd-video-thumb:hover .bd-video-play-btn{scale:1.1}.bd-video-play-btn svg{width:64px;height:64px}.bd-video-player{aspect-ratio:16/9;border-radius:var(--shape-radius-lg);background:var(--color-surface-media);width:100%;position:relative;overflow:hidden}.bd-video-player iframe,.bd-video-player video{border:none;width:100%;height:100%;position:absolute;top:0;left:0}.bd-video-close{top:var(--spacing-8);right:var(--spacing-8);background:color-mix(in srgb, var(--color-neutral-1000) 60%, transparent);width:32px;height:32px;color:var(--color-text-on-media);cursor:pointer;z-index:var(--z-raised);transition:background var(--transition-duration-fast) var(--transition-easing-ease);border:none;border-radius:50%;justify-content:center;align-items:center;font-size:16px;display:flex;position:absolute}.bd-video-close:hover{background:color-mix(in srgb, var(--color-neutral-1000) 90%, transparent)}.bd-video-thumb:focus-visible,.bd-video-close:focus-visible{outline:var(--border-width-2) solid transparent;outline-offset:var(--focus-outline-offset);box-shadow:var(--focus-outline-primary)}@media (prefers-reduced-motion:reduce){.bd-video-thumb img,.bd-video-play-btn,.bd-video-close{transition:none}.bd-video-thumb:hover img{transform:none}.bd-video-thumb:hover .bd-video-play-btn{scale:none}}`;export{t as default};
|
|
168
2
|
//# sourceMappingURL=video-player.css.js.map
|