@repobit/dex-system-design 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +16 -5
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../src/components/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,qBAAqB,CAAC;AAC7B,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEI,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,UAAU;aAC3B,WAAM,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,AAAjC,CAAkC;IA2B/C;QACE,KAAK,EAAE,CAAC;QAzBV,YAAO,GAAG,EAAE,CAAC;QAEb,YAAO,GAAG,EAAE,CAAC;QAEb,SAAI,GAAG,EAAE,CAAC;QAEV,aAAQ,GAAG,EAAE,CAAC;QAEd,WAAM,GAAG,EAAE,CAAC;QAEZ,WAAM,GAAG,KAAK,CAAC;QAEf,eAAU,GAAG,4BAA4B,CAAC;QAE1C,cAAS,GAAG,2BAA2B,CAAC;QAExC,aAAQ,GAAG,KAAK,CAAC;QAEjB,cAAS,GAAG,KAAK,CAAC;QAElB,cAAS,GAAG,KAAK,CAAC;QAMhB,IAAI,oBAAoB,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1F,CAAC;IAED,OAAO,CAAC,OAA6B;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;YAAE,IAAI,CAAC,UAAU,EAAE,CAAC;QACzE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;YAAE,OAAO;QAC3F,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACrD,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ;YAAE,KAAK,CAAC,KAAK,EAAE,CAAC;;YAC3C,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,GAA4C,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED,OAAO;QACL,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,CAAC;IAED,YAAY,CAAC,CAAQ;QACnB,IAAI,CAAC,SAAS,GAAI,CAAC,CAAC,MAA0B,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAChG,CAAC;IAED,YAAY,CAAC,CAAQ;QACnB,IAAI,CAAC,MAAM,GAAI,CAAC,CAAC,MAA0B,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAChF,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC;IAED,oDAAoD;IACpD,UAAU;QACR,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,MAAM,IAAI,EAAE;YAAE,IAAI,QAAQ,IAAI,EAAE;gBAAE,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAClF,CAAC;IAED,YAAY;QACV,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO,OAAO,CAAC;QACnC;gFACwE;QACxE,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAO,IAAI,CAAA;;eAEF,IAAI,CAAC,QAAQ;kBACV,IAAI,CAAC,MAAM,IAAI,OAAO;oBACpB,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM;;;;;;;iBAOjC,IAAI;gBACL,CAAC;QACb,CAAC;QACD;;;;;wCAKgC;QAChC,OAAO,IAAI,CAAC,MAAM;YAChB,CAAC,CAAC,IAAI,CAAA,2BAA2B,IAAI,CAAC,MAAM,0DAA0D;YACtG,CAAC,CAAC,OAAO,CAAC;IACd,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QAClE,OAAO,IAAI,CAAA;6BACc,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;;;cAGhD,IAAI,CAAC,YAAY,EAAE;6CACY,IAAI,CAAC,YAAY;;cAEhD,MAAM;YACN,CAAC,CAAC,IAAI,CAAA;;;;;;2BAMO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU;2BAC9C,IAAI,CAAC,OAAO;mBACpB,IAAI,CAAC,MAAM;gBACZ,CAAC,CAAC,IAAI,CAAA,yCAAyC;gBAC/C,CAAC,CAAC,IAAI,CAAA,2CAA2C,cAAc;YACnE,CAAC,CAAC,OAAO;;;;gBAIP,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,sBAAsB,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,OAAO;oCACjD,IAAI,CAAC,OAAO;gBAChC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,mBAAmB,IAAI,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,OAAO;;;;;0CAKlC,CAAC,IAAI,CAAC,SAAS;;6CAEZ,IAAI,CAAC,YAAY;;;;KAIzD,CAAC;IACJ,CAAC;;AA9HD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACd;AAEb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCACd;AAEb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kCACjB;AAEV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;sCACrC;AAEd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oCACf;AAEZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oCAC5B;AAEf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;wCACX;AAE1C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;uCACZ;AAExC;IADC,KAAK,EAAE;sCACS;AAEjB;IADC,KAAK,EAAE;uCACU;AAElB;IADC,KAAK,EAAE;uCACU;AAxBP,IAAI;IADhB,aAAa,CAAC,SAAS,CAAC;GACZ,IAAI,CAmIhB","sourcesContent":["import { LitElement, html, nothing, type PropertyValues } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"../shared/define-element.ts\";\nimport { MediaQueryController, REDUCED_MOTION } from \"../shared/controller.media-query.ts\";\nimport { tokens } from \"../../tokens/tokens.ts\";\nimport \"../button/button.ts\";\nimport \"../icons/pause-icon.ts\";\nimport \"../icons/play-icon.ts\";\nimport { ensembleCSS } from \"../shared/ensemble.css.ts\";\nimport { heroCSS } from \"./hero.css.ts\";\n\n/**\n * The homepage hero: a brand band with a full-bleed looping video fading into\n * the brand at the bottom, an eyebrow, the page's one h1 and a lead. Drawn in\n * the foundation Figma file as Hero.\n *\n * Desktop sets the copy left over the video, and a faint brand haze spills\n * out under the band, behind the cards (the desktop frame's glow); below lg\n * the video sits on top and the copy is centred under it.\n * Slot `cards` takes the audience cards:\n * from lg they overlap the band's lower edge, below it they follow the band\n * on the same brand ground, as the phone and tablet frames draw them.\n *\n * Not bd-header. That is the white two-column product hero with a price; this\n * one sells nothing and carries no CTA.\n *\n * Slot `media` takes animated art in the video's place: the homepage slots\n * <bd-motion-art object=\"brand-surface\">. Slotted, it replaces the video and\n * the poster, and it is centred in the stage below lg and on the sphere's\n * line, right of the copy, from lg.\n *\n * The video loops on its own, so there is a pause button (WCAG 2.2.2). Under\n * prefers-reduced-motion it never plays: the poster stands still in its place.\n * Without a video-src the poster is all there is, and so is no button. The\n * slotted art takes no button: it holds a still frame of its own under\n * prefers-reduced-motion, and stops with `paused` when a page sets it.\n */\n@defineElement(\"bd-hero\")\nexport class Hero extends LitElement {\n static styles = [tokens, ensembleCSS, heroCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n @property({ type: String, attribute: \"video-src\" })\n videoSrc = \"\";\n @property({ type: String })\n poster = \"\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the background video\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the background video\";\n @state()\n _reduced = false;\n @state()\n _hasCards = false;\n @state()\n _hasMedia = false;\n\n _media: Element[] | undefined;\n\n constructor() {\n super();\n new MediaQueryController(this, REDUCED_MOTION, reduced => { this._reduced = reduced; });\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"paused\") || changed.has(\"_hasMedia\")) this._syncMedia();\n if (!changed.has(\"paused\") && !changed.has(\"_reduced\") && !changed.has(\"videoSrc\")) return;\n const video = this.renderRoot.querySelector(\"video\");\n if (!video) return;\n if (this.paused || this._reduced) video.pause();\n else video.play()?.catch(() => { /* autoplay refused: the poster stays */ });\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n _onCardsSlot(e: Event) {\n this._hasCards = (e.target as HTMLSlotElement).assignedElements({ flatten: true }).length > 0;\n }\n\n _onMediaSlot(e: Event) {\n this._media = (e.target as HTMLSlotElement).assignedElements({ flatten: true });\n this._hasMedia = this._media.length > 0;\n this._syncMedia();\n }\n\n /* the slotted art stops with the hero's `paused` */\n _syncMedia() {\n for (const el of this._media ?? []) if (\"paused\" in el) el.paused = this.paused;\n }\n\n _renderMedia() {\n if (this._hasMedia) return nothing;\n /* preload=\"none\": under reduced motion, or paused, the video never plays\n and the poster is all there is, so nothing else is fetched for it. */\n if (this.videoSrc) {\n return html`<video\n class=\"media\"\n src=\"${this.videoSrc}\"\n poster=\"${this.poster || nothing}\"\n ?autoplay=${!this._reduced && !this.paused}\n muted\n loop\n playsinline\n preload=\"none\"\n aria-hidden=\"true\"\n tabindex=\"-1\"\n .muted=${true}\n ></video>`;\n }\n /* The poster alone is the band's picture, and the band opens the page, so\n it is the image the page is waiting for: high priority, never lazy. The\n size is the homepage poster's; the stage sizes the box itself, so the\n attributes only give the image its shape before it arrives. alt=\"\" is\n what keeps it out of the accessibility tree -- aria-hidden beside it\n said the same thing twice. */\n return this.poster\n ? html`<img class=\"media\" src=\"${this.poster}\" alt=\"\" width=\"1440\" height=\"613\" fetchpriority=\"high\">`\n : nothing;\n }\n\n render() {\n const moving = this.videoSrc && !this._hasMedia && !this._reduced;\n return html`\n <section class=\"root ${this._hasCards ? \"has-cards\" : \"\"}\">\n <div class=\"band\">\n <div class=\"stage\">\n ${this._renderMedia()}\n <slot name=\"media\" @slotchange=${this._onMediaSlot}></slot>\n <div class=\"fade\"></div>\n ${moving\n ? html`<bd-button\n class=\"toggle\"\n variant=\"outline-white\"\n surface=\"brand\"\n size=\"md\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"md\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"md\"></bd-pause-icon>`}</bd-button>`\n : nothing}\n </div>\n <div class=\"bd-ensemble column\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n <h1 class=\"heading\">${this.heading}</h1>\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n </div>\n </div>\n <div class=\"glow\" aria-hidden=\"true\"></div>\n <div class=\"cards-band\" ?hidden=${!this._hasCards}>\n <div class=\"bd-ensemble cards\">\n <slot name=\"cards\" @slotchange=${this._onCardsSlot}></slot>\n </div>\n </div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-hero\": Hero;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"hero.js","names":["_decorate","__decorate","Hero","LitElement","tokens","ensembleCSS","heroCSS","MediaQueryController","REDUCED_MOTION","reduced","changed","video","el","nothing","moving","property","state","defineElement"],"sources":["../../../../src/components/hero/hero.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 { MediaQueryController, REDUCED_MOTION } from \"#shared/controller.media-query.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/button/button.ts\";\nimport \"#components/icons/pause-icon.ts\";\nimport \"#components/icons/play-icon.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { heroCSS } from \"./hero.css.ts\";\n\n/**\n * The homepage hero: a brand band with a full-bleed looping video fading into\n * the brand at the bottom, an eyebrow, the page's one h1 and a lead. Drawn in\n * the foundation Figma file as Hero.\n *\n * Desktop sets the copy left over the video, and a faint brand haze spills\n * out under the band, behind the cards (the desktop frame's glow); below lg\n * the video sits on top and the copy is centred under it.\n * Slot `cards` takes the audience cards:\n * from lg they overlap the band's lower edge, below it they follow the band\n * on the same brand ground, as the phone and tablet frames draw them.\n *\n * Not bd-header. That is the white two-column product hero with a price; this\n * one sells nothing and carries no CTA.\n *\n * Slot `media` takes animated art in the video's place: the homepage slots\n * <bd-motion-art object=\"brand-surface\">. Slotted, it replaces the video and\n * the poster, and it is centred in the stage below lg and on the sphere's\n * line, right of the copy, from lg.\n *\n * The video loops on its own, so there is a pause button (WCAG 2.2.2). Under\n * prefers-reduced-motion it never plays: the poster stands still in its place.\n * Without a video-src the poster is all there is, and so is no button. The\n * slotted art takes no button: it holds a still frame of its own under\n * prefers-reduced-motion, and stops with `paused` when a page sets it.\n */\n@defineElement(\"bd-hero\")\nexport class Hero extends LitElement {\n static styles = [tokens, ensembleCSS, heroCSS];\n\n @property({ type: String })\n eyebrow = \"\";\n @property({ type: String })\n heading = \"\";\n @property({ type: String })\n lead = \"\";\n @property({ type: String, attribute: \"video-src\" })\n videoSrc = \"\";\n @property({ type: String })\n poster = \"\";\n @property({ type: Boolean, reflect: true })\n paused = false;\n @property({ type: String, attribute: \"pause-label\" })\n pauseLabel = \"Pause the background video\";\n @property({ type: String, attribute: \"play-label\" })\n playLabel = \"Play the background video\";\n @state()\n _reduced = false;\n @state()\n _hasCards = false;\n @state()\n _hasMedia = false;\n\n _media: Element[] | undefined;\n\n constructor() {\n super();\n new MediaQueryController(this, REDUCED_MOTION, reduced => { this._reduced = reduced; });\n }\n\n updated(changed: PropertyValues<this>) {\n if (changed.has(\"paused\") || changed.has(\"_hasMedia\")) this._syncMedia();\n if (!changed.has(\"paused\") && !changed.has(\"_reduced\") && !changed.has(\"videoSrc\")) return;\n const video = this.renderRoot.querySelector(\"video\");\n if (!video) return;\n if (this.paused || this._reduced) video.pause();\n else video.play()?.catch(() => { /* autoplay refused: the poster stays */ });\n }\n\n _toggle() {\n this.paused = !this.paused;\n }\n\n _onCardsSlot(e: Event) {\n this._hasCards = (e.target as HTMLSlotElement).assignedElements({ flatten: true }).length > 0;\n }\n\n _onMediaSlot(e: Event) {\n this._media = (e.target as HTMLSlotElement).assignedElements({ flatten: true });\n this._hasMedia = this._media.length > 0;\n this._syncMedia();\n }\n\n /* the slotted art stops with the hero's `paused` */\n _syncMedia() {\n for (const el of this._media ?? []) if (\"paused\" in el) el.paused = this.paused;\n }\n\n _renderMedia() {\n if (this._hasMedia) return nothing;\n /* preload=\"none\": under reduced motion, or paused, the video never plays\n and the poster is all there is, so nothing else is fetched for it. */\n if (this.videoSrc) {\n return html`<video\n class=\"media\"\n src=\"${this.videoSrc}\"\n poster=\"${this.poster || nothing}\"\n ?autoplay=${!this._reduced && !this.paused}\n muted\n loop\n playsinline\n preload=\"none\"\n aria-hidden=\"true\"\n tabindex=\"-1\"\n .muted=${true}\n ></video>`;\n }\n /* The poster alone is the band's picture, and the band opens the page, so\n it is the image the page is waiting for: high priority, never lazy. The\n size is the homepage poster's; the stage sizes the box itself, so the\n attributes only give the image its shape before it arrives. alt=\"\" is\n what keeps it out of the accessibility tree -- aria-hidden beside it\n said the same thing twice. */\n return this.poster\n ? html`<img class=\"media\" src=\"${this.poster}\" alt=\"\" width=\"1440\" height=\"613\" fetchpriority=\"high\">`\n : nothing;\n }\n\n render() {\n const moving = this.videoSrc && !this._hasMedia && !this._reduced;\n return html`\n <section class=\"root ${this._hasCards ? \"has-cards\" : \"\"}\">\n <div class=\"band\">\n <div class=\"stage\">\n ${this._renderMedia()}\n <slot name=\"media\" @slotchange=${this._onMediaSlot}></slot>\n <div class=\"fade\"></div>\n ${moving\n ? html`<bd-button\n class=\"toggle\"\n variant=\"outline-white\"\n surface=\"brand\"\n size=\"md\"\n icon-only\n label=\"${this.paused ? this.playLabel : this.pauseLabel}\"\n @click=${this._toggle}\n >${this.paused\n ? html`<bd-play-icon size=\"md\"></bd-play-icon>`\n : html`<bd-pause-icon size=\"md\"></bd-pause-icon>`}</bd-button>`\n : nothing}\n </div>\n <div class=\"bd-ensemble column\">\n <div class=\"copy\">\n ${this.eyebrow ? html`<p class=\"eyebrow\">${this.eyebrow}</p>` : nothing}\n <h1 class=\"heading\">${this.heading}</h1>\n ${this.lead ? html`<p class=\"lead\">${this.lead}</p>` : nothing}\n </div>\n </div>\n </div>\n <div class=\"glow\" aria-hidden=\"true\"></div>\n <div class=\"cards-band\" ?hidden=${!this._hasCards}>\n <div class=\"bd-ensemble cards\">\n <slot name=\"cards\" @slotchange=${this._onCardsSlot}></slot>\n </div>\n </div>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-hero\": Hero;\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,176 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* unsafeCSS is how a Lit css`` template accepts a computed string. The
|
|
3
|
-
value is not arbitrary: below() resolves a name from the closed
|
|
4
|
-
breakpoint set and throws on anything else, so the only strings that
|
|
5
|
-
reach here are the ones the scale produced. */
|
|
6
|
-
import { below } from "../shared/token-scales.js";
|
|
7
|
-
export default css `
|
|
8
|
-
:host {
|
|
9
|
-
display: block;
|
|
10
|
-
/* No type on this host. The headline is a bd-h and the sub-title a bd-p, and
|
|
11
|
-
each atom sets size, weight and leading on its own inner element, so a
|
|
12
|
-
weight, a size and a leading declared here reached no character of either.
|
|
13
|
-
Proved by forcing this host to 70px/5/100 in all three stories and watching
|
|
14
|
-
.bd-heading hold its heading-h3 role and the sub-title hold body-small,
|
|
15
|
-
whatever those roles currently resolve to — 32/41.6/600 and 14/20.3/400
|
|
16
|
-
when this was last measured, after the leading was derived from the font.
|
|
17
|
-
The numbers move with the roles; the point is that neither budged. The
|
|
18
|
-
.highlight-text spans are slotted into the bd-h, so they inherit through
|
|
19
|
-
the flattened tree from .bd-heading too. text-align stays: neither atom
|
|
20
|
-
sets it, so it does inherit through. */
|
|
21
|
-
font-family: var(--typography-fontFamily-sans);
|
|
22
|
-
text-align: center;
|
|
23
|
-
color: var(--color-text-primary);
|
|
24
|
-
/* no token: a centred title measure, deliberately narrower than the page
|
|
25
|
-
column (--layout-ensemble-max-width); nothing on the scale sits between
|
|
26
|
-
--content-width-readable and that column */
|
|
27
|
-
max-width: 820px;
|
|
28
|
-
margin: 0 auto;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.sub-title {
|
|
32
|
-
color: var(--color-text-brand);
|
|
33
|
-
margin: 0 0 var(--spacing-24) 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.headline {
|
|
37
|
-
margin: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.highlight {
|
|
41
|
-
display: inline;
|
|
42
|
-
background: var(--color-surface-info);
|
|
43
|
-
color: var(--color-text-primary);
|
|
44
|
-
/* The three rungs of the ladder this atom stacks its own internals on:
|
|
45
|
-
the tint sits below the line, the text on it, the decorations above. */
|
|
46
|
-
z-index: var(--z-below);
|
|
47
|
-
position: relative;
|
|
48
|
-
margin-inline: calc(-1 * var(--spacing-4));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.highlight-text {
|
|
52
|
-
position: relative;
|
|
53
|
-
z-index: var(--z-base);
|
|
54
|
-
padding-inline: var(--spacing-4);
|
|
55
|
-
box-decoration-break: clone;
|
|
56
|
-
-webkit-box-decoration-break: clone;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Empty and inline on purpose: it takes the same content box as the text
|
|
60
|
-
beside it and has no width to break, so it rides along to whichever line
|
|
61
|
-
its end of the phrase lands on. An absolutely positioned child of
|
|
62
|
-
.highlight itself resolves against a single line fragment, which is why
|
|
63
|
-
both decorations piled onto the first line when the phrase wrapped. */
|
|
64
|
-
.highlight-anchor {
|
|
65
|
-
position: relative;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.highlight-deco {
|
|
69
|
-
/* Local so the two insets below derive from the box rather than restating
|
|
70
|
-
a number per breakpoint. The bar is centred in this box, so pulling the
|
|
71
|
-
box out by half its spare width lands the bar on the background edge. */
|
|
72
|
-
--bd-highlight-deco-width: var(--spacing-8);
|
|
73
|
-
--bd-highlight-deco-inset: calc(
|
|
74
|
-
-1 * (var(--bd-highlight-deco-width) - var(--spacing-2)) / 2
|
|
75
|
-
);
|
|
76
|
-
|
|
77
|
-
position: absolute;
|
|
78
|
-
width: var(--bd-highlight-deco-width);
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: flex-start;
|
|
83
|
-
pointer-events: none;
|
|
84
|
-
z-index: var(--z-raised);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* .left and .right are the phrase's start and end (highlight.ts puts one
|
|
88
|
-
before it and one after), so they sit on the inline edges: in a
|
|
89
|
-
right-to-left page .left is the right-hand bar. */
|
|
90
|
-
.highlight-deco.left {
|
|
91
|
-
inset-inline-start: var(--bd-highlight-deco-inset);
|
|
92
|
-
top: calc(-1 * var(--spacing-4));
|
|
93
|
-
bottom: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* Mirrors .left against the other edge of the same box. It used to be
|
|
97
|
-
positioned against a 1px anchor span whose distance from that edge changed
|
|
98
|
-
with the surrounding text, which is why the bar drifted clear of the
|
|
99
|
-
background when the highlight was the last word. */
|
|
100
|
-
.highlight-deco.right {
|
|
101
|
-
inset-inline-end: var(--bd-highlight-deco-inset);
|
|
102
|
-
top: 0;
|
|
103
|
-
bottom: calc(-1 * var(--spacing-4));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* no token: the brand decoration mark. blue-500 is the right step but no
|
|
107
|
-
role names it — --color-border-brand is a border, --status-brand-fill is a
|
|
108
|
-
chip background, and neither is an ornament. This needs a decoration role
|
|
109
|
-
before it can be spelled as one; inventing one for a single consumer is
|
|
110
|
-
what the token layer is trying to stop. */
|
|
111
|
-
.highlight-svg-rect {
|
|
112
|
-
width: var(--spacing-2);
|
|
113
|
-
/* whatever the dot leaves, so the bar always ends on the background edge */
|
|
114
|
-
flex: 1;
|
|
115
|
-
/* no role: the deco bar, same decision as the ellipses below -- ornament flanking the
|
|
116
|
-
highlighted text, not a mark, so an ink role is the wrong family. 4.20:1 against
|
|
117
|
-
the blue-50 ground, over the 3:1 non-text bar. */
|
|
118
|
-
fill: var(--color-brand-500);
|
|
119
|
-
margin: 0;
|
|
120
|
-
display: block;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.highlight-svg-ellipse-top,
|
|
124
|
-
.highlight-svg-ellipse-bottom {
|
|
125
|
-
flex: none;
|
|
126
|
-
width: var(--bd-highlight-deco-width);
|
|
127
|
-
height: var(--bd-highlight-deco-width);
|
|
128
|
-
/* no role: the two deco ellipses. These are ORNAMENT, not a mark and not a glyph in
|
|
129
|
-
a text flow -- highlight.ts puts them inside <span class="highlight-deco left|right">
|
|
130
|
-
flanking <span class="highlight-text">, a bracket construct drawn around the
|
|
131
|
-
highlighted words. Every icon role candidate in this package is an INK role, and
|
|
132
|
-
ink is the wrong family for a bracket: naming one here would misdescribe these the
|
|
133
|
-
way calling the terminal's line-kind blues "brand" would have. They pass their bar
|
|
134
|
-
already -- 4.20:1 against the blue-50 ground, where 3:1 is the non-text minimum.
|
|
135
|
-
See plans/reports/phase-2-vocab-b-icon-colour.md. */
|
|
136
|
-
fill: var(--color-brand-500);
|
|
137
|
-
display: block;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Narrower than sm. A media condition cannot read a custom property, so
|
|
141
|
-
below() interpolates the value; 600px was on no scale at all, and the
|
|
142
|
-
576px that replaced it still matched at exactly 576px, where sm begins. */
|
|
143
|
-
@media ${unsafeCSS(below('sm'))} {
|
|
144
|
-
|
|
145
|
-
.highlight-deco {
|
|
146
|
-
--bd-highlight-deco-width: var(--spacing-6);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/* The tint is the highlight, and forced colours repaint it as Canvas: the
|
|
153
|
-
phrase read exactly like the words around it. It opts out into the
|
|
154
|
-
system's Highlight pair, and the bracket bars, which sit on its edges,
|
|
155
|
-
draw in CanvasText so they still show against it.
|
|
156
|
-
|
|
157
|
-
It also leaves the rung below the line. Chromium paints a Canvas
|
|
158
|
-
backplate behind forced text, and the heading's backplate covered a tint
|
|
159
|
-
stacked under it -- measured, the phrase came out HighlightText on that
|
|
160
|
-
white, which is to say blank. */
|
|
161
|
-
@media (forced-colors: active) {
|
|
162
|
-
.highlight {
|
|
163
|
-
forced-color-adjust: none;
|
|
164
|
-
background: Highlight;
|
|
165
|
-
color: HighlightText;
|
|
166
|
-
z-index: auto;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.highlight-svg-rect,
|
|
170
|
-
.highlight-svg-ellipse-top,
|
|
171
|
-
.highlight-svg-ellipse-bottom {
|
|
172
|
-
fill: CanvasText;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);text-align:center;color:var(--color-text-primary);max-width:820px;margin:0 auto;display:block}.sub-title{color:var(--color-text-brand);margin:0 0 var(--spacing-24) 0}.headline{margin:0}.highlight{background:var(--color-surface-info);color:var(--color-text-primary);z-index:var(--z-below);margin-inline:calc(-1 * var(--spacing-4));display:inline;position:relative}.highlight-text{z-index:var(--z-base);padding-inline:var(--spacing-4);-webkit-box-decoration-break:clone;box-decoration-break:clone;position:relative}.highlight-anchor{position:relative}.highlight-deco{--bd-highlight-deco-width:var(--spacing-8);--bd-highlight-deco-inset:calc(-1 * (var(--bd-highlight-deco-width) - var(--spacing-2)) / 2);width:var(--bd-highlight-deco-width);pointer-events:none;z-index:var(--z-raised);flex-direction:column;justify-content:flex-start;align-items:center;display:flex;position:absolute}.highlight-deco.left{inset-inline-start:var(--bd-highlight-deco-inset);top:calc(-1 * var(--spacing-4));bottom:0}.highlight-deco.right{inset-inline-end:var(--bd-highlight-deco-inset);top:0;bottom:calc(-1 * var(--spacing-4))}.highlight-svg-rect{width:var(--spacing-2);fill:var(--color-brand-500);flex:1;margin:0;display:block}.highlight-svg-ellipse-top,.highlight-svg-ellipse-bottom{width:var(--bd-highlight-deco-width);height:var(--bd-highlight-deco-width);fill:var(--color-brand-500);flex:none;display:block}@media (width<576px){.highlight-deco{--bd-highlight-deco-width:var(--spacing-6)}}@media (forced-colors:active){.highlight{forced-color-adjust:none;color:highlighttext;z-index:auto;background:highlight}.highlight-svg-rect,.highlight-svg-ellipse-top,.highlight-svg-ellipse-bottom{fill:canvastext}}`;export{t as default};
|
|
176
2
|
//# sourceMappingURL=highlight.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.css.js","
|
|
1
|
+
{"version":3,"file":"highlight.css.js","names":["highlight_css_default"],"sources":["../../../../src/components/highlight/highlight.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\n/* unsafeCSS is how a Lit css`` template accepts a computed string. The\n value is not arbitrary: below() resolves a name from the closed\n breakpoint set and throws on anything else, so the only strings that\n reach here are the ones the scale produced. */\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n /* No type on this host. The headline is a bd-h and the sub-title a bd-p, and\n each atom sets size, weight and leading on its own inner element, so a\n weight, a size and a leading declared here reached no character of either.\n Proved by forcing this host to 70px/5/100 in all three stories and watching\n .bd-heading hold its heading-h3 role and the sub-title hold body-small,\n whatever those roles currently resolve to — 32/41.6/600 and 14/20.3/400\n when this was last measured, after the leading was derived from the font.\n The numbers move with the roles; the point is that neither budged. The\n .highlight-text spans are slotted into the bd-h, so they inherit through\n the flattened tree from .bd-heading too. text-align stays: neither atom\n sets it, so it does inherit through. */\n font-family: var(--typography-fontFamily-sans);\n text-align: center;\n color: var(--color-text-primary);\n /* no token: a centred title measure, deliberately narrower than the page\n column (--layout-ensemble-max-width); nothing on the scale sits between\n --content-width-readable and that column */\n max-width: 820px;\n margin: 0 auto;\n}\n \n.sub-title {\n color: var(--color-text-brand);\n margin: 0 0 var(--spacing-24) 0;\n}\n\n .headline {\n margin: 0;\n }\n\n .highlight {\n display: inline;\n background: var(--color-surface-info);\n color: var(--color-text-primary);\n /* The three rungs of the ladder this atom stacks its own internals on:\n the tint sits below the line, the text on it, the decorations above. */\n z-index: var(--z-below);\n position: relative;\n margin-inline: calc(-1 * var(--spacing-4));\n }\n\n.highlight-text {\n position: relative;\n z-index: var(--z-base);\n padding-inline: var(--spacing-4);\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n}\n\n /* Empty and inline on purpose: it takes the same content box as the text\n beside it and has no width to break, so it rides along to whichever line\n its end of the phrase lands on. An absolutely positioned child of\n .highlight itself resolves against a single line fragment, which is why\n both decorations piled onto the first line when the phrase wrapped. */\n .highlight-anchor {\n position: relative;\n }\n\n .highlight-deco {\n /* Local so the two insets below derive from the box rather than restating\n a number per breakpoint. The bar is centred in this box, so pulling the\n box out by half its spare width lands the bar on the background edge. */\n --bd-highlight-deco-width: var(--spacing-8);\n --bd-highlight-deco-inset: calc(\n -1 * (var(--bd-highlight-deco-width) - var(--spacing-2)) / 2\n );\n\n position: absolute;\n width: var(--bd-highlight-deco-width);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n pointer-events: none;\n z-index: var(--z-raised);\n }\n\n /* .left and .right are the phrase's start and end (highlight.ts puts one\n before it and one after), so they sit on the inline edges: in a\n right-to-left page .left is the right-hand bar. */\n .highlight-deco.left {\n inset-inline-start: var(--bd-highlight-deco-inset);\n top: calc(-1 * var(--spacing-4));\n bottom: 0;\n }\n\n /* Mirrors .left against the other edge of the same box. It used to be\n positioned against a 1px anchor span whose distance from that edge changed\n with the surrounding text, which is why the bar drifted clear of the\n background when the highlight was the last word. */\n .highlight-deco.right {\n inset-inline-end: var(--bd-highlight-deco-inset);\n top: 0;\n bottom: calc(-1 * var(--spacing-4));\n }\n\n /* no token: the brand decoration mark. blue-500 is the right step but no\n role names it — --color-border-brand is a border, --status-brand-fill is a\n chip background, and neither is an ornament. This needs a decoration role\n before it can be spelled as one; inventing one for a single consumer is\n what the token layer is trying to stop. */\n .highlight-svg-rect {\n width: var(--spacing-2);\n /* whatever the dot leaves, so the bar always ends on the background edge */\n flex: 1;\n /* no role: the deco bar, same decision as the ellipses below -- ornament flanking the\n highlighted text, not a mark, so an ink role is the wrong family. 4.20:1 against\n the blue-50 ground, over the 3:1 non-text bar. */\n fill: var(--color-brand-500);\n margin: 0;\n display: block;\n }\n\n .highlight-svg-ellipse-top,\n .highlight-svg-ellipse-bottom {\n flex: none;\n width: var(--bd-highlight-deco-width);\n height: var(--bd-highlight-deco-width);\n /* no role: the two deco ellipses. These are ORNAMENT, not a mark and not a glyph in\n a text flow -- highlight.ts puts them inside <span class=\"highlight-deco left|right\">\n flanking <span class=\"highlight-text\">, a bracket construct drawn around the\n highlighted words. Every icon role candidate in this package is an INK role, and\n ink is the wrong family for a bracket: naming one here would misdescribe these the\n way calling the terminal's line-kind blues \"brand\" would have. They pass their bar\n already -- 4.20:1 against the blue-50 ground, where 3:1 is the non-text minimum.\n See plans/reports/phase-2-vocab-b-icon-colour.md. */\n fill: var(--color-brand-500);\n display: block;\n }\n\n /* Narrower than sm. A media condition cannot read a custom property, so\n below() interpolates the value; 600px was on no scale at all, and the\n 576px that replaced it still matched at exactly 576px, where sm begins. */\n @media ${unsafeCSS(below('sm'))} {\n\n .highlight-deco {\n --bd-highlight-deco-width: var(--spacing-6);\n }\n\n\n}\n\n /* The tint is the highlight, and forced colours repaint it as Canvas: the\n phrase read exactly like the words around it. It opts out into the\n system's Highlight pair, and the bracket bars, which sit on its edges,\n draw in CanvasText so they still show against it.\n\n It also leaves the rung below the line. Chromium paints a Canvas\n backplate behind forced text, and the heading's backplate covered a tint\n stacked under it -- measured, the phrase came out HighlightText on that\n white, which is to say blank. */\n @media (forced-colors: active) {\n .highlight {\n forced-color-adjust: none;\n background: Highlight;\n color: HighlightText;\n z-index: auto;\n }\n\n .highlight-svg-rect,\n .highlight-svg-ellipse-top,\n .highlight-svg-ellipse-bottom {\n fill: CanvasText;\n }\n }\n`;\n"],"mappings":"A,4DAOA,IAAAA,EAAe,CAAG,2sD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../heading/heading.
|
|
4
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
5
|
declare class BdHighlightSection extends LitElement {
|
|
6
6
|
highlightText: string;
|
|
7
7
|
subTitle: string;
|
|
@@ -1,116 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 "../heading/heading.js";
|
|
13
|
-
import "../paragraph/paragraph.js";
|
|
14
|
-
import highlightCSS from "./highlight.css.js";
|
|
15
|
-
let BdHighlightSection = class BdHighlightSection extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.highlightText = "";
|
|
19
|
-
this.subTitle = "";
|
|
20
|
-
this.as = "h3";
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [highlightCSS]; }
|
|
23
|
-
/* The headline is built from the light DOM, so a change there -- text set
|
|
24
|
-
after upgrade, children a framework adds later, an edit -- has to render
|
|
25
|
-
again. Rendering never touches the light DOM, so this cannot loop. */
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
super.connectedCallback();
|
|
28
|
-
this._observer = new MutationObserver(() => this.requestUpdate());
|
|
29
|
-
this._observer.observe(this, { childList: true, characterData: true, subtree: true });
|
|
30
|
-
}
|
|
31
|
-
disconnectedCallback() {
|
|
32
|
-
this._observer?.disconnect();
|
|
33
|
-
super.disconnectedCallback();
|
|
34
|
-
}
|
|
35
|
-
/* The headline with the phrase marked, or null when it cannot be.
|
|
36
|
-
|
|
37
|
-
This used to split this.textContent and render the halves as plain
|
|
38
|
-
strings, so the moment the phrase matched, every element in the heading
|
|
39
|
-
was gone from the page: an <em>, a <strong>, a <br>, a link -- measured,
|
|
40
|
-
a slotted <a href> stopped existing anywhere in the rendered tree. Now
|
|
41
|
-
the light DOM is copied node for node, markup and all, and only the
|
|
42
|
-
text node holding the first occurrence is split around the mark.
|
|
43
|
-
|
|
44
|
-
A copy, not the consumer's own nodes, so the page's DOM is never
|
|
45
|
-
rearranged under it. The cost is that what renders is a clone: markup,
|
|
46
|
-
attributes and links survive, but a listener a script attached to one of
|
|
47
|
-
those elements does not. A phrase that crosses an element boundary --
|
|
48
|
-
"family <em>member</em>" -- is in no single text node, so it is not
|
|
49
|
-
marked and the content renders through the slot as it is. */
|
|
50
|
-
_markedHeadline(phrase) {
|
|
51
|
-
const copy = document.createDocumentFragment();
|
|
52
|
-
for (const node of this.childNodes)
|
|
53
|
-
copy.append(node.cloneNode(true));
|
|
54
|
-
const walker = document.createTreeWalker(copy, NodeFilter.SHOW_TEXT);
|
|
55
|
-
for (let text = walker.nextNode(); text; text = walker.nextNode()) {
|
|
56
|
-
const at = text.data.indexOf(phrase);
|
|
57
|
-
if (at === -1)
|
|
58
|
-
continue;
|
|
59
|
-
const match = text.splitText(at);
|
|
60
|
-
match.splitText(phrase.length);
|
|
61
|
-
const mark = markTemplate().content.cloneNode(true);
|
|
62
|
-
mark.querySelector(".highlight-text").textContent = phrase;
|
|
63
|
-
match.replaceWith(mark);
|
|
64
|
-
return copy;
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
render() {
|
|
69
|
-
const highlightText = this.highlightText || "";
|
|
70
|
-
const headline = highlightText ? this._markedHeadline(highlightText) : null;
|
|
71
|
-
const subtitleTemplate = this.subTitle
|
|
72
|
-
? html `<bd-p variant="small" class="sub-title">${this.subTitle}</bd-p>`
|
|
73
|
-
: null;
|
|
74
|
-
return html `
|
|
75
|
-
${subtitleTemplate}
|
|
76
|
-
<bd-h as="${this.as}" class="headline">${headline ?? html `<slot></slot>`}</bd-h>
|
|
77
|
-
`;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: String, attribute: "highlight-text" })
|
|
82
|
-
], BdHighlightSection.prototype, "highlightText", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: String, attribute: "sub-title" })
|
|
85
|
-
], BdHighlightSection.prototype, "subTitle", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ type: String })
|
|
88
|
-
], BdHighlightSection.prototype, "as", void 0);
|
|
89
|
-
BdHighlightSection = __decorate([
|
|
90
|
-
defineElement("bd-highlight")
|
|
91
|
-
], BdHighlightSection);
|
|
92
|
-
/* The mark's own markup: the tint, the phrase, and the bar-and-dot at each
|
|
93
|
-
end. Built once, on first use, and cloned for every headline. No
|
|
94
|
-
whitespace between the pieces, because inline whitespace renders as a
|
|
95
|
-
space beside the phrase. */
|
|
96
|
-
let template;
|
|
97
|
-
const markTemplate = () => {
|
|
98
|
-
if (!template) {
|
|
99
|
-
template = document.createElement("template");
|
|
100
|
-
template.innerHTML = [
|
|
101
|
-
'<span class="highlight">',
|
|
102
|
-
'<span class="highlight-anchor"><span class="highlight-deco left">',
|
|
103
|
-
'<svg class="highlight-svg-ellipse-top" viewBox="0 0 8 8"><ellipse cx="4" cy="4" rx="4" ry="4"/></svg>',
|
|
104
|
-
'<svg class="highlight-svg-rect" viewBox="0 0 2 42" preserveAspectRatio="none"><rect x="0" y="0" width="2" height="42"/></svg>',
|
|
105
|
-
'</span></span>',
|
|
106
|
-
'<span class="highlight-text"></span>',
|
|
107
|
-
'<span class="highlight-anchor"><span class="highlight-deco right">',
|
|
108
|
-
'<svg class="highlight-svg-rect" viewBox="0 0 2 42" preserveAspectRatio="none"><rect x="0" y="0" width="2" height="42"/></svg>',
|
|
109
|
-
'<svg class="highlight-svg-ellipse-bottom" viewBox="0 0 8 8"><ellipse cx="4" cy="4" rx="4" ry="4"/></svg>',
|
|
110
|
-
'</span></span>',
|
|
111
|
-
'</span>'
|
|
112
|
-
].join("");
|
|
113
|
-
}
|
|
114
|
-
return template;
|
|
115
|
-
};
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import n from"./highlight.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.highlightText=``,this.subTitle=``,this.as=`h3`}static{this.styles=[n]}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>this.requestUpdate()),this._observer.observe(this,{childList:!0,characterData:!0,subtree:!0})}disconnectedCallback(){this._observer?.disconnect(),super.disconnectedCallback()}_markedHeadline(e){let t=document.createDocumentFragment();for(let e of this.childNodes)t.append(e.cloneNode(!0));let n=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);for(let r=n.nextNode();r;r=n.nextNode()){let n=r.data.indexOf(e);if(n===-1)continue;let i=r.splitText(n);i.splitText(e.length);let a=c().content.cloneNode(!0);return a.querySelector(`.highlight-text`).textContent=e,i.replaceWith(a),t}return null}render(){let e=this.highlightText||``,t=e?this._markedHeadline(e):null,n=this.subTitle?i`<bd-p variant="small" class="sub-title">${this.subTitle}</bd-p>`:null;return i`
|
|
2
|
+
${n}
|
|
3
|
+
<bd-h as="${this.as}" class="headline">${t??i`<slot></slot>`}</bd-h>
|
|
4
|
+
`}};t([a({type:String,attribute:`highlight-text`})],o.prototype,`highlightText`,void 0),t([a({type:String,attribute:`sub-title`})],o.prototype,`subTitle`,void 0),t([a({type:String})],o.prototype,`as`,void 0),o=t([e(`bd-highlight`)],o);var s,c=()=>(s||(s=document.createElement(`template`),s.innerHTML=`<span class="highlight"><span class="highlight-anchor"><span class="highlight-deco left"><svg class="highlight-svg-ellipse-top" viewBox="0 0 8 8"><ellipse cx="4" cy="4" rx="4" ry="4"/></svg><svg class="highlight-svg-rect" viewBox="0 0 2 42" preserveAspectRatio="none"><rect x="0" y="0" width="2" height="42"/></svg></span></span><span class="highlight-text"></span><span class="highlight-anchor"><span class="highlight-deco right"><svg class="highlight-svg-rect" viewBox="0 0 2 42" preserveAspectRatio="none"><rect x="0" y="0" width="2" height="42"/></svg><svg class="highlight-svg-ellipse-bottom" viewBox="0 0 8 8"><ellipse cx="4" cy="4" rx="4" ry="4"/></svg></span></span></span>`),s);
|
|
116
5
|
//# sourceMappingURL=highlight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.js","
|
|
1
|
+
{"version":3,"file":"highlight.js","names":["highlightCSS","_decorate","__decorate","highlight_css_default","BdHighlightSection","LitElement","_args","copy","node","walker","text","at","phrase","match","mark","markTemplate","highlightText","headline","subtitleTemplate","property","defineElement","template"],"sources":["../../../../src/components/highlight/highlight.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 \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport highlightCSS from \"./highlight.css.ts\";\n\n@defineElement(\"bd-highlight\")\nclass BdHighlightSection extends LitElement {\n @property({ type: String, attribute: \"highlight-text\" })\n highlightText = \"\";\n @property({ type: String, attribute: \"sub-title\" })\n subTitle = \"\";\n @property({ type: String })\n as = \"h3\";\n\n _observer?: MutationObserver;\n\n static styles = [highlightCSS];\n\n /* The headline is built from the light DOM, so a change there -- text set\n after upgrade, children a framework adds later, an edit -- has to render\n again. Rendering never touches the light DOM, so this cannot loop. */\n connectedCallback() {\n super.connectedCallback();\n this._observer = new MutationObserver(() => this.requestUpdate());\n this._observer.observe(this, { childList: true, characterData: true, subtree: true });\n }\n\n disconnectedCallback() {\n this._observer?.disconnect();\n super.disconnectedCallback();\n }\n\n /* The headline with the phrase marked, or null when it cannot be.\n\n This used to split this.textContent and render the halves as plain\n strings, so the moment the phrase matched, every element in the heading\n was gone from the page: an <em>, a <strong>, a <br>, a link -- measured,\n a slotted <a href> stopped existing anywhere in the rendered tree. Now\n the light DOM is copied node for node, markup and all, and only the\n text node holding the first occurrence is split around the mark.\n\n A copy, not the consumer's own nodes, so the page's DOM is never\n rearranged under it. The cost is that what renders is a clone: markup,\n attributes and links survive, but a listener a script attached to one of\n those elements does not. A phrase that crosses an element boundary --\n \"family <em>member</em>\" -- is in no single text node, so it is not\n marked and the content renders through the slot as it is. */\n _markedHeadline(phrase: string) {\n const copy = document.createDocumentFragment();\n for (const node of this.childNodes) copy.append(node.cloneNode(true));\n\n const walker = document.createTreeWalker(copy, NodeFilter.SHOW_TEXT);\n for (let text = walker.nextNode() as Text | null; text; text = walker.nextNode() as Text | null) {\n const at = text.data.indexOf(phrase);\n if (at === -1) continue;\n const match = text.splitText(at);\n match.splitText(phrase.length);\n const mark = markTemplate().content.cloneNode(true) as DocumentFragment;\n mark.querySelector(\".highlight-text\")!.textContent = phrase;\n match.replaceWith(mark);\n return copy;\n }\n return null;\n }\n\n render() {\n const highlightText = this.highlightText || \"\";\n const headline = highlightText ? this._markedHeadline(highlightText) : null;\n\n const subtitleTemplate = this.subTitle\n ? html`<bd-p variant=\"small\" class=\"sub-title\">${this.subTitle}</bd-p>`\n : null;\n\n return html`\n ${subtitleTemplate}\n <bd-h as=\"${this.as}\" class=\"headline\">${headline ?? html`<slot></slot>`}</bd-h>\n `;\n }\n\n}\n\n/* The mark's own markup: the tint, the phrase, and the bar-and-dot at each\n end. Built once, on first use, and cloned for every headline. No\n whitespace between the pieces, because inline whitespace renders as a\n space beside the phrase. */\nlet template: HTMLTemplateElement | undefined;\nconst markTemplate = () => {\n if (!template) {\n template = document.createElement(\"template\");\n template.innerHTML = [\n '<span class=\"highlight\">',\n '<span class=\"highlight-anchor\"><span class=\"highlight-deco left\">',\n '<svg class=\"highlight-svg-ellipse-top\" viewBox=\"0 0 8 8\"><ellipse cx=\"4\" cy=\"4\" rx=\"4\" ry=\"4\"/></svg>',\n '<svg class=\"highlight-svg-rect\" viewBox=\"0 0 2 42\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"0\" width=\"2\" height=\"42\"/></svg>',\n '</span></span>',\n '<span class=\"highlight-text\"></span>',\n '<span class=\"highlight-anchor\"><span class=\"highlight-deco right\">',\n '<svg class=\"highlight-svg-rect\" viewBox=\"0 0 2 42\" preserveAspectRatio=\"none\"><rect x=\"0\" y=\"0\" width=\"2\" height=\"42\"/></svg>',\n '<svg class=\"highlight-svg-ellipse-bottom\" viewBox=\"0 0 8 8\"><ellipse cx=\"4\" cy=\"4\" rx=\"4\" ry=\"4\"/></svg>',\n '</span></span>',\n '</span>'\n ].join(\"\");\n }\n return template;\n};\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-highlight\": BdHighlightSection;\n }\n}\n"],"mappings":"A,+VASA,IACMI,EADN,cACiCC,CAAW,C,8BAE1B,KAAA,cAAA,GAEL,KAAA,SAAA,GAEN,KAAA,GAAA,I,QAIW,KAAA,OAAA,CAACL,CAAY,C,CAK7B,mBAAoB,CAClB,MAAM,kBAAkB,EACxB,KAAK,UAAY,IAAI,qBAAuB,KAAK,cAAc,CAAC,EAChE,KAAK,UAAU,QAAQ,KAAM,CAAE,UAAW,GAAM,cAAe,GAAM,QAAS,EAAK,CAAC,CACtF,CAEA,sBAAuB,CACrB,KAAK,WAAW,WAAW,EAC3B,MAAM,qBAAqB,CAC7B,CAiBA,gBAAgB,EAAgB,CAC9B,IAAMO,EAAO,SAAS,uBAAuB,EAC7C,IAAK,IAAMC,KAAQ,KAAK,WAAYD,EAAK,OAAOC,EAAK,UAAU,EAAI,CAAC,EAEpE,IAAMC,EAAS,SAAS,iBAAiBF,EAAM,WAAW,SAAS,EACnE,IAAK,IAAIG,EAAOD,EAAO,SAAS,EAAkBC,EAAM,EAAOD,EAAO,SAAS,EAAkB,CAC/F,IAAME,EAAKD,EAAK,KAAK,QAAQE,CAAM,EACnC,GAAID,IAAO,GAAI,SACf,IAAME,EAAQH,EAAK,UAAUC,CAAE,EAC/BE,EAAM,UAAUD,EAAO,MAAM,EAC7B,IAAME,EAAOC,EAAa,CAAC,CAAC,QAAQ,UAAU,EAAI,EAGlD,MAFA,GAAK,cAAc,iBAAiB,CAAC,CAAE,YAAcH,EACrDC,EAAM,YAAYC,CAAI,EACfP,CACT,CACA,OAAO,IACT,CAEA,QAAS,CACP,IAAMS,EAAgB,KAAK,eAAiB,GACtCC,EAAWD,EAAgB,KAAK,gBAAgBA,CAAa,EAAI,KAEjEE,EAAmB,KAAK,SAC1B,CAAI,2CAA2C,KAAK,SAAS,SAC7D,KAEJ,MAAO,EAAI;QACPA,EAAiB;kBACP,KAAK,GAAG,qBAAqBD,GAAY,CAAI,gBAAgB;KAE7E,CAEF,EAxEGhB,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,gBAAiB,CAAC,CAAA,EAAAf,EAAA,UAAA,gBAAA,IAAA,EAAA,EAEtDH,EAAA,CAAAkB,EAAS,CAAE,KAAM,OAAQ,UAAW,WAAY,CAAC,CAAA,EAAAf,EAAA,UAAA,WAAA,IAAA,EAAA,EAEjDH,EAAA,CAAAkB,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAf,EAAA,UAAA,KAAA,IAAA,EAAA,EAN3B,EAAAH,EAAA,CAAAmB,EAAc,cAAc,CAAA,EAAAhB,CAAA,EAgF7B,IAAIiB,EACEN,OACCM,IACH,EAAW,SAAS,cAAc,UAAU,EAC5C,EAAS,UAAY,6qBAchBA"}
|
|
@@ -1,24 +1,6 @@
|
|
|
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
|
-
// icons/analysis-icon.ts
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { BdIconElement } from "./icon-element.js";
|
|
11
|
-
let AnalysisIcon = class AnalysisIcon extends BdIconElement {
|
|
12
|
-
static { this.defaultSize = "2xl"; }
|
|
13
|
-
render() {
|
|
14
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{BdIconElement as n}from"./icon-element.js";import{html as r}from"lit";var i=class extends n{static{this.defaultSize=`2xl`}render(){return r`
|
|
15
2
|
<svg viewBox="0 0 48 49" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
16
3
|
<path d="M19.5 3C13.5938 3 8.15625 6.1875 5.15625 11.25C2.25 16.4062 2.25 22.6875 5.15625 27.75C8.15625 32.9062 13.5938 36 19.5 36C25.3125 36 30.75 32.9062 33.75 27.75C36.6562 22.6875 36.6562 16.4062 33.75 11.25C30.75 6.1875 25.3125 3 19.5 3ZM19.5 39C8.71875 39 0 30.2812 0 19.5C0 8.8125 8.71875 0 19.5 0C30.1875 0 39 8.8125 39 19.5C39 24.375 37.2188 28.7812 34.3125 32.25L47.5312 45.4688C48.0938 46.0312 48.0938 47.0625 47.5312 47.625C46.9688 48.1875 45.9375 48.1875 45.375 47.625L32.1562 34.3125C28.7812 37.3125 24.2812 39 19.5 39ZM12 21C12 20.25 12.6562 19.5 13.5 19.5C14.25 19.5 15 20.25 15 21V27C15 27.8438 14.25 28.5 13.5 28.5C12.6562 28.5 12 27.8438 12 27V21ZM18 12C18 11.25 18.6562 10.5 19.5 10.5C20.25 10.5 21 11.25 21 12V27C21 27.8438 20.25 28.5 19.5 28.5C18.6562 28.5 18 27.8438 18 27V12ZM24 18C24 17.25 24.6562 16.5 25.5 16.5C26.25 16.5 27 17.25 27 18V27C27 27.8438 26.25 28.5 25.5 28.5C24.6562 28.5 24 27.8438 24 27V18Z" fill="currentColor"/>
|
|
17
4
|
</svg>
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
AnalysisIcon = __decorate([
|
|
22
|
-
defineElement("bd-analysis-icon")
|
|
23
|
-
], AnalysisIcon);
|
|
5
|
+
`}};i=t([e(`bd-analysis-icon`)],i);
|
|
24
6
|
//# sourceMappingURL=analysis-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analysis-icon.js","
|
|
1
|
+
{"version":3,"file":"analysis-icon.js","names":["_decorate","__decorate","AnalysisIcon","BdIconElement","defineElement"],"sources":["../../../../src/components/icons/analysis-icon.ts"],"sourcesContent":["// icons/analysis-icon.ts\nimport { html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { BdIconElement } from \"./icon-element.ts\";\n@defineElement(\"bd-analysis-icon\")\nclass AnalysisIcon extends BdIconElement {\n static defaultSize = \"2xl\";\n\n render() {\n return html`\n <svg viewBox=\"0 0 48 49\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-hidden=\"true\">\n <path d=\"M19.5 3C13.5938 3 8.15625 6.1875 5.15625 11.25C2.25 16.4062 2.25 22.6875 5.15625 27.75C8.15625 32.9062 13.5938 36 19.5 36C25.3125 36 30.75 32.9062 33.75 27.75C36.6562 22.6875 36.6562 16.4062 33.75 11.25C30.75 6.1875 25.3125 3 19.5 3ZM19.5 39C8.71875 39 0 30.2812 0 19.5C0 8.8125 8.71875 0 19.5 0C30.1875 0 39 8.8125 39 19.5C39 24.375 37.2188 28.7812 34.3125 32.25L47.5312 45.4688C48.0938 46.0312 48.0938 47.0625 47.5312 47.625C46.9688 48.1875 45.9375 48.1875 45.375 47.625L32.1562 34.3125C28.7812 37.3125 24.2812 39 19.5 39ZM12 21C12 20.25 12.6562 19.5 13.5 19.5C14.25 19.5 15 20.25 15 21V27C15 27.8438 14.25 28.5 13.5 28.5C12.6562 28.5 12 27.8438 12 27V21ZM18 12C18 11.25 18.6562 10.5 19.5 10.5C20.25 10.5 21 11.25 21 12V27C21 27.8438 20.25 28.5 19.5 28.5C18.6562 28.5 18 27.8438 18 27V12ZM24 18C24 17.25 24.6562 16.5 25.5 16.5C26.25 16.5 27 17.25 27 18V27C27 27.8438 26.25 28.5 25.5 28.5C24.6562 28.5 24 27.8438 24 27V18Z\" fill=\"currentColor\"/>\n </svg>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-analysis-icon\": AnalysisIcon;\n }\n}\n"],"mappings":"A,mNAIA,IACME,EADN,cAC2BC,CAAc,C,OAClB,KAAA,YAAA,K,CAErB,QAAS,CACP,MAAO,EAAI;;;;KAKb,CACF,EAXC,EAAAH,EAAA,CAAAI,EAAc,kBAAkB,CAAA,EAAAF,CAAA"}
|
|
@@ -1,24 +1,6 @@
|
|
|
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
|
-
// icons/arrow-down-icon.ts
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { BdIconElement } from "./icon-element.js";
|
|
11
|
-
let ArrowDownIcon = class ArrowDownIcon extends BdIconElement {
|
|
12
|
-
static { this.defaultSize = "md"; }
|
|
13
|
-
render() {
|
|
14
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{BdIconElement as n}from"./icon-element.js";import{html as r}from"lit";var i=class extends n{static{this.defaultSize=`md`}render(){return r`
|
|
15
2
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
|
16
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99999 11.9823L3.56693 5.54919L1.79916 7.31696L9.11611 14.6339C9.60426 15.1221 10.3957 15.1221 10.8839 14.6339L18.2008 7.31696L16.433 5.54919L9.99999 11.9823Z" fill="currentColor"/>
|
|
17
4
|
</svg>
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
ArrowDownIcon = __decorate([
|
|
22
|
-
defineElement("bd-arrow-down-icon")
|
|
23
|
-
], ArrowDownIcon);
|
|
5
|
+
`}};i=t([e(`bd-arrow-down-icon`)],i);
|
|
24
6
|
//# sourceMappingURL=arrow-down-icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-down-icon.js","
|
|
1
|
+
{"version":3,"file":"arrow-down-icon.js","names":["_decorate","__decorate","ArrowDownIcon","BdIconElement","defineElement"],"sources":["../../../../src/components/icons/arrow-down-icon.ts"],"sourcesContent":["// icons/arrow-down-icon.ts\nimport { html } from \"lit\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { BdIconElement } from \"./icon-element.ts\";\n@defineElement(\"bd-arrow-down-icon\")\nclass ArrowDownIcon extends BdIconElement {\n static defaultSize = \"md\";\n\n render() {\n return html`\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9.99999 11.9823L3.56693 5.54919L1.79916 7.31696L9.11611 14.6339C9.60426 15.1221 10.3957 15.1221 10.8839 14.6339L18.2008 7.31696L16.433 5.54919L9.99999 11.9823Z\" fill=\"currentColor\"/>\n </svg>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-arrow-down-icon\": ArrowDownIcon;\n }\n}\n"],"mappings":"A,mNAIA,IACME,EADN,cAC4BC,CAAc,C,OACnB,KAAA,YAAA,I,CAErB,QAAS,CACP,MAAO,EAAI;;;;KAKb,CACF,EAXC,EAAAH,EAAA,CAAAI,EAAc,oBAAoB,CAAA,EAAAF,CAAA"}
|
|
@@ -1,52 +1,6 @@
|
|
|
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
|
-
// icons/arrow-icon.ts
|
|
8
|
-
import { html } from "lit";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { BdIconElement, rtlMirror } from "./icon-element.js";
|
|
11
|
-
/**
|
|
12
|
-
* The trailing arrow on bd-contact-button.
|
|
13
|
-
*
|
|
14
|
-
* Moved here from src/components/button/icons.js, which was the only place in
|
|
15
|
-
* the package registering an icon element outside this directory, and the only
|
|
16
|
-
* icon not extending BdIconElement. It carried its own :host and .arrow-icon
|
|
17
|
-
* rules -- inline-flex, height from --icon-sm-size, fill: currentColor -- which
|
|
18
|
-
* are exactly what the base class does, so the move deletes them rather than
|
|
19
|
-
* moving them. It now takes `size` from the icon scale like every sibling,
|
|
20
|
-
* where before it was fixed at sm whatever a consumer asked for.
|
|
21
|
-
*
|
|
22
|
-
* ARTWORK. Eclipse `arrow right fill`, exported from the Icon inventory table in the
|
|
23
|
-
* foundation Figma file. It replaces a 512x404.39 drawing of our own, and that
|
|
24
|
-
* changed the aspect ratio: the old box was 1.266 wide per unit of height, the
|
|
25
|
-
* new one is square. icon-element.ts sizes by height with width auto, so at sm
|
|
26
|
-
* this arrow went from 20.26x16 to 16x16 -- narrower beside the same label.
|
|
27
|
-
*
|
|
28
|
-
* NAMING, WHICH IS THE CONFUSING PART. This is the only TRUE arrow in the set:
|
|
29
|
-
* a shaft with a head. bd-arrow-up-icon,
|
|
30
|
-
* bd-arrow-down-icon and bd-arrow-right-icon are CHEVRONS despite the name --
|
|
31
|
-
* carets with no shaft, on a 20x20 box. So "arrow" means two different drawings
|
|
32
|
-
* here, and a caller reaching for bd-arrow-right-icon expecting this one gets a
|
|
33
|
-
* chevron. Renaming is a public-API change and is not done here; it is recorded
|
|
34
|
-
* so the next person meets it in the file rather than in a review.
|
|
35
|
-
*/
|
|
36
|
-
let BdArrowIcon = class BdArrowIcon extends BdIconElement {
|
|
37
|
-
static { this.defaultSize = "sm"; }
|
|
38
|
-
// forward: it points the way the line reads
|
|
39
|
-
static { this.styles = [BdIconElement.styles, rtlMirror]; }
|
|
40
|
-
render() {
|
|
41
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import{BdIconElement as n,rtlMirror as r}from"./icon-element.js";import{html as i}from"lit";var a=class extends n{static{this.defaultSize=`sm`}static{this.styles=[n.styles,r]}render(){return i`
|
|
42
2
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
|
43
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.482 11.2501L10.9327 14.7993L12.7005 16.5671L19.2675 10L12.7005 3.43298L10.9327 5.20075L14.482 8.75006L1.875 8.75006V11.2501L14.482 11.2501Z" fill="currentColor"/>
|
|
44
4
|
</svg>
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
BdArrowIcon = __decorate([
|
|
49
|
-
defineElement("bd-arrow-icon")
|
|
50
|
-
], BdArrowIcon);
|
|
51
|
-
export { BdArrowIcon };
|
|
5
|
+
`}};a=t([e(`bd-arrow-icon`)],a);export{a as BdArrowIcon};
|
|
52
6
|
//# sourceMappingURL=arrow-icon.js.map
|