@repobit/dex-system-design 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/src/_bundled/oxc-project_runtime/helpers/esm/decorate.js +1 -0
- package/dist/src/components/accordion/accordion-bg.css.js +1 -288
- package/dist/src/components/accordion/accordion-bg.css.js.map +1 -1
- package/dist/src/components/accordion/accordion-bg.d.ts +5 -5
- package/dist/src/components/accordion/accordion-bg.js +15 -210
- package/dist/src/components/accordion/accordion-bg.js.map +1 -1
- package/dist/src/components/accordion/accordion-keyboard.js +1 -89
- package/dist/src/components/accordion/accordion-keyboard.js.map +1 -1
- package/dist/src/components/accordion/accordion-panel.js +1 -22
- package/dist/src/components/accordion/accordion-panel.js.map +1 -1
- package/dist/src/components/accordion/accordion.css.js +1 -380
- package/dist/src/components/accordion/accordion.css.js.map +1 -1
- package/dist/src/components/accordion/accordion.d.ts +7 -7
- package/dist/src/components/accordion/accordion.js +16 -138
- package/dist/src/components/accordion/accordion.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js +1 -88
- package/dist/src/components/agent-endpoints/agent-endpoints.css.js.map +1 -1
- package/dist/src/components/agent-endpoints/agent-endpoints.d.ts +4 -4
- package/dist/src/components/agent-endpoints/agent-endpoints.js +17 -76
- package/dist/src/components/agent-endpoints/agent-endpoints.js.map +1 -1
- package/dist/src/components/alert/alert.css.js +1 -217
- package/dist/src/components/alert/alert.css.js.map +1 -1
- package/dist/src/components/alert/alert.d.ts +4 -4
- package/dist/src/components/alert/alert.js +6 -110
- package/dist/src/components/alert/alert.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.css.js +1 -546
- package/dist/src/components/anchor/anchor-nav.css.js.map +1 -1
- package/dist/src/components/anchor/anchor-nav.d.ts +4 -4
- package/dist/src/components/anchor/anchor-nav.js +23 -567
- package/dist/src/components/anchor/anchor-nav.js.map +1 -1
- package/dist/src/components/annotation/annotation.css.js +1 -64
- package/dist/src/components/annotation/annotation.css.js.map +1 -1
- package/dist/src/components/annotation/annotation.d.ts +2 -2
- package/dist/src/components/annotation/annotation.js +7 -72
- package/dist/src/components/annotation/annotation.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.css.js +1 -122
- package/dist/src/components/audience-card/audience-card.css.js.map +1 -1
- package/dist/src/components/audience-card/audience-card.d.ts +2 -2
- package/dist/src/components/audience-card/audience-card.js +8 -83
- package/dist/src/components/audience-card/audience-card.js.map +1 -1
- package/dist/src/components/avatar/avatar.css.js +1 -65
- package/dist/src/components/avatar/avatar.css.js.map +1 -1
- package/dist/src/components/avatar/avatar.d.ts +3 -3
- package/dist/src/components/avatar/avatar.js +6 -76
- package/dist/src/components/avatar/avatar.js.map +1 -1
- package/dist/src/components/awards/awards-flex.css.js +1 -273
- package/dist/src/components/awards/awards-flex.css.js.map +1 -1
- package/dist/src/components/awards/awards-flex.d.ts +12 -12
- package/dist/src/components/awards/awards-flex.js +33 -264
- package/dist/src/components/awards/awards-flex.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.css.js +1 -161
- package/dist/src/components/awards/awards-spotlight.css.js.map +1 -1
- package/dist/src/components/awards/awards-spotlight.d.ts +4 -4
- package/dist/src/components/awards/awards-spotlight.js +24 -140
- package/dist/src/components/awards/awards-spotlight.js.map +1 -1
- package/dist/src/components/awards/awards.css.js +1 -401
- package/dist/src/components/awards/awards.css.js.map +1 -1
- package/dist/src/components/awards/awards.d.ts +13 -13
- package/dist/src/components/awards/awards.js +26 -179
- package/dist/src/components/awards/awards.js.map +1 -1
- package/dist/src/components/awards/scroll-slides.js +1 -131
- package/dist/src/components/awards/scroll-slides.js.map +1 -1
- package/dist/src/components/back/back.css.js +1 -91
- package/dist/src/components/back/back.css.js.map +1 -1
- package/dist/src/components/back/back.d.ts +1 -1
- package/dist/src/components/back/back.js +8 -71
- package/dist/src/components/back/back.js.map +1 -1
- package/dist/src/components/badge/badge.css.js +1 -204
- package/dist/src/components/badge/badge.css.js.map +1 -1
- package/dist/src/components/badge/badge.d.ts +4 -4
- package/dist/src/components/badge/badge.js +2 -117
- package/dist/src/components/badge/badge.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.css.js +16 -150
- package/dist/src/components/bento-grid/bento-grid.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-grid.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-grid.js +10 -189
- package/dist/src/components/bento-grid/bento-grid.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.css.js +1 -338
- package/dist/src/components/bento-grid/bento-item.css.js.map +1 -1
- package/dist/src/components/bento-grid/bento-item.d.ts +3 -3
- package/dist/src/components/bento-grid/bento-item.js +10 -94
- package/dist/src/components/bento-grid/bento-item.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.css.js +1 -54
- package/dist/src/components/blockquote/blockquote.css.js.map +1 -1
- package/dist/src/components/blockquote/blockquote.d.ts +2 -2
- package/dist/src/components/blockquote/blockquote.js +1 -44
- package/dist/src/components/blockquote/blockquote.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.css.js +1 -168
- package/dist/src/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/src/components/breadcrumb/breadcrumb.d.ts +5 -5
- package/dist/src/components/breadcrumb/breadcrumb.js +9 -166
- package/dist/src/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/src/components/button/button.css.js +1 -843
- package/dist/src/components/button/button.css.js.map +1 -1
- package/dist/src/components/button/button.d.ts +5 -5
- package/dist/src/components/button/button.js +18 -420
- package/dist/src/components/button/button.js.map +1 -1
- package/dist/src/components/caption/caption.css.js +1 -29
- package/dist/src/components/caption/caption.css.js.map +1 -1
- package/dist/src/components/caption/caption.d.ts +3 -3
- package/dist/src/components/caption/caption.js +2 -36
- package/dist/src/components/caption/caption.js.map +1 -1
- package/dist/src/components/card-features/card-features.css.js +1 -120
- package/dist/src/components/card-features/card-features.css.js.map +1 -1
- package/dist/src/components/card-features/card-features.d.ts +3 -3
- package/dist/src/components/card-features/card-features.js +12 -145
- package/dist/src/components/card-features/card-features.js.map +1 -1
- package/dist/src/components/cards/card.css.js +1 -369
- package/dist/src/components/cards/card.css.js.map +1 -1
- package/dist/src/components/cards/card.d.ts +3 -3
- package/dist/src/components/cards/card.js +21 -312
- package/dist/src/components/cards/card.js.map +1 -1
- package/dist/src/components/carousel/carousel.css.js +1 -261
- package/dist/src/components/carousel/carousel.css.js.map +1 -1
- package/dist/src/components/carousel/carousel.d.ts +5 -5
- package/dist/src/components/carousel/carousel.js +13 -297
- package/dist/src/components/carousel/carousel.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.css.js +1 -173
- package/dist/src/components/checkbox/checkbox.css.js.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +2 -2
- package/dist/src/components/checkbox/checkbox.js +5 -138
- package/dist/src/components/checkbox/checkbox.js.map +1 -1
- package/dist/src/components/code/code.css.js +1 -73
- package/dist/src/components/code/code.css.js.map +1 -1
- package/dist/src/components/code/code.d.ts +2 -2
- package/dist/src/components/code/code.js +4 -87
- package/dist/src/components/code/code.js.map +1 -1
- package/dist/src/components/compare/compare.css.js +1 -478
- package/dist/src/components/compare/compare.css.js.map +1 -1
- package/dist/src/components/compare/compare.d.ts +5 -5
- package/dist/src/components/compare/compare.js +23 -476
- package/dist/src/components/compare/compare.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.css.js +1 -141
- package/dist/src/components/comparison-panel/comparison-panel.css.js.map +1 -1
- package/dist/src/components/comparison-panel/comparison-panel.d.ts +2 -2
- package/dist/src/components/comparison-panel/comparison-panel.js +18 -86
- package/dist/src/components/comparison-panel/comparison-panel.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.css.js +1 -391
- package/dist/src/components/compatibility-table/compatibility-table.css.js.map +1 -1
- package/dist/src/components/compatibility-table/compatibility-table.d.ts +2 -2
- package/dist/src/components/compatibility-table/compatibility-table.js +26 -136
- package/dist/src/components/compatibility-table/compatibility-table.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.css.js +1 -97
- package/dist/src/components/cta-banner/cta-banner.css.js.map +1 -1
- package/dist/src/components/cta-banner/cta-banner.d.ts +2 -2
- package/dist/src/components/cta-banner/cta-banner.js +8 -51
- package/dist/src/components/cta-banner/cta-banner.js.map +1 -1
- package/dist/src/components/display/display.css.js +1 -95
- package/dist/src/components/display/display.css.js.map +1 -1
- package/dist/src/components/display/display.d.ts +2 -2
- package/dist/src/components/display/display.js +3 -84
- package/dist/src/components/display/display.js.map +1 -1
- package/dist/src/components/divider/divider-horizontal.d.ts +2 -2
- package/dist/src/components/divider/divider-horizontal.js +4 -63
- package/dist/src/components/divider/divider-horizontal.js.map +1 -1
- package/dist/src/components/divider/divider-vertical.d.ts +2 -2
- package/dist/src/components/divider/divider-vertical.js +6 -61
- package/dist/src/components/divider/divider-vertical.js.map +1 -1
- package/dist/src/components/divider/divider.css.js +1 -20
- package/dist/src/components/divider/divider.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.css.js +1 -121
- package/dist/src/components/dropdown/dropdown.css.js.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +5 -5
- package/dist/src/components/dropdown/dropdown.js +17 -283
- package/dist/src/components/dropdown/dropdown.js.map +1 -1
- package/dist/src/components/features/features.css.js +1 -123
- package/dist/src/components/features/features.css.js.map +1 -1
- package/dist/src/components/features/features.d.ts +5 -5
- package/dist/src/components/features/features.js +11 -71
- package/dist/src/components/features/features.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.css.js +1 -100
- package/dist/src/components/features-tab/features-tab.css.js.map +1 -1
- package/dist/src/components/features-tab/features-tab.d.ts +5 -5
- package/dist/src/components/features-tab/features-tab.js +9 -70
- package/dist/src/components/features-tab/features-tab.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.css.js +1 -28
- package/dist/src/components/fieldset/fieldset.css.js.map +1 -1
- package/dist/src/components/fieldset/fieldset.d.ts +2 -2
- package/dist/src/components/fieldset/fieldset.js +3 -31
- package/dist/src/components/fieldset/fieldset.js.map +1 -1
- package/dist/src/components/footer/footer-images.js +5 -27
- package/dist/src/components/footer/footer-images.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.css.js +1 -33
- package/dist/src/components/footer/footer-links-group.css.js.map +1 -1
- package/dist/src/components/footer/footer-links-group.d.ts +3 -3
- package/dist/src/components/footer/footer-links-group.js +3 -32
- package/dist/src/components/footer/footer-links-group.js.map +1 -1
- package/dist/src/components/footer/footer-locale.js +1 -45
- package/dist/src/components/footer/footer-locale.js.map +1 -1
- package/dist/src/components/footer/footer-lp.d.ts +7 -7
- package/dist/src/components/footer/footer-lp.js +8 -121
- package/dist/src/components/footer/footer-lp.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.css.js +1 -61
- package/dist/src/components/footer/footer-nav-menu.css.js.map +1 -1
- package/dist/src/components/footer/footer-nav-menu.d.ts +3 -3
- package/dist/src/components/footer/footer-nav-menu.js +3 -47
- package/dist/src/components/footer/footer-nav-menu.js.map +1 -1
- package/dist/src/components/footer/footer.css.js +1 -664
- package/dist/src/components/footer/footer.css.js.map +1 -1
- package/dist/src/components/footer/footer.d.ts +13 -13
- package/dist/src/components/footer/footer.js +20 -305
- package/dist/src/components/footer/footer.js.map +1 -1
- package/dist/src/components/footer/localeMap.js +1 -1
- package/dist/src/components/footer/localeMap.js.map +1 -1
- package/dist/src/components/grid/grid.css.js +1 -78
- package/dist/src/components/grid/grid.css.js.map +1 -1
- package/dist/src/components/grid/grid.d.ts +2 -2
- package/dist/src/components/grid/grid.js +9 -126
- package/dist/src/components/grid/grid.js.map +1 -1
- package/dist/src/components/header/header-code.css.js +1 -369
- package/dist/src/components/header/header-code.css.js.map +1 -1
- package/dist/src/components/header/header-code.d.ts +4 -4
- package/dist/src/components/header/header-code.js +15 -163
- package/dist/src/components/header/header-code.js.map +1 -1
- package/dist/src/components/header/header.css.js +1 -757
- package/dist/src/components/header/header.css.js.map +1 -1
- package/dist/src/components/header/header.d.ts +7 -7
- package/dist/src/components/header/header.js +4 -212
- package/dist/src/components/header/header.js.map +1 -1
- package/dist/src/components/heading/heading.css.js +1 -89
- package/dist/src/components/heading/heading.css.js.map +1 -1
- package/dist/src/components/heading/heading.d.ts +2 -2
- package/dist/src/components/heading/heading.js +1 -108
- package/dist/src/components/heading/heading.js.map +1 -1
- package/dist/src/components/help-text/help-text.css.js +1 -19
- package/dist/src/components/help-text/help-text.css.js.map +1 -1
- package/dist/src/components/help-text/help-text.d.ts +2 -2
- package/dist/src/components/help-text/help-text.js +3 -31
- package/dist/src/components/help-text/help-text.js.map +1 -1
- package/dist/src/components/hero/hero.css.js +1 -362
- package/dist/src/components/hero/hero.css.js.map +1 -1
- package/dist/src/components/hero/hero.d.ts +3 -3
- package/dist/src/components/hero/hero.js +12 -164
- package/dist/src/components/hero/hero.js.map +1 -1
- package/dist/src/components/highlight/highlight.css.js +1 -175
- package/dist/src/components/highlight/highlight.css.js.map +1 -1
- package/dist/src/components/highlight/highlight.d.ts +3 -3
- package/dist/src/components/highlight/highlight.js +4 -115
- package/dist/src/components/highlight/highlight.js.map +1 -1
- package/dist/src/components/icons/analysis-icon.d.ts +1 -1
- package/dist/src/components/icons/analysis-icon.js +2 -20
- package/dist/src/components/icons/analysis-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-down-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-down-icon.js +2 -20
- package/dist/src/components/icons/arrow-down-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-icon.js +2 -48
- package/dist/src/components/icons/arrow-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-right-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-right-icon.js +2 -45
- package/dist/src/components/icons/arrow-right-icon.js.map +1 -1
- package/dist/src/components/icons/arrow-up-icon.d.ts +1 -1
- package/dist/src/components/icons/arrow-up-icon.js +2 -33
- package/dist/src/components/icons/arrow-up-icon.js.map +1 -1
- package/dist/src/components/icons/av-comparatives-icon.js +2 -31
- package/dist/src/components/icons/av-comparatives-icon.js.map +1 -1
- package/dist/src/components/icons/bd-ai-icon.js +2 -31
- package/dist/src/components/icons/bd-ai-icon.js.map +1 -1
- package/dist/src/components/icons/best-brands-icon.js +2 -31
- package/dist/src/components/icons/best-brands-icon.js.map +1 -1
- package/dist/src/components/icons/brand-signature-icon.d.ts +1 -1
- package/dist/src/components/icons/brand-signature-icon.js +2 -46
- package/dist/src/components/icons/brand-signature-icon.js.map +1 -1
- package/dist/src/components/icons/check-icon.d.ts +1 -1
- package/dist/src/components/icons/check-icon.js +2 -31
- package/dist/src/components/icons/check-icon.js.map +1 -1
- package/dist/src/components/icons/circle-info-icon.d.ts +1 -1
- package/dist/src/components/icons/circle-info-icon.js +2 -35
- package/dist/src/components/icons/circle-info-icon.js.map +1 -1
- package/dist/src/components/icons/close-icon.d.ts +1 -1
- package/dist/src/components/icons/close-icon.js +2 -20
- package/dist/src/components/icons/close-icon.js.map +1 -1
- package/dist/src/components/icons/enterprise-icon.d.ts +1 -1
- package/dist/src/components/icons/enterprise-icon.js +2 -22
- package/dist/src/components/icons/enterprise-icon.js.map +1 -1
- package/dist/src/components/icons/family-icon.d.ts +1 -1
- package/dist/src/components/icons/family-icon.js +2 -20
- package/dist/src/components/icons/family-icon.js.map +1 -1
- package/dist/src/components/icons/globe-icon.d.ts +1 -1
- package/dist/src/components/icons/globe-icon.js +2 -20
- package/dist/src/components/icons/globe-icon.js.map +1 -1
- package/dist/src/components/icons/guide-icon.d.ts +1 -1
- package/dist/src/components/icons/guide-icon.js +2 -20
- package/dist/src/components/icons/guide-icon.js.map +1 -1
- package/dist/src/components/icons/home-icon.d.ts +1 -1
- package/dist/src/components/icons/home-icon.js +2 -22
- package/dist/src/components/icons/home-icon.js.map +1 -1
- package/dist/src/components/icons/icon-element.js +1 -162
- package/dist/src/components/icons/icon-element.js.map +1 -1
- package/dist/src/components/icons/icons.d.ts +23 -23
- package/dist/src/components/icons/icons.js +1 -42
- package/dist/src/components/icons/individual-icon.d.ts +1 -1
- package/dist/src/components/icons/individual-icon.js +2 -20
- package/dist/src/components/icons/individual-icon.js.map +1 -1
- package/dist/src/components/icons/laurel-icon.d.ts +1 -1
- package/dist/src/components/icons/laurel-icon.js +2 -24
- package/dist/src/components/icons/laurel-icon.js.map +1 -1
- package/dist/src/components/icons/machine-learning-icon.d.ts +1 -1
- package/dist/src/components/icons/machine-learning-icon.js +2 -20
- package/dist/src/components/icons/machine-learning-icon.js.map +1 -1
- package/dist/src/components/icons/marks.d.ts +9 -9
- package/dist/src/components/icons/marks.js +1 -41
- package/dist/src/components/icons/minus-icon.d.ts +1 -1
- package/dist/src/components/icons/minus-icon.js +2 -19
- package/dist/src/components/icons/minus-icon.js.map +1 -1
- package/dist/src/components/icons/missing-icon.d.ts +1 -1
- package/dist/src/components/icons/missing-icon.js +3 -53
- package/dist/src/components/icons/missing-icon.js.map +1 -1
- package/dist/src/components/icons/pause-icon.d.ts +1 -1
- package/dist/src/components/icons/pause-icon.js +2 -22
- package/dist/src/components/icons/pause-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-2024-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-2024-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-business-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-business-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-icon.js +2 -31
- package/dist/src/components/icons/pc-mag-icon.js.map +1 -1
- package/dist/src/components/icons/pc-mag-readers-icon.js +2 -30
- package/dist/src/components/icons/pc-mag-readers-icon.js.map +1 -1
- package/dist/src/components/icons/play-icon.d.ts +1 -1
- package/dist/src/components/icons/play-icon.js +2 -22
- package/dist/src/components/icons/play-icon.js.map +1 -1
- package/dist/src/components/icons/plus-icon.d.ts +1 -1
- package/dist/src/components/icons/plus-icon.js +2 -19
- package/dist/src/components/icons/plus-icon.js.map +1 -1
- package/dist/src/components/icons/quote-icon.d.ts +1 -1
- package/dist/src/components/icons/quote-icon.js +2 -30
- package/dist/src/components/icons/quote-icon.js.map +1 -1
- package/dist/src/components/icons/small-business-icon.d.ts +1 -1
- package/dist/src/components/icons/small-business-icon.js +2 -22
- package/dist/src/components/icons/small-business-icon.js.map +1 -1
- package/dist/src/components/icons/top-product-icon.js +2 -31
- package/dist/src/components/icons/top-product-icon.js.map +1 -1
- package/dist/src/components/image/image.css.js +1 -106
- package/dist/src/components/image/image.css.js.map +1 -1
- package/dist/src/components/image/image.d.ts +2 -2
- package/dist/src/components/image/image.js +10 -115
- package/dist/src/components/image/image.js.map +1 -1
- package/dist/src/components/input/input-clipboard.css.js +1 -93
- package/dist/src/components/input/input-clipboard.css.js.map +1 -1
- package/dist/src/components/input/input-clipboard.d.ts +5 -5
- package/dist/src/components/input/input-clipboard.js +20 -257
- package/dist/src/components/input/input-clipboard.js.map +1 -1
- package/dist/src/components/input/input.css.js +1 -9
- package/dist/src/components/input/input.css.js.map +1 -1
- package/dist/src/components/input/input.d.ts +4 -4
- package/dist/src/components/input/input.js +19 -202
- package/dist/src/components/input/input.js.map +1 -1
- package/dist/src/components/install-options/install-options.css.js +1 -308
- package/dist/src/components/install-options/install-options.css.js.map +1 -1
- package/dist/src/components/install-options/install-options.d.ts +4 -4
- package/dist/src/components/install-options/install-options.js +28 -159
- package/dist/src/components/install-options/install-options.js.map +1 -1
- package/dist/src/components/label/label.css.js +1 -33
- package/dist/src/components/label/label.css.js.map +1 -1
- package/dist/src/components/label/label.d.ts +3 -3
- package/dist/src/components/label/label.js +3 -135
- package/dist/src/components/label/label.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.css.js +1 -270
- package/dist/src/components/light-carousel/light-carousel.css.js.map +1 -1
- package/dist/src/components/light-carousel/light-carousel.d.ts +3 -3
- package/dist/src/components/light-carousel/light-carousel.js +16 -181
- package/dist/src/components/light-carousel/light-carousel.js.map +1 -1
- package/dist/src/components/link/link.css.js +1 -288
- package/dist/src/components/link/link.css.js.map +1 -1
- package/dist/src/components/link/link.d.ts +3 -3
- package/dist/src/components/link/link.js +6 -233
- package/dist/src/components/link/link.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.css.js +1 -167
- package/dist/src/components/list/list-item/list-item.css.js.map +1 -1
- package/dist/src/components/list/list-item/list-item.d.ts +3 -3
- package/dist/src/components/list/list-item/list-item.js +3 -122
- package/dist/src/components/list/list-item/list-item.js.map +1 -1
- package/dist/src/components/list/list.css.js +1 -180
- package/dist/src/components/list/list.css.js.map +1 -1
- package/dist/src/components/list/list.d.ts +1 -1
- package/dist/src/components/list/list.js +5 -82
- package/dist/src/components/list/list.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.css.js +1 -93
- package/dist/src/components/logo-marquee/logo-marquee.css.js.map +1 -1
- package/dist/src/components/logo-marquee/logo-marquee.d.ts +3 -3
- package/dist/src/components/logo-marquee/logo-marquee.js +6 -147
- package/dist/src/components/logo-marquee/logo-marquee.js.map +1 -1
- package/dist/src/components/modal/modal.css.js +1 -203
- package/dist/src/components/modal/modal.css.js.map +1 -1
- package/dist/src/components/modal/modal.d.ts +3 -3
- package/dist/src/components/modal/modal.js +3 -131
- package/dist/src/components/modal/modal.js.map +1 -1
- package/dist/src/components/motion-art/motion-art.d.ts +1 -1
- package/dist/src/components/motion-art/motion-art.js +1 -114
- package/dist/src/components/motion-art/motion-art.js.map +1 -1
- package/dist/src/components/overview/overview.css.js +1 -125
- package/dist/src/components/overview/overview.css.js.map +1 -1
- package/dist/src/components/overview/overview.d.ts +2 -2
- package/dist/src/components/overview/overview.js +9 -50
- package/dist/src/components/overview/overview.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.css.js +1 -174
- package/dist/src/components/page-switcher/page-switcher.css.js.map +1 -1
- package/dist/src/components/page-switcher/page-switcher.d.ts +2 -2
- package/dist/src/components/page-switcher/page-switcher.js +6 -62
- package/dist/src/components/page-switcher/page-switcher.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.css.js +1 -160
- package/dist/src/components/pagination-dots/pagination-dots.css.js.map +1 -1
- package/dist/src/components/pagination-dots/pagination-dots.d.ts +2 -2
- package/dist/src/components/pagination-dots/pagination-dots.js +10 -210
- package/dist/src/components/pagination-dots/pagination-dots.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.css.js +1 -101
- package/dist/src/components/paragraph/paragraph.css.js.map +1 -1
- package/dist/src/components/paragraph/paragraph.d.ts +2 -2
- package/dist/src/components/paragraph/paragraph.js +3 -119
- package/dist/src/components/paragraph/paragraph.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.css.js +1 -245
- package/dist/src/components/partner-banner/partner-banner.css.js.map +1 -1
- package/dist/src/components/partner-banner/partner-banner.d.ts +1 -1
- package/dist/src/components/partner-banner/partner-banner.js +6 -81
- package/dist/src/components/partner-banner/partner-banner.js.map +1 -1
- package/dist/src/components/picture/picture.css.js +1 -208
- package/dist/src/components/picture/picture.css.js.map +1 -1
- package/dist/src/components/picture/picture.d.ts +2 -2
- package/dist/src/components/picture/picture.js +14 -186
- package/dist/src/components/picture/picture.js.map +1 -1
- package/dist/src/components/post-card/post-card.css.js +1 -149
- package/dist/src/components/post-card/post-card.css.js.map +1 -1
- package/dist/src/components/post-card/post-card.d.ts +2 -2
- package/dist/src/components/post-card/post-card.js +5 -97
- package/dist/src/components/post-card/post-card.js.map +1 -1
- package/dist/src/components/pricing-cards/adopt-styles.js +1 -18
- package/dist/src/components/pricing-cards/adopt-styles.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing-card.d.ts +2 -2
- package/dist/src/components/pricing-cards/new-pricing-card.js +4 -49
- package/dist/src/components/pricing-cards/new-pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/new-pricing.css.js +1 -74
- package/dist/src/components/pricing-cards/new-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js +1 -11
- package/dist/src/components/pricing-cards/pricing-card-actions.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-actions.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-card-actions.js +2 -59
- package/dist/src/components/pricing-cards/pricing-card-actions.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.css.js +1 -41
- package/dist/src/components/pricing-cards/pricing-card-container.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.d.ts +1 -1
- package/dist/src/components/pricing-cards/pricing-card-container.js +2 -40
- package/dist/src/components/pricing-cards/pricing-card-container.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.css.js +1 -82
- package/dist/src/components/pricing-cards/pricing-card-header.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-header.d.ts +5 -5
- package/dist/src/components/pricing-cards/pricing-card-header.js +7 -70
- package/dist/src/components/pricing-cards/pricing-card-header.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js +1 -92
- package/dist/src/components/pricing-cards/pricing-card-pricing.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-pricing.d.ts +6 -6
- package/dist/src/components/pricing-cards/pricing-card-pricing.js +7 -87
- package/dist/src/components/pricing-cards/pricing-card-pricing.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js +1 -29
- package/dist/src/components/pricing-cards/pricing-card-show-more.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card-show-more.d.ts +4 -4
- package/dist/src/components/pricing-cards/pricing-card-show-more.js +5 -41
- package/dist/src/components/pricing-cards/pricing-card-show-more.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.css.js +1 -660
- package/dist/src/components/pricing-cards/pricing-card.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-card.d.ts +7 -7
- package/dist/src/components/pricing-cards/pricing-card.js +53 -639
- package/dist/src/components/pricing-cards/pricing-card.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js +1 -34
- package/dist/src/components/pricing-cards/pricing-feature-item.css.js.map +1 -1
- package/dist/src/components/pricing-cards/pricing-feature-item.d.ts +2 -2
- package/dist/src/components/pricing-cards/pricing-feature-item.js +2 -22
- package/dist/src/components/pricing-cards/pricing-feature-item.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.css.js +1 -106
- package/dist/src/components/process-steps/process-steps.css.js.map +1 -1
- package/dist/src/components/process-steps/process-steps.d.ts +5 -5
- package/dist/src/components/process-steps/process-steps.js +10 -78
- package/dist/src/components/process-steps/process-steps.js.map +1 -1
- package/dist/src/components/progress/progress.css.js +1 -123
- package/dist/src/components/progress/progress.css.js.map +1 -1
- package/dist/src/components/progress/progress.d.ts +2 -2
- package/dist/src/components/progress/progress.js +6 -72
- package/dist/src/components/progress/progress.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.css.js +1 -130
- package/dist/src/components/quick-answer/quick-answer.css.js.map +1 -1
- package/dist/src/components/quick-answer/quick-answer.d.ts +2 -2
- package/dist/src/components/quick-answer/quick-answer.js +9 -49
- package/dist/src/components/quick-answer/quick-answer.js.map +1 -1
- package/dist/src/components/radio/radio-group.css.js +1 -41
- package/dist/src/components/radio/radio-group.css.js.map +1 -1
- package/dist/src/components/radio/radio-group.d.ts +1 -1
- package/dist/src/components/radio/radio-group.js +5 -92
- package/dist/src/components/radio/radio-group.js.map +1 -1
- package/dist/src/components/radio/radio.css.js +1 -193
- package/dist/src/components/radio/radio.css.js.map +1 -1
- package/dist/src/components/radio/radio.d.ts +4 -4
- package/dist/src/components/radio/radio.js +6 -263
- package/dist/src/components/radio/radio.js.map +1 -1
- package/dist/src/components/radio/toggle-radio.d.ts +2 -2
- package/dist/src/components/radio/toggle-radio.js +3 -39
- package/dist/src/components/radio/toggle-radio.js.map +1 -1
- package/dist/src/components/review/review-grid.css.js +1 -46
- package/dist/src/components/review/review-grid.css.js.map +1 -1
- package/dist/src/components/review/review-grid.d.ts +2 -2
- package/dist/src/components/review/review-grid.js +4 -49
- package/dist/src/components/review/review-grid.js.map +1 -1
- package/dist/src/components/review/review.css.js +1 -54
- package/dist/src/components/review/review.css.js.map +1 -1
- package/dist/src/components/review/review.d.ts +2 -2
- package/dist/src/components/review/review.js +2 -59
- package/dist/src/components/review/review.js.map +1 -1
- package/dist/src/components/section/section.css.js +1 -37
- package/dist/src/components/section/section.css.js.map +1 -1
- package/dist/src/components/section/section.d.ts +1 -1
- package/dist/src/components/section/section.js +1 -50
- package/dist/src/components/section/section.js.map +1 -1
- package/dist/src/components/section-header/section-header.css.js +1 -99
- package/dist/src/components/section-header/section-header.css.js.map +1 -1
- package/dist/src/components/section-header/section-header.d.ts +2 -2
- package/dist/src/components/section-header/section-header.js +4 -85
- package/dist/src/components/section-header/section-header.js.map +1 -1
- package/dist/src/components/shared/announcer.d.ts +1 -1
- package/dist/src/components/shared/announcer.js +1 -34
- package/dist/src/components/shared/announcer.js.map +1 -1
- package/dist/src/components/shared/controller.media-query.d.ts +1 -1
- package/dist/src/components/shared/controller.media-query.js +1 -57
- package/dist/src/components/shared/controller.media-query.js.map +1 -1
- package/dist/src/components/shared/define-element.js +1 -16
- package/dist/src/components/shared/define-element.js.map +1 -1
- package/dist/src/components/shared/ensemble.css.js +1 -101
- package/dist/src/components/shared/ensemble.css.js.map +1 -1
- package/dist/src/components/shared/events.js +0 -13
- package/dist/src/components/shared/fill-width.css.js +2 -27
- package/dist/src/components/shared/fill-width.css.js.map +1 -1
- package/dist/src/components/shared/form-control.d.ts +1 -1
- package/dist/src/components/shared/form-control.js +1 -198
- package/dist/src/components/shared/form-control.js.map +1 -1
- package/dist/src/components/shared/form-field.css.js +1 -258
- package/dist/src/components/shared/form-field.css.js.map +1 -1
- package/dist/src/components/shared/prop-vocabulary.js +1 -49
- package/dist/src/components/shared/prop-vocabulary.js.map +1 -1
- package/dist/src/components/shared/token-scales.js +1 -351
- package/dist/src/components/shared/token-scales.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.css.js +1 -32
- package/dist/src/components/skeleton/skeleton.css.js.map +1 -1
- package/dist/src/components/skeleton/skeleton.d.ts +2 -2
- package/dist/src/components/skeleton/skeleton.js +4 -36
- package/dist/src/components/skeleton/skeleton.js.map +1 -1
- package/dist/src/components/spinner/spinner.css.js +1 -87
- package/dist/src/components/spinner/spinner.css.js.map +1 -1
- package/dist/src/components/spinner/spinner.d.ts +3 -3
- package/dist/src/components/spinner/spinner.js +3 -69
- package/dist/src/components/spinner/spinner.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.css.js +1 -105
- package/dist/src/components/spotlight-section/spotlight-section.css.js.map +1 -1
- package/dist/src/components/spotlight-section/spotlight-section.d.ts +2 -2
- package/dist/src/components/spotlight-section/spotlight-section.js +11 -72
- package/dist/src/components/spotlight-section/spotlight-section.js.map +1 -1
- package/dist/src/components/stat/stat-highlight.js +6 -82
- package/dist/src/components/stat/stat-highlight.js.map +1 -1
- package/dist/src/components/stat/stat-tile.js +5 -52
- package/dist/src/components/stat/stat-tile.js.map +1 -1
- package/dist/src/components/stat/stat.css.js +1 -145
- package/dist/src/components/stat/stat.css.js.map +1 -1
- package/dist/src/components/stat/stat.d.ts +2 -2
- package/dist/src/components/stat/stat.js +1 -3
- package/dist/src/components/switch/switch.css.js +1 -175
- package/dist/src/components/switch/switch.css.js.map +1 -1
- package/dist/src/components/switch/switch.d.ts +4 -4
- package/dist/src/components/switch/switch.js +4 -99
- package/dist/src/components/switch/switch.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.css.js +1 -289
- package/dist/src/components/tab-list/tab-list.css.js.map +1 -1
- package/dist/src/components/tab-list/tab-list.d.ts +1 -1
- package/dist/src/components/tab-list/tab-list.js +13 -191
- package/dist/src/components/tab-list/tab-list.js.map +1 -1
- package/dist/src/components/tabs/tabs.css.js +1 -77
- package/dist/src/components/tabs/tabs.css.js.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts +6 -6
- package/dist/src/components/tabs/tabs.js +8 -220
- package/dist/src/components/tabs/tabs.js.map +1 -1
- package/dist/src/components/tag/tag.css.js +1 -52
- package/dist/src/components/tag/tag.css.js.map +1 -1
- package/dist/src/components/tag/tag.d.ts +2 -2
- package/dist/src/components/tag/tag.js +2 -37
- package/dist/src/components/tag/tag.js.map +1 -1
- package/dist/src/components/terminal/terminal-cursor.js +1 -65
- package/dist/src/components/terminal/terminal-cursor.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.css.js +1 -409
- package/dist/src/components/terminal/terminal-message.css.js.map +1 -1
- package/dist/src/components/terminal/terminal-message.d.ts +5 -5
- package/dist/src/components/terminal/terminal-message.js +28 -183
- package/dist/src/components/terminal/terminal-message.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.css.js +1 -55
- package/dist/src/components/termsOfUse/terms.css.js.map +1 -1
- package/dist/src/components/termsOfUse/terms.d.ts +5 -5
- package/dist/src/components/termsOfUse/terms.js +9 -82
- package/dist/src/components/termsOfUse/terms.js.map +1 -1
- package/dist/src/components/textarea/textarea.css.js +1 -49
- package/dist/src/components/textarea/textarea.css.js.map +1 -1
- package/dist/src/components/textarea/textarea.d.ts +5 -5
- package/dist/src/components/textarea/textarea.js +15 -160
- package/dist/src/components/textarea/textarea.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.css.js +1 -96
- package/dist/src/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +2 -2
- package/dist/src/components/tooltip/tooltip.js +5 -285
- package/dist/src/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.css.js +1 -228
- package/dist/src/components/trust-panel/trust-panel.css.js.map +1 -1
- package/dist/src/components/trust-panel/trust-panel.d.ts +4 -4
- package/dist/src/components/trust-panel/trust-panel.js +25 -104
- package/dist/src/components/trust-panel/trust-panel.js.map +1 -1
- package/dist/src/components/video/video.css.js +1 -20
- package/dist/src/components/video/video.css.js.map +1 -1
- package/dist/src/components/video/video.d.ts +2 -2
- package/dist/src/components/video/video.js +5 -88
- package/dist/src/components/video/video.js.map +1 -1
- package/dist/src/components/video-player/video-player.css.js +1 -167
- package/dist/src/components/video-player/video-player.css.js.map +1 -1
- package/dist/src/components/video-player/video-player.d.ts +2 -2
- package/dist/src/components/video-player/video-player.js +15 -150
- package/dist/src/components/video-player/video-player.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.css.js +1 -22
- package/dist/src/components/visually-hidden/visually-hidden.css.js.map +1 -1
- package/dist/src/components/visually-hidden/visually-hidden.d.ts +2 -2
- package/dist/src/components/visually-hidden/visually-hidden.js +2 -22
- package/dist/src/components/visually-hidden/visually-hidden.js.map +1 -1
- package/dist/src/tokens/brand-layer.js +8 -162
- package/dist/src/tokens/brand-layer.js.map +1 -1
- package/dist/src/tokens/dark-derivation.js +1 -325
- package/dist/src/tokens/dark-derivation.js.map +1 -1
- package/dist/src/tokens/dark-findings.d.ts +1 -1
- package/dist/src/tokens/dark-findings.js +1 -204
- package/dist/src/tokens/dark-findings.js.map +1 -1
- package/dist/src/tokens/fonts.css +1 -166
- package/dist/src/tokens/layout.css +1 -61
- package/dist/src/tokens/story-chrome.js +27 -221
- package/dist/src/tokens/story-chrome.js.map +1 -1
- package/dist/src/tokens/themes/bitdefender.js +1 -30
- package/dist/src/tokens/themes/bitdefender.js.map +1 -1
- package/dist/src/tokens/themes/contract.js +1 -7
- package/dist/src/tokens/themes/contract.js.map +1 -1
- package/dist/src/tokens/themes/index.js +1 -39
- package/dist/src/tokens/themes/index.js.map +1 -1
- package/dist/src/tokens/token-map.js +1 -236
- package/dist/src/tokens/token-map.js.map +1 -1
- package/dist/src/tokens/token-purposes.js +1 -259
- package/dist/src/tokens/token-purposes.js.map +1 -1
- package/dist/src/tokens/tokens.css +1 -1809
- package/dist/src/tokens/tokens.js +1 -1865
- package/dist/src/tokens/tokens.js.map +1 -1
- package/dist/src/tokens/type-ceiling-words.js +1 -293
- package/dist/src/tokens/type-ceiling-words.js.map +1 -1
- package/package.json +14 -3
- package/schemas/component-manifest.json +1 -1
- package/dist/src/components/icons/icons.js.map +0 -1
- package/dist/src/components/icons/marks.js.map +0 -1
- package/dist/src/components/shared/events.js.map +0 -1
- package/dist/src/components/stat/stat.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.css.js","sourceRoot":"","sources":["../../../../src/components/accordion/accordion.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsR/B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGlC,CAAC","sourcesContent":["import { css } from \"lit\";\n\nexport const accordionItem = css`\n :host {\n display: block;\n margin-bottom: var(--bd-acc-item-margin-bottom, var(--spacing-16));\n box-sizing: border-box;\n border-radius: var(--shape-radius-sm);\n }\n\n /* The one focus ring, on the item.\n\n Two owners are in play and they are deliberately different elements. The\n TRIGGER owns focus: it is the button, it carries aria-expanded, a keyboard\n lands on it and a screen reader announces it. The ITEM owns the focus\n VISUAL: a disclosure is perceived as one object -- the question and, when\n open, its answer -- and the ring goes round that object, growing with the\n answer when it is revealed. Measured before the item drew it, on\n Components/Accordion \"Item open by default\": host [99,131,1242,61],\n trigger [99,131,1242,24], content [99,171,1242,21] -- the ring stopped at\n the question and the answer sat outside it.\n\n Exactly one painter. The trigger's :focus-visible rule below sets outline\n none and nothing else; the ring lives here. P6C.2.1 found both painting the\n same --focus-outline-primary and removed the host's; P6C.2.2 moved the one\n ring up to the item and took the trigger's away, so the invariant that\n phase established -- one token, one painter -- still holds.\n\n The item is .disclosure, the element in this shadow root that holds the\n trigger and the panel and fills the host's box, so :has() can see the\n trigger match :focus-visible. The host cannot: :host(:has(...)) looks at\n light-DOM children, never at the shadow tree. It used to be the host all\n the same, through data-bd-acc-focus, an attribute script set two frames\n after focusin and again on every keydown when the trigger matched\n :focus-visible; the selector answers both of those as they happen. A\n mouse click is still not :focus-visible, so it still draws no ring.\n\n The radius is the host's, inherited, for the reason the bg item's note\n gives: the ring follows the item's own corner.\n\n The stacking is measured: --bd-acc-item-margin-bottom is a public custom\n property, and with it zeroed on AccordionBg \"FAQ - Default\" a 300x5\n sample where the ring overlaps the next item holds 600 blue-500 pixels\n with position/z-index and 0 without -- the next item's tint paints over\n the ring. On the untinted bd-accordion-item it reads 600 either way.\n\n bd-accordion-bg-item adopts this stylesheet too, so this is the one rule\n that rings and stacks the whole accordion family. */\n .disclosure {\n border-radius: inherit;\n }\n\n .disclosure:has(> :is(.header, .bd-accordion-bg-question):focus-visible) {\n position: relative;\n z-index: var(--z-base);\n /* The host's ground, repainted by the element that draws the ring, so\n one element anti-aliases the ring's inner corner against the tint.\n Split between the two, the corner showed a faint tinted seam inside\n the ring's white band (60 pixels at 8x, measured). Unset hosts are\n transparent, so this paints nothing on them. */\n background-color: inherit;\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n }\n\n :host(:last-child) {\n margin-bottom: 0;\n }\n\n /* The section variants reach the items as custom properties, set on\n bd-accordion-section's own host (accordionSection below) and inherited\n through the slot. They were :host-context() rules here, which only\n Chromium implements: in Safari and Firefox the small variant's padding,\n type and colours, and the item spacing, never applied. The default\n section's block went with them -- every value in it was already the\n fallback each rule below carries, and its title colours were never read. */\n\n ::slotted(bd-list) {\n --bd-li-margin-bottom: var(--spacing-16);\n display: block;\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted(bd-list:last-child) {\n margin-bottom: 0;\n }\n\n /* bd-p in bd-accordion simplu — spacing-16 intre paragrafe */\n ::slotted(bd-p:last-of-type) {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .header {\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--bd-acc-header-padding, var(--spacing-0));\n border: none;\n background: none;\n text-align: start;\n cursor: pointer;\n gap: var(--bd-acc-icon-gap, var(--spacing-12));\n font-family: var(--typography-fontFamily-sans);\n font-style: normal;\n font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));\n margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));\n }\n\n /* No ring on the trigger. outline: none is not a removal: the visible focus\n indicator is the item's ring, drawn by .disclosure above on exactly the\n frames this pseudo-class matches. Painting it here as well is the double\n ring P6C.2.1 measured and removed. */\n .header:focus-visible {\n outline: none;\n }\n\n .header[aria-expanded=\"true\"] .title {\n /* blue-500 is 4.2:1 on the blue-50 tint these titles sit on; blue-600 is 5.72 */\n color: var(--bd-acc-title-color-expanded, var(--color-text-brand));\n }\n\n .header[aria-expanded=\"false\"] .title {\n color: var(--bd-acc-title-color-collapsed, var(--color-text-brand));\n }\n\n /* Only a section that sets a hover colour changes on hover; the fallback is\n each state's own colour. */\n .header[aria-expanded=\"true\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-expanded, var(--color-text-brand)));\n }\n\n .header[aria-expanded=\"false\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-collapsed, var(--color-text-brand)));\n }\n\n .toggle {\n flex-shrink: 0;\n width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n min-width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n height: var(--bd-acc-toggle-size, var(--icon-sm-size));\n display: flex;\n align-items: center;\n justify-content: center;\n /* the box holds an icon, not text; none collapses the leading to the\n glyph rather than reserving a text line around it */\n line-height: var(--typography-lineHeight-none);\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n margin-top: calc(\n (var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight)) * 1em -\n var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2\n );\n }\n\n /* A \".toggle img\" rule stood here and could never match. The toggle renders\n <bd-plus-icon>, <bd-minus-icon> or the chevron atoms, each taking its own\n size and color props -- there has been no <img> here since that migration,\n and the atom's props already carry what this rule was sizing.\n .\n Those props pass --color-text-brand, the same role .header carries and the\n one bd-link's whole family resolves to. They passed --color-blue-500 until\n the Figma audit put icon and label side by side: the label was already the\n role, so the toggle disagreed with its own text by one step. This file had\n already made the same move twice -- on .header[aria-expanded=\"true\"] .title\n and on .user-guide-link a -- and the icon was the hold-out, passing on the\n 3:1 non-text bar where the text beside it needed 4.5:1. */\n\n .title {\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n }\n\n /* Wrapping is the whole mechanism: whether a title and its badge fit on one\n line depends on how long the title is and how much room this accordion\n has, not on how wide the window is. A 430px viewport rule used to force\n the column stack, which was both too eager and too narrow -- measured, a\n 320px-wide accordion on a 1280px viewport never triggered it and laid out\n correctly anyway, while a short title on a 320px viewport was stacked when\n it would have fitted. flex-wrap answers the question actually being asked. */\n .title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n flex: 1;\n flex-wrap: wrap;\n }\n\n /* The panel is indented past the toggle, so the indent is on the inline\n start: on a right-to-left page the toggle and the indent are both on the\n right. The section variant passes its padding as a block pair and an\n inline pair (start end) for the same reason; it was one four-value\n shorthand, which put the indent on the left whatever the direction. */\n .content {\n padding-block: var(--bd-acc-panel-padding-block, 0);\n padding-inline: var(--bd-acc-panel-padding-inline, calc(var(--icon-sm-size) + var(--spacing-12)) 0);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--bd-acc-panel-font-size, var(--typography-body-small-fontSize));\n font-weight: var(--bd-acc-panel-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-acc-panel-line-height, var(--typography-body-small-lineHeight));\n /* -primary, which is what every section renders this at, and what the\n Figma item draws: text/primary. */\n color: var(--bd-acc-panel-color, var(--color-text-primary));\n }\n\n /* Plain hidden only: a panel that is hidden=\"until-found\" must keep its\n box, or find in page cannot reach it (accordion-panel.ts). The browser\n skips its contents, so it paints nothing, but a box in flow still counts:\n its block padding would show (the small variant's is 8 at the bottom), and\n even at zero height it stops the trigger's bottom margin collapsing\n through the item -- measured, every closed item grew from 24 to 40. Out of\n flow and unpadded, a closed panel lays out as display: none did. */\n .content[hidden]:not([hidden=\"until-found\" i]) {\n display: none !important;\n }\n\n .content[hidden] {\n position: absolute;\n padding-block: 0;\n }\n\n ::slotted(p) {\n margin-top: 0;\n margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n }\n\n ::slotted(p:last-child) {\n margin-bottom: 0;\n }\n\n /* === CHEVRON VARIANT (text + arrow icon only, no visible border/pill/background) === */\n .header--chevron {\n display: inline-flex;\n align-items: center;\n justify-content: flex-start;\n width: auto;\n gap: var(--spacing-8);\n padding: 0;\n border: none;\n border-radius: var(--radius-none);\n background: none;\n margin-bottom: var(--spacing-24);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n }\n\n .header--chevron .title-badge-wrapper {\n flex: 0 1 auto;\n }\n\n .header--chevron .title {\n color: var(--color-text-brand);\n white-space: nowrap;\n }\n\n .header--chevron:hover .title {\n text-decoration: underline;\n }\n\n .toggle--chevron {\n width: 16px;\n min-width: 16px;\n height: 16px;\n margin-top: 0;\n }\n\n .content--chevron {\n padding: 0;\n }\n`;\n\nexport const accordionSection = css`\n /* The band is as wide as the section, and the section, like every page\n section, is as wide as the page; the column inside is .bd-ensemble's. It\n used to escape to the window's edges with width: 100vw and calc(50% -\n 50vw) margins, and 100vw counts a classic scrollbar: measured with a 15px\n one, the band ran from -7px to 1273px over a 1265px page, so every page\n with an accordion section scrolled sideways. */\n .bd-accordion-section-container {\n background-color: var(--bd-acc-section-bg, var(--color-surface-container));\n border-radius: var(--radius-none);\n box-sizing: border-box;\n padding-top: var(--bd-acc-section-padding-v, var(--spacing-32));\n padding-bottom: var(--bd-acc-section-padding-v, var(--spacing-32));\n }\n\n .bd-accordion-section-inner {\n box-sizing: border-box;\n }\n\n :host([variant=\"small\"]) {\n /* White here means \"the untinted page ground\", which is -surface-default's\n job; the default variant two rules up already asks for a surface role. */\n --bd-acc-section-bg: var(--color-surface-default);\n --bd-acc-section-padding-v: var(--spacing-24);\n /* Read by the items (accordionItem above), which inherit them through the slot. */\n --bd-acc-header-padding: var(--spacing-12) var(--spacing-8);\n --bd-acc-header-margin-bottom: var(--spacing-0);\n --bd-acc-icon-gap: var(--spacing-12);\n --bd-acc-toggle-size: var(--icon-sm-size);\n --bd-acc-title-font-size: var(--typography-label-default-fontSize);\n --bd-acc-title-font-weight: var(--typography-label-default-fontWeight);\n --bd-acc-title-line-height: var(--typography-label-default-lineHeight);\n --bd-acc-title-color-collapsed: var(--color-text-primary);\n --bd-acc-title-color-expanded: var(--color-brand-800);\n --bd-acc-title-color-hover: var(--color-text-brand);\n --bd-acc-panel-font-size: var(--typography-caption-default-fontSize);\n --bd-acc-panel-font-weight: var(--typography-caption-default-fontWeight);\n --bd-acc-panel-line-height: var(--typography-caption-default-lineHeight);\n /* Panel body copy, small variant. */\n --bd-acc-panel-color: var(--color-text-primary);\n --bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-8);\n --bd-acc-panel-padding-inline: var(--spacing-36) var(--spacing-8);\n --bd-acc-panel-paragraph-gap: var(--spacing-0);\n --bd-acc-item-margin-bottom: var(--spacing-0);\n }\n\n :host([variant=\"default-blue\"]) {\n /* The brand tint as a surface, which is what the Figma section already\n binds this to (status/brand/surface) and what bd-accordion-bg's item\n ground uses for the same tint. */\n --bd-acc-section-bg: var(--status-brand-surface);\n }\n\n .section-title {\n margin-bottom: var(--spacing-24);\n margin-top: var(--spacing-0);\n }\n\n :host([variant=\"small\"]) .section-title {\n margin-bottom: var(--spacing-16);\n }\n\n .user-guide-link {\n margin-top: var(--spacing-32);\n color: var(--color-text-brand);\n }\n\n .user-guide-link a {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n /* --color-text-brand, which is what .user-guide-link one rule up already\n says. This anchor overrode its own parent with the raw primitive, and\n blue-500 measures 4.34:1 on the --color-surface-container these links sit\n on -- the exact trap the token comment two hundred lines up describes and\n that this file already avoids twice elsewhere. blue-600 is 5.92. */\n color: var(--color-text-brand);\n gap: var(--spacing-12);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-xsmall-fontSize);\n }\n\n .user-guide-link a:focus-visible {\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .user-guide-link .icon img {\n display: block;\n width: var(--dimension-16);\n height: var(--dimension-16);\n object-fit: contain;\n }\n`;"]}
|
|
1
|
+
{"version":3,"file":"accordion.css.js","names":["accordionItem","accordionSection"],"sources":["../../../../src/components/accordion/accordion.css.ts"],"sourcesContent":["import { css } from \"lit\";\n\nexport const accordionItem = css`\n :host {\n display: block;\n margin-bottom: var(--bd-acc-item-margin-bottom, var(--spacing-16));\n box-sizing: border-box;\n border-radius: var(--shape-radius-sm);\n }\n\n /* The one focus ring, on the item.\n\n Two owners are in play and they are deliberately different elements. The\n TRIGGER owns focus: it is the button, it carries aria-expanded, a keyboard\n lands on it and a screen reader announces it. The ITEM owns the focus\n VISUAL: a disclosure is perceived as one object -- the question and, when\n open, its answer -- and the ring goes round that object, growing with the\n answer when it is revealed. Measured before the item drew it, on\n Components/Accordion \"Item open by default\": host [99,131,1242,61],\n trigger [99,131,1242,24], content [99,171,1242,21] -- the ring stopped at\n the question and the answer sat outside it.\n\n Exactly one painter. The trigger's :focus-visible rule below sets outline\n none and nothing else; the ring lives here. P6C.2.1 found both painting the\n same --focus-outline-primary and removed the host's; P6C.2.2 moved the one\n ring up to the item and took the trigger's away, so the invariant that\n phase established -- one token, one painter -- still holds.\n\n The item is .disclosure, the element in this shadow root that holds the\n trigger and the panel and fills the host's box, so :has() can see the\n trigger match :focus-visible. The host cannot: :host(:has(...)) looks at\n light-DOM children, never at the shadow tree. It used to be the host all\n the same, through data-bd-acc-focus, an attribute script set two frames\n after focusin and again on every keydown when the trigger matched\n :focus-visible; the selector answers both of those as they happen. A\n mouse click is still not :focus-visible, so it still draws no ring.\n\n The radius is the host's, inherited, for the reason the bg item's note\n gives: the ring follows the item's own corner.\n\n The stacking is measured: --bd-acc-item-margin-bottom is a public custom\n property, and with it zeroed on AccordionBg \"FAQ - Default\" a 300x5\n sample where the ring overlaps the next item holds 600 blue-500 pixels\n with position/z-index and 0 without -- the next item's tint paints over\n the ring. On the untinted bd-accordion-item it reads 600 either way.\n\n bd-accordion-bg-item adopts this stylesheet too, so this is the one rule\n that rings and stacks the whole accordion family. */\n .disclosure {\n border-radius: inherit;\n }\n\n .disclosure:has(> :is(.header, .bd-accordion-bg-question):focus-visible) {\n position: relative;\n z-index: var(--z-base);\n /* The host's ground, repainted by the element that draws the ring, so\n one element anti-aliases the ring's inner corner against the tint.\n Split between the two, the corner showed a faint tinted seam inside\n the ring's white band (60 pixels at 8x, measured). Unset hosts are\n transparent, so this paints nothing on them. */\n background-color: inherit;\n box-shadow: var(--focus-outline-primary);\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n }\n\n :host(:last-child) {\n margin-bottom: 0;\n }\n\n /* The section variants reach the items as custom properties, set on\n bd-accordion-section's own host (accordionSection below) and inherited\n through the slot. They were :host-context() rules here, which only\n Chromium implements: in Safari and Firefox the small variant's padding,\n type and colours, and the item spacing, never applied. The default\n section's block went with them -- every value in it was already the\n fallback each rule below carries, and its title colours were never read. */\n\n ::slotted(bd-list) {\n --bd-li-margin-bottom: var(--spacing-16);\n display: block;\n margin-bottom: var(--spacing-16);\n }\n\n ::slotted(bd-list:last-child) {\n margin-bottom: 0;\n }\n\n /* bd-p in bd-accordion simplu — spacing-16 intre paragrafe */\n ::slotted(bd-p:last-of-type) {\n --bd-paragraph-margin-bottom: 0;\n }\n\n .header {\n display: flex;\n align-items: flex-start;\n width: 100%;\n padding: var(--bd-acc-header-padding, var(--spacing-0));\n border: none;\n background: none;\n text-align: start;\n cursor: pointer;\n gap: var(--bd-acc-icon-gap, var(--spacing-12));\n font-family: var(--typography-fontFamily-sans);\n font-style: normal;\n font-size: var(--bd-acc-title-font-size, var(--typography-label-large-fontSize));\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n line-height: var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight));\n margin-bottom: var(--bd-acc-header-margin-bottom, var(--spacing-16));\n }\n\n /* No ring on the trigger. outline: none is not a removal: the visible focus\n indicator is the item's ring, drawn by .disclosure above on exactly the\n frames this pseudo-class matches. Painting it here as well is the double\n ring P6C.2.1 measured and removed. */\n .header:focus-visible {\n outline: none;\n }\n\n .header[aria-expanded=\"true\"] .title {\n /* blue-500 is 4.2:1 on the blue-50 tint these titles sit on; blue-600 is 5.72 */\n color: var(--bd-acc-title-color-expanded, var(--color-text-brand));\n }\n\n .header[aria-expanded=\"false\"] .title {\n color: var(--bd-acc-title-color-collapsed, var(--color-text-brand));\n }\n\n /* Only a section that sets a hover colour changes on hover; the fallback is\n each state's own colour. */\n .header[aria-expanded=\"true\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-expanded, var(--color-text-brand)));\n }\n\n .header[aria-expanded=\"false\"]:hover .title {\n color: var(--bd-acc-title-color-hover, var(--bd-acc-title-color-collapsed, var(--color-text-brand)));\n }\n\n .toggle {\n flex-shrink: 0;\n width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n min-width: var(--bd-acc-toggle-size, var(--icon-sm-size));\n height: var(--bd-acc-toggle-size, var(--icon-sm-size));\n display: flex;\n align-items: center;\n justify-content: center;\n /* the box holds an icon, not text; none collapses the leading to the\n glyph rather than reserving a text line around it */\n line-height: var(--typography-lineHeight-none);\n /* Safari reads only the prefixed property */\n -webkit-user-select: none;\n user-select: none;\n margin-top: calc(\n (var(--bd-acc-title-line-height, var(--typography-label-large-lineHeight)) * 1em -\n var(--bd-acc-toggle-size, var(--icon-sm-size))) / 2\n );\n }\n\n /* A \".toggle img\" rule stood here and could never match. The toggle renders\n <bd-plus-icon>, <bd-minus-icon> or the chevron atoms, each taking its own\n size and color props -- there has been no <img> here since that migration,\n and the atom's props already carry what this rule was sizing.\n .\n Those props pass --color-text-brand, the same role .header carries and the\n one bd-link's whole family resolves to. They passed --color-blue-500 until\n the Figma audit put icon and label side by side: the label was already the\n role, so the toggle disagreed with its own text by one step. This file had\n already made the same move twice -- on .header[aria-expanded=\"true\"] .title\n and on .user-guide-link a -- and the icon was the hold-out, passing on the\n 3:1 non-text bar where the text beside it needed 4.5:1. */\n\n .title {\n font-weight: var(--bd-acc-title-font-weight, var(--typography-label-large-fontWeight));\n }\n\n /* Wrapping is the whole mechanism: whether a title and its badge fit on one\n line depends on how long the title is and how much room this accordion\n has, not on how wide the window is. A 430px viewport rule used to force\n the column stack, which was both too eager and too narrow -- measured, a\n 320px-wide accordion on a 1280px viewport never triggered it and laid out\n correctly anyway, while a short title on a 320px viewport was stacked when\n it would have fitted. flex-wrap answers the question actually being asked. */\n .title-badge-wrapper {\n display: flex;\n align-items: center;\n gap: var(--spacing-8);\n flex: 1;\n flex-wrap: wrap;\n }\n\n /* The panel is indented past the toggle, so the indent is on the inline\n start: on a right-to-left page the toggle and the indent are both on the\n right. The section variant passes its padding as a block pair and an\n inline pair (start end) for the same reason; it was one four-value\n shorthand, which put the indent on the left whatever the direction. */\n .content {\n padding-block: var(--bd-acc-panel-padding-block, 0);\n padding-inline: var(--bd-acc-panel-padding-inline, calc(var(--icon-sm-size) + var(--spacing-12)) 0);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--bd-acc-panel-font-size, var(--typography-body-small-fontSize));\n font-weight: var(--bd-acc-panel-font-weight, var(--typography-body-small-fontWeight));\n line-height: var(--bd-acc-panel-line-height, var(--typography-body-small-lineHeight));\n /* -primary, which is what every section renders this at, and what the\n Figma item draws: text/primary. */\n color: var(--bd-acc-panel-color, var(--color-text-primary));\n }\n\n /* Plain hidden only: a panel that is hidden=\"until-found\" must keep its\n box, or find in page cannot reach it (accordion-panel.ts). The browser\n skips its contents, so it paints nothing, but a box in flow still counts:\n its block padding would show (the small variant's is 8 at the bottom), and\n even at zero height it stops the trigger's bottom margin collapsing\n through the item -- measured, every closed item grew from 24 to 40. Out of\n flow and unpadded, a closed panel lays out as display: none did. */\n .content[hidden]:not([hidden=\"until-found\" i]) {\n display: none !important;\n }\n\n .content[hidden] {\n position: absolute;\n padding-block: 0;\n }\n\n ::slotted(p) {\n margin-top: 0;\n margin-bottom: var(--bd-acc-panel-paragraph-gap, var(--spacing-16));\n font-size: inherit;\n font-family: inherit;\n font-weight: inherit;\n line-height: inherit;\n color: inherit;\n }\n\n ::slotted(p:last-child) {\n margin-bottom: 0;\n }\n\n /* === CHEVRON VARIANT (text + arrow icon only, no visible border/pill/background) === */\n .header--chevron {\n display: inline-flex;\n align-items: center;\n justify-content: flex-start;\n width: auto;\n gap: var(--spacing-8);\n padding: 0;\n border: none;\n border-radius: var(--radius-none);\n background: none;\n margin-bottom: var(--spacing-24);\n font-size: var(--typography-label-default-fontSize);\n font-weight: var(--typography-label-default-fontWeight);\n }\n\n .header--chevron .title-badge-wrapper {\n flex: 0 1 auto;\n }\n\n .header--chevron .title {\n color: var(--color-text-brand);\n white-space: nowrap;\n }\n\n .header--chevron:hover .title {\n text-decoration: underline;\n }\n\n .toggle--chevron {\n width: 16px;\n min-width: 16px;\n height: 16px;\n margin-top: 0;\n }\n\n .content--chevron {\n padding: 0;\n }\n`;\n\nexport const accordionSection = css`\n /* The band is as wide as the section, and the section, like every page\n section, is as wide as the page; the column inside is .bd-ensemble's. It\n used to escape to the window's edges with width: 100vw and calc(50% -\n 50vw) margins, and 100vw counts a classic scrollbar: measured with a 15px\n one, the band ran from -7px to 1273px over a 1265px page, so every page\n with an accordion section scrolled sideways. */\n .bd-accordion-section-container {\n background-color: var(--bd-acc-section-bg, var(--color-surface-container));\n border-radius: var(--radius-none);\n box-sizing: border-box;\n padding-top: var(--bd-acc-section-padding-v, var(--spacing-32));\n padding-bottom: var(--bd-acc-section-padding-v, var(--spacing-32));\n }\n\n .bd-accordion-section-inner {\n box-sizing: border-box;\n }\n\n :host([variant=\"small\"]) {\n /* White here means \"the untinted page ground\", which is -surface-default's\n job; the default variant two rules up already asks for a surface role. */\n --bd-acc-section-bg: var(--color-surface-default);\n --bd-acc-section-padding-v: var(--spacing-24);\n /* Read by the items (accordionItem above), which inherit them through the slot. */\n --bd-acc-header-padding: var(--spacing-12) var(--spacing-8);\n --bd-acc-header-margin-bottom: var(--spacing-0);\n --bd-acc-icon-gap: var(--spacing-12);\n --bd-acc-toggle-size: var(--icon-sm-size);\n --bd-acc-title-font-size: var(--typography-label-default-fontSize);\n --bd-acc-title-font-weight: var(--typography-label-default-fontWeight);\n --bd-acc-title-line-height: var(--typography-label-default-lineHeight);\n --bd-acc-title-color-collapsed: var(--color-text-primary);\n --bd-acc-title-color-expanded: var(--color-brand-800);\n --bd-acc-title-color-hover: var(--color-text-brand);\n --bd-acc-panel-font-size: var(--typography-caption-default-fontSize);\n --bd-acc-panel-font-weight: var(--typography-caption-default-fontWeight);\n --bd-acc-panel-line-height: var(--typography-caption-default-lineHeight);\n /* Panel body copy, small variant. */\n --bd-acc-panel-color: var(--color-text-primary);\n --bd-acc-panel-padding-block: var(--spacing-0) var(--spacing-8);\n --bd-acc-panel-padding-inline: var(--spacing-36) var(--spacing-8);\n --bd-acc-panel-paragraph-gap: var(--spacing-0);\n --bd-acc-item-margin-bottom: var(--spacing-0);\n }\n\n :host([variant=\"default-blue\"]) {\n /* The brand tint as a surface, which is what the Figma section already\n binds this to (status/brand/surface) and what bd-accordion-bg's item\n ground uses for the same tint. */\n --bd-acc-section-bg: var(--status-brand-surface);\n }\n\n .section-title {\n margin-bottom: var(--spacing-24);\n margin-top: var(--spacing-0);\n }\n\n :host([variant=\"small\"]) .section-title {\n margin-bottom: var(--spacing-16);\n }\n\n .user-guide-link {\n margin-top: var(--spacing-32);\n color: var(--color-text-brand);\n }\n\n .user-guide-link a {\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n /* --color-text-brand, which is what .user-guide-link one rule up already\n says. This anchor overrode its own parent with the raw primitive, and\n blue-500 measures 4.34:1 on the --color-surface-container these links sit\n on -- the exact trap the token comment two hundred lines up describes and\n that this file already avoids twice elsewhere. blue-600 is 5.92. */\n color: var(--color-text-brand);\n gap: var(--spacing-12);\n font-family: var(--typography-fontFamily-sans);\n font-size: var(--typography-body-xsmall-fontSize);\n }\n\n .user-guide-link a:focus-visible {\n /* forced-colors mode does not paint box-shadow, so the ring\n vanishes there; it does paint an outline, in a system colour. This one\n is transparent everywhere else, and the offset lands it on the ring's\n outer band. */\n outline: var(--border-width-2) solid transparent;\n outline-offset: var(--focus-outline-offset);\n box-shadow: var(--focus-outline-primary);\n border-radius: var(--focus-outline-radius);\n }\n\n .user-guide-link .icon img {\n display: block;\n width: var(--dimension-16);\n height: var(--dimension-16);\n object-fit: contain;\n }\n`;"],"mappings":"A,0BAEA,IAAaA,EAAgB,CAAG,00HAwRnBC,EAAmB,CAAG,yxE"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import "../../tokens/tokens.
|
|
3
|
-
import "../heading/heading.
|
|
4
|
-
import "../icons/arrow-down-icon.
|
|
5
|
-
import "../icons/arrow-up-icon.
|
|
6
|
-
import "../icons/minus-icon.
|
|
7
|
-
import "../icons/plus-icon.
|
|
8
|
-
import "../paragraph/paragraph.
|
|
2
|
+
import "../../tokens/tokens.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
|
+
import "../icons/arrow-down-icon.js";
|
|
5
|
+
import "../icons/arrow-up-icon.js";
|
|
6
|
+
import "../icons/minus-icon.js";
|
|
7
|
+
import "../icons/plus-icon.js";
|
|
8
|
+
import "../paragraph/paragraph.js";
|
|
9
9
|
type SectionVariant = "default" | "default-blue" | "small";
|
|
10
10
|
export declare class BdAccordionItem extends LitElement {
|
|
11
11
|
static styles: import("lit").CSSResult[];
|
|
@@ -1,55 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
8
|
-
import { property, state } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
// Installs the design tokens into document scope; see src/tokens/tokens.ts
|
|
11
|
-
import "../../tokens/tokens.js";
|
|
12
|
-
import "../heading/heading.js";
|
|
13
|
-
import "../icons/arrow-down-icon.js";
|
|
14
|
-
import "../icons/arrow-up-icon.js";
|
|
15
|
-
import "../icons/minus-icon.js";
|
|
16
|
-
import "../icons/plus-icon.js";
|
|
17
|
-
import "../paragraph/paragraph.js";
|
|
18
|
-
import { accordionItem, accordionSection } from "./accordion.css.js";
|
|
19
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
20
|
-
import { onTriggerKeydown } from "./accordion-keyboard.js";
|
|
21
|
-
import { panelHidden } from "./accordion-panel.js";
|
|
22
|
-
let BdAccordionItem = class BdAccordionItem extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.open = false;
|
|
26
|
-
this.title = "";
|
|
27
|
-
this.chevron = false; // text + arrow icon variant
|
|
28
|
-
this._panelId = `acc-panel-${Math.random().toString(36)
|
|
29
|
-
.slice(2, 11)}`;
|
|
30
|
-
}
|
|
31
|
-
static { this.styles = [accordionItem]; }
|
|
32
|
-
toggle() {
|
|
33
|
-
this.open = !this.open;
|
|
34
|
-
}
|
|
35
|
-
/* Find in page matched text in the closed panel: open, so the item's state
|
|
36
|
-
agrees with what the browser is about to reveal (accordion-panel.ts). */
|
|
37
|
-
_onBeforeMatch() {
|
|
38
|
-
this.open = true;
|
|
39
|
-
}
|
|
40
|
-
_onTriggerKeydown(e) {
|
|
41
|
-
onTriggerKeydown(this, e);
|
|
42
|
-
}
|
|
43
|
-
/** Move keyboard focus to this item's disclosure trigger. */
|
|
44
|
-
focusTrigger() {
|
|
45
|
-
this.renderRoot?.querySelector(".header")?.focus();
|
|
46
|
-
}
|
|
47
|
-
/* The trigger and its panel sit in one .disclosure, the box the focus ring
|
|
48
|
-
goes round -- see the note on .disclosure in accordion.css.ts. */
|
|
49
|
-
render() {
|
|
50
|
-
const badgeEl = this.querySelector("[slot='badge']");
|
|
51
|
-
if (this.chevron) {
|
|
52
|
-
return html `<div class="disclosure">
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import"../../tokens/tokens.js";import t from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../icons/minus-icon.js";import"../icons/plus-icon.js";import"../paragraph/paragraph.js";import{ensembleCSS as n}from"../shared/ensemble.css.js";import{accordionItem as r,accordionSection as i}from"./accordion.css.js";import{onTriggerKeydown as a}from"./accordion-keyboard.js";import{panelHidden as o}from"./accordion-panel.js";import"../icons/arrow-down-icon.js";import"../icons/arrow-up-icon.js";import{LitElement as s,html as c}from"lit";import{property as l,state as u}from"lit/decorators.js";var d=class extends s{constructor(...e){super(...e),this.open=!1,this.title=``,this.chevron=!1,this._panelId=`acc-panel-${Math.random().toString(36).slice(2,11)}`}static{this.styles=[r]}toggle(){this.open=!this.open}_onBeforeMatch(){this.open=!0}_onTriggerKeydown(e){a(this,e)}focusTrigger(){this.renderRoot?.querySelector(`.header`)?.focus()}render(){let e=this.querySelector(`[slot='badge']`);return this.chevron?c`<div class="disclosure">
|
|
53
2
|
<button
|
|
54
3
|
type="button"
|
|
55
4
|
class="header header--chevron"
|
|
@@ -60,25 +9,21 @@ let BdAccordionItem = class BdAccordionItem extends LitElement {
|
|
|
60
9
|
>
|
|
61
10
|
<span class="title-badge-wrapper">
|
|
62
11
|
<span class="title">${this.title}</span>
|
|
63
|
-
${
|
|
12
|
+
${e?e.cloneNode(!0):``}
|
|
64
13
|
</span>
|
|
65
14
|
<span class="toggle toggle--chevron" aria-hidden="true">
|
|
66
|
-
${this.open
|
|
67
|
-
? html `<bd-arrow-up-icon size="16" color="var(--color-text-brand)"></bd-arrow-up-icon>`
|
|
68
|
-
: html `<bd-arrow-down-icon size="16" color="var(--color-text-brand)"></bd-arrow-down-icon>`}
|
|
15
|
+
${this.open?c`<bd-arrow-up-icon size="16" color="var(--color-text-brand)"></bd-arrow-up-icon>`:c`<bd-arrow-down-icon size="16" color="var(--color-text-brand)"></bd-arrow-down-icon>`}
|
|
69
16
|
</span>
|
|
70
17
|
</button>
|
|
71
18
|
<div
|
|
72
19
|
id="${this._panelId}"
|
|
73
20
|
class="content content--chevron"
|
|
74
|
-
hidden=${
|
|
21
|
+
hidden=${o(this.open)}
|
|
75
22
|
@beforematch=${this._onBeforeMatch}
|
|
76
23
|
>
|
|
77
24
|
<slot></slot>
|
|
78
25
|
</div>
|
|
79
|
-
</div
|
|
80
|
-
}
|
|
81
|
-
return html `<div class="disclosure">
|
|
26
|
+
</div>`:c`<div class="disclosure">
|
|
82
27
|
<button
|
|
83
28
|
type="button"
|
|
84
29
|
class="header"
|
|
@@ -88,103 +33,36 @@ let BdAccordionItem = class BdAccordionItem extends LitElement {
|
|
|
88
33
|
@keydown=${this._onTriggerKeydown}
|
|
89
34
|
>
|
|
90
35
|
<span class="toggle" aria-hidden="true">
|
|
91
|
-
${this.open
|
|
92
|
-
? html `<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`
|
|
93
|
-
: html `<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
36
|
+
${this.open?c`<bd-minus-icon size="16" color="var(--color-text-brand)"></bd-minus-icon>`:c`<bd-plus-icon size="16" color="var(--color-text-brand)"></bd-plus-icon>`}
|
|
94
37
|
</span>
|
|
95
38
|
<span class="title-badge-wrapper">
|
|
96
39
|
<span class="title">${this.title}</span>
|
|
97
|
-
${
|
|
40
|
+
${e?e.cloneNode(!0):``}
|
|
98
41
|
</span>
|
|
99
42
|
</button>
|
|
100
43
|
<div
|
|
101
44
|
id="${this._panelId}"
|
|
102
45
|
class="content"
|
|
103
|
-
hidden=${
|
|
46
|
+
hidden=${o(this.open)}
|
|
104
47
|
@beforematch=${this._onBeforeMatch}
|
|
105
48
|
>
|
|
106
49
|
<slot></slot>
|
|
107
50
|
</div>
|
|
108
|
-
</div
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
__decorate([
|
|
112
|
-
property({ type: Boolean, reflect: true })
|
|
113
|
-
], BdAccordionItem.prototype, "open", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
property({ type: String })
|
|
116
|
-
], BdAccordionItem.prototype, "title", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
property({ type: Boolean, reflect: true })
|
|
119
|
-
], BdAccordionItem.prototype, "chevron", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
state()
|
|
122
|
-
], BdAccordionItem.prototype, "_panelId", void 0);
|
|
123
|
-
BdAccordionItem = __decorate([
|
|
124
|
-
defineElement("bd-accordion-item")
|
|
125
|
-
], BdAccordionItem);
|
|
126
|
-
export { BdAccordionItem };
|
|
127
|
-
let BdAccordionSection = class BdAccordionSection extends LitElement {
|
|
128
|
-
constructor() {
|
|
129
|
-
super(...arguments);
|
|
130
|
-
this.title = "";
|
|
131
|
-
this.variant = "default";
|
|
132
|
-
this.guideIcon = "";
|
|
133
|
-
this.guideLabel = "";
|
|
134
|
-
this.guideHref = "#";
|
|
135
|
-
this.noContainer = false;
|
|
136
|
-
}
|
|
137
|
-
static { this.styles = [ensembleCSS, accordionSection]; }
|
|
138
|
-
render() {
|
|
139
|
-
const content = html `
|
|
140
|
-
${this.title
|
|
141
|
-
? html `<bd-h as="h6" fontWeight="bold" class="section-title">${this.title}</bd-h>`
|
|
142
|
-
: ""}
|
|
51
|
+
</div>`}};t([l({type:Boolean,reflect:!0})],d.prototype,`open`,void 0),t([l({type:String})],d.prototype,`title`,void 0),t([l({type:Boolean,reflect:!0})],d.prototype,`chevron`,void 0),t([u()],d.prototype,`_panelId`,void 0),d=t([e(`bd-accordion-item`)],d);var f=class extends s{constructor(...e){super(...e),this.title=``,this.variant=`default`,this.guideIcon=``,this.guideLabel=``,this.guideHref=`#`,this.noContainer=!1}static{this.styles=[n,i]}render(){let e=c`
|
|
52
|
+
${this.title?c`<bd-h as="h6" fontWeight="bold" class="section-title">${this.title}</bd-h>`:``}
|
|
143
53
|
<slot></slot>
|
|
144
|
-
${this.guideLabel
|
|
145
|
-
? html `
|
|
54
|
+
${this.guideLabel?c`
|
|
146
55
|
<bd-p variant="small" class="user-guide-link">
|
|
147
56
|
<a href=${this.guideHref}>
|
|
148
|
-
${this.guideIcon
|
|
149
|
-
? html `<span class="icon"><img src=${this.guideIcon} alt="" /></span>`
|
|
150
|
-
: ""}
|
|
57
|
+
${this.guideIcon?c`<span class="icon"><img src=${this.guideIcon} alt="" /></span>`:``}
|
|
151
58
|
${this.guideLabel}
|
|
152
59
|
</a>
|
|
153
|
-
</bd-p
|
|
154
|
-
|
|
155
|
-
`;
|
|
156
|
-
if (this.noContainer) {
|
|
157
|
-
return content;
|
|
158
|
-
}
|
|
159
|
-
return html `
|
|
60
|
+
</bd-p>`:``}
|
|
61
|
+
`;return this.noContainer?e:c`
|
|
160
62
|
<div class="bd-accordion-section-container">
|
|
161
63
|
<div class="bd-ensemble bd-accordion-section-inner">
|
|
162
|
-
${
|
|
64
|
+
${e}
|
|
163
65
|
</div>
|
|
164
66
|
</div>
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
__decorate([
|
|
169
|
-
property({ type: String })
|
|
170
|
-
], BdAccordionSection.prototype, "title", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
property({ type: String, reflect: true })
|
|
173
|
-
], BdAccordionSection.prototype, "variant", void 0);
|
|
174
|
-
__decorate([
|
|
175
|
-
property({ type: String, reflect: true, attribute: "guide-icon" })
|
|
176
|
-
], BdAccordionSection.prototype, "guideIcon", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
property({ type: String, reflect: true, attribute: "guide-label" })
|
|
179
|
-
], BdAccordionSection.prototype, "guideLabel", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
property({ type: String, reflect: true, attribute: "guide-href" })
|
|
182
|
-
], BdAccordionSection.prototype, "guideHref", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
property({ type: Boolean, attribute: "no-container" })
|
|
185
|
-
], BdAccordionSection.prototype, "noContainer", void 0);
|
|
186
|
-
BdAccordionSection = __decorate([
|
|
187
|
-
defineElement("bd-accordion-section")
|
|
188
|
-
], BdAccordionSection);
|
|
189
|
-
export { BdAccordionSection };
|
|
67
|
+
`}};t([l({type:String})],f.prototype,`title`,void 0),t([l({type:String,reflect:!0})],f.prototype,`variant`,void 0),t([l({type:String,reflect:!0,attribute:`guide-icon`})],f.prototype,`guideIcon`,void 0),t([l({type:String,reflect:!0,attribute:`guide-label`})],f.prototype,`guideLabel`,void 0),t([l({type:String,reflect:!0,attribute:`guide-href`})],f.prototype,`guideHref`,void 0),t([l({type:Boolean,attribute:`no-container`})],f.prototype,`noContainer`,void 0),f=t([e(`bd-accordion-section`)],f);export{d as BdAccordionItem,f as BdAccordionSection};
|
|
190
68
|
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","
|
|
1
|
+
{"version":3,"file":"accordion.js","names":["_decorate","__decorate","BdAccordionItem","LitElement","_args","accordionItem","onTriggerKeydown","badgeEl","panelHidden","property","state","defineElement","BdAccordionSection","_args2","ensembleCSS","accordionSection","content"],"sources":["../../../../src/components/accordion/accordion.ts"],"sourcesContent":["import { LitElement, html } from \"lit\";\nimport { property, state } from \"lit/decorators.js\";\nimport { defineElement } from \"#shared/define-element.ts\";\n// Installs the design tokens into document scope; see src/tokens/tokens.ts\nimport \"#tokens/tokens.ts\";\nimport \"#components/heading/heading.ts\";\nimport \"#components/icons/arrow-down-icon.ts\";\nimport \"#components/icons/arrow-up-icon.ts\";\nimport \"#components/icons/minus-icon.ts\";\nimport \"#components/icons/plus-icon.ts\";\nimport \"#components/paragraph/paragraph.ts\";\nimport { accordionItem, accordionSection } from \"./accordion.css.ts\";\nimport { ensembleCSS } from \"#shared/ensemble.css.ts\";\nimport { onTriggerKeydown } from \"./accordion-keyboard.ts\";\nimport { panelHidden } from \"./accordion-panel.ts\";\n\ntype SectionVariant = \"default\" | \"default-blue\" | \"small\";\n\n@defineElement(\"bd-accordion-item\")\nexport class BdAccordionItem extends LitElement {\n static styles = [accordionItem];\n\n @property({ type: Boolean, reflect: true })\n open = false;\n @property({ type: String })\n title = \"\";\n @property({ type: Boolean, reflect: true })\n chevron = false; // text + arrow icon variant\n @state()\n _panelId = `acc-panel-${Math.random().toString(36)\n .slice(2, 11)}`;\n\n toggle() {\n this.open = !this.open;\n }\n\n /* Find in page matched text in the closed panel: open, so the item's state\n agrees with what the browser is about to reveal (accordion-panel.ts). */\n _onBeforeMatch() {\n this.open = true;\n }\n\n _onTriggerKeydown(e: KeyboardEvent) {\n onTriggerKeydown(this, e);\n }\n\n /** Move keyboard focus to this item's disclosure trigger. */\n focusTrigger() {\n this.renderRoot?.querySelector<HTMLElement>(\".header\")?.focus();\n }\n\n /* The trigger and its panel sit in one .disclosure, the box the focus ring\n goes round -- see the note on .disclosure in accordion.css.ts. */\n render() {\n const badgeEl = this.querySelector(\"[slot='badge']\");\n\n if (this.chevron) {\n return html`<div class=\"disclosure\">\n <button\n type=\"button\"\n class=\"header header--chevron\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggle}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"title-badge-wrapper\">\n <span class=\"title\">${this.title}</span>\n ${badgeEl ? badgeEl.cloneNode(true) : \"\"}\n </span>\n <span class=\"toggle toggle--chevron\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-arrow-up-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-arrow-up-icon>`\n : html`<bd-arrow-down-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-arrow-down-icon>`}\n </span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"content content--chevron\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>`;\n }\n\n return html`<div class=\"disclosure\">\n <button\n type=\"button\"\n class=\"header\"\n aria-expanded=\"${this.open}\"\n aria-controls=\"${this._panelId}\"\n @click=${this.toggle}\n @keydown=${this._onTriggerKeydown}\n >\n <span class=\"toggle\" aria-hidden=\"true\">\n ${this.open\n ? html`<bd-minus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-minus-icon>`\n : html`<bd-plus-icon size=\"16\" color=\"var(--color-text-brand)\"></bd-plus-icon>`}\n </span>\n <span class=\"title-badge-wrapper\">\n <span class=\"title\">${this.title}</span>\n ${badgeEl ? badgeEl.cloneNode(true) : \"\"}\n </span>\n </button>\n <div\n id=\"${this._panelId}\"\n class=\"content\"\n hidden=${panelHidden(this.open)}\n @beforematch=${this._onBeforeMatch}\n >\n <slot></slot>\n </div>\n </div>`;\n }\n}\n\n@defineElement(\"bd-accordion-section\")\nexport class BdAccordionSection extends LitElement {\n static styles = [ensembleCSS, accordionSection];\n\n @property({ type: String })\n title = \"\";\n @property({ type: String, reflect: true })\n variant: SectionVariant = \"default\";\n @property({ type: String, reflect: true, attribute: \"guide-icon\" })\n guideIcon = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-label\" })\n guideLabel = \"\";\n @property({ type: String, reflect: true, attribute: \"guide-href\" })\n guideHref = \"#\";\n @property({ type: Boolean, attribute: \"no-container\" })\n noContainer = false;\n\n render() {\n const content = html`\n ${this.title\n ? html`<bd-h as=\"h6\" fontWeight=\"bold\" class=\"section-title\">${this.title}</bd-h>`\n : \"\"}\n <slot></slot>\n ${this.guideLabel\n ? html`\n <bd-p variant=\"small\" class=\"user-guide-link\">\n <a href=${this.guideHref}>\n ${this.guideIcon\n ? html`<span class=\"icon\"><img src=${this.guideIcon} alt=\"\" /></span>`\n : \"\"}\n ${this.guideLabel}\n </a>\n </bd-p>`\n : \"\"}\n `;\n\n if (this.noContainer) {\n return content;\n }\n\n return html`\n <div class=\"bd-accordion-section-container\">\n <div class=\"bd-ensemble bd-accordion-section-inner\">\n ${content}\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bd-accordion-item\" : BdAccordionItem;\n \"bd-accordion-section\": BdAccordionSection;\n }\n}\n"],"mappings":"A,0rBAmBO,IAAME,EAAN,cAA8BC,CAAW,C,8BAIvC,KAAA,KAAA,GAEC,KAAA,MAAA,GAEE,KAAA,QAAA,GAEC,KAAA,SAAA,aAAa,KAAK,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAC/C,MAAM,EAAG,EAAE,G,QAVE,KAAA,OAAA,CAACE,CAAa,C,CAY9B,QAAS,CACP,KAAK,KAAO,CAAC,KAAK,IACpB,CAIA,gBAAiB,CACf,KAAK,KAAO,EACd,CAEA,kBAAkB,EAAkB,CAClCC,EAAiB,KAAM,CAAC,CAC1B,CAGA,cAAe,CACb,KAAK,YAAY,cAA2B,SAAS,CAAC,EAAE,MAAM,CAChE,CAIA,QAAS,CACP,IAAMC,EAAU,KAAK,cAAc,gBAAgB,EAiCnD,OA/BI,KAAK,QACA,CAAI;;;;2BAIU,KAAK,KAAK;2BACV,KAAK,SAAS;mBACtB,KAAK,OAAO;qBACV,KAAK,kBAAkB;;;kCAGV,KAAK,MAAM;cAC/BA,EAAUA,EAAQ,UAAU,EAAI,EAAI,GAAG;;;cAGvC,KAAK,KACH,CAAI,kFACJ,CAAI,sFAAsF;;;;gBAI1F,KAAK,SAAS;;mBAEXC,EAAY,KAAK,IAAI,EAAE;yBACjB,KAAK,eAAe;;;;cAOlC,CAAI;;;;yBAIU,KAAK,KAAK;yBACV,KAAK,SAAS;iBACtB,KAAK,OAAO;mBACV,KAAK,kBAAkB;;;YAG9B,KAAK,KACH,CAAI,4EACJ,CAAI,2EAA2E;;;gCAG7D,KAAK,MAAM;YAC/BD,EAAUA,EAAQ,UAAU,EAAI,EAAI,GAAG;;;;cAIrC,KAAK,SAAS;;iBAEXC,EAAY,KAAK,IAAI,EAAE;uBACjB,KAAK,eAAe;;;;WAKzC,CACF,EA9FGR,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,OAAA,IAAA,EAAA,EAEzCF,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAP,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBF,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,CAAA,EAAAP,EAAA,UAAA,UAAA,IAAA,EAAA,EAEzCF,EAAA,CAAAU,EAAM,CAAA,EAAAR,EAAA,UAAA,WAAA,IAAA,EAAA,EAVR,EAAAF,EAAA,CAAAW,EAAc,mBAAmB,CAAA,EAAAT,CAAA,EAqG3B,IAAMU,EAAN,cAAiCT,CAAW,C,8BAIzC,KAAA,MAAA,GAEkB,KAAA,QAAA,UAEd,KAAA,UAAA,GAEC,KAAA,WAAA,GAED,KAAA,UAAA,IAEE,KAAA,YAAA,E,QAbE,KAAA,OAAA,CAACW,EAAaC,CAAgB,C,CAe9C,QAAS,CACP,IAAMC,EAAU,CAAI;QAChB,KAAK,MACH,CAAI,yDAAyD,KAAK,MAAM,SACxE,GAAG;;QAEL,KAAK,WACH,CAAI;;wBAEU,KAAK,UAAU;kBACrB,KAAK,UACH,CAAI,+BAA+B,KAAK,UAAU,mBAClD,GAAG;kBACL,KAAK,WAAW;;qBAGxB,GAAG;MAOT,OAJI,KAAK,YACAA,EAGF,CAAI;;;YAGHA,EAAQ;;;KAIlB,CACF,EA5CGhB,EAAA,CAAAS,EAAS,CAAE,KAAM,MAAO,CAAC,CAAA,EAAAG,EAAA,UAAA,QAAA,IAAA,EAAA,EAEzBZ,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,CAAA,EAAAG,EAAA,UAAA,UAAA,IAAA,EAAA,EAExCZ,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,YAAa,CAAC,CAAA,EAAAG,EAAA,UAAA,YAAA,IAAA,EAAA,EAEjEZ,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,aAAc,CAAC,CAAA,EAAAG,EAAA,UAAA,aAAA,IAAA,EAAA,EAElEZ,EAAA,CAAAS,EAAS,CAAE,KAAM,OAAQ,QAAS,GAAM,UAAW,YAAa,CAAC,CAAA,EAAAG,EAAA,UAAA,YAAA,IAAA,EAAA,EAEjEZ,EAAA,CAAAS,EAAS,CAAE,KAAM,QAAS,UAAW,cAAe,CAAC,CAAA,EAAAG,EAAA,UAAA,cAAA,IAAA,EAAA,EAdvD,EAAAZ,EAAA,CAAAW,EAAc,sBAAsB,CAAA,EAAAC,CAAA,E"}
|
|
@@ -1,89 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { below } from "../shared/token-scales.js";
|
|
3
|
-
export default css `
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
font-family: var(--typography-fontFamily-sans);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.bd-agentendpoints-wrapper {
|
|
10
|
-
padding-block: var(--spacing-48);
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.bd-agentendpoints-eyebrow {
|
|
15
|
-
display: block;
|
|
16
|
-
margin: 0 0 var(--spacing-8);
|
|
17
|
-
/* The brand text role, not the brand primitive. This darkens the ink: the
|
|
18
|
-
role is blue-600, so contrast on white goes 4.53:1 -> 6.18:1. It is not a
|
|
19
|
-
like-for-like swap, and it cannot be -- no text role exists at blue-500's
|
|
20
|
-
value. The roles sitting there are surface, border, action, two status
|
|
21
|
-
fills, an accent and the tab indicator, and blue-500 is the step
|
|
22
|
-
CLAUDE.md says is not for text. */
|
|
23
|
-
color: var(--color-text-brand);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.bd-agentendpoints-title {
|
|
27
|
-
display: block;
|
|
28
|
-
margin: 0 0 var(--spacing-16);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.bd-agentendpoints-description {
|
|
32
|
-
display: block;
|
|
33
|
-
margin: 0 0 var(--spacing-24);
|
|
34
|
-
color: var(--color-text-muted);
|
|
35
|
-
max-width: var(--content-width-readable);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.bd-agentendpoints-row {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-wrap: wrap;
|
|
41
|
-
gap: var(--spacing-12);
|
|
42
|
-
margin-bottom: var(--spacing-12);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.bd-agentendpoints-row:last-of-type {
|
|
46
|
-
margin-bottom: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* === pill ===
|
|
50
|
-
A white pill with a thin grey border, used for the /endpoint links (leading
|
|
51
|
-
arrow, monospace label) and the Ask <assistant> links (leading brand icon).
|
|
52
|
-
|
|
53
|
-
This was called button--outline-white, which is the name the button atom
|
|
54
|
-
uses for something else entirely: there, outline-white is a fixed preset
|
|
55
|
-
for a coloured banner and its label is white. Here the pill sits on a light
|
|
56
|
-
surface and its label is dark. The two never met, because a shadow root
|
|
57
|
-
scopes a class to its own component and nothing here was ever reusable, but
|
|
58
|
-
the shared name invited the wrong one to be reasoned about. */
|
|
59
|
-
/* No rule for .bd-agentendpoints-pill any more. It was a hand-rolled control
|
|
60
|
-
-- surface, border, radius, colour, type, hover and a focus ring, all
|
|
61
|
-
reimplemented -- and the class now sits on a <bd-button-link variant=
|
|
62
|
-
"tertiary" size="sm">, which supplies every one of them from the button
|
|
63
|
-
atom. Left in place it also doubled the padding, since the host and the
|
|
64
|
-
anchor inside it were both padding the same content: the host measured
|
|
65
|
-
55.5px against the anchor's 33.5px.
|
|
66
|
-
|
|
67
|
-
The class is kept as a hook only, for the two spans below. */
|
|
68
|
-
|
|
69
|
-
/* No colour on either span: the button owns the ink. These were
|
|
70
|
-
neutral-400 and text-secondary, chosen when the pill was a white box with
|
|
71
|
-
dark text; on a tertiary button they overrode its blue and left the file
|
|
72
|
-
path grey inside a blue control. The mono face stays, because a path
|
|
73
|
-
rendered in the text face is the thing this span exists to prevent. */
|
|
74
|
-
.bd-agentendpoints-mono {
|
|
75
|
-
font-family: var(--typography-fontFamily-mono);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.bd-agentendpoints-icon {
|
|
79
|
-
display: block;
|
|
80
|
-
flex-shrink: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media ${unsafeCSS(below('sm'))} {
|
|
84
|
-
.bd-agentendpoints-wrapper {
|
|
85
|
-
padding: var(--spacing-32) var(--spacing-24);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
1
|
+
import"../shared/token-scales.js";import{css as e}from"lit";var t=e`:host{font-family:var(--typography-fontFamily-sans);display:block}.bd-agentendpoints-wrapper{padding-block:var(--spacing-48);box-sizing:border-box}.bd-agentendpoints-eyebrow{margin:0 0 var(--spacing-8);color:var(--color-text-brand);display:block}.bd-agentendpoints-title{margin:0 0 var(--spacing-16);display:block}.bd-agentendpoints-description{margin:0 0 var(--spacing-24);color:var(--color-text-muted);max-width:var(--content-width-readable);display:block}.bd-agentendpoints-row{gap:var(--spacing-12);margin-bottom:var(--spacing-12);flex-wrap:wrap;display:flex}.bd-agentendpoints-row:last-of-type{margin-bottom:0}.bd-agentendpoints-mono{font-family:var(--typography-fontFamily-mono)}.bd-agentendpoints-icon{flex-shrink:0;display:block}@media (width<576px){.bd-agentendpoints-wrapper{padding:var(--spacing-32) var(--spacing-24)}}`;export{t as default};
|
|
89
2
|
//# sourceMappingURL=agent-endpoints.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-endpoints.css.js","
|
|
1
|
+
{"version":3,"file":"agent-endpoints.css.js","names":["agent_endpoints_css_default"],"sources":["../../../../src/components/agent-endpoints/agent-endpoints.css.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { below } from \"#shared/token-scales.ts\";\n\nexport default css`\n :host {\n display: block;\n font-family: var(--typography-fontFamily-sans);\n }\n\n .bd-agentendpoints-wrapper {\n padding-block: var(--spacing-48);\n box-sizing: border-box;\n }\n\n .bd-agentendpoints-eyebrow {\n display: block;\n margin: 0 0 var(--spacing-8);\n /* The brand text role, not the brand primitive. This darkens the ink: the\n role is blue-600, so contrast on white goes 4.53:1 -> 6.18:1. It is not a\n like-for-like swap, and it cannot be -- no text role exists at blue-500's\n value. The roles sitting there are surface, border, action, two status\n fills, an accent and the tab indicator, and blue-500 is the step\n CLAUDE.md says is not for text. */\n color: var(--color-text-brand);\n }\n\n .bd-agentendpoints-title {\n display: block;\n margin: 0 0 var(--spacing-16);\n }\n\n .bd-agentendpoints-description {\n display: block;\n margin: 0 0 var(--spacing-24);\n color: var(--color-text-muted);\n max-width: var(--content-width-readable);\n }\n\n .bd-agentendpoints-row {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-12);\n margin-bottom: var(--spacing-12);\n }\n\n .bd-agentendpoints-row:last-of-type {\n margin-bottom: 0;\n }\n\n /* === pill ===\n A white pill with a thin grey border, used for the /endpoint links (leading\n arrow, monospace label) and the Ask <assistant> links (leading brand icon).\n\n This was called button--outline-white, which is the name the button atom\n uses for something else entirely: there, outline-white is a fixed preset\n for a coloured banner and its label is white. Here the pill sits on a light\n surface and its label is dark. The two never met, because a shadow root\n scopes a class to its own component and nothing here was ever reusable, but\n the shared name invited the wrong one to be reasoned about. */\n /* No rule for .bd-agentendpoints-pill any more. It was a hand-rolled control\n -- surface, border, radius, colour, type, hover and a focus ring, all\n reimplemented -- and the class now sits on a <bd-button-link variant=\n \"tertiary\" size=\"sm\">, which supplies every one of them from the button\n atom. Left in place it also doubled the padding, since the host and the\n anchor inside it were both padding the same content: the host measured\n 55.5px against the anchor's 33.5px.\n\n The class is kept as a hook only, for the two spans below. */\n\n /* No colour on either span: the button owns the ink. These were\n neutral-400 and text-secondary, chosen when the pill was a white box with\n dark text; on a tertiary button they overrode its blue and left the file\n path grey inside a blue control. The mono face stays, because a path\n rendered in the text face is the thing this span exists to prevent. */\n .bd-agentendpoints-mono {\n font-family: var(--typography-fontFamily-mono);\n }\n\n .bd-agentendpoints-icon {\n display: block;\n flex-shrink: 0;\n }\n\n @media ${unsafeCSS(below('sm'))} {\n .bd-agentendpoints-wrapper {\n padding: var(--spacing-32) var(--spacing-24);\n }\n }\n`;"],"mappings":"A,4DAGA,IAAAA,EAAe,CAAG,i0B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import
|
|
3
|
-
import "../heading/heading.
|
|
4
|
-
import "../paragraph/paragraph.
|
|
5
|
-
import "../icons/arrow-right-icon.
|
|
2
|
+
import "../button/button.js";
|
|
3
|
+
import "../heading/heading.js";
|
|
4
|
+
import "../paragraph/paragraph.js";
|
|
5
|
+
import "../icons/arrow-right-icon.js";
|
|
6
6
|
interface Endpoint {
|
|
7
7
|
label: string;
|
|
8
8
|
href: string;
|
|
@@ -1,106 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, nothing } from "lit";
|
|
8
|
-
import { property } from "lit/decorators.js";
|
|
9
|
-
import { defineElement } from "../shared/define-element.js";
|
|
10
|
-
import "../button/button.js";
|
|
11
|
-
import { tokens } from "../../tokens/tokens.js";
|
|
12
|
-
import "../heading/heading.js";
|
|
13
|
-
import "../paragraph/paragraph.js";
|
|
14
|
-
import agentEndpointsCSS from "./agent-endpoints.css.js";
|
|
15
|
-
import { ensembleCSS } from "../shared/ensemble.css.js";
|
|
16
|
-
import "../icons/arrow-right-icon.js";
|
|
17
|
-
let AgentEndpoints = class AgentEndpoints extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.eyebrow = "";
|
|
21
|
-
this.title = "";
|
|
22
|
-
this.description = "";
|
|
23
|
-
this.endpoints = []; // [{ label: String, href: String }]
|
|
24
|
-
this.assistants = []; // [{ label: String, href: String, icon: String }]
|
|
25
|
-
}
|
|
26
|
-
static { this.styles = [tokens, ensembleCSS, agentEndpointsCSS]; }
|
|
27
|
-
render() {
|
|
28
|
-
return html `
|
|
1
|
+
import{defineElement as e}from"../shared/define-element.js";import{tokens as t}from"../../tokens/tokens.js";import n from"../../_bundled/oxc-project_runtime/helpers/esm/decorate.js";import"../heading/heading.js";import"../paragraph/paragraph.js";import{ensembleCSS as r}from"../shared/ensemble.css.js";import i from"./agent-endpoints.css.js";import"../button/button.js";import"../icons/arrow-right-icon.js";import{LitElement as a,html as o,nothing as s}from"lit";import{property as c}from"lit/decorators.js";var l=class extends a{constructor(...e){super(...e),this.eyebrow=``,this.title=``,this.description=``,this.endpoints=[],this.assistants=[]}static{this.styles=[t,r,i]}render(){return o`
|
|
29
2
|
<div class="bd-ensemble bd-agentendpoints-wrapper">
|
|
30
|
-
${this.eyebrow
|
|
31
|
-
? html `<bd-p variant="eyebrow" class="bd-agentendpoints-eyebrow"><slot name="eyebrow">${this.eyebrow}</slot></bd-p>`
|
|
32
|
-
: nothing}
|
|
3
|
+
${this.eyebrow?o`<bd-p variant="eyebrow" class="bd-agentendpoints-eyebrow"><slot name="eyebrow">${this.eyebrow}</slot></bd-p>`:s}
|
|
33
4
|
|
|
34
|
-
${this.title
|
|
35
|
-
? html `<bd-h as="h2" class="bd-agentendpoints-title"><slot name="title">${this.title}</slot></bd-h>`
|
|
36
|
-
: nothing}
|
|
5
|
+
${this.title?o`<bd-h as="h2" class="bd-agentendpoints-title"><slot name="title">${this.title}</slot></bd-h>`:s}
|
|
37
6
|
|
|
38
|
-
${this.description
|
|
39
|
-
? html `<bd-p variant="regular" class="bd-agentendpoints-description"><slot name="description">${this.description}</slot></bd-p>`
|
|
40
|
-
: nothing}
|
|
7
|
+
${this.description?o`<bd-p variant="regular" class="bd-agentendpoints-description"><slot name="description">${this.description}</slot></bd-p>`:s}
|
|
41
8
|
|
|
42
|
-
${this.endpoints
|
|
43
|
-
? html `
|
|
9
|
+
${this.endpoints&&this.endpoints.length?o`
|
|
44
10
|
<div class="bd-agentendpoints-row">
|
|
45
|
-
${this.endpoints.map(
|
|
11
|
+
${this.endpoints.map(e=>o`
|
|
46
12
|
<bd-button-link
|
|
47
13
|
class="bd-agentendpoints-pill"
|
|
48
|
-
href=${
|
|
14
|
+
href=${e.href}
|
|
49
15
|
target="_blank"
|
|
50
16
|
size="sm"
|
|
51
17
|
variant="tertiary"
|
|
52
18
|
>
|
|
53
19
|
<bd-arrow-right-icon class="bd-agentendpoints-arrow" size="xs" aria-hidden="true"></bd-arrow-right-icon>
|
|
54
|
-
<span class="bd-agentendpoints-mono">${
|
|
20
|
+
<span class="bd-agentendpoints-mono">${e.label}</span>
|
|
55
21
|
</bd-button-link>
|
|
56
22
|
`)}
|
|
57
23
|
</div>
|
|
58
|
-
|
|
59
|
-
: nothing}
|
|
24
|
+
`:s}
|
|
60
25
|
|
|
61
|
-
${this.assistants
|
|
62
|
-
? html `
|
|
26
|
+
${this.assistants&&this.assistants.length?o`
|
|
63
27
|
<div class="bd-agentendpoints-row">
|
|
64
|
-
${this.assistants.map(
|
|
28
|
+
${this.assistants.map(e=>o`
|
|
65
29
|
<bd-button-link
|
|
66
30
|
class="bd-agentendpoints-pill"
|
|
67
|
-
href=${
|
|
31
|
+
href=${e.href}
|
|
68
32
|
target="_blank"
|
|
69
33
|
size="sm"
|
|
70
34
|
variant="tertiary"
|
|
71
|
-
label="${
|
|
35
|
+
label="${e.label} (opens in new tab)"
|
|
72
36
|
>
|
|
73
|
-
${
|
|
74
|
-
|
|
75
|
-
: nothing}
|
|
76
|
-
<span>${a.label}</span>
|
|
37
|
+
${e.icon?o`<img src=${e.icon} alt="" class="bd-agentendpoints-icon" width="20" height="20" loading="lazy" />`:s}
|
|
38
|
+
<span>${e.label}</span>
|
|
77
39
|
</bd-button-link>
|
|
78
40
|
`)}
|
|
79
41
|
</div>
|
|
80
|
-
|
|
81
|
-
: nothing}
|
|
42
|
+
`:s}
|
|
82
43
|
|
|
83
44
|
<slot name="rows"></slot>
|
|
84
45
|
</div>
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
__decorate([
|
|
89
|
-
property({ type: String })
|
|
90
|
-
], AgentEndpoints.prototype, "eyebrow", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
property({ type: String })
|
|
93
|
-
], AgentEndpoints.prototype, "title", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
property({ type: String })
|
|
96
|
-
], AgentEndpoints.prototype, "description", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
property({ type: Array })
|
|
99
|
-
], AgentEndpoints.prototype, "endpoints", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
property({ type: Array })
|
|
102
|
-
], AgentEndpoints.prototype, "assistants", void 0);
|
|
103
|
-
AgentEndpoints = __decorate([
|
|
104
|
-
defineElement("bd-agent-endpoints")
|
|
105
|
-
], AgentEndpoints);
|
|
46
|
+
`}};n([c({type:String})],l.prototype,`eyebrow`,void 0),n([c({type:String})],l.prototype,`title`,void 0),n([c({type:String})],l.prototype,`description`,void 0),n([c({type:Array})],l.prototype,`endpoints`,void 0),n([c({type:Array})],l.prototype,`assistants`,void 0),l=n([e(`bd-agent-endpoints`)],l);
|
|
106
47
|
//# sourceMappingURL=agent-endpoints.js.map
|