@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,339 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { below } from "../shared/token-scales.js";
|
|
3
|
-
export default css `
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
height: 100%;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* A brand card is the container its own layout asks: the row, the column
|
|
11
|
-
and the size of the art follow the card's width (BRAND, below). Only the
|
|
12
|
-
brand tone: a size container contributes nothing to its own intrinsic
|
|
13
|
-
width, and the other tones are also set in rows that size them to their
|
|
14
|
-
content (Foundations/Visual Alignment's card family), where one would
|
|
15
|
-
collapse. width: 100% for the same reason, in the grid cell a brand card
|
|
16
|
-
always sits in. */
|
|
17
|
-
:host([tone="brand"]) {
|
|
18
|
-
width: 100%;
|
|
19
|
-
container: bento-item / inline-size;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.bd-bentoitem-box {
|
|
23
|
-
background: var(--color-surface-container);
|
|
24
|
-
border-radius: var(--card-radius);
|
|
25
|
-
padding: var(--card-padding);
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
align-items: stretch;
|
|
29
|
-
justify-content: flex-start;
|
|
30
|
-
text-align: start;
|
|
31
|
-
height: 100%;
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
font-family: var(--typography-fontFamily-sans);
|
|
34
|
-
min-width: 0;
|
|
35
|
-
/* The same hover lift as trust-panel, now at the same scale step. */
|
|
36
|
-
transition: transform var(--transition-duration-normal) var(--transition-easing-ease),
|
|
37
|
-
box-shadow var(--transition-duration-normal) var(--transition-easing-ease);
|
|
38
|
-
/* No edge. --color-surface-container is documented as "the ground of a
|
|
39
|
-
self-contained object -- a card, a tile, a panel -- one step off the page
|
|
40
|
-
so it reads as its own object WITHOUT needing a border or a shadow to say
|
|
41
|
-
so", and this card sits on the page ground, so the tonal step is the
|
|
42
|
-
separation and an edge is redundant with the role's own purpose.
|
|
43
|
-
|
|
44
|
-
The rule, from the cards-and-surfaces review: a card on the page ground
|
|
45
|
-
takes surface/container and no edge; a card on a tinted section takes
|
|
46
|
-
surface/default plus a 1px border/container, because there is no tonal
|
|
47
|
-
step available there and the edge earns its keep. Six components on the
|
|
48
|
-
page ground drew no edge; this one drew one, and five identical siblings
|
|
49
|
-
did not. See CLAUDE.md, "A card's ground and its edge". */
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/* Only where something can hover: a tap leaves :hover on the card it
|
|
54
|
-
touched, so a touch screen kept the last card lifted until the next tap
|
|
55
|
-
landed somewhere else. */
|
|
56
|
-
@media (hover: hover) {
|
|
57
|
-
.bd-bentoitem-box:hover {
|
|
58
|
-
transform: translateY(-3px);
|
|
59
|
-
/* no token: trust-panel's card lift, the same 7% black layer -- see the
|
|
60
|
-
reason there. */
|
|
61
|
-
box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Same reasoning as trust-panel, checked separately: the shadow is the part
|
|
66
|
-
that communicates hover, the 3px is the part that moves. */
|
|
67
|
-
@media (prefers-reduced-motion: reduce) {
|
|
68
|
-
.bd-bentoitem-box {
|
|
69
|
-
transition: none;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.bd-bentoitem-box:hover {
|
|
73
|
-
transform: none;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.bd-bentoitem-icon-wrap {
|
|
78
|
-
display: flex;
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
align-items: flex-start;
|
|
81
|
-
justify-content: flex-start;
|
|
82
|
-
gap: var(--spacing-8);
|
|
83
|
-
padding-bottom: var(--spacing-8);
|
|
84
|
-
min-height: 48px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.bd-bentoitem-icon,
|
|
88
|
-
::slotted([slot="icon"]) {
|
|
89
|
-
max-width: 48px;
|
|
90
|
-
max-height: 48px;
|
|
91
|
-
width: 48px;
|
|
92
|
-
height: 48px;
|
|
93
|
-
object-fit: contain;
|
|
94
|
-
display: block;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.bd-bentoitem-title-wrap {
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: flex-start;
|
|
100
|
-
gap: var(--spacing-4);
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
margin-bottom: var(--spacing-8);
|
|
103
|
-
width: 100%;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.bd-bentoitem-body {
|
|
107
|
-
margin: 0 0 1em 0;
|
|
108
|
-
color: var(--color-text-secondary);
|
|
109
|
-
width: 100%;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
::slotted(bd-p) {
|
|
113
|
-
width: 100%;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* === TONE VARIANTS ===
|
|
117
|
-
The card has no edge (see .bd-bentoitem-box), so a tone is the fill
|
|
118
|
-
alone. */
|
|
119
|
-
:host([tone="tint"]) .bd-bentoitem-box {
|
|
120
|
-
background: var(--status-brand-surface);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
:host([tone="dark"]) .bd-bentoitem-box {
|
|
124
|
-
/* The inverse ground the card's inverse ink is written for, running into
|
|
125
|
-
the brand's darkest blue.
|
|
126
|
-
no role: blue-950 is a gradient's far stop, decoration rather than a
|
|
127
|
-
ground any text is measured against -- the same stop bd-cta-banner ends on. */
|
|
128
|
-
background: linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
:host([tone="dark"]) .bd-bentoitem-title-wrap bd-h {
|
|
132
|
-
color: var(--color-text-inverse);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:host([tone="dark"]) .bd-bentoitem-body {
|
|
136
|
-
color: var(--color-text-inverse);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/* below('md'), not below('sm'). The Comparison Panel and the Trust Panel both
|
|
140
|
-
take the compact inset at md and this took it at sm, so the same card was
|
|
141
|
-
affording 32px at 600px wide in one component and not in another. Two of
|
|
142
|
-
the three picked md; this one moved. Visible: the inset steps down 192px
|
|
143
|
-
of viewport earlier than it used to. */
|
|
144
|
-
@media ${unsafeCSS(below('md'))} {
|
|
145
|
-
.bd-bentoitem-box {
|
|
146
|
-
padding: var(--card-padding-compact);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* === BRAND ===
|
|
151
|
-
The homepage AI cards, as the Figma 2026_splitter frames draw them. No
|
|
152
|
-
hover lift: the CTA is the card's one control, and a card that moves as a
|
|
153
|
-
whole promises a link it does not have.
|
|
154
|
-
|
|
155
|
-
A card narrower than 518 (every phone): a column at the compact inset --
|
|
156
|
-
the copy, the art whole in a square at the card's inner width, the CTA
|
|
157
|
-
across the card -- 24 apart, at the smaller corner. */
|
|
158
|
-
:host([tone="brand"]) .bd-bentoitem-box {
|
|
159
|
-
position: relative;
|
|
160
|
-
overflow: hidden;
|
|
161
|
-
display: flex;
|
|
162
|
-
flex-direction: column;
|
|
163
|
-
gap: var(--spacing-24);
|
|
164
|
-
padding: var(--spacing-24);
|
|
165
|
-
background: var(--color-surface-brand);
|
|
166
|
-
border-radius: var(--shape-radius-2xl);
|
|
167
|
-
color: var(--color-brand-on-fill);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* A set of brand cards shares one row height (bento-grid.ts), so a card
|
|
171
|
-
with shorter copy is taller than its content. In the column the slack
|
|
172
|
-
goes above the CTA, which keeps every card's CTA on its bottom edge
|
|
173
|
-
rather than leaving a gap under the shortest one.
|
|
174
|
-
|
|
175
|
-
In the column the CTA also runs the card's width, as the Figma phone
|
|
176
|
-
frame draws it; in the row it hugs its label. --bd-button-width is
|
|
177
|
-
bd-button's width hook. It followed the screen (below md) while the
|
|
178
|
-
layout followed the card, so a 518-543 card on a 550-575 screen drew the
|
|
179
|
-
row with a CTA stretched across its 300 copy column. */
|
|
180
|
-
@container bento-item (width < 518px) {
|
|
181
|
-
:host([tone="brand"]) .bd-bentoitem-cta {
|
|
182
|
-
margin-block-start: auto;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:host([tone="brand"]) .bd-bentoitem-cta ::slotted(*) {
|
|
186
|
-
--bd-button-width: 100%;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
:host([tone="brand"]) .bd-bentoitem-box:hover {
|
|
191
|
-
transform: none;
|
|
192
|
-
box-shadow: none;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.bd-bentoitem-media {
|
|
196
|
-
position: relative;
|
|
197
|
-
/* the art is square; the phone frame draws its box 302 by 308 */
|
|
198
|
-
aspect-ratio: 1;
|
|
199
|
-
overflow: hidden;
|
|
200
|
-
border-radius: var(--shape-radius-xl);
|
|
201
|
-
/* slotted motion art sizes itself from the box */
|
|
202
|
-
container-type: size;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
::slotted([slot="media"]) {
|
|
206
|
-
display: block;
|
|
207
|
-
width: 100%;
|
|
208
|
-
height: 100%;
|
|
209
|
-
object-fit: cover;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* bd-motion-art is square and draws at its own width, so the box gives it
|
|
213
|
-
one: here the square box itself, the art whole. Margins, not a translate,
|
|
214
|
-
so it centres in RTL too. */
|
|
215
|
-
::slotted(bd-motion-art[slot="media"]) {
|
|
216
|
-
position: absolute;
|
|
217
|
-
inset-block-start: 50%;
|
|
218
|
-
inset-inline-start: 50%;
|
|
219
|
-
width: 100cqh;
|
|
220
|
-
height: auto;
|
|
221
|
-
margin-block-start: -50cqh;
|
|
222
|
-
margin-inline-start: -50cqh;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.bd-bentoitem-text {
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: column;
|
|
228
|
-
align-items: flex-start;
|
|
229
|
-
gap: var(--spacing-12);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.bd-bentoitem-brand-title {
|
|
233
|
-
margin: 0;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.bd-bentoitem-brand-body {
|
|
237
|
-
margin: 0;
|
|
238
|
-
font-family: var(--typography-body-regular-fontFamily);
|
|
239
|
-
font-size: var(--typography-body-regular-fontSize);
|
|
240
|
-
font-weight: var(--typography-body-regular-fontWeight);
|
|
241
|
-
line-height: var(--typography-body-regular-lineHeight);
|
|
242
|
-
letter-spacing: var(--typography-body-regular-letterSpacing);
|
|
243
|
-
color: var(--color-brand-on-fill);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/* A card 518 wide or wider, tablet and desktop alike, is a row at the
|
|
247
|
-
card inset: the copy over the CTA in a 300 column on the near side, 24
|
|
248
|
-
apart and centred down the card, and the art from the column's edge out
|
|
249
|
-
to the card's, bleeding through the inset. The featured card's column is
|
|
250
|
-
a share of the row instead.
|
|
251
|
-
|
|
252
|
-
518 is the narrowest card the frames draw as a row -- one of the pair at
|
|
253
|
-
xl, half the 1060 column less the gap -- and it reads the card, not the
|
|
254
|
-
screen: it was md, which gave a card in a narrow column at desktop the
|
|
255
|
-
phone's column, and the 656 tablet card and the 518 pair the same row
|
|
256
|
-
for different reasons. Measured: the column up to 511 wide (575 in
|
|
257
|
-
Storybook), the row from 518, in every story. */
|
|
258
|
-
@container bento-item (width >= 518px) {
|
|
259
|
-
:host([tone="brand"]) .bd-bentoitem-box {
|
|
260
|
-
display: grid;
|
|
261
|
-
/* no token: the copy's measure, the 300 every frame gives it */
|
|
262
|
-
grid-template-columns: 300px minmax(0, 1fr);
|
|
263
|
-
/* The copy and CTA centred down the card by the two 1fr rows around
|
|
264
|
-
them, rather than by align-content: the art spans all four rows, so
|
|
265
|
-
it runs the card's full height however much taller than its copy
|
|
266
|
-
the shared row height makes the card. No row gap, so the empty rows
|
|
267
|
-
add nothing to a card that is only as tall as its content; the 24
|
|
268
|
-
between copy and CTA is the CTA's margin. */
|
|
269
|
-
grid-template-rows: 1fr auto auto 1fr;
|
|
270
|
-
grid-template-areas:
|
|
271
|
-
". media"
|
|
272
|
-
"text media"
|
|
273
|
-
"cta media"
|
|
274
|
-
". media";
|
|
275
|
-
gap: 0;
|
|
276
|
-
padding: var(--spacing-32);
|
|
277
|
-
border-radius: var(--shape-radius-3xl);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
:host([tone="brand"][priority="featured"]) .bd-bentoitem-box {
|
|
281
|
-
/* not the column: the copy keeps to the near half of a full-row card */
|
|
282
|
-
grid-template-columns: 42% minmax(0, 1fr);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.bd-bentoitem-text {
|
|
286
|
-
grid-area: text;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.bd-bentoitem-cta {
|
|
290
|
-
grid-area: cta;
|
|
291
|
-
margin-block-start: var(--spacing-24);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.bd-bentoitem-media {
|
|
295
|
-
grid-area: media;
|
|
296
|
-
aspect-ratio: auto;
|
|
297
|
-
border-radius: var(--radius-none);
|
|
298
|
-
margin-block: calc(-1 * var(--spacing-32));
|
|
299
|
-
margin-inline-end: calc(-1 * var(--spacing-32));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/* Beside the copy the art takes the card's height, so in one of the
|
|
303
|
-
desktop pair -- whose art box is a tall strip -- the stack and the
|
|
304
|
-
globe stay in the card beside their pills; a box wider than that, the
|
|
305
|
-
featured card's, takes its own width. */
|
|
306
|
-
::slotted(bd-motion-art[slot="media"]) {
|
|
307
|
-
inset-inline-start: 0;
|
|
308
|
-
width: max(100cqw, 100cqh);
|
|
309
|
-
margin-block-start: calc(max(100cqw, 100cqh) / -2);
|
|
310
|
-
margin-inline-start: 0;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/* A card a whole tablet column wide or wider draws the art larger than its
|
|
315
|
-
box, as the tablet frame does: held against the copy, centred down the
|
|
316
|
-
card, and running off the card's outer edge and its top and bottom --
|
|
317
|
-
never off the side its badges and pills face. 135% of the card's height
|
|
318
|
-
is that frame's 434 square on a 321 card. The pair never reaches 656
|
|
319
|
-
(634 at the widest page) and a card 880 wide is the desktop's, so this
|
|
320
|
-
is the tablet card's rule, between the two; it was the md-to-lg band of
|
|
321
|
-
the screen, where every card is the 656 column. */
|
|
322
|
-
@container bento-item (656px <= width < 880px) {
|
|
323
|
-
::slotted(bd-motion-art[slot="media"]) {
|
|
324
|
-
width: max(100cqw, 135cqh);
|
|
325
|
-
margin-block-start: calc(max(100cqw, 135cqh) / -2);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/* A newline in the text is a line break, so a page can keep the breaks its
|
|
330
|
-
copy was written with (a <br> in the authored eyebrow, heading or lead
|
|
331
|
-
arrives as a newline in the property). Text only: nothing here renders
|
|
332
|
-
HTML. The rule sits on a span around the text, not on bd-h or bd-p,
|
|
333
|
-
whose own templates hold newlines that would break too. */
|
|
334
|
-
.text,
|
|
335
|
-
.bd-bentoitem-brand-body {
|
|
336
|
-
white-space: pre-line;
|
|
337
|
-
}
|
|
338
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{box-sizing:border-box;height:100%;display:block}:host([tone=brand]){width:100%;container:bento-item/inline-size}.bd-bentoitem-box{background:var(--color-surface-container);border-radius:var(--card-radius);padding:var(--card-padding);text-align:start;box-sizing:border-box;height:100%;font-family:var(--typography-fontFamily-sans);min-width:0;transition:transform var(--transition-duration-normal) var(--transition-easing-ease), box-shadow var(--transition-duration-normal) var(--transition-easing-ease);flex-direction:column;justify-content:flex-start;align-items:stretch;display:flex}@media (hover:hover){.bd-bentoitem-box:hover{box-shadow:0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.bd-bentoitem-box{transition:none}.bd-bentoitem-box:hover{transform:none}}.bd-bentoitem-icon-wrap{justify-content:flex-start;align-items:flex-start;gap:var(--spacing-8);padding-bottom:var(--spacing-8);flex-direction:column;min-height:48px;display:flex}.bd-bentoitem-icon,::slotted([slot=icon]){object-fit:contain;width:48px;max-width:48px;height:48px;max-height:48px;display:block}.bd-bentoitem-title-wrap{align-items:flex-start;gap:var(--spacing-4);margin-bottom:var(--spacing-8);width:100%;display:flex;overflow:hidden}.bd-bentoitem-body{color:var(--color-text-secondary);width:100%;margin:0 0 1em}::slotted(bd-p){width:100%}:host([tone=tint]) .bd-bentoitem-box{background:var(--status-brand-surface)}:host([tone=dark]) .bd-bentoitem-box{background:linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%)}:host([tone=dark]) .bd-bentoitem-title-wrap bd-h,:host([tone=dark]) .bd-bentoitem-body{color:var(--color-text-inverse)}@media (width<768px){.bd-bentoitem-box{padding:var(--card-padding-compact)}}:host([tone=brand]) .bd-bentoitem-box{gap:var(--spacing-24);padding:var(--spacing-24);background:var(--color-surface-brand);border-radius:var(--shape-radius-2xl);color:var(--color-brand-on-fill);flex-direction:column;display:flex;position:relative;overflow:hidden}@container bento-item (width<518px){:host([tone=brand]) .bd-bentoitem-cta{margin-block-start:auto}:host([tone=brand]) .bd-bentoitem-cta ::slotted(*){--bd-button-width:100%}}:host([tone=brand]) .bd-bentoitem-box:hover{box-shadow:none;transform:none}.bd-bentoitem-media{aspect-ratio:1;border-radius:var(--shape-radius-xl);position:relative;overflow:hidden;container-type:size}::slotted([slot=media]){object-fit:cover;width:100%;height:100%;display:block}::slotted(bd-motion-art[slot=media]){width:100cqh;height:auto;margin-block-start:-50cqh;margin-inline-start:-50cqh;position:absolute;inset-block-start:50%;inset-inline-start:50%}.bd-bentoitem-text{align-items:flex-start;gap:var(--spacing-12);flex-direction:column;display:flex}.bd-bentoitem-brand-title{margin:0}.bd-bentoitem-brand-body{font-family:var(--typography-body-regular-fontFamily);font-size:var(--typography-body-regular-fontSize);font-weight:var(--typography-body-regular-fontWeight);line-height:var(--typography-body-regular-lineHeight);letter-spacing:var(--typography-body-regular-letterSpacing);color:var(--color-brand-on-fill);margin:0}@container bento-item (width>=518px){:host([tone=brand]) .bd-bentoitem-box{padding:var(--spacing-32);border-radius:var(--shape-radius-3xl);grid-template:".media"1fr"text media""cta media"".media"1fr/300px minmax(0,1fr);gap:0;display:grid}:host([tone=brand][priority=featured]) .bd-bentoitem-box{grid-template-columns:42% minmax(0,1fr)}.bd-bentoitem-text{grid-area:text}.bd-bentoitem-cta{grid-area:cta;margin-block-start:var(--spacing-24)}.bd-bentoitem-media{aspect-ratio:auto;border-radius:var(--radius-none);margin-block:calc(-1 * var(--spacing-32));grid-area:media;margin-inline-end:calc(-1 * var(--spacing-32))}::slotted(bd-motion-art[slot=media]){width:max(100cqw,100cqh);margin-block-start:calc(max(100cqw,100cqh)/-2);margin-inline-start:0;inset-inline-start:0}}@container bento-item (656px<=width<880px){::slotted(bd-motion-art[slot=media]){width:max(100cqw,135cqh);margin-block-start:calc(max(100cqw,135cqh)/-2)}}.text,.bd-bentoitem-brand-body{white-space:pre-line}`;export{t as default};
|
|
339
2
|
//# sourceMappingURL=bento-item.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-item.css.js","sourceRoot":"","sources":["../../../../src/components/bento-grid/bento-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA6IP,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkMhC,CAAC","sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"../shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n height: 100%;\n box-sizing: border-box;\n }\n\n /* A brand card is the container its own layout asks: the row, the column\n and the size of the art follow the card's width (BRAND, below). Only the\n brand tone: a size container contributes nothing to its own intrinsic\n width, and the other tones are also set in rows that size them to their\n content (Foundations/Visual Alignment's card family), where one would\n collapse. width: 100% for the same reason, in the grid cell a brand card\n always sits in. */\n :host([tone=\"brand\"]) {\n width: 100%;\n container: bento-item / inline-size;\n }\n\n .bd-bentoitem-box {\n background: var(--color-surface-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n text-align: start;\n height: 100%;\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n min-width: 0;\n /* The same hover lift as trust-panel, now at the same scale step. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n /* No edge. --color-surface-container is documented as \"the ground of a\n self-contained object -- a card, a tile, a panel -- one step off the page\n so it reads as its own object WITHOUT needing a border or a shadow to say\n so\", and this card sits on the page ground, so the tonal step is the\n separation and an edge is redundant with the role's own purpose.\n\n The rule, from the cards-and-surfaces review: a card on the page ground\n takes surface/container and no edge; a card on a tinted section takes\n surface/default plus a 1px border/container, because there is no tonal\n step available there and the edge earns its keep. Six components on the\n page ground drew no edge; this one drew one, and five identical siblings\n did not. See CLAUDE.md, \"A card's ground and its edge\". */\n }\n\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted until the next tap\n landed somewhere else. */\n @media (hover: hover) {\n .bd-bentoitem-box:hover {\n transform: translateY(-3px);\n /* no token: trust-panel's card lift, the same 7% black layer -- see the\n reason there. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* Same reasoning as trust-panel, checked separately: the shadow is the part\n that communicates hover, the 3px is the part that moves. */\n @media (prefers-reduced-motion: reduce) {\n .bd-bentoitem-box {\n transition: none;\n }\n\n .bd-bentoitem-box:hover {\n transform: none;\n }\n }\n\n .bd-bentoitem-icon-wrap {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n gap: var(--spacing-8);\n padding-bottom: var(--spacing-8);\n min-height: 48px;\n }\n\n .bd-bentoitem-icon,\n ::slotted([slot=\"icon\"]) {\n max-width: 48px;\n max-height: 48px;\n width: 48px;\n height: 48px;\n object-fit: contain;\n display: block;\n }\n\n .bd-bentoitem-title-wrap {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-4);\n overflow: hidden;\n margin-bottom: var(--spacing-8);\n width: 100%;\n }\n\n .bd-bentoitem-body {\n margin: 0 0 1em 0;\n color: var(--color-text-secondary);\n width: 100%;\n }\n\n ::slotted(bd-p) {\n width: 100%;\n }\n\n /* === TONE VARIANTS ===\n The card has no edge (see .bd-bentoitem-box), so a tone is the fill\n alone. */\n :host([tone=\"tint\"]) .bd-bentoitem-box {\n background: var(--status-brand-surface);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-box {\n /* The inverse ground the card's inverse ink is written for, running into\n the brand's darkest blue.\n no role: blue-950 is a gradient's far stop, decoration rather than a\n ground any text is measured against -- the same stop bd-cta-banner ends on. */\n background: linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-title-wrap bd-h {\n color: var(--color-text-inverse);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-body {\n color: var(--color-text-inverse);\n }\n\n /* below('md'), not below('sm'). The Comparison Panel and the Trust Panel both\n take the compact inset at md and this took it at sm, so the same card was\n affording 32px at 600px wide in one component and not in another. Two of\n the three picked md; this one moved. Visible: the inset steps down 192px\n of viewport earlier than it used to. */\n @media ${unsafeCSS(below('md'))} {\n .bd-bentoitem-box {\n padding: var(--card-padding-compact);\n }\n }\n\n /* === BRAND ===\n The homepage AI cards, as the Figma 2026_splitter frames draw them. No\n hover lift: the CTA is the card's one control, and a card that moves as a\n whole promises a link it does not have.\n\n A card narrower than 518 (every phone): a column at the compact inset --\n the copy, the art whole in a square at the card's inner width, the CTA\n across the card -- 24 apart, at the smaller corner. */\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n padding: var(--spacing-24);\n background: var(--color-surface-brand);\n border-radius: var(--shape-radius-2xl);\n color: var(--color-brand-on-fill);\n }\n\n /* A set of brand cards shares one row height (bento-grid.ts), so a card\n with shorter copy is taller than its content. In the column the slack\n goes above the CTA, which keeps every card's CTA on its bottom edge\n rather than leaving a gap under the shortest one.\n\n In the column the CTA also runs the card's width, as the Figma phone\n frame draws it; in the row it hugs its label. --bd-button-width is\n bd-button's width hook. It followed the screen (below md) while the\n layout followed the card, so a 518-543 card on a 550-575 screen drew the\n row with a CTA stretched across its 300 copy column. */\n @container bento-item (width < 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-cta {\n margin-block-start: auto;\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-cta ::slotted(*) {\n --bd-button-width: 100%;\n }\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-box:hover {\n transform: none;\n box-shadow: none;\n }\n\n .bd-bentoitem-media {\n position: relative;\n /* the art is square; the phone frame draws its box 302 by 308 */\n aspect-ratio: 1;\n overflow: hidden;\n border-radius: var(--shape-radius-xl);\n /* slotted motion art sizes itself from the box */\n container-type: size;\n }\n\n ::slotted([slot=\"media\"]) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n /* bd-motion-art is square and draws at its own width, so the box gives it\n one: here the square box itself, the art whole. Margins, not a translate,\n so it centres in RTL too. */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 100cqh;\n height: auto;\n margin-block-start: -50cqh;\n margin-inline-start: -50cqh;\n }\n\n .bd-bentoitem-text {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-12);\n }\n\n .bd-bentoitem-brand-title {\n margin: 0;\n }\n\n .bd-bentoitem-brand-body {\n margin: 0;\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-brand-on-fill);\n }\n\n /* A card 518 wide or wider, tablet and desktop alike, is a row at the\n card inset: the copy over the CTA in a 300 column on the near side, 24\n apart and centred down the card, and the art from the column's edge out\n to the card's, bleeding through the inset. The featured card's column is\n a share of the row instead.\n\n 518 is the narrowest card the frames draw as a row -- one of the pair at\n xl, half the 1060 column less the gap -- and it reads the card, not the\n screen: it was md, which gave a card in a narrow column at desktop the\n phone's column, and the 656 tablet card and the 518 pair the same row\n for different reasons. Measured: the column up to 511 wide (575 in\n Storybook), the row from 518, in every story. */\n @container bento-item (width >= 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n display: grid;\n /* no token: the copy's measure, the 300 every frame gives it */\n grid-template-columns: 300px minmax(0, 1fr);\n /* The copy and CTA centred down the card by the two 1fr rows around\n them, rather than by align-content: the art spans all four rows, so\n it runs the card's full height however much taller than its copy\n the shared row height makes the card. No row gap, so the empty rows\n add nothing to a card that is only as tall as its content; the 24\n between copy and CTA is the CTA's margin. */\n grid-template-rows: 1fr auto auto 1fr;\n grid-template-areas:\n \". media\"\n \"text media\"\n \"cta media\"\n \". media\";\n gap: 0;\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-3xl);\n }\n\n :host([tone=\"brand\"][priority=\"featured\"]) .bd-bentoitem-box {\n /* not the column: the copy keeps to the near half of a full-row card */\n grid-template-columns: 42% minmax(0, 1fr);\n }\n\n .bd-bentoitem-text {\n grid-area: text;\n }\n\n .bd-bentoitem-cta {\n grid-area: cta;\n margin-block-start: var(--spacing-24);\n }\n\n .bd-bentoitem-media {\n grid-area: media;\n aspect-ratio: auto;\n border-radius: var(--radius-none);\n margin-block: calc(-1 * var(--spacing-32));\n margin-inline-end: calc(-1 * var(--spacing-32));\n }\n\n /* Beside the copy the art takes the card's height, so in one of the\n desktop pair -- whose art box is a tall strip -- the stack and the\n globe stay in the card beside their pills; a box wider than that, the\n featured card's, takes its own width. */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n inset-inline-start: 0;\n width: max(100cqw, 100cqh);\n margin-block-start: calc(max(100cqw, 100cqh) / -2);\n margin-inline-start: 0;\n }\n }\n\n /* A card a whole tablet column wide or wider draws the art larger than its\n box, as the tablet frame does: held against the copy, centred down the\n card, and running off the card's outer edge and its top and bottom --\n never off the side its badges and pills face. 135% of the card's height\n is that frame's 434 square on a 321 card. The pair never reaches 656\n (634 at the widest page) and a card 880 wide is the desktop's, so this\n is the tablet card's rule, between the two; it was the md-to-lg band of\n the screen, where every card is the 656 column. */\n @container bento-item (656px <= width < 880px) {\n ::slotted(bd-motion-art[slot=\"media\"]) {\n width: max(100cqw, 135cqh);\n margin-block-start: calc(max(100cqw, 135cqh) / -2);\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. The rule sits on a span around the text, not on bd-h or bd-p,\n whose own templates hold newlines that would break too. */\n .text,\n .bd-bentoitem-brand-body {\n white-space: pre-line;\n }\n`;\n"]}
|
|
1
|
+
{"version":3,"file":"bento-item.css.js","names":["bento_item_css_default"],"sources":["../../../../src/components/bento-grid/bento-item.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n height: 100%;\n box-sizing: border-box;\n }\n\n /* A brand card is the container its own layout asks: the row, the column\n and the size of the art follow the card's width (BRAND, below). Only the\n brand tone: a size container contributes nothing to its own intrinsic\n width, and the other tones are also set in rows that size them to their\n content (Foundations/Visual Alignment's card family), where one would\n collapse. width: 100% for the same reason, in the grid cell a brand card\n always sits in. */\n :host([tone=\"brand\"]) {\n width: 100%;\n container: bento-item / inline-size;\n }\n\n .bd-bentoitem-box {\n background: var(--color-surface-container);\n border-radius: var(--card-radius);\n padding: var(--card-padding);\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: flex-start;\n text-align: start;\n height: 100%;\n box-sizing: border-box;\n font-family: var(--typography-fontFamily-sans);\n min-width: 0;\n /* The same hover lift as trust-panel, now at the same scale step. */\n transition: transform var(--transition-duration-normal) var(--transition-easing-ease),\n box-shadow var(--transition-duration-normal) var(--transition-easing-ease);\n /* No edge. --color-surface-container is documented as \"the ground of a\n self-contained object -- a card, a tile, a panel -- one step off the page\n so it reads as its own object WITHOUT needing a border or a shadow to say\n so\", and this card sits on the page ground, so the tonal step is the\n separation and an edge is redundant with the role's own purpose.\n\n The rule, from the cards-and-surfaces review: a card on the page ground\n takes surface/container and no edge; a card on a tinted section takes\n surface/default plus a 1px border/container, because there is no tonal\n step available there and the edge earns its keep. Six components on the\n page ground drew no edge; this one drew one, and five identical siblings\n did not. See CLAUDE.md, \"A card's ground and its edge\". */\n }\n\n\n /* Only where something can hover: a tap leaves :hover on the card it\n touched, so a touch screen kept the last card lifted until the next tap\n landed somewhere else. */\n @media (hover: hover) {\n .bd-bentoitem-box:hover {\n transform: translateY(-3px);\n /* no token: trust-panel's card lift, the same 7% black layer -- see the\n reason there. */\n box-shadow: 0px 14px 40px color-mix(in srgb, var(--color-neutral-1000) 7%, transparent);\n }\n }\n\n /* Same reasoning as trust-panel, checked separately: the shadow is the part\n that communicates hover, the 3px is the part that moves. */\n @media (prefers-reduced-motion: reduce) {\n .bd-bentoitem-box {\n transition: none;\n }\n\n .bd-bentoitem-box:hover {\n transform: none;\n }\n }\n\n .bd-bentoitem-icon-wrap {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n gap: var(--spacing-8);\n padding-bottom: var(--spacing-8);\n min-height: 48px;\n }\n\n .bd-bentoitem-icon,\n ::slotted([slot=\"icon\"]) {\n max-width: 48px;\n max-height: 48px;\n width: 48px;\n height: 48px;\n object-fit: contain;\n display: block;\n }\n\n .bd-bentoitem-title-wrap {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-4);\n overflow: hidden;\n margin-bottom: var(--spacing-8);\n width: 100%;\n }\n\n .bd-bentoitem-body {\n margin: 0 0 1em 0;\n color: var(--color-text-secondary);\n width: 100%;\n }\n\n ::slotted(bd-p) {\n width: 100%;\n }\n\n /* === TONE VARIANTS ===\n The card has no edge (see .bd-bentoitem-box), so a tone is the fill\n alone. */\n :host([tone=\"tint\"]) .bd-bentoitem-box {\n background: var(--status-brand-surface);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-box {\n /* The inverse ground the card's inverse ink is written for, running into\n the brand's darkest blue.\n no role: blue-950 is a gradient's far stop, decoration rather than a\n ground any text is measured against -- the same stop bd-cta-banner ends on. */\n background: linear-gradient(160deg, var(--color-surface-inverse) 0%, var(--color-brand-950) 130%);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-title-wrap bd-h {\n color: var(--color-text-inverse);\n }\n\n :host([tone=\"dark\"]) .bd-bentoitem-body {\n color: var(--color-text-inverse);\n }\n\n /* below('md'), not below('sm'). The Comparison Panel and the Trust Panel both\n take the compact inset at md and this took it at sm, so the same card was\n affording 32px at 600px wide in one component and not in another. Two of\n the three picked md; this one moved. Visible: the inset steps down 192px\n of viewport earlier than it used to. */\n @media ${unsafeCSS(below('md'))} {\n .bd-bentoitem-box {\n padding: var(--card-padding-compact);\n }\n }\n\n /* === BRAND ===\n The homepage AI cards, as the Figma 2026_splitter frames draw them. No\n hover lift: the CTA is the card's one control, and a card that moves as a\n whole promises a link it does not have.\n\n A card narrower than 518 (every phone): a column at the compact inset --\n the copy, the art whole in a square at the card's inner width, the CTA\n across the card -- 24 apart, at the smaller corner. */\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n gap: var(--spacing-24);\n padding: var(--spacing-24);\n background: var(--color-surface-brand);\n border-radius: var(--shape-radius-2xl);\n color: var(--color-brand-on-fill);\n }\n\n /* A set of brand cards shares one row height (bento-grid.ts), so a card\n with shorter copy is taller than its content. In the column the slack\n goes above the CTA, which keeps every card's CTA on its bottom edge\n rather than leaving a gap under the shortest one.\n\n In the column the CTA also runs the card's width, as the Figma phone\n frame draws it; in the row it hugs its label. --bd-button-width is\n bd-button's width hook. It followed the screen (below md) while the\n layout followed the card, so a 518-543 card on a 550-575 screen drew the\n row with a CTA stretched across its 300 copy column. */\n @container bento-item (width < 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-cta {\n margin-block-start: auto;\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-cta ::slotted(*) {\n --bd-button-width: 100%;\n }\n }\n\n :host([tone=\"brand\"]) .bd-bentoitem-box:hover {\n transform: none;\n box-shadow: none;\n }\n\n .bd-bentoitem-media {\n position: relative;\n /* the art is square; the phone frame draws its box 302 by 308 */\n aspect-ratio: 1;\n overflow: hidden;\n border-radius: var(--shape-radius-xl);\n /* slotted motion art sizes itself from the box */\n container-type: size;\n }\n\n ::slotted([slot=\"media\"]) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n /* bd-motion-art is square and draws at its own width, so the box gives it\n one: here the square box itself, the art whole. Margins, not a translate,\n so it centres in RTL too. */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n width: 100cqh;\n height: auto;\n margin-block-start: -50cqh;\n margin-inline-start: -50cqh;\n }\n\n .bd-bentoitem-text {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--spacing-12);\n }\n\n .bd-bentoitem-brand-title {\n margin: 0;\n }\n\n .bd-bentoitem-brand-body {\n margin: 0;\n font-family: var(--typography-body-regular-fontFamily);\n font-size: var(--typography-body-regular-fontSize);\n font-weight: var(--typography-body-regular-fontWeight);\n line-height: var(--typography-body-regular-lineHeight);\n letter-spacing: var(--typography-body-regular-letterSpacing);\n color: var(--color-brand-on-fill);\n }\n\n /* A card 518 wide or wider, tablet and desktop alike, is a row at the\n card inset: the copy over the CTA in a 300 column on the near side, 24\n apart and centred down the card, and the art from the column's edge out\n to the card's, bleeding through the inset. The featured card's column is\n a share of the row instead.\n\n 518 is the narrowest card the frames draw as a row -- one of the pair at\n xl, half the 1060 column less the gap -- and it reads the card, not the\n screen: it was md, which gave a card in a narrow column at desktop the\n phone's column, and the 656 tablet card and the 518 pair the same row\n for different reasons. Measured: the column up to 511 wide (575 in\n Storybook), the row from 518, in every story. */\n @container bento-item (width >= 518px) {\n :host([tone=\"brand\"]) .bd-bentoitem-box {\n display: grid;\n /* no token: the copy's measure, the 300 every frame gives it */\n grid-template-columns: 300px minmax(0, 1fr);\n /* The copy and CTA centred down the card by the two 1fr rows around\n them, rather than by align-content: the art spans all four rows, so\n it runs the card's full height however much taller than its copy\n the shared row height makes the card. No row gap, so the empty rows\n add nothing to a card that is only as tall as its content; the 24\n between copy and CTA is the CTA's margin. */\n grid-template-rows: 1fr auto auto 1fr;\n grid-template-areas:\n \". media\"\n \"text media\"\n \"cta media\"\n \". media\";\n gap: 0;\n padding: var(--spacing-32);\n border-radius: var(--shape-radius-3xl);\n }\n\n :host([tone=\"brand\"][priority=\"featured\"]) .bd-bentoitem-box {\n /* not the column: the copy keeps to the near half of a full-row card */\n grid-template-columns: 42% minmax(0, 1fr);\n }\n\n .bd-bentoitem-text {\n grid-area: text;\n }\n\n .bd-bentoitem-cta {\n grid-area: cta;\n margin-block-start: var(--spacing-24);\n }\n\n .bd-bentoitem-media {\n grid-area: media;\n aspect-ratio: auto;\n border-radius: var(--radius-none);\n margin-block: calc(-1 * var(--spacing-32));\n margin-inline-end: calc(-1 * var(--spacing-32));\n }\n\n /* Beside the copy the art takes the card's height, so in one of the\n desktop pair -- whose art box is a tall strip -- the stack and the\n globe stay in the card beside their pills; a box wider than that, the\n featured card's, takes its own width. */\n ::slotted(bd-motion-art[slot=\"media\"]) {\n inset-inline-start: 0;\n width: max(100cqw, 100cqh);\n margin-block-start: calc(max(100cqw, 100cqh) / -2);\n margin-inline-start: 0;\n }\n }\n\n /* A card a whole tablet column wide or wider draws the art larger than its\n box, as the tablet frame does: held against the copy, centred down the\n card, and running off the card's outer edge and its top and bottom --\n never off the side its badges and pills face. 135% of the card's height\n is that frame's 434 square on a 321 card. The pair never reaches 656\n (634 at the widest page) and a card 880 wide is the desktop's, so this\n is the tablet card's rule, between the two; it was the md-to-lg band of\n the screen, where every card is the 656 column. */\n @container bento-item (656px <= width < 880px) {\n ::slotted(bd-motion-art[slot=\"media\"]) {\n width: max(100cqw, 135cqh);\n margin-block-start: calc(max(100cqw, 135cqh) / -2);\n }\n }\n\n /* A newline in the text is a line break, so a page can keep the breaks its\n copy was written with (a <br> in the authored eyebrow, heading or lead\n arrives as a newline in the property). Text only: nothing here renders\n HTML. The rule sits on a span around the text, not on bd-h or bd-p,\n whose own templates hold newlines that would break too. */\n .text,\n .bd-bentoitem-brand-body {\n white-space: pre-line;\n }\n`;\n"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,okI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../badge/badge.
|
|
3
|
-
import "../heading/heading.
|
|
4
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../badge/badge.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
5
|
type Priority = "standard" | "featured";
|
|
6
6
|
type Tone = "default" | "tint" | "dark" | "brand";
|
|
7
7
|
declare class BentoItem extends LitElement {
|
|
@@ -1,114 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
11
|
-
import "../badge/badge.js";
|
|
12
|
-
import "../heading/heading.js";
|
|
13
|
-
import "../paragraph/paragraph.js";
|
|
14
|
-
import bentoItemCSS from "./bento-item.css.js";
|
|
15
|
-
let BentoItem = class BentoItem extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.title = "";
|
|
19
|
-
this.body = "";
|
|
20
|
-
this.icon = "";
|
|
21
|
-
this.priority = "standard";
|
|
22
|
-
this.orientation = "auto";
|
|
23
|
-
// "default" (neutral-25 fill) | "tint" (light blue fill) | "dark" (dark fill, light text)
|
|
24
|
-
// | "brand" (the homepage AI cards: brand fill, a badge, an h3 and an art column)
|
|
25
|
-
this.tone = "default";
|
|
26
|
-
// the small label over the title; drawn only on tone="brand"
|
|
27
|
-
this.badge = "";
|
|
28
|
-
// the title's level in the outline; tone="brand" draws it at the h3 role
|
|
29
|
-
this.as = "h3";
|
|
30
|
-
}
|
|
31
|
-
static { this.styles = [tokens, bentoItemCSS]; }
|
|
32
|
-
connectedCallback() {
|
|
33
|
-
super.connectedCallback();
|
|
34
|
-
// The grid's track is a role="list"; each card is one of its items.
|
|
35
|
-
if (!this.hasAttribute("role"))
|
|
36
|
-
this.setAttribute("role", "listitem");
|
|
37
|
-
}
|
|
38
|
-
/* The homepage AI card, drawn in the foundation Figma file as Bento card:
|
|
39
|
-
the copy -- an info badge, the title at h3 and the body in the brand's
|
|
40
|
-
ink --, the art from the `media` slot, and the CTA, the default slot (an
|
|
41
|
-
outline-white bd-button-link, lg). In that order on a phone, a column;
|
|
42
|
-
from md the copy and the CTA stack on the near side and the art fills the
|
|
43
|
-
rest of the card. */
|
|
44
|
-
_renderBrand() {
|
|
45
|
-
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"../badge/badge.js";import r from"./bento-item.css.js";import{LitElement as i,html as a}from"lit";import{property as o}from"lit/decorators.js";var s=class extends i{constructor(...e){super(...e),this.title=``,this.body=``,this.icon=``,this.priority=`standard`,this.orientation=`auto`,this.tone=`default`,this.badge=``,this.as=`h3`}static{this.styles=[t,r]}connectedCallback(){super.connectedCallback(),this.hasAttribute(`role`)||this.setAttribute(`role`,`listitem`)}_renderBrand(){return a`
|
|
46
2
|
<div class="bd-bentoitem-box bd-bentoitem-brand">
|
|
47
3
|
<div class="bd-bentoitem-text">
|
|
48
|
-
${this.badge
|
|
49
|
-
${this.title
|
|
50
|
-
|
|
51
|
-
: ""}
|
|
52
|
-
${this.body ? html `<p class="bd-bentoitem-brand-body">${this.body}</p>` : ""}
|
|
4
|
+
${this.badge?a`<bd-badge tone="info" variant="shade" size="sm">${this.badge}</bd-badge>`:``}
|
|
5
|
+
${this.title?a`<bd-h as="${this.as}" visual-level="h3" color="on-brand" class="bd-bentoitem-brand-title"><span class="text">${this.title}</span></bd-h>`:``}
|
|
6
|
+
${this.body?a`<p class="bd-bentoitem-brand-body">${this.body}</p>`:``}
|
|
53
7
|
</div>
|
|
54
8
|
<div class="bd-bentoitem-media"><slot name="media"></slot></div>
|
|
55
9
|
<div class="bd-bentoitem-cta"><slot></slot></div>
|
|
56
10
|
</div>
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
if (this.tone === "brand")
|
|
61
|
-
return this._renderBrand();
|
|
62
|
-
return html `
|
|
11
|
+
`}render(){return this.tone===`brand`?this._renderBrand():a`
|
|
63
12
|
<div class="bd-bentoitem-box">
|
|
64
13
|
<div class="bd-bentoitem-icon-wrap">
|
|
65
14
|
<slot name="icon">
|
|
66
|
-
${this.icon
|
|
15
|
+
${this.icon?a`<img src="${this.icon}" alt="" class="bd-bentoitem-icon" />`:``}
|
|
67
16
|
</slot>
|
|
68
17
|
</div>
|
|
69
18
|
|
|
70
|
-
${this.title
|
|
71
|
-
? html `
|
|
19
|
+
${this.title?a`
|
|
72
20
|
<div class="bd-bentoitem-title-wrap">
|
|
73
21
|
<bd-h as="h5" fontWeight="bold"><span class="text">${this.title}</span></bd-h>
|
|
74
22
|
</div>
|
|
75
|
-
|
|
76
|
-
: ""}
|
|
23
|
+
`:``}
|
|
77
24
|
|
|
78
|
-
${this.body
|
|
79
|
-
? html `<bd-p variant="regular" class="bd-bentoitem-body"><span class="text">${this.body}</span></bd-p>`
|
|
80
|
-
: ""}
|
|
25
|
+
${this.body?a`<bd-p variant="regular" class="bd-bentoitem-body"><span class="text">${this.body}</span></bd-p>`:``}
|
|
81
26
|
|
|
82
27
|
<slot></slot>
|
|
83
28
|
</div>
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
__decorate([
|
|
88
|
-
property({ type: String })
|
|
89
|
-
], BentoItem.prototype, "title", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ type: String })
|
|
92
|
-
], BentoItem.prototype, "body", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: String })
|
|
95
|
-
], BentoItem.prototype, "icon", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: String, reflect: true })
|
|
98
|
-
], BentoItem.prototype, "priority", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ type: String, attribute: "orientation" })
|
|
101
|
-
], BentoItem.prototype, "orientation", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
property({ type: String, reflect: true })
|
|
104
|
-
], BentoItem.prototype, "tone", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
property({ type: String })
|
|
107
|
-
], BentoItem.prototype, "badge", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
property({ type: String })
|
|
110
|
-
], BentoItem.prototype, "as", void 0);
|
|
111
|
-
BentoItem = __decorate([
|
|
112
|
-
defineElement("bd-bento-item")
|
|
113
|
-
], BentoItem);
|
|
29
|
+
`}};n([o({type:String})],s.prototype,`title`,void 0),n([o({type:String})],s.prototype,`body`,void 0),n([o({type:String})],s.prototype,`icon`,void 0),n([o({type:String,reflect:!0})],s.prototype,`priority`,void 0),n([o({type:String,attribute:`orientation`})],s.prototype,`orientation`,void 0),n([o({type:String,reflect:!0})],s.prototype,`tone`,void 0),n([o({type:String})],s.prototype,`badge`,void 0),n([o({type:String})],s.prototype,`as`,void 0),s=n([e(`bd-bento-item`)],s);
|
|
114
30
|
//# sourceMappingURL=bento-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bento-item.js","
|
|
1
|
+
{"version":3,"file":"bento-item.js","names":["bentoItemCSS","_decorate","__decorate","bento_item_css_default","BentoItem","LitElement","_args","tokens","property","defineElement"],"sources":["../../../../src/components/bento-grid/bento-item.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\nimport { tokens } from \"#tokens/tokens.ts\";\nimport \"#components/badge/badge.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport bentoItemCSS from \"./bento-item.css.ts\";\n\ntype Priority = \"standard\" | \"featured\";\ntype Tone = \"default\" | \"tint\" | \"dark\" | \"brand\";\n\n@defineElement(\"bd-bento-item\")\nclass BentoItem extends LitElement {\n static styles = [tokens, bentoItemCSS];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String })\n body = \"\";\n @property({ type: String })\n icon = \"\";\n @property({ type: String, reflect: true })\n priority: Priority = \"standard\";\n @property({ type: String, attribute: \"orientation\" })\n orientation = \"auto\";\n // \"default\" (neutral-25 fill) | \"tint\" (light blue fill) | \"dark\" (dark fill, light text)\n // | \"brand\" (the homepage AI cards: brand fill, a badge, an h3 and an art column)\n @property({ type: String, reflect: true })\n tone: Tone = \"default\";\n // the small label over the title; drawn only on tone=\"brand\"\n @property({ type: String })\n badge = \"\";\n // the title's level in the outline; tone=\"brand\" draws it at the h3 role\n @property({ type: String })\n as = \"h3\";\n\n connectedCallback() {\n super.connectedCallback();\n // The grid's track is a role=\"list\"; each card is one of its items.\n if (!this.hasAttribute(\"role\")) this.setAttribute(\"role\", \"listitem\");\n }\n\n /* The homepage AI card, drawn in the foundation Figma file as Bento card:\n the copy -- an info badge, the title at h3 and the body in the brand's\n ink --, the art from the `media` slot, and the CTA, the default slot (an\n outline-white bd-button-link, lg). In that order on a phone, a column;\n from md the copy and the CTA stack on the near side and the art fills the\n rest of the card. */\n _renderBrand() {\n return html`\n <div class=\"bd-bentoitem-box bd-bentoitem-brand\">\n <div class=\"bd-bentoitem-text\">\n ${this.badge ? html`<bd-badge tone=\"info\" variant=\"shade\" size=\"sm\">${this.badge}</bd-badge>` : \"\"}\n ${this.title\n ? html`<bd-h as=\"${this.as}\" visual-level=\"h3\" color=\"on-brand\" class=\"bd-bentoitem-brand-title\"><span class=\"text\">${this.title}</span></bd-h>`\n : \"\"}\n ${this.body ? html`<p class=\"bd-bentoitem-brand-body\">${this.body}</p>` : \"\"}\n </div>\n <div class=\"bd-bentoitem-media\"><slot name=\"media\"></slot></div>\n <div class=\"bd-bentoitem-cta\"><slot></slot></div>\n </div>\n `;\n }\n\n render() {\n if (this.tone === \"brand\") return this._renderBrand();\n return html`\n <div class=\"bd-bentoitem-box\">\n <div class=\"bd-bentoitem-icon-wrap\">\n <slot name=\"icon\">\n ${this.icon ? html`<img src=\"${this.icon}\" alt=\"\" class=\"bd-bentoitem-icon\" />` : \"\"}\n </slot>\n </div>\n\n ${this.title\n ? html`\n <div class=\"bd-bentoitem-title-wrap\">\n <bd-h as=\"h5\" fontWeight=\"bold\"><span class=\"text\">${this.title}</span></bd-h>\n </div>\n `\n : \"\"}\n\n ${this.body\n ? html`<bd-p variant=\"regular\" class=\"bd-bentoitem-body\"><span class=\"text\">${this.body}</span></bd-p>`\n : \"\"}\n\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-bento-item\": BentoItem;\n }\n}"],"mappings":"A,2YAYA,IACMI,EADN,cACwBC,CAAW,C,8BAIzB,KAAA,MAAA,GAED,KAAA,KAAA,GAEA,KAAA,KAAA,GAEc,KAAA,SAAA,WAEP,KAAA,YAAA,OAID,KAAA,KAAA,UAGL,KAAA,MAAA,GAGH,KAAA,GAAA,I,QArBW,KAAA,OAAA,CAACE,EAAQP,CAAY,C,CAuBrC,mBAAoB,CAClB,MAAM,kBAAkB,EAEnB,KAAK,aAAa,MAAM,GAAG,KAAK,aAAa,OAAQ,UAAU,CACtE,CAQA,cAAe,CACb,MAAO,EAAI;;;YAGH,KAAK,MAAQ,CAAI,mDAAmD,KAAK,MAAM,aAAe,GAAG;YACjG,KAAK,MACH,CAAI,aAAa,KAAK,GAAG,2FAA2F,KAAK,MAAM,gBAC/H,GAAG;YACL,KAAK,KAAO,CAAI,sCAAsC,KAAK,KAAK,MAAQ,GAAG;;;;;KAMrF,CAEA,QAAS,CAEP,OADI,KAAK,OAAS,QAAgB,KAAK,aAAa,EAC7C,CAAI;;;;cAID,KAAK,KAAO,CAAI,aAAa,KAAK,KAAK,uCAAyC,GAAG;;;;UAIvF,KAAK,MACH,CAAI;;qEAEqD,KAAK,MAAM;;cAGpE,GAAG;;UAEL,KAAK,KACH,CAAI,wEAAwE,KAAK,KAAK,gBACtF,GAAG;;;;KAKb,CACF,EA3EGC,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzBH,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAJ,EAAA,UAAA,WAAA,IAAA,EAAA,EAExCH,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,CAAC,CAAA,EAAAJ,EAAA,UAAA,cAAA,IAAA,EAAA,EAInDH,EAAA,CAAAO,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAJ,EAAA,UAAA,OAAA,IAAA,EAAA,EAGxCH,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,QAAA,IAAA,EAAA,EAGzBH,EAAA,CAAAO,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAJ,EAAA,UAAA,KAAA,IAAA,EAAA,EAtB3B,EAAAH,EAAA,CAAAQ,EAAc,eAAe,CAAA,EAAAL,CAAA"}
|
|
@@ -1,55 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Styled entirely from design tokens — see npm run lint:tokens. */
|
|
3
|
-
export const blockquoteCSS = css `
|
|
4
|
-
:host { display: block; }
|
|
5
|
-
|
|
6
|
-
/* .quote is the outer element: the <figure> when there is an attribution,
|
|
7
|
-
the bare <blockquote> when there is not. The bar and the type live on it,
|
|
8
|
-
so the caption inherits the quotation's family and leading the way the
|
|
9
|
-
<footer> did when it sat inside the <blockquote> -- the rhythm the note
|
|
10
|
-
below is about. */
|
|
11
|
-
figure,
|
|
12
|
-
blockquote {
|
|
13
|
-
margin: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.quote {
|
|
17
|
-
padding-inline-start: var(--spacing-16);
|
|
18
|
-
border-inline-start: var(--border-width-4) solid var(--color-border-brand);
|
|
19
|
-
font-family: var(--typography-body-large-fontFamily);
|
|
20
|
-
font-size: var(--typography-body-large-fontSize);
|
|
21
|
-
font-weight: var(--typography-body-large-fontWeight);
|
|
22
|
-
line-height: var(--typography-body-large-lineHeight);
|
|
23
|
-
color: var(--color-text-primary);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
figcaption {
|
|
27
|
-
margin-top: var(--spacing-8);
|
|
28
|
-
font-size: var(--typography-caption-default-fontSize);
|
|
29
|
-
/* no role: two roles are each a near-miss, from opposite directions, and
|
|
30
|
-
no declared role sits at the intersection of this size, this weight,
|
|
31
|
-
this leading and this colour.
|
|
32
|
-
.
|
|
33
|
-
label-small matches this text's size and weight exactly -- but adopting
|
|
34
|
-
it would add letterSpacing-wide, which has no job on mixed-case sentence
|
|
35
|
-
text because nothing here crowds, and would replace the leading this
|
|
36
|
-
inherits from the quote it attributes with 1.5. That inherited
|
|
37
|
-
rhythm is the one thing in this rule that means something: the credit
|
|
38
|
-
line sits on the same measure as the quotation it belongs to, where 1.5
|
|
39
|
-
merely comes attached to the role.
|
|
40
|
-
.
|
|
41
|
-
caption-default matches this text's size and colour exactly -- the same
|
|
42
|
-
--color-text-muted token, not just the same value, so this rule already
|
|
43
|
-
half-resolves through it. But its weight is normal, and normal is what
|
|
44
|
-
the quote itself renders. Adopting it would remove the attribution's
|
|
45
|
-
only distinguishing signal and demote a credit line to what reads as a
|
|
46
|
-
continuation of the quotation rather than a citation of it.
|
|
47
|
-
.
|
|
48
|
-
Neither disagreement is drift; both are the reason this rule exists as
|
|
49
|
-
written. So the weight stays a primitive and says why. */
|
|
50
|
-
font-weight: var(--typography-fontWeight-medium);
|
|
51
|
-
color: var(--color-text-muted);
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
export default blockquoteCSS;
|
|
1
|
+
import{css as e}from"lit";var t=e`:host{display:block}figure,blockquote{margin:0}.quote{border-inline-start:var(--border-width-4) solid var(--color-border-brand);font-family:var(--typography-body-large-fontFamily);font-size:var(--typography-body-large-fontSize);font-weight:var(--typography-body-large-fontWeight);line-height:var(--typography-body-large-lineHeight);color:var(--color-text-primary);padding-inline-start:var(--spacing-16)}figcaption{margin-top:var(--spacing-8);font-size:var(--typography-caption-default-fontSize);font-weight:var(--typography-fontWeight-medium);color:var(--color-text-muted)}`;export{t as blockquoteCSS,t as default};
|
|
55
2
|
//# sourceMappingURL=blockquote.css.js.map
|