@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,55 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
height: 100%;
|
|
6
|
-
font-family: var(--typography-fontFamily-sans);
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.bd-review-card {
|
|
11
|
-
background: var(--status-brand-surface);
|
|
12
|
-
border-radius: var(--shape-radius-3xl);
|
|
13
|
-
padding: var(--spacing-28);
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
height: 100%;
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([variant="neutral"]) .bd-review-card {
|
|
21
|
-
background: var(--color-surface-container);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.bd-review-mark {
|
|
25
|
-
display: block;
|
|
26
|
-
color: var(--color-text-brand);
|
|
27
|
-
margin-bottom: var(--spacing-8);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.bd-review-quote {
|
|
31
|
-
--bd-paragraph-color: var(--color-text-primary);
|
|
32
|
-
margin-bottom: var(--spacing-16);
|
|
33
|
-
flex-grow: 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.bd-review-meta {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.bd-review-source {
|
|
42
|
-
--bd-paragraph-color: var(--color-text-primary);
|
|
43
|
-
margin: 0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.bd-review-date {
|
|
47
|
-
color: var(--color-text-muted);
|
|
48
|
-
font-family: var(--typography-body-small-fontFamily);
|
|
49
|
-
font-size: var(--typography-body-small-fontSize);
|
|
50
|
-
font-weight: var(--typography-body-small-fontWeight);
|
|
51
|
-
line-height: var(--typography-body-small-lineHeight);
|
|
52
|
-
letter-spacing: var(--typography-body-small-letterSpacing);
|
|
53
|
-
}
|
|
54
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{height:100%;font-family:var(--typography-fontFamily-sans);box-sizing:border-box;display:block}.bd-review-card{background:var(--status-brand-surface);border-radius:var(--shape-radius-3xl);padding:var(--spacing-28);box-sizing:border-box;flex-direction:column;height:100%;display:flex}:host([variant=neutral]) .bd-review-card{background:var(--color-surface-container)}.bd-review-mark{color:var(--color-text-brand);margin-bottom:var(--spacing-8);display:block}.bd-review-quote{--bd-paragraph-color:var(--color-text-primary);margin-bottom:var(--spacing-16);flex-grow:1}.bd-review-meta{flex-direction:column;display:flex}.bd-review-source{--bd-paragraph-color:var(--color-text-primary);margin:0}.bd-review-date{color:var(--color-text-muted);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)}`;export{t as default};
|
|
55
2
|
//# sourceMappingURL=review.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.css.js","
|
|
1
|
+
{"version":3,"file":"review.css.js","names":["review_css_default"],"sources":["../../../../src/components/review/review.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n height: 100%;\n font-family: var(--typography-fontFamily-sans);\n box-sizing: border-box;\n }\n\n .bd-review-card {\n background: var(--status-brand-surface);\n border-radius: var(--shape-radius-3xl);\n padding: var(--spacing-28);\n box-sizing: border-box;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n :host([variant=\"neutral\"]) .bd-review-card {\n background: var(--color-surface-container);\n }\n\n .bd-review-mark {\n display: block;\n color: var(--color-text-brand);\n margin-bottom: var(--spacing-8);\n }\n\n .bd-review-quote {\n --bd-paragraph-color: var(--color-text-primary);\n margin-bottom: var(--spacing-16);\n flex-grow: 1;\n }\n\n .bd-review-meta {\n display: flex;\n flex-direction: column;\n }\n\n .bd-review-source {\n --bd-paragraph-color: var(--color-text-primary);\n margin: 0;\n }\n\n .bd-review-date {\n color: var(--color-text-muted);\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`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,8+B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../icons/quote-icon.
|
|
3
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../icons/quote-icon.js";
|
|
3
|
+
import "../paragraph/paragraph.js";
|
|
4
4
|
type Variant = "tint" | "neutral";
|
|
5
5
|
/**
|
|
6
6
|
* A single testimonial/review card. Everything is slotted rather than
|
|
@@ -1,53 +1,4 @@
|
|
|
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 } 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 "../icons/quote-icon.js";
|
|
12
|
-
import "../paragraph/paragraph.js";
|
|
13
|
-
import reviewCSS from "./review.css.js";
|
|
14
|
-
/**
|
|
15
|
-
* A single testimonial/review card. Everything is slotted rather than
|
|
16
|
-
* passed as props, so callers can put arbitrary markup (a bd-p, a link,
|
|
17
|
-
* bold text) in any of the three slots:
|
|
18
|
-
*
|
|
19
|
-
* <bd-review variant="tint">
|
|
20
|
-
* <span slot="quote">If you're looking to buy a security suite...</span>
|
|
21
|
-
* <span slot="source">PCMag</span>
|
|
22
|
-
* <span slot="date">February 3, 2026</span>
|
|
23
|
-
* </bd-review>
|
|
24
|
-
*
|
|
25
|
-
* `variant` is the only prop, since it's an appearance switch (background
|
|
26
|
-
* colour), not content:
|
|
27
|
-
* "tint" — the brand's lightest wash (--status-brand-surface), so it
|
|
28
|
-
* follows the business line's brand
|
|
29
|
-
* "neutral" — a container ground (--color-surface-container)
|
|
30
|
-
*/
|
|
31
|
-
let BdReview = class BdReview extends LitElement {
|
|
32
|
-
static { this.styles = [tokens, reviewCSS]; }
|
|
33
|
-
constructor() {
|
|
34
|
-
super();
|
|
35
|
-
this.variant = "tint"; // "tint" | "neutral"
|
|
36
|
-
this._internals = this.attachInternals();
|
|
37
|
-
}
|
|
38
|
-
/* In a bd-review-grid, a review is one item of the grid's list -- a list
|
|
39
|
-
whose children are not list items is announced as an empty list, or not
|
|
40
|
-
at all (axe: aria-required-children). The role is the element's own,
|
|
41
|
-
through ElementInternals, as bd-breadcrumb-item's is: the grid used to
|
|
42
|
-
write role="listitem" onto the page's markup, where it stayed after the
|
|
43
|
-
review left the list. A role the page writes on the element still wins,
|
|
44
|
-
and outside a grid a review is no item of anything. */
|
|
45
|
-
connectedCallback() {
|
|
46
|
-
super.connectedCallback();
|
|
47
|
-
this._internals.role = this.parentElement?.localName === "bd-review-grid" ? "listitem" : null;
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
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"../paragraph/paragraph.js";import"../icons/quote-icon.js";import r from"./review.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends i{static{this.styles=[t,r]}constructor(){super(),this.variant=`tint`,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this._internals.role=this.parentElement?.localName===`bd-review-grid`?`listitem`:null}render(){return a`
|
|
51
2
|
<div class="bd-review-card">
|
|
52
3
|
<bd-quote-icon class="bd-review-mark" size="xl"></bd-quote-icon>
|
|
53
4
|
|
|
@@ -60,13 +11,5 @@ let BdReview = class BdReview extends LitElement {
|
|
|
60
11
|
<span class="bd-review-date"><slot name="date"></slot></span>
|
|
61
12
|
</div>
|
|
62
13
|
</div>
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
__decorate([
|
|
67
|
-
property({ type: String, reflect: true })
|
|
68
|
-
], BdReview.prototype, "variant", void 0);
|
|
69
|
-
BdReview = __decorate([
|
|
70
|
-
defineElement("bd-review")
|
|
71
|
-
], BdReview);
|
|
14
|
+
`}};n([o({type:String,reflect:!0})],s.prototype,`variant`,void 0),s=n([e(`bd-review`)],s);
|
|
72
15
|
//# sourceMappingURL=review.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.js","
|
|
1
|
+
{"version":3,"file":"review.js","names":["reviewCSS","_decorate","__decorate","review_css_default","BdReview","LitElement","tokens","property","defineElement"],"sources":["../../../../src/components/review/review.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/icons/quote-icon.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport reviewCSS from \"./review.css.ts\";\n\ntype Variant = \"tint\" | \"neutral\";\n\n/**\n * A single testimonial/review card. Everything is slotted rather than\n * passed as props, so callers can put arbitrary markup (a bd-p, a link,\n * bold text) in any of the three slots:\n *\n * <bd-review variant=\"tint\">\n * <span slot=\"quote\">If you're looking to buy a security suite...</span>\n * <span slot=\"source\">PCMag</span>\n * <span slot=\"date\">February 3, 2026</span>\n * </bd-review>\n *\n * `variant` is the only prop, since it's an appearance switch (background\n * colour), not content:\n * \"tint\" — the brand's lightest wash (--status-brand-surface), so it\n * follows the business line's brand\n * \"neutral\" — a container ground (--color-surface-container)\n */\n\n@defineElement(\"bd-review\")\nclass BdReview extends LitElement {\n static styles = [tokens, reviewCSS];\n\n @property({ type: String, reflect: true })\n variant: Variant = \"tint\"; // \"tint\" | \"neutral\"\n\n _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n /* In a bd-review-grid, a review is one item of the grid's list -- a list\n whose children are not list items is announced as an empty list, or not\n at all (axe: aria-required-children). The role is the element's own,\n through ElementInternals, as bd-breadcrumb-item's is: the grid used to\n write role=\"listitem\" onto the page's markup, where it stayed after the\n review left the list. A role the page writes on the element still wins,\n and outside a grid a review is no item of anything. */\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = this.parentElement?.localName === \"bd-review-grid\" ? \"listitem\" : null;\n }\n\n render() {\n return html`\n <div class=\"bd-review-card\">\n <bd-quote-icon class=\"bd-review-mark\" size=\"xl\"></bd-quote-icon>\n\n <bd-p variant=\"regular\" class=\"bd-review-quote\">\n <slot name=\"quote\"></slot>\n </bd-p>\n\n <div class=\"bd-review-meta\">\n <bd-p variant=\"small\" font-weight=\"bold\" class=\"bd-review-source\"><slot name=\"source\"></slot></bd-p>\n <span class=\"bd-review-date\"><slot name=\"date\"></slot></span>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-review\": BdReview;\n }\n}"],"mappings":"A,8WA4BA,IACMI,EADN,cACuBC,CAAW,C,OAChB,KAAA,OAAA,CAACC,EAAQN,CAAS,C,CAOlC,aAAc,CACZ,MAAM,EALW,KAAA,QAAA,OAMjB,KAAK,WAAa,KAAK,gBAAgB,CACzC,CASA,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,WAAW,KAAO,KAAK,eAAe,YAAc,iBAAmB,WAAa,IAC3F,CAEA,QAAS,CACP,MAAO,EAAI;;;;;;;;;;;;;KAcb,CACF,EAtCGC,EAAA,CAAAM,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAH,EAAA,UAAA,UAAA,IAAA,EAAA,EAJ1C,EAAAH,EAAA,CAAAO,EAAc,WAAW,CAAA,EAAAJ,CAAA"}
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { above } from "../shared/token-scales.js";
|
|
3
|
-
/* One distance, and twice it. Every section of the Figma homepage frames sits
|
|
4
|
-
the same inset in from its top and its bottom -- 24 on the 390 phone frame,
|
|
5
|
-
32 on the 768 tablet and the 1440 desktop -- so two sections stand twice
|
|
6
|
-
that apart, 48 and 64. The blocks inside a section take the same doubled
|
|
7
|
-
gap, so two blocks of one section sit as far apart as two sections do, and
|
|
8
|
-
one rhythm runs down the whole page.
|
|
9
|
-
|
|
10
|
-
Vertical only. The page column is each module's own (ensembleCSS), so a
|
|
11
|
-
section never sets a width, an inline padding or a ground. */
|
|
12
|
-
export default css `
|
|
13
|
-
:host {
|
|
14
|
-
--bd-section-padding: var(--spacing-24);
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: calc(var(--bd-section-padding) * 2);
|
|
19
|
-
padding-block: var(--bd-section-padding);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@media ${unsafeCSS(above("md"))} {
|
|
23
|
-
:host {
|
|
24
|
-
--bd-section-padding: var(--spacing-32);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* An edge is on or off, never another size: the block meets its neighbour
|
|
29
|
-
there, and keeps the inset everywhere else. */
|
|
30
|
-
:host([no-padding-top]) {
|
|
31
|
-
padding-block-start: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:host([no-padding-bottom]) {
|
|
35
|
-
padding-block-end: 0;
|
|
36
|
-
}
|
|
37
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{--bd-section-padding:var(--spacing-24);gap:calc(var(--bd-section-padding) * 2);padding-block:var(--bd-section-padding);flex-direction:column;display:flex}@media (width>=768px){:host{--bd-section-padding:var(--spacing-32)}}:host([no-padding-top]){padding-block-start:0}:host([no-padding-bottom]){padding-block-end:0}`;export{t as default};
|
|
38
2
|
//# sourceMappingURL=section.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.css.js","
|
|
1
|
+
{"version":3,"file":"section.css.js","names":["section_css_default"],"sources":["../../../../src/components/section/section.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* One distance, and twice it. Every section of the Figma homepage frames sits\n the same inset in from its top and its bottom -- 24 on the 390 phone frame,\n 32 on the 768 tablet and the 1440 desktop -- so two sections stand twice\n that apart, 48 and 64. The blocks inside a section take the same doubled\n gap, so two blocks of one section sit as far apart as two sections do, and\n one rhythm runs down the whole page.\n\n Vertical only. The page column is each module's own (ensembleCSS), so a\n section never sets a width, an inline padding or a ground. */\nexport default css`\n :host {\n --bd-section-padding: var(--spacing-24);\n\n display: flex;\n flex-direction: column;\n gap: calc(var(--bd-section-padding) * 2);\n padding-block: var(--bd-section-padding);\n }\n\n @media ${unsafeCSS(above(\"md\"))} {\n :host {\n --bd-section-padding: var(--spacing-32);\n }\n }\n\n /* An edge is on or off, never another size: the block meets its neighbour\n there, and keeps the inset everywhere else. */\n :host([no-padding-top]) {\n padding-block-start: 0;\n }\n\n :host([no-padding-bottom]) {\n padding-block-end: 0;\n }\n`;\n"],"mappings":"A,4DAYA,IAAAA,EAAe,CAAG,oU"}
|
|
@@ -1,51 +1,2 @@
|
|
|
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 } from "lit";
|
|
8
|
-
import { property } 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 sectionCSS from "./section.css.js";
|
|
13
|
-
/**
|
|
14
|
-
* A page section: the vertical rhythm a page is built on, and nothing else.
|
|
15
|
-
* It pads its top and bottom by the section inset (24 on a phone, 32 from md)
|
|
16
|
-
* and stacks its blocks twice that apart, so every section and every block on
|
|
17
|
-
* a page sits on one distance. The inset is not a choice a page makes: it can
|
|
18
|
-
* only be on or off at either edge, never a different size, so the rhythm
|
|
19
|
-
* cannot drift.
|
|
20
|
-
*
|
|
21
|
-
* `no-padding-top` and `no-padding-bottom` turn one edge off, for a block that
|
|
22
|
-
* must meet what is above or below it -- the hero, whose band starts under the
|
|
23
|
-
* site menu, takes `no-padding-top`. The block keeps the rest of the rhythm:
|
|
24
|
-
* the hero still stands twice the inset clear of the section after it.
|
|
25
|
-
*
|
|
26
|
-
* It sets no width and no ground. The blocks inside bring their own page
|
|
27
|
-
* column; a full-bleed band is a block like any other, so it stands twice the
|
|
28
|
-
* inset clear of its neighbours. It carries no semantics either -- a page that
|
|
29
|
-
* wants a landmark puts one inside.
|
|
30
|
-
*/
|
|
31
|
-
let BdSection = class BdSection extends LitElement {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(...arguments);
|
|
34
|
-
this.noPaddingTop = false;
|
|
35
|
-
this.noPaddingBottom = false;
|
|
36
|
-
}
|
|
37
|
-
static { this.styles = [sectionCSS]; }
|
|
38
|
-
render() {
|
|
39
|
-
return html `<slot></slot>`;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
__decorate([
|
|
43
|
-
property({ type: Boolean, reflect: true, attribute: "no-padding-top" })
|
|
44
|
-
], BdSection.prototype, "noPaddingTop", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
property({ type: Boolean, reflect: true, attribute: "no-padding-bottom" })
|
|
47
|
-
], BdSection.prototype, "noPaddingBottom", void 0);
|
|
48
|
-
BdSection = __decorate([
|
|
49
|
-
defineElement("bd-section")
|
|
50
|
-
], BdSection);
|
|
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"./section.css.js";import{LitElement as r,html as i}from"lit";import{property as a}from"lit/decorators.js";var o=class extends r{constructor(...e){super(...e),this.noPaddingTop=!1,this.noPaddingBottom=!1}static{this.styles=[n]}render(){return i`<slot></slot>`}};t([a({type:Boolean,reflect:!0,attribute:`no-padding-top`})],o.prototype,`noPaddingTop`,void 0),t([a({type:Boolean,reflect:!0,attribute:`no-padding-bottom`})],o.prototype,`noPaddingBottom`,void 0),o=t([e(`bd-section`)],o);
|
|
51
2
|
//# sourceMappingURL=section.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.js","
|
|
1
|
+
{"version":3,"file":"section.js","names":["sectionCSS","_decorate","__decorate","section_css_default","BdSection","LitElement","_args","property","defineElement"],"sources":["../../../../src/components/section/section.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport sectionCSS from \"./section.css.ts\";\n\n/**\n * A page section: the vertical rhythm a page is built on, and nothing else.\n * It pads its top and bottom by the section inset (24 on a phone, 32 from md)\n * and stacks its blocks twice that apart, so every section and every block on\n * a page sits on one distance. The inset is not a choice a page makes: it can\n * only be on or off at either edge, never a different size, so the rhythm\n * cannot drift.\n *\n * `no-padding-top` and `no-padding-bottom` turn one edge off, for a block that\n * must meet what is above or below it -- the hero, whose band starts under the\n * site menu, takes `no-padding-top`. The block keeps the rest of the rhythm:\n * the hero still stands twice the inset clear of the section after it.\n *\n * It sets no width and no ground. The blocks inside bring their own page\n * column; a full-bleed band is a block like any other, so it stands twice the\n * inset clear of its neighbours. It carries no semantics either -- a page that\n * wants a landmark puts one inside.\n */\n@defineElement(\"bd-section\")\nclass BdSection extends LitElement {\n @property({ type: Boolean, reflect: true, attribute: \"no-padding-top\" })\n noPaddingTop = false;\n @property({ type: Boolean, reflect: true, attribute: \"no-padding-bottom\" })\n noPaddingBottom = false;\n\n static styles = [sectionCSS];\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section\": BdSection;\n }\n}\n"],"mappings":"A,6RAyBA,IACMI,EADN,cACwBC,CAAW,C,8BAElB,KAAA,aAAA,GAEG,KAAA,gBAAA,E,QAEF,KAAA,OAAA,CAACL,CAAU,C,CAE3B,QAAS,CACP,MAAO,EAAI,eACb,CACF,EAVGC,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,gBAAiB,CAAC,CAAA,EAAAH,EAAA,UAAA,eAAA,IAAA,EAAA,EAEtEH,EAAA,CAAAM,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,mBAAoB,CAAC,CAAA,EAAAH,EAAA,UAAA,kBAAA,IAAA,EAAA,EAJ3E,EAAAH,EAAA,CAAAO,EAAc,YAAY,CAAA,EAAAJ,CAAA"}
|
|
@@ -1,100 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { above } from "../shared/token-scales.js";
|
|
3
|
-
/* Mobile first. Everything stacks 16 apart until lg, where "split" sets the
|
|
4
|
-
headline and the lead side by side, 24 apart, under the eyebrow -- the
|
|
5
|
-
steps the Figma Section header draws at 390, 768 and 1440. */
|
|
6
|
-
export const sectionHeaderCSS = css `
|
|
7
|
-
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.root {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: var(--spacing-16);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* bd-p closes every paragraph with a flow margin inside its own shadow
|
|
18
|
-
root; the gap above is this header's spacing, so the switch turns it off */
|
|
19
|
-
.eyebrow {
|
|
20
|
-
--bd-paragraph-margin-bottom: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.row {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: var(--spacing-16);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.heading {
|
|
30
|
-
margin: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.lead[hidden] {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* The lead is body-regular below lg and body-large from lg, the two roles
|
|
38
|
-
the design binds. Set on the wrapper so slotted copy inherits it: the
|
|
39
|
-
page writes the words and this header owns their type. */
|
|
40
|
-
.lead {
|
|
41
|
-
font-family: var(--typography-body-regular-fontFamily);
|
|
42
|
-
font-size: var(--typography-body-regular-fontSize);
|
|
43
|
-
font-weight: var(--typography-body-regular-fontWeight);
|
|
44
|
-
line-height: var(--typography-body-regular-lineHeight);
|
|
45
|
-
letter-spacing: var(--typography-body-regular-letterSpacing);
|
|
46
|
-
color: var(--color-text-primary);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
::slotted(*) {
|
|
50
|
-
margin: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host([layout="centered"]) .root {
|
|
54
|
-
align-items: center;
|
|
55
|
-
text-align: center;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([layout="centered"]) .row {
|
|
59
|
-
align-items: center;
|
|
60
|
-
gap: var(--spacing-24);
|
|
61
|
-
/* not the column: the centred measure the design sets on Proven, a
|
|
62
|
-
heading and lead deliberately narrower than the page.
|
|
63
|
-
no token: 588 is a measure, and the dimension scale stops at 64 */
|
|
64
|
-
max-width: 588px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media ${unsafeCSS(above("lg"))} {
|
|
68
|
-
.lead {
|
|
69
|
-
font-size: var(--typography-body-large-fontSize);
|
|
70
|
-
font-weight: var(--typography-body-large-fontWeight);
|
|
71
|
-
line-height: var(--typography-body-large-lineHeight);
|
|
72
|
-
letter-spacing: var(--typography-body-large-letterSpacing);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:host([layout="split"]) .row {
|
|
76
|
-
flex-direction: row;
|
|
77
|
-
align-items: flex-start;
|
|
78
|
-
gap: var(--spacing-24);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* two equal halves, so the lead starts on the page's centre line */
|
|
82
|
-
:host([layout="split"]) .heading,
|
|
83
|
-
:host([layout="split"]) .lead {
|
|
84
|
-
flex: 1 1 0;
|
|
85
|
-
min-width: 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
90
|
-
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
91
|
-
arrives as a newline in the property). Text only: nothing here renders
|
|
92
|
-
HTML. The rule sits on a span around the text, not on bd-h or bd-p,
|
|
93
|
-
whose own templates hold newlines that would break too, and the lead's
|
|
94
|
-
span is the slot's fallback: slotted copy is markup, which brings its
|
|
95
|
-
own <br>, and its source newlines stay spaces. */
|
|
96
|
-
.text {
|
|
97
|
-
white-space: pre-line;
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{display:block}.root{gap:var(--spacing-16);flex-direction:column;display:flex}.eyebrow{--bd-paragraph-margin-bottom:0}.row{gap:var(--spacing-16);flex-direction:column;display:flex}.heading{margin:0}.lead[hidden]{display:none}.lead{font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-text-primary)}::slotted(*){margin:0}:host([layout=centered]) .root{text-align:center;align-items:center}:host([layout=centered]) .row{align-items:center;gap:var(--spacing-24);max-width:588px}@media (width>=992px){.lead{font-size:var(--typography-body-large-fontSize);font-weight:var(--typography-body-large-fontWeight);line-height:var(--typography-body-large-lineHeight);letter-spacing:var(--typography-body-large-letterSpacing)}:host([layout=split]) .row{align-items:flex-start;gap:var(--spacing-24);flex-direction:row}:host([layout=split]) .heading,:host([layout=split]) .lead{flex:1 1 0;min-width:0}}.text{white-space:pre-line}`;export{t as sectionHeaderCSS};
|
|
100
2
|
//# sourceMappingURL=section-header.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-header.css.js","
|
|
1
|
+
{"version":3,"file":"section-header.css.js","names":["sectionHeaderCSS"],"sources":["../../../../src/components/section-header/section-header.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { above } from \"#shared/token-scales.ts\";\n\n/* Mobile first. Everything stacks 16 apart until lg, where \"split\" sets the\n headline and the lead side by side, 24 apart, under the eyebrow -- the\n steps the Figma Section header draws at 390, 768 and 1440. */\nexport const sectionHeaderCSS = css`\n :host {\n display: block;\n }\n\n .root {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n /* bd-p closes every paragraph with a flow margin inside its own shadow\n root; the gap above is this header's spacing, so the switch turns it off */\n .eyebrow {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .row {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n .heading {\n margin: 0;\n }\n\n .lead[hidden] {\n display: none;\n }\n\n /* The lead is body-regular below lg and body-large from lg, the two roles\n the design binds. Set on the wrapper so slotted copy inherits it: the\n page writes the words and this header owns their type. */\n .lead {\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-text-primary);\n }\n\n ::slotted(*) {\n margin: 0;\n }\n\n :host([layout=\"centered\"]) .root {\n align-items: center;\n text-align: center;\n }\n\n :host([layout=\"centered\"]) .row {\n align-items: center;\n gap: var(--spacing-24);\n /* not the column: the centred measure the design sets on Proven, a\n heading and lead deliberately narrower than the page.\n no token: 588 is a measure, and the dimension scale stops at 64 */\n max-width: 588px;\n }\n\n @media ${unsafeCSS(above(\"lg\"))} {\n .lead {\n font-size: var(--typography-body-large-fontSize);\n font-weight: var(--typography-body-large-fontWeight);\n line-height: var(--typography-body-large-lineHeight);\n letter-spacing: var(--typography-body-large-letterSpacing);\n }\n\n :host([layout=\"split\"]) .row {\n flex-direction: row;\n align-items: flex-start;\n gap: var(--spacing-24);\n }\n\n /* two equal halves, so the lead starts on the page's centre line */\n :host([layout=\"split\"]) .heading,\n :host([layout=\"split\"]) .lead {\n flex: 1 1 0;\n min-width: 0;\n }\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. The rule sits on a span around the text, not on bd-h or bd-p,\n whose own templates hold newlines that would break too, and the lead's\n span is the slot's fallback: slotted copy is markup, which brings its\n own <br>, and its source newlines stay spaces. */\n .text {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,4DAMA,IAAaA,EAAmB,CAAG,uoC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, type PropertyValues } from "lit";
|
|
2
|
-
import "../heading/heading.
|
|
3
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../heading/heading.js";
|
|
3
|
+
import "../paragraph/paragraph.js";
|
|
4
4
|
declare const LAYOUTS: readonly ["stacked", "split", "centered"];
|
|
5
5
|
type Layout = typeof LAYOUTS[number];
|
|
6
6
|
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
@@ -1,93 +1,12 @@
|
|
|
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
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../heading/heading.js";
|
|
12
|
-
import "../paragraph/paragraph.js";
|
|
13
|
-
import { resolveEnum } from "../shared/prop-vocabulary.js";
|
|
14
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
15
|
-
import { sectionHeaderCSS } from "./section-header.css.js";
|
|
16
|
-
const LAYOUTS = ["stacked", "split", "centered"];
|
|
17
|
-
/**
|
|
18
|
-
* The header that opens a page section: an eyebrow, the section's h2 and a
|
|
19
|
-
* lead. The homepage opens five sections with it -- AI, Why trust, Proven,
|
|
20
|
-
* Insights and the solution splitter -- where each module used to spell its
|
|
21
|
-
* own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the foundation
|
|
22
|
-
* Figma file as Section header.
|
|
23
|
-
*
|
|
24
|
-
* layout="split" puts the headline and lead side by side from lg; below lg,
|
|
25
|
-
* and in "stacked", everything stacks. layout="centered" centres the three on
|
|
26
|
-
* a narrower measure. Leave eyebrow and lead out for a title-only header.
|
|
27
|
-
*
|
|
28
|
-
* The lead is an attribute for plain copy, or the `lead` slot when it carries
|
|
29
|
-
* a link -- `<bd-link inline underline>`, since colour alone measures 2.91:1
|
|
30
|
-
* against the body text and fails WCAG 1.4.1. Slotted copy takes the lead's
|
|
31
|
-
* role from here, so the page writes words, not typography.
|
|
32
|
-
*/
|
|
33
|
-
let SectionHeader = class SectionHeader extends LitElement {
|
|
34
|
-
constructor() {
|
|
35
|
-
super(...arguments);
|
|
36
|
-
this.eyebrow = "";
|
|
37
|
-
this.heading = "";
|
|
38
|
-
this.lead = "";
|
|
39
|
-
// a page section's title: the outline is the page's, so it can say otherwise
|
|
40
|
-
this.as = "h2";
|
|
41
|
-
this.layout = "stacked";
|
|
42
|
-
this._hasLead = false;
|
|
43
|
-
}
|
|
44
|
-
static { this.styles = [tokens, ensembleCSS, sectionHeaderCSS]; }
|
|
45
|
-
willUpdate(changed) {
|
|
46
|
-
if (changed.has("layout")) {
|
|
47
|
-
this.layout = resolveEnum(this.layout, { allowed: LAYOUTS, fallback: "stacked" });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
_onLeadSlot(e) {
|
|
51
|
-
this._hasLead = e.target.assignedNodes({ flatten: true })
|
|
52
|
-
.some(n => n.nodeType === Node.ELEMENT_NODE || n.textContent.trim());
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
const showLead = this.lead || this._hasLead;
|
|
56
|
-
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{resolveEnum as r}from"../shared/prop-vocabulary.js";import"../paragraph/paragraph.js";import{ensembleCSS as i}from"../shared/ensemble.css.js";import{sectionHeaderCSS as a}from"./section-header.css.js";import{LitElement as o,html as s,nothing as c}from"lit";import{property as l,state as u}from"lit/decorators.js";var d=[`stacked`,`split`,`centered`],f=class extends o{constructor(...e){super(...e),this.eyebrow=``,this.heading=``,this.lead=``,this.as=`h2`,this.layout=`stacked`,this._hasLead=!1}static{this.styles=[t,i,a]}willUpdate(e){e.has(`layout`)&&(this.layout=r(this.layout,{allowed:d,fallback:`stacked`}))}_onLeadSlot(e){this._hasLead=e.target.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.textContent.trim())}render(){let e=this.lead||this._hasLead;return s`
|
|
57
2
|
<header class="bd-ensemble root">
|
|
58
|
-
${this.eyebrow
|
|
59
|
-
? html `<bd-p variant="eyebrow" class="eyebrow"><span class="text">${this.eyebrow}</span></bd-p>`
|
|
60
|
-
: nothing}
|
|
3
|
+
${this.eyebrow?s`<bd-p variant="eyebrow" class="eyebrow"><span class="text">${this.eyebrow}</span></bd-p>`:c}
|
|
61
4
|
<div class="row">
|
|
62
5
|
<bd-h as="${this.as}" visual-level="h2" class="heading"><span class="text">${this.heading}</span></bd-h>
|
|
63
|
-
<div class="lead" ?hidden=${!
|
|
6
|
+
<div class="lead" ?hidden=${!e}>
|
|
64
7
|
<slot name="lead" @slotchange=${this._onLeadSlot}><span class="text">${this.lead}</span></slot>
|
|
65
8
|
</div>
|
|
66
9
|
</div>
|
|
67
10
|
</header>
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
__decorate([
|
|
72
|
-
property({ type: String })
|
|
73
|
-
], SectionHeader.prototype, "eyebrow", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
property({ type: String })
|
|
76
|
-
], SectionHeader.prototype, "heading", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
property({ type: String })
|
|
79
|
-
], SectionHeader.prototype, "lead", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: String })
|
|
82
|
-
], SectionHeader.prototype, "as", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: String, reflect: true })
|
|
85
|
-
], SectionHeader.prototype, "layout", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
state()
|
|
88
|
-
], SectionHeader.prototype, "_hasLead", void 0);
|
|
89
|
-
SectionHeader = __decorate([
|
|
90
|
-
defineElement("bd-section-header")
|
|
91
|
-
], SectionHeader);
|
|
92
|
-
export { SectionHeader };
|
|
11
|
+
`}};n([l({type:String})],f.prototype,`eyebrow`,void 0),n([l({type:String})],f.prototype,`heading`,void 0),n([l({type:String})],f.prototype,`lead`,void 0),n([l({type:String})],f.prototype,`as`,void 0),n([l({type:String,reflect:!0})],f.prototype,`layout`,void 0),n([u()],f.prototype,`_hasLead`,void 0),f=n([e(`bd-section-header`)],f);export{f as SectionHeader};
|
|
93
12
|
//# sourceMappingURL=section-header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-header.js","
|
|
1
|
+
{"version":3,"file":"section-header.js","names":["_decorate","__decorate","LAYOUTS","SectionHeader","LitElement","_args","tokens","ensembleCSS","sectionHeaderCSS","changed","resolveEnum","n","showLead","nothing","property","state","defineElement"],"sources":["../../../../src/components/section-header/section-header.ts"],"sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport { resolveEnum } from \"#shared/prop-vocabulary.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { sectionHeaderCSS } from \"./section-header.css.ts\";\n\nconst LAYOUTS = [\"stacked\", \"split\", \"centered\"] as const;\n\ntype Layout = typeof LAYOUTS[number];\ntype HeadingTag = \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n\n/**\n * The header that opens a page section: an eyebrow, the section's h2 and a\n * lead. The homepage opens five sections with it -- AI, Why trust, Proven,\n * Insights and the solution splitter -- where each module used to spell its\n * own (bd-overview, bd-bento-grid, bd-trust-panel). Drawn in the foundation\n * Figma file as Section header.\n *\n * layout=\"split\" puts the headline and lead side by side from lg; below lg,\n * and in \"stacked\", everything stacks. layout=\"centered\" centres the three on\n * a narrower measure. Leave eyebrow and lead out for a title-only header.\n *\n * The lead is an attribute for plain copy, or the `lead` slot when it carries\n * a link -- `<bd-link inline underline>`, since colour alone measures 2.91:1\n * against the body text and fails WCAG 1.4.1. Slotted copy takes the lead's\n * role from here, so the page writes words, not typography.\n */\n@defineElement(\"bd-section-header\")\nexport class SectionHeader extends LitElement {\n static styles = [tokens, ensembleCSS, sectionHeaderCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n // a page section's title: the outline is the page's, so it can say otherwise\n @property({ type: String })\n as: HeadingTag = \"h2\";\n @property({ type: String, reflect: true })\n layout: Layout = \"stacked\";\n @state()\n _hasLead = false;\n\n willUpdate(changed: PropertyValues<this>) {\n if (changed.has(\"layout\")) {\n this.layout = resolveEnum(this.layout, { allowed: LAYOUTS, fallback: \"stacked\" });\n }\n }\n\n _onLeadSlot(e: Event) {\n this._hasLead = (e.target as HTMLSlotElement).assignedNodes({ flatten: true })\n .some(n => n.nodeType === Node.ELEMENT_NODE || n.textContent!.trim());\n }\n\n render() {\n const showLead = this.lead || this._hasLead;\n return html`\n <header class=\"bd-ensemble root\">\n ${this.eyebrow\n ? html`<bd-p variant=\"eyebrow\" class=\"eyebrow\"><span class=\"text\">${this.eyebrow}</span></bd-p>`\n : nothing}\n <div class=\"row\">\n <bd-h as=\"${this.as}\" visual-level=\"h2\" class=\"heading\"><span class=\"text\">${this.heading}</span></bd-h>\n <div class=\"lead\" ?hidden=${!showLead}>\n <slot name=\"lead\" @slotchange=${this._onLeadSlot}><span class=\"text\">${this.lead}</span></slot>\n </div>\n </div>\n </header>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-section-header\": SectionHeader;\n }\n}\n"],"mappings":"A,ohBAUA,IAAME,EAAU,CAAC,UAAW,QAAS,UAAU,EAsBlCC,EAAN,cAA4BC,CAAW,C,8BAIlC,KAAA,QAAA,GAEA,KAAA,QAAA,GAEH,KAAA,KAAA,GAGU,KAAA,GAAA,KAEA,KAAA,OAAA,UAEN,KAAA,SAAA,E,QAdK,KAAA,OAAA,CAACE,EAAQC,EAAaC,CAAgB,C,CAgBtD,WAAW,EAA+B,CACpCC,EAAQ,IAAI,QAAQ,IACtB,KAAK,OAASC,EAAY,KAAK,OAAQ,CAAE,QAASR,EAAS,SAAU,SAAU,CAAC,EAEpF,CAEA,YAAY,EAAU,CACpB,KAAK,SAAY,EAAE,OAA2B,cAAc,CAAE,QAAS,EAAK,CAAC,CAAC,CAC3E,KAAK,GAAKS,EAAE,WAAa,KAAK,cAAgBA,EAAE,YAAa,KAAK,CAAC,CACxE,CAEA,QAAS,CACP,IAAMC,EAAW,KAAK,MAAQ,KAAK,SACnC,MAAO,EAAI;;UAEL,KAAK,QACH,CAAI,8DAA8D,KAAK,QAAQ,gBAC/EC,EAAQ;;sBAEE,KAAK,GAAG,yDAAyD,KAAK,QAAQ;sCAC9D,CAACD,EAAS;4CACJ,KAAK,YAAY,sBAAsB,KAAK,KAAK;;;;KAK3F,CACF,EAzCGZ,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,UAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,OAAA,IAAA,EAAA,EAGzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAX,EAAA,UAAA,KAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAc,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAX,EAAA,UAAA,SAAA,IAAA,EAAA,EAExCH,EAAA,CAAAe,EAAM,CAAA,EAAAZ,EAAA,UAAA,WAAA,IAAA,EAAA,EAfR,EAAAH,EAAA,CAAAgB,EAAc,mBAAmB,CAAA,EAAAb,CAAA,E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from "lit";
|
|
2
2
|
/**
|
|
3
3
|
* What a component says through its one live region: bd-install-options'
|
|
4
4
|
* "Copied" and the clipboard field's paste result.
|
|
@@ -1,35 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* What a component says through its one live region: bd-install-options'
|
|
3
|
-
* "Copied" and the clipboard field's paste result.
|
|
4
|
-
*
|
|
5
|
-
* The region is rendered from the start -- a region inserted holding its
|
|
6
|
-
* text is, to many screen readers, not a change (see bd-spinner) -- and each
|
|
7
|
-
* message empties it first and fills it a moment later, so the same message
|
|
8
|
-
* twice is a change as well. The host renders `status` in an element with
|
|
9
|
-
* role="status":
|
|
10
|
-
*
|
|
11
|
-
* this._announcer = new Announcer(this);
|
|
12
|
-
* this._announcer.say("Copied");
|
|
13
|
-
* html`<span role="status">${this._announcer.status}</span>`
|
|
14
|
-
*/
|
|
15
|
-
export class Announcer {
|
|
16
|
-
constructor(host) {
|
|
17
|
-
this.host = host;
|
|
18
|
-
this.status = "";
|
|
19
|
-
this._timer = 0;
|
|
20
|
-
host.addController(this);
|
|
21
|
-
}
|
|
22
|
-
say(message) {
|
|
23
|
-
clearTimeout(this._timer);
|
|
24
|
-
this._set("");
|
|
25
|
-
this._timer = setTimeout(() => this._set(message), 100);
|
|
26
|
-
}
|
|
27
|
-
_set(message) {
|
|
28
|
-
this.status = message;
|
|
29
|
-
this.host.requestUpdate();
|
|
30
|
-
}
|
|
31
|
-
hostDisconnected() {
|
|
32
|
-
clearTimeout(this._timer);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
var e=class{constructor(e){this.host=e,this.status=``,this._timer=0,e.addController(this)}say(e){clearTimeout(this._timer),this._set(``),this._timer=setTimeout(()=>this._set(e),100)}_set(e){this.status=e,this.host.requestUpdate()}hostDisconnected(){clearTimeout(this._timer)}};export{e as Announcer};
|
|
35
2
|
//# sourceMappingURL=announcer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcer.js","
|
|
1
|
+
{"version":3,"file":"announcer.js","names":["Announcer","host","message"],"sources":["../../../../src/components/shared/announcer.ts"],"sourcesContent":["import type { ReactiveController, ReactiveControllerHost } from 'lit';\n\n/**\n * What a component says through its one live region: bd-install-options'\n * \"Copied\" and the clipboard field's paste result.\n *\n * The region is rendered from the start -- a region inserted holding its\n * text is, to many screen readers, not a change (see bd-spinner) -- and each\n * message empties it first and fills it a moment later, so the same message\n * twice is a change as well. The host renders `status` in an element with\n * role=\"status\":\n *\n * this._announcer = new Announcer(this);\n * this._announcer.say(\"Copied\");\n * html`<span role=\"status\">${this._announcer.status}</span>`\n */\nexport class Announcer implements ReactiveController {\n host : ReactiveControllerHost;\n status : string;\n private _timer: ReturnType<typeof setTimeout> | 0;\n\n constructor(host: ReactiveControllerHost) {\n this.host = host;\n this.status = \"\";\n this._timer = 0;\n host.addController(this);\n }\n\n say(message: string) {\n clearTimeout(this._timer);\n this._set(\"\");\n this._timer = setTimeout(() => this._set(message), 100);\n }\n\n private _set(message: string) {\n this.status = message;\n this.host.requestUpdate();\n }\n\n hostDisconnected() {\n clearTimeout(this._timer);\n }\n}\n"],"mappings":"AAgBA,IAAaA,EAAb,KAAqD,CAKnD,YAAY,EAA8B,CACxC,KAAK,KAAOC,EACZ,KAAK,OAAS,GACd,KAAK,OAAS,EACdA,EAAK,cAAc,IAAI,CACzB,CAEA,IAAI,EAAiB,CACnB,aAAa,KAAK,MAAM,EACxB,KAAK,KAAK,EAAE,EACZ,KAAK,OAAS,eAAiB,KAAK,KAAKC,CAAO,EAAG,GAAG,CACxD,CAEA,KAAa,EAAiB,CAC5B,KAAK,OAASA,EACd,KAAK,KAAK,cAAc,CAC1B,CAEA,kBAAmB,CACjB,aAAa,KAAK,MAAM,CAC1B,CACF,E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from
|
|
1
|
+
import type { ReactiveController, ReactiveControllerHost } from "lit";
|
|
2
2
|
/** The query a component asks before it moves on its own. */
|
|
3
3
|
export declare const REDUCED_MOTION = "(prefers-reduced-motion: reduce)";
|
|
4
4
|
/**
|