@repobit/dex-system-design 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +14 -3
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","
|
|
1
|
+
{"version":3,"file":"modal.js","names":["modalCSS","_decorate","__decorate","modal_css_default","CLOSEDBY","BdModal","LitElement","_args","box","dialog","property","defineElement"],"sources":["../../../../src/components/modal/modal.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 modalCSS from \"#components/modal/modal.css.ts\";\nimport \"#components/paragraph/paragraph.ts\";\n\n/* <dialog closedby> is newer than the policy's Widely available target: where\n the browser has it, a click on the backdrop is a close request like Esc;\n where it does not, the click is recognised here. */\nconst CLOSEDBY = \"closedBy\" in HTMLDialogElement.prototype;\n\n/**\n * A dialog: a scrim, a centred panel, a title, a description and a close\n * control. The consuming page owns `open` and reacts to close-modal.\n *\n * It is a native <dialog> opened with showModal(), and that is what makes it\n * modal rather than a panel drawn over the page. The browser supplies what\n * this element used to approximate or leave out: the dialog role and modal\n * state, a page made inert behind it, focus moved in on open and returned to\n * whatever opened it on close, Esc, and the top layer, so no z-index decides\n * whether it is on top. Until it was a <dialog> it was a <div role=\"dialog\">\n * without aria-modal -- measured, one Tab reached the close button and the\n * next left the dialog entirely with seven controls still reachable behind\n * it -- and closing it had to blur the focus it left behind by hand.\n *\n * Every way out asks the page instead of closing: Esc and a backdrop click\n * arrive as `cancel`, which is prevented and turned into close-modal, and the\n * Close button dispatches close-modal directly. The dialog closes when the\n * page sets open back to false. A browser may refuse to let a second Esc be\n * cancelled; it then closes the dialog itself, and `close` still tells the\n * page.\n *\n * The icon is `alt=\"\"`. It was `alt=\"icon\"`, which a screen reader announced\n * as the word \"icon\" beside a title that already says what the dialog is.\n */\n@defineElement(\"bd-modal\")\nexport class BdModal extends LitElement {\n static styles = [modalCSS];\n\n @property({ type: Boolean, reflect: true })\n open?: boolean;\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n icon?: string;\n @property({ type: String })\n modalText?: string;\n\n get _dialog() {\n return this.renderRoot?.querySelector(\"dialog\");\n }\n\n _onClose() {\n this.dispatchEvent(new CustomEvent(\"close-modal\", { bubbles: true, composed: true }));\n }\n\n _onCancel(e: Event) {\n e.preventDefault();\n this._onClose();\n }\n\n /* Only a dialog that is actually closed counts. A `close` event can arrive\n after the page has already reopened the dialog -- measured in Chromium:\n closed from a backdrop click, the event was delivered on the next\n showModal(), and read as a close it asked the page to shut the dialog it\n had just opened. */\n _onDialogClose() {\n if (this.open && !this._dialog?.open) this._onClose();\n }\n\n /* The backdrop belongs to the dialog, so a click on it targets the dialog\n itself; a click on the panel's own padding does too, and is told apart by\n landing inside the dialog's box. */\n _onClick(e: MouseEvent) {\n if (CLOSEDBY || e.target !== this._dialog) return;\n const box = this._dialog!.getBoundingClientRect();\n const inside = e.clientX >= box.left && e.clientX <= box.right\n && e.clientY >= box.top && e.clientY <= box.bottom;\n if (!inside) this._onClose();\n }\n\n /* Reconnecting keeps the rendered dialog, but not as a modal: removing a\n dialog from the document takes it out of the top layer and drops its\n modal state while leaving its open attribute, so a modal moved while open\n comes back an ordinary open dialog -- in the flow, no backdrop, the page\n behind it live and no Esc. _sync() asks whether it is :modal, not only\n open, and shows it as one again. */\n connectedCallback() {\n super.connectedCallback();\n if (this.hasUpdated) this._sync();\n }\n\n updated() {\n this._sync();\n }\n\n _sync() {\n const dialog = this._dialog;\n if (!dialog?.isConnected) return;\n if (this.open && !dialog.matches(\":modal\")) {\n // showModal() throws on a dialog that is already open, modal or not\n if (dialog.open) dialog.close();\n dialog.showModal();\n } else if (!this.open && dialog.open) {\n dialog.close();\n }\n }\n\n render() {\n return html`\n <dialog\n class=\"bd-modal\"\n closedby=\"any\"\n aria-labelledby=\"modal-title\"\n aria-describedby=\"modal-description\"\n @cancel=\"${this._onCancel}\"\n @close=\"${this._onDialogClose}\"\n @click=\"${this._onClick}\"\n >\n ${this.icon\n ? html`<img src=\"${this.icon}\" alt=\"\" class=\"bd-carousel-modal-icon\" />`\n : \"\"}\n <bd-h as=\"h2\" id=\"modal-title\" paddingBottom=\"16\">${this.title}</bd-h>\n <bd-p variant=\"regular\" id=\"modal-description\">${this.modalText}</bd-p>\n <button @click=\"${this._onClose}\" aria-label=\"Close modal\" autofocus>Close</button>\n </dialog>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-modal\": BdModal;\n }\n interface HTMLElementEventMap {\n \"close-modal\": CustomEvent<null>;\n }\n}\n"],"mappings":"A,2VAYA,IAAMI,EAAW,aAAc,kBAAkB,UA2BpCC,EAAN,cAAsBC,CAAW,C,8BAM9B,KAAA,MAAA,E,QALQ,KAAA,OAAA,CAACN,CAAQ,C,CAWzB,IAAI,SAAU,CACZ,OAAO,KAAK,YAAY,cAAc,QAAQ,CAChD,CAEA,UAAW,CACT,KAAK,cAAc,IAAI,YAAY,cAAe,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,CAAC,CACtF,CAEA,UAAU,EAAU,CAClB,EAAE,eAAe,EACjB,KAAK,SAAS,CAChB,CAOA,gBAAiB,CACX,KAAK,MAAQ,CAAC,KAAK,SAAS,MAAM,KAAK,SAAS,CACtD,CAKA,SAAS,EAAe,CACtB,GAAII,GAAY,EAAE,SAAW,KAAK,QAAS,OAC3C,IAAMI,EAAM,KAAK,QAAS,sBAAsB,EACjC,EAAE,SAAWA,EAAI,MAAQ,EAAE,SAAWA,EAAI,OACpD,EAAE,SAAWA,EAAI,KAAO,EAAE,SAAWA,EAAI,QACjC,KAAK,SAAS,CAC7B,CAQA,mBAAoB,CAClB,MAAM,kBAAkB,EACpB,KAAK,YAAY,KAAK,MAAM,CAClC,CAEA,SAAU,CACR,KAAK,MAAM,CACb,CAEA,OAAQ,CACN,IAAMC,EAAS,KAAK,QACfA,GAAQ,cACT,KAAK,MAAQ,CAACA,EAAO,QAAQ,QAAQ,GAEnCA,EAAO,MAAMA,EAAO,MAAM,EAC9BA,EAAO,UAAU,GACR,CAAC,KAAK,MAAQA,EAAO,MAC9BA,EAAO,MAAM,EAEjB,CAEA,QAAS,CACP,MAAO,EAAI;;;;;;mBAMI,KAAK,UAAU;kBAChB,KAAK,eAAe;kBACpB,KAAK,SAAS;;UAEtB,KAAK,KACH,CAAI,aAAa,KAAK,KAAK,4CAC3B,GAAG;4DAC6C,KAAK,MAAM;yDACd,KAAK,UAAU;0BAC9C,KAAK,SAAS;;KAGtC,CACF,EAzFGR,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzCJ,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBJ,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAL,EAAA,UAAA,YAAA,IAAA,EAAA,EAV3B,EAAAJ,EAAA,CAAAU,EAAc,UAAU,CAAA,EAAAN,CAAA,E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropertyValues } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
3
|
import { BdHero as MotionArtElement } from "../../vendor/motion-art/motion-art-element.js";
|
|
4
4
|
/**
|
|
5
5
|
* The homepage's animated illustrations, one canvas each, square:
|
|
@@ -1,115 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { defineElement } from "../shared/define-element.js";
|
|
8
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
9
|
-
import "../../tokens/tokens.js";
|
|
10
|
-
import { BdHero as MotionArtElement } from "../../vendor/motion-art/motion-art-element.js";
|
|
11
|
-
const BRAND_GROUND = "var(--color-surface-brand)";
|
|
12
|
-
/* Each palette made once per ground and then reused: the generated element
|
|
13
|
-
restarts its clock whenever its palette is a different object. */
|
|
14
|
-
const grounded = new WeakMap();
|
|
15
|
-
function onGround(palette, ground) {
|
|
16
|
-
let byGround = grounded.get(palette);
|
|
17
|
-
if (!byGround)
|
|
18
|
-
grounded.set(palette, byGround = new Map());
|
|
19
|
-
if (!byGround.has(ground))
|
|
20
|
-
byGround.set(ground, { ...palette, substrate: ground });
|
|
21
|
-
return byGround.get(ground);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The homepage's animated illustrations, one canvas each, square:
|
|
25
|
-
* brand-surface the B on a glass sphere of network (bd-hero, media slot)
|
|
26
|
-
* mesh-globe a turning globe with three badges (consumer AI card)
|
|
27
|
-
* layer-stack four platform layers with captions (enterprise AI card)
|
|
28
|
-
* geo-core a geodesic cage round a core (Labs AI card)
|
|
29
|
-
*
|
|
30
|
-
* The element is generated outside this package and vendored as is; see
|
|
31
|
-
* src/vendor/motion-art/README.md. The generated class is still called BdHero;
|
|
32
|
-
* this module imports it as MotionArtElement and registers it under the
|
|
33
|
-
* package's own name, because bd-hero is the homepage band.
|
|
34
|
-
*
|
|
35
|
-
* Three things differ from the generated element:
|
|
36
|
-
* - no substrate: it draws on a transparent canvas, so the ground is the
|
|
37
|
-
* component's own --color-surface-brand and a partner brand shows through;
|
|
38
|
-
* - the brand tones' ground colour is that token too, where the generated
|
|
39
|
-
* element paints its own blue -- see willUpdate();
|
|
40
|
-
* - the pill and badge type is the foundation's sans, read from the token.
|
|
41
|
-
*
|
|
42
|
-
* It draws only while on screen, holds a still frame under
|
|
43
|
-
* prefers-reduced-motion, and stops on `paused`. It draws no control of its
|
|
44
|
-
* own, and the hero and the brand bento card that hold it add none.
|
|
45
|
-
*/
|
|
46
|
-
let MotionArt = class MotionArt extends MotionArtElement {
|
|
47
|
-
constructor() {
|
|
48
|
-
super();
|
|
49
|
-
this.substrate = false;
|
|
50
|
-
// The generated element starts on its brand tone, so this is the blue it is drawn on.
|
|
51
|
-
this._generatedGround = this.palette.substrate;
|
|
52
|
-
}
|
|
53
|
-
connectedCallback() {
|
|
54
|
-
super.connectedCallback();
|
|
55
|
-
if (!this.labelFont) {
|
|
56
|
-
const sans = getComputedStyle(this).getPropertyValue("--typography-fontFamily-sans")
|
|
57
|
-
.trim();
|
|
58
|
-
if (sans)
|
|
59
|
-
this.labelFont = sans;
|
|
60
|
-
}
|
|
61
|
-
/* The art takes its size from its first ResizeObserver delivery, and until
|
|
62
|
-
then has no tile and draws nothing. That delivery comes a frame after
|
|
63
|
-
connect, after the generated element's own observer, which it follows
|
|
64
|
-
because observers deliver in the order they were created. */
|
|
65
|
-
this._sized = new Promise(resolve => {
|
|
66
|
-
this._resolveSized = resolve;
|
|
67
|
-
const first = new ResizeObserver(() => { first.disconnect(); resolve(); });
|
|
68
|
-
first.observe(this);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
disconnectedCallback() {
|
|
72
|
-
// Removed before its first delivery: nothing is coming, so nobody waits.
|
|
73
|
-
this._resolveSized?.();
|
|
74
|
-
super.disconnectedCallback();
|
|
75
|
-
}
|
|
76
|
-
/* The brand and solid tones were drawn on that blue and paint with it
|
|
77
|
-
wherever the ground should show through: the caption and badge type,
|
|
78
|
-
knocked out of a white pill, and the faces the canvas hides behind
|
|
79
|
-
others. Here the ground is --color-surface-brand, so they take that,
|
|
80
|
-
through the custom property itself so the type follows the brand. */
|
|
81
|
-
willUpdate(changed) {
|
|
82
|
-
super.willUpdate(changed);
|
|
83
|
-
if (this.palette?.substrate === this._generatedGround)
|
|
84
|
-
this.palette = onGround(this.palette, BRAND_GROUND);
|
|
85
|
-
}
|
|
86
|
-
/* A canvas takes no var(): the clock gets the colour the property resolves
|
|
87
|
-
to when it starts, and keeps it until the next update starts another. */
|
|
88
|
-
runClock() {
|
|
89
|
-
const palette = this.palette;
|
|
90
|
-
if (palette?.substrate === BRAND_GROUND) {
|
|
91
|
-
const ground = getComputedStyle(this).getPropertyValue("--color-surface-brand")
|
|
92
|
-
.trim();
|
|
93
|
-
this.palette = onGround(palette, ground || this._generatedGround);
|
|
94
|
-
}
|
|
95
|
-
try {
|
|
96
|
-
super.runClock();
|
|
97
|
-
}
|
|
98
|
-
finally {
|
|
99
|
-
this.palette = palette;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/* updateComplete covers the sizing, so `await el.updateComplete` means the
|
|
103
|
-
art is drawn at its size -- the delivery sets the tile, which is one more
|
|
104
|
-
update. */
|
|
105
|
-
async getUpdateComplete() {
|
|
106
|
-
const first = await super.getUpdateComplete();
|
|
107
|
-
await this._sized;
|
|
108
|
-
return (await super.getUpdateComplete()) && first;
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
MotionArt = __decorate([
|
|
112
|
-
defineElement("bd-motion-art")
|
|
113
|
-
], MotionArt);
|
|
114
|
-
export { MotionArt };
|
|
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{BdHero as n}from"/home/runner/work/dex-core/dex-core/packages/dex-system-design/src/vendor/motion-art/motion-art-element.js";var r=`var(--color-surface-brand)`,i=/* @__PURE__ */ new WeakMap;function a(e,t){let n=i.get(e);return n||i.set(e,n=/* @__PURE__ */ new Map),n.has(t)||n.set(t,{...e,substrate:t}),n.get(t)}var o=class extends n{constructor(){super(),this.substrate=!1,this._generatedGround=this.palette.substrate}connectedCallback(){if(super.connectedCallback(),!this.labelFont){let e=getComputedStyle(this).getPropertyValue(`--typography-fontFamily-sans`).trim();e&&(this.labelFont=e)}this._sized=new Promise(e=>{this._resolveSized=e;let t=new ResizeObserver(()=>{t.disconnect(),e()});t.observe(this)})}disconnectedCallback(){this._resolveSized?.(),super.disconnectedCallback()}willUpdate(e){super.willUpdate(e),this.palette?.substrate===this._generatedGround&&(this.palette=a(this.palette,r))}runClock(){let e=this.palette;if(e?.substrate===r){let t=getComputedStyle(this).getPropertyValue(`--color-surface-brand`).trim();this.palette=a(e,t||this._generatedGround)}try{super.runClock()}finally{this.palette=e}}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this._sized,await super.getUpdateComplete()&&e}};o=t([e(`bd-motion-art`)],o);export{o as MotionArt};
|
|
115
2
|
//# sourceMappingURL=motion-art.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion-art.js","
|
|
1
|
+
{"version":3,"file":"motion-art.js","names":["MotionArtElement","_decorate","__decorate","BRAND_GROUND","grounded","onGround","byGround","palette","ground","MotionArt","BdHero","sans","resolve","first","changed","defineElement"],"sources":["../../../../src/components/motion-art/motion-art.ts"],"sourcesContent":["import type { PropertyValues } from \"lit\";\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 { BdHero as MotionArtElement, type MotionArtPalette } from \"#vendor/motion-art/motion-art-element.js\";\n\nconst BRAND_GROUND = \"var(--color-surface-brand)\";\n\n/* Each palette made once per ground and then reused: the generated element\n restarts its clock whenever its palette is a different object. */\nconst grounded = new WeakMap<MotionArtPalette, Map<string | undefined, MotionArtPalette>>();\nfunction onGround(palette: MotionArtPalette, ground: string | undefined) {\n let byGround = grounded.get(palette);\n if (!byGround) grounded.set(palette, byGround = new Map());\n if (!byGround.has(ground)) byGround.set(ground, { ...palette, substrate: ground });\n return byGround.get(ground)!;\n}\n\n/**\n * The homepage's animated illustrations, one canvas each, square:\n * brand-surface the B on a glass sphere of network (bd-hero, media slot)\n * mesh-globe a turning globe with three badges (consumer AI card)\n * layer-stack four platform layers with captions (enterprise AI card)\n * geo-core a geodesic cage round a core (Labs AI card)\n *\n * The element is generated outside this package and vendored as is; see\n * src/vendor/motion-art/README.md. The generated class is still called BdHero;\n * this module imports it as MotionArtElement and registers it under the\n * package's own name, because bd-hero is the homepage band.\n *\n * Three things differ from the generated element:\n * - no substrate: it draws on a transparent canvas, so the ground is the\n * component's own --color-surface-brand and a partner brand shows through;\n * - the brand tones' ground colour is that token too, where the generated\n * element paints its own blue -- see willUpdate();\n * - the pill and badge type is the foundation's sans, read from the token.\n *\n * It draws only while on screen, holds a still frame under\n * prefers-reduced-motion, and stops on `paused`. It draws no control of its\n * own, and the hero and the brand bento card that hold it add none.\n */\n@defineElement(\"bd-motion-art\")\nexport class MotionArt extends MotionArtElement {\n _generatedGround: string | undefined;\n _sized? : Promise<void>;\n _resolveSized? : () => void;\n\n constructor() {\n super();\n this.substrate = false;\n // The generated element starts on its brand tone, so this is the blue it is drawn on.\n this._generatedGround = this.palette.substrate;\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (!this.labelFont) {\n const sans = getComputedStyle(this).getPropertyValue(\"--typography-fontFamily-sans\")\n .trim();\n if (sans) this.labelFont = sans;\n }\n /* The art takes its size from its first ResizeObserver delivery, and until\n then has no tile and draws nothing. That delivery comes a frame after\n connect, after the generated element's own observer, which it follows\n because observers deliver in the order they were created. */\n this._sized = new Promise<void>(resolve => {\n this._resolveSized = resolve;\n const first = new ResizeObserver(() => { first.disconnect(); resolve(); });\n first.observe(this);\n });\n }\n\n disconnectedCallback() {\n // Removed before its first delivery: nothing is coming, so nobody waits.\n this._resolveSized?.();\n super.disconnectedCallback();\n }\n\n /* The brand and solid tones were drawn on that blue and paint with it\n wherever the ground should show through: the caption and badge type,\n knocked out of a white pill, and the faces the canvas hides behind\n others. Here the ground is --color-surface-brand, so they take that,\n through the custom property itself so the type follows the brand. */\n willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (this.palette?.substrate === this._generatedGround) this.palette = onGround(this.palette, BRAND_GROUND);\n }\n\n /* A canvas takes no var(): the clock gets the colour the property resolves\n to when it starts, and keeps it until the next update starts another. */\n runClock() {\n const palette = this.palette;\n if (palette?.substrate === BRAND_GROUND) {\n const ground = getComputedStyle(this).getPropertyValue(\"--color-surface-brand\")\n .trim();\n this.palette = onGround(palette, ground || this._generatedGround);\n }\n try {\n super.runClock();\n } finally {\n this.palette = palette;\n }\n }\n\n /* updateComplete covers the sizing, so `await el.updateComplete` means the\n art is drawn at its size -- the delivery sets the tile, which is one more\n update. */\n async getUpdateComplete() {\n const first = await super.getUpdateComplete();\n await this._sized;\n return (await super.getUpdateComplete()) && first;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-motion-art\": MotionArt;\n }\n}\n"],"mappings":"A,ySAMA,IAAMG,EAAe,6BAIfC,kBAAW,IAAI,QACrB,SAASC,EAAS,EAA2B,EAA4B,CACvE,IAAIC,EAAWF,EAAS,IAAIG,CAAO,EAGnC,OAFKD,GAAUF,EAAS,IAAIG,EAAS,kBAAW,IAAI,GAAK,EACpDD,EAAS,IAAIE,CAAM,GAAGF,EAAS,IAAIE,EAAQ,CAAE,GAAGD,EAAS,UAAWC,CAAO,CAAC,EAC1EF,EAAS,IAAIE,CAAM,CAC5B,CA0BO,IAAMC,EAAN,cAAwBT,CAAiB,CAK9C,aAAc,CACZ,MAAM,EACN,KAAK,UAAY,GAEjB,KAAK,iBAAmB,KAAK,QAAQ,SACvC,CAEA,mBAAoB,CAElB,GADA,MAAM,kBAAkB,EACpB,CAAC,KAAK,UAAW,CACnB,IAAMW,EAAO,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,8BAA8B,CAAC,CACjF,KAAK,EACJA,IAAM,KAAK,UAAYA,EAC7B,CAKA,KAAK,OAAS,IAAI,QAAc,GAAW,CACzC,KAAK,cAAgBC,EACrB,IAAMC,EAAQ,IAAI,mBAAqB,CAAEA,EAAM,WAAW,EAAGD,EAAQ,CAAG,CAAC,EACzEC,EAAM,QAAQ,IAAI,CACpB,CAAC,CACH,CAEA,sBAAuB,CAErB,KAAK,gBAAgB,EACrB,MAAM,qBAAqB,CAC7B,CAOA,WAAW,EAA+B,CACxC,MAAM,WAAWC,CAAO,EACpB,KAAK,SAAS,YAAc,KAAK,mBAAkB,KAAK,QAAUT,EAAS,KAAK,QAASF,CAAY,EAC3G,CAIA,UAAW,CACT,IAAMI,EAAU,KAAK,QACrB,GAAIA,GAAS,YAAcJ,EAAc,CACvC,IAAMK,EAAS,iBAAiB,IAAI,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,CAC5E,KAAK,EACR,KAAK,QAAUH,EAASE,EAASC,GAAU,KAAK,gBAAgB,CAClE,CACA,GAAI,CACF,MAAM,SAAS,CACjB,QAAU,CACR,KAAK,QAAUD,CACjB,CACF,CAKA,MAAM,mBAAoB,CACxB,IAAMM,EAAQ,MAAM,MAAM,kBAAkB,EAE5C,OADA,MAAM,KAAK,OACH,MAAM,MAAM,kBAAkB,GAAMA,CAC9C,CACF,EAvEC,EAAAZ,EAAA,CAAAc,EAAc,eAAe,CAAA,EAAAN,CAAA,E"}
|
|
@@ -1,126 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
font-family: var(--typography-fontFamily-sans);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.bd-infopanel-container {
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: 1fr 1fr;
|
|
11
|
-
grid-template-rows: auto auto;
|
|
12
|
-
column-gap: var(--spacing-48);
|
|
13
|
-
row-gap: 0;
|
|
14
|
-
padding-block: var(--spacing-48);
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Title spans both columns on its own row */
|
|
19
|
-
.bd-infopanel-title {
|
|
20
|
-
grid-column: 1 / -1;
|
|
21
|
-
grid-row: 1;
|
|
22
|
-
margin: 0;
|
|
23
|
-
margin-bottom: var(--spacing-48);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* === LEFT COLUMN (description) === */
|
|
27
|
-
.bd-infopanel-left {
|
|
28
|
-
grid-column: 1;
|
|
29
|
-
grid-row: 2;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: var(--spacing-16);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.bd-infopanel-description {
|
|
36
|
-
margin: 0;
|
|
37
|
-
color: var(--color-text-primary);
|
|
38
|
-
max-width: 46ch;
|
|
39
|
-
/* Keep: the max-width above is in ch, and ch resolves against THIS
|
|
40
|
-
element's font. Stating the family here is what pins the measure;
|
|
41
|
-
removing it would leave 46ch depending on whatever is inherited. */
|
|
42
|
-
font-family: var(--typography-fontFamily-sans);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* === RIGHT COLUMN (facts) === */
|
|
46
|
-
.bd-infopanel-right {
|
|
47
|
-
grid-column: 2;
|
|
48
|
-
grid-row: 2;
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.bd-infopanel-row {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
gap: var(--spacing-4);
|
|
57
|
-
padding-top: var(--spacing-16);
|
|
58
|
-
padding-bottom: var(--spacing-24);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.bd-infopanel-row:first-of-type {
|
|
62
|
-
padding-top: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.bd-infopanel-row:last-of-type {
|
|
66
|
-
padding-bottom: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* --border-width-2, not a 2px literal. The 2px rule itself is deliberate --
|
|
70
|
-
it is the blue brand rule that separates each label/value pair, and
|
|
71
|
-
bd-trust-panel uses the same visual language for its statistics -- so this
|
|
72
|
-
is a token-category fix, not a design change. --border-width-2 is 2px, so
|
|
73
|
-
nothing moves. Removes the one baselined finding recorded against this
|
|
74
|
-
file, border-width-literal|overview.css.ts|border-top: 2px. */
|
|
75
|
-
.bd-infopanel-divider {
|
|
76
|
-
border-top: var(--border-width-2) solid var(--color-border-brand);
|
|
77
|
-
margin-bottom: var(--spacing-16);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.bd-infopanel-label {
|
|
81
|
-
margin: 0;
|
|
82
|
-
color: var(--color-text-muted);
|
|
83
|
-
/* Load-bearing, despite sitting on a bd-p host where the type axes are
|
|
84
|
-
inert. Those axes are dead because bd-p sets them on its own inner p;
|
|
85
|
-
text-transform it never sets, so this value inherits down to the
|
|
86
|
-
rendered text like any inherited property would. Deleting it
|
|
87
|
-
un-uppercases the label. See scripts/atom-inert-properties.json. */
|
|
88
|
-
text-transform: uppercase;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.bd-infopanel-value {
|
|
92
|
-
margin: 0;
|
|
93
|
-
color: var(--color-text-primary);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* === RESPONSIVE === */
|
|
97
|
-
@media (max-width: 899px) {
|
|
98
|
-
.bd-infopanel-container {
|
|
99
|
-
grid-template-columns: 1fr;
|
|
100
|
-
grid-template-rows: auto auto auto;
|
|
101
|
-
gap: var(--spacing-32);
|
|
102
|
-
padding: var(--spacing-32) var(--spacing-24);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.bd-infopanel-title {
|
|
106
|
-
grid-column: 1;
|
|
107
|
-
grid-row: 1;
|
|
108
|
-
margin-bottom: var(--spacing-16);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.bd-infopanel-left {
|
|
112
|
-
grid-column: 1;
|
|
113
|
-
grid-row: 2;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.bd-infopanel-right {
|
|
117
|
-
grid-column: 1;
|
|
118
|
-
grid-row: 3;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.bd-infopanel-description {
|
|
122
|
-
max-width: none;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-infopanel-container{column-gap:var(--spacing-48);padding-block:var(--spacing-48);box-sizing:border-box;grid-template-rows:auto auto;grid-template-columns:1fr 1fr;row-gap:0;display:grid}.bd-infopanel-title{margin:0;margin-bottom:var(--spacing-48);grid-area:1/1/auto/-1}.bd-infopanel-left{gap:var(--spacing-16);flex-direction:column;grid-area:2/1;display:flex}.bd-infopanel-description{color:var(--color-text-primary);max-width:46ch;font-family:var(--typography-fontFamily-sans);margin:0}.bd-infopanel-right{flex-direction:column;grid-area:2/2;display:flex}.bd-infopanel-row{gap:var(--spacing-4);padding-top:var(--spacing-16);padding-bottom:var(--spacing-24);flex-direction:column;display:flex}.bd-infopanel-row:first-of-type{padding-top:0}.bd-infopanel-row:last-of-type{padding-bottom:0}.bd-infopanel-divider{border-top:var(--border-width-2) solid var(--color-border-brand);margin-bottom:var(--spacing-16)}.bd-infopanel-label{color:var(--color-text-muted);text-transform:uppercase;margin:0}.bd-infopanel-value{color:var(--color-text-primary);margin:0}@media (width<=899px){.bd-infopanel-container{gap:var(--spacing-32);padding:var(--spacing-32) var(--spacing-24);grid-template-rows:auto auto auto;grid-template-columns:1fr}.bd-infopanel-title{margin-bottom:var(--spacing-16);grid-area:1/1}.bd-infopanel-left{grid-area:2/1}.bd-infopanel-right{grid-area:3/1}.bd-infopanel-description{max-width:none}}`;export{t as default};
|
|
126
2
|
//# sourceMappingURL=overview.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.css.js","
|
|
1
|
+
{"version":3,"file":"overview.css.js","names":["overview_css_default"],"sources":["../../../../src/components/overview/overview.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n .bd-infopanel-container {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto auto;\n column-gap: var(--spacing-48);\n row-gap: 0;\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n /* Title spans both columns on its own row */\n .bd-infopanel-title {\n grid-column: 1 / -1;\n grid-row: 1;\n margin: 0;\n margin-bottom: var(--spacing-48);\n }\n\n /* === LEFT COLUMN (description) === */\n .bd-infopanel-left {\n grid-column: 1;\n grid-row: 2;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-16);\n }\n\n .bd-infopanel-description {\n margin: 0;\n color: var(--color-text-primary);\n max-width: 46ch;\n /* Keep: the max-width above is in ch, and ch resolves against THIS\n element's font. Stating the family here is what pins the measure;\n removing it would leave 46ch depending on whatever is inherited. */\n font-family: var(--typography-fontFamily-sans);\n }\n\n /* === RIGHT COLUMN (facts) === */\n .bd-infopanel-right {\n grid-column: 2;\n grid-row: 2;\n display: flex;\n flex-direction: column;\n }\n\n .bd-infopanel-row {\n display: flex;\n flex-direction: column;\n gap: var(--spacing-4);\n padding-top: var(--spacing-16);\n padding-bottom: var(--spacing-24);\n }\n\n .bd-infopanel-row:first-of-type {\n padding-top: 0;\n }\n\n .bd-infopanel-row:last-of-type {\n padding-bottom: 0;\n }\n\n /* --border-width-2, not a 2px literal. The 2px rule itself is deliberate --\n it is the blue brand rule that separates each label/value pair, and\n bd-trust-panel uses the same visual language for its statistics -- so this\n is a token-category fix, not a design change. --border-width-2 is 2px, so\n nothing moves. Removes the one baselined finding recorded against this\n file, border-width-literal|overview.css.ts|border-top: 2px. */\n .bd-infopanel-divider {\n border-top: var(--border-width-2) solid var(--color-border-brand);\n margin-bottom: var(--spacing-16);\n }\n\n .bd-infopanel-label {\n margin: 0;\n color: var(--color-text-muted);\n /* Load-bearing, despite sitting on a bd-p host where the type axes are\n inert. Those axes are dead because bd-p sets them on its own inner p;\n text-transform it never sets, so this value inherits down to the\n rendered text like any inherited property would. Deleting it\n un-uppercases the label. See scripts/atom-inert-properties.json. */\n text-transform: uppercase;\n }\n\n .bd-infopanel-value {\n margin: 0;\n color: var(--color-text-primary);\n }\n\n /* === RESPONSIVE === */\n @media (max-width: 899px) {\n .bd-infopanel-container {\n grid-template-columns: 1fr;\n grid-template-rows: auto auto auto;\n gap: var(--spacing-32);\n padding: var(--spacing-32) var(--spacing-24);\n }\n\n .bd-infopanel-title {\n grid-column: 1;\n grid-row: 1;\n margin-bottom: var(--spacing-16);\n }\n\n .bd-infopanel-left {\n grid-column: 1;\n grid-row: 2;\n }\n\n .bd-infopanel-right {\n grid-column: 1;\n grid-row: 3;\n }\n\n .bd-infopanel-description {\n max-width: none;\n }\n }\n`;"],"mappings":"A,0BAEA,IAAAA,EAAe,CAAG,87C"}
|
|
@@ -1,72 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../heading/heading.js";
|
|
12
|
-
import "../paragraph/paragraph.js";
|
|
13
|
-
import infoPanelCSS from "./overview.css.js";
|
|
14
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
15
|
-
let Overview = class Overview extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.title = "";
|
|
19
|
-
this.description = "";
|
|
20
|
-
this.facts = []; // [{ label: String, value: String }]
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [tokens, ensembleCSS, infoPanelCSS]; }
|
|
23
|
-
render() {
|
|
24
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./overview.css.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.title=``,this.description=``,this.facts=[]}static{this.styles=[t,r,i]}render(){return o`
|
|
25
2
|
<div class="bd-ensemble bd-infopanel-container">
|
|
26
|
-
${this.title
|
|
27
|
-
? html `
|
|
3
|
+
${this.title?o`
|
|
28
4
|
<bd-h as="h2" class="bd-infopanel-title">
|
|
29
5
|
<slot name="title">${this.title}</slot>
|
|
30
6
|
</bd-h>
|
|
31
|
-
|
|
32
|
-
: nothing}
|
|
7
|
+
`:s}
|
|
33
8
|
|
|
34
9
|
<div class="bd-infopanel-left">
|
|
35
|
-
${this.description
|
|
36
|
-
? html `
|
|
10
|
+
${this.description?o`
|
|
37
11
|
<bd-p variant="large" class="bd-infopanel-description">
|
|
38
12
|
<slot name="description">${this.description}</slot>
|
|
39
13
|
</bd-p>
|
|
40
|
-
|
|
41
|
-
: nothing}
|
|
14
|
+
`:s}
|
|
42
15
|
|
|
43
16
|
<slot></slot>
|
|
44
17
|
</div>
|
|
45
18
|
|
|
46
19
|
<div class="bd-infopanel-right">
|
|
47
|
-
${this.facts.map(
|
|
20
|
+
${this.facts.map(e=>o`
|
|
48
21
|
<div class="bd-infopanel-row">
|
|
49
22
|
<div class="bd-infopanel-divider"></div>
|
|
50
|
-
<bd-p variant="xsmall" class="bd-infopanel-label">${
|
|
51
|
-
<bd-p variant="regular" class="bd-infopanel-value">${
|
|
23
|
+
<bd-p variant="xsmall" class="bd-infopanel-label">${e.label}</bd-p>
|
|
24
|
+
<bd-p variant="regular" class="bd-infopanel-value">${e.value}</bd-p>
|
|
52
25
|
</div>
|
|
53
26
|
`)}
|
|
54
27
|
<slot name="facts"></slot>
|
|
55
28
|
</div>
|
|
56
29
|
</div>
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
__decorate([
|
|
61
|
-
property({ type: String })
|
|
62
|
-
], Overview.prototype, "title", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
property({ type: String })
|
|
65
|
-
], Overview.prototype, "description", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
property({ type: Array })
|
|
68
|
-
], Overview.prototype, "facts", void 0);
|
|
69
|
-
Overview = __decorate([
|
|
70
|
-
defineElement("bd-overview")
|
|
71
|
-
], Overview);
|
|
30
|
+
`}};n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:Array})],l.prototype,`facts`,void 0),l=n([e(`bd-overview`)],l);
|
|
72
31
|
//# sourceMappingURL=overview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overview.js","
|
|
1
|
+
{"version":3,"file":"overview.js","names":["infoPanelCSS","_decorate","__decorate","overview_css_default","Overview","LitElement","_args","tokens","ensembleCSS","nothing","fact","property","defineElement"],"sources":["../../../../src/components/overview/overview.ts"],"sourcesContent":["import { LitElement, html, nothing } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport infoPanelCSS from \"./overview.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\n\ninterface OverviewFact {\n label: string;\n value: string;\n}\n\n@defineElement(\"bd-overview\")\nclass Overview extends LitElement {\n static styles = [tokens, ensembleCSS, infoPanelCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n description = \"\";\n @property({ type: Array })\n facts: OverviewFact[] = []; // [{ label: String, value: String }]\n\n render() {\n return html`\n <div class=\"bd-ensemble bd-infopanel-container\">\n ${this.title\n ? html`\n <bd-h as=\"h2\" class=\"bd-infopanel-title\">\n <slot name=\"title\">${this.title}</slot>\n </bd-h>\n `\n : nothing}\n\n <div class=\"bd-infopanel-left\">\n ${this.description\n ? html`\n <bd-p variant=\"large\" class=\"bd-infopanel-description\">\n <slot name=\"description\">${this.description}</slot>\n </bd-p>\n `\n : nothing}\n\n <slot></slot>\n </div>\n\n <div class=\"bd-infopanel-right\">\n ${this.facts.map(\n (fact) => html`\n <div class=\"bd-infopanel-row\">\n <div class=\"bd-infopanel-divider\"></div>\n <bd-p variant=\"xsmall\" class=\"bd-infopanel-label\">${fact.label}</bd-p>\n <bd-p variant=\"regular\" class=\"bd-infopanel-value\">${fact.value}</bd-p>\n </div>\n `\n )}\n <slot name=\"facts\"></slot>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-overview\": Overview;\n }\n}"],"mappings":"A,obAcA,IACMI,EADN,cACuBC,CAAW,C,8BAIxB,KAAA,MAAA,GAEM,KAAA,YAAA,GAEU,KAAA,MAAA,CAAC,C,QAPT,KAAA,OAAA,CAACE,EAAQC,EAAaR,CAAY,C,CASlD,QAAS,CACP,MAAO,EAAI;;UAEL,KAAK,MACH,CAAI;;qCAEqB,KAAK,MAAM;;cAGpCS,EAAQ;;;YAGR,KAAK,YACH,CAAI;;6CAE2B,KAAK,YAAY;;gBAGhDA,EAAQ;;;;;;YAMV,KAAK,MAAM,IACV,GAAS,CAAI;;;oEAG0CC,EAAK,MAAM;qEACVA,EAAK,MAAM;;aAGtE,EAAE;;;;KAKV,CACF,EA7CGT,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,cAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAU,EAAS,CAAE,KAAM,KAAM,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAR1B,EAAAH,EAAA,CAAAW,EAAc,aAAa,CAAA,EAAAR,CAAA"}
|